pdf.worker.min.js 945 KB

12345678910111213141516171819202122
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2020 Mozilla Foundation
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * @licend The above is the entire license notice for the
  20. * Javascript code in this page
  21. */
  22. !function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],r):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=r():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r()}(this,(function(){return(()=>{var t=[(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});Object.defineProperty(r,"WorkerMessageHandler",{enumerable:!0,get:function get(){return i.WorkerMessageHandler}});var i=a(1)},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.WorkerTask=r.WorkerMessageHandler=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(135),c=a(136),u=a(176),h=a(6),d=a(178),p=a(179),g=a(138);function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _arrayWithHoles(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var m=function(){function WorkerTask(t){_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=(0,o.createPromiseCapability)()}_createClass(WorkerTask,[{key:"finish",value:function finish(){this._capability.resolve()}},{key:"terminate",value:function terminate(){this.terminated=!0}},{key:"ensureNotTerminated",value:function ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}},{key:"finished",get:function get(){return this._capability.promise}}]);return WorkerTask}();r.WorkerTask=m;var y=function(){function WorkerMessageHandler(){_classCallCheck(this,WorkerMessageHandler)}_createClass(WorkerMessageHandler,null,[{key:"setup",value:function setup(t,r){var a=!1;t.on("test",(function wphSetupTest(r){if(!a){a=!0;if(r instanceof Uint8Array){var i=255===r[0];t.postMessageTransfers=i;t.send("test",{supportTransfers:i})}else t.send("test",null)}}));t.on("configure",(function wphConfigure(t){(0,o.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function wphSetupDoc(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var a,h=!1,y=null,b=[],v=(0,o.getVerbosityLevel)(),S=t.apiVersion,k="2.7.570";if(S!==k)throw new Error('The API version "'.concat(S,'" does not match ')+'the Worker version "'.concat(k,'".'));var w=[];for(var C in[])w.push(C);if(w.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+w.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var _=t.docId,x=t.docBaseUrl,A=t.docId+"_worker",T=new d.MessageHandler(A,_,r);T.postMessageTransfers=t.postMessageTransfers;function ensureNotTerminated(){if(h)throw new Error("Worker was terminated")}function startWorkerTask(t){b.push(t)}function finishWorkerTask(t){t.finish();var r=b.indexOf(t);b.splice(r,1)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=_asyncToGenerator(i.default.mark((function _callee(t){var r,o,l,c;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:i.next=2;return a.ensureDoc("checkHeader");case 2:i.next=4;return a.ensureDoc("parseStartXRef");case 4:i.next=6;return a.ensureDoc("parse",[t]);case 6:if(t){i.next=9;break}i.next=9;return a.ensureDoc("checkFirstPage");case 9:i.next=11;return Promise.all([a.ensureDoc("numPages"),a.ensureDoc("fingerprint")]);case 11:r=i.sent;o=_slicedToArray(r,2);l=o[0];c=o[1];return i.abrupt("return",{numPages:l,fingerprint:c});case 16:case"end":return i.stop()}}),_callee)})))).apply(this,arguments)}function getPdfManager(t,r){var a,i=(0,o.createPromiseCapability)(),l=t.source;if(l.data){try{a=new c.LocalPdfManager(_,l.data,l.password,r,x);i.resolve(a)}catch(t){i.reject(t)}return i.promise}var u,h=[];try{u=new p.PDFWorkerStream(T)}catch(t){i.reject(t);return i.promise}var d=u.getFullReader();d.headersReady.then((function(){if(d.isRangeSupported){var t=l.disableAutoFetch||d.isStreamingSupported;a=new c.NetworkPdfManager(_,u,{msgHandler:T,password:l.password,length:d.contentLength,disableAutoFetch:t,rangeChunkSize:l.rangeChunkSize},r,x);for(var o=0;o<h.length;o++)a.sendProgressiveData(h[o]);h=[];i.resolve(a);y=null}})).catch((function(t){i.reject(t);y=null}));var g=0;new Promise((function(t,u){d.read().then((function readChunk(t){var p=t.value,m=t.done;try{ensureNotTerminated();if(m){a||function flushChunks(){var t=(0,o.arraysToBytes)(h);l.length&&t.length!==l.length&&(0,o.warn)("reported HTTP length is different from actual");try{a=new c.LocalPdfManager(_,t,l.password,r,x);i.resolve(a)}catch(t){i.reject(t)}h=[]}();y=null;return}g+=(0,o.arrayByteLength)(p);d.isStreamingSupported||T.send("DocProgress",{loaded:g,total:Math.max(g,d.contentLength||0)});a?a.sendProgressiveData(p):h.push(p);d.read().then(readChunk,u)}catch(t){u(t)}}),u)})).catch((function(t){i.reject(t);y=null}));y=function cancelXHRs(t){u.cancelAllRequests(t)};return i.promise}T.on("GetPage",(function wphSetupGetPage(t){return a.getPage(t.pageIndex).then((function(t){return Promise.all([a.ensure(t,"rotate"),a.ensure(t,"ref"),a.ensure(t,"userUnit"),a.ensure(t,"view")]).then((function(t){var r=_slicedToArray(t,4);return{rotate:r[0],ref:r[1],userUnit:r[2],view:r[3]}}))}))}));T.on("GetPageIndex",(function wphSetupGetPageIndex(t){var r=t.ref,i=l.Ref.get(r.num,r.gen);return a.ensureCatalog("getPageIndex",[i])}));T.on("GetDestinations",(function wphSetupGetDestinations(t){return a.ensureCatalog("destinations")}));T.on("GetDestination",(function wphSetupGetDestination(t){return a.ensureCatalog("getDestination",[t.id])}));T.on("GetPageLabels",(function wphSetupGetPageLabels(t){return a.ensureCatalog("pageLabels")}));T.on("GetPageLayout",(function wphSetupGetPageLayout(t){return a.ensureCatalog("pageLayout")}));T.on("GetPageMode",(function wphSetupGetPageMode(t){return a.ensureCatalog("pageMode")}));T.on("GetViewerPreferences",(function(t){return a.ensureCatalog("viewerPreferences")}));T.on("GetOpenAction",(function(t){return a.ensureCatalog("openAction")}));T.on("GetAttachments",(function wphSetupGetAttachments(t){return a.ensureCatalog("attachments")}));T.on("GetJavaScript",(function wphSetupGetJavaScript(t){return a.ensureCatalog("javaScript")}));T.on("GetDocJSActions",(function wphSetupGetDocJSActions(t){return a.ensureCatalog("jsActions")}));T.on("GetPageJSActions",(function(t){var r=t.pageIndex;return a.getPage(r).then((function(t){return t.jsActions}))}));T.on("GetOutline",(function wphSetupGetOutline(t){return a.ensureCatalog("documentOutline")}));T.on("GetOptionalContentConfig",(function(t){return a.ensureCatalog("optionalContentConfig")}));T.on("GetPermissions",(function(t){return a.ensureCatalog("permissions")}));T.on("GetMetadata",(function wphSetupGetMetadata(t){return Promise.all([a.ensureDoc("documentInfo"),a.ensureCatalog("metadata")])}));T.on("GetMarkInfo",(function wphSetupGetMarkInfo(t){return a.ensureCatalog("markInfo")}));T.on("GetData",(function wphSetupGetData(t){a.requestLoadedStream();return a.onLoadedStream().then((function(t){return t.bytes}))}));T.on("GetStats",(function wphSetupGetStats(t){return a.ensureXRef("stats")}));T.on("GetAnnotations",(function(t){var r=t.pageIndex,i=t.intent;return a.getPage(r).then((function(t){return t.getAnnotationsData(i)}))}));T.on("GetFieldObjects",(function(t){return a.ensureDoc("fieldObjects")}));T.on("HasJSActions",(function(t){return a.ensureDoc("hasJSActions")}));T.on("GetCalculationOrderIds",(function(t){return a.ensureDoc("calculationOrderIds")}));T.on("SaveDocument",(function(t){var r=t.numPages,i=t.annotationStorage,c=t.filename;a.requestLoadedStream();for(var h=[a.onLoadedStream(),a.ensureCatalog("acroForm"),a.ensureDoc("xref"),a.ensureDoc("startXRef")],d=function _loop(t){h.push(a.getPage(t).then((function(r){var a=new m("Save: page ".concat(t));startWorkerTask(a);return r.save(T,a,i).finally((function(){finishWorkerTask(a)}))})))},p=0;p<r;p++)d(p);return Promise.all(h).then((function(t){var r,a=_toArray(t),i=a[0],h=a[1],d=a[2],p=a[3],g=[],m=function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}(a.slice(4));try{for(m.s();!(r=m.n()).done;){g=r.value.filter((function(t){return null!==t})).reduce((function(t,r){return t.concat(r)}),g)}}catch(t){m.e(t)}finally{m.f()}if(0===g.length)return i.bytes;var y=h instanceof l.Dict&&h.get("XFA")||[],b=null;if(Array.isArray(y))for(var v=0,S=y.length;v<S;v+=2)"datasets"===y[v]&&(b=y[v+1]);else(0,o.warn)("Unsupported XFA type.");var k=Object.create(null);if(d.trailer){var w=Object.create(null),C=d.trailer.get("Info")||null;C instanceof l.Dict&&C.forEach((function(t,r){(0,o.isString)(t)&&(0,o.isString)(r)&&(w[t]=(0,o.stringToPDFString)(r))}));k={rootRef:d.trailer.getRaw("Root")||null,encrypt:d.trailer.getRaw("Encrypt")||null,newRef:d.getNewRef(),infoRef:d.trailer.getRaw("Info")||null,info:w,fileIds:d.trailer.getRaw("ID")||null,startXRef:p,filename:c}}d.resetNewRef();return(0,u.incrementalUpdate)({originalData:i.bytes,xrefInfo:k,newRefs:g,xref:d,datasetsRef:b})}))}));T.on("GetOperatorList",(function wphSetupRenderPage(t,r){var i=t.pageIndex;a.getPage(i).then((function(a){var l=new m("GetOperatorList: page ".concat(i));startWorkerTask(l);var c=v>=o.VerbosityLevel.INFOS?Date.now():0;a.getOperatorList({handler:T,sink:r,task:l,intent:t.intent,renderInteractiveForms:t.renderInteractiveForms,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(l);c&&(0,o.info)("page=".concat(i+1," - getOperatorList: time=")+"".concat(Date.now()-c,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(l);if(!l.terminated){T.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));T.on("GetTextContent",(function wphExtractText(t,r){var i=t.pageIndex;r.onPull=function(t){};r.onCancel=function(t){};a.getPage(i).then((function(a){var l=new m("GetTextContent: page "+i);startWorkerTask(l);var c=v>=o.VerbosityLevel.INFOS?Date.now():0;a.extractTextContent({handler:T,task:l,sink:r,normalizeWhitespace:t.normalizeWhitespace,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(l);c&&(0,o.info)("page=".concat(i+1," - getTextContent: time=")+"".concat(Date.now()-c,"ms"));r.close()}),(function(t){finishWorkerTask(l);l.terminated||r.error(t)}))}))}));T.on("FontFallback",(function(t){return a.fontFallback(t.id,T)}));T.on("Cleanup",(function wphCleanup(t){return a.cleanup(!0)}));T.on("Terminate",(function wphTerminate(t){h=!0;var r=[];if(a){a.terminate(new o.AbortException("Worker was terminated."));var i=a.cleanup();r.push(i);a=null}else(0,l.clearPrimitiveCaches)();y&&y(new o.AbortException("Worker was terminated."));b.forEach((function(t){r.push(t.finished);t.terminate()}));return Promise.all(r).then((function(){T.destroy();T=null}))}));T.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();T.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof o.PasswordException){var r=new m("PasswordException: response ".concat(t.code));startWorkerTask(r);T.sendWithPromise("PasswordRequest",t).then((function(t){var i=t.password;finishWorkerTask(r);a.updatePassword(i);pdfManagerReady()})).catch((function(){finishWorkerTask(r);T.send("DocException",t)}))}else t instanceof o.InvalidPDFException||t instanceof o.MissingPDFException||t instanceof o.UnexpectedResponseException||t instanceof o.UnknownErrorException?T.send("DocException",t):T.send("DocException",new o.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof g.XRefParseException){a.requestLoadedStream();a.onLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)}))}else onFailure(t)}))}ensureNotTerminated();getPdfManager(t,{maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then((function(t){if(h){t.terminate(new o.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(a=t).onLoadedStream().then((function(t){T.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return A}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new d.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=y;"undefined"==typeof window&&!h.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&y.initializeFromPort(self)},(t,r,a)=>{"use strict";t.exports=a(3)},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(t){var r,a=Object.prototype,i=a.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function define(t,r,a){Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0});return t[r]}try{define({},"")}catch(t){define=function define(t,r,a){return t[r]=a}}function wrap(t,r,a,i){var o=r&&r.prototype instanceof Generator?r:Generator,l=Object.create(o.prototype),c=new Context(i||[]);l._invoke=function makeInvokeMethod(t,r,a){var i=h;return function invoke(o,l){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw l;return doneResult()}a.method=o;a.arg=l;for(;;){var c=a.delegate;if(c){var u=maybeInvokeDelegate(c,a);if(u){if(u===m)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===h){i=g;throw a.arg}a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=p;var y=tryCatch(t,r,a);if("normal"===y.type){i=a.done?g:d;if(y.arg===m)continue;return{value:y.arg,done:a.done}}if("throw"===y.type){i=g;a.method="throw";a.arg=y.arg}}}}(t,a,c);return l}t.wrap=wrap;function tryCatch(t,r,a){try{return{type:"normal",arg:t.call(r,a)}}catch(t){return{type:"throw",arg:t}}}var h="suspendedStart",d="suspendedYield",p="executing",g="completed",m={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var y={};y[l]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(values([])));v&&v!==a&&i.call(v,l)&&(y=v);var S=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(y);GeneratorFunction.prototype=S.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction");function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))};t.mark=function(t){if(Object.setPrototypeOf)Object.setPrototypeOf(t,GeneratorFunctionPrototype);else{t.__proto__=GeneratorFunctionPrototype;define(t,u,"GeneratorFunction")}t.prototype=Object.create(S);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){function invoke(a,o,l,c){var u=tryCatch(t[a],t,o);if("throw"!==u.type){var h=u.arg,d=h.value;return d&&"object"===_typeof(d)&&i.call(d,"__await")?r.resolve(d.__await).then((function(t){invoke("next",t,l,c)}),(function(t){invoke("throw",t,l,c)})):r.resolve(d).then((function(t){h.value=t;l(h)}),(function(t){return invoke("throw",t,l,c)}))}c(u.arg)}var a;this._invoke=function enqueue(t,i){function callInvokeWithMethodAndArg(){return new r((function(r,a){invoke(t,i,r,a)}))}return a=a?a.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[c]=function(){return this};t.AsyncIterator=AsyncIterator;t.async=function(r,a,i,o,l){void 0===l&&(l=Promise);var c=new AsyncIterator(wrap(r,a,i,o),l);return t.isGeneratorFunction(a)?c:c.next().then((function(t){return t.done?t.value:c.next()}))};function maybeInvokeDelegate(t,a){var i=t.iterator[a.method];if(i===r){a.delegate=null;if("throw"===a.method){if(t.iterator.return){a.method="return";a.arg=r;maybeInvokeDelegate(t,a);if("throw"===a.method)return m}a.method="throw";a.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=tryCatch(i,t.iterator,a.arg);if("throw"===o.type){a.method="throw";a.arg=o.arg;a.delegate=null;return m}var l=o.arg;if(!l){a.method="throw";a.arg=new TypeError("iterator result is not an object");a.delegate=null;return m}if(!l.done)return l;a[t.resultName]=l.value;a.next=t.nextLoc;if("return"!==a.method){a.method="next";a.arg=r}a.delegate=null;return m}defineIteratorMethods(S);define(S,u,"Generator");S[l]=function(){return this};S.toString=function(){return"[object Generator]"};function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]);if(2 in t){r.finallyLoc=t[2];r.afterLoc=t[3]}this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal";delete r.arg;t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(pushTryEntry,this);this.reset(!0)}t.keys=function(t){var r=[];for(var a in t)r.push(a);r.reverse();return function next(){for(;r.length;){var a=r.pop();if(a in t){next.value=a;next.done=!1;return next}}next.done=!0;return next}};function values(t){if(t){var a=t[l];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function next(){for(;++o<t.length;)if(i.call(t,o)){next.value=t[o];next.done=!1;return next}next.value=r;next.done=!0;return next};return c.next=c}}return{next:doneResult}}t.values=values;function doneResult(){return{value:r,done:!0}}Context.prototype={constructor:Context,reset:function reset(t){this.prev=0;this.next=0;this.sent=this._sent=r;this.done=!1;this.delegate=null;this.method="next";this.arg=r;this.tryEntries.forEach(resetTryEntry);if(!t)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=r)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var a=this;function handle(i,o){c.type="throw";c.arg=t;a.next=i;if(o){a.method="next";a.arg=r}return!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],c=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var u=i.call(l,"catchLoc"),h=i.call(l,"finallyLoc");if(u&&h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var l=o;break}}l&&("break"===t||"continue"===t)&&l.tryLoc<=r&&r<=l.finallyLoc&&(l=null);var c=l?l.completion:{};c.type=t;c.arg=r;if(l){this.method="next";this.next=l.finallyLoc;return m}return this.complete(c)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;if("break"===t.type||"continue"===t.type)this.next=t.arg;else if("return"===t.type){this.rval=this.arg=t.arg;this.method="return";this.next="end"}else"normal"===t.type&&r&&(this.next=r);return m},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.finallyLoc===t){this.complete(a.completion,a.afterLoc);resetTryEntry(a);return m}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc===t){var i=a.completion;if("throw"===i.type){var o=i.arg;resetTryEntry(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,a,i){this.delegate={iterator:values(t),resultName:a,nextLoc:i};"next"===this.method&&(this.arg=r);return m}};return t}("object"===_typeof(t=a.nmd(t))?t.exports:{});try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.arrayByteLength=arrayByteLength;r.arraysToBytes=function arraysToBytes(t){var r=t.length;if(1===r&&t[0]instanceof Uint8Array)return t[0];for(var a=0,i=0;i<r;i++)a+=arrayByteLength(t[i]);for(var o=0,l=new Uint8Array(a),c=0;c<r;c++){var u=t[c];u instanceof Uint8Array||(u="string"==typeof u?stringToBytes(u):new Uint8Array(u));var h=u.byteLength;l.set(u,o);o+=h}return l};r.assert=assert;r.bytesToString=function bytesToString(t){assert(null!==t&&"object"===_typeof(t)&&void 0!==t.length,"Invalid argument for bytesToString");var r=t.length,a=8192;if(r<a)return String.fromCharCode.apply(null,t);for(var i=[],o=0;o<r;o+=a){var l=Math.min(o+a,r),c=t.subarray(o,l);i.push(String.fromCharCode.apply(null,c))}return i.join("")};r.createPromiseCapability=function createPromiseCapability(){var t=Object.create(null),r=!1;Object.defineProperty(t,"settled",{get:function get(){return r}});t.promise=new Promise((function(a,i){t.resolve=function(t){r=!0;a(t)};t.reject=function(t){r=!0;i(t)}}));return t};r.createValidAbsoluteUrl=function createValidAbsoluteUrl(t,r){if(!t)return null;try{var a=r?new URL(t,r):new URL(t);if(function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(t){}return null};r.encodeToXmlString=function encodeToXmlString(t){for(var r=[],a=0,i=0,o=t.length;i<o;i++){var l=t.codePointAt(i);if(32<=l&&l<=126){var c=_[l];if(c){a<i&&r.push(t.substring(a,i));r.push(c);a=i+1}}else{a<i&&r.push(t.substring(a,i));r.push("&#x".concat(l.toString(16).toUpperCase(),";"));l>55295&&(l<57344||l>65533)&&i++;a=i+1}}if(0===r.length)return t;a<t.length&&r.push(t.substring(a,t.length));return r.join("")};r.escapeString=function escapeString(t){return t.replace(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,r=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return r.join("")};r.getVerbosityLevel=function getVerbosityLevel(){return o};r.info=function info(t){o>=i.INFOS&&console.log("Info: ".concat(t))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.byteLength};r.isArrayEqual=function isArrayEqual(t,r){if(t.length!==r.length)return!1;return t.every((function(t,a){return t===r[a]}))};r.isAscii=function isAscii(t){return/^[\x00-\x7F]*$/.test(t)};r.isBool=function isBool(t){return"boolean"==typeof t};r.isNum=function isNum(t){return"number"==typeof t};r.isSameOrigin=function isSameOrigin(t,r){var a;try{if(!(a=new URL(t)).origin||"null"===a.origin)return!1}catch(t){return!1}var i=new URL(r,a);return a.origin===i.origin};r.isString=function isString(t){return"string"==typeof t};r.objectFromEntries=function objectFromEntries(t){return Object.assign(Object.create(null),Object.fromEntries(t))};r.objectSize=function objectSize(t){return Object.keys(t).length};r.removeNullCharacters=function removeNullCharacters(t){if("string"!=typeof t){warn("The argument for removeNullCharacters must be a string.");return t}return t.replace(y,"")};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(o=t)};r.shadow=shadow;r.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};r.stringToBytes=stringToBytes;r.stringToPDFString=function stringToPDFString(t){var r=t.length,a=[];if("þ"===t[0]&&"ÿ"===t[1])for(var i=2;i<r;i+=2)a.push(String.fromCharCode(t.charCodeAt(i)<<8|t.charCodeAt(i+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var o=2;o<r;o+=2)a.push(String.fromCharCode(t.charCodeAt(o+1)<<8|t.charCodeAt(o)));else for(var l=0;l<r;++l){var c=w[t.charCodeAt(l)];a.push(c?String.fromCharCode(c):t.charAt(l))}return a.join("")};r.stringToUTF16BEString=function stringToUTF16BEString(t){for(var r=["þÿ"],a=0,i=t.length;a<i;a++){var o=t.charCodeAt(a);r.push(String.fromCharCode(o>>8&255));r.push(String.fromCharCode(255&o))}return r.join("")};r.stringToUTF8String=function stringToUTF8String(t){return decodeURIComponent(escape(t))};r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;r.VerbosityLevel=r.Util=r.UNSUPPORTED_FEATURES=r.UnknownErrorException=r.UnexpectedResponseException=r.TextRenderingMode=r.StreamType=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.IsLittleEndianCached=r.IsEvalSupportedCached=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.createObjectURL=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0;a(5);function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.IDENTITY_MATRIX=[1,0,0,1,0,0];r.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];r.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};r.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};r.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};r.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};r.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};r.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};r.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};r.AnnotationReplyType={GROUP:"Group",REPLY:"R"};r.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};r.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};r.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};r.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};r.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};r.PageActionEventType={O:"PageOpen",C:"PageClose"};r.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};r.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var i={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=i;r.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};r.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};r.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var o=i.WARNINGS;function warn(t){o>=i.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}function shadow(t,r,a){Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!1});return a}var l=function BaseExceptionClosure(){function BaseException(t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=this.constructor.name}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=l;var c=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,a){var i;_classCallCheck(this,PasswordException);(i=r.call(this,t)).code=a;return i}return PasswordException}(l);r.PasswordException=c;var u=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,a){var i;_classCallCheck(this,UnknownErrorException);(i=r.call(this,t)).details=a;return i}return UnknownErrorException}(l);r.UnknownErrorException=u;var h=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(){_classCallCheck(this,InvalidPDFException);return r.apply(this,arguments)}return InvalidPDFException}(l);r.InvalidPDFException=h;var d=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(){_classCallCheck(this,MissingPDFException);return r.apply(this,arguments)}return MissingPDFException}(l);r.MissingPDFException=d;var p=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,a){var i;_classCallCheck(this,UnexpectedResponseException);(i=r.call(this,t)).status=a;return i}return UnexpectedResponseException}(l);r.UnexpectedResponseException=p;var g=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(){_classCallCheck(this,FormatError);return r.apply(this,arguments)}return FormatError}(l);r.FormatError=g;var m=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(){_classCallCheck(this,AbortException);return r.apply(this,arguments)}return AbortException}(l);r.AbortException=m;var y=/\x00/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,a=new Uint8Array(r),i=0;i<r;++i)a[i]=255&t.charCodeAt(i);return a}function arrayByteLength(t){if(void 0!==t.length)return t.length;assert(void 0!==t.byteLength,"arrayByteLength - invalid argument.");return t.byteLength}var b={get value(){return shadow(this,"value",function isLittleEndian(){var t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}};r.IsLittleEndianCached=b;var v={get value(){return shadow(this,"value",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}};r.IsEvalSupportedCached=v;var S=function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array(256).keys()).map((function(t){return t.toString(16).padStart(2,"0")})),k=function(){function Util(){_classCallCheck(this,Util)}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(Util,null,[{key:"makeHexColor",value:function makeHexColor(t,r,a){return"#".concat(S[t]).concat(S[r]).concat(S[a])}},{key:"transform",value:function transform(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]}},{key:"applyTransform",value:function applyTransform(t,r){return[t[0]*r[0]+t[1]*r[2]+r[4],t[0]*r[1]+t[1]*r[3]+r[5]]}},{key:"applyInverseTransform",value:function applyInverseTransform(t,r){var a=r[0]*r[3]-r[1]*r[2];return[(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/a,(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/a]}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(t,r){var a=Util.applyTransform(t,r),i=Util.applyTransform(t.slice(2,4),r),o=Util.applyTransform([t[0],t[3]],r),l=Util.applyTransform([t[2],t[1]],r);return[Math.min(a[0],i[0],o[0],l[0]),Math.min(a[1],i[1],o[1],l[1]),Math.max(a[0],i[0],o[0],l[0]),Math.max(a[1],i[1],o[1],l[1])]}},{key:"inverseTransform",value:function inverseTransform(t){var r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]}},{key:"apply3dTransform",value:function apply3dTransform(t,r){return[t[0]*r[0]+t[1]*r[1]+t[2]*r[2],t[3]*r[0]+t[4]*r[1]+t[5]*r[2],t[6]*r[0]+t[7]*r[1]+t[8]*r[2]]}},{key:"singularValueDecompose2dScale",value:function singularValueDecompose2dScale(t){var r=[t[0],t[2],t[1],t[3]],a=t[0]*r[0]+t[1]*r[2],i=t[0]*r[1]+t[1]*r[3],o=t[2]*r[0]+t[3]*r[2],l=t[2]*r[1]+t[3]*r[3],c=(a+l)/2,u=Math.sqrt((a+l)*(a+l)-4*(a*l-o*i))/2,h=c+u||1,d=c-u||1;return[Math.sqrt(h),Math.sqrt(d)]}},{key:"normalizeRect",value:function normalizeRect(t){var r=t.slice(0);if(t[0]>t[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){function compare(t,r){return t-r}var a=[t[0],t[2],r[0],r[2]].sort(compare),i=[t[1],t[3],r[1],r[3]].sort(compare),o=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]))return null;o[0]=a[1];o[2]=a[2];if(!(i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]))return null;o[1]=i[1];o[3]=i[2];return o}}]);return Util}();r.Util=k;var w=[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];var C=function createObjectURLClosure(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function createObjectURL(r,a){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!i&&URL.createObjectURL){var o=new Blob([r],{type:a});return URL.createObjectURL(o)}for(var l="data:".concat(a,";base64,"),c=0,u=r.length;c<u;c+=3){var h=255&r[c],d=255&r[c+1],p=255&r[c+2],g=h>>2,m=(3&h)<<4|d>>4,y=c+1<u?(15&d)<<2|p>>6:64,b=c+2<u?63&p:64;l+=t[g]+t[m]+t[y]+t[b]}return l}}();r.createObjectURL=C;var _={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(t,r,a)=>{"use strict";var i=a(6);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=a(7));globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkObjectFromEntries(){Object.fromEntries||a(52)}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=a(82))}();!function checkURL(){globalThis.URL=a(111)}();!function checkReadableStream(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function start(t){t.close()}});t=!0}catch(t){}t||(globalThis.ReadableStream=a(121).ReadableStream)}();!function checkStringPadStart(){String.prototype.padStart||a(122)}();!function checkStringPadEnd(){String.prototype.padEnd||a(128)}();!function checkObjectValues(){Object.values||(Object.values=a(130))}();!function checkObjectEntries(){Object.entries||(Object.entries=a(133))}()}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isNodeJS=void 0;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=a},(t,r,a)=>{a(8);t.exports=a(10)},(t,r,a)=>{a(9)({global:!0},{globalThis:a(10)})},(t,r,a)=>{var i=a(10),o=a(11).f,l=a(25),c=a(28),u=a(29),h=a(39),d=a(51);t.exports=function(t,r){var a,p,g,m,y,b=t.target,v=t.global,S=t.stat;if(a=v?i:S?i[b]||u(b,{}):(i[b]||{}).prototype)for(p in r){m=r[p];g=t.noTargetGet?(y=o(a,p))&&y.value:a[p];if(!d(v?p:b+(S?".":"#")+p,t.forced)&&void 0!==g){if(typeof m==typeof g)continue;h(m,g)}(t.sham||g&&g.sham)&&l(m,"sham",!0);c(a,p,m,t)}}},t=>{var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(t,r,a)=>{var i=a(12),o=a(14),l=a(15),c=a(16),u=a(20),h=a(22),d=a(23),p=Object.getOwnPropertyDescriptor;r.f=i?p:function getOwnPropertyDescriptor(t,r){t=c(t);r=u(r,!0);if(d)try{return p(t,r)}catch(t){}if(h(t,r))return l(!o.f.call(t,r),t[r])}},(t,r,a)=>{var i=a(13);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,r)=>{"use strict";var a={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!a.call({1:2},1);r.f=o?function propertyIsEnumerable(t){var r=i(this,t);return!!r&&r.enumerable}:a},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,a)=>{var i=a(17),o=a(19);t.exports=function(t){return i(o(t))}},(t,r,a)=>{var i=a(13),o=a(18),l="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?l.call(t,""):Object(t)}:Object},t=>{var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},(t,r,a)=>{var i=a(21);t.exports=function(t,r){if(!i(t))return t;var a,o;if(r&&"function"==typeof(a=t.toString)&&!i(o=a.call(t)))return o;if("function"==typeof(a=t.valueOf)&&!i(o=a.call(t)))return o;if(!r&&"function"==typeof(a=t.toString)&&!i(o=a.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},t=>{var r={}.hasOwnProperty;t.exports=function(t,a){return r.call(t,a)}},(t,r,a)=>{var i=a(12),o=a(13),l=a(24);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a}))},(t,r,a)=>{var i=a(10),o=a(21),l=i.document,c=o(l)&&o(l.createElement);t.exports=function(t){return c?l.createElement(t):{}}},(t,r,a)=>{var i=a(12),o=a(26),l=a(15);t.exports=i?function(t,r,a){return o.f(t,r,l(1,a))}:function(t,r,a){t[r]=a;return t}},(t,r,a)=>{var i=a(12),o=a(23),l=a(27),c=a(20),u=Object.defineProperty;r.f=i?u:function defineProperty(t,r,a){l(t);r=c(r,!0);l(a);if(o)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");"value"in a&&(t[r]=a.value);return t}},(t,r,a)=>{var i=a(21);t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},(t,r,a)=>{var i=a(10),o=a(25),l=a(22),c=a(29),u=a(30),h=a(32),d=h.get,p=h.enforce,g=String(String).split("String");(t.exports=function(t,r,a,u){var h,d=!!u&&!!u.unsafe,m=!!u&&!!u.enumerable,y=!!u&&!!u.noTargetGet;if("function"==typeof a){"string"!=typeof r||l(a,"name")||o(a,"name",r);(h=p(a)).source||(h.source=g.join("string"==typeof r?r:""))}if(t!==i){d?!y&&t[r]&&(m=!0):delete t[r];m?t[r]=a:o(t,r,a)}else m?t[r]=a:c(r,a)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&d(this).source||u(this)}))},(t,r,a)=>{var i=a(10),o=a(25);t.exports=function(t,r){try{o(i,t,r)}catch(a){i[t]=r}return r}},(t,r,a)=>{var i=a(31),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return o.call(t)});t.exports=i.inspectSource},(t,r,a)=>{var i=a(10),o=a(29),l="__core-js_shared__",c=i[l]||o(l,{});t.exports=c},(t,r,a)=>{var i,o,l,c=a(33),u=a(10),h=a(21),d=a(25),p=a(22),g=a(31),m=a(34),y=a(38),b=u.WeakMap;if(c){var v=g.state||(g.state=new b),S=v.get,k=v.has,w=v.set;i=function(t,r){r.facade=t;w.call(v,t,r);return r};o=function(t){return S.call(v,t)||{}};l=function(t){return k.call(v,t)}}else{var C=m("state");y[C]=!0;i=function(t,r){r.facade=t;d(t,C,r);return r};o=function(t){return p(t,C)?t[C]:{}};l=function(t){return p(t,C)}}t.exports={set:i,get:o,has:l,enforce:function(t){return l(t)?o(t):i(t,{})},getterFor:function(t){return function(r){var a;if(!h(r)||(a=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return a}}}},(t,r,a)=>{var i=a(10),o=a(30),l=i.WeakMap;t.exports="function"==typeof l&&/native code/.test(o(l))},(t,r,a)=>{var i=a(35),o=a(37),l=i("keys");t.exports=function(t){return l[t]||(l[t]=o(t))}},(t,r,a)=>{var i=a(36),o=a(31);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.8.3",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},t=>{t.exports=!1},t=>{var r=0,a=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+a).toString(36)}},t=>{t.exports={}},(t,r,a)=>{var i=a(22),o=a(40),l=a(11),c=a(26);t.exports=function(t,r){for(var a=o(r),u=c.f,h=l.f,d=0;d<a.length;d++){var p=a[d];i(t,p)||u(t,p,h(r,p))}}},(t,r,a)=>{var i=a(41),o=a(43),l=a(50),c=a(27);t.exports=i("Reflect","ownKeys")||function ownKeys(t){var r=o.f(c(t)),a=l.f;return a?r.concat(a(t)):r}},(t,r,a)=>{var i=a(42),o=a(10),aFunction=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(i[t])||aFunction(o[t]):i[t]&&i[t][r]||o[t]&&o[t][r]}},(t,r,a)=>{var i=a(10);t.exports=i},(t,r,a)=>{var i=a(44),o=a(49).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return i(t,o)}},(t,r,a)=>{var i=a(22),o=a(16),l=a(45).indexOf,c=a(38);t.exports=function(t,r){var a,u=o(t),h=0,d=[];for(a in u)!i(c,a)&&i(u,a)&&d.push(a);for(;r.length>h;)i(u,a=r[h++])&&(~l(d,a)||d.push(a));return d}},(t,r,a)=>{var i=a(16),o=a(46),l=a(48),createMethod=function(t){return function(r,a,c){var u,h=i(r),d=o(h.length),p=l(c,d);if(t&&a!=a){for(;d>p;)if((u=h[p++])!=u)return!0}else for(;d>p;p++)if((t||p in h)&&h[p]===a)return t||p||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,a)=>{var i=a(47),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},t=>{var r=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:r)(t)}},(t,r,a)=>{var i=a(47),o=Math.max,l=Math.min;t.exports=function(t,r){var a=i(t);return a<0?o(a+r,0):l(a,r)}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,a)=>{var i=a(13),o=/#|\.prototype\./,isForced=function(t,r){var a=c[l(t)];return a==h||a!=u&&("function"==typeof r?i(r):!!r)},l=isForced.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=isForced.data={},u=isForced.NATIVE="N",h=isForced.POLYFILL="P";t.exports=isForced},(t,r,a)=>{a(53);a(72);var i=a(42);t.exports=i.Object.fromEntries},(t,r,a)=>{"use strict";var i=a(16),o=a(54),l=a(62),c=a(32),u=a(63),h="Array Iterator",d=c.set,p=c.getterFor(h);t.exports=u(Array,"Array",(function(t,r){d(this,{type:h,target:i(t),index:0,kind:r})}),(function(){var t=p(this),r=t.target,a=t.kind,i=t.index++;if(!r||i>=r.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==a?{value:i,done:!1}:"values"==a?{value:r[i],done:!1}:{value:[i,r[i]],done:!1}}),"values");l.Arguments=l.Array;o("keys");o("values");o("entries")},(t,r,a)=>{var i=a(55),o=a(58),l=a(26),c=i("unscopables"),u=Array.prototype;null==u[c]&&l.f(u,c,{configurable:!0,value:o(null)});t.exports=function(t){u[c][t]=!0}},(t,r,a)=>{var i=a(10),o=a(35),l=a(22),c=a(37),u=a(56),h=a(57),d=o("wks"),p=i.Symbol,g=h?p:p&&p.withoutSetter||c;t.exports=function(t){l(d,t)||(u&&l(p,t)?d[t]=p[t]:d[t]=g("Symbol."+t));return d[t]}},(t,r,a)=>{var i=a(13);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},(t,r,a)=>{var i=a(56);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,a)=>{var i,o=a(27),l=a(59),c=a(49),u=a(38),h=a(61),d=a(24),p=a(34),g=p("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}NullProtoObject=i?function(t){t.write(scriptTag(""));t.close();var r=t.parentWindow.Object;t=null;return r}(i):function(){var t,r=d("iframe");r.style.display="none";h.appendChild(r);r.src=String("javascript:");(t=r.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}();for(var t=c.length;t--;)delete NullProtoObject.prototype[c[t]];return NullProtoObject()};u[g]=!0;t.exports=Object.create||function create(t,r){var a;if(null!==t){EmptyConstructor.prototype=o(t);a=new EmptyConstructor;EmptyConstructor.prototype=null;a[g]=t}else a=NullProtoObject();return void 0===r?a:l(a,r)}},(t,r,a)=>{var i=a(12),o=a(26),l=a(27),c=a(60);t.exports=i?Object.defineProperties:function defineProperties(t,r){l(t);for(var a,i=c(r),u=i.length,h=0;u>h;)o.f(t,a=i[h++],r[a]);return t}},(t,r,a)=>{var i=a(44),o=a(49);t.exports=Object.keys||function keys(t){return i(t,o)}},(t,r,a)=>{var i=a(41);t.exports=i("document","documentElement")},t=>{t.exports={}},(t,r,a)=>{"use strict";var i=a(9),o=a(64),l=a(66),c=a(70),u=a(69),h=a(25),d=a(28),p=a(55),g=a(36),m=a(62),y=a(65),b=y.IteratorPrototype,v=y.BUGGY_SAFARI_ITERATORS,S=p("iterator"),k="keys",w="values",C="entries",returnThis=function(){return this};t.exports=function(t,r,a,p,y,_,x){o(a,r,p);var A,T,P,getIterationMethod=function(t){if(t===y&&D)return D;if(!v&&t in O)return O[t];switch(t){case k:return function keys(){return new a(this,t)};case w:return function values(){return new a(this,t)};case C:return function entries(){return new a(this,t)}}return function(){return new a(this)}},R=r+" Iterator",I=!1,O=t.prototype,E=O[S]||O["@@iterator"]||y&&O[y],D=!v&&E||getIterationMethod(y),B="Array"==r&&O.entries||E;if(B){A=l(B.call(new t));if(b!==Object.prototype&&A.next){g||l(A)===b||(c?c(A,b):"function"!=typeof A[S]&&h(A,S,returnThis));u(A,R,!0,!0);g&&(m[R]=returnThis)}}if(y==w&&E&&E.name!==w){I=!0;D=function values(){return E.call(this)}}g&&!x||O[S]===D||h(O,S,D);m[r]=D;if(y){T={values:getIterationMethod(w),keys:_?D:getIterationMethod(k),entries:getIterationMethod(C)};if(x)for(P in T)(v||I||!(P in O))&&d(O,P,T[P]);else i({target:r,proto:!0,forced:v||I},T)}return T}},(t,r,a)=>{"use strict";var i=a(65).IteratorPrototype,o=a(58),l=a(15),c=a(69),u=a(62),returnThis=function(){return this};t.exports=function(t,r,a){var h=r+" Iterator";t.prototype=o(i,{next:l(1,a)});c(t,h,!1,!0);u[h]=returnThis;return t}},(t,r,a)=>{"use strict";var i,o,l,c=a(13),u=a(66),h=a(25),d=a(22),p=a(55),g=a(36),m=p("iterator"),y=!1;[].keys&&("next"in(l=[].keys())?(o=u(u(l)))!==Object.prototype&&(i=o):y=!0);var b=null==i||c((function(){var t={};return i[m].call(t)!==t}));b&&(i={});g&&!b||d(i,m)||h(i,m,(function(){return this}));t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},(t,r,a)=>{var i=a(22),o=a(67),l=a(34),c=a(68),u=l("IE_PROTO"),h=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){t=o(t);return i(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?h:null}},(t,r,a)=>{var i=a(19);t.exports=function(t){return Object(i(t))}},(t,r,a)=>{var i=a(13);t.exports=!i((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,a)=>{var i=a(26).f,o=a(22),l=a(55)("toStringTag");t.exports=function(t,r,a){t&&!o(t=a?t:t.prototype,l)&&i(t,l,{configurable:!0,value:r})}},(t,r,a)=>{var i=a(27),o=a(71);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,a={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(a,[]);r=a instanceof Array}catch(t){}return function setPrototypeOf(a,l){i(a);o(l);r?t.call(a,l):a.__proto__=l;return a}}():void 0)},(t,r,a)=>{var i=a(21);t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},(t,r,a)=>{var i=a(9),o=a(73),l=a(81);i({target:"Object",stat:!0},{fromEntries:function fromEntries(t){var r={};o(t,(function(t,a){l(r,t,a)}),{AS_ENTRIES:!0});return r}})},(t,r,a)=>{var i=a(27),o=a(74),l=a(46),c=a(75),u=a(77),h=a(80),Result=function(t,r){this.stopped=t;this.result=r};t.exports=function(t,r,a){var d,p,g,m,y,b,v,S=a&&a.that,k=!(!a||!a.AS_ENTRIES),w=!(!a||!a.IS_ITERATOR),C=!(!a||!a.INTERRUPTED),_=c(r,S,1+k+C),stop=function(t){d&&h(d);return new Result(!0,t)},callFn=function(t){if(k){i(t);return C?_(t[0],t[1],stop):_(t[0],t[1])}return C?_(t,stop):_(t)};if(w)d=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(o(p)){for(g=0,m=l(t.length);m>g;g++)if((y=callFn(t[g]))&&y instanceof Result)return y;return new Result(!1)}d=p.call(t)}b=d.next;for(;!(v=b.call(d)).done;){try{y=callFn(v.value)}catch(t){h(d);throw t}if("object"==typeof y&&y&&y instanceof Result)return y}return new Result(!1)}},(t,r,a)=>{var i=a(55),o=a(62),l=i("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[l]===t)}},(t,r,a)=>{var i=a(76);t.exports=function(t,r,a){i(t);if(void 0===r)return t;switch(a){case 0:return function(){return t.call(r)};case 1:return function(a){return t.call(r,a)};case 2:return function(a,i){return t.call(r,a,i)};case 3:return function(a,i,o){return t.call(r,a,i,o)}}return function(){return t.apply(r,arguments)}}},t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},(t,r,a)=>{var i=a(78),o=a(62),l=a(55)("iterator");t.exports=function(t){if(null!=t)return t[l]||t["@@iterator"]||o[i(t)]}},(t,r,a)=>{var i=a(79),o=a(18),l=a(55)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var r,a,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),l))?a:c?o(r):"Object"==(i=o(r))&&"function"==typeof r.callee?"Arguments":i}},(t,r,a)=>{var i={};i[a(55)("toStringTag")]="z";t.exports="[object z]"===String(i)},(t,r,a)=>{var i=a(27);t.exports=function(t){var r=t.return;if(void 0!==r)return i(r.call(t)).value}},(t,r,a)=>{"use strict";var i=a(20),o=a(26),l=a(15);t.exports=function(t,r,a){var c=i(r);c in t?o.f(t,c,l(0,a)):t[c]=a}},(t,r,a)=>{a(83);a(84);a(86);a(104);a(105);a(106);a(107);a(109);var i=a(42);t.exports=i.Promise},(t,r,a)=>{"use strict";var i=a(9),o=a(66),l=a(70),c=a(58),u=a(25),h=a(15),d=a(73),p=function AggregateError(t,r){var a=this;if(!(a instanceof p))return new p(t,r);l&&(a=l(new Error(void 0),o(a)));void 0!==r&&u(a,"message",String(r));var i=[];d(t,i.push,{that:i});u(a,"errors",i);return a};p.prototype=c(Error.prototype,{constructor:h(5,p),message:h(5,""),name:h(5,"AggregateError")});i({global:!0},{AggregateError:p})},(t,r,a)=>{var i=a(79),o=a(28),l=a(85);i||o(Object.prototype,"toString",l,{unsafe:!0})},(t,r,a)=>{"use strict";var i=a(79),o=a(78);t.exports=i?{}.toString:function toString(){return"[object "+o(this)+"]"}},(t,r,a)=>{"use strict";var i,o,l,c,u=a(9),h=a(36),d=a(10),p=a(41),g=a(87),m=a(28),y=a(88),b=a(69),v=a(89),S=a(21),k=a(76),w=a(90),C=a(30),_=a(73),x=a(91),A=a(92),T=a(93).set,P=a(97),R=a(99),I=a(101),O=a(100),E=a(102),D=a(32),B=a(51),M=a(55),L=a(96),N=a(103),j=M("species"),U="Promise",q=D.get,W=D.set,z=D.getterFor(U),G=g,H=d.TypeError,V=d.document,X=d.process,Y=p("fetch"),K=O.f,J=K,Q=!!(V&&V.createEvent&&d.dispatchEvent),Z="function"==typeof PromiseRejectionEvent,$="unhandledrejection",ee=B(U,(function(){if(!(C(G)!==String(G))){if(66===N)return!0;if(!L&&!Z)return!0}if(h&&!G.prototype.finally)return!0;if(N>=51&&/native code/.test(G))return!1;var t=G.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};(t.constructor={})[j]=FakePromise;return!(t.then((function(){}))instanceof FakePromise)})),te=ee||!x((function(t){G.all(t).catch((function(){}))})),isThenable=function(t){var r;return!(!S(t)||"function"!=typeof(r=t.then))&&r},notify=function(t,r){if(!t.notified){t.notified=!0;var a=t.reactions;P((function(){for(var i=t.value,o=1==t.state,l=0;a.length>l;){var c,u,h,d=a[l++],p=o?d.ok:d.fail,g=d.resolve,m=d.reject,y=d.domain;try{if(p){if(!o){2===t.rejection&&onHandleUnhandled(t);t.rejection=1}if(!0===p)c=i;else{y&&y.enter();c=p(i);if(y){y.exit();h=!0}}c===d.promise?m(H("Promise-chain cycle")):(u=isThenable(c))?u.call(c,g,m):g(c)}else m(i)}catch(t){y&&!h&&y.exit();m(t)}}t.reactions=[];t.notified=!1;r&&!t.rejection&&onUnhandled(t)}))}},dispatchEvent=function(t,r,a){var i,o;if(Q){(i=V.createEvent("Event")).promise=r;i.reason=a;i.initEvent(t,!1,!0);d.dispatchEvent(i)}else i={promise:r,reason:a};!Z&&(o=d["on"+t])?o(i):t===$&&I("Unhandled promise rejection",a)},onUnhandled=function(t){T.call(d,(function(){var r,a=t.facade,i=t.value;if(isUnhandled(t)){r=E((function(){L?X.emit("unhandledRejection",i,a):dispatchEvent($,a,i)}));t.rejection=L||isUnhandled(t)?2:1;if(r.error)throw r.value}}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){T.call(d,(function(){var r=t.facade;L?X.emit("rejectionHandled",r):dispatchEvent("rejectionhandled",r,t.value)}))},bind=function(t,r,a){return function(i){t(r,i,a)}},internalReject=function(t,r,a){if(!t.done){t.done=!0;a&&(t=a);t.value=r;t.state=2;notify(t,!0)}},internalResolve=function(t,r,a){if(!t.done){t.done=!0;a&&(t=a);try{if(t.facade===r)throw H("Promise can't be resolved itself");var i=isThenable(r);if(i)P((function(){var a={done:!1};try{i.call(r,bind(internalResolve,a,t),bind(internalReject,a,t))}catch(r){internalReject(a,r,t)}}));else{t.value=r;t.state=1;notify(t,!1)}}catch(r){internalReject({done:!1},r,t)}}};if(ee){G=function Promise(t){w(this,G,U);k(t);i.call(this);var r=q(this);try{t(bind(internalResolve,r),bind(internalReject,r))}catch(t){internalReject(r,t)}};(i=function Promise(t){W(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=y(G.prototype,{then:function then(t,r){var a=z(this),i=K(A(this,G));i.ok="function"!=typeof t||t;i.fail="function"==typeof r&&r;i.domain=L?X.domain:void 0;a.parent=!0;a.reactions.push(i);0!=a.state&&notify(a,!1);return i.promise},catch:function(t){return this.then(void 0,t)}});o=function(){var t=new i,r=q(t);this.promise=t;this.resolve=bind(internalResolve,r);this.reject=bind(internalReject,r)};O.f=K=function(t){return t===G||t===l?new o(t):J(t)};if(!h&&"function"==typeof g){c=g.prototype.then;m(g.prototype,"then",(function then(t,r){var a=this;return new G((function(t,r){c.call(a,t,r)})).then(t,r)}),{unsafe:!0});"function"==typeof Y&&u({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return R(G,Y.apply(d,arguments))}})}}u({global:!0,wrap:!0,forced:ee},{Promise:G});b(G,U,!1,!0);v(U);l=p(U);u({target:U,stat:!0,forced:ee},{reject:function reject(t){var r=K(this);r.reject.call(void 0,t);return r.promise}});u({target:U,stat:!0,forced:h||ee},{resolve:function resolve(t){return R(h&&this===l?G:this,t)}});u({target:U,stat:!0,forced:te},{all:function all(t){var r=this,a=K(r),i=a.resolve,o=a.reject,l=E((function(){var a=k(r.resolve),l=[],c=0,u=1;_(t,(function(t){var h=c++,d=!1;l.push(void 0);u++;a.call(r,t).then((function(t){if(!d){d=!0;l[h]=t;--u||i(l)}}),o)}));--u||i(l)}));l.error&&o(l.value);return a.promise},race:function race(t){var r=this,a=K(r),i=a.reject,o=E((function(){var o=k(r.resolve);_(t,(function(t){o.call(r,t).then(a.resolve,i)}))}));o.error&&i(o.value);return a.promise}})},(t,r,a)=>{var i=a(10);t.exports=i.Promise},(t,r,a)=>{var i=a(28);t.exports=function(t,r,a){for(var o in r)i(t,o,r[o],a);return t}},(t,r,a)=>{"use strict";var i=a(41),o=a(26),l=a(55),c=a(12),u=l("species");t.exports=function(t){var r=i(t),a=o.f;c&&r&&!r[u]&&a(r,u,{configurable:!0,get:function(){return this}})}},t=>{t.exports=function(t,r,a){if(!(t instanceof r))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return t}},(t,r,a)=>{var i=a(55)("iterator"),o=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){o=!0}};c[i]=function(){return this};Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var a=!1;try{var l={};l[i]=function(){return{next:function(){return{done:a=!0}}}};t(l)}catch(t){}return a}},(t,r,a)=>{var i=a(27),o=a(76),l=a(55)("species");t.exports=function(t,r){var a,c=i(t).constructor;return void 0===c||null==(a=i(c)[l])?r:o(a)}},(t,r,a)=>{var i,o,l,c=a(10),u=a(13),h=a(75),d=a(61),p=a(24),g=a(94),m=a(96),y=c.location,b=c.setImmediate,v=c.clearImmediate,S=c.process,k=c.MessageChannel,w=c.Dispatch,C=0,_={},x="onreadystatechange",run=function(t){if(_.hasOwnProperty(t)){var r=_[t];delete _[t];r()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){c.postMessage(t+"",y.protocol+"//"+y.host)};if(!b||!v){b=function setImmediate(t){for(var r=[],a=1;arguments.length>a;)r.push(arguments[a++]);_[++C]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)};i(C);return C};v=function clearImmediate(t){delete _[t]};if(m)i=function(t){S.nextTick(runner(t))};else if(w&&w.now)i=function(t){w.now(runner(t))};else if(k&&!g){l=(o=new k).port2;o.port1.onmessage=listener;i=h(l.postMessage,l,1)}else if(c.addEventListener&&"function"==typeof postMessage&&!c.importScripts&&y&&"file:"!==y.protocol&&!u(post)){i=post;c.addEventListener("message",listener,!1)}else i=x in p("script")?function(t){d.appendChild(p("script")).onreadystatechange=function(){d.removeChild(this);run(t)}}:function(t){setTimeout(runner(t),0)}}t.exports={set:b,clear:v}},(t,r,a)=>{var i=a(95);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},(t,r,a)=>{var i=a(41);t.exports=i("navigator","userAgent")||""},(t,r,a)=>{var i=a(18),o=a(10);t.exports="process"==i(o.process)},(t,r,a)=>{var i,o,l,c,u,h,d,p,g=a(10),m=a(11).f,y=a(93).set,b=a(94),v=a(98),S=a(96),k=g.MutationObserver||g.WebKitMutationObserver,w=g.document,C=g.process,_=g.Promise,x=m(g,"queueMicrotask"),A=x&&x.value;if(!A){i=function(){var t,r;S&&(t=C.domain)&&t.exit();for(;o;){r=o.fn;o=o.next;try{r()}catch(t){o?c():l=void 0;throw t}}l=void 0;t&&t.enter()};if(b||S||v||!k||!w)if(_&&_.resolve){d=_.resolve(void 0);p=d.then;c=function(){p.call(d,i)}}else c=S?function(){C.nextTick(i)}:function(){y.call(g,i)};else{u=!0;h=w.createTextNode("");new k(i).observe(h,{characterData:!0});c=function(){h.data=u=!u}}}t.exports=A||function(t){var r={fn:t,next:void 0};l&&(l.next=r);if(!o){o=r;c()}l=r}},(t,r,a)=>{var i=a(95);t.exports=/web0s(?!.*chrome)/i.test(i)},(t,r,a)=>{var i=a(27),o=a(21),l=a(100);t.exports=function(t,r){i(t);if(o(r)&&r.constructor===t)return r;var a=l.f(t);(0,a.resolve)(r);return a.promise}},(t,r,a)=>{"use strict";var i=a(76),PromiseCapability=function(t){var r,a;this.promise=new t((function(t,i){if(void 0!==r||void 0!==a)throw TypeError("Bad Promise constructor");r=t;a=i}));this.resolve=i(r);this.reject=i(a)};t.exports.f=function(t){return new PromiseCapability(t)}},(t,r,a)=>{var i=a(10);t.exports=function(t,r){var a=i.console;a&&a.error&&(1===arguments.length?a.error(t):a.error(t,r))}},t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},(t,r,a)=>{var i,o,l=a(10),c=a(95),u=l.process,h=u&&u.versions,d=h&&h.v8;d?o=(i=d.split("."))[0]+i[1]:c&&(!(i=c.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=c.match(/Chrome\/(\d+)/))&&(o=i[1]);t.exports=o&&+o},(t,r,a)=>{"use strict";var i=a(9),o=a(76),l=a(100),c=a(102),u=a(73);i({target:"Promise",stat:!0},{allSettled:function allSettled(t){var r=this,a=l.f(r),i=a.resolve,h=a.reject,d=c((function(){var a=o(r.resolve),l=[],c=0,h=1;u(t,(function(t){var o=c++,u=!1;l.push(void 0);h++;a.call(r,t).then((function(t){if(!u){u=!0;l[o]={status:"fulfilled",value:t};--h||i(l)}}),(function(t){if(!u){u=!0;l[o]={status:"rejected",reason:t};--h||i(l)}}))}));--h||i(l)}));d.error&&h(d.value);return a.promise}})},(t,r,a)=>{"use strict";var i=a(9),o=a(76),l=a(41),c=a(100),u=a(102),h=a(73),d="No one promise resolved";i({target:"Promise",stat:!0},{any:function any(t){var r=this,a=c.f(r),i=a.resolve,p=a.reject,g=u((function(){var a=o(r.resolve),c=[],u=0,g=1,m=!1;h(t,(function(t){var o=u++,h=!1;c.push(void 0);g++;a.call(r,t).then((function(t){if(!h&&!m){m=!0;i(t)}}),(function(t){if(!h&&!m){h=!0;c[o]=t;--g||p(new(l("AggregateError"))(c,d))}}))}));--g||p(new(l("AggregateError"))(c,d))}));g.error&&p(g.value);return a.promise}})},(t,r,a)=>{"use strict";var i=a(9),o=a(36),l=a(87),c=a(13),u=a(41),h=a(92),d=a(99),p=a(28);i({target:"Promise",proto:!0,real:!0,forced:!!l&&c((function(){l.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=h(this,u("Promise")),a="function"==typeof t;return this.then(a?function(a){return d(r,t()).then((function(){return a}))}:t,a?function(a){return d(r,t()).then((function(){throw a}))}:t)}});o||"function"!=typeof l||l.prototype.finally||p(l.prototype,"finally",u("Promise").prototype.finally)},(t,r,a)=>{"use strict";var i=a(108).charAt,o=a(32),l=a(63),c="String Iterator",u=o.set,h=o.getterFor(c);l(String,"String",(function(t){u(this,{type:c,string:String(t),index:0})}),(function next(){var t,r=h(this),a=r.string,o=r.index;if(o>=a.length)return{value:void 0,done:!0};t=i(a,o);r.index+=t.length;return{value:t,done:!1}}))},(t,r,a)=>{var i=a(47),o=a(19),createMethod=function(t){return function(r,a){var l,c,u=String(o(r)),h=i(a),d=u.length;return h<0||h>=d?t?"":void 0:(l=u.charCodeAt(h))<55296||l>56319||h+1===d||(c=u.charCodeAt(h+1))<56320||c>57343?t?u.charAt(h):l:t?u.slice(h,h+2):c-56320+(l-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},(t,r,a)=>{var i=a(10),o=a(110),l=a(53),c=a(25),u=a(55),h=u("iterator"),d=u("toStringTag"),p=l.values;for(var g in o){var m=i[g],y=m&&m.prototype;if(y){if(y[h]!==p)try{c(y,h,p)}catch(t){y[h]=p}y[d]||c(y,d,g);if(o[g])for(var b in l)if(y[b]!==l[b])try{c(y,b,l[b])}catch(t){y[b]=l[b]}}}},t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},(t,r,a)=>{a(112);a(120);a(118);var i=a(42);t.exports=i.URL},(t,r,a)=>{"use strict";a(107);var i,o=a(9),l=a(12),c=a(113),u=a(10),h=a(59),d=a(28),p=a(90),g=a(22),m=a(114),y=a(115),b=a(108).codeAt,v=a(117),S=a(69),k=a(118),w=a(32),C=u.URL,_=k.URLSearchParams,x=k.getState,A=w.set,T=w.getterFor("URL"),P=Math.floor,R=Math.pow,I="Invalid scheme",O="Invalid host",E="Invalid port",D=/[A-Za-z]/,B=/[\d+-.A-Za-z]/,M=/\d/,L=/^(0x|0X)/,N=/^[0-7]+$/,j=/^\d+$/,U=/^[\dA-Fa-f]+$/,q=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,W=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,G=/[\u0009\u000A\u000D]/g,parseHost=function(t,r){var a,i,o;if("["==r.charAt(0)){if("]"!=r.charAt(r.length-1))return O;if(!(a=parseIPv6(r.slice(1,-1))))return O;t.host=a}else if(isSpecial(t)){r=v(r);if(q.test(r))return O;if(null===(a=parseIPv4(r)))return O;t.host=a}else{if(W.test(r))return O;a="";i=y(r);for(o=0;o<i.length;o++)a+=percentEncode(i[o],H);t.host=a}},parseIPv4=function(t){var r,a,i,o,l,c,u,h=t.split(".");h.length&&""==h[h.length-1]&&h.pop();if((r=h.length)>4)return t;a=[];for(i=0;i<r;i++){if(""==(o=h[i]))return t;l=10;if(o.length>1&&"0"==o.charAt(0)){l=L.test(o)?16:8;o=o.slice(8==l?1:2)}if(""===o)c=0;else{if(!(10==l?j:8==l?N:U).test(o))return t;c=parseInt(o,l)}a.push(c)}for(i=0;i<r;i++){c=a[i];if(i==r-1){if(c>=R(256,5-r))return null}else if(c>255)return null}u=a.pop();for(i=0;i<a.length;i++)u+=a[i]*R(256,3-i);return u},parseIPv6=function(t){var r,a,i,o,l,c,u,h=[0,0,0,0,0,0,0,0],d=0,p=null,g=0,char=function(){return t.charAt(g)};if(":"==char()){if(":"!=t.charAt(1))return;g+=2;p=++d}for(;char();){if(8==d)return;if(":"!=char()){r=a=0;for(;a<4&&U.test(char());){r=16*r+parseInt(char(),16);g++;a++}if("."==char()){if(0==a)return;g-=a;if(d>6)return;i=0;for(;char();){o=null;if(i>0){if(!("."==char()&&i<4))return;g++}if(!M.test(char()))return;for(;M.test(char());){l=parseInt(char(),10);if(null===o)o=l;else{if(0==o)return;o=10*o+l}if(o>255)return;g++}h[d]=256*h[d]+o;2!=++i&&4!=i||d++}if(4!=i)return;break}if(":"==char()){g++;if(!char())return}else if(char())return;h[d++]=r}else{if(null!==p)return;g++;p=++d}}if(null!==p){c=d-p;d=7;for(;0!=d&&c>0;){u=h[d];h[d--]=h[p+c-1];h[p+--c]=u}}else if(8!=d)return;return h},serializeHost=function(t){var r,a,i,o;if("number"==typeof t){r=[];for(a=0;a<4;a++){r.unshift(t%256);t=P(t/256)}return r.join(".")}if("object"==typeof t){r="";i=function(t){for(var r=null,a=1,i=null,o=0,l=0;l<8;l++)if(0!==t[l]){if(o>a){r=i;a=o}i=null;o=0}else{null===i&&(i=l);++o}if(o>a){r=i;a=o}return r}(t);for(a=0;a<8;a++)if(!o||0!==t[a]){o&&(o=!1);if(i===a){r+=a?":":"::";o=!0}else{r+=t[a].toString(16);a<7&&(r+=":")}}return"["+r+"]"}return t},H={},V=m({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),X=m({},V,{"#":1,"?":1,"{":1,"}":1}),Y=m({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(t,r){var a=b(t,0);return a>32&&a<127&&!g(r,t)?t:encodeURIComponent(t)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(t){return g(K,t.scheme)},includesCredentials=function(t){return""!=t.username||""!=t.password},cannotHaveUsernamePasswordPort=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},isWindowsDriveLetter=function(t,r){var a;return 2==t.length&&D.test(t.charAt(0))&&(":"==(a=t.charAt(1))||!r&&"|"==a)},startsWithWindowsDriveLetter=function(t){var r;return t.length>1&&isWindowsDriveLetter(t.slice(0,2))&&(2==t.length||"/"===(r=t.charAt(2))||"\\"===r||"?"===r||"#"===r)},shortenURLsPath=function(t){var r=t.path,a=r.length;!a||"file"==t.scheme&&1==a&&isWindowsDriveLetter(r[0],!0)||r.pop()},isSingleDot=function(t){return"."===t||"%2e"===t.toLowerCase()},J={},Q={},Z={},$={},ee={},te={},re={},ae={},ne={},ie={},oe={},se={},le={},ce={},ue={},fe={},he={},de={},pe={},ge={},me={},parseURL=function(t,r,a,o){var l,c,u,h,d,p=a||J,m=0,b="",v=!1,S=!1,k=!1;if(!a){t.scheme="";t.username="";t.password="";t.host=null;t.port=null;t.path=[];t.query=null;t.fragment=null;t.cannotBeABaseURL=!1;r=r.replace(z,"")}r=r.replace(G,"");l=y(r);for(;m<=l.length;){c=l[m];switch(p){case J:if(!c||!D.test(c)){if(a)return I;p=Z;continue}b+=c.toLowerCase();p=Q;break;case Q:if(c&&(B.test(c)||"+"==c||"-"==c||"."==c))b+=c.toLowerCase();else{if(":"!=c){if(a)return I;b="";p=Z;m=0;continue}if(a&&(isSpecial(t)!=g(K,b)||"file"==b&&(includesCredentials(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;t.scheme=b;if(a){isSpecial(t)&&K[t.scheme]==t.port&&(t.port=null);return}b="";if("file"==t.scheme)p=ce;else if(isSpecial(t)&&o&&o.scheme==t.scheme)p=$;else if(isSpecial(t))p=ae;else if("/"==l[m+1]){p=ee;m++}else{t.cannotBeABaseURL=!0;t.path.push("");p=pe}}break;case Z:if(!o||o.cannotBeABaseURL&&"#"!=c)return I;if(o.cannotBeABaseURL&&"#"==c){t.scheme=o.scheme;t.path=o.path.slice();t.query=o.query;t.fragment="";t.cannotBeABaseURL=!0;p=me;break}p="file"==o.scheme?ce:te;continue;case $:if("/"!=c||"/"!=l[m+1]){p=te;continue}p=ne;m++;break;case ee:if("/"==c){p=ie;break}p=de;continue;case te:t.scheme=o.scheme;if(c==i){t.username=o.username;t.password=o.password;t.host=o.host;t.port=o.port;t.path=o.path.slice();t.query=o.query}else if("/"==c||"\\"==c&&isSpecial(t))p=re;else if("?"==c){t.username=o.username;t.password=o.password;t.host=o.host;t.port=o.port;t.path=o.path.slice();t.query="";p=ge}else{if("#"!=c){t.username=o.username;t.password=o.password;t.host=o.host;t.port=o.port;t.path=o.path.slice();t.path.pop();p=de;continue}t.username=o.username;t.password=o.password;t.host=o.host;t.port=o.port;t.path=o.path.slice();t.query=o.query;t.fragment="";p=me}break;case re:if(!isSpecial(t)||"/"!=c&&"\\"!=c){if("/"!=c){t.username=o.username;t.password=o.password;t.host=o.host;t.port=o.port;p=de;continue}p=ie}else p=ne;break;case ae:p=ne;if("/"!=c||"/"!=b.charAt(m+1))continue;m++;break;case ne:if("/"!=c&&"\\"!=c){p=ie;continue}break;case ie:if("@"==c){v&&(b="%40"+b);v=!0;u=y(b);for(var w=0;w<u.length;w++){var C=u[w];if(":"!=C||k){var _=percentEncode(C,Y);k?t.password+=_:t.username+=_}else k=!0}b=""}else if(c==i||"/"==c||"?"==c||"#"==c||"\\"==c&&isSpecial(t)){if(v&&""==b)return"Invalid authority";m-=y(b).length+1;b="";p=oe}else b+=c;break;case oe:case se:if(a&&"file"==t.scheme){p=fe;continue}if(":"!=c||S){if(c==i||"/"==c||"?"==c||"#"==c||"\\"==c&&isSpecial(t)){if(isSpecial(t)&&""==b)return O;if(a&&""==b&&(includesCredentials(t)||null!==t.port))return;if(h=parseHost(t,b))return h;b="";p=he;if(a)return;continue}"["==c?S=!0:"]"==c&&(S=!1);b+=c}else{if(""==b)return O;if(h=parseHost(t,b))return h;b="";p=le;if(a==se)return}break;case le:if(!M.test(c)){if(c==i||"/"==c||"?"==c||"#"==c||"\\"==c&&isSpecial(t)||a){if(""!=b){var x=parseInt(b,10);if(x>65535)return E;t.port=isSpecial(t)&&x===K[t.scheme]?null:x;b=""}if(a)return;p=he;continue}return E}b+=c;break;case ce:t.scheme="file";if("/"==c||"\\"==c)p=ue;else{if(!o||"file"!=o.scheme){p=de;continue}if(c==i){t.host=o.host;t.path=o.path.slice();t.query=o.query}else if("?"==c){t.host=o.host;t.path=o.path.slice();t.query="";p=ge}else{if("#"!=c){if(!startsWithWindowsDriveLetter(l.slice(m).join(""))){t.host=o.host;t.path=o.path.slice();shortenURLsPath(t)}p=de;continue}t.host=o.host;t.path=o.path.slice();t.query=o.query;t.fragment="";p=me}}break;case ue:if("/"==c||"\\"==c){p=fe;break}o&&"file"==o.scheme&&!startsWithWindowsDriveLetter(l.slice(m).join(""))&&(isWindowsDriveLetter(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host);p=de;continue;case fe:if(c==i||"/"==c||"\\"==c||"?"==c||"#"==c){if(!a&&isWindowsDriveLetter(b))p=de;else if(""==b){t.host="";if(a)return;p=he}else{if(h=parseHost(t,b))return h;"localhost"==t.host&&(t.host="");if(a)return;b="";p=he}continue}b+=c;break;case he:if(isSpecial(t)){p=de;if("/"!=c&&"\\"!=c)continue}else if(a||"?"!=c)if(a||"#"!=c){if(c!=i){p=de;if("/"!=c)continue}}else{t.fragment="";p=me}else{t.query="";p=ge}break;case de:if(c==i||"/"==c||"\\"==c&&isSpecial(t)||!a&&("?"==c||"#"==c)){if(".."===(d=(d=b).toLowerCase())||"%2e."===d||".%2e"===d||"%2e%2e"===d){shortenURLsPath(t);"/"==c||"\\"==c&&isSpecial(t)||t.path.push("")}else if(isSingleDot(b))"/"==c||"\\"==c&&isSpecial(t)||t.path.push("");else{if("file"==t.scheme&&!t.path.length&&isWindowsDriveLetter(b)){t.host&&(t.host="");b=b.charAt(0)+":"}t.path.push(b)}b="";if("file"==t.scheme&&(c==i||"?"==c||"#"==c))for(;t.path.length>1&&""===t.path[0];)t.path.shift();if("?"==c){t.query="";p=ge}else if("#"==c){t.fragment="";p=me}}else b+=percentEncode(c,X);break;case pe:if("?"==c){t.query="";p=ge}else if("#"==c){t.fragment="";p=me}else c!=i&&(t.path[0]+=percentEncode(c,H));break;case ge:if(a||"#"!=c)c!=i&&("'"==c&&isSpecial(t)?t.query+="%27":t.query+="#"==c?"%23":percentEncode(c,H));else{t.fragment="";p=me}break;case me:c!=i&&(t.fragment+=percentEncode(c,V))}m++}},ye=function URL(t){var r,a,i=p(this,ye,"URL"),o=arguments.length>1?arguments[1]:void 0,c=String(t),u=A(i,{type:"URL"});if(void 0!==o)if(o instanceof ye)r=T(o);else if(a=parseURL(r={},String(o)))throw TypeError(a);if(a=parseURL(u,c,null,r))throw TypeError(a);var h=u.searchParams=new _,d=x(h);d.updateSearchParams(u.query);d.updateURL=function(){u.query=String(h)||null};if(!l){i.href=serializeURL.call(i);i.origin=getOrigin.call(i);i.protocol=getProtocol.call(i);i.username=getUsername.call(i);i.password=getPassword.call(i);i.host=getHost.call(i);i.hostname=getHostname.call(i);i.port=getPort.call(i);i.pathname=getPathname.call(i);i.search=getSearch.call(i);i.searchParams=getSearchParams.call(i);i.hash=getHash.call(i)}},be=ye.prototype,serializeURL=function(){var t=T(this),r=t.scheme,a=t.username,i=t.password,o=t.host,l=t.port,c=t.path,u=t.query,h=t.fragment,d=r+":";if(null!==o){d+="//";includesCredentials(t)&&(d+=a+(i?":"+i:"")+"@");d+=serializeHost(o);null!==l&&(d+=":"+l)}else"file"==r&&(d+="//");d+=t.cannotBeABaseURL?c[0]:c.length?"/"+c.join("/"):"";null!==u&&(d+="?"+u);null!==h&&(d+="#"+h);return d},getOrigin=function(){var t=T(this),r=t.scheme,a=t.port;if("blob"==r)try{return new URL(r.path[0]).origin}catch(t){return"null"}return"file"!=r&&isSpecial(t)?r+"://"+serializeHost(t.host)+(null!==a?":"+a:""):"null"},getProtocol=function(){return T(this).scheme+":"},getUsername=function(){return T(this).username},getPassword=function(){return T(this).password},getHost=function(){var t=T(this),r=t.host,a=t.port;return null===r?"":null===a?serializeHost(r):serializeHost(r)+":"+a},getHostname=function(){var t=T(this).host;return null===t?"":serializeHost(t)},getPort=function(){var t=T(this).port;return null===t?"":String(t)},getPathname=function(){var t=T(this),r=t.path;return t.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},getSearch=function(){var t=T(this).query;return t?"?"+t:""},getSearchParams=function(){return T(this).searchParams},getHash=function(){var t=T(this).fragment;return t?"#"+t:""},accessorDescriptor=function(t,r){return{get:t,set:r,configurable:!0,enumerable:!0}};l&&h(be,{href:accessorDescriptor(serializeURL,(function(t){var r=T(this),a=String(t),i=parseURL(r,a);if(i)throw TypeError(i);x(r.searchParams).updateSearchParams(r.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(t){var r=T(this);parseURL(r,String(t)+":",J)})),username:accessorDescriptor(getUsername,(function(t){var r=T(this),a=y(String(t));if(!cannotHaveUsernamePasswordPort(r)){r.username="";for(var i=0;i<a.length;i++)r.username+=percentEncode(a[i],Y)}})),password:accessorDescriptor(getPassword,(function(t){var r=T(this),a=y(String(t));if(!cannotHaveUsernamePasswordPort(r)){r.password="";for(var i=0;i<a.length;i++)r.password+=percentEncode(a[i],Y)}})),host:accessorDescriptor(getHost,(function(t){var r=T(this);r.cannotBeABaseURL||parseURL(r,String(t),oe)})),hostname:accessorDescriptor(getHostname,(function(t){var r=T(this);r.cannotBeABaseURL||parseURL(r,String(t),se)})),port:accessorDescriptor(getPort,(function(t){var r=T(this);cannotHaveUsernamePasswordPort(r)||(""==(t=String(t))?r.port=null:parseURL(r,t,le))})),pathname:accessorDescriptor(getPathname,(function(t){var r=T(this);if(!r.cannotBeABaseURL){r.path=[];parseURL(r,t+"",he)}})),search:accessorDescriptor(getSearch,(function(t){var r=T(this);if(""==(t=String(t)))r.query=null;else{"?"==t.charAt(0)&&(t=t.slice(1));r.query="";parseURL(r,t,ge)}x(r.searchParams).updateSearchParams(r.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(t){var r=T(this);if(""!=(t=String(t))){"#"==t.charAt(0)&&(t=t.slice(1));r.fragment="";parseURL(r,t,me)}else r.fragment=null}))});d(be,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0});d(be,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0});if(C){var ve=C.createObjectURL,Se=C.revokeObjectURL;ve&&d(ye,"createObjectURL",(function createObjectURL(t){return ve.apply(C,arguments)}));Se&&d(ye,"revokeObjectURL",(function revokeObjectURL(t){return Se.apply(C,arguments)}))}S(ye,"URL");o({global:!0,forced:!c,sham:!l},{URL:ye})},(t,r,a)=>{var i=a(13),o=a(55),l=a(36),c=o("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,a="";t.pathname="c%20d";r.forEach((function(t,i){r.delete("b");a+=i+t}));return l&&!t.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==a||"x"!==new URL("http://x",void 0).host}))},(t,r,a)=>{"use strict";var i=a(12),o=a(13),l=a(60),c=a(50),u=a(14),h=a(67),d=a(17),p=Object.assign,g=Object.defineProperty;t.exports=!p||o((function(){if(i&&1!==p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},a=Symbol(),o="abcdefghijklmnopqrst";t[a]=7;o.split("").forEach((function(t){r[t]=t}));return 7!=p({},t)[a]||l(p({},r)).join("")!=o}))?function assign(t,r){for(var a=h(t),o=arguments.length,p=1,g=c.f,m=u.f;o>p;)for(var y,b=d(arguments[p++]),v=g?l(b).concat(g(b)):l(b),S=v.length,k=0;S>k;){y=v[k++];i&&!m.call(b,y)||(a[y]=b[y])}return a}:p},(t,r,a)=>{"use strict";var i=a(75),o=a(67),l=a(116),c=a(74),u=a(46),h=a(81),d=a(77);t.exports=function from(t){var r,a,p,g,m,y,b=o(t),v="function"==typeof this?this:Array,S=arguments.length,k=S>1?arguments[1]:void 0,w=void 0!==k,C=d(b),_=0;w&&(k=i(k,S>2?arguments[2]:void 0,2));if(null==C||v==Array&&c(C)){a=new v(r=u(b.length));for(;r>_;_++){y=w?k(b[_],_):b[_];h(a,_,y)}}else{m=(g=C.call(b)).next;a=new v;for(;!(p=m.call(g)).done;_++){y=w?l(g,k,[p.value,_],!0):p.value;h(a,_,y)}}a.length=_;return a}},(t,r,a)=>{var i=a(27),o=a(80);t.exports=function(t,r,a,l){try{return l?r(i(a)[0],a[1]):r(a)}catch(r){o(t);throw r}}},t=>{"use strict";var r=2147483647,a=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",l=Math.floor,c=String.fromCharCode,digitToBasic=function(t){return t+22+75*(t<26)},adapt=function(t,r,a){var i=0;t=a?l(t/700):t>>1;t+=l(t/r);for(;t>455;i+=36)t=l(t/35);return l(i+36*t/(t+38))},encode=function(t){var a,i,u=[],h=(t=function(t){for(var r=[],a=0,i=t.length;a<i;){var o=t.charCodeAt(a++);if(o>=55296&&o<=56319&&a<i){var l=t.charCodeAt(a++);if(56320==(64512&l))r.push(((1023&o)<<10)+(1023&l)+65536);else{r.push(o);a--}}else r.push(o)}return r}(t)).length,d=128,p=0,g=72;for(a=0;a<t.length;a++)(i=t[a])<128&&u.push(c(i));var m=u.length,y=m;m&&u.push("-");for(;y<h;){var b=r;for(a=0;a<t.length;a++)(i=t[a])>=d&&i<b&&(b=i);var v=y+1;if(b-d>l((r-p)/v))throw RangeError(o);p+=(b-d)*v;d=b;for(a=0;a<t.length;a++){if((i=t[a])<d&&++p>r)throw RangeError(o);if(i==d){for(var S=p,k=36;;k+=36){var w=k<=g?1:k>=g+26?26:k-g;if(S<w)break;var C=S-w,_=36-w;u.push(c(digitToBasic(w+C%_)));S=l(C/_)}u.push(c(digitToBasic(S)));g=adapt(p,v,y==m);p=0;++y}}++p;++d}return u.join("")};t.exports=function(t){var r,o,l=[],c=t.toLowerCase().replace(i,".").split(".");for(r=0;r<c.length;r++){o=c[r];l.push(a.test(o)?"xn--"+encode(o):o)}return l.join(".")}},(t,r,a)=>{"use strict";a(53);var i=a(9),o=a(41),l=a(113),c=a(28),u=a(88),h=a(69),d=a(64),p=a(32),g=a(90),m=a(22),y=a(75),b=a(78),v=a(27),S=a(21),k=a(58),w=a(15),C=a(119),_=a(77),x=a(55),A=o("fetch"),T=o("Headers"),P=x("iterator"),R="URLSearchParams",I="URLSearchParamsIterator",O=p.set,E=p.getterFor(R),D=p.getterFor(I),B=/\+/g,M=Array(4),percentSequence=function(t){return M[t-1]||(M[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},percentDecode=function(t){try{return decodeURIComponent(t)}catch(r){return t}},deserialize=function(t){var r=t.replace(B," "),a=4;try{return decodeURIComponent(r)}catch(t){for(;a;)r=r.replace(percentSequence(a--),percentDecode);return r}},L=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(t){return N[t]},serialize=function(t){return encodeURIComponent(t).replace(L,replacer)},parseSearchParams=function(t,r){if(r)for(var a,i,o=r.split("&"),l=0;l<o.length;)if((a=o[l++]).length){i=a.split("=");t.push({key:deserialize(i.shift()),value:deserialize(i.join("="))})}},updateSearchParams=function(t){this.entries.length=0;parseSearchParams(this.entries,t)},validateArgumentsLength=function(t,r){if(t<r)throw TypeError("Not enough arguments")},j=d((function Iterator(t,r){O(this,{type:I,iterator:C(E(t).entries),kind:r})}),"Iterator",(function next(){var t=D(this),r=t.kind,a=t.iterator.next(),i=a.value;a.done||(a.value="keys"===r?i.key:"values"===r?i.value:[i.key,i.value]);return a})),U=function URLSearchParams(){g(this,U,R);var t,r,a,i,o,l,c,u,h,d=arguments.length>0?arguments[0]:void 0,p=this,y=[];O(p,{type:R,entries:y,updateURL:function(){},updateSearchParams:updateSearchParams});if(void 0!==d)if(S(d))if("function"==typeof(t=_(d))){a=(r=t.call(d)).next;for(;!(i=a.call(r)).done;){if((c=(l=(o=C(v(i.value))).next).call(o)).done||(u=l.call(o)).done||!l.call(o).done)throw TypeError("Expected sequence with length 2");y.push({key:c.value+"",value:u.value+""})}}else for(h in d)m(d,h)&&y.push({key:h,value:d[h]+""});else parseSearchParams(y,"string"==typeof d?"?"===d.charAt(0)?d.slice(1):d:d+"")},q=U.prototype;u(q,{append:function append(t,r){validateArgumentsLength(arguments.length,2);var a=E(this);a.entries.push({key:t+"",value:r+""});a.updateURL()},delete:function(t){validateArgumentsLength(arguments.length,1);for(var r=E(this),a=r.entries,i=t+"",o=0;o<a.length;)a[o].key===i?a.splice(o,1):o++;r.updateURL()},get:function get(t){validateArgumentsLength(arguments.length,1);for(var r=E(this).entries,a=t+"",i=0;i<r.length;i++)if(r[i].key===a)return r[i].value;return null},getAll:function getAll(t){validateArgumentsLength(arguments.length,1);for(var r=E(this).entries,a=t+"",i=[],o=0;o<r.length;o++)r[o].key===a&&i.push(r[o].value);return i},has:function has(t){validateArgumentsLength(arguments.length,1);for(var r=E(this).entries,a=t+"",i=0;i<r.length;)if(r[i++].key===a)return!0;return!1},set:function set(t,r){validateArgumentsLength(arguments.length,1);for(var a,i=E(this),o=i.entries,l=!1,c=t+"",u=r+"",h=0;h<o.length;h++)if((a=o[h]).key===c)if(l)o.splice(h--,1);else{l=!0;a.value=u}l||o.push({key:c,value:u});i.updateURL()},sort:function sort(){var t,r,a,i=E(this),o=i.entries,l=o.slice();o.length=0;for(a=0;a<l.length;a++){t=l[a];for(r=0;r<a;r++)if(o[r].key>t.key){o.splice(r,0,t);break}r===a&&o.push(t)}i.updateURL()},forEach:function forEach(t){for(var r,a=E(this).entries,i=y(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<a.length;)i((r=a[o++]).value,r.key,this)},keys:function keys(){return new j(this,"keys")},values:function values(){return new j(this,"values")},entries:function entries(){return new j(this,"entries")}},{enumerable:!0});c(q,P,q.entries);c(q,"toString",(function toString(){for(var t,r=E(this).entries,a=[],i=0;i<r.length;){t=r[i++];a.push(serialize(t.key)+"="+serialize(t.value))}return a.join("&")}),{enumerable:!0});h(U,R);i({global:!0,forced:!l},{URLSearchParams:U});l||"function"!=typeof A||"function"!=typeof T||i({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){var r,a,i,o=[t];if(arguments.length>1){if(S(r=arguments[1])){a=r.body;if(b(a)===R){(i=r.headers?new T(r.headers):new T).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");r=k(r,{body:w(0,String(a)),headers:w(0,i)})}}o.push(r)}return A.apply(this,o)}});t.exports={URLSearchParams:U,getState:E}},(t,r,a)=>{var i=a(27),o=a(77);t.exports=function(t){var r=o(t);if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return i(r.call(t))}},(t,r,a)=>{"use strict";a(9)({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}})},function(t,r){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function noop(){}var a=function getGlobals(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0}();function typeIsObject(t){return"object"==typeof t&&null!==t||"function"==typeof t}var i=noop,o=Promise,l=Promise.prototype.then,c=Promise.resolve.bind(o),u=Promise.reject.bind(o);function newPromise(t){return new o(t)}function promiseResolvedWith(t){return c(t)}function promiseRejectedWith(t){return u(t)}function PerformPromiseThen(t,r,a){return l.call(t,r,a)}function uponPromise(t,r,a){PerformPromiseThen(PerformPromiseThen(t,r,a),void 0,i)}function uponFulfillment(t,r){uponPromise(t,r)}function uponRejection(t,r){uponPromise(t,void 0,r)}function transformPromiseWith(t,r,a){return PerformPromiseThen(t,r,a)}function setPromiseIsHandledToTrue(t){PerformPromiseThen(t,void 0,i)}var h=function(){var t=a&&a.queueMicrotask;if("function"==typeof t)return t;var r=promiseResolvedWith(void 0);return function(t){return PerformPromiseThen(r,t)}}();function reflectCall(t,r,a){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,r,a)}function promiseCall(t,r,a){try{return promiseResolvedWith(reflectCall(t,r,a))}catch(t){return promiseRejectedWith(t)}}var d=function(){function SimpleQueue(){this._cursor=0;this._size=0;this._front={_elements:[],_next:void 0};this._back=this._front;this._cursor=0;this._size=0}Object.defineProperty(SimpleQueue.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0});SimpleQueue.prototype.push=function(t){var r=this._back,a=r;16383===r._elements.length&&(a={_elements:[],_next:void 0});r._elements.push(t);if(a!==r){this._back=a;r._next=a}++this._size};SimpleQueue.prototype.shift=function(){var t=this._front,r=t,a=this._cursor,i=a+1,o=t._elements,l=o[a];if(16384===i){r=t._next;i=0}--this._size;this._cursor=i;t!==r&&(this._front=r);o[a]=void 0;return l};SimpleQueue.prototype.forEach=function(t){for(var r=this._cursor,a=this._front,i=a._elements;r!==i.length||void 0!==a._next;){if(r===i.length){r=0;if(0===(i=(a=a._next)._elements).length)break}t(i[r]);++r}};SimpleQueue.prototype.peek=function(){var t=this._front,r=this._cursor;return t._elements[r]};return SimpleQueue}();function ReadableStreamReaderGenericInitialize(t,r){t._ownerReadableStream=r;r._reader=t;"readable"===r._state?defaultReaderClosedPromiseInitialize(t):"closed"===r._state?function defaultReaderClosedPromiseInitializeAsResolved(t){defaultReaderClosedPromiseInitialize(t);defaultReaderClosedPromiseResolve(t)}(t):defaultReaderClosedPromiseInitializeAsRejected(t,r._storedError)}function ReadableStreamReaderGenericCancel(t,r){return ReadableStreamCancel(t._ownerReadableStream,r)}function ReadableStreamReaderGenericRelease(t){"readable"===t._ownerReadableStream._state?defaultReaderClosedPromiseReject(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function defaultReaderClosedPromiseResetToRejected(t,r){defaultReaderClosedPromiseInitializeAsRejected(t,r)}(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"));t._ownerReadableStream._reader=void 0;t._ownerReadableStream=void 0}function readerLockException(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function defaultReaderClosedPromiseInitialize(t){t._closedPromise=newPromise((function(r,a){t._closedPromise_resolve=r;t._closedPromise_reject=a}))}function defaultReaderClosedPromiseInitializeAsRejected(t,r){defaultReaderClosedPromiseInitialize(t);defaultReaderClosedPromiseReject(t,r)}function defaultReaderClosedPromiseReject(t,r){if(void 0!==t._closedPromise_reject){setPromiseIsHandledToTrue(t._closedPromise);t._closedPromise_reject(r);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0}}function defaultReaderClosedPromiseResolve(t){if(void 0!==t._closedPromise_resolve){t._closedPromise_resolve(void 0);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0}}var p=r("[[AbortSteps]]"),g=r("[[ErrorSteps]]"),m=r("[[CancelSteps]]"),y=r("[[PullSteps]]"),b=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},v=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};function assertDictionary(t,r){if(void 0!==t&&!function isDictionary(t){return"object"==typeof t||"function"==typeof t}(t))throw new TypeError(r+" is not an object.")}function assertFunction(t,r){if("function"!=typeof t)throw new TypeError(r+" is not a function.")}function assertObject(t,r){if(!function isObject(t){return"object"==typeof t&&null!==t||"function"==typeof t}(t))throw new TypeError(r+" is not an object.")}function assertRequiredArgument(t,r,a){if(void 0===t)throw new TypeError("Parameter "+r+" is required in '"+a+"'.")}function assertRequiredField(t,r,a){if(void 0===t)throw new TypeError(r+" is required in '"+a+"'.")}function convertUnrestrictedDouble(t){return Number(t)}function censorNegativeZero(t){return 0===t?0:t}function convertUnsignedLongLongWithEnforceRange(t,r){var a=Number.MAX_SAFE_INTEGER,i=Number(t);i=censorNegativeZero(i);if(!b(i))throw new TypeError(r+" is not a finite number");if((i=function integerPart(t){return censorNegativeZero(v(t))}(i))<0||i>a)throw new TypeError(r+" is outside the accepted range of 0 to "+a+", inclusive");return b(i)&&0!==i?i:0}function assertReadableStream(t,r){if(!IsReadableStream(t))throw new TypeError(r+" is not a ReadableStream.")}function AcquireReadableStreamDefaultReader(t){return new w(t)}function ReadableStreamAddReadRequest(t,r){t._reader._readRequests.push(r)}function ReadableStreamFulfillReadRequest(t,r,a){var i=t._reader._readRequests.shift();a?i._closeSteps():i._chunkSteps(r)}function ReadableStreamGetNumReadRequests(t){return t._reader._readRequests.length}function ReadableStreamHasDefaultReader(t){var r=t._reader;return void 0!==r&&!!IsReadableStreamDefaultReader(r)}var S,k,w=function(){function ReadableStreamDefaultReader(t){assertRequiredArgument(t,1,"ReadableStreamDefaultReader");assertReadableStream(t,"First parameter");if(IsReadableStreamLocked(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");ReadableStreamReaderGenericInitialize(this,t);this._readRequests=new d}Object.defineProperty(ReadableStreamDefaultReader.prototype,"closed",{get:function(){return IsReadableStreamDefaultReader(this)?this._closedPromise:promiseRejectedWith(defaultReaderBrandCheckException("closed"))},enumerable:!1,configurable:!0});ReadableStreamDefaultReader.prototype.cancel=function(t){void 0===t&&(t=void 0);return IsReadableStreamDefaultReader(this)?void 0===this._ownerReadableStream?promiseRejectedWith(readerLockException("cancel")):ReadableStreamReaderGenericCancel(this,t):promiseRejectedWith(defaultReaderBrandCheckException("cancel"))};ReadableStreamDefaultReader.prototype.read=function(){if(!IsReadableStreamDefaultReader(this))return promiseRejectedWith(defaultReaderBrandCheckException("read"));if(void 0===this._ownerReadableStream)return promiseRejectedWith(readerLockException("read from"));var t,r,a=newPromise((function(a,i){t=a;r=i}));ReadableStreamDefaultReaderRead(this,{_chunkSteps:function(r){return t({value:r,done:!1})},_closeSteps:function(){return t({value:void 0,done:!0})},_errorSteps:function(t){return r(t)}});return a};ReadableStreamDefaultReader.prototype.releaseLock=function(){if(!IsReadableStreamDefaultReader(this))throw defaultReaderBrandCheckException("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ReadableStreamReaderGenericRelease(this)}};return ReadableStreamDefaultReader}();Object.defineProperties(w.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(w.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function IsReadableStreamDefaultReader(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function ReadableStreamDefaultReaderRead(t,r){var a=t._ownerReadableStream;a._disturbed=!0;"closed"===a._state?r._closeSteps():"errored"===a._state?r._errorSteps(a._storedError):a._readableStreamController[y](r)}function defaultReaderBrandCheckException(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}if("symbol"==typeof r.asyncIterator){k=((S={})[r.asyncIterator]=function(){return this},S);Object.defineProperty(k,r.asyncIterator,{enumerable:!1})}var C=function(){function ReadableStreamAsyncIteratorImpl(t,r){this._ongoingPromise=void 0;this._isFinished=!1;this._reader=t;this._preventCancel=r}ReadableStreamAsyncIteratorImpl.prototype.next=function(){var t=this,nextSteps=function(){return t._nextSteps()};this._ongoingPromise=this._ongoingPromise?transformPromiseWith(this._ongoingPromise,nextSteps,nextSteps):nextSteps();return this._ongoingPromise};ReadableStreamAsyncIteratorImpl.prototype.return=function(t){var r=this,returnSteps=function(){return r._returnSteps(t)};return this._ongoingPromise?transformPromiseWith(this._ongoingPromise,returnSteps,returnSteps):returnSteps()};ReadableStreamAsyncIteratorImpl.prototype._nextSteps=function(){var t=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var r,a,i=this._reader;if(void 0===i._ownerReadableStream)return promiseRejectedWith(readerLockException("iterate"));var o=newPromise((function(t,i){r=t;a=i}));ReadableStreamDefaultReaderRead(i,{_chunkSteps:function(a){t._ongoingPromise=void 0;h((function(){return r({value:a,done:!1})}))},_closeSteps:function(){t._ongoingPromise=void 0;t._isFinished=!0;ReadableStreamReaderGenericRelease(i);r({value:void 0,done:!0})},_errorSteps:function(r){t._ongoingPromise=void 0;t._isFinished=!0;ReadableStreamReaderGenericRelease(i);a(r)}});return o};ReadableStreamAsyncIteratorImpl.prototype._returnSteps=function(t){if(this._isFinished)return Promise.resolve({value:t,done:!0});this._isFinished=!0;var r=this._reader;if(void 0===r._ownerReadableStream)return promiseRejectedWith(readerLockException("finish iterating"));if(!this._preventCancel){var a=ReadableStreamReaderGenericCancel(r,t);ReadableStreamReaderGenericRelease(r);return transformPromiseWith(a,(function(){return{value:t,done:!0}}))}ReadableStreamReaderGenericRelease(r);return promiseResolvedWith({value:t,done:!0})};return ReadableStreamAsyncIteratorImpl}(),_={next:function(){return IsReadableStreamAsyncIterator(this)?this._asyncIteratorImpl.next():promiseRejectedWith(streamAsyncIteratorBrandCheckException("next"))},return:function(t){return IsReadableStreamAsyncIterator(this)?this._asyncIteratorImpl.return(t):promiseRejectedWith(streamAsyncIteratorBrandCheckException("return"))}};void 0!==k&&Object.setPrototypeOf(_,k);function IsReadableStreamAsyncIterator(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorImpl")}function streamAsyncIteratorBrandCheckException(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}var x=Number.isNaN||function(t){return t!=t};function IsFiniteNonNegativeNumber(t){return!!function IsNonNegativeNumber(t){return"number"==typeof t&&(!x(t)&&!(t<0))}(t)&&t!==1/0}function DequeueValue(t){var r=t._queue.shift();t._queueTotalSize-=r.size;t._queueTotalSize<0&&(t._queueTotalSize=0);return r.value}function EnqueueValueWithSize(t,r,a){if(!IsFiniteNonNegativeNumber(a=Number(a)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:r,size:a});t._queueTotalSize+=a}function ResetQueue(t){t._queue=new d;t._queueTotalSize=0}function CreateArrayFromList(t){return t.slice()}var A=function(){function ReadableStreamBYOBRequest(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableStreamBYOBRequest.prototype,"view",{get:function(){if(!IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("view");return this._view},enumerable:!1,configurable:!0});ReadableStreamBYOBRequest.prototype.respond=function(t){if(!IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("respond");assertRequiredArgument(t,1,"respond");t=convertUnsignedLongLongWithEnforceRange(t,"First parameter");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer;!function ReadableByteStreamControllerRespond(t,r){if(!IsFiniteNonNegativeNumber(r=Number(r)))throw new RangeError("bytesWritten must be a finite");ReadableByteStreamControllerRespondInternal(t,r)}(this._associatedReadableByteStreamController,t)};ReadableStreamBYOBRequest.prototype.respondWithNewView=function(t){if(!IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("respondWithNewView");assertRequiredArgument(t,1,"respondWithNewView");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");if(0===t.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===t.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");!function ReadableByteStreamControllerRespondWithNewView(t,r){var a=t._pendingPullIntos.peek();if(a.byteOffset+a.bytesFilled!==r.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(a.byteLength!==r.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");a.buffer=r.buffer;ReadableByteStreamControllerRespondInternal(t,r.byteLength)}(this._associatedReadableByteStreamController,t)};return ReadableStreamBYOBRequest}();Object.defineProperties(A.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(A.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var T=function(){function ReadableByteStreamController(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableByteStreamController.prototype,"byobRequest",{get:function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("byobRequest");if(null===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),a=Object.create(A.prototype);!function SetUpReadableStreamBYOBRequest(t,r,a){t._associatedReadableByteStreamController=r;t._view=a}(a,this,r);this._byobRequest=a}return this._byobRequest},enumerable:!1,configurable:!0});Object.defineProperty(ReadableByteStreamController.prototype,"desiredSize",{get:function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("desiredSize");return ReadableByteStreamControllerGetDesiredSize(this)},enumerable:!1,configurable:!0});ReadableByteStreamController.prototype.close=function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");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 closed");!function ReadableByteStreamControllerClose(t){var r=t._controlledReadableByteStream;if(!t._closeRequested&&"readable"===r._state)if(t._queueTotalSize>0)t._closeRequested=!0;else{if(t._pendingPullIntos.length>0&&t._pendingPullIntos.peek().bytesFilled>0){var a=new TypeError("Insufficient bytes to fill elements in the given buffer");ReadableByteStreamControllerError(t,a);throw a}ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamClose(r)}}(this)};ReadableByteStreamController.prototype.enqueue=function(t){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("enqueue");assertRequiredArgument(t,1,"enqueue");if(!ArrayBuffer.isView(t))throw new TypeError("chunk must be an array buffer view");if(0===t.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===t.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var r=this._controlledReadableByteStream._state;if("readable"!==r)throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to");!function ReadableByteStreamControllerEnqueue(t,r){var a=t._controlledReadableByteStream;if(!t._closeRequested&&"readable"===a._state){var i=r.buffer,o=r.byteOffset,l=r.byteLength,c=i;if(ReadableStreamHasDefaultReader(a))0===ReadableStreamGetNumReadRequests(a)?ReadableByteStreamControllerEnqueueChunkToQueue(t,c,o,l):ReadableStreamFulfillReadRequest(a,new Uint8Array(c,o,l),!1);else if(ReadableStreamHasBYOBReader(a)){ReadableByteStreamControllerEnqueueChunkToQueue(t,c,o,l);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t)}else ReadableByteStreamControllerEnqueueChunkToQueue(t,c,o,l);ReadableByteStreamControllerCallPullIfNeeded(t)}}(this,t)};ReadableByteStreamController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("error");ReadableByteStreamControllerError(this,t)};ReadableByteStreamController.prototype[m]=function(t){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0);ResetQueue(this);var r=this._cancelAlgorithm(t);ReadableByteStreamControllerClearAlgorithms(this);return r};ReadableByteStreamController.prototype[y]=function(t){var r=this._controlledReadableByteStream;if(this._queueTotalSize>0){var a=this._queue.shift();this._queueTotalSize-=a.byteLength;ReadableByteStreamControllerHandleQueueDrain(this);var i=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);t._chunkSteps(i)}else{var o=this._autoAllocateChunkSize;if(void 0!==o){var l=void 0;try{l=new ArrayBuffer(o)}catch(r){t._errorSteps(r);return}var c={buffer:l,byteOffset:0,byteLength:o,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(c)}ReadableStreamAddReadRequest(r,t);ReadableByteStreamControllerCallPullIfNeeded(this)}};return ReadableByteStreamController}();Object.defineProperties(T.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(T.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function IsReadableByteStreamController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function IsReadableStreamBYOBRequest(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function ReadableByteStreamControllerCallPullIfNeeded(t){if(function ReadableByteStreamControllerShouldCallPull(t){var r=t._controlledReadableByteStream;return"readable"===r._state&&(!t._closeRequested&&(!!t._started&&(!!(ReadableStreamHasDefaultReader(r)&&ReadableStreamGetNumReadRequests(r)>0)||(!!(ReadableStreamHasBYOBReader(r)&&ReadableStreamGetNumReadIntoRequests(r)>0)||ReadableByteStreamControllerGetDesiredSize(t)>0))))}(t))if(t._pulling)t._pullAgain=!0;else{t._pulling=!0;uponPromise(t._pullAlgorithm(),(function(){t._pulling=!1;if(t._pullAgain){t._pullAgain=!1;ReadableByteStreamControllerCallPullIfNeeded(t)}}),(function(r){ReadableByteStreamControllerError(t,r)}))}}function ReadableByteStreamControllerCommitPullIntoDescriptor(t,r){var a=!1;"closed"===t._state&&(a=!0);var i=ReadableByteStreamControllerConvertPullIntoDescriptor(r);"default"===r.readerType?ReadableStreamFulfillReadRequest(t,i,a):function ReadableStreamFulfillReadIntoRequest(t,r,a){var i=t._reader._readIntoRequests.shift();a?i._closeSteps(r):i._chunkSteps(r)}(t,i,a)}function ReadableByteStreamControllerConvertPullIntoDescriptor(t){var r=t.bytesFilled,a=t.elementSize;return new t.viewConstructor(t.buffer,t.byteOffset,r/a)}function ReadableByteStreamControllerEnqueueChunkToQueue(t,r,a,i){t._queue.push({buffer:r,byteOffset:a,byteLength:i});t._queueTotalSize+=i}function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,r){var a=r.elementSize,i=r.bytesFilled-r.bytesFilled%a,o=Math.min(t._queueTotalSize,r.byteLength-r.bytesFilled),l=r.bytesFilled+o,c=l-l%a,u=o,h=!1;if(c>i){u=c-r.bytesFilled;h=!0}for(var d,p,g,m,y,b=t._queue;u>0;){var v=b.peek(),S=Math.min(u,v.byteLength),k=r.byteOffset+r.bytesFilled;d=r.buffer,p=k,g=v.buffer,m=v.byteOffset,y=S,new Uint8Array(d).set(new Uint8Array(g,m,y),p);if(v.byteLength===S)b.shift();else{v.byteOffset+=S;v.byteLength-=S}t._queueTotalSize-=S;ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,S,r);u-=S}return h}function ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,r,a){ReadableByteStreamControllerInvalidateBYOBRequest(t);a.bytesFilled+=r}function ReadableByteStreamControllerHandleQueueDrain(t){if(0===t._queueTotalSize&&t._closeRequested){ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamClose(t._controlledReadableByteStream)}else ReadableByteStreamControllerCallPullIfNeeded(t)}function ReadableByteStreamControllerInvalidateBYOBRequest(t){if(null!==t._byobRequest){t._byobRequest._associatedReadableByteStreamController=void 0;t._byobRequest._view=null;t._byobRequest=null}}function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var r=t._pendingPullIntos.peek();if(ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,r)){ReadableByteStreamControllerShiftPendingPullInto(t);ReadableByteStreamControllerCommitPullIntoDescriptor(t._controlledReadableByteStream,r)}}}function ReadableByteStreamControllerRespondInternal(t,r){var a=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==r)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function ReadableByteStreamControllerRespondInClosedState(t,r){r.buffer=r.buffer;var a=t._controlledReadableByteStream;if(ReadableStreamHasBYOBReader(a))for(;ReadableStreamGetNumReadIntoRequests(a)>0;)ReadableByteStreamControllerCommitPullIntoDescriptor(a,ReadableByteStreamControllerShiftPendingPullInto(t))}(t,a)}else!function ReadableByteStreamControllerRespondInReadableState(t,r,a){if(a.bytesFilled+r>a.byteLength)throw new RangeError("bytesWritten out of range");ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,r,a);if(!(a.bytesFilled<a.elementSize)){ReadableByteStreamControllerShiftPendingPullInto(t);var i=a.bytesFilled%a.elementSize;if(i>0){var o=a.byteOffset+a.bytesFilled,l=a.buffer.slice(o-i,o);ReadableByteStreamControllerEnqueueChunkToQueue(t,l,0,l.byteLength)}a.buffer=a.buffer;a.bytesFilled-=i;ReadableByteStreamControllerCommitPullIntoDescriptor(t._controlledReadableByteStream,a);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t)}}(t,r,a);ReadableByteStreamControllerCallPullIfNeeded(t)}function ReadableByteStreamControllerShiftPendingPullInto(t){var r=t._pendingPullIntos.shift();ReadableByteStreamControllerInvalidateBYOBRequest(t);return r}function ReadableByteStreamControllerClearAlgorithms(t){t._pullAlgorithm=void 0;t._cancelAlgorithm=void 0}function ReadableByteStreamControllerError(t,r){var a=t._controlledReadableByteStream;if("readable"===a._state){!function ReadableByteStreamControllerClearPendingPullIntos(t){ReadableByteStreamControllerInvalidateBYOBRequest(t);t._pendingPullIntos=new d}(t);ResetQueue(t);ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamError(a,r)}}function ReadableByteStreamControllerGetDesiredSize(t){var r=t._controlledReadableByteStream._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function SetUpReadableByteStreamControllerFromUnderlyingSource(t,r,a){var i=Object.create(T.prototype),startAlgorithm=function(){},pullAlgorithm=function(){return promiseResolvedWith(void 0)},cancelAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(i)});void 0!==r.pull&&(pullAlgorithm=function(){return r.pull(i)});void 0!==r.cancel&&(cancelAlgorithm=function(t){return r.cancel(t)});var o=r.autoAllocateChunkSize;!function SetUpReadableByteStreamController(t,r,a,i,o,l,c){r._controlledReadableByteStream=t;r._pullAgain=!1;r._pulling=!1;r._byobRequest=null;r._queue=r._queueTotalSize=void 0;ResetQueue(r);r._closeRequested=!1;r._started=!1;r._strategyHWM=l;r._pullAlgorithm=i;r._cancelAlgorithm=o;r._autoAllocateChunkSize=c;r._pendingPullIntos=new d;t._readableStreamController=r;uponPromise(promiseResolvedWith(a()),(function(){r._started=!0;ReadableByteStreamControllerCallPullIfNeeded(r)}),(function(t){ReadableByteStreamControllerError(r,t)}))}(t,i,startAlgorithm,pullAlgorithm,cancelAlgorithm,a,o)}function byobRequestBrandCheckException(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function byteStreamControllerBrandCheckException(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function ReadableStreamAddReadIntoRequest(t,r){t._reader._readIntoRequests.push(r)}function ReadableStreamGetNumReadIntoRequests(t){return t._reader._readIntoRequests.length}function ReadableStreamHasBYOBReader(t){var r=t._reader;return void 0!==r&&!!IsReadableStreamBYOBReader(r)}var P=function(){function ReadableStreamBYOBReader(t){assertRequiredArgument(t,1,"ReadableStreamBYOBReader");assertReadableStream(t,"First parameter");if(IsReadableStreamLocked(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!IsReadableByteStreamController(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");ReadableStreamReaderGenericInitialize(this,t);this._readIntoRequests=new d}Object.defineProperty(ReadableStreamBYOBReader.prototype,"closed",{get:function(){return IsReadableStreamBYOBReader(this)?this._closedPromise:promiseRejectedWith(byobReaderBrandCheckException("closed"))},enumerable:!1,configurable:!0});ReadableStreamBYOBReader.prototype.cancel=function(t){void 0===t&&(t=void 0);return IsReadableStreamBYOBReader(this)?void 0===this._ownerReadableStream?promiseRejectedWith(readerLockException("cancel")):ReadableStreamReaderGenericCancel(this,t):promiseRejectedWith(byobReaderBrandCheckException("cancel"))};ReadableStreamBYOBReader.prototype.read=function(t){if(!IsReadableStreamBYOBReader(this))return promiseRejectedWith(byobReaderBrandCheckException("read"));if(!ArrayBuffer.isView(t))return promiseRejectedWith(new TypeError("view must be an array buffer view"));if(0===t.byteLength)return promiseRejectedWith(new TypeError("view must have non-zero byteLength"));if(0===t.buffer.byteLength)return promiseRejectedWith(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return promiseRejectedWith(readerLockException("read from"));var r,a,i=newPromise((function(t,i){r=t;a=i}));!function ReadableStreamBYOBReaderRead(t,r,a){var i=t._ownerReadableStream;i._disturbed=!0;"errored"===i._state?a._errorSteps(i._storedError):function ReadableByteStreamControllerPullInto(t,r,a){var i=t._controlledReadableByteStream,o=1;r.constructor!==DataView&&(o=r.constructor.BYTES_PER_ELEMENT);var l=r.constructor,c={buffer:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:o,viewConstructor:l,readerType:"byob"};if(t._pendingPullIntos.length>0){t._pendingPullIntos.push(c);ReadableStreamAddReadIntoRequest(i,a)}else if("closed"!==i._state){if(t._queueTotalSize>0){if(ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,c)){var u=ReadableByteStreamControllerConvertPullIntoDescriptor(c);ReadableByteStreamControllerHandleQueueDrain(t);a._chunkSteps(u);return}if(t._closeRequested){var h=new TypeError("Insufficient bytes to fill elements in the given buffer");ReadableByteStreamControllerError(t,h);a._errorSteps(h);return}}t._pendingPullIntos.push(c);ReadableStreamAddReadIntoRequest(i,a);ReadableByteStreamControllerCallPullIfNeeded(t)}else{var d=new l(c.buffer,c.byteOffset,0);a._closeSteps(d)}}(i._readableStreamController,r,a)}(this,t,{_chunkSteps:function(t){return r({value:t,done:!1})},_closeSteps:function(t){return r({value:t,done:!0})},_errorSteps:function(t){return a(t)}});return i};ReadableStreamBYOBReader.prototype.releaseLock=function(){if(!IsReadableStreamBYOBReader(this))throw byobReaderBrandCheckException("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");ReadableStreamReaderGenericRelease(this)}};return ReadableStreamBYOBReader}();Object.defineProperties(P.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(P.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function IsReadableStreamBYOBReader(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function byobReaderBrandCheckException(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}function ExtractHighWaterMark(t,r){var a=t.highWaterMark;if(void 0===a)return r;if(x(a)||a<0)throw new RangeError("Invalid highWaterMark");return a}function ExtractSizeAlgorithm(t){var r=t.size;return r||function(){return 1}}function convertQueuingStrategy(t,r){assertDictionary(t,r);var a=null==t?void 0:t.highWaterMark,i=null==t?void 0:t.size;return{highWaterMark:void 0===a?void 0:convertUnrestrictedDouble(a),size:void 0===i?void 0:convertQueuingStrategySize(i,r+" has member 'size' that")}}function convertQueuingStrategySize(t,r){assertFunction(t,r);return function(r){return convertUnrestrictedDouble(t(r))}}function convertUnderlyingSinkAbortCallback(t,r,a){assertFunction(t,a);return function(a){return promiseCall(t,r,[a])}}function convertUnderlyingSinkCloseCallback(t,r,a){assertFunction(t,a);return function(){return promiseCall(t,r,[])}}function convertUnderlyingSinkStartCallback(t,r,a){assertFunction(t,a);return function(a){return reflectCall(t,r,[a])}}function convertUnderlyingSinkWriteCallback(t,r,a){assertFunction(t,a);return function(a,i){return promiseCall(t,r,[a,i])}}function assertWritableStream(t,r){if(!IsWritableStream(t))throw new TypeError(r+" is not a WritableStream.")}var R=function(){function WritableStream(t,r){void 0===t&&(t={});void 0===r&&(r={});void 0===t?t=null:assertObject(t,"First parameter");var a=convertQueuingStrategy(r,"Second parameter"),i=function convertUnderlyingSink(t,r){assertDictionary(t,r);var a=null==t?void 0:t.abort,i=null==t?void 0:t.close,o=null==t?void 0:t.start,l=null==t?void 0:t.type,c=null==t?void 0:t.write;return{abort:void 0===a?void 0:convertUnderlyingSinkAbortCallback(a,t,r+" has member 'abort' that"),close:void 0===i?void 0:convertUnderlyingSinkCloseCallback(i,t,r+" has member 'close' that"),start:void 0===o?void 0:convertUnderlyingSinkStartCallback(o,t,r+" has member 'start' that"),write:void 0===c?void 0:convertUnderlyingSinkWriteCallback(c,t,r+" has member 'write' that"),type:l}}(t,"First parameter");InitializeWritableStream(this);if(void 0!==i.type)throw new RangeError("Invalid type is specified");var o=ExtractSizeAlgorithm(a);!function SetUpWritableStreamDefaultControllerFromUnderlyingSink(t,r,a,i){var o=Object.create(E.prototype),startAlgorithm=function(){},writeAlgorithm=function(){return promiseResolvedWith(void 0)},closeAlgorithm=function(){return promiseResolvedWith(void 0)},abortAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(o)});void 0!==r.write&&(writeAlgorithm=function(t){return r.write(t,o)});void 0!==r.close&&(closeAlgorithm=function(){return r.close()});void 0!==r.abort&&(abortAlgorithm=function(t){return r.abort(t)});SetUpWritableStreamDefaultController(t,o,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,a,i)}(this,i,ExtractHighWaterMark(a,1),o)}Object.defineProperty(WritableStream.prototype,"locked",{get:function(){if(!IsWritableStream(this))throw streamBrandCheckException("locked");return IsWritableStreamLocked(this)},enumerable:!1,configurable:!0});WritableStream.prototype.abort=function(t){void 0===t&&(t=void 0);return IsWritableStream(this)?IsWritableStreamLocked(this)?promiseRejectedWith(new TypeError("Cannot abort a stream that already has a writer")):WritableStreamAbort(this,t):promiseRejectedWith(streamBrandCheckException("abort"))};WritableStream.prototype.close=function(){return IsWritableStream(this)?IsWritableStreamLocked(this)?promiseRejectedWith(new TypeError("Cannot close a stream that already has a writer")):WritableStreamCloseQueuedOrInFlight(this)?promiseRejectedWith(new TypeError("Cannot close an already-closing stream")):WritableStreamClose(this):promiseRejectedWith(streamBrandCheckException("close"))};WritableStream.prototype.getWriter=function(){if(!IsWritableStream(this))throw streamBrandCheckException("getWriter");return AcquireWritableStreamDefaultWriter(this)};return WritableStream}();Object.defineProperties(R.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(R.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});function AcquireWritableStreamDefaultWriter(t){return new I(t)}function InitializeWritableStream(t){t._state="writable";t._storedError=void 0;t._writer=void 0;t._writableStreamController=void 0;t._writeRequests=new d;t._inFlightWriteRequest=void 0;t._closeRequest=void 0;t._inFlightCloseRequest=void 0;t._pendingAbortRequest=void 0;t._backpressure=!1}function IsWritableStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function IsWritableStreamLocked(t){return void 0!==t._writer}function WritableStreamAbort(t,r){var a=t._state;if("closed"===a||"errored"===a)return promiseResolvedWith(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var i=!1;if("erroring"===a){i=!0;r=void 0}var o=newPromise((function(a,o){t._pendingAbortRequest={_promise:void 0,_resolve:a,_reject:o,_reason:r,_wasAlreadyErroring:i}}));t._pendingAbortRequest._promise=o;i||WritableStreamStartErroring(t,r);return o}function WritableStreamClose(t){var r=t._state;if("closed"===r||"errored"===r)return promiseRejectedWith(new TypeError("The stream (in "+r+" state) is not in the writable state and cannot be closed"));var a=newPromise((function(r,a){var i={_resolve:r,_reject:a};t._closeRequest=i})),i=t._writer;void 0!==i&&t._backpressure&&"writable"===r&&defaultWriterReadyPromiseResolve(i);!function WritableStreamDefaultControllerClose(t){EnqueueValueWithSize(t,O,0);WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}(t._writableStreamController);return a}function WritableStreamDealWithRejection(t,r){"writable"!==t._state?WritableStreamFinishErroring(t):WritableStreamStartErroring(t,r)}function WritableStreamStartErroring(t,r){var a=t._writableStreamController;t._state="erroring";t._storedError=r;var i=t._writer;void 0!==i&&WritableStreamDefaultWriterEnsureReadyPromiseRejected(i,r);!function WritableStreamHasOperationMarkedInFlight(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}(t)&&a._started&&WritableStreamFinishErroring(t)}function WritableStreamFinishErroring(t){t._state="errored";t._writableStreamController[g]();var r=t._storedError;t._writeRequests.forEach((function(t){t._reject(r)}));t._writeRequests=new d;if(void 0!==t._pendingAbortRequest){var a=t._pendingAbortRequest;t._pendingAbortRequest=void 0;if(a._wasAlreadyErroring){a._reject(r);WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}else uponPromise(t._writableStreamController[p](a._reason),(function(){a._resolve();WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}),(function(r){a._reject(r);WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}))}else WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}function WritableStreamCloseQueuedOrInFlight(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function WritableStreamRejectCloseAndClosedPromiseIfNeeded(t){if(void 0!==t._closeRequest){t._closeRequest._reject(t._storedError);t._closeRequest=void 0}var r=t._writer;void 0!==r&&defaultWriterClosedPromiseReject(r,t._storedError)}function WritableStreamUpdateBackpressure(t,r){var a=t._writer;void 0!==a&&r!==t._backpressure&&(r?function defaultWriterReadyPromiseReset(t){defaultWriterReadyPromiseInitialize(t)}(a):defaultWriterReadyPromiseResolve(a));t._backpressure=r}var I=function(){function WritableStreamDefaultWriter(t){assertRequiredArgument(t,1,"WritableStreamDefaultWriter");assertWritableStream(t,"First parameter");if(IsWritableStreamLocked(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t;t._writer=this;var r=t._state;if("writable"===r){!WritableStreamCloseQueuedOrInFlight(t)&&t._backpressure?defaultWriterReadyPromiseInitialize(this):defaultWriterReadyPromiseInitializeAsResolved(this);defaultWriterClosedPromiseInitialize(this)}else if("erroring"===r){defaultWriterReadyPromiseInitializeAsRejected(this,t._storedError);defaultWriterClosedPromiseInitialize(this)}else if("closed"===r){defaultWriterReadyPromiseInitializeAsResolved(this);!function defaultWriterClosedPromiseInitializeAsResolved(t){defaultWriterClosedPromiseInitialize(t);defaultWriterClosedPromiseResolve(t)}(this)}else{var a=t._storedError;defaultWriterReadyPromiseInitializeAsRejected(this,a);defaultWriterClosedPromiseInitializeAsRejected(this,a)}}Object.defineProperty(WritableStreamDefaultWriter.prototype,"closed",{get:function(){return IsWritableStreamDefaultWriter(this)?this._closedPromise:promiseRejectedWith(defaultWriterBrandCheckException("closed"))},enumerable:!1,configurable:!0});Object.defineProperty(WritableStreamDefaultWriter.prototype,"desiredSize",{get:function(){if(!IsWritableStreamDefaultWriter(this))throw defaultWriterBrandCheckException("desiredSize");if(void 0===this._ownerWritableStream)throw defaultWriterLockException("desiredSize");return function WritableStreamDefaultWriterGetDesiredSize(t){var r=t._ownerWritableStream,a=r._state;return"errored"===a||"erroring"===a?null:"closed"===a?0:WritableStreamDefaultControllerGetDesiredSize(r._writableStreamController)}(this)},enumerable:!1,configurable:!0});Object.defineProperty(WritableStreamDefaultWriter.prototype,"ready",{get:function(){return IsWritableStreamDefaultWriter(this)?this._readyPromise:promiseRejectedWith(defaultWriterBrandCheckException("ready"))},enumerable:!1,configurable:!0});WritableStreamDefaultWriter.prototype.abort=function(t){void 0===t&&(t=void 0);return IsWritableStreamDefaultWriter(this)?void 0===this._ownerWritableStream?promiseRejectedWith(defaultWriterLockException("abort")):function WritableStreamDefaultWriterAbort(t,r){return WritableStreamAbort(t._ownerWritableStream,r)}(this,t):promiseRejectedWith(defaultWriterBrandCheckException("abort"))};WritableStreamDefaultWriter.prototype.close=function(){if(!IsWritableStreamDefaultWriter(this))return promiseRejectedWith(defaultWriterBrandCheckException("close"));var t=this._ownerWritableStream;return void 0===t?promiseRejectedWith(defaultWriterLockException("close")):WritableStreamCloseQueuedOrInFlight(t)?promiseRejectedWith(new TypeError("Cannot close an already-closing stream")):WritableStreamDefaultWriterClose(this)};WritableStreamDefaultWriter.prototype.releaseLock=function(){if(!IsWritableStreamDefaultWriter(this))throw defaultWriterBrandCheckException("releaseLock");void 0!==this._ownerWritableStream&&WritableStreamDefaultWriterRelease(this)};WritableStreamDefaultWriter.prototype.write=function(t){void 0===t&&(t=void 0);return IsWritableStreamDefaultWriter(this)?void 0===this._ownerWritableStream?promiseRejectedWith(defaultWriterLockException("write to")):WritableStreamDefaultWriterWrite(this,t):promiseRejectedWith(defaultWriterBrandCheckException("write"))};return WritableStreamDefaultWriter}();Object.defineProperties(I.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(I.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function IsWritableStreamDefaultWriter(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function WritableStreamDefaultWriterClose(t){return WritableStreamClose(t._ownerWritableStream)}function WritableStreamDefaultWriterEnsureClosedPromiseRejected(t,r){"pending"===t._closedPromiseState?defaultWriterClosedPromiseReject(t,r):function defaultWriterClosedPromiseResetToRejected(t,r){defaultWriterClosedPromiseInitializeAsRejected(t,r)}(t,r)}function WritableStreamDefaultWriterEnsureReadyPromiseRejected(t,r){"pending"===t._readyPromiseState?defaultWriterReadyPromiseReject(t,r):function defaultWriterReadyPromiseResetToRejected(t,r){defaultWriterReadyPromiseInitializeAsRejected(t,r)}(t,r)}function WritableStreamDefaultWriterRelease(t){var r=t._ownerWritableStream,a=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");WritableStreamDefaultWriterEnsureReadyPromiseRejected(t,a);WritableStreamDefaultWriterEnsureClosedPromiseRejected(t,a);r._writer=void 0;t._ownerWritableStream=void 0}function WritableStreamDefaultWriterWrite(t,r){var a=t._ownerWritableStream,i=a._writableStreamController,o=function WritableStreamDefaultControllerGetChunkSize(t,r){try{return t._strategySizeAlgorithm(r)}catch(r){WritableStreamDefaultControllerErrorIfNeeded(t,r);return 1}}(i,r);if(a!==t._ownerWritableStream)return promiseRejectedWith(defaultWriterLockException("write to"));var l=a._state;if("errored"===l)return promiseRejectedWith(a._storedError);if(WritableStreamCloseQueuedOrInFlight(a)||"closed"===l)return promiseRejectedWith(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===l)return promiseRejectedWith(a._storedError);var c=function WritableStreamAddWriteRequest(t){return newPromise((function(r,a){var i={_resolve:r,_reject:a};t._writeRequests.push(i)}))}(a);!function WritableStreamDefaultControllerWrite(t,r,a){try{EnqueueValueWithSize(t,r,a)}catch(r){WritableStreamDefaultControllerErrorIfNeeded(t,r);return}var i=t._controlledWritableStream;WritableStreamCloseQueuedOrInFlight(i)||"writable"!==i._state||WritableStreamUpdateBackpressure(i,WritableStreamDefaultControllerGetBackpressure(t));WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}(i,r,o);return c}var O={},E=function(){function WritableStreamDefaultController(){throw new TypeError("Illegal constructor")}WritableStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!function IsWritableStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&WritableStreamDefaultControllerError(this,t)};WritableStreamDefaultController.prototype[p]=function(t){var r=this._abortAlgorithm(t);WritableStreamDefaultControllerClearAlgorithms(this);return r};WritableStreamDefaultController.prototype[g]=function(){ResetQueue(this)};return WritableStreamDefaultController}();Object.defineProperties(E.prototype,{error:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(E.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function SetUpWritableStreamDefaultController(t,r,a,i,o,l,c,u){r._controlledWritableStream=t;t._writableStreamController=r;r._queue=void 0;r._queueTotalSize=void 0;ResetQueue(r);r._started=!1;r._strategySizeAlgorithm=u;r._strategyHWM=c;r._writeAlgorithm=i;r._closeAlgorithm=o;r._abortAlgorithm=l;var h=WritableStreamDefaultControllerGetBackpressure(r);WritableStreamUpdateBackpressure(t,h);uponPromise(promiseResolvedWith(a()),(function(){r._started=!0;WritableStreamDefaultControllerAdvanceQueueIfNeeded(r)}),(function(a){r._started=!0;WritableStreamDealWithRejection(t,a)}))}function WritableStreamDefaultControllerClearAlgorithms(t){t._writeAlgorithm=void 0;t._closeAlgorithm=void 0;t._abortAlgorithm=void 0;t._strategySizeAlgorithm=void 0}function WritableStreamDefaultControllerGetDesiredSize(t){return t._strategyHWM-t._queueTotalSize}function WritableStreamDefaultControllerAdvanceQueueIfNeeded(t){var r=t._controlledWritableStream;if(t._started&&void 0===r._inFlightWriteRequest)if("erroring"!==r._state){if(0!==t._queue.length){var a=function PeekQueueValue(t){return t._queue.peek().value}(t);a===O?function WritableStreamDefaultControllerProcessClose(t){var r=t._controlledWritableStream;!function WritableStreamMarkCloseRequestInFlight(t){t._inFlightCloseRequest=t._closeRequest;t._closeRequest=void 0}(r);DequeueValue(t);var a=t._closeAlgorithm();WritableStreamDefaultControllerClearAlgorithms(t);uponPromise(a,(function(){!function WritableStreamFinishInFlightClose(t){t._inFlightCloseRequest._resolve(void 0);t._inFlightCloseRequest=void 0;if("erroring"===t._state){t._storedError=void 0;if(void 0!==t._pendingAbortRequest){t._pendingAbortRequest._resolve();t._pendingAbortRequest=void 0}}t._state="closed";var r=t._writer;void 0!==r&&defaultWriterClosedPromiseResolve(r)}(r)}),(function(t){!function WritableStreamFinishInFlightCloseWithError(t,r){t._inFlightCloseRequest._reject(r);t._inFlightCloseRequest=void 0;if(void 0!==t._pendingAbortRequest){t._pendingAbortRequest._reject(r);t._pendingAbortRequest=void 0}WritableStreamDealWithRejection(t,r)}(r,t)}))}(t):function WritableStreamDefaultControllerProcessWrite(t,r){var a=t._controlledWritableStream;!function WritableStreamMarkFirstWriteRequestInFlight(t){t._inFlightWriteRequest=t._writeRequests.shift()}(a);uponPromise(t._writeAlgorithm(r),(function(){!function WritableStreamFinishInFlightWrite(t){t._inFlightWriteRequest._resolve(void 0);t._inFlightWriteRequest=void 0}(a);var r=a._state;DequeueValue(t);if(!WritableStreamCloseQueuedOrInFlight(a)&&"writable"===r){var i=WritableStreamDefaultControllerGetBackpressure(t);WritableStreamUpdateBackpressure(a,i)}WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}),(function(r){"writable"===a._state&&WritableStreamDefaultControllerClearAlgorithms(t);!function WritableStreamFinishInFlightWriteWithError(t,r){t._inFlightWriteRequest._reject(r);t._inFlightWriteRequest=void 0;WritableStreamDealWithRejection(t,r)}(a,r)}))}(t,a)}}else WritableStreamFinishErroring(r)}function WritableStreamDefaultControllerErrorIfNeeded(t,r){"writable"===t._controlledWritableStream._state&&WritableStreamDefaultControllerError(t,r)}function WritableStreamDefaultControllerGetBackpressure(t){return WritableStreamDefaultControllerGetDesiredSize(t)<=0}function WritableStreamDefaultControllerError(t,r){var a=t._controlledWritableStream;WritableStreamDefaultControllerClearAlgorithms(t);WritableStreamStartErroring(a,r)}function streamBrandCheckException(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function defaultWriterBrandCheckException(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function defaultWriterLockException(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function defaultWriterClosedPromiseInitialize(t){t._closedPromise=newPromise((function(r,a){t._closedPromise_resolve=r;t._closedPromise_reject=a;t._closedPromiseState="pending"}))}function defaultWriterClosedPromiseInitializeAsRejected(t,r){defaultWriterClosedPromiseInitialize(t);defaultWriterClosedPromiseReject(t,r)}function defaultWriterClosedPromiseReject(t,r){if(void 0!==t._closedPromise_reject){setPromiseIsHandledToTrue(t._closedPromise);t._closedPromise_reject(r);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0;t._closedPromiseState="rejected"}}function defaultWriterClosedPromiseResolve(t){if(void 0!==t._closedPromise_resolve){t._closedPromise_resolve(void 0);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0;t._closedPromiseState="resolved"}}function defaultWriterReadyPromiseInitialize(t){t._readyPromise=newPromise((function(r,a){t._readyPromise_resolve=r;t._readyPromise_reject=a}));t._readyPromiseState="pending"}function defaultWriterReadyPromiseInitializeAsRejected(t,r){defaultWriterReadyPromiseInitialize(t);defaultWriterReadyPromiseReject(t,r)}function defaultWriterReadyPromiseInitializeAsResolved(t){defaultWriterReadyPromiseInitialize(t);defaultWriterReadyPromiseResolve(t)}function defaultWriterReadyPromiseReject(t,r){if(void 0!==t._readyPromise_reject){setPromiseIsHandledToTrue(t._readyPromise);t._readyPromise_reject(r);t._readyPromise_resolve=void 0;t._readyPromise_reject=void 0;t._readyPromiseState="rejected"}}function defaultWriterReadyPromiseResolve(t){if(void 0!==t._readyPromise_resolve){t._readyPromise_resolve(void 0);t._readyPromise_resolve=void 0;t._readyPromise_reject=void 0;t._readyPromiseState="fulfilled"}}var D="undefined"!=typeof DOMException?DOMException:void 0,B=function isDOMExceptionConstructor(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{new t;return!0}catch(t){return!1}}(D)?D:function createDOMExceptionPolyfill(){var t=function DOMException(t,r){this.message=t||"";this.name=r||"Error";Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};t.prototype=Object.create(Error.prototype);Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,configurable:!0});return t}();function ReadableStreamPipeTo(t,r,a,i,o,l){var c=AcquireReadableStreamDefaultReader(t),u=AcquireWritableStreamDefaultWriter(r);t._disturbed=!0;var h=!1,d=promiseResolvedWith(void 0);return newPromise((function(p,g){var m;if(void 0!==l){m=function(){var a=new B("Aborted","AbortError"),l=[];i||l.push((function(){return"writable"===r._state?WritableStreamAbort(r,a):promiseResolvedWith(void 0)}));o||l.push((function(){return"readable"===t._state?ReadableStreamCancel(t,a):promiseResolvedWith(void 0)}));shutdownWithAction((function(){return Promise.all(l.map((function(t){return t()})))}),!0,a)};if(l.aborted){m();return}l.addEventListener("abort",m)}isOrBecomesErrored(t,c._closedPromise,(function(t){i?shutdown(!0,t):shutdownWithAction((function(){return WritableStreamAbort(r,t)}),!0,t)}));isOrBecomesErrored(r,u._closedPromise,(function(r){o?shutdown(!0,r):shutdownWithAction((function(){return ReadableStreamCancel(t,r)}),!0,r)}));!function isOrBecomesClosed(t,r,a){"closed"===t._state?a():uponFulfillment(r,a)}(t,c._closedPromise,(function(){a?shutdown():shutdownWithAction((function(){return function WritableStreamDefaultWriterCloseWithErrorPropagation(t){var r=t._ownerWritableStream,a=r._state;return WritableStreamCloseQueuedOrInFlight(r)||"closed"===a?promiseResolvedWith(void 0):"errored"===a?promiseRejectedWith(r._storedError):WritableStreamDefaultWriterClose(t)}(u)}))}));if(WritableStreamCloseQueuedOrInFlight(r)||"closed"===r._state){var y=new TypeError("the destination writable stream closed before all data could be piped to it");o?shutdown(!0,y):shutdownWithAction((function(){return ReadableStreamCancel(t,y)}),!0,y)}setPromiseIsHandledToTrue(function pipeLoop(){return newPromise((function(t,r){!function next(a){a?t():PerformPromiseThen(function pipeStep(){return h?promiseResolvedWith(!0):PerformPromiseThen(u._readyPromise,(function(){return newPromise((function(t,r){ReadableStreamDefaultReaderRead(c,{_chunkSteps:function(r){d=PerformPromiseThen(WritableStreamDefaultWriterWrite(u,r),void 0,noop);t(!1)},_closeSteps:function(){return t(!0)},_errorSteps:r})}))}))}(),next,r)}(!1)}))}());function waitForWritesToFinish(){var t=d;return PerformPromiseThen(d,(function(){return t!==d?waitForWritesToFinish():void 0}))}function isOrBecomesErrored(t,r,a){"errored"===t._state?a(t._storedError):uponRejection(r,a)}function shutdownWithAction(t,a,i){if(!h){h=!0;"writable"!==r._state||WritableStreamCloseQueuedOrInFlight(r)?doTheRest():uponFulfillment(waitForWritesToFinish(),doTheRest)}function doTheRest(){uponPromise(t(),(function(){return finalize(a,i)}),(function(t){return finalize(!0,t)}))}}function shutdown(t,a){if(!h){h=!0;"writable"!==r._state||WritableStreamCloseQueuedOrInFlight(r)?finalize(t,a):uponFulfillment(waitForWritesToFinish(),(function(){return finalize(t,a)}))}}function finalize(t,r){WritableStreamDefaultWriterRelease(u);ReadableStreamReaderGenericRelease(c);void 0!==l&&l.removeEventListener("abort",m);t?g(r):p(void 0)}}))}var M=function(){function ReadableStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableStreamDefaultController.prototype,"desiredSize",{get:function(){if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this)},enumerable:!1,configurable:!0});ReadableStreamDefaultController.prototype.close=function(){if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("close");if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(this))throw new TypeError("The stream is not in a state that permits close");ReadableStreamDefaultControllerClose(this)};ReadableStreamDefaultController.prototype.enqueue=function(t){void 0===t&&(t=void 0);if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("enqueue");if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(this))throw new TypeError("The stream is not in a state that permits enqueue");return ReadableStreamDefaultControllerEnqueue(this,t)};ReadableStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("error");ReadableStreamDefaultControllerError(this,t)};ReadableStreamDefaultController.prototype[m]=function(t){ResetQueue(this);var r=this._cancelAlgorithm(t);ReadableStreamDefaultControllerClearAlgorithms(this);return r};ReadableStreamDefaultController.prototype[y]=function(t){var r=this._controlledReadableStream;if(this._queue.length>0){var a=DequeueValue(this);if(this._closeRequested&&0===this._queue.length){ReadableStreamDefaultControllerClearAlgorithms(this);ReadableStreamClose(r)}else ReadableStreamDefaultControllerCallPullIfNeeded(this);t._chunkSteps(a)}else{ReadableStreamAddReadRequest(r,t);ReadableStreamDefaultControllerCallPullIfNeeded(this)}};return ReadableStreamDefaultController}();Object.defineProperties(M.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(M.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function IsReadableStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function ReadableStreamDefaultControllerCallPullIfNeeded(t){if(ReadableStreamDefaultControllerShouldCallPull(t))if(t._pulling)t._pullAgain=!0;else{t._pulling=!0;uponPromise(t._pullAlgorithm(),(function(){t._pulling=!1;if(t._pullAgain){t._pullAgain=!1;ReadableStreamDefaultControllerCallPullIfNeeded(t)}}),(function(r){ReadableStreamDefaultControllerError(t,r)}))}}function ReadableStreamDefaultControllerShouldCallPull(t){var r=t._controlledReadableStream;return!!ReadableStreamDefaultControllerCanCloseOrEnqueue(t)&&!!t._started&&(!!(IsReadableStreamLocked(r)&&ReadableStreamGetNumReadRequests(r)>0)||ReadableStreamDefaultControllerGetDesiredSize(t)>0)}function ReadableStreamDefaultControllerClearAlgorithms(t){t._pullAlgorithm=void 0;t._cancelAlgorithm=void 0;t._strategySizeAlgorithm=void 0}function ReadableStreamDefaultControllerClose(t){if(ReadableStreamDefaultControllerCanCloseOrEnqueue(t)){var r=t._controlledReadableStream;t._closeRequested=!0;if(0===t._queue.length){ReadableStreamDefaultControllerClearAlgorithms(t);ReadableStreamClose(r)}}}function ReadableStreamDefaultControllerEnqueue(t,r){if(ReadableStreamDefaultControllerCanCloseOrEnqueue(t)){var a=t._controlledReadableStream;if(IsReadableStreamLocked(a)&&ReadableStreamGetNumReadRequests(a)>0)ReadableStreamFulfillReadRequest(a,r,!1);else{var i=void 0;try{i=t._strategySizeAlgorithm(r)}catch(r){ReadableStreamDefaultControllerError(t,r);throw r}try{EnqueueValueWithSize(t,r,i)}catch(r){ReadableStreamDefaultControllerError(t,r);throw r}}ReadableStreamDefaultControllerCallPullIfNeeded(t)}}function ReadableStreamDefaultControllerError(t,r){var a=t._controlledReadableStream;if("readable"===a._state){ResetQueue(t);ReadableStreamDefaultControllerClearAlgorithms(t);ReadableStreamError(a,r)}}function ReadableStreamDefaultControllerGetDesiredSize(t){var r=t._controlledReadableStream._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function ReadableStreamDefaultControllerCanCloseOrEnqueue(t){var r=t._controlledReadableStream._state;return!t._closeRequested&&"readable"===r}function SetUpReadableStreamDefaultController(t,r,a,i,o,l,c){r._controlledReadableStream=t;r._queue=void 0;r._queueTotalSize=void 0;ResetQueue(r);r._started=!1;r._closeRequested=!1;r._pullAgain=!1;r._pulling=!1;r._strategySizeAlgorithm=c;r._strategyHWM=l;r._pullAlgorithm=i;r._cancelAlgorithm=o;t._readableStreamController=r;uponPromise(promiseResolvedWith(a()),(function(){r._started=!0;ReadableStreamDefaultControllerCallPullIfNeeded(r)}),(function(t){ReadableStreamDefaultControllerError(r,t)}))}function defaultControllerBrandCheckException(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}function convertUnderlyingSourceCancelCallback(t,r,a){assertFunction(t,a);return function(a){return promiseCall(t,r,[a])}}function convertUnderlyingSourcePullCallback(t,r,a){assertFunction(t,a);return function(a){return promiseCall(t,r,[a])}}function convertUnderlyingSourceStartCallback(t,r,a){assertFunction(t,a);return function(a){return reflectCall(t,r,[a])}}function convertReadableStreamType(t,r){if("bytes"!=(t=""+t))throw new TypeError(r+" '"+t+"' is not a valid enumeration value for ReadableStreamType");return t}function convertReadableStreamReaderMode(t,r){if("byob"!=(t=""+t))throw new TypeError(r+" '"+t+"' is not a valid enumeration value for ReadableStreamReaderMode");return t}function convertPipeOptions(t,r){assertDictionary(t,r);var a=null==t?void 0:t.preventAbort,i=null==t?void 0:t.preventCancel,o=null==t?void 0:t.preventClose,l=null==t?void 0:t.signal;void 0!==l&&function assertAbortSignal(t,r){if(!function isAbortSignal(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}(t))throw new TypeError(r+" is not an AbortSignal.")}(l,r+" has member 'signal' that");return{preventAbort:Boolean(a),preventCancel:Boolean(i),preventClose:Boolean(o),signal:l}}var L=function(){function ReadableStream(t,r){void 0===t&&(t={});void 0===r&&(r={});void 0===t?t=null:assertObject(t,"First parameter");var a=convertQueuingStrategy(r,"Second parameter"),i=function convertUnderlyingDefaultOrByteSource(t,r){assertDictionary(t,r);var a=t,i=null==a?void 0:a.autoAllocateChunkSize,o=null==a?void 0:a.cancel,l=null==a?void 0:a.pull,c=null==a?void 0:a.start,u=null==a?void 0:a.type;return{autoAllocateChunkSize:void 0===i?void 0:convertUnsignedLongLongWithEnforceRange(i,r+" has member 'autoAllocateChunkSize' that"),cancel:void 0===o?void 0:convertUnderlyingSourceCancelCallback(o,a,r+" has member 'cancel' that"),pull:void 0===l?void 0:convertUnderlyingSourcePullCallback(l,a,r+" has member 'pull' that"),start:void 0===c?void 0:convertUnderlyingSourceStartCallback(c,a,r+" has member 'start' that"),type:void 0===u?void 0:convertReadableStreamType(u,r+" has member 'type' that")}}(t,"First parameter");InitializeReadableStream(this);if("bytes"===i.type){if(void 0!==a.size)throw new RangeError("The strategy for a byte stream cannot have a size function");SetUpReadableByteStreamControllerFromUnderlyingSource(this,i,ExtractHighWaterMark(a,0))}else{var o=ExtractSizeAlgorithm(a);!function SetUpReadableStreamDefaultControllerFromUnderlyingSource(t,r,a,i){var o=Object.create(M.prototype),startAlgorithm=function(){},pullAlgorithm=function(){return promiseResolvedWith(void 0)},cancelAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(o)});void 0!==r.pull&&(pullAlgorithm=function(){return r.pull(o)});void 0!==r.cancel&&(cancelAlgorithm=function(t){return r.cancel(t)});SetUpReadableStreamDefaultController(t,o,startAlgorithm,pullAlgorithm,cancelAlgorithm,a,i)}(this,i,ExtractHighWaterMark(a,1),o)}}Object.defineProperty(ReadableStream.prototype,"locked",{get:function(){if(!IsReadableStream(this))throw streamBrandCheckException$1("locked");return IsReadableStreamLocked(this)},enumerable:!1,configurable:!0});ReadableStream.prototype.cancel=function(t){void 0===t&&(t=void 0);return IsReadableStream(this)?IsReadableStreamLocked(this)?promiseRejectedWith(new TypeError("Cannot cancel a stream that already has a reader")):ReadableStreamCancel(this,t):promiseRejectedWith(streamBrandCheckException$1("cancel"))};ReadableStream.prototype.getReader=function(t){void 0===t&&(t=void 0);if(!IsReadableStream(this))throw streamBrandCheckException$1("getReader");return void 0===function convertReaderOptions(t,r){assertDictionary(t,r);var a=null==t?void 0:t.mode;return{mode:void 0===a?void 0:convertReadableStreamReaderMode(a,r+" has member 'mode' that")}}(t,"First parameter").mode?AcquireReadableStreamDefaultReader(this):function AcquireReadableStreamBYOBReader(t){return new P(t)}(this)};ReadableStream.prototype.pipeThrough=function(t,r){void 0===r&&(r={});if(!IsReadableStream(this))throw streamBrandCheckException$1("pipeThrough");assertRequiredArgument(t,1,"pipeThrough");var a=function convertReadableWritablePair(t,r){assertDictionary(t,r);var a=null==t?void 0:t.readable;assertRequiredField(a,"readable","ReadableWritablePair");assertReadableStream(a,r+" has member 'readable' that");var i=null==t?void 0:t.writable;assertRequiredField(i,"writable","ReadableWritablePair");assertWritableStream(i,r+" has member 'writable' that");return{readable:a,writable:i}}(t,"First parameter"),i=convertPipeOptions(r,"Second parameter");if(IsReadableStreamLocked(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(IsWritableStreamLocked(a.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");setPromiseIsHandledToTrue(ReadableStreamPipeTo(this,a.writable,i.preventClose,i.preventAbort,i.preventCancel,i.signal));return a.readable};ReadableStream.prototype.pipeTo=function(t,r){void 0===r&&(r={});if(!IsReadableStream(this))return promiseRejectedWith(streamBrandCheckException$1("pipeTo"));if(void 0===t)return promiseRejectedWith("Parameter 1 is required in 'pipeTo'.");if(!IsWritableStream(t))return promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var a;try{a=convertPipeOptions(r,"Second parameter")}catch(t){return promiseRejectedWith(t)}return IsReadableStreamLocked(this)?promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):IsWritableStreamLocked(t)?promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ReadableStreamPipeTo(this,t,a.preventClose,a.preventAbort,a.preventCancel,a.signal)};ReadableStream.prototype.tee=function(){if(!IsReadableStream(this))throw streamBrandCheckException$1("tee");var t=function ReadableStreamTee(t,r){var a,i,o,l,c,u=AcquireReadableStreamDefaultReader(t),d=!1,p=!1,g=!1,m=newPromise((function(t){c=t}));function pullAlgorithm(){if(d)return promiseResolvedWith(void 0);d=!0;ReadableStreamDefaultReaderRead(u,{_chunkSteps:function(t){h((function(){d=!1;var r=t,a=t;p||ReadableStreamDefaultControllerEnqueue(o._readableStreamController,r);g||ReadableStreamDefaultControllerEnqueue(l._readableStreamController,a);c(void 0)}))},_closeSteps:function(){d=!1;p||ReadableStreamDefaultControllerClose(o._readableStreamController);g||ReadableStreamDefaultControllerClose(l._readableStreamController)},_errorSteps:function(){d=!1}});return promiseResolvedWith(void 0)}function startAlgorithm(){}o=CreateReadableStream(startAlgorithm,pullAlgorithm,(function cancel1Algorithm(r){p=!0;a=r;if(g){var o=CreateArrayFromList([a,i]),l=ReadableStreamCancel(t,o);c(l)}return m}));l=CreateReadableStream(startAlgorithm,pullAlgorithm,(function cancel2Algorithm(r){g=!0;i=r;if(p){var o=CreateArrayFromList([a,i]),l=ReadableStreamCancel(t,o);c(l)}return m}));uponRejection(u._closedPromise,(function(t){ReadableStreamDefaultControllerError(o._readableStreamController,t);ReadableStreamDefaultControllerError(l._readableStreamController,t);c(void 0)}));return[o,l]}(this);return CreateArrayFromList(t)};ReadableStream.prototype.values=function(t){void 0===t&&(t=void 0);if(!IsReadableStream(this))throw streamBrandCheckException$1("values");return function AcquireReadableStreamAsyncIterator(t,r){var a=AcquireReadableStreamDefaultReader(t),i=new C(a,r),o=Object.create(_);o._asyncIteratorImpl=i;return o}(this,function convertIteratorOptions(t,r){assertDictionary(t,r);var a=null==t?void 0:t.preventCancel;return{preventCancel:Boolean(a)}}(t,"First parameter").preventCancel)};return ReadableStream}();Object.defineProperties(L.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(L.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0});"symbol"==typeof r.asyncIterator&&Object.defineProperty(L.prototype,r.asyncIterator,{value:L.prototype.values,writable:!0,configurable:!0});function CreateReadableStream(t,r,a,i,o){void 0===i&&(i=1);void 0===o&&(o=function(){return 1});var l=Object.create(L.prototype);InitializeReadableStream(l);SetUpReadableStreamDefaultController(l,Object.create(M.prototype),t,r,a,i,o);return l}function InitializeReadableStream(t){t._state="readable";t._reader=void 0;t._storedError=void 0;t._disturbed=!1}function IsReadableStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function IsReadableStreamLocked(t){return void 0!==t._reader}function ReadableStreamCancel(t,r){t._disturbed=!0;if("closed"===t._state)return promiseResolvedWith(void 0);if("errored"===t._state)return promiseRejectedWith(t._storedError);ReadableStreamClose(t);return transformPromiseWith(t._readableStreamController[m](r),noop)}function ReadableStreamClose(t){t._state="closed";var r=t._reader;if(void 0!==r){if(IsReadableStreamDefaultReader(r)){r._readRequests.forEach((function(t){t._closeSteps()}));r._readRequests=new d}defaultReaderClosedPromiseResolve(r)}}function ReadableStreamError(t,r){t._state="errored";t._storedError=r;var a=t._reader;if(void 0!==a){if(IsReadableStreamDefaultReader(a)){a._readRequests.forEach((function(t){t._errorSteps(r)}));a._readRequests=new d}else{a._readIntoRequests.forEach((function(t){t._errorSteps(r)}));a._readIntoRequests=new d}defaultReaderClosedPromiseReject(a,r)}}function streamBrandCheckException$1(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}function convertQueuingStrategyInit(t,r){assertDictionary(t,r);var a=null==t?void 0:t.highWaterMark;assertRequiredField(a,"highWaterMark","QueuingStrategyInit");return{highWaterMark:convertUnrestrictedDouble(a)}}var N=function size(t){return t.byteLength},j=function(){function ByteLengthQueuingStrategy(t){assertRequiredArgument(t,1,"ByteLengthQueuingStrategy");t=convertQueuingStrategyInit(t,"First parameter");this._byteLengthQueuingStrategyHighWaterMark=t.highWaterMark}Object.defineProperty(ByteLengthQueuingStrategy.prototype,"highWaterMark",{get:function(){if(!IsByteLengthQueuingStrategy(this))throw byteLengthBrandCheckException("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0});Object.defineProperty(ByteLengthQueuingStrategy.prototype,"size",{get:function(){if(!IsByteLengthQueuingStrategy(this))throw byteLengthBrandCheckException("size");return N},enumerable:!1,configurable:!0});return ByteLengthQueuingStrategy}();Object.defineProperties(j.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(j.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function byteLengthBrandCheckException(t){return new TypeError("ByteLengthQueuingStrategy.prototype."+t+" can only be used on a ByteLengthQueuingStrategy")}function IsByteLengthQueuingStrategy(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_byteLengthQueuingStrategyHighWaterMark")}var U=function size(){return 1},q=function(){function CountQueuingStrategy(t){assertRequiredArgument(t,1,"CountQueuingStrategy");t=convertQueuingStrategyInit(t,"First parameter");this._countQueuingStrategyHighWaterMark=t.highWaterMark}Object.defineProperty(CountQueuingStrategy.prototype,"highWaterMark",{get:function(){if(!IsCountQueuingStrategy(this))throw countBrandCheckException("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0});Object.defineProperty(CountQueuingStrategy.prototype,"size",{get:function(){if(!IsCountQueuingStrategy(this))throw countBrandCheckException("size");return U},enumerable:!1,configurable:!0});return CountQueuingStrategy}();Object.defineProperties(q.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(q.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function countBrandCheckException(t){return new TypeError("CountQueuingStrategy.prototype."+t+" can only be used on a CountQueuingStrategy")}function IsCountQueuingStrategy(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_countQueuingStrategyHighWaterMark")}function convertTransformerFlushCallback(t,r,a){assertFunction(t,a);return function(a){return promiseCall(t,r,[a])}}function convertTransformerStartCallback(t,r,a){assertFunction(t,a);return function(a){return reflectCall(t,r,[a])}}function convertTransformerTransformCallback(t,r,a){assertFunction(t,a);return function(a,i){return promiseCall(t,r,[a,i])}}var W=function(){function TransformStream(t,r,a){void 0===t&&(t={});void 0===r&&(r={});void 0===a&&(a={});void 0===t&&(t=null);var i=convertQueuingStrategy(r,"Second parameter"),o=convertQueuingStrategy(a,"Third parameter"),l=function convertTransformer(t,r){assertDictionary(t,r);var a=null==t?void 0:t.flush,i=null==t?void 0:t.readableType,o=null==t?void 0:t.start,l=null==t?void 0:t.transform,c=null==t?void 0:t.writableType;return{flush:void 0===a?void 0:convertTransformerFlushCallback(a,t,r+" has member 'flush' that"),readableType:i,start:void 0===o?void 0:convertTransformerStartCallback(o,t,r+" has member 'start' that"),transform:void 0===l?void 0:convertTransformerTransformCallback(l,t,r+" has member 'transform' that"),writableType:c}}(t,"First parameter");if(void 0!==l.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==l.writableType)throw new RangeError("Invalid writableType specified");var c,u=ExtractHighWaterMark(o,0),h=ExtractSizeAlgorithm(o),d=ExtractHighWaterMark(i,1),p=ExtractSizeAlgorithm(i);!function InitializeTransformStream(t,r,a,i,o,l){function startAlgorithm(){return r}function writeAlgorithm(r){return function TransformStreamDefaultSinkWriteAlgorithm(t,r){var a=t._transformStreamController;return t._backpressure?transformPromiseWith(t._backpressureChangePromise,(function(){var i=t._writable;if("erroring"===i._state)throw i._storedError;return TransformStreamDefaultControllerPerformTransform(a,r)})):TransformStreamDefaultControllerPerformTransform(a,r)}(t,r)}function abortAlgorithm(r){return function TransformStreamDefaultSinkAbortAlgorithm(t,r){TransformStreamError(t,r);return promiseResolvedWith(void 0)}(t,r)}function closeAlgorithm(){return function TransformStreamDefaultSinkCloseAlgorithm(t){var r=t._readable,a=t._transformStreamController,i=a._flushAlgorithm();TransformStreamDefaultControllerClearAlgorithms(a);return transformPromiseWith(i,(function(){if("errored"===r._state)throw r._storedError;ReadableStreamDefaultControllerClose(r._readableStreamController)}),(function(a){TransformStreamError(t,a);throw r._storedError}))}(t)}t._writable=function CreateWritableStream(t,r,a,i,o,l){void 0===o&&(o=1);void 0===l&&(l=function(){return 1});var c=Object.create(R.prototype);InitializeWritableStream(c);SetUpWritableStreamDefaultController(c,Object.create(E.prototype),t,r,a,i,o,l);return c}(startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,a,i);function pullAlgorithm(){return function TransformStreamDefaultSourcePullAlgorithm(t){TransformStreamSetBackpressure(t,!1);return t._backpressureChangePromise}(t)}function cancelAlgorithm(r){TransformStreamErrorWritableAndUnblockWrite(t,r);return promiseResolvedWith(void 0)}t._readable=CreateReadableStream(startAlgorithm,pullAlgorithm,cancelAlgorithm,o,l);t._backpressure=void 0;t._backpressureChangePromise=void 0;t._backpressureChangePromise_resolve=void 0;TransformStreamSetBackpressure(t,!0);t._transformStreamController=void 0}(this,newPromise((function(t){c=t})),d,p,u,h);!function SetUpTransformStreamDefaultControllerFromTransformer(t,r){var a=Object.create(z.prototype),transformAlgorithm=function(t){try{TransformStreamDefaultControllerEnqueue(a,t);return promiseResolvedWith(void 0)}catch(t){return promiseRejectedWith(t)}},flushAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.transform&&(transformAlgorithm=function(t){return r.transform(t,a)});void 0!==r.flush&&(flushAlgorithm=function(){return r.flush(a)});!function SetUpTransformStreamDefaultController(t,r,a,i){r._controlledTransformStream=t;t._transformStreamController=r;r._transformAlgorithm=a;r._flushAlgorithm=i}(t,a,transformAlgorithm,flushAlgorithm)}(this,l);void 0!==l.start?c(l.start(this._transformStreamController)):c(void 0)}Object.defineProperty(TransformStream.prototype,"readable",{get:function(){if(!IsTransformStream(this))throw streamBrandCheckException$2("readable");return this._readable},enumerable:!1,configurable:!0});Object.defineProperty(TransformStream.prototype,"writable",{get:function(){if(!IsTransformStream(this))throw streamBrandCheckException$2("writable");return this._writable},enumerable:!1,configurable:!0});return TransformStream}();Object.defineProperties(W.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(W.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});function IsTransformStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function TransformStreamError(t,r){ReadableStreamDefaultControllerError(t._readable._readableStreamController,r);TransformStreamErrorWritableAndUnblockWrite(t,r)}function TransformStreamErrorWritableAndUnblockWrite(t,r){TransformStreamDefaultControllerClearAlgorithms(t._transformStreamController);WritableStreamDefaultControllerErrorIfNeeded(t._writable._writableStreamController,r);t._backpressure&&TransformStreamSetBackpressure(t,!1)}function TransformStreamSetBackpressure(t,r){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve();t._backpressureChangePromise=newPromise((function(r){t._backpressureChangePromise_resolve=r}));t._backpressure=r}var z=function(){function TransformStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(TransformStreamDefaultController.prototype,"desiredSize",{get:function(){if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0});TransformStreamDefaultController.prototype.enqueue=function(t){void 0===t&&(t=void 0);if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("enqueue");TransformStreamDefaultControllerEnqueue(this,t)};TransformStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("error");!function TransformStreamDefaultControllerError(t,r){TransformStreamError(t._controlledTransformStream,r)}(this,t)};TransformStreamDefaultController.prototype.terminate=function(){if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("terminate");!function TransformStreamDefaultControllerTerminate(t){var r=t._controlledTransformStream;ReadableStreamDefaultControllerClose(r._readable._readableStreamController);var a=new TypeError("TransformStream terminated");TransformStreamErrorWritableAndUnblockWrite(r,a)}(this)};return TransformStreamDefaultController}();Object.defineProperties(z.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(z.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function IsTransformStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function TransformStreamDefaultControllerClearAlgorithms(t){t._transformAlgorithm=void 0;t._flushAlgorithm=void 0}function TransformStreamDefaultControllerEnqueue(t,r){var a=t._controlledTransformStream,i=a._readable._readableStreamController;if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(i))throw new TypeError("Readable side is not in a state that permits enqueue");try{ReadableStreamDefaultControllerEnqueue(i,r)}catch(t){TransformStreamErrorWritableAndUnblockWrite(a,t);throw a._readable._storedError}(function ReadableStreamDefaultControllerHasBackpressure(t){return!ReadableStreamDefaultControllerShouldCallPull(t)})(i)!==a._backpressure&&TransformStreamSetBackpressure(a,!0)}function TransformStreamDefaultControllerPerformTransform(t,r){return transformPromiseWith(t._transformAlgorithm(r),void 0,(function(r){TransformStreamError(t._controlledTransformStream,r);throw r}))}function defaultControllerBrandCheckException$1(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function streamBrandCheckException$2(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=j;t.CountQueuingStrategy=q;t.ReadableByteStreamController=T;t.ReadableStream=L;t.ReadableStreamBYOBReader=P;t.ReadableStreamBYOBRequest=A;t.ReadableStreamDefaultController=M;t.ReadableStreamDefaultReader=w;t.TransformStream=W;t.TransformStreamDefaultController=z;t.WritableStream=R;t.WritableStreamDefaultController=E;t.WritableStreamDefaultWriter=I;Object.defineProperty(t,"__esModule",{value:!0})})(r)},(t,r,a)=>{a(123);var i=a(127);t.exports=i("String","padStart")},(t,r,a)=>{"use strict";var i=a(9),o=a(124).start;i({target:"String",proto:!0,forced:a(126)},{padStart:function padStart(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,a)=>{var i=a(46),o=a(125),l=a(19),c=Math.ceil,createMethod=function(t){return function(r,a,u){var h,d,p=String(l(r)),g=p.length,m=void 0===u?" ":String(u),y=i(a);if(y<=g||""==m)return p;h=y-g;(d=o.call(m,c(h/m.length))).length>h&&(d=d.slice(0,h));return t?p+d:d+p}};t.exports={start:createMethod(!1),end:createMethod(!0)}},(t,r,a)=>{"use strict";var i=a(47),o=a(19);t.exports="".repeat||function repeat(t){var r=String(o(this)),a="",l=i(t);if(l<0||l==1/0)throw RangeError("Wrong number of repetitions");for(;l>0;(l>>>=1)&&(r+=r))1&l&&(a+=r);return a}},(t,r,a)=>{var i=a(95);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},(t,r,a)=>{var i=a(10),o=a(75),l=Function.call;t.exports=function(t,r,a){return o(l,i[t].prototype[r],a)}},(t,r,a)=>{a(129);var i=a(127);t.exports=i("String","padEnd")},(t,r,a)=>{"use strict";var i=a(9),o=a(124).end;i({target:"String",proto:!0,forced:a(126)},{padEnd:function padEnd(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,a)=>{a(131);var i=a(42);t.exports=i.Object.values},(t,r,a)=>{var i=a(9),o=a(132).values;i({target:"Object",stat:!0},{values:function values(t){return o(t)}})},(t,r,a)=>{var i=a(12),o=a(60),l=a(16),c=a(14).f,createMethod=function(t){return function(r){for(var a,u=l(r),h=o(u),d=h.length,p=0,g=[];d>p;){a=h[p++];i&&!c.call(u,a)||g.push(t?[a,u[a]]:u[a])}return g}};t.exports={entries:createMethod(!0),values:createMethod(!1)}},(t,r,a)=>{a(134);var i=a(42);t.exports=i.Object.entries},(t,r,a)=>{var i=a(9),o=a(132).entries;i({target:"Object",stat:!0},{entries:function entries(t){return o(t)}})},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.clearPrimitiveCaches=function clearPrimitiveCaches(){u._clearCache();c._clearCache();d._clearCache()};r.isCmd=function isCmd(t,r){return t instanceof u&&(void 0===r||t.cmd===r)};r.isDict=function isDict(t,r){return t instanceof h&&(void 0===r||isName(t.get("Type"),r))};r.isEOF=function isEOF(t){return t===l};r.isName=isName;r.isRef=function isRef(t){return t instanceof d};r.isRefsEqual=function isRefsEqual(t,r){return t.num===r.num&&t.gen===r.gen};r.isStream=function isStream(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.getBytes};r.RefSetCache=r.RefSet=r.Ref=r.Name=r.EOF=r.Dict=r.Cmd=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}var l={};r.EOF=l;var c=function NameClosure(){var t=Object.create(null);function Name(t){this.name=t}Name.prototype={};Name.get=function Name_get(r){var a=t[r];return a||(t[r]=new Name(r))};Name._clearCache=function(){t=Object.create(null)};return Name}();r.Name=c;var u=function CmdClosure(){var t=Object.create(null);function Cmd(t){this.cmd=t}Cmd.prototype={};Cmd.get=function Cmd_get(r){var a=t[r];return a||(t[r]=new Cmd(r))};Cmd._clearCache=function(){t=Object.create(null)};return Cmd}();r.Cmd=u;var h=function DictClosure(){var t=function nonSerializableClosure(){return t};function Dict(r){this._map=Object.create(null);this.xref=r;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=t}Dict.prototype={assignXref:function Dict_assignXref(t){this.xref=t},get size(){return Object.keys(this._map).length},get:function get(t,r,a){var i=this._map[t];void 0===i&&void 0!==r&&void 0===(i=this._map[r])&&void 0!==a&&(i=this._map[a]);return i instanceof d&&this.xref?this.xref.fetch(i,this.suppressEncryption):i},getAsync:function getAsync(t,r,a){var o=this;return function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}(i.default.mark((function _callee(){var l;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:void 0===(l=o._map[t])&&void 0!==r&&void 0===(l=o._map[r])&&void 0!==a&&(l=o._map[a]);if(!(l instanceof d&&o.xref)){i.next=4;break}return i.abrupt("return",o.xref.fetchAsync(l,o.suppressEncryption));case 4:return i.abrupt("return",l);case 5:case"end":return i.stop()}}),_callee)})))()},getArray:function getArray(t,r,a){var i=this.get(t,r,a);if(!Array.isArray(i)||!this.xref)return i;for(var o=0,l=(i=i.slice()).length;o<l;o++)i[o]instanceof d&&(i[o]=this.xref.fetch(i[o],this.suppressEncryption));return i},getRaw:function Dict_getRaw(t){return this._map[t]},getKeys:function Dict_getKeys(){return Object.keys(this._map)},getRawValues:function Dict_getRawValues(){return Object.values(this._map)},set:function Dict_set(t,r){this._map[t]=r},has:function Dict_has(t){return void 0!==this._map[t]},forEach:function Dict_forEach(t){for(var r in this._map)t(r,this.get(r))}};Dict.empty=function(){var t=new Dict(null);t.set=function(t,r){(0,o.unreachable)("Should not call `set` on the empty dictionary.")};return t}();Dict.merge=function(t){var r=t.xref,a=t.dictArray,i=t.mergeSubDicts,o=void 0!==i&&i,l=new Dict(r);if(!o){var c,u=_createForOfIteratorHelper(a);try{for(u.s();!(c=u.n()).done;){var h=c.value;if(h instanceof Dict)for(var d=0,p=Object.entries(h._map);d<p.length;d++){var g=_slicedToArray(p[d],2),m=g[0],y=g[1];void 0===l._map[m]&&(l._map[m]=y)}}}catch(t){u.e(t)}finally{u.f()}return l.size>0?l:Dict.empty}var b,v=new Map,S=_createForOfIteratorHelper(a);try{for(S.s();!(b=S.n()).done;){var k=b.value;if(k instanceof Dict)for(var w=0,C=Object.entries(k._map);w<C.length;w++){var _=_slicedToArray(C[w],2),x=_[0],A=_[1],T=v.get(x);if(void 0===T){T=[];v.set(x,T)}T.push(A)}}}catch(t){S.e(t)}finally{S.f()}var P,R=_createForOfIteratorHelper(v);try{for(R.s();!(P=R.n()).done;){var I=_slicedToArray(P.value,2),O=I[0],E=I[1];if(1!==E.length&&E[0]instanceof Dict){var D,B=new Dict(r),M=_createForOfIteratorHelper(E);try{for(M.s();!(D=M.n()).done;){var L=D.value;if(L instanceof Dict)for(var N=0,j=Object.entries(L._map);N<j.length;N++){var U=_slicedToArray(j[N],2),q=U[0],W=U[1];void 0===B._map[q]&&(B._map[q]=W)}}}catch(t){M.e(t)}finally{M.f()}B.size>0&&(l._map[O]=B)}else l._map[O]=E[0]}}catch(t){R.e(t)}finally{R.f()}v.clear();return l.size>0?l:Dict.empty};return Dict}();r.Dict=h;var d=function RefClosure(){var t=Object.create(null);function Ref(t,r){this.num=t;this.gen=r}Ref.prototype={toString:function Ref_toString(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}};Ref.get=function(r,a){var i=0===a?"".concat(r,"R"):"".concat(r,"R").concat(a),o=t[i];return o||(t[i]=new Ref(r,a))};Ref._clearCache=function(){t=Object.create(null)};return Ref}();r.Ref=d;var p=function(){function RefSet(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,RefSet);this._set=new Set(t&&t._set)}_createClass(RefSet,[{key:"has",value:function has(t){return this._set.has(t.toString())}},{key:"put",value:function put(t){this._set.add(t.toString())}},{key:"remove",value:function remove(t){this._set.delete(t.toString())}},{key:"forEach",value:function forEach(t){var r,a=_createForOfIteratorHelper(this._set.values());try{for(a.s();!(r=a.n()).done;){t(r.value)}}catch(t){a.e(t)}finally{a.f()}}},{key:"clear",value:function clear(){this._set.clear()}}]);return RefSet}();r.RefSet=p;var g=function(){function RefSetCache(){_classCallCheck(this,RefSetCache);this._map=new Map}_createClass(RefSetCache,[{key:"get",value:function get(t){return this._map.get(t.toString())}},{key:"has",value:function has(t){return this._map.has(t.toString())}},{key:"put",value:function put(t,r){this._map.set(t.toString(),r)}},{key:"putAlias",value:function putAlias(t,r){this._map.set(t.toString(),this.get(r))}},{key:"forEach",value:function forEach(t){var r,a=_createForOfIteratorHelper(this._map.values());try{for(a.s();!(r=a.n()).done;){t(r.value)}}catch(t){a.e(t)}finally{a.f()}}},{key:"clear",value:function clear(){this._map.clear()}},{key:"size",get:function get(){return this._map.size}}]);return RefSetCache}();r.RefSetCache=g;function isName(t,r){return t instanceof c&&(void 0===r||t.name===r)}},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.NetworkPdfManager=r.LocalPdfManager=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(137),c=a(138),u=a(139),h=a(142);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?_assertThisInitialized(t):r}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var d=function(){function BasePdfManager(){_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&(0,o.unreachable)("Cannot initialize BasePdfManager.")}_createClass(BasePdfManager,[{key:"onLoadedStream",value:function onLoadedStream(){(0,o.unreachable)("Abstract method `onLoadedStream` called")}},{key:"ensureDoc",value:function ensureDoc(t,r){return this.ensure(this.pdfDocument,t,r)}},{key:"ensureXRef",value:function ensureXRef(t,r){return this.ensure(this.pdfDocument.xref,t,r)}},{key:"ensureCatalog",value:function ensureCatalog(t,r){return this.ensure(this.pdfDocument.catalog,t,r)}},{key:"getPage",value:function getPage(t){return this.pdfDocument.getPage(t)}},{key:"fontFallback",value:function fontFallback(t,r){return this.pdfDocument.fontFallback(t,r)}},{key:"cleanup",value:function cleanup(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(t)}},{key:"ensure",value:(t=_asyncToGenerator(i.default.mark((function _callee(t,r,a){return i.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:(0,o.unreachable)("Abstract method `ensure` called");case 1:case"end":return t.stop()}}),_callee)}))),function ensure(r,a,i){return t.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){(0,o.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function requestLoadedStream(){(0,o.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function sendProgressiveData(t){(0,o.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function updatePassword(t){this._password=t}},{key:"terminate",value:function terminate(t){(0,o.unreachable)("Abstract method `terminate` called")}},{key:"docId",get:function get(){return this._docId}},{key:"password",get:function get(){return this._password}},{key:"docBaseUrl",get:function get(){var t=null;if(this._docBaseUrl){var r=(0,o.createValidAbsoluteUrl)(this._docBaseUrl);r?t=r.href:(0,o.warn)('Invalid absolute docBaseUrl: "'.concat(this._docBaseUrl,'".'))}return(0,o.shadow)(this,"docBaseUrl",t)}}]);var t;return BasePdfManager}(),p=function(t){_inherits(LocalPdfManager,t);var r,a=_createSuper(LocalPdfManager);function LocalPdfManager(t,r,i,o,l){var c;_classCallCheck(this,LocalPdfManager);(c=a.call(this))._docId=t;c._password=i;c._docBaseUrl=l;c.evaluatorOptions=o;var d=new h.Stream(r);c.pdfDocument=new u.PDFDocument(_assertThisInitialized(c),d);c._loadedStreamPromise=Promise.resolve(d);return c}_createClass(LocalPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(i.default.mark((function _callee2(t,r,a){var o;return i.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:if("function"!=typeof(o=t[r])){i.next=3;break}return i.abrupt("return",o.apply(t,a));case 3:return i.abrupt("return",o);case 4:case"end":return i.stop()}}),_callee2)}))),function ensure(t,a,i){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return Promise.resolve()}},{key:"requestLoadedStream",value:function requestLoadedStream(){}},{key:"onLoadedStream",value:function onLoadedStream(){return this._loadedStreamPromise}},{key:"terminate",value:function terminate(t){}}]);return LocalPdfManager}(d);r.LocalPdfManager=p;var g=function(t){_inherits(NetworkPdfManager,t);var r,a=_createSuper(NetworkPdfManager);function NetworkPdfManager(t,r,i,o,c){var h;_classCallCheck(this,NetworkPdfManager);(h=a.call(this))._docId=t;h._password=i.password;h._docBaseUrl=c;h.msgHandler=i.msgHandler;h.evaluatorOptions=o;h.streamManager=new l.ChunkedStreamManager(r,{msgHandler:i.msgHandler,length:i.length,disableAutoFetch:i.disableAutoFetch,rangeChunkSize:i.rangeChunkSize});h.pdfDocument=new u.PDFDocument(_assertThisInitialized(h),h.streamManager.getStream());return h}_createClass(NetworkPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(i.default.mark((function _callee3(t,r,a){var o;return i.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0;if("function"!=typeof(o=t[r])){i.next=4;break}return i.abrupt("return",o.apply(t,a));case 4:return i.abrupt("return",o);case 7:i.prev=7;i.t0=i.catch(0);if(i.t0 instanceof c.MissingDataException){i.next=11;break}throw i.t0;case 11:i.next=13;return this.requestRange(i.t0.begin,i.t0.end);case 13:return i.abrupt("return",this.ensure(t,r,a));case 14:case"end":return i.stop()}}),_callee3,this,[[0,7]])}))),function ensure(t,a,i){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return this.streamManager.requestRange(t,r)}},{key:"requestLoadedStream",value:function requestLoadedStream(){this.streamManager.requestAllChunks()}},{key:"sendProgressiveData",value:function sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}},{key:"onLoadedStream",value:function onLoadedStream(){return this.streamManager.onLoadedStream()}},{key:"terminate",value:function terminate(t){this.streamManager.abort(t)}}]);return NetworkPdfManager}(d);r.NetworkPdfManager=g},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ChunkedStreamManager=r.ChunkedStream=void 0;var i=a(4),o=a(138);function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var l=function(){function ChunkedStream(t,r,a){_classCallCheck(this,ChunkedStream);this.bytes=new Uint8Array(t);this.start=0;this.pos=0;this.end=t;this.chunkSize=r;this._loadedChunks=new Set;this.numChunks=Math.ceil(t/r);this.manager=a;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}_createClass(ChunkedStream,[{key:"getMissingChunks",value:function getMissingChunks(){for(var t=[],r=0,a=this.numChunks;r<a;++r)this._loadedChunks.has(r)||t.push(r);return t}},{key:"getBaseStreams",value:function getBaseStreams(){return[this]}},{key:"allChunksLoaded",value:function allChunksLoaded(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function onReceiveData(t,r){var a=this.chunkSize;if(t%a!=0)throw new Error("Bad begin offset: ".concat(t));var i=t+r.byteLength;if(i%a!=0&&i!==this.bytes.length)throw new Error("Bad end offset: ".concat(i));this.bytes.set(new Uint8Array(r),t);for(var o=Math.floor(t/a),l=Math.floor((i-1)/a)+1,c=o;c<l;++c)this._loadedChunks.add(c)}},{key:"onReceiveProgressiveData",value:function onReceiveProgressiveData(t){var r=this.progressiveDataLength,a=Math.floor(r/this.chunkSize);this.bytes.set(new Uint8Array(t),r);r+=t.byteLength;this.progressiveDataLength=r;for(var i=r>=this.end?this.numChunks:Math.floor(r/this.chunkSize),o=a;o<i;++o)this._loadedChunks.add(o)}},{key:"ensureByte",value:function ensureByte(t){if(!(t<this.progressiveDataLength)){var r=Math.floor(t/this.chunkSize);if(r!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(r))throw new o.MissingDataException(t,t+1);this.lastSuccessfulEnsureByteChunk=r}}}},{key:"ensureRange",value:function ensureRange(t,r){if(!(t>=r||r<=this.progressiveDataLength))for(var a=this.chunkSize,i=Math.floor(t/a),l=Math.floor((r-1)/a)+1,c=i;c<l;++c)if(!this._loadedChunks.has(c))throw new o.MissingDataException(t,r)}},{key:"nextEmptyChunk",value:function nextEmptyChunk(t){for(var r=this.numChunks,a=0;a<r;++a){var i=(t+a)%r;if(!this._loadedChunks.has(i))return i}return null}},{key:"hasChunk",value:function hasChunk(t){return this._loadedChunks.has(t)}},{key:"getByte",value:function getByte(){var t=this.pos;if(t>=this.end)return-1;t>=this.progressiveDataLength&&this.ensureByte(t);return this.bytes[this.pos++]}},{key:"getUint16",value:function getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r}},{key:"getInt32",value:function getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getBytes",value:function getBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.bytes,i=this.pos,o=this.end;if(!t){o>this.progressiveDataLength&&this.ensureRange(i,o);var l=a.subarray(i,o);return r?new Uint8ClampedArray(l):l}var c=i+t;c>o&&(c=o);c>this.progressiveDataLength&&this.ensureRange(i,c);this.pos=c;var u=a.subarray(i,c);return r?new Uint8ClampedArray(u):u}},{key:"peekByte",value:function peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t}},{key:"peekBytes",value:function peekBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.getBytes(t,r);this.pos-=a.length;return a}},{key:"getByteRange",value:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);r>this.progressiveDataLength&&this.ensureRange(t,r);return this.bytes.subarray(t,r)}},{key:"skip",value:function skip(t){t||(t=1);this.pos+=t}},{key:"reset",value:function reset(){this.pos=this.start}},{key:"moveStart",value:function moveStart(){this.start=this.pos}},{key:"makeSubStream",value:function makeSubStream(t,r,a){r?t+r>this.progressiveDataLength&&this.ensureRange(t,t+r):t>=this.progressiveDataLength&&this.ensureByte(t);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){for(var t=this.chunkSize,r=Math.floor(this.start/t),a=Math.floor((this.end-1)/t)+1,i=[],o=r;o<a;++o)this._loadedChunks.has(o)||i.push(o);return i};ChunkedStreamSubstream.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length};var i=new ChunkedStreamSubstream;i.pos=i.start=t;i.end=t+r||this.end;i.dict=a;return i}},{key:"numChunksLoaded",get:function get(){return this._loadedChunks.size}},{key:"length",get:function get(){return this.end-this.start}},{key:"isEmpty",get:function get(){return 0===this.length}}]);return ChunkedStream}();r.ChunkedStream=l;var c=function(){function ChunkedStreamManager(t,r){_classCallCheck(this,ChunkedStreamManager);this.length=r.length;this.chunkSize=r.rangeChunkSize;this.stream=new l(this.length,this.chunkSize,this);this.pdfNetworkStream=t;this.disableAutoFetch=r.disableAutoFetch;this.msgHandler=r.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new Map;this._requestsByChunk=new Map;this._promisesByRequest=new Map;this.progressiveDataLength=0;this.aborted=!1;this._loadedStreamCapability=(0,i.createPromiseCapability)()}_createClass(ChunkedStreamManager,[{key:"onLoadedStream",value:function onLoadedStream(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function sendRequest(t,r){var a=this,o=this.pdfNetworkStream.getRangeReader(t,r);o.isStreamingSupported||(o.onProgress=this.onProgress.bind(this));var l=[],c=0;new Promise((function(t,r){o.read().then((function readChunk(u){try{if(!u.done){var h=u.value;l.push(h);c+=(0,i.arrayByteLength)(h);o.isStreamingSupported&&a.onProgress({loaded:c});o.read().then(readChunk,r);return}var d=(0,i.arraysToBytes)(l);l=null;t(d)}catch(t){r(t)}}),r)})).then((function(r){a.aborted||a.onReceiveData({chunk:r,begin:t})}))}},{key:"requestAllChunks",value:function requestAllChunks(){var t=this.stream.getMissingChunks();this._requestChunks(t);return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function _requestChunks(t){var r=this,a=this.currRequestId++,o=new Set;this._chunksNeededByRequest.set(a,o);var l,c=_createForOfIteratorHelper(t);try{for(c.s();!(l=c.n()).done;){var u=l.value;this.stream.hasChunk(u)||o.add(u)}}catch(t){c.e(t)}finally{c.f()}if(0===o.size)return Promise.resolve();var h=(0,i.createPromiseCapability)();this._promisesByRequest.set(a,h);var d,p=[],g=_createForOfIteratorHelper(o);try{for(g.s();!(d=g.n()).done;){var m=d.value,y=this._requestsByChunk.get(m);if(!y){y=[];this._requestsByChunk.set(m,y);p.push(m)}y.push(a)}}catch(t){g.e(t)}finally{g.f()}if(p.length>0){var b,v=_createForOfIteratorHelper(this.groupChunks(p));try{for(v.s();!(b=v.n()).done;){var S=b.value,k=S.beginChunk*this.chunkSize,w=Math.min(S.endChunk*this.chunkSize,this.length);this.sendRequest(k,w)}}catch(t){v.e(t)}finally{v.f()}}return h.promise.catch((function(t){if(!r.aborted)throw t}))}},{key:"getStream",value:function getStream(){return this.stream}},{key:"requestRange",value:function requestRange(t,r){r=Math.min(r,this.length);for(var a=this.getBeginChunk(t),i=this.getEndChunk(r),o=[],l=a;l<i;++l)o.push(l);return this._requestChunks(o)}},{key:"requestRanges",value:function requestRanges(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[],i=_createForOfIteratorHelper(r);try{for(i.s();!(t=i.n()).done;)for(var o=t.value,l=this.getBeginChunk(o.begin),c=this.getEndChunk(o.end),u=l;u<c;++u)a.includes(u)||a.push(u)}catch(t){i.e(t)}finally{i.f()}a.sort((function(t,r){return t-r}));return this._requestChunks(a)}},{key:"groupChunks",value:function groupChunks(t){for(var r=[],a=-1,i=-1,o=0,l=t.length;o<l;++o){var c=t[o];a<0&&(a=c);if(i>=0&&i+1!==c){r.push({beginChunk:a,endChunk:i+1});a=c}o+1===t.length&&r.push({beginChunk:a,endChunk:c+1});i=c}return r}},{key:"onProgress",value:function onProgress(t){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+t.loaded,total:this.length})}},{key:"onReceiveData",value:function onReceiveData(t){var r=t.chunk,a=void 0===t.begin,i=a?this.progressiveDataLength:t.begin,o=i+r.byteLength,l=Math.floor(i/this.chunkSize),c=o<this.length?Math.floor(o/this.chunkSize):Math.ceil(o/this.chunkSize);if(a){this.stream.onReceiveProgressiveData(r);this.progressiveDataLength=o}else this.stream.onReceiveData(i,r);this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);for(var u=[],h=l;h<c;++h){var d=this._requestsByChunk.get(h);if(d){this._requestsByChunk.delete(h);var p,g=_createForOfIteratorHelper(d);try{for(g.s();!(p=g.n()).done;){var m=p.value,y=this._chunksNeededByRequest.get(m);y.has(h)&&y.delete(h);y.size>0||u.push(m)}}catch(t){g.e(t)}finally{g.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var b;if(1===this.stream.numChunksLoaded){var v=this.stream.numChunks-1;this.stream.hasChunk(v)||(b=v)}else b=this.stream.nextEmptyChunk(c);Number.isInteger(b)&&this._requestChunks([b])}for(var S=0,k=u;S<k.length;S++){var w=k[S],C=this._promisesByRequest.get(w);this._promisesByRequest.delete(w);C.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function onError(t){this._loadedStreamCapability.reject(t)}},{key:"getBeginChunk",value:function getBeginChunk(t){return Math.floor(t/this.chunkSize)}},{key:"getEndChunk",value:function getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}},{key:"abort",value:function abort(t){this.aborted=!0;this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(t);var r,a=_createForOfIteratorHelper(this._promisesByRequest.values());try{for(a.s();!(r=a.n()).done;){r.value.reject(t)}}catch(t){a.e(t)}finally{a.f()}}}]);return ChunkedStreamManager}();r.ChunkedStreamManager=c},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.collectActions=function collectActions(t,r,a){var l=Object.create(null);if(r.has("AA")){var c,u=r.get("AA"),h=_createForOfIteratorHelper(u.getKeys());try{for(h.s();!(c=h.n()).done;){var d=c.value,p=a[d];if(p){var g=u.getRaw(d),m=new o.RefSet,y=[];_collectJS(g,t,y,m);y.length>0&&(l[p]=y)}}}catch(t){h.e(t)}finally{h.f()}}if(r.has("A")){var b=r.get("A"),v=new o.RefSet,S=[];_collectJS(b,t,S,v);S.length>0&&(l.Action=S)}return(0,i.objectSize)(l)>0?l:null};r.escapePDFName=function escapePDFName(t){for(var r=[],a=0,i=0,o=t.length;i<o;i++){var l=t.charCodeAt(i);if(l<33||l>126||35===l||40===l||41===l||60===l||62===l||91===l||93===l||123===l||125===l||47===l||37===l){a<i&&r.push(t.substring(a,i));r.push("#".concat(l.toString(16)));a=i+1}}if(0===r.length)return t;a<t.length&&r.push(t.substring(a,t.length));return r.join("")};r.getArrayLookupTableFactory=function getArrayLookupTableFactory(t){var r;return function(){if(t){var a=t();t=null;r=Object.create(null);for(var i=0,o=a.length;i<o;i+=2)r[a[i]]=a[i+1];a=null}return r}};r.getInheritableProperty=function getInheritableProperty(t){var r,a=t.dict,o=t.key,l=t.getArray,c=void 0!==l&&l,u=t.stopWhenFound,h=void 0===u||u,d=0;for(;a;){var p=c?a.getArray(o):a.get(o);if(void 0!==p){if(h)return p;r||(r=[]);r.push(p)}if(++d>100){(0,i.warn)('getInheritableProperty: maximum loop count exceeded for "'.concat(o,'"'));break}a=a.get("Parent")}return r};r.getLookupTableFactory=function getLookupTableFactory(t){var r;return function(){if(t){r=Object.create(null);t(r);t=null}return r}};r.isWhiteSpace=function isWhiteSpace(t){return 32===t||9===t||13===t||10===t};r.log2=function log2(t){if(t<=0)return 0;return Math.ceil(Math.log2(t))};r.parseXFAPath=function parseXFAPath(t){var r=/(.+)\[([0-9]+)\]$/;return t.split(".").map((function(t){var a=t.match(r);return a?{name:a[1],pos:parseInt(a[2],10)}:{name:t,pos:0}}))};r.readInt8=function readInt8(t,r){return t[r]<<24>>24};r.readUint16=function readUint16(t,r){return t[r]<<8|t[r+1]};r.readUint32=function readUint32(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0};r.toRomanNumerals=function toRomanNumerals(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,i.assert)(Number.isInteger(t)&&t>0,"The number should be a positive integer.");var a,o=[];for(;t>=1e3;){t-=1e3;o.push("M")}a=t/100|0;t%=100;o.push(h[a]);a=t/10|0;t%=10;o.push(h[10+a]);o.push(h[20+t]);var l=o.join("");return r?l.toLowerCase():l};r.XRefParseException=r.XRefEntryException=r.MissingDataException=void 0;var i=a(4),o=a(135);function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){_inherits(MissingDataException,t);var r=_createSuper(MissingDataException);function MissingDataException(t,a){var i;_classCallCheck(this,MissingDataException);(i=r.call(this,"Missing data [".concat(t,", ").concat(a,")"))).begin=t;i.end=a;return i}return MissingDataException}(i.BaseException);r.MissingDataException=l;var c=function(t){_inherits(XRefEntryException,t);var r=_createSuper(XRefEntryException);function XRefEntryException(){_classCallCheck(this,XRefEntryException);return r.apply(this,arguments)}return XRefEntryException}(i.BaseException);r.XRefEntryException=c;var u=function(t){_inherits(XRefParseException,t);var r=_createSuper(XRefParseException);function XRefParseException(){_classCallCheck(this,XRefParseException);return r.apply(this,arguments)}return XRefParseException}(i.BaseException);r.XRefParseException=u;var h=["","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 _collectJS(t,r,a,l){if(t){var c=null;if((0,o.isRef)(t)){if(l.has(t))return;c=t;l.put(c);t=r.fetch(t)}if(Array.isArray(t)){var u,h=_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){_collectJS(u.value,r,a,l)}}catch(t){h.e(t)}finally{h.f()}}else if(t instanceof o.Dict){if((0,o.isName)(t.get("S"),"JavaScript")&&t.has("JS")){var d,p=t.get("JS");d=(0,o.isStream)(p)?(0,i.bytesToString)(p.getBytes()):p;(d=(0,i.stringToPDFString)(d))&&a.push(d)}_collectJS(t.getRaw("Next"),r,a,l)}c&&l.remove(c)}}},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.PDFDocument=r.Page=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(140),c=a(135),u=a(138),h=a(142),d=a(155),p=a(152),g=a(141),m=a(174),y=a(157);function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var b=[0,0,612,792];function isAnnotationRenderable(t,r){return"display"===r&&t.viewable||"print"===r&&t.printable}var v=function(){function Page(t){var r=t.pdfManager,a=t.xref,i=t.pageIndex,o=t.pageDict,l=t.ref,c=t.globalIdFactory,u=t.fontCache,h=t.builtInCMapCache,d=t.globalImageCache,p=t.nonBlendModesSet;_classCallCheck(this,Page);this.pdfManager=r;this.pageIndex=i;this.pageDict=o;this.xref=a;this.ref=l;this.fontCache=u;this.builtInCMapCache=h;this.globalImageCache=d;this.nonBlendModesSet=p;this.evaluatorOptions=r.evaluatorOptions;this.resourcesPromise=null;var g={obj:0};this._localIdFactory=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(_class,t);var r=_createSuper(_class);function _class(){_classCallCheck(this,_class);return r.apply(this,arguments)}_createClass(_class,null,[{key:"createObjId",value:function createObjId(){return"p".concat(i,"_").concat(++g.obj)}}]);return _class}(c)}_createClass(Page,[{key:"_getInheritableProperty",value:function _getInheritableProperty(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=(0,u.getInheritableProperty)({dict:this.pageDict,key:t,getArray:r,stopWhenFound:!1});return Array.isArray(a)?1!==a.length&&(0,c.isDict)(a[0])?c.Dict.merge({xref:this.xref,dictArray:a}):a[0]:a}},{key:"_getBoundingBox",value:function _getBoundingBox(t){var r=this._getInheritableProperty(t,!0);if(Array.isArray(r)&&4===r.length){if(r[2]-r[0]!=0&&r[3]-r[1]!=0)return r;(0,o.warn)("Empty /".concat(t," entry."))}return null}},{key:"getContentStream",value:function getContentStream(){var t,r=this.content;if(Array.isArray(r)){var a,i=this.xref,o=[],l=_createForOfIteratorHelper(r);try{for(l.s();!(a=l.n()).done;){var u=a.value;o.push(i.fetchIfRef(u))}}catch(t){l.e(t)}finally{l.f()}t=new h.StreamsSequenceStream(o)}else t=(0,c.isStream)(r)?r:new h.NullStream;return t}},{key:"save",value:function save(t,r,a){var i=new y.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){var l,c=[],u=_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var h=l.value;isAnnotationRenderable(h,"print")&&c.push(h.save(i,r,a).catch((function(t){(0,o.warn)("save - ignoring annotation data during "+'"'.concat(r.name,'" task: "').concat(t,'".'));return null})))}}catch(t){u.e(t)}finally{u.f()}return Promise.all(c)}))}},{key:"loadResources",value:function loadResources(t){var r=this;this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources"));return this.resourcesPromise.then((function(){return new l.ObjectLoader(r.resources,t,r.xref).load()}))}},{key:"getOperatorList",value:function getOperatorList(t){var r=this,a=t.handler,i=t.sink,l=t.task,c=t.intent,u=t.renderInteractiveForms,h=t.annotationStorage,d=this.pdfManager.ensure(this,"getContentStream"),p=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),g=new y.PartialEvaluator({xref:this.xref,handler:a,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),b=Promise.all([d,p]).then((function(t){var o=_slicedToArray(t,1)[0],u=new m.OperatorList(c,i);a.send("StartRenderPage",{transparency:g.hasBlendModes(r.resources,r.nonBlendModesSet),pageIndex:r.pageIndex,intent:c});return g.getOperatorList({stream:o,task:l,resources:r.resources,operatorList:u}).then((function(){return u}))}));return Promise.all([b,this._parsedAnnotations]).then((function(t){var r=_slicedToArray(t,2),a=r[0],i=r[1];if(0===i.length){a.flush(!0);return{length:a.totalLength}}var d,p=[],m=_createForOfIteratorHelper(i);try{for(m.s();!(d=m.n()).done;){var y=d.value;isAnnotationRenderable(y,c)&&!y.isHidden(h)&&p.push(y.getOperatorList(g,l,u,h).catch((function(t){(0,o.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(l.name,'" task: "').concat(t,'".'));return null})))}}catch(t){m.e(t)}finally{m.f()}return Promise.all(p).then((function(t){a.addOp(o.OPS.beginAnnotations,[]);var r,i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var l=r.value;a.addOpList(l)}}catch(t){i.e(t)}finally{i.f()}a.addOp(o.OPS.endAnnotations,[]);a.flush(!0);return{length:a.totalLength}}))}))}},{key:"extractTextContent",value:function extractTextContent(t){var r=this,a=t.handler,i=t.task,o=t.normalizeWhitespace,l=t.sink,c=t.combineTextItems,u=this.pdfManager.ensure(this,"getContentStream"),h=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([u,h]).then((function(t){var u=_slicedToArray(t,1)[0];return new y.PartialEvaluator({xref:r.xref,handler:a,pageIndex:r.pageIndex,idFactory:r._localIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,globalImageCache:r.globalImageCache,options:r.evaluatorOptions}).getTextContent({stream:u,task:i,resources:r.resources,normalizeWhitespace:o,combineTextItems:c,sink:l})}))}},{key:"getAnnotationsData",value:function getAnnotationsData(t){return this._parsedAnnotations.then((function(r){for(var a=[],i=0,o=r.length;i<o;i++)t&&!isAnnotationRenderable(r[i],t)||a.push(r[i].data);return a}))}},{key:"content",get:function get(){return this.pageDict.get("Contents")}},{key:"resources",get:function get(){return(0,o.shadow)(this,"resources",this._getInheritableProperty("Resources")||c.Dict.empty)}},{key:"mediaBox",get:function get(){return(0,o.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||b)}},{key:"cropBox",get:function get(){return(0,o.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function get(){var t=this.pageDict.get("UserUnit");(!(0,o.isNum)(t)||t<=0)&&(t=1);return(0,o.shadow)(this,"userUnit",t)}},{key:"view",get:function get(){var t,r=this.cropBox,a=this.mediaBox;if(r===a||(0,o.isArrayEqual)(r,a))t=a;else{var i=o.Util.intersect(r,a);i&&i[2]-i[0]!=0&&i[3]-i[1]!=0?t=i:(0,o.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,o.shadow)(this,"view",t||a)}},{key:"rotate",get:function get(){var t=this._getInheritableProperty("Rotate")||0;t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360);return(0,o.shadow)(this,"rotate",t)}},{key:"annotations",get:function get(){var t=this._getInheritableProperty("Annots");return(0,o.shadow)(this,"annotations",Array.isArray(t)?t:[])}},{key:"_parsedAnnotations",get:function get(){var t=this,r=this.pdfManager.ensure(this,"annotations").then((function(){var r,a=[],i=_createForOfIteratorHelper(t.annotations);try{for(i.s();!(r=i.n()).done;){var l=r.value;a.push(d.AnnotationFactory.create(t.xref,l,t.pdfManager,t._localIdFactory).catch((function(t){(0,o.warn)('_parsedAnnotations: "'.concat(t,'".'));return null})))}}catch(t){i.e(t)}finally{i.f()}return Promise.all(a).then((function(t){return t.filter((function(t){return!!t}))}))}));return(0,o.shadow)(this,"_parsedAnnotations",r)}},{key:"jsActions",get:function get(){var t=(0,u.collectActions)(this.xref,this.pageDict,o.PageActionEventType);return(0,o.shadow)(this,"jsActions",t)}}]);return Page}();r.Page=v;var S=new Uint8Array([37,80,68,70,45]),k=new Uint8Array([115,116,97,114,116,120,114,101,102]),w=new Uint8Array([101,110,100,111,98,106]),C=/^[1-9]\.[0-9]$/;function find(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=r.length,l=t.peekBytes(a),c=l.length-o;if(c<=0)return!1;if(i)for(var u=o-1,h=l.length-1;h>=u;){for(var d=0;d<o&&l[h-d]===r[u-d];)d++;if(d>=o){t.pos+=h-u;return!0}h--}else for(var p=0;p<=c;){for(var g=0;g<o&&l[p+g]===r[g];)g++;if(g>=o){t.pos+=p;return!0}p++}return!1}var _=function(){function PDFDocument(t,r){_classCallCheck(this,PDFDocument);var a;if((0,c.isStream)(r))a=r;else{if(!(0,o.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");a=new h.Stream(r)}if(a.length<=0)throw new o.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t;this.stream=a;this.xref=new l.XRef(a,t);this._pagePromises=[];this._version=null;var i={font:0};this._globalIdFactory=function(){function _class2(){_classCallCheck(this,_class2)}_createClass(_class2,null,[{key:"getDocId",value:function getDocId(){return"g_".concat(t.docId)}},{key:"createFontId",value:function createFontId(){return"f".concat(++i.font)}},{key:"createObjId",value:function createObjId(){(0,o.unreachable)("Abstract method `createObjId` called.")}}]);return _class2}()}_createClass(PDFDocument,[{key:"parse",value:function parse(t){this.xref.parse(t);this.catalog=new l.Catalog(this.pdfManager,this.xref);this.catalog.version&&(this._version=this.catalog.version)}},{key:"checkHeader",value:function checkHeader(){var t=this.stream;t.reset();if(find(t,S)){t.moveStart();for(var r,a="";(r=t.getByte())>32&&!(a.length>=12);)a+=String.fromCharCode(r);this._version||(this._version=a.substring(5))}}},{key:"parseStartXRef",value:function parseStartXRef(){this.xref.setStartXRef(this.startXRef)}},{key:"_hasOnlyDocumentSignatures",value:function _hasOnlyDocumentSignatures(t){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=10;return!!Array.isArray(t)&&t.every((function(t){if(!((t=r.xref.fetchIfRef(t))instanceof c.Dict))return!1;if(t.has("Kids")){if(++a>i){(0,o.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return r._hasOnlyDocumentSignatures(t.get("Kids"),a)}var l=(0,c.isName)(t.get("FT"),"Sig"),u=t.get("Rect"),h=Array.isArray(u)&&u.every((function(t){return 0===t}));return l&&h}))}},{key:"_getLinearizationPage",value:function _getLinearizationPage(t){var r=this.catalog,a=this.linearization,i=c.Ref.get(a.objectNumberFirst,0);return this.xref.fetchAsync(i).then((function(t){if((0,c.isDict)(t,"Page")||(0,c.isDict)(t)&&!t.has("Type")&&t.has("Contents")){i&&!r.pageKidsCountCache.has(i)&&r.pageKidsCountCache.put(i,1);return[t,i]}throw new o.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(a){(0,o.info)(a);return r.getPageDict(t)}))}},{key:"getPage",value:function getPage(t){var r=this;if(void 0!==this._pagePromises[t])return this._pagePromises[t];var a=this.catalog,i=this.linearization,o=i&&i.pageFirst===t?this._getLinearizationPage(t):a.getPageDict(t);return this._pagePromises[t]=o.then((function(i){var o=_slicedToArray(i,2),l=o[0],c=o[1];return new v({pdfManager:r.pdfManager,xref:r.xref,pageIndex:t,pageDict:l,ref:c,globalIdFactory:r._globalIdFactory,fontCache:a.fontCache,builtInCMapCache:a.builtInCMapCache,globalImageCache:a.globalImageCache,nonBlendModesSet:a.nonBlendModesSet})}))}},{key:"checkFirstPage",value:function checkFirstPage(){var t=this;return this.getPage(0).catch(function(){var r=_asyncToGenerator(i.default.mark((function _callee(r){return i.default.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if(!(r instanceof u.XRefEntryException)){a.next=5;break}t._pagePromises.length=0;a.next=4;return t.cleanup();case 4:throw new u.XRefParseException;case 5:case"end":return a.stop()}}),_callee)})));return function(t){return r.apply(this,arguments)}}())}},{key:"fontFallback",value:function fontFallback(t,r){return this.catalog.fontFallback(t,r)}},{key:"cleanup",value:(t=_asyncToGenerator(i.default.mark((function _callee2(){var t,r=arguments;return i.default.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:t=r.length>0&&void 0!==r[0]&&r[0];return a.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,c.clearPrimitiveCaches)());case 2:case"end":return a.stop()}}),_callee2,this)}))),function cleanup(){return t.apply(this,arguments)})},{key:"_collectFieldObjects",value:function _collectFieldObjects(t,r,a){var i=this.xref.fetchIfRef(r);if(i.has("T")){var l=(0,o.stringToPDFString)(i.get("T"));t=""===t?l:"".concat(t,".").concat(l)}a.has(t)||a.set(t,[]);a.get(t).push(d.AnnotationFactory.create(this.xref,r,this.pdfManager,this._localIdFactory).then((function(t){return t&&t.getFieldObject()})).catch((function(t){(0,o.warn)('_collectFieldObjects: "'.concat(t,'".'));return null})));if(i.has("Kids")){var c,u=_createForOfIteratorHelper(i.get("Kids"));try{for(u.s();!(c=u.n()).done;){var h=c.value;this._collectFieldObjects(t,h,a)}}catch(t){u.e(t)}finally{u.f()}}}},{key:"linearization",get:function get(){var t=null;try{t=g.Linearization.create(this.stream)}catch(t){if(t instanceof u.MissingDataException)throw t;(0,o.info)(t)}return(0,o.shadow)(this,"linearization",t)}},{key:"startXRef",get:function get(){var t=this.stream,r=0;if(this.linearization){t.reset();find(t,w)&&(r=t.pos+6-t.start)}else{for(var a=k.length,i=!1,l=t.end;!i&&l>0;){(l-=1024-a)<0&&(l=0);t.pos=l;i=find(t,k,1024,!0)}if(i){t.skip(9);var c;do{c=t.getByte()}while((0,u.isWhiteSpace)(c));for(var h="";c>=32&&c<=57;){h+=String.fromCharCode(c);c=t.getByte()}r=parseInt(h,10);isNaN(r)&&(r=0)}}return(0,o.shadow)(this,"startXRef",r)}},{key:"numPages",get:function get(){var t=this.linearization,r=t?t.numPages:this.catalog.numPages;return(0,o.shadow)(this,"numPages",r)}},{key:"formInfo",get:function get(){var t={hasFields:!1,hasAcroForm:!1,hasXfa:!1},r=this.catalog.acroForm;if(!r)return(0,o.shadow)(this,"formInfo",t);try{var a=r.get("Fields"),i=Array.isArray(a)&&a.length>0;t.hasFields=i;var l=r.get("XFA");t.hasXfa=Array.isArray(l)&&l.length>0||(0,c.isStream)(l)&&!l.isEmpty;var h=!!(1&r.get("SigFlags"))&&this._hasOnlyDocumentSignatures(a);t.hasAcroForm=i&&!h}catch(t){if(t instanceof u.MissingDataException)throw t;(0,o.warn)('Cannot fetch form information: "'.concat(t,'".'))}return(0,o.shadow)(this,"formInfo",t)}},{key:"documentInfo",get:function get(){var t={Title:o.isString,Author:o.isString,Subject:o.isString,Keywords:o.isString,Creator:o.isString,Producer:o.isString,CreationDate:o.isString,ModDate:o.isString,Trapped:c.isName},r=this._version;if("string"!=typeof r||!C.test(r)){(0,o.warn)("Invalid PDF header version number: ".concat(r));r=null}var a,i={PDFFormatVersion:r,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection};try{a=this.xref.trailer.get("Info")}catch(t){if(t instanceof u.MissingDataException)throw t;(0,o.info)("The document information dictionary is invalid.")}if((0,c.isDict)(a)){var l,h=_createForOfIteratorHelper(a.getKeys());try{for(h.s();!(l=h.n()).done;){var d=l.value,p=a.get(d);if(t[d])t[d](p)?i[d]="string"!=typeof p?p:(0,o.stringToPDFString)(p):(0,o.info)('Bad value in document info for "'.concat(d,'".'));else if("string"==typeof d){var g=void 0;if((0,o.isString)(p))g=(0,o.stringToPDFString)(p);else{if(!((0,c.isName)(p)||(0,o.isNum)(p)||(0,o.isBool)(p))){(0,o.info)('Unsupported value in document info for (custom) "'.concat(d,'".'));continue}g=p}i.Custom||(i.Custom=Object.create(null));i.Custom[d]=g}}}catch(t){h.e(t)}finally{h.f()}}return(0,o.shadow)(this,"documentInfo",i)}},{key:"fingerprint",get:function get(){for(var t,r=this.xref.trailer.get("ID"),a=[],i=0,l=(t=Array.isArray(r)&&r[0]&&(0,o.isString)(r[0])&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==r[0]?(0,o.stringToBytes)(r[0]):(0,p.calculateMD5)(this.stream.getByteRange(0,1024),0,1024)).length;i<l;i++){var c=t[i].toString(16);a.push(c.padStart(2,"0"))}return(0,o.shadow)(this,"fingerprint",a.join(""))}},{key:"fieldObjects",get:function get(){if(!this.formInfo.hasFields)return(0,o.shadow)(this,"fieldObjects",Promise.resolve(null));var t,r=Object.create(null),a=new Map,i=_createForOfIteratorHelper(this.catalog.acroForm.get("Fields"));try{for(i.s();!(t=i.n()).done;){var l=t.value;this._collectFieldObjects("",l,a)}}catch(t){i.e(t)}finally{i.f()}var c,u=[],h=_createForOfIteratorHelper(a);try{var d=function _loop(){var t=_slicedToArray(c.value,2),a=t[0],i=t[1];u.push(Promise.all(i).then((function(t){(t=t.filter((function(t){return!!t}))).length>0&&(r[a]=t)})))};for(h.s();!(c=h.n()).done;)d()}catch(t){h.e(t)}finally{h.f()}return(0,o.shadow)(this,"fieldObjects",Promise.all(u).then((function(){return r})))}},{key:"hasJSActions",get:function get(){var t=this;return(0,o.shadow)(this,"hasJSActions",this.fieldObjects.then((function(r){return null!==r&&Object.values(r).some((function(t){return t.some((function(t){return null!==t.actions}))}))||!!t.catalog.jsActions})))}},{key:"calculationOrderIds",get:function get(){var t=this.catalog.acroForm;if(!t||!t.has("CO"))return(0,o.shadow)(this,"calculationOrderIds",null);var r=t.get("CO");if(!Array.isArray(r)||0===r.length)return(0,o.shadow)(this,"calculationOrderIds",null);var a=r.filter(c.isRef).map((function(t){return t.toString()}));return 0===a.length?(0,o.shadow)(this,"calculationOrderIds",null):(0,o.shadow)(this,"calculationOrderIds",a)}}]);var t;return PDFDocument}();r.PDFDocument=_},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XRef=r.ObjectLoader=r.FileSpec=r.Catalog=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(135),c=a(138),u=a(141),h=a(152),d=a(153),p=a(154);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}function fetchDestination(t){return(0,l.isDict)(t)?t.get("D"):t}var g=function(){function Catalog(t,r){_classCallCheck(this,Catalog);this.pdfManager=t;this.xref=r;this._catDict=r.getCatalogObj();if(!(0,l.isDict)(this._catDict))throw new o.FormatError("Catalog object is not a dictionary.");this.fontCache=new l.RefSetCache;this.builtInCMapCache=new Map;this.globalImageCache=new p.GlobalImageCache;this.pageKidsCountCache=new l.RefSetCache;this.nonBlendModesSet=new l.RefSet}_createClass(Catalog,[{key:"_readMarkInfo",value:function _readMarkInfo(){var t=this._catDict.get("MarkInfo");if(!(0,l.isDict)(t))return null;var r=Object.assign(Object.create(null),{Marked:!1,UserProperties:!1,Suspects:!1});for(var a in r)if(t.has(a)){var i=t.get(a);(0,o.isBool)(i)&&(r[a]=i)}return r}},{key:"_readDocumentOutline",value:function _readDocumentOutline(){var t=this._catDict.get("Outlines");if(!(0,l.isDict)(t))return null;t=t.getRaw("First");if(!(0,l.isRef)(t))return null;var r={items:[]},a=[{obj:t,parent:r}],i=new l.RefSet;i.put(t);for(var c=this.xref,u=new Uint8ClampedArray(3);a.length>0;){var h=a.shift(),p=c.fetchIfRef(h.obj);if(null!==p){if(!p.has("Title"))throw new o.FormatError("Invalid outline item encountered.");var g={url:null,dest:null};Catalog.parseDestDictionary({destDict:p,resultObj:g,docBaseUrl:this.pdfManager.docBaseUrl});var m=p.get("Title"),y=p.get("F")||0,b=p.getArray("C"),v=p.get("Count"),S=u;!Array.isArray(b)||3!==b.length||0===b[0]&&0===b[1]&&0===b[2]||(S=d.ColorSpace.singletons.rgb.getRgb(b,0));var k={dest:g.dest,url:g.url,unsafeUrl:g.unsafeUrl,newWindow:g.newWindow,title:(0,o.stringToPDFString)(m),color:S,count:Number.isInteger(v)?v:void 0,bold:!!(2&y),italic:!!(1&y),items:[]};h.parent.items.push(k);t=p.getRaw("First");if((0,l.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:k});i.put(t)}t=p.getRaw("Next");if((0,l.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:h.parent});i.put(t)}}}return r.items.length>0?r.items:null}},{key:"_readPermissions",value:function _readPermissions(){var t=this.xref.trailer.get("Encrypt");if(!(0,l.isDict)(t))return null;var r=t.get("P");if(!(0,o.isNum)(r))return null;r+=Math.pow(2,32);var a=[];for(var i in o.PermissionFlag){var c=o.PermissionFlag[i];r&c&&a.push(c)}return a}},{key:"_readOptionalContentConfig",value:function _readOptionalContentConfig(t,r){function parseOnOff(t){var a=[];if(Array.isArray(t)){var i,o=_createForOfIteratorHelper(t);try{for(o.s();!(i=o.n()).done;){var c=i.value;(0,l.isRef)(c)&&(r.includes(c)&&a.push(c.toString()))}}catch(t){o.e(t)}finally{o.f()}}return a}function parseOrder(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(t))return null;var o,c=[],u=_createForOfIteratorHelper(t);try{for(u.s();!(o=u.n()).done;){var h=o.value;if((0,l.isRef)(h)&&r.includes(h)){i.put(h);c.push(h.toString())}else{var d=parseNestedOrder(h,a);d&&c.push(d)}}}catch(t){u.e(t)}finally{u.f()}if(a>0)return c;var p,g=[],m=_createForOfIteratorHelper(r);try{for(m.s();!(p=m.n()).done;){var y=p.value;i.has(y)||g.push(y.toString())}}catch(t){m.e(t)}finally{m.f()}g.length&&c.push({name:null,order:g});return c}function parseNestedOrder(t,r){if(++r>c){(0,o.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}var i=a.fetchIfRef(t);if(!Array.isArray(i))return null;var l=a.fetchIfRef(i[0]);if("string"!=typeof l)return null;var u=parseOrder(i.slice(1),r);return u&&u.length?{name:(0,o.stringToPDFString)(l),order:u}:null}var a=this.xref,i=new l.RefSet,c=10;return{name:(0,o.isString)(t.get("Name"))?(0,o.stringToPDFString)(t.get("Name")):null,creator:(0,o.isString)(t.get("Creator"))?(0,o.stringToPDFString)(t.get("Creator")):null,baseState:(0,l.isName)(t.get("BaseState"))?t.get("BaseState").name:null,on:parseOnOff(t.get("ON")),off:parseOnOff(t.get("OFF")),order:parseOrder(t.get("Order")),groups:null}}},{key:"getDestination",value:function getDestination(t){var r=this._readDests();return r instanceof b||r instanceof l.Dict?fetchDestination(r.get(t)||null):null}},{key:"_readDests",value:function _readDests(){var t=this._catDict.get("Names");return t&&t.has("Dests")?new b(t.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"_readPageLabels",value:function _readPageLabels(){var t=this._catDict.getRaw("PageLabels");if(!t)return null;for(var r=new Array(this.numPages),a=null,i="",u=new v(t,this.xref).getAll(),h="",d=1,p=0,g=this.numPages;p<g;p++){if(p in u){var m=u[p];if(!(0,l.isDict)(m))throw new o.FormatError("PageLabel is not a dictionary.");if(m.has("Type")&&!(0,l.isName)(m.get("Type"),"PageLabel"))throw new o.FormatError("Invalid type in PageLabel dictionary.");if(m.has("S")){var y=m.get("S");if(!(0,l.isName)(y))throw new o.FormatError("Invalid style in PageLabel dictionary.");a=y.name}else a=null;if(m.has("P")){var b=m.get("P");if(!(0,o.isString)(b))throw new o.FormatError("Invalid prefix in PageLabel dictionary.");i=(0,o.stringToPDFString)(b)}else i="";if(m.has("St")){var S=m.get("St");if(!(Number.isInteger(S)&&S>=1))throw new o.FormatError("Invalid start in PageLabel dictionary.");d=S}else d=1}switch(a){case"D":h=d;break;case"R":case"r":h=(0,c.toRomanNumerals)(d,"r"===a);break;case"A":case"a":for(var k="a"===a?97:65,w=d-1,C=String.fromCharCode(k+w%26),_=[],x=0,A=w/26|0;x<=A;x++)_.push(C);h=_.join("");break;default:if(a)throw new o.FormatError('Invalid style "'.concat(a,'" in PageLabel dictionary.'));h=""}r[p]=i+h;d++}return r}},{key:"_collectJavaScript",value:function _collectJavaScript(){var t=this._catDict.get("Names"),r=null;function appendIfJavaScriptDict(t,a){var i=a.get("S");if((0,l.isName)(i,"JavaScript")){var c=a.get("JS");if((0,l.isStream)(c))c=(0,o.bytesToString)(c.getBytes());else if(!(0,o.isString)(c))return;null===r&&(r=Object.create(null));r[t]=(0,o.stringToPDFString)(c)}}if(t&&t.has("JavaScript")){var a=new b(t.getRaw("JavaScript"),this.xref).getAll();for(var i in a){var c=a[i];(0,l.isDict)(c)&&appendIfJavaScriptDict(i,c)}}var u=this._catDict.get("OpenAction");(0,l.isDict)(u)&&(0,l.isName)(u.get("S"),"JavaScript")&&appendIfJavaScriptDict("OpenAction",u);return r}},{key:"fontFallback",value:function fontFallback(t,r){var a=[];this.fontCache.forEach((function(t){a.push(t)}));return Promise.all(a).then((function(a){var i,o=_createForOfIteratorHelper(a);try{for(o.s();!(i=o.n()).done;){var l=i.value;if(l.loadedName===t){l.fallback(r);return}}}catch(t){o.e(t)}finally{o.f()}}))}},{key:"cleanup",value:function cleanup(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,l.clearPrimitiveCaches)();this.globalImageCache.clear(r);this.pageKidsCountCache.clear();this.nonBlendModesSet.clear();var a=[];this.fontCache.forEach((function(t){a.push(t)}));return Promise.all(a).then((function(r){var a,i=_createForOfIteratorHelper(r);try{for(i.s();!(a=i.n()).done;){delete a.value.dict.cacheKey}}catch(t){i.e(t)}finally{i.f()}t.fontCache.clear();t.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function getPageDict(t){var r,a=(0,o.createPromiseCapability)(),i=[this._catDict.getRaw("Pages")],c=new l.RefSet,u=this.xref,h=this.pageKidsCountCache,d=0;!function next(){for(var p=function _loop(){var p=i.pop();if((0,l.isRef)(p)){if((r=h.get(p))>0&&d+r<t){d+=r;return"continue"}if(c.has(p)){a.reject(new o.FormatError("Pages tree contains circular reference."));return{v:void 0}}c.put(p);u.fetchAsync(p).then((function(r){if((0,l.isDict)(r,"Page")||(0,l.isDict)(r)&&!r.has("Kids"))if(t===d){p&&!h.has(p)&&h.put(p,1);a.resolve([r,p])}else{d++;next()}else{i.push(r);next()}}),a.reject);return{v:void 0}}if(!(0,l.isDict)(p)){a.reject(new o.FormatError("Page dictionary kid reference points to wrong type of object."));return{v:void 0}}r=p.get("Count");if(Number.isInteger(r)&&r>=0){var g=p.objId;g&&!h.has(g)&&h.put(g,r);if(d+r<=t){d+=r;return"continue"}}var m=p.get("Kids");if(!Array.isArray(m)){if((0,l.isName)(p.get("Type"),"Page")||!p.has("Type")&&p.has("Contents")){if(d===t){a.resolve([p,null]);return{v:void 0}}d++;return"continue"}a.reject(new o.FormatError("Page dictionary kids object is not an array."));return{v:void 0}}for(var y=m.length-1;y>=0;y--)i.push(m[y])};i.length;){var g=p();if("continue"!==g&&"object"===_typeof(g))return g.v}a.reject(new Error("Page index ".concat(t," not found.")))}();return a.promise}},{key:"getPageIndex",value:function getPageIndex(t){var r=this.xref;var a=0;return function next(i){return function pagesBeforeRef(a){var i,c=0;return r.fetchAsync(a).then((function(r){if((0,l.isRefsEqual)(a,t)&&!(0,l.isDict)(r,"Page")&&(!(0,l.isDict)(r)||r.has("Type")||!r.has("Contents")))throw new o.FormatError("The reference does not point to a /Page dictionary.");if(!r)return null;if(!(0,l.isDict)(r))throw new o.FormatError("Node must be a dictionary.");i=r.getRaw("Parent");return r.getAsync("Parent")})).then((function(t){if(!t)return null;if(!(0,l.isDict)(t))throw new o.FormatError("Parent must be a dictionary.");return t.getAsync("Kids")})).then((function(t){if(!t)return null;for(var u=[],h=!1,d=0,p=t.length;d<p;d++){var g=t[d];if(!(0,l.isRef)(g))throw new o.FormatError("Kid must be a reference.");if((0,l.isRefsEqual)(g,a)){h=!0;break}u.push(r.fetchAsync(g).then((function(t){if(!(0,l.isDict)(t))throw new o.FormatError("Kid node must be a dictionary.");t.has("Count")?c+=t.get("Count"):c++})))}if(!h)throw new o.FormatError("Kid reference not found in parent's kids.");return Promise.all(u).then((function(){return[c,i]}))}))}(i).then((function(t){if(!t)return a;var r=_slicedToArray(t,2),i=r[0],o=r[1];a+=i;return next(o)}))}(t)}},{key:"version",get:function get(){var t=this._catDict.get("Version");return(0,l.isName)(t)?(0,o.shadow)(this,"version",t.name):(0,o.shadow)(this,"version",null)}},{key:"collection",get:function get(){var t=null;try{var r=this._catDict.get("Collection");(0,l.isDict)(r)&&r.size>0&&(t=r)}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,o.shadow)(this,"collection",t)}},{key:"acroForm",get:function get(){var t=null;try{var r=this._catDict.get("AcroForm");(0,l.isDict)(r)&&r.size>0&&(t=r)}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,o.shadow)(this,"acroForm",t)}},{key:"metadata",get:function get(){var t=this._catDict.getRaw("Metadata");if(!(0,l.isRef)(t))return(0,o.shadow)(this,"metadata",null);var r,a=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),i=this.xref.fetch(t,a);if(i&&(0,l.isDict)(i.dict)){var u=i.dict.get("Type"),h=i.dict.get("Subtype");if((0,l.isName)(u,"Metadata")&&(0,l.isName)(h,"XML"))try{r=(0,o.stringToUTF8String)((0,o.bytesToString)(i.getBytes()))}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.info)("Skipping invalid metadata.")}}return(0,o.shadow)(this,"metadata",r)}},{key:"markInfo",get:function get(){var t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)("Unable to read mark info.")}return(0,o.shadow)(this,"markInfo",t)}},{key:"toplevelPagesDict",get:function get(){var t=this._catDict.get("Pages");if(!(0,l.isDict)(t))throw new o.FormatError("Invalid top-level pages dictionary.");return(0,o.shadow)(this,"toplevelPagesDict",t)}},{key:"documentOutline",get:function get(){var t=null;try{t=this._readDocumentOutline()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)("Unable to read document outline.")}return(0,o.shadow)(this,"documentOutline",t)}},{key:"permissions",get:function get(){var t=null;try{t=this._readPermissions()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)("Unable to read permissions.")}return(0,o.shadow)(this,"permissions",t)}},{key:"optionalContentConfig",get:function get(){var t=null;try{var r=this._catDict.get("OCProperties");if(!r)return(0,o.shadow)(this,"optionalContentConfig",null);var a=r.get("D");if(!a)return(0,o.shadow)(this,"optionalContentConfig",null);var i=r.get("OCGs");if(!Array.isArray(i))return(0,o.shadow)(this,"optionalContentConfig",null);var u,h=[],d=[],p=_createForOfIteratorHelper(i);try{for(p.s();!(u=p.n()).done;){var g=u.value;if((0,l.isRef)(g)){d.push(g);var m=this.xref.fetchIfRef(g);h.push({id:g.toString(),name:(0,o.isString)(m.get("Name"))?(0,o.stringToPDFString)(m.get("Name")):null,intent:(0,o.isString)(m.get("Intent"))?(0,o.stringToPDFString)(m.get("Intent")):null})}}}catch(t){p.e(t)}finally{p.f()}(t=this._readOptionalContentConfig(a,d)).groups=h}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)("Unable to read optional content config: ".concat(t))}return(0,o.shadow)(this,"optionalContentConfig",t)}},{key:"numPages",get:function get(){var t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new o.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,o.shadow)(this,"numPages",t)}},{key:"destinations",get:function get(){var t=this._readDests(),r=Object.create(null);if(t instanceof b){var a=t.getAll();for(var i in a)r[i]=fetchDestination(a[i])}else t instanceof l.Dict&&t.forEach((function(t,a){a&&(r[t]=fetchDestination(a))}));return(0,o.shadow)(this,"destinations",r)}},{key:"pageLabels",get:function get(){var t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)("Unable to read page labels.")}return(0,o.shadow)(this,"pageLabels",t)}},{key:"pageLayout",get:function get(){var t=this._catDict.get("PageLayout"),r="";if((0,l.isName)(t))switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":r=t.name}return(0,o.shadow)(this,"pageLayout",r)}},{key:"pageMode",get:function get(){var t=this._catDict.get("PageMode"),r="UseNone";if((0,l.isName)(t))switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":r=t.name}return(0,o.shadow)(this,"pageMode",r)}},{key:"viewerPreferences",get:function get(){var t=this,r={HideToolbar:o.isBool,HideMenubar:o.isBool,HideWindowUI:o.isBool,FitWindow:o.isBool,CenterWindow:o.isBool,DisplayDocTitle:o.isBool,NonFullScreenPageMode:l.isName,Direction:l.isName,ViewArea:l.isName,ViewClip:l.isName,PrintArea:l.isName,PrintClip:l.isName,PrintScaling:l.isName,Duplex:l.isName,PickTrayByPDFSize:o.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},a=this._catDict.get("ViewerPreferences"),i=null;if((0,l.isDict)(a))for(var c in r)if(a.has(c)){var u=a.get(c);if(r[c](u)){var h=void 0;switch(c){case"NonFullScreenPageMode":switch(u.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":h=u.name;break;default:h="UseNone"}break;case"Direction":switch(u.name){case"L2R":case"R2L":h=u.name;break;default:h="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(u.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":h=u.name;break;default:h="CropBox"}break;case"PrintScaling":switch(u.name){case"None":case"AppDefault":h=u.name;break;default:h="AppDefault"}break;case"Duplex":switch(u.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":h=u.name;break;default:h="None"}break;case"PrintPageRange":if(u.length%2!=0)break;u.every((function(r,a,i){return Number.isInteger(r)&&r>0&&(0===a||r>=i[a-1])&&r<=t.numPages}))&&(h=u);break;case"NumCopies":u>0&&(h=u);break;default:if("boolean"!=typeof u)throw new o.FormatError("viewerPreferences - expected a boolean value for: ".concat(c));h=u}if(void 0!==h){i||(i=Object.create(null));i[c]=h}else(0,o.info)('Bad value in ViewerPreferences for "'.concat(c,'".'))}else(0,o.info)('Bad value in ViewerPreferences for "'.concat(c,'".'))}return(0,o.shadow)(this,"viewerPreferences",i)}},{key:"openAction",get:function get(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if((0,l.isDict)(t)){var a=new l.Dict(this.xref);a.set("A",t);var i={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:a,resultObj:i});Array.isArray(i.dest)?r.dest=i.dest:i.action&&(r.action=i.action)}else Array.isArray(t)&&(r.dest=t);return(0,o.shadow)(this,"openAction",(0,o.objectSize)(r)>0?r:null)}},{key:"attachments",get:function get(){var t=this._catDict.get("Names"),r=null;if(t&&t.has("EmbeddedFiles")){var a=new b(t.getRaw("EmbeddedFiles"),this.xref).getAll();for(var i in a){var l=new S(a[i],this.xref);r||(r=Object.create(null));r[(0,o.stringToPDFString)(i)]=l.serializable}}return(0,o.shadow)(this,"attachments",r)}},{key:"javaScript",get:function get(){var t=this._collectJavaScript();return(0,o.shadow)(this,"javaScript",t?Object.values(t):null)}},{key:"jsActions",get:function get(){var t=this._collectJavaScript(),r=(0,c.collectActions)(this.xref,this._catDict,o.DocumentActionEventType);!r&&t&&(r=Object.create(null));if(r&&t)for(var a=0,i=Object.entries(t);a<i.length;a++){var l=_slicedToArray(i[a],2),u=l[0],h=l[1];u in r?r[u].push(h):r[u]=[h]}return(0,o.shadow)(this,"jsActions",r)}}],[{key:"parseDestDictionary",value:function parseDestDictionary(t){var r=t.destDict;if((0,l.isDict)(r)){var a=t.resultObj;if("object"===_typeof(a)){var i,c,u=t.docBaseUrl||null,h=r.get("A");if(!(0,l.isDict)(h))if(r.has("Dest"))h=r.get("Dest");else{h=r.get("AA");(0,l.isDict)(h)&&(h.has("D")?h=h.get("D"):h.has("U")&&(h=h.get("U")))}if((0,l.isDict)(h)){var d=h.get("S");if(!(0,l.isName)(d)){(0,o.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}var p=d.name;switch(p){case"URI":i=h.get("URI");(0,l.isName)(i)?i="/"+i.name:(0,o.isString)(i)&&(i=function addDefaultProtocolToUrl(t){return t.startsWith("www.")?"http://".concat(t):t}(i));break;case"GoTo":c=h.get("D");break;case"Launch":case"GoToR":var g=h.get("F");(0,l.isDict)(g)?i=g.get("F")||null:(0,o.isString)(g)&&(i=g);var m=h.get("D");if(m){(0,l.isName)(m)&&(m=m.name);if((0,o.isString)(i)){var y=i.split("#")[0];(0,o.isString)(m)?i=y+"#"+m:Array.isArray(m)&&(i=y+"#"+JSON.stringify(m))}}var b=h.get("NewWindow");(0,o.isBool)(b)&&(a.newWindow=b);break;case"Named":var v=h.get("N");(0,l.isName)(v)&&(a.action=v.name);break;case"JavaScript":var S,k=h.get("JS");(0,l.isStream)(k)?S=(0,o.bytesToString)(k.getBytes()):(0,o.isString)(k)&&(S=k);if(S){var w=new RegExp("^\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,o.stringToPDFString)(S));if(w&&w[2]){i=w[2];"true"===w[3]&&"app.launchURL"===w[1]&&(a.newWindow=!0);break}}default:(0,o.warn)('parseDestDictionary: unsupported action type "'.concat(p,'".'))}}else r.has("Dest")&&(c=r.get("Dest"));if((0,o.isString)(i)){i=function tryConvertUrlEncoding(t){try{return(0,o.stringToUTF8String)(t)}catch(r){return t}}(i);var C=(0,o.createValidAbsoluteUrl)(i,u);C&&(a.url=C.href);a.unsafeUrl=i}if(c){(0,l.isName)(c)&&(c=c.name);((0,o.isString)(c)||Array.isArray(c))&&(a.dest=c)}}else(0,o.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,o.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]);return Catalog}();r.Catalog=g;var m=function XRefClosure(){function XRef(t,r){this.stream=t;this.pdfManager=r;this.entries=[];this.xrefstms=Object.create(null);this._cacheMap=new Map;this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)};this._newRefNum=null}XRef.prototype={getNewRef:function XRef_getNewRef(){null===this._newRefNum&&(this._newRefNum=this.entries.length);return l.Ref.get(this._newRefNum++,0)},resetNewRef:function XRef_resetNewRef(){this._newRefNum=null},setStartXRef:function XRef_setStartXRef(t){this.startXRefQueue=[t]},parse:function XRef_parse(t){var r,a,i;if(t){(0,o.warn)("Indexing all PDF objects");r=this.indexObjects()}else r=this.readXRef();r.assignXref(this);this.trailer=r;try{a=r.get("Encrypt")}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(t,'".'))}if((0,l.isDict)(a)){var u=r.get("ID"),d=u&&u.length?u[0]:"";a.suppressEncryption=!0;this.encrypt=new h.CipherTransformFactory(a,d,this.pdfManager.password)}try{i=r.get("Root")}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)('XRef.parse - Invalid "Root" reference: "'.concat(t,'".'))}if(!(0,l.isDict)(i)||!i.has("Pages")){if(!t)throw new c.XRefParseException;throw new o.FormatError("Invalid root reference")}this.root=i},processXRefTable:function XRef_processXRefTable(t){"tableState"in this||(this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2});var r=this.readXRefTable(t);if(!(0,l.isCmd)(r,"trailer"))throw new o.FormatError("Invalid XRef table: could not find trailer dictionary");var a=t.getObj();!(0,l.isDict)(a)&&a.dict&&(a=a.dict);if(!(0,l.isDict)(a))throw new o.FormatError("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return a},readXRefTable:function XRef_readXRefTable(t){var r,a=t.lexer.stream,i=this.tableState;a.pos=i.streamPos;t.buf1=i.parserBuf1;t.buf2=i.parserBuf2;for(;;){if(!("firstEntryNum"in i)||!("entryCount"in i)){if((0,l.isCmd)(r=t.getObj(),"trailer"))break;i.firstEntryNum=r;i.entryCount=t.getObj()}var c=i.firstEntryNum,u=i.entryCount;if(!Number.isInteger(c)||!Number.isInteger(u))throw new o.FormatError("Invalid XRef table: wrong types in subsection header");for(var h=i.entryNum;h<u;h++){i.streamPos=a.pos;i.entryNum=h;i.parserBuf1=t.buf1;i.parserBuf2=t.buf2;var d={};d.offset=t.getObj();d.gen=t.getObj();var p=t.getObj();if(p instanceof l.Cmd)switch(p.cmd){case"f":d.free=!0;break;case"n":d.uncompressed=!0}if(!Number.isInteger(d.offset)||!Number.isInteger(d.gen)||!d.free&&!d.uncompressed)throw new o.FormatError("Invalid entry in XRef subsection: ".concat(c,", ").concat(u));0===h&&d.free&&1===c&&(c=0);this.entries[h+c]||(this.entries[h+c]=d)}i.entryNum=0;i.streamPos=a.pos;i.parserBuf1=t.buf1;i.parserBuf2=t.buf2;delete i.firstEntryNum;delete i.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new o.FormatError("Invalid XRef table: unexpected first object");return r},processXRefStream:function XRef_processXRefStream(t){if(!("streamState"in this)){var r=t.dict,a=r.get("W"),i=r.get("Index");i||(i=[0,r.get("Size")]);this.streamState={entryRanges:i,byteWidths:a,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict},readXRefStream:function XRef_readXRefStream(t){var r,a,i=this.streamState;t.pos=i.streamPos;for(var l=i.byteWidths,c=l[0],u=l[1],h=l[2],d=i.entryRanges;d.length>0;){var p=d[0],g=d[1];if(!Number.isInteger(p)||!Number.isInteger(g))throw new o.FormatError("Invalid XRef range fields: ".concat(p,", ").concat(g));if(!Number.isInteger(c)||!Number.isInteger(u)||!Number.isInteger(h))throw new o.FormatError("Invalid XRef entry fields length: ".concat(p,", ").concat(g));for(r=i.entryNum;r<g;++r){i.entryNum=r;i.streamPos=t.pos;var m=0,y=0,b=0;for(a=0;a<c;++a)m=m<<8|t.getByte();0===c&&(m=1);for(a=0;a<u;++a)y=y<<8|t.getByte();for(a=0;a<h;++a)b=b<<8|t.getByte();var v={};v.offset=y;v.gen=b;switch(m){case 0:v.free=!0;break;case 1:v.uncompressed=!0;break;case 2:break;default:throw new o.FormatError("Invalid XRef entry type: ".concat(m))}this.entries[p+r]||(this.entries[p+r]=v)}i.entryNum=0;i.streamPos=t.pos;d.splice(0,2)}},indexObjects:function XRef_indexObjects(){function readToken(t,r){for(var a="",i=t[r];10!==i&&13!==i&&60!==i&&!(++r>=t.length);){a+=String.fromCharCode(i);i=t[r]}return a}function skipUntil(t,r,a){for(var i=a.length,o=t.length,l=0;r<o;){for(var c=0;c<i&&t[r+c]===a[c];)++c;if(c>=i)break;r++;l++}return l}var t=/^(\d+)\s+(\d+)\s+obj\b/,r=/\bendobj[\b\s]$/,a=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,i=new Uint8Array([116,114,97,105,108,101,114]),h=new Uint8Array([115,116,97,114,116,120,114,101,102]),d=new Uint8Array([111,98,106]),p=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var g=this.stream;g.pos=0;for(var m,y=g.getBytes(),b=g.start,v=y.length,S=[],k=[];b<v;){var w=y[b];if(9!==w&&10!==w&&13!==w&&32!==w)if(37!==w){var C,_=readToken(y,b);if(_.startsWith("xref")&&(4===_.length||/\s/.test(_[4]))){b+=skipUntil(y,b,i);S.push(b);b+=skipUntil(y,b,h)}else if(C=t.exec(_)){var x=0|C[1],A=0|C[2];this.entries[x]&&this.entries[x].gen!==A||(this.entries[x]={offset:b-g.start,gen:A,uncompressed:!0});for(var T=void 0,P=b+_.length;P<y.length;){var R=P+skipUntil(y,P,d)+4;T=R-b;var I=Math.max(R-25,P),O=(0,o.bytesToString)(y.subarray(I,R));if(r.test(O))break;var E=a.exec(O);if(E&&E[1]){(0,o.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.');T-=E[1].length;break}P=R}var D=y.subarray(b,b+T),B=skipUntil(D,0,p);if(B<T&&D[B+5]<64){k.push(b-g.start);this.xrefstms[b-g.start]=1}b+=T}else if(_.startsWith("trailer")&&(7===_.length||/\s/.test(_[7]))){S.push(b);b+=skipUntil(y,b,h)}else b+=_.length+1}else do{if(++b>=v)break;w=y[b]}while(10!==w&&13!==w);else++b}for(var M=0,L=k.length;M<L;++M){this.startXRefQueue.push(k[M]);this.readXRef(!0)}for(var N=0,j=S.length;N<j;++N){g.pos=S[N];var U=new u.Parser({lexer:new u.Lexer(g),xref:this,allowStreams:!0,recoveryMode:!0}),q=U.getObj();if((0,l.isCmd)(q,"trailer")){var W=U.getObj();if((0,l.isDict)(W)){try{var z=W.get("Root");if(!(z instanceof l.Dict))continue;var G=z.get("Pages");if(!(G instanceof l.Dict))continue;var H=G.get("Count");if(!Number.isInteger(H))continue}catch(t){if(t instanceof c.MissingDataException)throw t;continue}if(W.has("ID"))return W;m=W}}}if(m)return m;throw new o.InvalidPDFException("Invalid PDF structure.")},readXRef:function XRef_readXRef(t){var r=this.stream,a=Object.create(null);try{for(;this.startXRefQueue.length;){var i=this.startXRefQueue[0];if(a[i]){(0,o.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift()}else{a[i]=!0;r.pos=i+r.start;var h,d=new u.Parser({lexer:new u.Lexer(r),xref:this,allowStreams:!0}),p=d.getObj();if((0,l.isCmd)(p,"xref")){h=this.processXRefTable(d);this.topDict||(this.topDict=h);p=h.get("XRefStm");if(Number.isInteger(p)){var g=p;if(!(g in this.xrefstms)){this.xrefstms[g]=1;this.startXRefQueue.push(g)}}}else{if(!Number.isInteger(p))throw new o.FormatError("Invalid XRef stream header");if(!Number.isInteger(d.getObj())||!(0,l.isCmd)(d.getObj(),"obj")||!(0,l.isStream)(p=d.getObj()))throw new o.FormatError("Invalid XRef stream");h=this.processXRefStream(p);this.topDict||(this.topDict=h);if(!h)throw new o.FormatError("Failed to read XRef stream")}p=h.get("Prev");Number.isInteger(p)?this.startXRefQueue.push(p):(0,l.isRef)(p)&&this.startXRefQueue.push(p.num);this.startXRefQueue.shift()}}return this.topDict}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.info)("(while reading XRef): "+t)}if(!t)throw new c.XRefParseException},getEntry:function XRef_getEntry(t){var r=this.entries[t];return r&&!r.free&&r.offset?r:null},fetchIfRef:function XRef_fetchIfRef(t,r){return t instanceof l.Ref?this.fetch(t,r):t},fetch:function XRef_fetch(t,r){if(!(t instanceof l.Ref))throw new Error("ref object is not a reference");var a=t.num,i=this._cacheMap.get(a);if(void 0!==i){i instanceof l.Dict&&!i.objId&&(i.objId=t.toString());return i}var o=this.getEntry(a);if(null===o){this._cacheMap.set(a,o);return o}o=o.uncompressed?this.fetchUncompressed(t,o,r):this.fetchCompressed(t,o,r);(0,l.isDict)(o)?o.objId=t.toString():(0,l.isStream)(o)&&(o.dict.objId=t.toString());return o},fetchUncompressed:function fetchUncompressed(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.gen,o=t.num;if(r.gen!==i)throw new c.XRefEntryException("Inconsistent generation in XRef: ".concat(t));var h=this.stream.makeSubStream(r.offset+this.stream.start),d=new u.Parser({lexer:new u.Lexer(h),xref:this,allowStreams:!0}),p=d.getObj(),g=d.getObj(),m=d.getObj();if(p!==o||g!==i||!(m instanceof l.Cmd))throw new c.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t));if("obj"!==m.cmd){if(m.cmd.startsWith("obj")){o=parseInt(m.cmd.substring(3),10);if(!Number.isNaN(o))return o}throw new c.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t))}r=this.encrypt&&!a?d.getObj(this.encrypt.createCipherTransform(o,i)):d.getObj();(0,l.isStream)(r)||this._cacheMap.set(o,r);return r},fetchCompressed:function fetchCompressed(t,r){var a=r.offset,i=this.fetch(l.Ref.get(a,0));if(!(0,l.isStream)(i))throw new o.FormatError("bad ObjStm stream");var h=i.dict.get("First"),d=i.dict.get("N");if(!Number.isInteger(h)||!Number.isInteger(d))throw new o.FormatError("invalid first and n parameters for ObjStm stream");for(var p=new u.Parser({lexer:new u.Lexer(i),xref:this,allowStreams:!0}),g=new Array(d),m=0;m<d;++m){var y=p.getObj();if(!Number.isInteger(y))throw new o.FormatError("invalid object number in the ObjStm stream: ".concat(y));var b=p.getObj();if(!Number.isInteger(b))throw new o.FormatError("invalid object offset in the ObjStm stream: ".concat(b));g[m]=y}for(var v=new Array(d),S=0;S<d;++S){var k=p.getObj();v[S]=k;p.buf1 instanceof l.Cmd&&"endobj"===p.buf1.cmd&&p.shift();if(!(0,l.isStream)(k)){var w=g[S],C=this.entries[w];C&&C.offset===a&&C.gen===S&&this._cacheMap.set(w,k)}}if(void 0===(r=v[r.gen]))throw new c.XRefEntryException("Bad (compressed) XRef entry: ".concat(t));return r},fetchIfRefAsync:function fetchIfRefAsync(t,r){var a=this;return _asyncToGenerator(i.default.mark((function _callee(){return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(!(t instanceof l.Ref)){i.next=2;break}return i.abrupt("return",a.fetchAsync(t,r));case 2:return i.abrupt("return",t);case 3:case"end":return i.stop()}}),_callee)})))()},fetchAsync:function fetchAsync(t,r){var a=this;return _asyncToGenerator(i.default.mark((function _callee2(){return i.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0;return i.abrupt("return",a.fetch(t,r));case 4:i.prev=4;i.t0=i.catch(0);if(i.t0 instanceof c.MissingDataException){i.next=8;break}throw i.t0;case 8:i.next=10;return a.pdfManager.requestRange(i.t0.begin,i.t0.end);case 10:return i.abrupt("return",a.fetchAsync(t,r));case 11:case"end":return i.stop()}}),_callee2,null,[[0,4]])})))()},getCatalogObj:function XRef_getCatalogObj(){return this.root}};return XRef}();r.XRef=m;var y=function(){function NameOrNumberTree(t,r,a){_classCallCheck(this,NameOrNumberTree);this.constructor===NameOrNumberTree&&(0,o.unreachable)("Cannot initialize NameOrNumberTree.");this.root=t;this.xref=r;this._type=a}_createClass(NameOrNumberTree,[{key:"getAll",value:function getAll(){var t=Object.create(null);if(!this.root)return t;var r=this.xref,a=new l.RefSet;a.put(this.root);for(var i=[this.root];i.length>0;){var c=r.fetchIfRef(i.shift());if((0,l.isDict)(c))if(c.has("Kids"))for(var u=c.get("Kids"),h=0,d=u.length;h<d;h++){var p=u[h];if(a.has(p))throw new o.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));i.push(p);a.put(p)}else{var g=c.get(this._type);if(Array.isArray(g))for(var m=0,y=g.length;m<y;m+=2)t[r.fetchIfRef(g[m])]=r.fetchIfRef(g[m+1])}}return t}},{key:"get",value:function get(t){if(!this.root)return null;for(var r=this.xref,a=r.fetchIfRef(this.root),i=0;a.has("Kids");){if(++i>10){(0,o.warn)('Search depth limit reached for "'.concat(this._type,'" tree.'));return null}var l=a.get("Kids");if(!Array.isArray(l))return null;for(var c=0,u=l.length-1;c<=u;){var h=c+u>>1,d=r.fetchIfRef(l[h]).get("Limits");if(t<r.fetchIfRef(d[0]))u=h-1;else{if(!(t>r.fetchIfRef(d[1]))){a=r.fetchIfRef(l[h]);break}c=h+1}}if(c>u)return null}var p=a.get(this._type);if(Array.isArray(p)){for(var g=0,m=p.length-2;g<=m;){var y=g+m>>1,b=y+(1&y),v=r.fetchIfRef(p[b]);if(t<v)m=b-2;else{if(!(t>v))return r.fetchIfRef(p[b+1]);g=b+2}}(0,o.info)('Falling back to an exhaustive search, for key "'.concat(t,'", ')+'in "'.concat(this._type,'" tree.'));for(var S=0,k=p.length;S<k;S+=2){if(r.fetchIfRef(p[S])===t){(0,o.warn)('The "'.concat(t,'" key was found at an incorrect, ')+'i.e. out-of-order, position in "'.concat(this._type,'" tree.'));return r.fetchIfRef(p[S+1])}}}return null}}]);return NameOrNumberTree}(),b=function(t){_inherits(NameTree,t);var r=_createSuper(NameTree);function NameTree(t,a){_classCallCheck(this,NameTree);return r.call(this,t,a,"Names")}return NameTree}(y),v=function(t){_inherits(NumberTree,t);var r=_createSuper(NumberTree);function NumberTree(t,a){_classCallCheck(this,NumberTree);return r.call(this,t,a,"Nums")}return NumberTree}(y),S=function FileSpecClosure(){function FileSpec(t,r){if(t&&(0,l.isDict)(t)){this.xref=r;this.root=t;t.has("FS")&&(this.fs=t.get("FS"));this.description=t.has("Desc")?(0,o.stringToPDFString)(t.get("Desc")):"";t.has("RF")&&(0,o.warn)("Related file specifications are not supported");this.contentAvailable=!0;if(!t.has("EF")){this.contentAvailable=!1;(0,o.warn)("Non-embedded file specifications are not supported")}}}function pickPlatformItem(t){return t.has("UF")?t.get("UF"):t.has("F")?t.get("F"):t.has("Unix")?t.get("Unix"):t.has("Mac")?t.get("Mac"):t.has("DOS")?t.get("DOS"):null}FileSpec.prototype={get filename(){if(!this._filename&&this.root){var t=pickPlatformItem(this.root)||"unnamed";this._filename=(0,o.stringToPDFString)(t).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=pickPlatformItem(this.root.get("EF")));var t=null;if(this.contentRef){var r=this.xref.fetchIfRef(this.contentRef);r&&(0,l.isStream)(r)?t=r.getBytes():(0,o.warn)("Embedded file specification points to non-existing/invalid content")}else(0,o.warn)("Embedded file specification does not have a content");return t},get serializable(){return{filename:this.filename,content:this.content}}};return FileSpec}();r.FileSpec=S;var k=function(){function addChildren(t,r){if(t instanceof l.Dict)t=t.getRawValues();else if((0,l.isStream)(t))t=t.dict.getRawValues();else if(!Array.isArray(t))return;var a,i,o=_createForOfIteratorHelper(t);try{for(o.s();!(a=o.n()).done;){var c=a.value;((i=c)instanceof l.Ref||i instanceof l.Dict||Array.isArray(i)||(0,l.isStream)(i))&&r.push(c)}}catch(t){o.e(t)}finally{o.f()}}function ObjectLoader(t,r,a){this.dict=t;this.keys=r;this.xref=a;this.refSet=null}ObjectLoader.prototype={load:function load(){var t=this;return _asyncToGenerator(i.default.mark((function _callee3(){var r,a,o,c,u,h;return i.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:if(t.xref.stream.allChunksLoaded&&!t.xref.stream.allChunksLoaded()){i.next=2;break}return i.abrupt("return",void 0);case 2:r=t.keys,a=t.dict;t.refSet=new l.RefSet;o=[];for(c=0,u=r.length;c<u;c++)void 0!==(h=a.getRaw(r[c]))&&o.push(h);return i.abrupt("return",t._walk(o));case 7:case"end":return i.stop()}}),_callee3)})))()},_walk:function _walk(t){var r=this;return _asyncToGenerator(i.default.mark((function _callee4(){var a,o,u,h,d,p,g,m,y,b,v;return i.default.wrap((function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:a=[];o=[];case 2:if(!t.length){i.next=22;break}if(!((u=t.pop())instanceof l.Ref)){i.next=18;break}if(!r.refSet.has(u)){i.next=7;break}return i.abrupt("continue",2);case 7:i.prev=7;r.refSet.put(u);u=r.xref.fetch(u);i.next=18;break;case 12:i.prev=12;i.t0=i.catch(7);if(i.t0 instanceof c.MissingDataException){i.next=16;break}throw i.t0;case 16:a.push(u);o.push({begin:i.t0.begin,end:i.t0.end});case 18:if(u&&u.getBaseStreams){h=u.getBaseStreams();d=!1;for(p=0,g=h.length;p<g;p++)if((m=h[p]).allChunksLoaded&&!m.allChunksLoaded()){d=!0;o.push({begin:m.start,end:m.end})}d&&a.push(u)}addChildren(u,t);i.next=2;break;case 22:if(!o.length){i.next=27;break}i.next=25;return r.xref.stream.manager.requestRanges(o);case 25:for(y=0,b=a.length;y<b;y++)(v=a[y])instanceof l.Ref&&r.refSet.remove(v);return i.abrupt("return",r._walk(a));case 27:r.refSet=null;return i.abrupt("return",void 0);case 29:case"end":return i.stop()}}),_callee4,null,[[7,12]])})))()}};return ObjectLoader}();r.ObjectLoader=k},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Parser=r.Linearization=r.Lexer=void 0;var i=a(142),o=a(4),l=a(135),c=a(138),u=a(143),h=a(145),d=a(148),p=a(150);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}function computeAdler32(t){for(var r=t.length,a=1,i=0,o=0;o<r;++o)i+=a+=255&t[o];return i%65521<<16|a%65521}var g=function(){function Parser(t){var r=t.lexer,a=t.xref,i=t.allowStreams,o=void 0!==i&&i,l=t.recoveryMode,c=void 0!==l&&l;_classCallCheck(this,Parser);this.lexer=r;this.xref=a;this.allowStreams=o;this.recoveryMode=c;this.imageCache=Object.create(null);this.refill()}_createClass(Parser,[{key:"refill",value:function refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}},{key:"shift",value:function shift(){if(this.buf2 instanceof l.Cmd&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}},{key:"tryShift",value:function tryShift(){try{this.shift();return!0}catch(t){if(t instanceof c.MissingDataException)throw t;return!1}}},{key:"getObj",value:function getObj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=this.buf1;this.shift();if(r instanceof l.Cmd)switch(r.cmd){case"BI":return this.makeInlineImage(t);case"[":for(var a=[];!(0,l.isCmd)(this.buf1,"]")&&!(0,l.isEOF)(this.buf1);)a.push(this.getObj(t));if((0,l.isEOF)(this.buf1)){if(!this.recoveryMode)throw new o.FormatError("End of file inside array");return a}this.shift();return a;case"<<":for(var i=new l.Dict(this.xref);!(0,l.isCmd)(this.buf1,">>")&&!(0,l.isEOF)(this.buf1);)if((0,l.isName)(this.buf1)){var c=this.buf1.name;this.shift();if((0,l.isEOF)(this.buf1))break;i.set(c,this.getObj(t))}else{(0,o.info)("Malformed dictionary: key must be a name object");this.shift()}if((0,l.isEOF)(this.buf1)){if(!this.recoveryMode)throw new o.FormatError("End of file inside dictionary");return i}if((0,l.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(i,t):i;this.shift();return i;default:return r}if(Number.isInteger(r)){if(Number.isInteger(this.buf1)&&(0,l.isCmd)(this.buf2,"R")){var u=l.Ref.get(r,this.buf1);this.shift();this.shift();return u}return r}return"string"==typeof r&&t?t.decryptString(r):r}},{key:"findDefaultInlineStreamEnd",value:function findDefaultInlineStreamEnd(t){for(var r,a,i=this.lexer,u=t.pos,h=0;-1!==(r=t.getByte());)if(0===h)h=69===r?1:0;else if(1===h)h=73===r?2:0;else{(0,o.assert)(2===h,"findDefaultInlineStreamEnd - invalid state.");if(32===r||10===r||13===r){a=t.pos;for(var d=t.peekBytes(10),p=0,g=d.length;p<g;p++)if((0!==(r=d[p])||0===d[p+1])&&10!==r&&13!==r&&(r<32||r>127)){h=0;break}if(2!==h)continue;if(i.knownCommands){var m=i.peekObj();m instanceof l.Cmd&&!i.knownCommands[m.cmd]&&(h=0)}else(0,o.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===h)break}else h=0}if(-1===r){(0,o.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(a){(0,o.warn)('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-a))}}var y=4;t.skip(-y);r=t.peekByte();t.skip(y);(0,c.isWhiteSpace)(r)||y--;return t.pos-y-u}},{key:"findDCTDecodeInlineStreamEnd",value:function findDCTDecodeInlineStreamEnd(t){for(var r,a,i=t.pos,l=!1;-1!==(r=t.getByte());)if(255===r){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:l=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(a=t.getUint16())>2?t.skip(a-2):t.skip(-2)}if(l)break}var c=t.pos-i;if(-1===r){(0,o.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");t.skip(-c);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return c}},{key:"findASCII85DecodeInlineStreamEnd",value:function findASCII85DecodeInlineStreamEnd(t){for(var r,a=t.pos;-1!==(r=t.getByte());)if(126===r){var i=t.pos;r=t.peekByte();for(;(0,c.isWhiteSpace)(r);){t.skip();r=t.peekByte()}if(62===r){t.skip();break}if(t.pos>i){var l=t.peekBytes(2);if(69===l[0]&&73===l[1])break}}var u=t.pos-a;if(-1===r){(0,o.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-u);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return u}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function findASCIIHexDecodeInlineStreamEnd(t){for(var r,a=t.pos;-1!==(r=t.getByte())&&62!==r;);var i=t.pos-a;if(-1===r){(0,o.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-i);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return i}},{key:"inlineStreamSkipEI",value:function inlineStreamSkipEI(t){for(var r,a=0;-1!==(r=t.getByte());)if(0===a)a=69===r?1:0;else if(1===a)a=73===r?2:0;else if(2===a)break}},{key:"makeInlineImage",value:function makeInlineImage(t){for(var r,a=this.lexer,i=a.stream,c=new l.Dict(this.xref);!(0,l.isCmd)(this.buf1,"ID")&&!(0,l.isEOF)(this.buf1);){if(!(0,l.isName)(this.buf1))throw new o.FormatError("Dictionary key must be a name object");var u=this.buf1.name;this.shift();if((0,l.isEOF)(this.buf1))break;c.set(u,this.getObj(t))}-1!==a.beginInlineImagePos&&(r=i.pos-a.beginInlineImagePos);var h,d=c.get("Filter","F");if((0,l.isName)(d))h=d.name;else if(Array.isArray(d)){var p=this.xref.fetchIfRef(d[0]);(0,l.isName)(p)&&(h=p.name)}var g,m=i.pos;g="DCTDecode"===h||"DCT"===h?this.findDCTDecodeInlineStreamEnd(i):"ASCII85Decode"===h||"A85"===h?this.findASCII85DecodeInlineStreamEnd(i):"ASCIIHexDecode"===h||"AHx"===h?this.findASCIIHexDecodeInlineStreamEnd(i):this.findDefaultInlineStreamEnd(i);var y,b=i.makeSubStream(m,g,c);if(g<1e3&&r<5552){var v=b.getBytes();b.reset();var S=i.pos;i.pos=a.beginInlineImagePos;var k=i.getBytes(r);i.pos=S;y=computeAdler32(v)+"_"+computeAdler32(k);var w=this.imageCache[y];if(void 0!==w){this.buf2=l.Cmd.get("EI");this.shift();w.reset();return w}}t&&(b=t.createStream(b,g));(b=this.filter(b,c,g)).dict=c;if(void 0!==y){b.cacheKey="inline_".concat(g,"_").concat(y);this.imageCache[y]=b}this.buf2=l.Cmd.get("EI");this.shift();return b}},{key:"_findStreamLength",value:function _findStreamLength(t,r){var a=this.lexer.stream;a.pos=t;for(var i=r.length;a.pos<a.end;){var o=a.peekBytes(2048),l=o.length-i;if(l<=0)break;for(var c=0;c<l;){for(var u=0;u<i&&o[c+u]===r[u];)u++;if(u>=i){a.pos+=c;return a.pos-t}c++}a.pos+=l}return-1}},{key:"makeStream",value:function makeStream(t,r){var a=this.lexer,i=a.stream;a.skipToNextLine();var u=i.pos-1,h=t.get("Length");if(!Number.isInteger(h)){(0,o.info)('Bad length "'.concat(h,'" in stream'));h=0}i.pos=u+h;a.nextChar();if(this.tryShift()&&(0,l.isCmd)(this.buf2,"endstream"))this.shift();else{var d=new Uint8Array([101,110,100,115,116,114,101,97,109]),p=this._findStreamLength(u,d);if(p<0){for(var g=1;g<=1;g++){var m=d.length-g,y=d.slice(0,m),b=this._findStreamLength(u,y);if(b>=0){var v=i.peekBytes(m+1)[m];if(!(0,c.isWhiteSpace)(v))break;(0,o.info)('Found "'.concat((0,o.bytesToString)(y),'" when ')+"searching for endstream command.");p=b;break}}if(p<0)throw new o.FormatError("Missing endstream command.")}h=p;a.nextChar();this.shift();this.shift()}this.shift();i=i.makeSubStream(u,h,t);r&&(i=r.createStream(i,h));(i=this.filter(i,t,h)).dict=t;return i}},{key:"filter",value:function filter(t,r,a){var filter=r.get("Filter","F"),i=r.get("DecodeParms","DP");if((0,l.isName)(filter)){Array.isArray(i)&&(0,o.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name.");return this.makeFilter(t,filter.name,a,i)}var c=a;if(Array.isArray(filter))for(var u=filter,h=i,d=0,p=u.length;d<p;++d){filter=this.xref.fetchIfRef(u[d]);if(!(0,l.isName)(filter))throw new o.FormatError('Bad filter name "'.concat(filter,'"'));i=null;Array.isArray(h)&&d in h&&(i=this.xref.fetchIfRef(h[d]));t=this.makeFilter(t,filter.name,c,i);c=null}return t}},{key:"makeFilter",value:function makeFilter(t,r,a,l){if(0===a){(0,o.warn)('Empty "'.concat(r,'" stream.'));return new i.NullStream}try{var g=this.xref.stats.streamTypes;if("FlateDecode"===r||"Fl"===r){g[o.StreamType.FLATE]=!0;return l?new i.PredictorStream(new i.FlateStream(t,a),a,l):new i.FlateStream(t,a)}if("LZWDecode"===r||"LZW"===r){g[o.StreamType.LZW]=!0;var m=1;if(l){l.has("EarlyChange")&&(m=l.get("EarlyChange"));return new i.PredictorStream(new i.LZWStream(t,a,m),a,l)}return new i.LZWStream(t,a,m)}if("DCTDecode"===r||"DCT"===r){g[o.StreamType.DCT]=!0;return new d.JpegStream(t,a,t.dict,l)}if("JPXDecode"===r||"JPX"===r){g[o.StreamType.JPX]=!0;return new p.JpxStream(t,a,t.dict,l)}if("ASCII85Decode"===r||"A85"===r){g[o.StreamType.A85]=!0;return new i.Ascii85Stream(t,a)}if("ASCIIHexDecode"===r||"AHx"===r){g[o.StreamType.AHX]=!0;return new i.AsciiHexStream(t,a)}if("CCITTFaxDecode"===r||"CCF"===r){g[o.StreamType.CCF]=!0;return new u.CCITTFaxStream(t,a,l)}if("RunLengthDecode"===r||"RL"===r){g[o.StreamType.RLX]=!0;return new i.RunLengthStream(t,a)}if("JBIG2Decode"===r){g[o.StreamType.JBIG]=!0;return new h.Jbig2Stream(t,a,t.dict,l)}(0,o.warn)('Filter "'.concat(r,'" is not supported.'));return t}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)('Invalid stream: "'.concat(t,'"'));return new i.NullStream}}}]);return Parser}();r.Parser=g;var m=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function toHexDigit(t){return t>=48&&t<=57?15&t:t>=65&&t<=70||t>=97&&t<=102?9+(15&t):-1}var y=function(){function Lexer(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_classCallCheck(this,Lexer);this.stream=t;this.nextChar();this.strBuf=[];this.knownCommands=r;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}_createClass(Lexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function peekChar(){return this.stream.peekByte()}},{key:"getNumber",value:function getNumber(){var t=this.currentChar,r=!1,a=0,i=0;if(45===t){i=-1;45===(t=this.nextChar())&&(t=this.nextChar())}else if(43===t){i=1;t=this.nextChar()}if(10===t||13===t)do{t=this.nextChar()}while(10===t||13===t);if(46===t){a=10;t=this.nextChar()}if(t<48||t>57){if(10===a&&0===i&&((0,c.isWhiteSpace)(t)||-1===t)){(0,o.warn)("Lexer.getNumber - treating a single decimal point as zero.");return 0}throw new o.FormatError("Invalid number: ".concat(String.fromCharCode(t)," (charCode ").concat(t,")"))}i=i||1;for(var l=t-48,u=0,h=1;(t=this.nextChar())>=0;)if(t>=48&&t<=57){var d=t-48;if(r)u=10*u+d;else{0!==a&&(a*=10);l=10*l+d}}else if(46===t){if(0!==a)break;a=1}else if(45===t)(0,o.warn)("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t){h=45===t?-1:1;this.nextChar()}else if(t<48||t>57)break;r=!0}0!==a&&(l/=a);r&&(l*=Math.pow(10,h*u));return i*l}},{key:"getString",value:function getString(){var t=1,r=!1,a=this.strBuf;a.length=0;for(var i=this.nextChar();;){var l=!1;switch(0|i){case-1:(0,o.warn)("Unterminated string");r=!0;break;case 40:++t;a.push("(");break;case 41:if(0==--t){this.nextChar();r=!0}else a.push(")");break;case 92:switch(i=this.nextChar()){case-1:(0,o.warn)("Unterminated string");r=!0;break;case 110:a.push("\n");break;case 114:a.push("\r");break;case 116:a.push("\t");break;case 98:a.push("\b");break;case 102:a.push("\f");break;case 92:case 40:case 41:a.push(String.fromCharCode(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var c=15&i;l=!0;if((i=this.nextChar())>=48&&i<=55){c=(c<<3)+(15&i);if((i=this.nextChar())>=48&&i<=55){l=!1;c=(c<<3)+(15&i)}}a.push(String.fromCharCode(c));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:a.push(String.fromCharCode(i))}break;default:a.push(String.fromCharCode(i))}if(r)break;l||(i=this.nextChar())}return a.join("")}},{key:"getName",value:function getName(){var t,r,a=this.strBuf;a.length=0;for(;(t=this.nextChar())>=0&&!m[t];)if(35===t){t=this.nextChar();if(m[t]){(0,o.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");a.push("#");break}var i=toHexDigit(t);if(-1!==i){r=t;var c=toHexDigit(t=this.nextChar());if(-1===c){(0,o.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(t),") ")+"in hexadecimal number.");a.push("#",String.fromCharCode(r));if(m[t])break;a.push(String.fromCharCode(t));continue}a.push(String.fromCharCode(i<<4|c))}else a.push("#",String.fromCharCode(t))}else a.push(String.fromCharCode(t));a.length>127&&(0,o.warn)("Name token is longer than allowed by the spec: ".concat(a.length));return l.Name.get(a.join(""))}},{key:"_hexStringWarn",value:function _hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,o.warn)("getHexString - ignoring invalid character: ".concat(t)):(0,o.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function getHexString(){var t=this.strBuf;t.length=0;var r,a,i=this.currentChar,l=!0;this._hexStringNumWarn=0;for(;;){if(i<0){(0,o.warn)("Unterminated hex string");break}if(62===i){this.nextChar();break}if(1!==m[i]){if(l){if(-1===(r=toHexDigit(i))){this._hexStringWarn(i);i=this.nextChar();continue}}else{if(-1===(a=toHexDigit(i))){this._hexStringWarn(i);i=this.nextChar();continue}t.push(String.fromCharCode(r<<4|a))}l=!l;i=this.nextChar()}else i=this.nextChar()}return t.join("")}},{key:"getObj",value:function getObj(){for(var t=!1,r=this.currentChar;;){if(r<0)return l.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(1!==m[r])break;r=this.nextChar()}switch(0|r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return l.Cmd.get("[");case 93:this.nextChar();return l.Cmd.get("]");case 60:if(60===(r=this.nextChar())){this.nextChar();return l.Cmd.get("<<")}return this.getHexString();case 62:if(62===(r=this.nextChar())){this.nextChar();return l.Cmd.get(">>")}return l.Cmd.get(">");case 123:this.nextChar();return l.Cmd.get("{");case 125:this.nextChar();return l.Cmd.get("}");case 41:this.nextChar();throw new o.FormatError("Illegal character: ".concat(r))}for(var a=String.fromCharCode(r),i=this.knownCommands,c=i&&void 0!==i[a];(r=this.nextChar())>=0&&!m[r];){var u=a+String.fromCharCode(r);if(c&&void 0===i[u])break;if(128===a.length)throw new o.FormatError("Command token too long: ".concat(a.length));a=u;c=i&&void 0!==i[a]}if("true"===a)return!0;if("false"===a)return!1;if("null"===a)return null;"BI"===a&&(this.beginInlineImagePos=this.stream.pos);return l.Cmd.get(a)}},{key:"peekObj",value:function peekObj(){var t,r=this.stream.pos,a=this.currentChar,i=this.beginInlineImagePos;try{t=this.getObj()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)("peekObj: ".concat(t))}this.stream.pos=r;this.currentChar=a;this.beginInlineImagePos=i;return t}},{key:"skipToNextLine",value:function skipToNextLine(){for(var t=this.currentChar;t>=0;){if(13===t){10===(t=this.nextChar())&&this.nextChar();break}if(10===t){this.nextChar();break}t=this.nextChar()}}}]);return Lexer}();r.Lexer=y;var b=function(){function Linearization(){_classCallCheck(this,Linearization)}_createClass(Linearization,null,[{key:"create",value:function create(t){function getInt(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.get(r);if(Number.isInteger(i)&&(a?i>=0:i>0))return i;throw new Error('The "'.concat(r,'" parameter in the linearization ')+"dictionary is invalid.")}var r,a,i=new g({lexer:new y(t),xref:null}),c=i.getObj(),u=i.getObj(),h=i.getObj(),d=i.getObj();if(!(Number.isInteger(c)&&Number.isInteger(u)&&(0,l.isCmd)(h,"obj")&&(0,l.isDict)(d)&&(0,o.isNum)(r=d.get("Linearized"))&&r>0))return null;if((a=getInt(d,"L"))!==t.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:a,hints:function getHints(t){var r,a=t.get("H");if(Array.isArray(a)&&(2===(r=a.length)||4===r)){for(var i=0;i<r;i++){var o=a[i];if(!(Number.isInteger(o)&&o>0))throw new Error("Hint (".concat(i,") in the linearization dictionary is invalid."))}return a}throw new Error("Hint array in the linearization dictionary is invalid.")}(d),objectNumberFirst:getInt(d,"O"),endFirst:getInt(d,"E"),numPages:getInt(d,"N"),mainXRefEntriesOffset:getInt(d,"T"),pageFirst:d.has("P")?getInt(d,"P",!0):0}}}]);return Linearization}();r.Linearization=b},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.StringStream=r.StreamsSequenceStream=r.Stream=r.RunLengthStream=r.PredictorStream=r.NullStream=r.LZWStream=r.FlateStream=r.DecryptStream=r.DecodeStream=r.AsciiHexStream=r.Ascii85Stream=void 0;var i=a(4),o=a(135),l=a(138);function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}var c=function StreamClosure(){function Stream(t,r,a,i){this.bytes=t instanceof Uint8Array?t:new Uint8Array(t);this.start=r||0;this.pos=this.start;this.end=r+a||this.bytes.length;this.dict=i}Stream.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function Stream_getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function Stream_getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r},getInt32:function Stream_getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function getBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.bytes,i=this.pos,o=this.end;if(!t){var l=a.subarray(i,o);return r?new Uint8ClampedArray(l):l}var c=i+t;c>o&&(c=o);this.pos=c;var u=a.subarray(i,c);return r?new Uint8ClampedArray(u):u},peekByte:function Stream_peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t},peekBytes:function peekBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.getBytes(t,r);this.pos-=a.length;return a},getByteRange:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);return this.bytes.subarray(t,r)},skip:function Stream_skip(t){t||(t=1);this.pos+=t},reset:function Stream_reset(){this.pos=this.start},moveStart:function Stream_moveStart(){this.start=this.pos},makeSubStream:function Stream_makeSubStream(t,r,a){return new Stream(this.bytes.buffer,t,r,a)}};return Stream}();r.Stream=c;var u=function StringStreamClosure(){function StringStream(t){var r=(0,i.stringToBytes)(t);c.call(this,r)}StringStream.prototype=c.prototype;return StringStream}();r.StringStream=u;var h=function DecodeStreamClosure(){var t=new Uint8Array(0);function DecodeStream(r){this._rawMinBufferLength=r||0;this.pos=0;this.bufferLength=0;this.eof=!1;this.buffer=t;this.minBufferLength=512;if(r)for(;this.minBufferLength<r;)this.minBufferLength*=2}DecodeStream.prototype={get length(){(0,i.unreachable)("Should not access DecodeStream.length")},get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function DecodeStream_ensureBuffer(t){var r=this.buffer;if(t<=r.byteLength)return r;for(var a=this.minBufferLength;a<t;)a*=2;var i=new Uint8Array(a);i.set(r);return this.buffer=i},getByte:function DecodeStream_getByte(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function DecodeStream_getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r},getInt32:function DecodeStream_getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function getBytes(t){var r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.pos;if(t){this.ensureBuffer(i+t);r=i+t;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var o=this.bufferLength;r>o&&(r=o)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var l=this.buffer.subarray(i,r);return!a||l instanceof Uint8ClampedArray?l:new Uint8ClampedArray(l)},peekByte:function DecodeStream_peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t},peekBytes:function peekBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.getBytes(t,r);this.pos-=a.length;return a},makeSubStream:function DecodeStream_makeSubStream(t,r,a){for(var i=t+r;this.bufferLength<=i&&!this.eof;)this.readBlock();return new c(this.buffer,t,r,a)},getByteRange:function getByteRange(t,r){(0,i.unreachable)("Should not call DecodeStream.getByteRange")},skip:function DecodeStream_skip(t){t||(t=1);this.pos+=t},reset:function DecodeStream_reset(){this.pos=0},getBaseStreams:function DecodeStream_getBaseStreams(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}};return DecodeStream}();r.DecodeStream=h;var d=function StreamsSequenceStreamClosure(){function StreamsSequenceStream(t){this.streams=t;for(var r=0,a=0,i=t.length;a<i;a++){var o=t[a];r+=o instanceof h?o._rawMinBufferLength:o.length}h.call(this,r)}StreamsSequenceStream.prototype=Object.create(h.prototype);StreamsSequenceStream.prototype.readBlock=function streamSequenceStreamReadBlock(){var t=this.streams;if(0!==t.length){var r=t.shift().getBytes(),a=this.bufferLength,i=a+r.length;this.ensureBuffer(i).set(r,a);this.bufferLength=i}else this.eof=!0};StreamsSequenceStream.prototype.getBaseStreams=function StreamsSequenceStream_getBaseStreams(){for(var t=[],r=0,a=this.streams.length;r<a;r++){var i=this.streams[r];i.getBaseStreams&&t.push.apply(t,_toConsumableArray(i.getBaseStreams()))}return t};return StreamsSequenceStream}();r.StreamsSequenceStream=d;var p=function FlateStreamClosure(){var t=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),a=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),o=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],l=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function FlateStream(t,r){this.str=t;this.dict=t.dict;var a=t.getByte(),o=t.getByte();if(-1===a||-1===o)throw new i.FormatError("Invalid header in flate stream: ".concat(a,", ").concat(o));if(8!=(15&a))throw new i.FormatError("Unknown compression method in flate stream: ".concat(a,", ").concat(o));if(((a<<8)+o)%31!=0)throw new i.FormatError("Bad FCHECK in flate stream: ".concat(a,", ").concat(o));if(32&o)throw new i.FormatError("FDICT bit set in flate stream: ".concat(a,", ").concat(o));this.codeSize=0;this.codeBuf=0;h.call(this,r)}FlateStream.prototype=Object.create(h.prototype);FlateStream.prototype.getBits=function FlateStream_getBits(t){for(var r,a=this.str,o=this.codeSize,l=this.codeBuf;o<t;){if(-1===(r=a.getByte()))throw new i.FormatError("Bad encoding in flate stream");l|=r<<o;o+=8}r=l&(1<<t)-1;this.codeBuf=l>>t;this.codeSize=o-=t;return r};FlateStream.prototype.getCode=function FlateStream_getCode(t){for(var r,a=this.str,o=t[0],l=t[1],c=this.codeSize,u=this.codeBuf;c<l&&-1!==(r=a.getByte());){u|=r<<c;c+=8}var h=o[u&(1<<l)-1],d=h>>16,p=65535&h;if(d<1||c<d)throw new i.FormatError("Bad encoding in flate stream");this.codeBuf=u>>d;this.codeSize=c-d;return p};FlateStream.prototype.generateHuffmanTable=function flateStreamGenerateHuffmanTable(t){var r,a=t.length,i=0;for(r=0;r<a;++r)t[r]>i&&(i=t[r]);for(var o=1<<i,l=new Int32Array(o),c=1,u=0,h=2;c<=i;++c,u<<=1,h<<=1)for(var d=0;d<a;++d)if(t[d]===c){var p=0,g=u;for(r=0;r<c;++r){p=p<<1|1&g;g>>=1}for(r=p;r<o;r+=h)l[r]=c<<16|d;++u}return[l,i]};FlateStream.prototype.readBlock=function FlateStream_readBlock(){var c,u,h=this.str,d=this.getBits(3);1&d&&(this.eof=!0);if(0!==(d>>=1)){var p,g;if(1===d){p=o;g=l}else{if(2!==d)throw new i.FormatError("Unknown block type in flate stream");var m,y=this.getBits(5)+257,b=this.getBits(5)+1,v=this.getBits(4)+4,S=new Uint8Array(t.length);for(m=0;m<v;++m)S[t[m]]=this.getBits(3);var k=this.generateHuffmanTable(S);u=0;m=0;for(var w,C,_,x=y+b,A=new Uint8Array(x);m<x;){var T=this.getCode(k);if(16===T){w=2;C=3;_=u}else if(17===T){w=3;C=3;_=u=0}else{if(18!==T){A[m++]=u=T;continue}w=7;C=11;_=u=0}for(var P=this.getBits(w)+C;P-- >0;)A[m++]=_}p=this.generateHuffmanTable(A.subarray(0,y));g=this.generateHuffmanTable(A.subarray(y,x))}for(var R=(c=this.buffer)?c.length:0,I=this.bufferLength;;){var O=this.getCode(p);if(O<256){I+1>=R&&(R=(c=this.ensureBuffer(I+1)).length);c[I++]=O}else{if(256===O){this.bufferLength=I;return}var E=(O=r[O-=257])>>16;E>0&&(E=this.getBits(E));u=(65535&O)+E;O=this.getCode(g);(E=(O=a[O])>>16)>0&&(E=this.getBits(E));var D=(65535&O)+E;I+u>=R&&(R=(c=this.ensureBuffer(I+u)).length);for(var B=0;B<u;++B,++I)c[I]=c[I-D]}}}else{var M;if(-1===(M=h.getByte()))throw new i.FormatError("Bad block header in flate stream");var L=M;if(-1===(M=h.getByte()))throw new i.FormatError("Bad block header in flate stream");L|=M<<8;if(-1===(M=h.getByte()))throw new i.FormatError("Bad block header in flate stream");var N=M;if(-1===(M=h.getByte()))throw new i.FormatError("Bad block header in flate stream");if((N|=M<<8)!==(65535&~L)&&(0!==L||0!==N))throw new i.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;var j=this.bufferLength,U=j+L;c=this.ensureBuffer(U);this.bufferLength=U;if(0===L)-1===h.peekByte()&&(this.eof=!0);else{var q=h.getBytes(L);c.set(q,j);q.length<L&&(this.eof=!0)}}};return FlateStream}();r.FlateStream=p;var g=function PredictorStreamClosure(){function PredictorStream(t,r,a){if(!(0,o.isDict)(a))return t;var l=this.predictor=a.get("Predictor")||1;if(l<=1)return t;if(2!==l&&(l<10||l>15))throw new i.FormatError("Unsupported predictor: ".concat(l));this.readBlock=2===l?this.readBlockTiff:this.readBlockPng;this.str=t;this.dict=t.dict;var c=this.colors=a.get("Colors")||1,u=this.bits=a.get("BitsPerComponent")||8,d=this.columns=a.get("Columns")||1;this.pixBytes=c*u+7>>3;this.rowBytes=d*c*u+7>>3;h.call(this,r);return this}PredictorStream.prototype=Object.create(h.prototype);PredictorStream.prototype.readBlockTiff=function predictorStreamReadBlockTiff(){var t=this.rowBytes,r=this.bufferLength,a=this.ensureBuffer(r+t),i=this.bits,o=this.colors,l=this.str.getBytes(t);this.eof=!l.length;if(!this.eof){var c,u=0,h=0,d=0,p=0,g=r;if(1===i&&1===o)for(c=0;c<t;++c){var m=l[c]^u;m^=m>>1;m^=m>>2;u=(1&(m^=m>>4))<<7;a[g++]=m}else if(8===i){for(c=0;c<o;++c)a[g++]=l[c];for(;c<t;++c){a[g]=a[g-o]+l[c];g++}}else if(16===i){var y=2*o;for(c=0;c<y;++c)a[g++]=l[c];for(;c<t;c+=2){var b=((255&l[c])<<8)+(255&l[c+1])+((255&a[g-y])<<8)+(255&a[g-y+1]);a[g++]=b>>8&255;a[g++]=255&b}}else{var v=new Uint8Array(o+1),S=(1<<i)-1,k=0,w=r,C=this.columns;for(c=0;c<C;++c)for(var _=0;_<o;++_){if(d<i){u=u<<8|255&l[k++];d+=8}v[_]=v[_]+(u>>d-i)&S;d-=i;h=h<<i|v[_];if((p+=i)>=8){a[w++]=h>>p-8&255;p-=8}}p>0&&(a[w++]=(h<<8-p)+(u&(1<<8-p)-1))}this.bufferLength+=t}};PredictorStream.prototype.readBlockPng=function predictorStreamReadBlockPng(){var t=this.rowBytes,r=this.pixBytes,a=this.str.getByte(),o=this.str.getBytes(t);this.eof=!o.length;if(!this.eof){var l=this.bufferLength,c=this.ensureBuffer(l+t),u=c.subarray(l-t,l);0===u.length&&(u=new Uint8Array(t));var h,d,p,g=l;switch(a){case 0:for(h=0;h<t;++h)c[g++]=o[h];break;case 1:for(h=0;h<r;++h)c[g++]=o[h];for(;h<t;++h){c[g]=c[g-r]+o[h]&255;g++}break;case 2:for(h=0;h<t;++h)c[g++]=u[h]+o[h]&255;break;case 3:for(h=0;h<r;++h)c[g++]=(u[h]>>1)+o[h];for(;h<t;++h){c[g]=(u[h]+c[g-r]>>1)+o[h]&255;g++}break;case 4:for(h=0;h<r;++h){d=u[h];p=o[h];c[g++]=d+p}for(;h<t;++h){d=u[h];var m=u[h-r],y=c[g-r],b=y+d-m,v=b-y;v<0&&(v=-v);var S=b-d;S<0&&(S=-S);var k=b-m;k<0&&(k=-k);p=o[h];c[g++]=v<=S&&v<=k?y+p:S<=k?d+p:m+p}break;default:throw new i.FormatError("Unsupported predictor: ".concat(a))}this.bufferLength+=t}};return PredictorStream}();r.PredictorStream=g;var m=function DecryptStreamClosure(){function DecryptStream(t,r,a){this.str=t;this.dict=t.dict;this.decrypt=a;this.nextChunk=null;this.initialized=!1;h.call(this,r)}DecryptStream.prototype=Object.create(h.prototype);DecryptStream.prototype.readBlock=function DecryptStream_readBlock(){var t;if(this.initialized)t=this.nextChunk;else{t=this.str.getBytes(512);this.initialized=!0}if(t&&0!==t.length){this.nextChunk=this.str.getBytes(512);var r=this.nextChunk&&this.nextChunk.length>0;t=(0,this.decrypt)(t,!r);var a,i=this.bufferLength,o=t.length,l=this.ensureBuffer(i+o);for(a=0;a<o;a++)l[i++]=t[a];this.bufferLength=i}else this.eof=!0};return DecryptStream}();r.DecryptStream=m;var y=function Ascii85StreamClosure(){function Ascii85Stream(t,r){this.str=t;this.dict=t.dict;this.input=new Uint8Array(5);r&&(r*=.8);h.call(this,r)}Ascii85Stream.prototype=Object.create(h.prototype);Ascii85Stream.prototype.readBlock=function Ascii85Stream_readBlock(){for(var t=this.str,r=t.getByte();(0,l.isWhiteSpace)(r);)r=t.getByte();if(-1!==r&&126!==r){var a,i,o=this.bufferLength;if(122===r){a=this.ensureBuffer(o+4);for(i=0;i<4;++i)a[o+i]=0;this.bufferLength+=4}else{var c=this.input;c[0]=r;for(i=1;i<5;++i){r=t.getByte();for(;(0,l.isWhiteSpace)(r);)r=t.getByte();c[i]=r;if(-1===r||126===r)break}a=this.ensureBuffer(o+i-1);this.bufferLength+=i-1;if(i<5){for(;i<5;++i)c[i]=117;this.eof=!0}var u=0;for(i=0;i<5;++i)u=85*u+(c[i]-33);for(i=3;i>=0;--i){a[o+i]=255&u;u>>=8}}}else this.eof=!0};return Ascii85Stream}();r.Ascii85Stream=y;var b=function AsciiHexStreamClosure(){function AsciiHexStream(t,r){this.str=t;this.dict=t.dict;this.firstDigit=-1;r&&(r*=.5);h.call(this,r)}AsciiHexStream.prototype=Object.create(h.prototype);AsciiHexStream.prototype.readBlock=function AsciiHexStream_readBlock(){var t=this.str.getBytes(8e3);if(t.length){for(var r=t.length+1>>1,a=this.ensureBuffer(this.bufferLength+r),i=this.bufferLength,o=this.firstDigit,l=0,c=t.length;l<c;l++){var u,h=t[l];if(h>=48&&h<=57)u=15&h;else{if(!(h>=65&&h<=70||h>=97&&h<=102)){if(62===h){this.eof=!0;break}continue}u=9+(15&h)}if(o<0)o=u;else{a[i++]=o<<4|u;o=-1}}if(o>=0&&this.eof){a[i++]=o<<4;o=-1}this.firstDigit=o;this.bufferLength=i}else this.eof=!0};return AsciiHexStream}();r.AsciiHexStream=b;var v=function RunLengthStreamClosure(){function RunLengthStream(t,r){this.str=t;this.dict=t.dict;h.call(this,r)}RunLengthStream.prototype=Object.create(h.prototype);RunLengthStream.prototype.readBlock=function RunLengthStream_readBlock(){var t=this.str.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var r,a=this.bufferLength,i=t[0];if(i<128){(r=this.ensureBuffer(a+i+1))[a++]=t[1];if(i>0){var o=this.str.getBytes(i);r.set(o,a);a+=i}}else{i=257-i;var l=t[1];r=this.ensureBuffer(a+i+1);for(var c=0;c<i;c++)r[a++]=l}this.bufferLength=a}};return RunLengthStream}();r.RunLengthStream=v;var S=function LZWStreamClosure(){function LZWStream(t,r,a){this.str=t;this.dict=t.dict;this.cachedData=0;this.bitsCached=0;for(var i=4096,o={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0},l=0;l<256;++l){o.dictionaryValues[l]=l;o.dictionaryLengths[l]=1}this.lzwState=o;h.call(this,r)}LZWStream.prototype=Object.create(h.prototype);LZWStream.prototype.readBits=function LZWStream_readBits(t){for(var r=this.bitsCached,a=this.cachedData;r<t;){var i=this.str.getByte();if(-1===i){this.eof=!0;return null}a=a<<8|i;r+=8}this.bitsCached=r-=t;this.cachedData=a;this.lastCode=null;return a>>>r&(1<<t)-1};LZWStream.prototype.readBlock=function LZWStream_readBlock(){var t,r,a,i=1024,o=this.lzwState;if(o){var l=o.earlyChange,c=o.nextCode,u=o.dictionaryValues,h=o.dictionaryLengths,d=o.dictionaryPrevCodes,p=o.codeLength,g=o.prevCode,m=o.currentSequence,y=o.currentSequenceLength,b=0,v=this.bufferLength,S=this.ensureBuffer(this.bufferLength+i);for(t=0;t<512;t++){var k=this.readBits(p),w=y>0;if(k<256){m[0]=k;y=1}else{if(!(k>=258)){if(256===k){p=9;c=258;y=0;continue}this.eof=!0;delete this.lzwState;break}if(k<c)for(r=(y=h[k])-1,a=k;r>=0;r--){m[r]=u[a];a=d[a]}else m[y++]=m[0]}if(w){d[c]=g;h[c]=h[g]+1;u[c]=m[0];p=++c+l&c+l-1?p:0|Math.min(Math.log(c+l)/.6931471805599453+1,12)}g=k;if(i<(b+=y)){do{i+=512}while(i<b);S=this.ensureBuffer(this.bufferLength+i)}for(r=0;r<y;r++)S[v++]=m[r]}o.nextCode=c;o.codeLength=p;o.prevCode=g;o.currentSequenceLength=y;this.bufferLength=v}};return LZWStream}();r.LZWStream=S;var k=function NullStreamClosure(){function NullStream(){c.call(this,new Uint8Array(0))}NullStream.prototype=c.prototype;return NullStream}();r.NullStream=k},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxStream=void 0;var i=a(135),o=a(144),l=a(142),c=function CCITTFaxStreamClosure(){function CCITTFaxStream(t,r,a){this.str=t;this.dict=t.dict;(0,i.isDict)(a)||(a=i.Dict.empty);var c={next:function next(){return t.getByte()}};this.ccittFaxDecoder=new o.CCITTFaxDecoder(c,{K:a.get("K"),EndOfLine:a.get("EndOfLine"),EncodedByteAlign:a.get("EncodedByteAlign"),Columns:a.get("Columns"),Rows:a.get("Rows"),EndOfBlock:a.get("EndOfBlock"),BlackIs1:a.get("BlackIs1")});l.DecodeStream.call(this,r)}CCITTFaxStream.prototype=Object.create(l.DecodeStream.prototype);CCITTFaxStream.prototype.readBlock=function(){for(;!this.eof;){var t=this.ccittFaxDecoder.readNextChar();if(-1===t){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=t}};return CCITTFaxStream}();r.CCITTFaxStream=c},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxDecoder=void 0;var i=a(4),o=function CCITTFaxDecoder(){var t=-1,r=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],a=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],l=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],c=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],u=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function CCITTFaxDecoder(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t;this.eof=!1;this.encoding=r.K||0;this.eoline=r.EndOfLine||!1;this.byteAlign=r.EncodedByteAlign||!1;this.columns=r.Columns||1728;this.rows=r.Rows||0;var a,i=r.EndOfBlock;null==i&&(i=!0);this.eoblock=i;this.black=r.BlackIs1||!1;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=!1;for(;0===(a=this._lookBits(12));)this._eatBits(1);1===a&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}CCITTFaxDecoder.prototype={readNextChar:function readNextChar(){if(this.eof)return-1;var r,a,o,l,c,u=this.refLine,h=this.codingLine,d=this.columns;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var p,g,m;if(this.nextLine2D){for(l=0;h[l]<d;++l)u[l]=h[l];u[l++]=d;u[l]=d;h[0]=0;this.codingPos=0;r=0;a=0;for(;h[this.codingPos]<d;)switch(p=this._getTwoDimCode()){case 0:this._addPixels(u[r+1],a);u[r+1]<d&&(r+=2);break;case 1:p=g=0;if(a){do{p+=m=this._getBlackCode()}while(m>=64);do{g+=m=this._getWhiteCode()}while(m>=64)}else{do{p+=m=this._getWhiteCode()}while(m>=64);do{g+=m=this._getBlackCode()}while(m>=64)}this._addPixels(h[this.codingPos]+p,a);h[this.codingPos]<d&&this._addPixels(h[this.codingPos]+g,1^a);for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2;break;case 7:this._addPixels(u[r]+3,a);a^=1;if(h[this.codingPos]<d){++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case 5:this._addPixels(u[r]+2,a);a^=1;if(h[this.codingPos]<d){++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case 3:this._addPixels(u[r]+1,a);a^=1;if(h[this.codingPos]<d){++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case 2:this._addPixels(u[r],a);a^=1;if(h[this.codingPos]<d){++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case 8:this._addPixelsNeg(u[r]-3,a);a^=1;if(h[this.codingPos]<d){r>0?--r:++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case 6:this._addPixelsNeg(u[r]-2,a);a^=1;if(h[this.codingPos]<d){r>0?--r:++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case 4:this._addPixelsNeg(u[r]-1,a);a^=1;if(h[this.codingPos]<d){r>0?--r:++r;for(;u[r]<=h[this.codingPos]&&u[r]<d;)r+=2}break;case t:this._addPixels(d,0);this.eof=!0;break;default:(0,i.info)("bad 2d code");this._addPixels(d,0);this.err=!0}}else{h[0]=0;this.codingPos=0;a=0;for(;h[this.codingPos]<d;){p=0;if(a)do{p+=m=this._getBlackCode()}while(m>=64);else do{p+=m=this._getWhiteCode()}while(m>=64);this._addPixels(h[this.codingPos]+p,a);a^=1}}var y=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){p=this._lookBits(12);if(this.eoline)for(;p!==t&&1!==p;){this._eatBits(1);p=this._lookBits(12)}else for(;0===p;){this._eatBits(1);p=this._lookBits(12)}if(1===p){this._eatBits(12);y=!0}else p===t&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&y&&this.byteAlign){if(1===(p=this._lookBits(12))){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0)for(l=0;l<4;++l){1!==(p=this._lookBits(12))&&(0,i.info)("bad rtc code: "+p);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((p=this._lookBits(13))===t){this.eof=!0;return-1}if(p>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&p)}}h[0]>0?this.outputBits=h[this.codingPos=0]:this.outputBits=h[this.codingPos=1];this.row++}if(this.outputBits>=8){c=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&h[this.codingPos]<d){this.codingPos++;this.outputBits=h[this.codingPos]-h[this.codingPos-1]}}else{o=8;c=0;do{if(this.outputBits>o){c<<=o;1&this.codingPos||(c|=255>>8-o);this.outputBits-=o;o=0}else{c<<=this.outputBits;1&this.codingPos||(c|=255>>8-this.outputBits);o-=this.outputBits;this.outputBits=0;if(h[this.codingPos]<d){this.codingPos++;this.outputBits=h[this.codingPos]-h[this.codingPos-1]}else if(o>0){c<<=o;o=0}}}while(o)}this.black&&(c^=255);return c},_addPixels:function _addPixels(t,r){var a=this.codingLine,o=this.codingPos;if(t>a[o]){if(t>this.columns){(0,i.info)("row is wrong length");this.err=!0;t=this.columns}1&o^r&&++o;a[o]=t}this.codingPos=o},_addPixelsNeg:function _addPixelsNeg(t,r){var a=this.codingLine,o=this.codingPos;if(t>a[o]){if(t>this.columns){(0,i.info)("row is wrong length");this.err=!0;t=this.columns}1&o^r&&++o;a[o]=t}else if(t<a[o]){if(t<0){(0,i.info)("invalid code");this.err=!0;t=0}for(;o>0&&t<a[o-1];)--o;a[o]=t}this.codingPos=o},_findTableCode:function _findTableCode(r,a,i,o){for(var l=o||0,c=r;c<=a;++c){var u=this._lookBits(c);if(u===t)return[!0,1,!1];c<a&&(u<<=a-c);if(!l||u>=l){var h=i[u-l];if(h[0]===c){this._eatBits(c);return[!0,h[1],!0]}}}return[!1,0,!1]},_getTwoDimCode:function _getTwoDimCode(){var a,o=0;if(this.eoblock){o=this._lookBits(7);if((a=r[o])&&a[0]>0){this._eatBits(a[0]);return a[1]}}else{var l=this._findTableCode(1,7,r);if(l[0]&&l[2])return l[1]}(0,i.info)("Bad two dim code");return t},_getWhiteCode:function _getWhiteCode(){var r,l=0;if(this.eoblock){if((l=this._lookBits(12))===t)return 1;if((r=l>>5==0?a[l]:o[l>>3])[0]>0){this._eatBits(r[0]);return r[1]}}else{var c=this._findTableCode(1,9,o);if(c[0])return c[1];if((c=this._findTableCode(11,12,a))[0])return c[1]}(0,i.info)("bad white code");this._eatBits(1);return 1},_getBlackCode:function _getBlackCode(){var r,a;if(this.eoblock){if((r=this._lookBits(13))===t)return 1;if((a=r>>7==0?l[r]:r>>9==0&&r>>7!=0?c[(r>>1)-64]:u[r>>7])[0]>0){this._eatBits(a[0]);return a[1]}}else{var o=this._findTableCode(2,6,u);if(o[0])return o[1];if((o=this._findTableCode(7,12,c,64))[0])return o[1];if((o=this._findTableCode(10,13,l))[0])return o[1]}(0,i.info)("bad black code");this._eatBits(1);return 1},_lookBits:function _lookBits(r){for(var a;this.inputBits<r;){if(-1===(a=this.source.next()))return 0===this.inputBits?t:this.inputBuf<<r-this.inputBits&65535>>16-r;this.inputBuf=this.inputBuf<<8|a;this.inputBits+=8}return this.inputBuf>>this.inputBits-r&65535>>16-r},_eatBits:function _eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}};return CCITTFaxDecoder}();r.CCITTFaxDecoder=o},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Stream=void 0;var i=a(135),o=a(142),l=a(146),c=a(4),u=function Jbig2StreamClosure(){function Jbig2Stream(t,r,a,i){this.stream=t;this.maybeLength=r;this.dict=a;this.params=i;o.DecodeStream.call(this,r)}Jbig2Stream.prototype=Object.create(o.DecodeStream.prototype);Object.defineProperty(Jbig2Stream.prototype,"bytes",{get:function get(){return(0,c.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});Jbig2Stream.prototype.ensureBuffer=function(t){};Jbig2Stream.prototype.readBlock=function(){if(!this.eof){var t=new l.Jbig2Image,r=[];if((0,i.isDict)(this.params)){var a=this.params.get("JBIG2Globals");if((0,i.isStream)(a)){var o=a.getBytes();r.push({data:o,start:0,end:o.length})}}r.push({data:this.bytes,start:0,end:this.bytes.length});for(var c=t.parseChunks(r),u=c.length,h=0;h<u;h++)c[h]^=255;this.buffer=c;this.bufferLength=u;this.eof=!0}};return Jbig2Stream}();r.Jbig2Stream=u},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Image=void 0;var i=a(4),o=a(138),l=a(147),c=a(144);function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(Jbig2Error,t);var r=_createSuper(Jbig2Error);function Jbig2Error(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Jbig2Error);return r.call(this,"JBIG2 error: ".concat(t))}return Jbig2Error}(i.BaseException),h=function Jbig2ImageClosure(){function ContextCache(){}ContextCache.prototype={getContexts:function getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}};function DecodingContext(t,r,a){this.data=t;this.start=r;this.end=a}DecodingContext.prototype={get decoder(){var t=new l.ArithmeticDecoder(this.data,this.start,this.end);return(0,i.shadow)(this,"decoder",t)},get contextCache(){var t=new ContextCache;return(0,i.shadow)(this,"contextCache",t)}};function decodeInteger(t,r,a){var i=t.getContexts(r),o=1;function readBits(t){for(var r=0,l=0;l<t;l++){var c=a.readBit(i,o);o=o<256?o<<1|c:511&(o<<1|c)|256;r=r<<1|c}return r>>>0}var l=readBits(1),c=readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(32)+4436:readBits(12)+340:readBits(8)+84:readBits(6)+20:readBits(4)+4:readBits(2);return 0===l?c:c>0?-c:null}function decodeIAID(t,r,a){for(var i=t.getContexts("IAID"),o=1,l=0;l<a;l++){o=o<<1|r.readBit(i,o)}return a<31?o&(1<<a)-1:2147483647&o}var t=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],r=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],a=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],h=[39717,1941,229,405],d=[32,8];function decodeBitmap(t,a,i,o,l,c,u,d){if(t){return decodeMMRBitmap(new Reader(d.data,d.start,d.end),a,i,!1)}if(0===o&&!c&&!l&&4===u.length&&3===u[0].x&&-1===u[0].y&&-3===u[1].x&&-1===u[1].y&&2===u[2].x&&-2===u[2].y&&-2===u[3].x&&-2===u[3].y)return function decodeBitmapTemplate0(t,r,a){var i,o,l,c,u,h,d,p=a.decoder,g=a.contextCache.getContexts("GB"),m=[];for(o=0;o<r;o++){u=m[o]=new Uint8Array(t);h=o<1?u:m[o-1];i=(d=o<2?u:m[o-2])[0]<<13|d[1]<<12|d[2]<<11|h[0]<<7|h[1]<<6|h[2]<<5|h[3]<<4;for(l=0;l<t;l++){u[l]=c=p.readBit(g,i);i=(31735&i)<<1|(l+3<t?d[l+3]<<11:0)|(l+4<t?h[l+4]<<4:0)|c}}return m}(a,i,d);var p=!!c,g=r[o].concat(u);g.sort((function(t,r){return t.y-r.y||t.x-r.x}));var m,y,b=g.length,v=new Int8Array(b),S=new Int8Array(b),k=[],w=0,C=0,_=0,x=0;for(y=0;y<b;y++){v[y]=g[y].x;S[y]=g[y].y;C=Math.min(C,g[y].x);_=Math.max(_,g[y].x);x=Math.min(x,g[y].y);y<b-1&&g[y].y===g[y+1].y&&g[y].x===g[y+1].x-1?w|=1<<b-1-y:k.push(y)}var A=k.length,T=new Int8Array(A),P=new Int8Array(A),R=new Uint16Array(A);for(m=0;m<A;m++){y=k[m];T[m]=g[y].x;P[m]=g[y].y;R[m]=1<<b-1-y}for(var I,O,E,D,B,M=-C,L=-x,N=a-_,j=h[o],U=new Uint8Array(a),q=[],W=d.decoder,z=d.contextCache.getContexts("GB"),G=0,H=0,V=0;V<i;V++){if(l){if(G^=W.readBit(z,j)){q.push(U);continue}}U=new Uint8Array(U);q.push(U);for(I=0;I<a;I++)if(p&&c[V][I])U[I]=0;else{if(I>=M&&I<N&&V>=L){H=H<<1&w;for(y=0;y<A;y++){O=V+P[y];E=I+T[y];(D=q[O][E])&&(H|=D=R[y])}}else{H=0;B=b-1;for(y=0;y<b;y++,B--)(E=I+v[y])>=0&&E<a&&(O=V+S[y])>=0&&(D=q[O][E])&&(H|=D<<B)}var X=W.readBit(z,H);U[I]=X}}return q}function decodeRefinement(t,r,i,o,l,c,h,p,g){var m=a[i].coding;0===i&&(m=m.concat([p[0]]));var y,b=m.length,v=new Int32Array(b),S=new Int32Array(b);for(y=0;y<b;y++){v[y]=m[y].x;S[y]=m[y].y}var k=a[i].reference;0===i&&(k=k.concat([p[1]]));var w=k.length,C=new Int32Array(w),_=new Int32Array(w);for(y=0;y<w;y++){C[y]=k[y].x;_[y]=k[y].y}for(var x=o[0].length,A=o.length,T=d[i],P=[],R=g.decoder,I=g.contextCache.getContexts("GR"),O=0,E=0;E<r;E++){if(h){if(O^=R.readBit(I,T))throw new u("prediction is not supported")}var D=new Uint8Array(t);P.push(D);for(var B=0;B<t;B++){var M,L,N=0;for(y=0;y<b;y++){M=E+S[y];L=B+v[y];M<0||L<0||L>=t?N<<=1:N=N<<1|P[M][L]}for(y=0;y<w;y++){M=E+_[y]-c;L=B+C[y]-l;M<0||M>=A||L<0||L>=x?N<<=1:N=N<<1|o[M][L]}var j=R.readBit(I,N);D[B]=j}}return P}function decodeTextRegion(t,r,a,i,o,l,c,h,d,p,g,m,y,b,v,S,k,w,C){if(t&&r)throw new u("refinement with Huffman is not supported");var _,x,A=[];for(_=0;_<i;_++){x=new Uint8Array(a);if(o)for(var T=0;T<a;T++)x[T]=o;A.push(x)}var P=k.decoder,R=k.contextCache,I=t?-b.tableDeltaT.decode(C):-decodeInteger(R,"IADT",P),O=0;_=0;for(;_<l;){I+=t?b.tableDeltaT.decode(C):decodeInteger(R,"IADT",P);for(var E=O+=t?b.tableFirstS.decode(C):decodeInteger(R,"IAFS",P);;){var D=0;c>1&&(D=t?C.readBits(w):decodeInteger(R,"IAIT",P));var B=c*I+D,M=t?b.symbolIDTable.decode(C):decodeIAID(R,P,d),L=r&&(t?C.readBit():decodeInteger(R,"IARI",P)),N=h[M],j=N[0].length,U=N.length;if(L){var q=decodeInteger(R,"IARDW",P),W=decodeInteger(R,"IARDH",P);N=decodeRefinement(j+=q,U+=W,v,N,(q>>1)+decodeInteger(R,"IARDX",P),(W>>1)+decodeInteger(R,"IARDY",P),!1,S,k)}var z,G,H,V=B-(1&m?0:U-1),X=E-(2&m?j-1:0);if(p){for(z=0;z<U;z++)if(x=A[X+z]){H=N[z];var Y=Math.min(a-V,j);switch(y){case 0:for(G=0;G<Y;G++)x[V+G]|=H[G];break;case 2:for(G=0;G<Y;G++)x[V+G]^=H[G];break;default:throw new u("operator ".concat(y," is not supported"))}}E+=U-1}else{for(G=0;G<U;G++)if(x=A[V+G]){H=N[G];switch(y){case 0:for(z=0;z<j;z++)x[X+z]|=H[z];break;case 2:for(z=0;z<j;z++)x[X+z]^=H[z];break;default:throw new u("operator ".concat(y," is not supported"))}}E+=j-1}_++;var K=t?b.tableDeltaS.decode(C):decodeInteger(R,"IADS",P);if(null===K)break;E+=K+g}}return A}function readSegmentHeader(r,a){var i={};i.number=(0,o.readUint32)(r,a);var l=r[a+4],c=63&l;if(!t[c])throw new u("invalid segment type: "+c);i.type=c;i.typeName=t[c];i.deferredNonRetain=!!(128&l);var h=!!(64&l),d=r[a+5],g=d>>5&7,m=[31&d],y=a+6;if(7===d){g=536870911&(0,o.readUint32)(r,y-1);y+=3;var b=g+7>>3;m[0]=r[y++];for(;--b>0;)m.push(r[y++])}else if(5===d||6===d)throw new u("invalid referred-to flags");i.retainBits=m;var v=4;i.number<=256?v=1:i.number<=65536&&(v=2);var S,k,w=[];for(S=0;S<g;S++){var C=void 0;C=1===v?r[y]:2===v?(0,o.readUint16)(r,y):(0,o.readUint32)(r,y);w.push(C);y+=v}i.referredTo=w;if(h){i.pageAssociation=(0,o.readUint32)(r,y);y+=4}else i.pageAssociation=r[y++];i.length=(0,o.readUint32)(r,y);y+=4;if(4294967295===i.length){if(38!==c)throw new u("invalid unknown segment length");var _=readRegionSegmentInformation(r,y),x=!!(1&r[y+p]),A=new Uint8Array(6);if(!x){A[0]=255;A[1]=172}A[2]=_.height>>>24&255;A[3]=_.height>>16&255;A[4]=_.height>>8&255;A[5]=255&_.height;for(S=y,k=r.length;S<k;S++){for(var T=0;T<6&&A[T]===r[S+T];)T++;if(6===T){i.length=S+6;break}}if(4294967295===i.length)throw new u("segment end was not found")}i.headerEnd=y;return i}function readSegments(t,r,a,i){for(var o=[],l=a;l<i;){var c=readSegmentHeader(r,l);l=c.headerEnd;var u={header:c,data:r};if(!t.randomAccess){u.start=l;l+=c.length;u.end=l}o.push(u);if(51===c.type)break}if(t.randomAccess)for(var h=0,d=o.length;h<d;h++){o[h].start=l;l+=o[h].header.length;o[h].end=l}return o}function readRegionSegmentInformation(t,r){return{width:(0,o.readUint32)(t,r),height:(0,o.readUint32)(t,r+4),x:(0,o.readUint32)(t,r+8),y:(0,o.readUint32)(t,r+12),combinationOperator:7&t[r+16]}}var p=17;function processSegment(t,r){var a,i,l,c,h=t.header,d=t.data,g=t.start,m=t.end;switch(h.type){case 0:var y={},b=(0,o.readUint16)(d,g);y.huffman=!!(1&b);y.refinement=!!(2&b);y.huffmanDHSelector=b>>2&3;y.huffmanDWSelector=b>>4&3;y.bitmapSizeSelector=b>>6&1;y.aggregationInstancesSelector=b>>7&1;y.bitmapCodingContextUsed=!!(256&b);y.bitmapCodingContextRetained=!!(512&b);y.template=b>>10&3;y.refinementTemplate=b>>12&1;g+=2;if(!y.huffman){c=0===y.template?4:1;i=[];for(l=0;l<c;l++){i.push({x:(0,o.readInt8)(d,g),y:(0,o.readInt8)(d,g+1)});g+=2}y.at=i}if(y.refinement&&!y.refinementTemplate){i=[];for(l=0;l<2;l++){i.push({x:(0,o.readInt8)(d,g),y:(0,o.readInt8)(d,g+1)});g+=2}y.refinementAt=i}y.numberOfExportedSymbols=(0,o.readUint32)(d,g);g+=4;y.numberOfNewSymbols=(0,o.readUint32)(d,g);g+=4;a=[y,h.number,h.referredTo,d,g,m];break;case 6:case 7:var v={};v.info=readRegionSegmentInformation(d,g);g+=p;var S=(0,o.readUint16)(d,g);g+=2;v.huffman=!!(1&S);v.refinement=!!(2&S);v.logStripSize=S>>2&3;v.stripSize=1<<v.logStripSize;v.referenceCorner=S>>4&3;v.transposed=!!(64&S);v.combinationOperator=S>>7&3;v.defaultPixelValue=S>>9&1;v.dsOffset=S<<17>>27;v.refinementTemplate=S>>15&1;if(v.huffman){var k=(0,o.readUint16)(d,g);g+=2;v.huffmanFS=3&k;v.huffmanDS=k>>2&3;v.huffmanDT=k>>4&3;v.huffmanRefinementDW=k>>6&3;v.huffmanRefinementDH=k>>8&3;v.huffmanRefinementDX=k>>10&3;v.huffmanRefinementDY=k>>12&3;v.huffmanRefinementSizeSelector=!!(16384&k)}if(v.refinement&&!v.refinementTemplate){i=[];for(l=0;l<2;l++){i.push({x:(0,o.readInt8)(d,g),y:(0,o.readInt8)(d,g+1)});g+=2}v.refinementAt=i}v.numberOfSymbolInstances=(0,o.readUint32)(d,g);g+=4;a=[v,h.referredTo,d,g,m];break;case 16:var w={},C=d[g++];w.mmr=!!(1&C);w.template=C>>1&3;w.patternWidth=d[g++];w.patternHeight=d[g++];w.maxPatternIndex=(0,o.readUint32)(d,g);g+=4;a=[w,h.number,d,g,m];break;case 22:case 23:var _={};_.info=readRegionSegmentInformation(d,g);g+=p;var x=d[g++];_.mmr=!!(1&x);_.template=x>>1&3;_.enableSkip=!!(8&x);_.combinationOperator=x>>4&7;_.defaultPixelValue=x>>7&1;_.gridWidth=(0,o.readUint32)(d,g);g+=4;_.gridHeight=(0,o.readUint32)(d,g);g+=4;_.gridOffsetX=4294967295&(0,o.readUint32)(d,g);g+=4;_.gridOffsetY=4294967295&(0,o.readUint32)(d,g);g+=4;_.gridVectorX=(0,o.readUint16)(d,g);g+=2;_.gridVectorY=(0,o.readUint16)(d,g);g+=2;a=[_,h.referredTo,d,g,m];break;case 38:case 39:var A={};A.info=readRegionSegmentInformation(d,g);g+=p;var T=d[g++];A.mmr=!!(1&T);A.template=T>>1&3;A.prediction=!!(8&T);if(!A.mmr){c=0===A.template?4:1;i=[];for(l=0;l<c;l++){i.push({x:(0,o.readInt8)(d,g),y:(0,o.readInt8)(d,g+1)});g+=2}A.at=i}a=[A,d,g,m];break;case 48:var P={width:(0,o.readUint32)(d,g),height:(0,o.readUint32)(d,g+4),resolutionX:(0,o.readUint32)(d,g+8),resolutionY:(0,o.readUint32)(d,g+12)};4294967295===P.height&&delete P.height;var R=d[g+16];(0,o.readUint16)(d,g+17);P.lossless=!!(1&R);P.refinement=!!(2&R);P.defaultPixelValue=R>>2&1;P.combinationOperator=R>>3&3;P.requiresBuffer=!!(32&R);P.combinationOperatorOverride=!!(64&R);a=[P];break;case 49:case 50:case 51:break;case 53:a=[h.number,d,g,m];break;case 62:break;default:throw new u("segment type ".concat(h.typeName,"(").concat(h.type,")")+" is not implemented")}var I="on"+h.typeName;I in r&&r[I].apply(r,a)}function processSegments(t,r){for(var a=0,i=t.length;a<i;a++)processSegment(t[a],r)}function SimpleSegmentVisitor(){}SimpleSegmentVisitor.prototype={onPageInformation:function SimpleSegmentVisitor_onPageInformation(t){this.currentPageInfo=t;var r=t.width+7>>3,a=new Uint8ClampedArray(r*t.height);if(t.defaultPixelValue)for(var i=0,o=a.length;i<o;i++)a[i]=255;this.buffer=a},drawBitmap:function SimpleSegmentVisitor_drawBitmap(t,r){var a,i,o,l,c=this.currentPageInfo,h=t.width,d=t.height,p=c.width+7>>3,g=c.combinationOperatorOverride?t.combinationOperator:c.combinationOperator,m=this.buffer,y=128>>(7&t.x),b=t.y*p+(t.x>>3);switch(g){case 0:for(a=0;a<d;a++){o=y;l=b;for(i=0;i<h;i++){r[a][i]&&(m[l]|=o);if(!(o>>=1)){o=128;l++}}b+=p}break;case 2:for(a=0;a<d;a++){o=y;l=b;for(i=0;i<h;i++){r[a][i]&&(m[l]^=o);if(!(o>>=1)){o=128;l++}}b+=p}break;default:throw new u("operator ".concat(g," is not supported"))}},onImmediateGenericRegion:function SimpleSegmentVisitor_onImmediateGenericRegion(t,r,a,i){var o=t.info,l=new DecodingContext(r,a,i),c=decodeBitmap(t.mmr,o.width,o.height,t.template,t.prediction,null,t.at,l);this.drawBitmap(o,c)},onImmediateLosslessGenericRegion:function SimpleSegmentVisitor_onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function SimpleSegmentVisitor_onSymbolDictionary(t,r,a,i,l,c){var h,d;if(t.huffman){h=function getSymbolDictionaryHuffmanTables(t,r,a){var i,o,l,c,h=0;switch(t.huffmanDHSelector){case 0:case 1:i=getStandardTable(t.huffmanDHSelector+4);break;case 3:i=getCustomHuffmanTable(h,r,a);h++;break;default:throw new u("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:o=getStandardTable(t.huffmanDWSelector+2);break;case 3:o=getCustomHuffmanTable(h,r,a);h++;break;default:throw new u("invalid Huffman DW selector")}if(t.bitmapSizeSelector){l=getCustomHuffmanTable(h,r,a);h++}else l=getStandardTable(1);c=t.aggregationInstancesSelector?getCustomHuffmanTable(h,r,a):getStandardTable(1);return{tableDeltaHeight:i,tableDeltaWidth:o,tableBitmapSize:l,tableAggregateInstances:c}}(t,a,this.customTables);d=new Reader(i,l,c)}var p=this.symbols;p||(this.symbols=p={});for(var g=[],m=0,y=a.length;m<y;m++){var b=p[a[m]];b&&(g=g.concat(b))}var v=new DecodingContext(i,l,c);p[r]=function decodeSymbolDictionary(t,r,a,i,l,c,h,d,p,g,m,y){if(t&&r)throw new u("symbol refinement with Huffman is not supported");var b,v,S=[],k=0,w=(0,o.log2)(a.length+i),C=m.decoder,_=m.contextCache;if(t){b=getStandardTable(1);v=[];w=Math.max(w,1)}for(;S.length<i;){k+=t?c.tableDeltaHeight.decode(y):decodeInteger(_,"IADH",C);for(var x=0,A=0,T=t?v.length:0;;){var P,R=t?c.tableDeltaWidth.decode(y):decodeInteger(_,"IADW",C);if(null===R)break;A+=x+=R;if(r){var I=decodeInteger(_,"IAAI",C);if(I>1)P=decodeTextRegion(t,r,x,k,0,I,1,a.concat(S),w,0,0,1,0,c,p,g,m,0,y);else{var O=decodeIAID(_,C,w),E=decodeInteger(_,"IARDX",C),D=decodeInteger(_,"IARDY",C);P=decodeRefinement(x,k,p,O<a.length?a[O]:S[O-a.length],E,D,!1,g,m)}S.push(P)}else if(t)v.push(x);else{P=decodeBitmap(!1,x,k,h,!1,null,d,m);S.push(P)}}if(t&&!r){var B=c.tableBitmapSize.decode(y);y.byteAlign();var M=void 0;if(0===B)M=readUncompressedBitmap(y,A,k);else{var L=y.end,N=y.position+B;y.end=N;M=decodeMMRBitmap(y,A,k,!1);y.end=L;y.position=N}var j=v.length;if(T===j-1)S.push(M);else{var U=void 0,q=void 0,W=0,z=void 0,G=void 0;for(U=T;U<j;U++){z=W+v[U];G=[];for(q=0;q<k;q++)G.push(M[q].subarray(W,z));S.push(G);W=z}}}}for(var H=[],V=[],X=!1,Y=a.length+i;V.length<Y;){for(var K=t?b.decode(y):decodeInteger(_,"IAEX",C);K--;)V.push(X);X=!X}for(var J=0,Q=a.length;J<Q;J++)V[J]&&H.push(a[J]);for(var Z=0;Z<i;J++,Z++)V[J]&&H.push(S[Z]);return H}(t.huffman,t.refinement,g,t.numberOfNewSymbols,t.numberOfExportedSymbols,h,t.template,t.at,t.refinementTemplate,t.refinementAt,v,d)},onImmediateTextRegion:function SimpleSegmentVisitor_onImmediateTextRegion(t,r,a,i,l){for(var c,h,d=t.info,p=this.symbols,g=[],m=0,y=r.length;m<y;m++){var b=p[r[m]];b&&(g=g.concat(b))}var v=(0,o.log2)(g.length);if(t.huffman){h=new Reader(a,i,l);c=function getTextRegionHuffmanTables(t,r,a,i,o){for(var l=[],c=0;c<=34;c++){var h=o.readBits(4);l.push(new HuffmanLine([c,h,0,0]))}var d=new HuffmanTable(l,!1);l.length=0;for(var p=0;p<i;){var g=d.decode(o);if(g>=32){var m=void 0,y=void 0,b=void 0;switch(g){case 32:if(0===p)throw new u("no previous value in symbol ID table");y=o.readBits(2)+3;m=l[p-1].prefixLength;break;case 33:y=o.readBits(3)+3;m=0;break;case 34:y=o.readBits(7)+11;m=0;break;default:throw new u("invalid code length in symbol ID table")}for(b=0;b<y;b++){l.push(new HuffmanLine([p,m,0,0]));p++}}else{l.push(new HuffmanLine([p,g,0,0]));p++}}o.byteAlign();var v,S,k,w=new HuffmanTable(l,!1),C=0;switch(t.huffmanFS){case 0:case 1:v=getStandardTable(t.huffmanFS+6);break;case 3:v=getCustomHuffmanTable(C,r,a);C++;break;default:throw new u("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:S=getStandardTable(t.huffmanDS+8);break;case 3:S=getCustomHuffmanTable(C,r,a);C++;break;default:throw new u("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:k=getStandardTable(t.huffmanDT+11);break;case 3:k=getCustomHuffmanTable(C,r,a);C++;break;default:throw new u("invalid Huffman DT selector")}if(t.refinement)throw new u("refinement with Huffman is not supported");return{symbolIDTable:w,tableFirstS:v,tableDeltaS:S,tableDeltaT:k}}(t,r,this.customTables,g.length,h)}var S=new DecodingContext(a,i,l),k=decodeTextRegion(t.huffman,t.refinement,d.width,d.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,g,v,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,c,t.refinementTemplate,t.refinementAt,S,t.logStripSize,h);this.drawBitmap(d,k)},onImmediateLosslessTextRegion:function SimpleSegmentVisitor_onImmediateLosslessTextRegion(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary:function onPatternDictionary(t,r,a,i,o){var l=this.patterns;l||(this.patterns=l={});var c=new DecodingContext(a,i,o);l[r]=function decodePatternDictionary(t,r,a,i,o,l){var c=[];if(!t){c.push({x:-r,y:0});if(0===o){c.push({x:-3,y:-1});c.push({x:2,y:-2});c.push({x:-2,y:-2})}}for(var u=decodeBitmap(t,(i+1)*r,a,o,!1,null,c,l),h=[],d=0;d<=i;d++){for(var p=[],g=r*d,m=g+r,y=0;y<a;y++)p.push(u[y].subarray(g,m));h.push(p)}return h}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,c)},onImmediateHalftoneRegion:function onImmediateHalftoneRegion(t,r,a,i,l){var c=this.patterns[r[0]],h=t.info,d=new DecodingContext(a,i,l),p=function decodeHalftoneRegion(t,r,a,i,l,c,h,d,p,g,m,y,b,v,S){if(h)throw new u("skip is not supported");if(0!==d)throw new u("operator "+d+" is not supported in halftone region");var k,w,C,_=[];for(k=0;k<l;k++){C=new Uint8Array(i);if(c)for(w=0;w<i;w++)C[w]=c;_.push(C)}var x=r.length,A=r[0],T=A[0].length,P=A.length,R=(0,o.log2)(x),I=[];if(!t){I.push({x:a<=1?3:2,y:-1});if(0===a){I.push({x:-3,y:-1});I.push({x:2,y:-2});I.push({x:-2,y:-2})}}var O,E,D,B,M,L,N,j,U,q,W,z=[];t&&(O=new Reader(S.data,S.start,S.end));for(k=R-1;k>=0;k--){E=t?decodeMMRBitmap(O,p,g,!0):decodeBitmap(!1,p,g,a,!1,null,I,S);z[k]=E}for(D=0;D<g;D++)for(B=0;B<p;B++){M=0;L=0;for(w=R-1;w>=0;w--)L|=(M=z[w][D][B]^M)<<w;N=r[L];U=y+D*b-B*v>>8;if((j=m+D*v+B*b>>8)>=0&&j+T<=i&&U>=0&&U+P<=l)for(k=0;k<P;k++){W=_[U+k];q=N[k];for(w=0;w<T;w++)W[j+w]|=q[w]}else{var G=void 0,H=void 0;for(k=0;k<P;k++)if(!((H=U+k)<0||H>=l)){W=_[H];q=N[k];for(w=0;w<T;w++)(G=j+w)>=0&&G<i&&(W[G]|=q[w])}}}return _}(t.mmr,c,t.template,h.width,h.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,d);this.drawBitmap(h,p)},onImmediateLosslessHalftoneRegion:function onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables:function onTables(t,r,a,i){var l=this.customTables;l||(this.customTables=l={});l[t]=function decodeTablesSegment(t,r,a){var i,l,c=t[r],u=4294967295&(0,o.readUint32)(t,r+1),h=4294967295&(0,o.readUint32)(t,r+5),d=new Reader(t,r+9,a),p=1+(c>>1&7),g=1+(c>>4&7),m=[],y=u;do{i=d.readBits(p);l=d.readBits(g);m.push(new HuffmanLine([y,i,l,0]));y+=1<<l}while(y<h);i=d.readBits(p);m.push(new HuffmanLine([u-1,i,32,0,"lower"]));i=d.readBits(p);m.push(new HuffmanLine([h,i,32,0]));if(1&c){i=d.readBits(p);m.push(new HuffmanLine([i,0]))}return new HuffmanTable(m,!1)}(r,a,i)}};function HuffmanLine(t){if(2===t.length){this.isOOB=!0;this.rangeLow=0;this.prefixLength=t[0];this.rangeLength=0;this.prefixCode=t[1];this.isLowerRange=!1}else{this.isOOB=!1;this.rangeLow=t[0];this.prefixLength=t[1];this.rangeLength=t[2];this.prefixCode=t[3];this.isLowerRange="lower"===t[4]}}function HuffmanTreeNode(t){this.children=[];if(t){this.isLeaf=!0;this.rangeLength=t.rangeLength;this.rangeLow=t.rangeLow;this.isLowerRange=t.isLowerRange;this.isOOB=t.isOOB}else this.isLeaf=!1}HuffmanTreeNode.prototype={buildTree:function buildTree(t,r){var a=t.prefixCode>>r&1;if(r<=0)this.children[a]=new HuffmanTreeNode(t);else{var i=this.children[a];i||(this.children[a]=i=new HuffmanTreeNode(null));i.buildTree(t,r-1)}},decodeNode:function decodeNode(t){if(this.isLeaf){if(this.isOOB)return null;var r=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-r:r)}var a=this.children[t.readBit()];if(!a)throw new u("invalid Huffman data");return a.decodeNode(t)}};function HuffmanTable(t,r){r||this.assignPrefixCodes(t);this.rootNode=new HuffmanTreeNode(null);for(var a=0,i=t.length;a<i;a++){var o=t[a];o.prefixLength>0&&this.rootNode.buildTree(o,o.prefixLength-1)}}HuffmanTable.prototype={decode:function decode(t){return this.rootNode.decodeNode(t)},assignPrefixCodes:function assignPrefixCodes(t){for(var r=t.length,a=0,i=0;i<r;i++)a=Math.max(a,t[i].prefixLength);for(var o=new Uint32Array(a+1),l=0;l<r;l++)o[t[l].prefixLength]++;var c,u,h,d=1,p=0;o[0]=0;for(;d<=a;){c=p=p+o[d-1]<<1;u=0;for(;u<r;){if((h=t[u]).prefixLength===d){h.prefixCode=c;c++}u++}d++}}};var g={};function getStandardTable(t){var r,a=g[t];if(a)return a;switch(t){case 1:r=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:r=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:r=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:r=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:r=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:r=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:r=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:r=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:r=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:r=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:r=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:r=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:r=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:r=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:r=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new u("standard table B.".concat(t," does not exist"))}for(var i=0,o=r.length;i<o;i++)r[i]=new HuffmanLine(r[i]);a=new HuffmanTable(r,!0);g[t]=a;return a}function Reader(t,r,a){this.data=t;this.start=r;this.end=a;this.position=r;this.shift=-1;this.currentByte=0}Reader.prototype={readBit:function readBit(){if(this.shift<0){if(this.position>=this.end)throw new u("end of data while reading bit");this.currentByte=this.data[this.position++];this.shift=7}var t=this.currentByte>>this.shift&1;this.shift--;return t},readBits:function readBits(t){var r,a=0;for(r=t-1;r>=0;r--)a|=this.readBit()<<r;return a},byteAlign:function byteAlign(){this.shift=-1},next:function next(){return this.position>=this.end?-1:this.data[this.position++]}};function getCustomHuffmanTable(t,r,a){for(var i=0,o=0,l=r.length;o<l;o++){var c=a[r[o]];if(c){if(t===i)return c;i++}}throw new u("can't find custom Huffman table")}function readUncompressedBitmap(t,r,a){for(var i=[],o=0;o<a;o++){var l=new Uint8Array(r);i.push(l);for(var c=0;c<r;c++)l[c]=t.readBit();t.byteAlign()}return i}function decodeMMRBitmap(t,r,a,i){for(var o,l={K:-1,Columns:r,Rows:a,BlackIs1:!0,EndOfBlock:i},u=new c.CCITTFaxDecoder(t,l),h=[],d=!1,p=0;p<a;p++){var g=new Uint8Array(r);h.push(g);for(var m=-1,y=0;y<r;y++){if(m<0){if(-1===(o=u.readNextChar())){o=0;d=!0}m=7}g[y]=o>>m&1;m--}}if(i&&!d)for(var b=0;b<5&&-1!==u.readNextChar();b++);return h}function Jbig2Image(){}Jbig2Image.prototype={parseChunks:function parseChunks(t){return function parseJbig2Chunks(t){for(var r=new SimpleSegmentVisitor,a=0,i=t.length;a<i;a++){var o=t[a];processSegments(readSegments({},o.data,o.start,o.end),r)}return r.buffer}(t)},parse:function parse(t){var r=function parseJbig2(t){var r=t.length,a=0;if(151!==t[a]||74!==t[a+1]||66!==t[a+2]||50!==t[a+3]||13!==t[a+4]||10!==t[a+5]||26!==t[a+6]||10!==t[a+7])throw new u("parseJbig2 - invalid header.");var i=Object.create(null);a+=8;var l=t[a++];i.randomAccess=!(1&l);if(!(2&l)){i.numberOfPages=(0,o.readUint32)(t,a);a+=4}var c=readSegments(i,t,a,r),h=new SimpleSegmentVisitor;processSegments(c,h);for(var d=h.currentPageInfo,p=d.width,g=d.height,m=h.buffer,y=new Uint8ClampedArray(p*g),b=0,v=0,S=0;S<g;S++)for(var k=0,w=void 0,C=0;C<p;C++){if(!k){k=128;w=m[v++]}y[b++]=w&k?0:255;k>>=1}return{imgData:y,width:p,height:g}}(t),a=r.imgData,i=r.width,l=r.height;this.width=i;this.height=l;return a}};return Jbig2Image}();r.Jbig2Image=h},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ArithmeticDecoder=void 0;function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}var a=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],i=function(){function ArithmeticDecoder(t,r,a){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ArithmeticDecoder);this.data=t;this.bp=r;this.dataEnd=a;this.chigh=t[r];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(ArithmeticDecoder,[{key:"byteIn",value:function byteIn(){var t=this.data,r=this.bp;if(255===t[r])if(t[r+1]>143){this.clow+=65280;this.ct=8}else{r++;this.clow+=t[r]<<9;this.ct=7;this.bp=r}else{r++;this.clow+=r<this.dataEnd?t[r]<<8:65280;this.ct=8;this.bp=r}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535}}},{key:"readBit",value:function readBit(t,r){var i,o=t[r]>>1,l=1&t[r],c=a[o],u=c.qe,h=this.a-u;if(this.chigh<u)if(h<u){h=u;i=l;o=c.nmps}else{h=u;i=1^l;1===c.switchFlag&&(l=i);o=c.nlps}else{this.chigh-=u;if(0!=(32768&h)){this.a=h;return l}if(h<u){i=1^l;1===c.switchFlag&&(l=i);o=c.nlps}else{i=l;o=c.nmps}}do{0===this.ct&&this.byteIn();h<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&h));this.a=h;t[r]=o<<1|l;return i}}]);return ArithmeticDecoder}();r.ArithmeticDecoder=i},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpegStream=void 0;var i=a(142),o=a(135),l=a(149),c=a(4),u=function JpegStreamClosure(){function JpegStream(t,r,a,o){for(var l;-1!==(l=t.getByte());)if(255===l){t.skip(-1);break}this.stream=t;this.maybeLength=r;this.dict=a;this.params=o;i.DecodeStream.call(this,r)}JpegStream.prototype=Object.create(i.DecodeStream.prototype);Object.defineProperty(JpegStream.prototype,"bytes",{get:function JpegStream_bytes(){return(0,c.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});JpegStream.prototype.ensureBuffer=function(t){};JpegStream.prototype.readBlock=function(){if(!this.eof){var t={decodeTransform:void 0,colorTransform:void 0},r=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(r)){for(var a=this.dict.get("BitsPerComponent")||8,i=r.length,c=new Int32Array(i),u=!1,h=(1<<a)-1,d=0;d<i;d+=2){c[d]=256*(r[d+1]-r[d])|0;c[d+1]=r[d]*h|0;256===c[d]&&0===c[d+1]||(u=!0)}u&&(t.decodeTransform=c)}if((0,o.isDict)(this.params)){var p=this.params.get("ColorTransform");Number.isInteger(p)&&(t.colorTransform=p)}var g=new l.JpegImage(t);g.parse(this.bytes);var m=g.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=m;this.bufferLength=m.length;this.eof=!0}};return JpegStream}();r.JpegStream=u},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpegImage=void 0;var i=a(4),o=a(138);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){_inherits(JpegError,t);var r=_createSuper(JpegError);function JpegError(t){_classCallCheck(this,JpegError);return r.call(this,"JPEG error: ".concat(t))}return JpegError}(i.BaseException),c=function(t){_inherits(DNLMarkerError,t);var r=_createSuper(DNLMarkerError);function DNLMarkerError(t,a){var i;_classCallCheck(this,DNLMarkerError);(i=r.call(this,t)).scanLines=a;return i}return DNLMarkerError}(i.BaseException),u=function(t){_inherits(EOIMarkerError,t);var r=_createSuper(EOIMarkerError);function EOIMarkerError(){_classCallCheck(this,EOIMarkerError);return r.apply(this,arguments)}return EOIMarkerError}(i.BaseException),h=function JpegImageClosure(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,a=799,h=3406,d=2276,p=1567,g=3784,m=5793,y=2896;function JpegImage(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,a=void 0===r?null:r,i=t.colorTransform,o=void 0===i?-1:i;this._decodeTransform=a;this._colorTransform=o}function buildHuffmanTable(t,r){for(var a,i,o=0,l=[],c=16;c>0&&!t[c-1];)c--;l.push({children:[],index:0});var u,h=l[0];for(a=0;a<c;a++){for(i=0;i<t[a];i++){(h=l.pop()).children[h.index]=r[o];for(;h.index>0;)h=l.pop();h.index++;l.push(h);for(;l.length<=a;){l.push(u={children:[],index:0});h.children[h.index]=u.children;h=u}o++}if(a+1<c){l.push(u={children:[],index:0});h.children[h.index]=u.children;h=u}}return l[0].children}function getBlockBufferOffset(t,r,a){return 64*((t.blocksPerLine+1)*r+a)}function decodeScan(r,a,h,d,p,g,m,y,b){var v=arguments.length>9&&void 0!==arguments[9]&&arguments[9],S=h.mcusPerLine,k=h.progressive,w=a,C=0,_=0;function readBit(){if(_>0){_--;return C>>_&1}if(255===(C=r[a++])){var t=r[a++];if(t){if(220===t&&v){a+=2;var i=(0,o.readUint16)(r,a);a+=2;if(i>0&&i!==h.scanLines)throw new c("Found DNL marker (0xFFDC) while parsing scan data",i)}else if(217===t){if(v){var d=P*(8===h.precision?8:0);if(d>0&&Math.round(h.scanLines/d)>=10)throw new c("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",d)}throw new u("Found EOI marker (0xFFD9) while parsing scan data")}throw new l("unexpected marker ".concat((C<<8|t).toString(16)))}}_=7;return C>>>7}function decodeHuffman(t){for(var r=t;;){switch(_typeof(r=r[readBit()])){case"number":return r;case"object":continue}throw new l("invalid huffman sequence")}}function receive(t){for(var r=0;t>0;){r=r<<1|readBit();t--}return r}function receiveAndExtend(t){if(1===t)return 1===readBit()?1:-1;var r=receive(t);return r>=1<<t-1?r:r+(-1<<t)+1}function decodeBaseline(r,a){var i=decodeHuffman(r.huffmanTableDC),o=0===i?0:receiveAndExtend(i);r.blockData[a]=r.pred+=o;for(var l=1;l<64;){var c=decodeHuffman(r.huffmanTableAC),u=15&c,h=c>>4;if(0!==u){var d=t[l+=h];r.blockData[a+d]=receiveAndExtend(u);l++}else{if(h<15)break;l+=16}}}function decodeDCFirst(t,r){var a=decodeHuffman(t.huffmanTableDC),i=0===a?0:receiveAndExtend(a)<<b;t.blockData[r]=t.pred+=i}function decodeDCSuccessive(t,r){t.blockData[r]|=readBit()<<b}var x=0;function decodeACFirst(r,a){if(x>0)x--;else for(var i=g,o=m;i<=o;){var l=decodeHuffman(r.huffmanTableAC),c=15&l,u=l>>4;if(0!==c){var h=t[i+=u];r.blockData[a+h]=receiveAndExtend(c)*(1<<b);i++}else{if(u<15){x=receive(u)+(1<<u)-1;break}i+=16}}}var A,T=0;function decodeACSuccessive(r,a){for(var i,o,c=g,u=m,h=0;c<=u;){var d=a+t[c],p=r.blockData[d]<0?-1:1;switch(T){case 0:h=(o=decodeHuffman(r.huffmanTableAC))>>4;if(0===(i=15&o))if(h<15){x=receive(h)+(1<<h);T=4}else{h=16;T=1}else{if(1!==i)throw new l("invalid ACn encoding");A=receiveAndExtend(i);T=h?2:3}continue;case 1:case 2:r.blockData[d]?r.blockData[d]+=p*(readBit()<<b):0===--h&&(T=2===T?3:0);break;case 3:if(r.blockData[d])r.blockData[d]+=p*(readBit()<<b);else{r.blockData[d]=A<<b;T=0}break;case 4:r.blockData[d]&&(r.blockData[d]+=p*(readBit()<<b))}c++}4===T&&0===--x&&(T=0)}var P=0;function decodeMcu(t,r,a,i,o){var l=a%S;P=(a/S|0)*t.v+i;var c=l*t.h+o;r(t,getBlockBufferOffset(t,P,c))}function decodeBlock(t,r,a){P=a/t.blocksPerLine|0;var i=a%t.blocksPerLine;r(t,getBlockBufferOffset(t,P,i))}var R,I,O,E,D,B,M=d.length;B=k?0===g?0===y?decodeDCFirst:decodeDCSuccessive:0===y?decodeACFirst:decodeACSuccessive:decodeBaseline;var L,N,j,U,q=0;N=1===M?d[0].blocksPerLine*d[0].blocksPerColumn:S*h.mcusPerColumn;for(;q<=N;){var W=p?Math.min(N-q,p):N;if(W>0){for(I=0;I<M;I++)d[I].pred=0;x=0;if(1===M){R=d[0];for(D=0;D<W;D++){decodeBlock(R,B,q);q++}}else for(D=0;D<W;D++){for(I=0;I<M;I++){j=(R=d[I]).h;U=R.v;for(O=0;O<U;O++)for(E=0;E<j;E++)decodeMcu(R,B,q,O,E)}q++}}_=0;if(!(L=findNextFileMarker(r,a)))break;if(L.invalid){var z=W>0?"unexpected":"excessive";(0,i.warn)("decodeScan - ".concat(z," MCU data, current marker is: ").concat(L.invalid));a=L.offset}if(!(L.marker>=65488&&L.marker<=65495))break;a+=2}return a-w}function quantizeAndInverse(t,i,o){var c,u,b,v,S,k,w,C,_,x,A,T,P,R,I,O,E,D=t.quantizationTable,B=t.blockData;if(!D)throw new l("missing required Quantization Table.");for(var M=0;M<64;M+=8){_=B[i+M];x=B[i+M+1];A=B[i+M+2];T=B[i+M+3];P=B[i+M+4];R=B[i+M+5];I=B[i+M+6];O=B[i+M+7];_*=D[M];if(0!=(x|A|T|P|R|I|O)){x*=D[M+1];A*=D[M+2];T*=D[M+3];P*=D[M+4];R*=D[M+5];I*=D[M+6];O*=D[M+7];u=(c=(c=m*_+128>>8)+(u=m*P+128>>8)+1>>1)-u;E=(b=A)*g+(v=I)*p+128>>8;b=b*p-v*g+128>>8;w=(S=(S=y*(x-O)+128>>8)+(w=R<<4)+1>>1)-w;k=(C=(C=y*(x+O)+128>>8)+(k=T<<4)+1>>1)-k;v=(c=c+(v=E)+1>>1)-v;b=(u=u+b+1>>1)-b;E=S*d+C*h+2048>>12;S=S*h-C*d+2048>>12;C=E;E=k*a+w*r+2048>>12;k=k*r-w*a+2048>>12;w=E;o[M]=c+C;o[M+7]=c-C;o[M+1]=u+w;o[M+6]=u-w;o[M+2]=b+k;o[M+5]=b-k;o[M+3]=v+S;o[M+4]=v-S}else{E=m*_+512>>10;o[M]=E;o[M+1]=E;o[M+2]=E;o[M+3]=E;o[M+4]=E;o[M+5]=E;o[M+6]=E;o[M+7]=E}}for(var L=0;L<8;++L){_=o[L];if(0!=((x=o[L+8])|(A=o[L+16])|(T=o[L+24])|(P=o[L+32])|(R=o[L+40])|(I=o[L+48])|(O=o[L+56]))){u=(c=4112+((c=m*_+2048>>12)+(u=m*P+2048>>12)+1>>1))-u;E=(b=A)*g+(v=I)*p+2048>>12;b=b*p-v*g+2048>>12;v=E;w=(S=(S=y*(x-O)+2048>>12)+(w=R)+1>>1)-w;k=(C=(C=y*(x+O)+2048>>12)+(k=T)+1>>1)-k;E=S*d+C*h+2048>>12;S=S*h-C*d+2048>>12;C=E;E=k*a+w*r+2048>>12;k=k*r-w*a+2048>>12;(_=(c=c+v+1>>1)+C)<16?_=0:_>=4080?_=255:_>>=4;(x=(u=u+b+1>>1)+(w=E))<16?x=0:x>=4080?x=255:x>>=4;(A=(b=u-b)+k)<16?A=0:A>=4080?A=255:A>>=4;(T=(v=c-v)+S)<16?T=0:T>=4080?T=255:T>>=4;(P=v-S)<16?P=0:P>=4080?P=255:P>>=4;(R=b-k)<16?R=0:R>=4080?R=255:R>>=4;(I=u-w)<16?I=0:I>=4080?I=255:I>>=4;(O=c-C)<16?O=0:O>=4080?O=255:O>>=4;B[i+L]=_;B[i+L+8]=x;B[i+L+16]=A;B[i+L+24]=T;B[i+L+32]=P;B[i+L+40]=R;B[i+L+48]=I;B[i+L+56]=O}else{E=(E=m*_+8192>>14)<-2040?0:E>=2024?255:E+2056>>4;B[i+L]=E;B[i+L+8]=E;B[i+L+16]=E;B[i+L+24]=E;B[i+L+32]=E;B[i+L+40]=E;B[i+L+48]=E;B[i+L+56]=E}}}function buildComponentData(t,r){for(var a=r.blocksPerLine,i=r.blocksPerColumn,o=new Int16Array(64),l=0;l<i;l++)for(var c=0;c<a;c++){quantizeAndInverse(r,getBlockBufferOffset(r,l,c),o)}return r.blockData}function findNextFileMarker(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,i=t.length-1,l=a<r?a:r;if(r>=i)return null;var c=(0,o.readUint16)(t,r);if(c>=65472&&c<=65534)return{invalid:null,marker:c,offset:r};for(var u=(0,o.readUint16)(t,l);!(u>=65472&&u<=65534);){if(++l>=i)return null;u=(0,o.readUint16)(t,l)}return{invalid:c.toString(16),marker:u,offset:l}}JpegImage.prototype={parse:function parse(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=a.dnlScanLines,d=void 0===h?null:h;function readDataBlock(){var t=(0,o.readUint16)(r,m),a=(m+=2)+t-2,l=findNextFileMarker(r,a,m);if(l&&l.invalid){(0,i.warn)("readDataBlock - incorrect length, current marker is: "+l.invalid);a=l.offset}var c=r.subarray(m,a);m+=c.length;return c}function prepareComponents(t){for(var r=Math.ceil(t.samplesPerLine/8/t.maxH),a=Math.ceil(t.scanLines/8/t.maxV),i=0;i<t.components.length;i++){X=t.components[i];var o=Math.ceil(Math.ceil(t.samplesPerLine/8)*X.h/t.maxH),l=Math.ceil(Math.ceil(t.scanLines/8)*X.v/t.maxV),c=r*X.h,u=64*(a*X.v)*(c+1);X.blockData=new Int16Array(u);X.blocksPerLine=o;X.blocksPerColumn=l}t.mcusPerLine=r;t.mcusPerColumn=a}var p,g,m=0,y=null,b=null,v=0,S=[],k=[],w=[],C=(0,o.readUint16)(r,m);m+=2;if(65496!==C)throw new l("SOI not found");C=(0,o.readUint16)(r,m);m+=2;e:for(;65497!==C;){var _,x,A;switch(C){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var T=readDataBlock();65504===C&&74===T[0]&&70===T[1]&&73===T[2]&&70===T[3]&&0===T[4]&&(y={version:{major:T[5],minor:T[6]},densityUnits:T[7],xDensity:T[8]<<8|T[9],yDensity:T[10]<<8|T[11],thumbWidth:T[12],thumbHeight:T[13],thumbData:T.subarray(14,14+3*T[12]*T[13])});65518===C&&65===T[0]&&100===T[1]&&111===T[2]&&98===T[3]&&101===T[4]&&(b={version:T[5]<<8|T[6],flags0:T[7]<<8|T[8],flags1:T[9]<<8|T[10],transformCode:T[11]});break;case 65499:for(var P=(0,o.readUint16)(r,m),R=P+(m+=2)-2;m<R;){var I=r[m++],O=new Uint16Array(64);if(I>>4==0)for(x=0;x<64;x++)O[t[x]]=r[m++];else{if(I>>4!=1)throw new l("DQT - invalid table spec");for(x=0;x<64;x++){O[t[x]]=(0,o.readUint16)(r,m);m+=2}}S[15&I]=O}break;case 65472:case 65473:case 65474:if(p)throw new l("Only single frame JPEGs supported");m+=2;(p={}).extended=65473===C;p.progressive=65474===C;p.precision=r[m++];var E=(0,o.readUint16)(r,m);m+=2;p.scanLines=d||E;p.samplesPerLine=(0,o.readUint16)(r,m);m+=2;p.components=[];p.componentIds={};var D,B=r[m++],M=0,L=0;for(_=0;_<B;_++){D=r[m];var N=r[m+1]>>4,j=15&r[m+1];M<N&&(M=N);L<j&&(L=j);var U=r[m+2];A=p.components.push({h:N,v:j,quantizationId:U,quantizationTable:null});p.componentIds[D]=A-1;m+=3}p.maxH=M;p.maxV=L;prepareComponents(p);break;case 65476:var q=(0,o.readUint16)(r,m);m+=2;for(_=2;_<q;){var W=r[m++],z=new Uint8Array(16),G=0;for(x=0;x<16;x++,m++)G+=z[x]=r[m];var H=new Uint8Array(G);for(x=0;x<G;x++,m++)H[x]=r[m];_+=17+G;(W>>4==0?w:k)[15&W]=buildHuffmanTable(z,H)}break;case 65501:m+=2;g=(0,o.readUint16)(r,m);m+=2;break;case 65498:var V=1==++v&&!d;m+=2;var X,Y=r[m++],K=[];for(_=0;_<Y;_++){var J=r[m++],Q=p.componentIds[J];(X=p.components[Q]).index=J;var Z=r[m++];X.huffmanTableDC=w[Z>>4];X.huffmanTableAC=k[15&Z];K.push(X)}var $=r[m++],ee=r[m++],te=r[m++];try{var re=decodeScan(r,m,p,K,g,$,ee,te>>4,15&te,V);m+=re}catch(t){if(t instanceof c){(0,i.warn)("".concat(t.message," -- attempting to re-parse the JPEG image."));return this.parse(r,{dnlScanLines:t.scanLines})}if(t instanceof u){(0,i.warn)("".concat(t.message," -- ignoring the rest of the image data."));break e}throw t}break;case 65500:m+=4;break;case 65535:255!==r[m]&&m--;break;default:var ae=findNextFileMarker(r,m-2,m-3);if(ae&&ae.invalid){(0,i.warn)("JpegImage.parse - unexpected data, current marker is: "+ae.invalid);m=ae.offset;break}if(!ae||m>=r.length-1){(0,i.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new l("JpegImage.parse - unknown marker: "+C.toString(16))}C=(0,o.readUint16)(r,m);m+=2}this.width=p.samplesPerLine;this.height=p.scanLines;this.jfif=y;this.adobe=b;this.components=[];for(_=0;_<p.components.length;_++){var ne=S[(X=p.components[_]).quantizationId];ne&&(X.quantizationTable=ne);this.components.push({index:X.index,output:buildComponentData(0,X),scaleX:X.h/p.maxH,scaleY:X.v/p.maxV,blocksPerLine:X.blocksPerLine,blocksPerColumn:X.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function _getLinearizedBlockData(t,r){var a,i,o,l,c,u,h,d,p,g,m,y,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=this.width/t,S=this.height/r,k=0,w=this.components.length,C=t*r*w,_=new Uint8ClampedArray(C),x=new Uint32Array(t),A=4294967288;for(h=0;h<w;h++){i=(a=this.components[h]).scaleX*v;o=a.scaleY*S;k=h;m=a.output;l=a.blocksPerLine+1<<3;if(i!==y){for(c=0;c<t;c++){d=0|c*i;x[c]=(d&A)<<3|7&d}y=i}for(u=0;u<r;u++){g=l*((d=0|u*o)&A)|(7&d)<<3;for(c=0;c<t;c++){_[k]=m[g+x[c]];k+=w}}}var T=this._decodeTransform;b||4!==w||T||(T=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(T)for(h=0;h<C;)for(d=0,p=0;d<w;d++,h++,p+=2)_[h]=(_[h]*T[p]>>8)+T[p+1];return _},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 convertYccToRgb(t){for(var r,a,i,o=0,l=t.length;o<l;o+=3){r=t[o];a=t[o+1];i=t[o+2];t[o]=r-179.456+1.402*i;t[o+1]=r+135.459-.344*a-.714*i;t[o+2]=r-226.816+1.772*a}return t},_convertYcckToRgb:function convertYcckToRgb(t){for(var r,a,i,o,l=0,c=0,u=t.length;c<u;c+=4){r=t[c];a=t[c+1];i=t[c+2];o=t[c+3];t[l++]=a*(-660635669420364e-19*a+.000437130475926232*i-54080610064599e-18*r+.00048449797120281*o-.154362151871126)-122.67195406894+i*(-.000957964378445773*i+.000817076911346625*r-.00477271405408747*o+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776);t[l++]=107.268039397724+a*(219927104525741e-19*a-.000640992018297945*i+.000659397001245577*r+.000426105652938837*o-.176491792462875)+i*(-.000778269941513683*i+.00130872261408275*r+.000770482631801132*o-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665);t[l++]=a*(-.000570115196973677*a-263409051004589e-19*i+.0020741088115012*r-.00288260236853442*o+.814272968359295)-20.810012546947+i*(-153496057440975e-19*i-.000132689043961446*r+.000560833691242812*o-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407)}return t.subarray(0,l)},_convertYcckToCmyk:function convertYcckToCmyk(t){for(var r,a,i,o=0,l=t.length;o<l;o+=4){r=t[o];a=t[o+1];i=t[o+2];t[o]=434.456-r-1.402*i;t[o+1]=119.541-r+.344*a+.714*i;t[o+2]=481.816-r-1.772*a}return t},_convertCmykToRgb:function convertCmykToRgb(t){for(var r,a,i,o,l=0,c=0,u=t.length;c<u;c+=4){r=t[c];a=t[c+1];i=t[c+2];o=t[c+3];t[l++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*a+.0002894718188643294*i+.003264231057537806*o-1.1185611867203937)+a*(26374107616089405e-21*a-8626949158638572e-20*i-.0002748769067499491*o-.02155688794978967)+i*(-3878099212869363e-20*i-.0003267808279485286*o+.0686742238595345)-o*(.0003361971776183937*o+.7430659151342254);t[l++]=255+r*(.00013596372813588848*r+.000924537132573585*a+.00010567359618683593*i+.0004791864687436512*o-.3109689587515875)+a*(-.00023545346108370344*a+.0002702845253534714*i+.0020200308977307156*o-.7488052167015494)+i*(6834815998235662e-20*i+.00015168452363460973*o-.09751927774728933)-o*(.0003189131175883281*o+.7364883807733168);t[l++]=255+r*(13598650411385307e-21*r+.00012423956175490851*a+.0004751985097583589*i-36729317476630422e-22*o-.05562186980264034)+a*(.00016141380598724676*a+.0009692239130725186*i+.0007782692450036253*o-.44015232367526463)+i*(5.068882914068769e-7*i+.0017778369011375071*o-.7591454649749609)-o*(.0003435319965105553*o+.7063770186160144)}return t.subarray(0,l)},getData:function getData(t){var r=t.width,a=t.height,i=t.forceRGB,o=void 0!==i&&i,c=t.isSourcePDF,u=void 0!==c&&c;if(this.numComponents>4)throw new l("Unsupported color mode");var h=this._getLinearizedBlockData(r,a,u);if(1===this.numComponents&&o){for(var d=h.length,p=new Uint8ClampedArray(3*d),g=0,m=0;m<d;m++){var y=h[m];p[g++]=y;p[g++]=y;p[g++]=y}return p}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(h);if(4===this.numComponents){if(this._isColorConversionNeeded)return o?this._convertYcckToRgb(h):this._convertYcckToCmyk(h);if(o)return this._convertCmykToRgb(h)}return h}};return JpegImage}();r.JpegImage=h},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpxStream=void 0;var i=a(142),o=a(151),l=a(4),c=function JpxStreamClosure(){function JpxStream(t,r,a,o){this.stream=t;this.maybeLength=r;this.dict=a;this.params=o;i.DecodeStream.call(this,r)}JpxStream.prototype=Object.create(i.DecodeStream.prototype);Object.defineProperty(JpxStream.prototype,"bytes",{get:function JpxStream_bytes(){return(0,l.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});JpxStream.prototype.ensureBuffer=function(t){};JpxStream.prototype.readBlock=function(){if(!this.eof){var t=new o.JpxImage;t.parse(this.bytes);var r=t.width,a=t.height,i=t.componentsCount,l=t.tiles.length;if(1===l)this.buffer=t.tiles[0].items;else{for(var c=new Uint8ClampedArray(r*a*i),u=0;u<l;u++)for(var h=t.tiles[u],d=h.width,p=h.height,g=h.left,m=h.top,y=h.items,b=0,v=(r*m+g)*i,S=r*i,k=d*i,w=0;w<p;w++){var C=y.subarray(b,b+k);c.set(C,v);b+=k;v+=S}this.buffer=c}this.bufferLength=this.buffer.length;this.eof=!0}};return JpxStream}();r.JpxStream=c},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.JpxImage=void 0;var i=a(4),o=a(138),l=a(147);function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(JpxError,t);var r=_createSuper(JpxError);function JpxError(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpxError);return r.call(this,"JPX error: ".concat(t))}return JpxError}(i.BaseException),u=function JpxImageClosure(){var t={LL:0,LH:1,HL:1,HH:2};function JpxImage(){this.failOnCorruptedImage=!1}JpxImage.prototype={parse:function JpxImage_parse(t){if(65359!==(0,o.readUint16)(t,0))for(var r=0,a=t.length;r<a;){var l=8,u=(0,o.readUint32)(t,r),h=(0,o.readUint32)(t,r+4);r+=l;if(1===u){u=4294967296*(0,o.readUint32)(t,r)+(0,o.readUint32)(t,r+4);r+=8;l+=8}0===u&&(u=a-r+l);if(u<l)throw new c("Invalid box field size");var d=u-l,p=!0;switch(h){case 1785737832:p=!1;break;case 1668246642:var g=t[r];if(1===g){var m=(0,o.readUint32)(t,r+3);switch(m){case 16:case 17:case 18:break;default:(0,i.warn)("Unknown colorspace "+m)}}else 2===g&&(0,i.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(t,r,r+d);break;case 1783636e3:218793738!==(0,o.readUint32)(t,r)&&(0,i.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var y=String.fromCharCode(h>>24&255,h>>16&255,h>>8&255,255&h);(0,i.warn)("Unsupported header type "+h+" ("+y+")")}p&&(r+=d)}else this.parseCodestream(t,0,t.length)},parseImageProperties:function JpxImage_parseImageProperties(t){for(var r=t.getByte();r>=0;){if(65361===(r<<8|(r=t.getByte()))){t.skip(4);var a=t.getInt32()>>>0,i=t.getInt32()>>>0,o=t.getInt32()>>>0,l=t.getInt32()>>>0;t.skip(16);var u=t.getUint16();this.width=a-o;this.height=i-l;this.componentsCount=u;this.bitsPerComponent=8;return}}throw new c("No size marker found in JPX stream")},parseCodestream:function JpxImage_parseCodestream(t,r,a){var l={},u=!1;try{for(var h=r;h+1<a;){var d=(0,o.readUint16)(t,h);h+=2;var p,g,m,y,b,v,S=0;switch(d){case 65359:l.mainHeader=!0;break;case 65497:break;case 65361:S=(0,o.readUint16)(t,h);var k={};k.Xsiz=(0,o.readUint32)(t,h+4);k.Ysiz=(0,o.readUint32)(t,h+8);k.XOsiz=(0,o.readUint32)(t,h+12);k.YOsiz=(0,o.readUint32)(t,h+16);k.XTsiz=(0,o.readUint32)(t,h+20);k.YTsiz=(0,o.readUint32)(t,h+24);k.XTOsiz=(0,o.readUint32)(t,h+28);k.YTOsiz=(0,o.readUint32)(t,h+32);var w=(0,o.readUint16)(t,h+36);k.Csiz=w;var C=[];p=h+38;for(var _=0;_<w;_++){var x={precision:1+(127&t[p]),isSigned:!!(128&t[p]),XRsiz:t[p+1],YRsiz:t[p+2]};p+=3;calculateComponentDimensions(x,k);C.push(x)}l.SIZ=k;l.components=C;calculateTileGrids(l,C);l.QCC=[];l.COC=[];break;case 65372:S=(0,o.readUint16)(t,h);var A={};p=h+2;switch(31&(g=t[p++])){case 0:y=8;b=!0;break;case 1:y=16;b=!1;break;case 2:y=16;b=!0;break;default:throw new Error("Invalid SQcd value "+g)}A.noQuantization=8===y;A.scalarExpounded=b;A.guardBits=g>>5;m=[];for(;p<S+h;){var T={};if(8===y){T.epsilon=t[p++]>>3;T.mu=0}else{T.epsilon=t[p]>>3;T.mu=(7&t[p])<<8|t[p+1];p+=2}m.push(T)}A.SPqcds=m;if(l.mainHeader)l.QCD=A;else{l.currentTile.QCD=A;l.currentTile.QCC=[]}break;case 65373:S=(0,o.readUint16)(t,h);var P,R={};p=h+2;if(l.SIZ.Csiz<257)P=t[p++];else{P=(0,o.readUint16)(t,p);p+=2}switch(31&(g=t[p++])){case 0:y=8;b=!0;break;case 1:y=16;b=!1;break;case 2:y=16;b=!0;break;default:throw new Error("Invalid SQcd value "+g)}R.noQuantization=8===y;R.scalarExpounded=b;R.guardBits=g>>5;m=[];for(;p<S+h;){T={};if(8===y){T.epsilon=t[p++]>>3;T.mu=0}else{T.epsilon=t[p]>>3;T.mu=(7&t[p])<<8|t[p+1];p+=2}m.push(T)}R.SPqcds=m;l.mainHeader?l.QCC[P]=R:l.currentTile.QCC[P]=R;break;case 65362:S=(0,o.readUint16)(t,h);var I={};p=h+2;var O=t[p++];I.entropyCoderWithCustomPrecincts=!!(1&O);I.sopMarkerUsed=!!(2&O);I.ephMarkerUsed=!!(4&O);I.progressionOrder=t[p++];I.layersCount=(0,o.readUint16)(t,p);p+=2;I.multipleComponentTransform=t[p++];I.decompositionLevelsCount=t[p++];I.xcb=2+(15&t[p++]);I.ycb=2+(15&t[p++]);var E=t[p++];I.selectiveArithmeticCodingBypass=!!(1&E);I.resetContextProbabilities=!!(2&E);I.terminationOnEachCodingPass=!!(4&E);I.verticallyStripe=!!(8&E);I.predictableTermination=!!(16&E);I.segmentationSymbolUsed=!!(32&E);I.reversibleTransformation=t[p++];if(I.entropyCoderWithCustomPrecincts){for(var D=[];p<S+h;){var B=t[p++];D.push({PPx:15&B,PPy:B>>4})}I.precinctsSizes=D}var M=[];I.selectiveArithmeticCodingBypass&&M.push("selectiveArithmeticCodingBypass");I.resetContextProbabilities&&M.push("resetContextProbabilities");I.terminationOnEachCodingPass&&M.push("terminationOnEachCodingPass");I.verticallyStripe&&M.push("verticallyStripe");I.predictableTermination&&M.push("predictableTermination");if(M.length>0){u=!0;(0,i.warn)("JPX: Unsupported COD options (".concat(M.join(", "),")."))}if(l.mainHeader)l.COD=I;else{l.currentTile.COD=I;l.currentTile.COC=[]}break;case 65424:S=(0,o.readUint16)(t,h);(v={}).index=(0,o.readUint16)(t,h+2);v.length=(0,o.readUint32)(t,h+4);v.dataEnd=v.length+h-2;v.partIndex=t[h+8];v.partsCount=t[h+9];l.mainHeader=!1;if(0===v.partIndex){v.COD=l.COD;v.COC=l.COC.slice(0);v.QCD=l.QCD;v.QCC=l.QCC.slice(0)}l.currentTile=v;break;case 65427:if(0===(v=l.currentTile).partIndex){initializeTile(l,v.index);buildPackets(l)}parseTilePackets(l,t,h,S=v.dataEnd-h);break;case 65363:(0,i.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:S=(0,o.readUint16)(t,h);break;default:throw new Error("Unknown codestream code: "+d.toString(16))}h+=S}}catch(t){if(u||this.failOnCorruptedImage)throw new c(t.message);(0,i.warn)('JPX: Trying to recover from: "'.concat(t.message,'".'))}this.tiles=function transformComponents(t){for(var r=t.SIZ,a=t.components,i=r.Csiz,o=[],l=0,c=t.tiles.length;l<c;l++){var u,h=t.tiles[l],d=[];for(u=0;u<i;u++)d[u]=transformTile(t,h,u);var p,g,m,y,b,v,S,k=d[0],w=new Uint8ClampedArray(k.items.length*i),C={left:k.left,top:k.top,width:k.width,height:k.height,items:w},_=0;if(h.codingStyleDefaultParameters.multipleComponentTransform){var x=4===i,A=d[0].items,T=d[1].items,P=d[2].items,R=x?d[3].items:null;g=.5+(128<<(p=a[0].precision-8));var I=h.components[0],O=i-3;y=A.length;if(I.codingStyleParameters.reversibleTransformation)for(m=0;m<y;m++,_+=O){b=A[m]+g;v=T[m];var E=b-((S=P[m])+v>>2);w[_++]=E+S>>p;w[_++]=E>>p;w[_++]=E+v>>p}else for(m=0;m<y;m++,_+=O){b=A[m]+g;v=T[m];S=P[m];w[_++]=b+1.402*S>>p;w[_++]=b-.34413*v-.71414*S>>p;w[_++]=b+1.772*v>>p}if(x)for(m=0,_=3;m<y;m++,_+=4)w[_]=R[m]+g>>p}else for(u=0;u<i;u++){var D=d[u].items;g=.5+(128<<(p=a[u].precision-8));for(_=u,m=0,y=D.length;m<y;m++){w[_]=D[m]+g>>p;_+=i}}o.push(C)}return o}(l);this.width=l.SIZ.Xsiz-l.SIZ.XOsiz;this.height=l.SIZ.Ysiz-l.SIZ.YOsiz;this.componentsCount=l.SIZ.Csiz}};function calculateComponentDimensions(t,r){t.x0=Math.ceil(r.XOsiz/t.XRsiz);t.x1=Math.ceil(r.Xsiz/t.XRsiz);t.y0=Math.ceil(r.YOsiz/t.YRsiz);t.y1=Math.ceil(r.Ysiz/t.YRsiz);t.width=t.x1-t.x0;t.height=t.y1-t.y0}function calculateTileGrids(t,r){for(var a,i=t.SIZ,o=[],l=Math.ceil((i.Xsiz-i.XTOsiz)/i.XTsiz),c=Math.ceil((i.Ysiz-i.YTOsiz)/i.YTsiz),u=0;u<c;u++)for(var h=0;h<l;h++){(a={}).tx0=Math.max(i.XTOsiz+h*i.XTsiz,i.XOsiz);a.ty0=Math.max(i.YTOsiz+u*i.YTsiz,i.YOsiz);a.tx1=Math.min(i.XTOsiz+(h+1)*i.XTsiz,i.Xsiz);a.ty1=Math.min(i.YTOsiz+(u+1)*i.YTsiz,i.Ysiz);a.width=a.tx1-a.tx0;a.height=a.ty1-a.ty0;a.components=[];o.push(a)}t.tiles=o;for(var d=0,p=i.Csiz;d<p;d++)for(var g=r[d],m=0,y=o.length;m<y;m++){var b={};a=o[m];b.tcx0=Math.ceil(a.tx0/g.XRsiz);b.tcy0=Math.ceil(a.ty0/g.YRsiz);b.tcx1=Math.ceil(a.tx1/g.XRsiz);b.tcy1=Math.ceil(a.ty1/g.YRsiz);b.width=b.tcx1-b.tcx0;b.height=b.tcy1-b.tcy0;a.components[d]=b}}function getBlocksDimensions(t,r,a){var i=r.codingStyleParameters,o={};if(i.entropyCoderWithCustomPrecincts){o.PPx=i.precinctsSizes[a].PPx;o.PPy=i.precinctsSizes[a].PPy}else{o.PPx=15;o.PPy=15}o.xcb_=a>0?Math.min(i.xcb,o.PPx-1):Math.min(i.xcb,o.PPx);o.ycb_=a>0?Math.min(i.ycb,o.PPy-1):Math.min(i.ycb,o.PPy);return o}function buildPrecincts(t,r,a){var i=1<<a.PPx,o=1<<a.PPy,l=0===r.resLevel,c=1<<a.PPx+(l?0:-1),u=1<<a.PPy+(l?0:-1),h=r.trx1>r.trx0?Math.ceil(r.trx1/i)-Math.floor(r.trx0/i):0,d=r.try1>r.try0?Math.ceil(r.try1/o)-Math.floor(r.try0/o):0,p=h*d;r.precinctParameters={precinctWidth:i,precinctHeight:o,numprecinctswide:h,numprecinctshigh:d,numprecincts:p,precinctWidthInSubband:c,precinctHeightInSubband:u}}function buildCodeblocks(t,r,a){var i,o,l,c,u=a.xcb_,h=a.ycb_,d=1<<u,p=1<<h,g=r.tbx0>>u,m=r.tby0>>h,y=r.tbx1+d-1>>u,b=r.tby1+p-1>>h,v=r.resolution.precinctParameters,S=[],k=[];for(o=m;o<b;o++)for(i=g;i<y;i++){(l={cbx:i,cby:o,tbx0:d*i,tby0:p*o,tbx1:d*(i+1),tby1:p*(o+1)}).tbx0_=Math.max(r.tbx0,l.tbx0);l.tby0_=Math.max(r.tby0,l.tby0);l.tbx1_=Math.min(r.tbx1,l.tbx1);l.tby1_=Math.min(r.tby1,l.tby1);c=Math.floor((l.tbx0_-r.tbx0)/v.precinctWidthInSubband)+Math.floor((l.tby0_-r.tby0)/v.precinctHeightInSubband)*v.numprecinctswide;l.precinctNumber=c;l.subbandType=r.type;l.Lblock=3;if(!(l.tbx1_<=l.tbx0_||l.tby1_<=l.tby0_)){S.push(l);var w=k[c];if(void 0!==w){i<w.cbxMin?w.cbxMin=i:i>w.cbxMax&&(w.cbxMax=i);o<w.cbyMin?w.cbxMin=o:o>w.cbyMax&&(w.cbyMax=o)}else k[c]=w={cbxMin:i,cbyMin:o,cbxMax:i,cbyMax:o};l.precinct=w}}r.codeblockParameters={codeblockWidth:u,codeblockHeight:h,numcodeblockwide:y-g+1,numcodeblockhigh:b-m+1};r.codeblocks=S;r.precincts=k}function createPacket(t,r,a){for(var i=[],o=t.subbands,l=0,c=o.length;l<c;l++)for(var u=o[l].codeblocks,h=0,d=u.length;h<d;h++){var p=u[h];p.precinctNumber===r&&i.push(p)}return{layerNumber:a,codeblocks:i}}function LayerResolutionComponentPositionIterator(t){for(var r=t.SIZ,a=t.currentTile.index,i=t.tiles[a],o=i.codingStyleDefaultParameters.layersCount,l=r.Csiz,u=0,h=0;h<l;h++)u=Math.max(u,i.components[h].codingStyleParameters.decompositionLevelsCount);var d=0,p=0,g=0,m=0;this.nextPacket=function JpxImage_nextPacket(){for(;d<o;d++){for(;p<=u;p++){for(;g<l;g++){var t=i.components[g];if(!(p>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[p],a=r.precinctParameters.numprecincts;m<a;){var h=createPacket(r,m,d);m++;return h}m=0}}g=0}p=0}throw new c("Out of packets")}}function ResolutionLayerComponentPositionIterator(t){for(var r=t.SIZ,a=t.currentTile.index,i=t.tiles[a],o=i.codingStyleDefaultParameters.layersCount,l=r.Csiz,u=0,h=0;h<l;h++)u=Math.max(u,i.components[h].codingStyleParameters.decompositionLevelsCount);var d=0,p=0,g=0,m=0;this.nextPacket=function JpxImage_nextPacket(){for(;d<=u;d++){for(;p<o;p++){for(;g<l;g++){var t=i.components[g];if(!(d>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[d],a=r.precinctParameters.numprecincts;m<a;){var h=createPacket(r,m,p);m++;return h}m=0}}g=0}p=0}throw new c("Out of packets")}}function ResolutionPositionComponentLayerIterator(t){var r,a,i,o,l=t.SIZ,u=t.currentTile.index,h=t.tiles[u],d=h.codingStyleDefaultParameters.layersCount,p=l.Csiz,g=0;for(i=0;i<p;i++){var m=h.components[i];g=Math.max(g,m.codingStyleParameters.decompositionLevelsCount)}var y=new Int32Array(g+1);for(a=0;a<=g;++a){var b=0;for(i=0;i<p;++i){var v=h.components[i].resolutions;a<v.length&&(b=Math.max(b,v[a].precinctParameters.numprecincts))}y[a]=b}r=0;a=0;i=0;o=0;this.nextPacket=function JpxImage_nextPacket(){for(;a<=g;a++){for(;o<y[a];o++){for(;i<p;i++){var t=h.components[i];if(!(a>t.codingStyleParameters.decompositionLevelsCount)){var l=t.resolutions[a],u=l.precinctParameters.numprecincts;if(!(o>=u)){for(;r<d;){var m=createPacket(l,o,r);r++;return m}r=0}}}i=0}o=0}throw new c("Out of packets")}}function PositionComponentResolutionLayerIterator(t){var r=t.SIZ,a=t.currentTile.index,i=t.tiles[a],o=i.codingStyleDefaultParameters.layersCount,l=r.Csiz,u=getPrecinctSizesInImageScale(i),h=u,d=0,p=0,g=0,m=0,y=0;this.nextPacket=function JpxImage_nextPacket(){for(;y<h.maxNumHigh;y++){for(;m<h.maxNumWide;m++){for(;g<l;g++){for(var t=i.components[g],r=t.codingStyleParameters.decompositionLevelsCount;p<=r;p++){var a=t.resolutions[p],b=u.components[g].resolutions[p],v=getPrecinctIndexIfExist(m,y,b,h,a);if(null!==v){for(;d<o;){var S=createPacket(a,v,d);d++;return S}d=0}}p=0}g=0}m=0}throw new c("Out of packets")}}function ComponentPositionResolutionLayerIterator(t){var r=t.SIZ,a=t.currentTile.index,i=t.tiles[a],o=i.codingStyleDefaultParameters.layersCount,l=r.Csiz,u=getPrecinctSizesInImageScale(i),h=0,d=0,p=0,g=0,m=0;this.nextPacket=function JpxImage_nextPacket(){for(;p<l;++p){for(var t=i.components[p],r=u.components[p],a=t.codingStyleParameters.decompositionLevelsCount;m<r.maxNumHigh;m++){for(;g<r.maxNumWide;g++){for(;d<=a;d++){var y=t.resolutions[d],b=r.resolutions[d],v=getPrecinctIndexIfExist(g,m,b,r,y);if(null!==v){for(;h<o;){var S=createPacket(y,v,h);h++;return S}h=0}}d=0}g=0}m=0}throw new c("Out of packets")}}function getPrecinctIndexIfExist(t,r,a,i,o){var l=t*i.minWidth,c=r*i.minHeight;if(l%a.width!=0||c%a.height!=0)return null;var u=c/a.width*o.precinctParameters.numprecinctswide;return l/a.height+u}function getPrecinctSizesInImageScale(t){for(var r=t.components.length,a=Number.MAX_VALUE,i=Number.MAX_VALUE,o=0,l=0,c=new Array(r),u=0;u<r;u++){for(var h=t.components[u],d=h.codingStyleParameters.decompositionLevelsCount,p=new Array(d+1),g=Number.MAX_VALUE,m=Number.MAX_VALUE,y=0,b=0,v=1,S=d;S>=0;--S){var k=h.resolutions[S],w=v*k.precinctParameters.precinctWidth,C=v*k.precinctParameters.precinctHeight;g=Math.min(g,w);m=Math.min(m,C);y=Math.max(y,k.precinctParameters.numprecinctswide);b=Math.max(b,k.precinctParameters.numprecinctshigh);p[S]={width:w,height:C};v<<=1}a=Math.min(a,g);i=Math.min(i,m);o=Math.max(o,y);l=Math.max(l,b);c[u]={resolutions:p,minWidth:g,minHeight:m,maxNumWide:y,maxNumHigh:b}}return{components:c,minWidth:a,minHeight:i,maxNumWide:o,maxNumHigh:l}}function buildPackets(t){for(var r=t.SIZ,a=t.currentTile.index,i=t.tiles[a],o=r.Csiz,l=0;l<o;l++){for(var u=i.components[l],h=u.codingStyleParameters.decompositionLevelsCount,d=[],p=[],g=0;g<=h;g++){var m,y=getBlocksDimensions(0,u,g),b={},v=1<<h-g;b.trx0=Math.ceil(u.tcx0/v);b.try0=Math.ceil(u.tcy0/v);b.trx1=Math.ceil(u.tcx1/v);b.try1=Math.ceil(u.tcy1/v);b.resLevel=g;buildPrecincts(0,b,y);d.push(b);if(0===g){(m={}).type="LL";m.tbx0=Math.ceil(u.tcx0/v);m.tby0=Math.ceil(u.tcy0/v);m.tbx1=Math.ceil(u.tcx1/v);m.tby1=Math.ceil(u.tcy1/v);m.resolution=b;buildCodeblocks(0,m,y);p.push(m);b.subbands=[m]}else{var S=1<<h-g+1,k=[];(m={}).type="HL";m.tbx0=Math.ceil(u.tcx0/S-.5);m.tby0=Math.ceil(u.tcy0/S);m.tbx1=Math.ceil(u.tcx1/S-.5);m.tby1=Math.ceil(u.tcy1/S);m.resolution=b;buildCodeblocks(0,m,y);p.push(m);k.push(m);(m={}).type="LH";m.tbx0=Math.ceil(u.tcx0/S);m.tby0=Math.ceil(u.tcy0/S-.5);m.tbx1=Math.ceil(u.tcx1/S);m.tby1=Math.ceil(u.tcy1/S-.5);m.resolution=b;buildCodeblocks(0,m,y);p.push(m);k.push(m);(m={}).type="HH";m.tbx0=Math.ceil(u.tcx0/S-.5);m.tby0=Math.ceil(u.tcy0/S-.5);m.tbx1=Math.ceil(u.tcx1/S-.5);m.tby1=Math.ceil(u.tcy1/S-.5);m.resolution=b;buildCodeblocks(0,m,y);p.push(m);k.push(m);b.subbands=k}}u.resolutions=d;u.subbands=p}var w=i.codingStyleDefaultParameters.progressionOrder;switch(w){case 0:i.packetsIterator=new LayerResolutionComponentPositionIterator(t);break;case 1:i.packetsIterator=new ResolutionLayerComponentPositionIterator(t);break;case 2:i.packetsIterator=new ResolutionPositionComponentLayerIterator(t);break;case 3:i.packetsIterator=new PositionComponentResolutionLayerIterator(t);break;case 4:i.packetsIterator=new ComponentPositionResolutionLayerIterator(t);break;default:throw new c("Unsupported progression order ".concat(w))}}function parseTilePackets(t,i,l,c){var u,h=0,d=0,p=!1;function readBits(t){for(;d<t;){var r=i[l+h];h++;if(p){u=u<<7|r;d+=7;p=!1}else{u=u<<8|r;d+=8}255===r&&(p=!0)}return u>>>(d-=t)&(1<<t)-1}function skipMarkerIfEqual(t){if(255===i[l+h-1]&&i[l+h]===t){skipBytes(1);return!0}if(255===i[l+h]&&i[l+h+1]===t){skipBytes(2);return!0}return!1}function skipBytes(t){h+=t}function alignToByte(){d=0;if(p){h++;p=!1}}function readCodingpasses(){if(0===readBits(1))return 1;if(0===readBits(1))return 2;var t=readBits(2);return t<3?t+3:(t=readBits(5))<31?t+6:(t=readBits(7))+37}for(var g=t.currentTile.index,m=t.tiles[g],y=t.COD.sopMarkerUsed,b=t.COD.ephMarkerUsed,v=m.packetsIterator;h<c;){alignToByte();y&&skipMarkerIfEqual(145)&&skipBytes(4);var S=v.nextPacket();if(readBits(1)){for(var k,w=S.layerNumber,C=[],_=0,x=S.codeblocks.length;_<x;_++){var A=(k=S.codeblocks[_]).precinct,T=k.cbx-A.cbxMin,P=k.cby-A.cbyMin,R=!1,I=!1;if(void 0!==k.included)R=!!readBits(1);else{var O,E;if(void 0!==(A=k.precinct).inclusionTree)O=A.inclusionTree;else{var D=A.cbxMax-A.cbxMin+1,B=A.cbyMax-A.cbyMin+1;O=new a(D,B,w);E=new r(D,B);A.inclusionTree=O;A.zeroBitPlanesTree=E}if(O.reset(T,P,w))for(;;){if(!readBits(1)){O.incrementValue(w);break}if(!O.nextLevel()){k.included=!0;R=I=!0;break}}}if(R){if(I){(E=A.zeroBitPlanesTree).reset(T,P);for(;;)if(readBits(1)){if(!E.nextLevel())break}else E.incrementValue();k.zeroBitPlanes=E.value}for(var M=readCodingpasses();readBits(1);)k.Lblock++;var L=(0,o.log2)(M),N=readBits((M<1<<L?L-1:L)+k.Lblock);C.push({codeblock:k,codingpasses:M,dataLength:N})}}alignToByte();b&&skipMarkerIfEqual(146);for(;C.length>0;){var j=C.shift();void 0===(k=j.codeblock).data&&(k.data=[]);k.data.push({data:i,start:l+h,end:l+h+j.dataLength,codingpasses:j.codingpasses});h+=j.dataLength}}}return h}function copyCoefficients(t,r,a,i,o,c,h,d){for(var p=i.tbx0,g=i.tby0,m=i.tbx1-i.tbx0,y=i.codeblocks,b="H"===i.type.charAt(0)?1:0,v="H"===i.type.charAt(1)?r:0,S=0,k=y.length;S<k;++S){var w=y[S],C=w.tbx1_-w.tbx0_,_=w.tby1_-w.tby0_;if(0!==C&&0!==_&&void 0!==w.data){var x,A;x=new u(C,_,w.subbandType,w.zeroBitPlanes,c);A=2;var T,P,R,I=w.data,O=0,E=0;for(T=0,P=I.length;T<P;T++){O+=(R=I[T]).end-R.start;E+=R.codingpasses}var D=new Uint8Array(O),B=0;for(T=0,P=I.length;T<P;T++){var M=(R=I[T]).data.subarray(R.start,R.end);D.set(M,B);B+=M.length}var L=new l.ArithmeticDecoder(D,0,O);x.setDecoder(L);for(T=0;T<E;T++){switch(A){case 0:x.runSignificancePropagationPass();break;case 1:x.runMagnitudeRefinementPass();break;case 2:x.runCleanupPass();d&&x.checkSegmentationSymbol()}A=(A+1)%3}var N,j,U,q=w.tbx0_-p+(w.tby0_-g)*m,W=x.coefficentsSign,z=x.coefficentsMagnitude,G=x.bitsDecoded,H=h?0:.5;B=0;var V="LL"!==i.type;for(T=0;T<_;T++){var X=2*(q/m|0)*(r-m)+b+v;for(N=0;N<C;N++){if(0!==(j=z[B])){j=(j+H)*o;0!==W[B]&&(j=-j);U=G[B];var Y=V?X+(q<<1):q;t[Y]=h&&U>=c?j:j*(1<<c-U)}q++;B++}q+=m-C}}}}function transformTile(r,a,i){for(var o=a.components[i],l=o.codingStyleParameters,c=o.quantizationParameters,u=l.decompositionLevelsCount,h=c.SPqcds,g=c.scalarExpounded,m=c.guardBits,y=l.segmentationSymbolUsed,b=r.components[i].precision,v=l.reversibleTransformation,S=v?new p:new d,k=[],w=0,C=0;C<=u;C++){for(var _=o.resolutions[C],x=_.trx1-_.trx0,A=_.try1-_.try0,T=new Float32Array(x*A),P=0,R=_.subbands.length;P<R;P++){var I,O;if(g){I=h[w].mu;O=h[w].epsilon;w++}else{I=h[0].mu;O=h[0].epsilon+(C>0?1-C:0)}var E=_.subbands[P],D=t[E.type];copyCoefficients(T,x,0,E,v?1:Math.pow(2,b+D-O)*(1+I/2048),m+O-1,v,y)}k.push({width:x,height:A,items:T})}var B=S.calculate(k,o.tcx0,o.tcy0);return{left:o.tcx0,top:o.tcy0,width:B.width,height:B.height,items:B.items}}function initializeTile(t,r){for(var a=t.SIZ.Csiz,i=t.tiles[r],o=0;o<a;o++){var l=i.components[o],c=void 0!==t.currentTile.QCC[o]?t.currentTile.QCC[o]:t.currentTile.QCD;l.quantizationParameters=c;var u=void 0!==t.currentTile.COC[o]?t.currentTile.COC[o]:t.currentTile.COD;l.codingStyleParameters=u}i.codingStyleDefaultParameters=t.currentTile.COD}var r=function TagTreeClosure(){function TagTree(t,r){var a=(0,o.log2)(Math.max(t,r))+1;this.levels=[];for(var i=0;i<a;i++){var l={width:t,height:r,items:[]};this.levels.push(l);t=Math.ceil(t/2);r=Math.ceil(r/2)}}TagTree.prototype={reset:function TagTree_reset(t,r){for(var a,i=0,o=0;i<this.levels.length;){var l=t+r*(a=this.levels[i]).width;if(void 0!==a.items[l]){o=a.items[l];break}a.index=l;t>>=1;r>>=1;i++}i--;(a=this.levels[i]).items[a.index]=o;this.currentLevel=i;delete this.value},incrementValue:function TagTree_incrementValue(){var t=this.levels[this.currentLevel];t.items[t.index]++},nextLevel:function TagTree_nextLevel(){var t=this.currentLevel,r=this.levels[t],a=r.items[r.index];if(--t<0){this.value=a;return!1}this.currentLevel=t;(r=this.levels[t]).items[r.index]=a;return!0}};return TagTree}(),a=function InclusionTreeClosure(){function InclusionTree(t,r,a){var i=(0,o.log2)(Math.max(t,r))+1;this.levels=[];for(var l=0;l<i;l++){for(var c=new Uint8Array(t*r),u=0,h=c.length;u<h;u++)c[u]=a;var d={width:t,height:r,items:c};this.levels.push(d);t=Math.ceil(t/2);r=Math.ceil(r/2)}}InclusionTree.prototype={reset:function InclusionTree_reset(t,r,a){for(var i=0;i<this.levels.length;){var o=this.levels[i],l=t+r*o.width;o.index=l;var c=o.items[l];if(255===c)break;if(c>a){this.currentLevel=i;this.propagateValues();return!1}t>>=1;r>>=1;i++}this.currentLevel=i-1;return!0},incrementValue:function InclusionTree_incrementValue(t){var r=this.levels[this.currentLevel];r.items[r.index]=t+1;this.propagateValues()},propagateValues:function InclusionTree_propagateValues(){for(var t=this.currentLevel,r=this.levels[t],a=r.items[r.index];--t>=0;)(r=this.levels[t]).items[r.index]=a},nextLevel:function InclusionTree_nextLevel(){var t=this.currentLevel,r=this.levels[t],a=r.items[r.index];r.items[r.index]=255;if(--t<0)return!1;this.currentLevel=t;(r=this.levels[t]).items[r.index]=a;return!0}};return InclusionTree}(),u=function BitModelClosure(){var t=17,r=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),a=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),i=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function BitModel(t,o,l,c,u){this.width=t;this.height=o;var h;h="HH"===l?i:"HL"===l?a:r;this.contextLabelTable=h;var d,p=t*o;this.neighborsSignificance=new Uint8Array(p);this.coefficentsSign=new Uint8Array(p);d=u>14?new Uint32Array(p):u>6?new Uint16Array(p):new Uint8Array(p);this.coefficentsMagnitude=d;this.processingFlags=new Uint8Array(p);var g=new Uint8Array(p);if(0!==c)for(var m=0;m<p;m++)g[m]=c;this.bitsDecoded=g;this.reset()}BitModel.prototype={setDecoder:function BitModel_setDecoder(t){this.decoder=t},reset:function BitModel_reset(){this.contexts=new Int8Array(19);this.contexts[0]=8;this.contexts[17]=92;this.contexts[18]=6},setNeighborsSignificance:function BitModel_setNeighborsSignificance(t,r,a){var i,o=this.neighborsSignificance,l=this.width,c=this.height,u=r>0,h=r+1<l;if(t>0){i=a-l;u&&(o[i-1]+=16);h&&(o[i+1]+=16);o[i]+=4}if(t+1<c){i=a+l;u&&(o[i-1]+=16);h&&(o[i+1]+=16);o[i]+=4}u&&(o[a-1]+=1);h&&(o[a+1]+=1);o[a]|=128},runSignificancePropagationPass:function BitModel_runSignificancePropagationPass(){for(var t=this.decoder,r=this.width,a=this.height,i=this.coefficentsMagnitude,o=this.coefficentsSign,l=this.neighborsSignificance,c=this.processingFlags,u=this.contexts,h=this.contextLabelTable,d=this.bitsDecoded,p=0;p<a;p+=4)for(var g=0;g<r;g++)for(var m=p*r+g,y=0;y<4;y++,m+=r){var b=p+y;if(b>=a)break;c[m]&=-2;if(!i[m]&&l[m]){var v=h[l[m]];if(t.readBit(u,v)){var S=this.decodeSignBit(b,g,m);o[m]=S;i[m]=1;this.setNeighborsSignificance(b,g,m);c[m]|=2}d[m]++;c[m]|=1}}},decodeSignBit:function BitModel_decodeSignBit(t,r,a){var i,o,l,c,u,h,d=this.width,p=this.height,g=this.coefficentsMagnitude,m=this.coefficentsSign;c=r>0&&0!==g[a-1];if(r+1<d&&0!==g[a+1]){l=m[a+1];i=c?1-l-(o=m[a-1]):1-l-l}else i=c?1-(o=m[a-1])-o:0;var y=3*i;c=t>0&&0!==g[a-d];if(t+1<p&&0!==g[a+d]){l=m[a+d];i=c?1-l-(o=m[a-d])+y:1-l-l+y}else i=c?1-(o=m[a-d])-o+y:y;if(i>=0){u=9+i;h=this.decoder.readBit(this.contexts,u)}else{u=9-i;h=1^this.decoder.readBit(this.contexts,u)}return h},runMagnitudeRefinementPass:function BitModel_runMagnitudeRefinementPass(){for(var t,r=this.decoder,a=this.width,i=this.height,o=this.coefficentsMagnitude,l=this.neighborsSignificance,c=this.contexts,u=this.bitsDecoded,h=this.processingFlags,d=a*i,p=4*a,g=0;g<d;g=t){t=Math.min(d,g+p);for(var m=0;m<a;m++)for(var y=g+m;y<t;y+=a)if(o[y]&&0==(1&h[y])){var b=16;if(0!=(2&h[y])){h[y]^=2;b=0===(127&l[y])?15:14}var v=r.readBit(c,b);o[y]=o[y]<<1|v;u[y]++;h[y]|=1}}},runCleanupPass:function BitModel_runCleanupPass(){for(var r,a=this.decoder,i=this.width,o=this.height,l=this.neighborsSignificance,c=this.coefficentsMagnitude,u=this.coefficentsSign,h=this.contexts,d=this.contextLabelTable,p=this.bitsDecoded,g=this.processingFlags,m=i,y=2*i,b=3*i,v=0;v<o;v=r){r=Math.min(v+4,o);for(var S=v*i,k=v+3<o,w=0;w<i;w++){var C,_=S+w,x=0,A=_,T=v;if(k&&0===g[_]&&0===g[_+m]&&0===g[_+y]&&0===g[_+b]&&0===l[_]&&0===l[_+m]&&0===l[_+y]&&0===l[_+b]){if(!a.readBit(h,18)){p[_]++;p[_+m]++;p[_+y]++;p[_+b]++;continue}if(0!==(x=a.readBit(h,t)<<1|a.readBit(h,t))){T=v+x;A+=x*i}C=this.decodeSignBit(T,w,A);u[A]=C;c[A]=1;this.setNeighborsSignificance(T,w,A);g[A]|=2;A=_;for(var P=v;P<=T;P++,A+=i)p[A]++;x++}for(T=v+x;T<r;T++,A+=i)if(!c[A]&&0==(1&g[A])){var R=d[l[A]];if(1===a.readBit(h,R)){C=this.decodeSignBit(T,w,A);u[A]=C;c[A]=1;this.setNeighborsSignificance(T,w,A);g[A]|=2}p[A]++}}}},checkSegmentationSymbol:function BitModel_checkSegmentationSymbol(){var r=this.decoder,a=this.contexts;if(10!==(r.readBit(a,t)<<3|r.readBit(a,t)<<2|r.readBit(a,t)<<1|r.readBit(a,t)))throw new c("Invalid segmentation symbol")}};return BitModel}(),h=function TransformClosure(){function Transform(){}Transform.prototype.calculate=function transformCalculate(t,r,a){for(var i=t[0],o=1,l=t.length;o<l;o++)i=this.iterate(i,t[o],r,a);return i};Transform.prototype.extend=function extend(t,r,a){var i=r-1,o=r+1,l=r+a-2,c=r+a;t[i--]=t[o++];t[c++]=t[l--];t[i--]=t[o++];t[c++]=t[l--];t[i--]=t[o++];t[c++]=t[l--];t[i]=t[o];t[c]=t[l]};Transform.prototype.iterate=function Transform_iterate(t,r,a,i){var o,l,c,u,h,d,p=t.width,g=t.height,m=t.items,y=r.width,b=r.height,v=r.items;for(c=0,o=0;o<g;o++){u=2*o*y;for(l=0;l<p;l++,c++,u+=2)v[u]=m[c]}m=t.items=null;var S=new Float32Array(y+8);if(1===y){if(0!=(1&a))for(d=0,c=0;d<b;d++,c+=y)v[c]*=.5}else for(d=0,c=0;d<b;d++,c+=y){S.set(v.subarray(c,c+y),4);this.extend(S,4,y);this.filter(S,4,y);v.set(S.subarray(4,4+y),c)}var k=16,w=[];for(o=0;o<k;o++)w.push(new Float32Array(b+8));var C,_=0;t=4+b;if(1===b){if(0!=(1&i))for(h=0;h<y;h++)v[h]*=.5}else for(h=0;h<y;h++){if(0===_){k=Math.min(y-h,k);for(c=h,u=4;u<t;c+=y,u++)for(C=0;C<k;C++)w[C][u]=v[c+C];_=k}var x=w[--_];this.extend(x,4,b);this.filter(x,4,b);if(0===_){c=h-k+1;for(u=4;u<t;c+=y,u++)for(C=0;C<k;C++)v[c+C]=w[C][u]}}return{width:y,height:b,items:v}};return Transform}(),d=function IrreversibleTransformClosure(){function IrreversibleTransform(){h.call(this)}IrreversibleTransform.prototype=Object.create(h.prototype);IrreversibleTransform.prototype.filter=function irreversibleTransformFilter(t,r,a){var i,o,l,c,u=a>>1,h=-1.586134342059924,d=-.052980118572961,p=.882911075530934,g=.443506852043971,m=1.230174104914001;i=(r|=0)-3;for(o=u+4;o--;i+=2)t[i]*=.8128930661159609;l=g*t[(i=r-2)-1];for(o=u+3;o--;i+=2){c=g*t[i+1];t[i]=m*t[i]-l-c;if(!o--)break;l=g*t[(i+=2)+1];t[i]=m*t[i]-l-c}l=p*t[(i=r-1)-1];for(o=u+2;o--;i+=2){c=p*t[i+1];t[i]-=l+c;if(!o--)break;l=p*t[(i+=2)+1];t[i]-=l+c}l=d*t[(i=r)-1];for(o=u+1;o--;i+=2){c=d*t[i+1];t[i]-=l+c;if(!o--)break;l=d*t[(i+=2)+1];t[i]-=l+c}if(0!==u){l=h*t[(i=r+1)-1];for(o=u;o--;i+=2){c=h*t[i+1];t[i]-=l+c;if(!o--)break;l=h*t[(i+=2)+1];t[i]-=l+c}}};return IrreversibleTransform}(),p=function ReversibleTransformClosure(){function ReversibleTransform(){h.call(this)}ReversibleTransform.prototype=Object.create(h.prototype);ReversibleTransform.prototype.filter=function reversibleTransformFilter(t,r,a){var i,o,l=a>>1;for(i=r|=0,o=l+1;o--;i+=2)t[i]-=t[i-1]+t[i+1]+2>>2;for(i=r+1,o=l;o--;i+=2)t[i]+=t[i-1]+t[i+1]>>1};return ReversibleTransform}();return JpxImage}();r.JpxImage=u},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.PDF20=r.PDF17=r.CipherTransformFactory=r.calculateSHA512=r.calculateSHA384=r.calculateSHA256=r.calculateMD5=r.ARCFourCipher=r.AES256Cipher=r.AES128Cipher=void 0;var i=a(4),o=a(135),l=a(142);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var c=function ARCFourCipherClosure(){function ARCFourCipher(t){this.a=0;this.b=0;var r,a,i=new Uint8Array(256),o=0,l=t.length;for(r=0;r<256;++r)i[r]=r;for(r=0;r<256;++r){o=o+(a=i[r])+t[r%l]&255;i[r]=i[o];i[o]=a}this.s=i}ARCFourCipher.prototype={encryptBlock:function ARCFourCipher_encryptBlock(t){var r,a,i,o=t.length,l=this.a,c=this.b,u=this.s,h=new Uint8Array(o);for(r=0;r<o;++r){i=u[c=c+(a=u[l=l+1&255])&255];u[l]=i;u[c]=a;h[r]=t[r]^u[a+i&255]}this.a=l;this.b=c;return h}};ARCFourCipher.prototype.decryptBlock=ARCFourCipher.prototype.encryptBlock;ARCFourCipher.prototype.encrypt=ARCFourCipher.prototype.encryptBlock;return ARCFourCipher}();r.ARCFourCipher=c;var u=function calculateMD5Closure(){var t=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),r=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function hash(a,i,o){var l,c,u,h=1732584193,d=-271733879,p=-1732584194,g=271733878,m=o+72&-64,y=new Uint8Array(m);for(l=0;l<o;++l)y[l]=a[i++];y[l++]=128;u=m-8;for(;l<u;)y[l++]=0;y[l++]=o<<3&255;y[l++]=o>>5&255;y[l++]=o>>13&255;y[l++]=o>>21&255;y[l++]=o>>>29&255;y[l++]=0;y[l++]=0;y[l++]=0;var b=new Int32Array(16);for(l=0;l<m;){for(c=0;c<16;++c,l+=4)b[c]=y[l]|y[l+1]<<8|y[l+2]<<16|y[l+3]<<24;var v,S,k=h,w=d,C=p,_=g;for(c=0;c<64;++c){if(c<16){v=w&C|~w&_;S=c}else if(c<32){v=_&w|~_&C;S=5*c+1&15}else if(c<48){v=w^C^_;S=3*c+5&15}else{v=C^(w|~_);S=7*c&15}var x=_,A=k+v+r[c]+b[S]|0,T=t[c];_=C;C=w;w=w+(A<<T|A>>>32-T)|0;k=x}h=h+k|0;d=d+w|0;p=p+C|0;g=g+_|0}return new Uint8Array([255&h,h>>8&255,h>>16&255,h>>>24&255,255&d,d>>8&255,d>>16&255,d>>>24&255,255&p,p>>8&255,p>>16&255,p>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255])}}();r.calculateMD5=u;var h=function Word64Closure(){function Word64(t,r){this.high=0|t;this.low=0|r}Word64.prototype={and:function Word64_and(t){this.high&=t.high;this.low&=t.low},xor:function Word64_xor(t){this.high^=t.high;this.low^=t.low},or:function Word64_or(t){this.high|=t.high;this.low|=t.low},shiftRight:function Word64_shiftRight(t){if(t>=32){this.low=this.high>>>t-32|0;this.high=0}else{this.low=this.low>>>t|this.high<<32-t;this.high=this.high>>>t|0}},shiftLeft:function Word64_shiftLeft(t){if(t>=32){this.high=this.low<<t-32;this.low=0}else{this.high=this.high<<t|this.low>>>32-t;this.low=this.low<<t}},rotateRight:function Word64_rotateRight(t){var r,a;if(32&t){a=this.low;r=this.high}else{r=this.low;a=this.high}t&=31;this.low=r>>>t|a<<32-t;this.high=a>>>t|r<<32-t},not:function Word64_not(){this.high=~this.high;this.low=~this.low},add:function Word64_add(t){var r=(this.low>>>0)+(t.low>>>0),a=(this.high>>>0)+(t.high>>>0);r>4294967295&&(a+=1);this.low=0|r;this.high=0|a},copyTo:function Word64_copyTo(t,r){t[r]=this.high>>>24&255;t[r+1]=this.high>>16&255;t[r+2]=this.high>>8&255;t[r+3]=255&this.high;t[r+4]=this.low>>>24&255;t[r+5]=this.low>>16&255;t[r+6]=this.low>>8&255;t[r+7]=255&this.low},assign:function Word64_assign(t){this.high=t.high;this.low=t.low}};return Word64}(),d=function calculateSHA256Closure(){function rotr(t,r){return t>>>r|t<<32-r}function ch(t,r,a){return t&r^~t&a}function maj(t,r,a){return t&r^t&a^r&a}function sigma(t){return rotr(t,2)^rotr(t,13)^rotr(t,22)}function sigmaPrime(t){return rotr(t,6)^rotr(t,11)^rotr(t,25)}function littleSigma(t){return rotr(t,7)^rotr(t,18)^t>>>3}var t=[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];return function hash(r,a,i){var o,l,c,u=1779033703,h=3144134277,d=1013904242,p=2773480762,g=1359893119,m=2600822924,y=528734635,b=1541459225,v=64*Math.ceil((i+9)/64),S=new Uint8Array(v);for(o=0;o<i;++o)S[o]=r[a++];S[o++]=128;c=v-8;for(;o<c;)S[o++]=0;S[o++]=0;S[o++]=0;S[o++]=0;S[o++]=i>>>29&255;S[o++]=i>>21&255;S[o++]=i>>13&255;S[o++]=i>>5&255;S[o++]=i<<3&255;var k,w=new Uint32Array(64);for(o=0;o<v;){for(l=0;l<16;++l){w[l]=S[o]<<24|S[o+1]<<16|S[o+2]<<8|S[o+3];o+=4}for(l=16;l<64;++l)w[l]=(rotr(k=w[l-2],17)^rotr(k,19)^k>>>10)+w[l-7]+littleSigma(w[l-15])+w[l-16]|0;var C,_,x=u,A=h,T=d,P=p,R=g,I=m,O=y,E=b;for(l=0;l<64;++l){C=E+sigmaPrime(R)+ch(R,I,O)+t[l]+w[l];_=sigma(x)+maj(x,A,T);E=O;O=I;I=R;R=P+C|0;P=T;T=A;A=x;x=C+_|0}u=u+x|0;h=h+A|0;d=d+T|0;p=p+P|0;g=g+R|0;m=m+I|0;y=y+O|0;b=b+E|0}return new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}}();r.calculateSHA256=d;var p=function calculateSHA512Closure(){function ch(t,r,a,i,o){t.assign(r);t.and(a);o.assign(r);o.not();o.and(i);t.xor(o)}function maj(t,r,a,i,o){t.assign(r);t.and(a);o.assign(r);o.and(i);t.xor(o);o.assign(a);o.and(i);t.xor(o)}function sigma(t,r,a){t.assign(r);t.rotateRight(28);a.assign(r);a.rotateRight(34);t.xor(a);a.assign(r);a.rotateRight(39);t.xor(a)}function sigmaPrime(t,r,a){t.assign(r);t.rotateRight(14);a.assign(r);a.rotateRight(18);t.xor(a);a.assign(r);a.rotateRight(41);t.xor(a)}function littleSigma(t,r,a){t.assign(r);t.rotateRight(1);a.assign(r);a.rotateRight(8);t.xor(a);a.assign(r);a.shiftRight(7);t.xor(a)}function littleSigmaPrime(t,r,a){t.assign(r);t.rotateRight(19);a.assign(r);a.rotateRight(61);t.xor(a);a.assign(r);a.shiftRight(6);t.xor(a)}var t=[new h(1116352408,3609767458),new h(1899447441,602891725),new h(3049323471,3964484399),new h(3921009573,2173295548),new h(961987163,4081628472),new h(1508970993,3053834265),new h(2453635748,2937671579),new h(2870763221,3664609560),new h(3624381080,2734883394),new h(310598401,1164996542),new h(607225278,1323610764),new h(1426881987,3590304994),new h(1925078388,4068182383),new h(2162078206,991336113),new h(2614888103,633803317),new h(3248222580,3479774868),new h(3835390401,2666613458),new h(4022224774,944711139),new h(264347078,2341262773),new h(604807628,2007800933),new h(770255983,1495990901),new h(1249150122,1856431235),new h(1555081692,3175218132),new h(1996064986,2198950837),new h(2554220882,3999719339),new h(2821834349,766784016),new h(2952996808,2566594879),new h(3210313671,3203337956),new h(3336571891,1034457026),new h(3584528711,2466948901),new h(113926993,3758326383),new h(338241895,168717936),new h(666307205,1188179964),new h(773529912,1546045734),new h(1294757372,1522805485),new h(1396182291,2643833823),new h(1695183700,2343527390),new h(1986661051,1014477480),new h(2177026350,1206759142),new h(2456956037,344077627),new h(2730485921,1290863460),new h(2820302411,3158454273),new h(3259730800,3505952657),new h(3345764771,106217008),new h(3516065817,3606008344),new h(3600352804,1432725776),new h(4094571909,1467031594),new h(275423344,851169720),new h(430227734,3100823752),new h(506948616,1363258195),new h(659060556,3750685593),new h(883997877,3785050280),new h(958139571,3318307427),new h(1322822218,3812723403),new h(1537002063,2003034995),new h(1747873779,3602036899),new h(1955562222,1575990012),new h(2024104815,1125592928),new h(2227730452,2716904306),new h(2361852424,442776044),new h(2428436474,593698344),new h(2756734187,3733110249),new h(3204031479,2999351573),new h(3329325298,3815920427),new h(3391569614,3928383900),new h(3515267271,566280711),new h(3940187606,3454069534),new h(4118630271,4000239992),new h(116418474,1914138554),new h(174292421,2731055270),new h(289380356,3203993006),new h(460393269,320620315),new h(685471733,587496836),new h(852142971,1086792851),new h(1017036298,365543100),new h(1126000580,2618297676),new h(1288033470,3409855158),new h(1501505948,4234509866),new h(1607167915,987167468),new h(1816402316,1246189591)];return function hash(r,a,i,o){var l,c,u,d,p,g,m,y;if(o=!!o){l=new h(3418070365,3238371032);c=new h(1654270250,914150663);u=new h(2438529370,812702999);d=new h(355462360,4144912697);p=new h(1731405415,4290775857);g=new h(2394180231,1750603025);m=new h(3675008525,1694076839);y=new h(1203062813,3204075428)}else{l=new h(1779033703,4089235720);c=new h(3144134277,2227873595);u=new h(1013904242,4271175723);d=new h(2773480762,1595750129);p=new h(1359893119,2917565137);g=new h(2600822924,725511199);m=new h(528734635,4215389547);y=new h(1541459225,327033209)}var b,v,S,k=128*Math.ceil((i+17)/128),w=new Uint8Array(k);for(b=0;b<i;++b)w[b]=r[a++];w[b++]=128;S=k-16;for(;b<S;)w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=0;w[b++]=i>>>29&255;w[b++]=i>>21&255;w[b++]=i>>13&255;w[b++]=i>>5&255;w[b++]=i<<3&255;var C=new Array(80);for(b=0;b<80;b++)C[b]=new h(0,0);var _,x,A=new h(0,0),T=new h(0,0),P=new h(0,0),R=new h(0,0),I=new h(0,0),O=new h(0,0),E=new h(0,0),D=new h(0,0),B=new h(0,0),M=new h(0,0),L=new h(0,0),N=new h(0,0);for(b=0;b<k;){for(v=0;v<16;++v){C[v].high=w[b]<<24|w[b+1]<<16|w[b+2]<<8|w[b+3];C[v].low=w[b+4]<<24|w[b+5]<<16|w[b+6]<<8|w[b+7];b+=8}for(v=16;v<80;++v){littleSigmaPrime(_=C[v],C[v-2],N);_.add(C[v-7]);littleSigma(L,C[v-15],N);_.add(L);_.add(C[v-16])}A.assign(l);T.assign(c);P.assign(u);R.assign(d);I.assign(p);O.assign(g);E.assign(m);D.assign(y);for(v=0;v<80;++v){B.assign(D);sigmaPrime(L,I,N);B.add(L);ch(L,I,O,E,N);B.add(L);B.add(t[v]);B.add(C[v]);sigma(M,A,N);maj(L,A,T,P,N);M.add(L);_=D;D=E;E=O;O=I;R.add(B);I=R;R=P;P=T;T=A;_.assign(B);_.add(M);A=_}l.add(A);c.add(T);u.add(P);d.add(R);p.add(I);g.add(O);m.add(E);y.add(D)}if(o){x=new Uint8Array(48);l.copyTo(x,0);c.copyTo(x,8);u.copyTo(x,16);d.copyTo(x,24);p.copyTo(x,32);g.copyTo(x,40)}else{x=new Uint8Array(64);l.copyTo(x,0);c.copyTo(x,8);u.copyTo(x,16);d.copyTo(x,24);p.copyTo(x,32);g.copyTo(x,40);m.copyTo(x,48);y.copyTo(x,56)}return x}}();r.calculateSHA512=p;var g=function calculateSHA384Closure(){return function hash(t,r,a){return p(t,r,a,!0)}}();r.calculateSHA384=g;var m=function NullCipherClosure(){function NullCipher(){}NullCipher.prototype={decryptBlock:function NullCipher_decryptBlock(t){return t},encrypt:function NullCipher_encrypt(t){return t}};return NullCipher}(),y=function(){function AESBaseCipher(){_classCallCheck(this,AESBaseCipher);this.constructor===AESBaseCipher&&(0,i.unreachable)("Cannot initialize AESBaseCipher.");this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);this._mixCol=new Uint8Array(256);for(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16);this.bufferPosition=0}_createClass(AESBaseCipher,[{key:"_expandKey",value:function _expandKey(t){(0,i.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function _decrypt(t,r){var a,i,o,l=new Uint8Array(16);l.set(t);for(var c=0,u=this._keySize;c<16;++c,++u)l[c]^=r[u];for(var h=this._cyclesOfRepetition-1;h>=1;--h){a=l[13];l[13]=l[9];l[9]=l[5];l[5]=l[1];l[1]=a;a=l[14];i=l[10];l[14]=l[6];l[10]=l[2];l[6]=a;l[2]=i;a=l[15];i=l[11];o=l[7];l[15]=l[3];l[11]=a;l[7]=i;l[3]=o;for(var d=0;d<16;++d)l[d]=this._inv_s[l[d]];for(var p=0,g=16*h;p<16;++p,++g)l[p]^=r[g];for(var m=0;m<16;m+=4){var y=this._mix[l[m]],b=this._mix[l[m+1]],v=this._mix[l[m+2]],S=this._mix[l[m+3]];a=y^b>>>8^b<<24^v>>>16^v<<16^S>>>24^S<<8;l[m]=a>>>24&255;l[m+1]=a>>16&255;l[m+2]=a>>8&255;l[m+3]=255&a}}a=l[13];l[13]=l[9];l[9]=l[5];l[5]=l[1];l[1]=a;a=l[14];i=l[10];l[14]=l[6];l[10]=l[2];l[6]=a;l[2]=i;a=l[15];i=l[11];o=l[7];l[15]=l[3];l[11]=a;l[7]=i;l[3]=o;for(var k=0;k<16;++k){l[k]=this._inv_s[l[k]];l[k]^=r[k]}return l}},{key:"_encrypt",value:function _encrypt(t,r){var a,i,o,l=this._s,c=new Uint8Array(16);c.set(t);for(var u=0;u<16;++u)c[u]^=r[u];for(var h=1;h<this._cyclesOfRepetition;h++){for(var d=0;d<16;++d)c[d]=l[c[d]];o=c[1];c[1]=c[5];c[5]=c[9];c[9]=c[13];c[13]=o;o=c[2];i=c[6];c[2]=c[10];c[6]=c[14];c[10]=o;c[14]=i;o=c[3];i=c[7];a=c[11];c[3]=c[15];c[7]=o;c[11]=i;c[15]=a;for(var p=0;p<16;p+=4){var g=c[p+0],m=c[p+1],y=c[p+2],b=c[p+3];a=g^m^y^b;c[p+0]^=a^this._mixCol[g^m];c[p+1]^=a^this._mixCol[m^y];c[p+2]^=a^this._mixCol[y^b];c[p+3]^=a^this._mixCol[b^g]}for(var v=0,S=16*h;v<16;++v,++S)c[v]^=r[S]}for(var k=0;k<16;++k)c[k]=l[c[k]];o=c[1];c[1]=c[5];c[5]=c[9];c[9]=c[13];c[13]=o;o=c[2];i=c[6];c[2]=c[10];c[6]=c[14];c[10]=o;c[14]=i;o=c[3];i=c[7];a=c[11];c[3]=c[15];c[7]=o;c[11]=i;c[15]=a;for(var w=0,C=this._keySize;w<16;++w,++C)c[w]^=r[C];return c}},{key:"_decryptBlock2",value:function _decryptBlock2(t,r){for(var a=t.length,i=this.buffer,o=this.bufferPosition,l=[],c=this.iv,u=0;u<a;++u){i[o]=t[u];if(!(++o<16)){for(var h=this._decrypt(i,this._key),d=0;d<16;++d)h[d]^=c[d];c=i;l.push(h);i=new Uint8Array(16);o=0}}this.buffer=i;this.bufferLength=o;this.iv=c;if(0===l.length)return new Uint8Array(0);var p=16*l.length;if(r){var g=l[l.length-1],m=g[15];if(m<=16){for(var y=15,b=16-m;y>=b;--y)if(g[y]!==m){m=0;break}p-=m;l[l.length-1]=g.subarray(0,16-m)}}for(var v=new Uint8Array(p),S=0,k=0,w=l.length;S<w;++S,k+=16)v.set(l[S],k);return v}},{key:"decryptBlock",value:function decryptBlock(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.length,o=this.buffer,l=this.bufferPosition;if(a)this.iv=a;else{for(var c=0;l<16&&c<i;++c,++l)o[l]=t[c];if(l<16){this.bufferLength=l;return new Uint8Array(0)}this.iv=o;t=t.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(t,r)}},{key:"encrypt",value:function encrypt(t,r){var a=t.length,i=this.buffer,o=this.bufferPosition,l=[];r||(r=new Uint8Array(16));for(var c=0;c<a;++c){i[o]=t[c];if(!(++o<16)){for(var u=0;u<16;++u)i[u]^=r[u];var h=this._encrypt(i,this._key);r=h;l.push(h);i=new Uint8Array(16);o=0}}this.buffer=i;this.bufferLength=o;this.iv=r;if(0===l.length)return new Uint8Array(0);for(var d=16*l.length,p=new Uint8Array(d),g=0,m=0,y=l.length;g<y;++g,m+=16)p.set(l[g],m);return p}}]);return AESBaseCipher}(),b=function(t){_inherits(AES128Cipher,t);var r=_createSuper(AES128Cipher);function AES128Cipher(t){var a;_classCallCheck(this,AES128Cipher);(a=r.call(this))._cyclesOfRepetition=10;a._keySize=160;a._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);a._key=a._expandKey(t);return a}_createClass(AES128Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,a=this._rcon,i=new Uint8Array(176);i.set(t);for(var o=16,l=1;o<176;++l){var c=i[o-3],u=i[o-2],h=i[o-1],d=i[o-4];c=r[c];u=r[u];h=r[h];d=r[d];c^=a[l];for(var p=0;p<4;++p){i[o]=c^=i[o-16];i[++o]=u^=i[o-16];i[++o]=h^=i[o-16];i[++o]=d^=i[o-16];o++}}return i}}]);return AES128Cipher}(y);r.AES128Cipher=b;var v=function(t){_inherits(AES256Cipher,t);var r=_createSuper(AES256Cipher);function AES256Cipher(t){var a;_classCallCheck(this,AES256Cipher);(a=r.call(this))._cyclesOfRepetition=14;a._keySize=224;a._key=a._expandKey(t);return a}_createClass(AES256Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,a=new Uint8Array(240);a.set(t);for(var i,o,l,c,u=1,h=32,d=1;h<240;++d){if(h%32==16){i=r[i];o=r[o];l=r[l];c=r[c]}else if(h%32==0){i=a[h-3];o=a[h-2];l=a[h-1];c=a[h-4];i=r[i];o=r[o];l=r[l];c=r[c];i^=u;(u<<=1)>=256&&(u=255&(27^u))}for(var p=0;p<4;++p){a[h]=i^=a[h-32];a[++h]=o^=a[h-32];a[++h]=l^=a[h-32];a[++h]=c^=a[h-32];h++}}return a}}]);return AES256Cipher}(y);r.AES256Cipher=v;var S=function PDF17Closure(){function compareByteArrays(t,r){if(t.length!==r.length)return!1;for(var a=0;a<t.length;a++)if(t[a]!==r[a])return!1;return!0}function PDF17(){}PDF17.prototype={checkOwnerPassword:function PDF17_checkOwnerPassword(t,r,a,i){var o=new Uint8Array(t.length+56);o.set(t,0);o.set(r,t.length);o.set(a,t.length+r.length);return compareByteArrays(d(o,0,o.length),i)},checkUserPassword:function PDF17_checkUserPassword(t,r,a){var i=new Uint8Array(t.length+8);i.set(t,0);i.set(r,t.length);return compareByteArrays(d(i,0,i.length),a)},getOwnerKey:function PDF17_getOwnerKey(t,r,a,i){var o=new Uint8Array(t.length+56);o.set(t,0);o.set(r,t.length);o.set(a,t.length+r.length);var l=d(o,0,o.length);return new v(l).decryptBlock(i,!1,new Uint8Array(16))},getUserKey:function PDF17_getUserKey(t,r,a){var i=new Uint8Array(t.length+8);i.set(t,0);i.set(r,t.length);var o=d(i,0,i.length);return new v(o).decryptBlock(a,!1,new Uint8Array(16))}};return PDF17}();r.PDF17=S;var k=function PDF20Closure(){function concatArrays(t,r){var a=new Uint8Array(t.length+r.length);a.set(t,0);a.set(r,t.length);return a}function calculatePDF20Hash(t,r,a){for(var i=d(r,0,r.length).subarray(0,32),o=[0],l=0;l<64||o[o.length-1]>l-32;){var c=t.length+i.length+a.length,u=new Uint8Array(64*c),h=concatArrays(t,i);h=concatArrays(h,a);for(var m=0,y=0;m<64;m++,y+=c)u.set(h,y);o=new b(i.subarray(0,16)).encrypt(u,i.subarray(16,32));for(var v=0,S=0;S<16;S++){v*=1;v%=3;v+=(o[S]>>>0)%3;v%=3}0===v?i=d(o,0,o.length):1===v?i=g(o,0,o.length):2===v&&(i=p(o,0,o.length));l++}return i.subarray(0,32)}function PDF20(){}function compareByteArrays(t,r){if(t.length!==r.length)return!1;for(var a=0;a<t.length;a++)if(t[a]!==r[a])return!1;return!0}PDF20.prototype={hash:function PDF20_hash(t,r,a){return calculatePDF20Hash(t,r,a)},checkOwnerPassword:function PDF20_checkOwnerPassword(t,r,a,i){var o=new Uint8Array(t.length+56);o.set(t,0);o.set(r,t.length);o.set(a,t.length+r.length);return compareByteArrays(calculatePDF20Hash(t,o,a),i)},checkUserPassword:function PDF20_checkUserPassword(t,r,a){var i=new Uint8Array(t.length+8);i.set(t,0);i.set(r,t.length);return compareByteArrays(calculatePDF20Hash(t,i,[]),a)},getOwnerKey:function PDF20_getOwnerKey(t,r,a,i){var o=new Uint8Array(t.length+56);o.set(t,0);o.set(r,t.length);o.set(a,t.length+r.length);var l=calculatePDF20Hash(t,o,a);return new v(l).decryptBlock(i,!1,new Uint8Array(16))},getUserKey:function PDF20_getUserKey(t,r,a){var i=new Uint8Array(t.length+8);i.set(t,0);i.set(r,t.length);var o=calculatePDF20Hash(t,i,[]);return new v(o).decryptBlock(a,!1,new Uint8Array(16))}};return PDF20}();r.PDF20=k;var w=function CipherTransformClosure(){function CipherTransform(t,r){this.StringCipherConstructor=t;this.StreamCipherConstructor=r}CipherTransform.prototype={createStream:function CipherTransform_createStream(t,r){var a=new this.StreamCipherConstructor;return new l.DecryptStream(t,r,(function cipherTransformDecryptStream(t,r){return a.decryptBlock(t,r)}))},decryptString:function CipherTransform_decryptString(t){var r=new this.StringCipherConstructor,a=(0,i.stringToBytes)(t);a=r.decryptBlock(a,!0);return(0,i.bytesToString)(a)},encryptString:function CipherTransform_encryptString(t){var r=new this.StringCipherConstructor;if(r instanceof y){var a=t.length,o=16-a%16;16!==o&&(t=t.padEnd(16*Math.ceil(a/16),String.fromCharCode(o)));var l=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(l);else for(var c=0;c<16;c++)l[c]=Math.floor(256*Math.random());var u=(0,i.stringToBytes)(t);u=r.encrypt(u,l);var h=new Uint8Array(16+u.length);h.set(l);h.set(u,16);return(0,i.bytesToString)(h)}var d=(0,i.stringToBytes)(t);d=r.encrypt(d);return(0,i.bytesToString)(d)}};return CipherTransform}(),C=function CipherTransformFactoryClosure(){var t=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function prepareKeyData(r,a,i,o,l,h,d,p){var g,m,y=40+i.length+r.length,b=new Uint8Array(y),v=0;if(a){m=Math.min(32,a.length);for(;v<m;++v)b[v]=a[v]}g=0;for(;v<32;)b[v++]=t[g++];for(g=0,m=i.length;g<m;++g)b[v++]=i[g];b[v++]=255&l;b[v++]=l>>8&255;b[v++]=l>>16&255;b[v++]=l>>>24&255;for(g=0,m=r.length;g<m;++g)b[v++]=r[g];if(h>=4&&!p){b[v++]=255;b[v++]=255;b[v++]=255;b[v++]=255}var S=u(b,0,v),k=d>>3;if(h>=3)for(g=0;g<50;++g)S=u(S,0,k);var w,C=S.subarray(0,k);if(h>=3){for(v=0;v<32;++v)b[v]=t[v];for(g=0,m=r.length;g<m;++g)b[v++]=r[g];w=new c(C).encryptBlock(u(b,0,v));m=C.length;var _,x=new Uint8Array(m);for(g=1;g<=19;++g){for(_=0;_<m;++_)x[_]=C[_]^g;w=new c(x).encryptBlock(w)}for(g=0,m=w.length;g<m;++g)if(o[g]!==w[g])return null}else for(g=0,m=(w=new c(C).encryptBlock(t)).length;g<m;++g)if(o[g]!==w[g])return null;return C}var r=o.Name.get("Identity");function CipherTransformFactory(a,l,h){var d=a.get("Filter");if(!(0,o.isName)(d,"Standard"))throw new i.FormatError("unknown encryption method");this.dict=a;var p=a.get("V");if(!Number.isInteger(p)||1!==p&&2!==p&&4!==p&&5!==p)throw new i.FormatError("unsupported encryption algorithm");this.algorithm=p;var g=a.get("Length");if(!g)if(p<=3)g=40;else{var m=a.get("CF"),y=a.get("StmF");if((0,o.isDict)(m)&&(0,o.isName)(y)){m.suppressEncryption=!0;var b=m.get(y.name);(g=b&&b.get("Length")||128)<40&&(g<<=3)}}if(!Number.isInteger(g)||g<40||g%8!=0)throw new i.FormatError("invalid key length");var v=(0,i.stringToBytes)(a.get("O")).subarray(0,32),w=(0,i.stringToBytes)(a.get("U")).subarray(0,32),C=a.get("P"),_=a.get("R"),x=(4===p||5===p)&&!1!==a.get("EncryptMetadata");this.encryptMetadata=x;var A,T,P=(0,i.stringToBytes)(l);if(h){if(6===_)try{h=(0,i.utf8StringToString)(h)}catch(t){(0,i.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}A=(0,i.stringToBytes)(h)}if(5!==p)T=prepareKeyData(P,A,v,w,C,_,g,x);else{var R=(0,i.stringToBytes)(a.get("O")).subarray(32,40),I=(0,i.stringToBytes)(a.get("O")).subarray(40,48),O=(0,i.stringToBytes)(a.get("U")).subarray(0,48),E=(0,i.stringToBytes)(a.get("U")).subarray(32,40),D=(0,i.stringToBytes)(a.get("U")).subarray(40,48),B=(0,i.stringToBytes)(a.get("OE")),M=(0,i.stringToBytes)(a.get("UE"));(0,i.stringToBytes)(a.get("Perms"));T=function createEncryptionKey20(t,r,a,i,o,l,c,u,h,d,p,g){if(r){var m=Math.min(127,r.length);r=r.subarray(0,m)}else r=[];var y;return(y=6===t?new k:new S).checkUserPassword(r,u,c)?y.getUserKey(r,h,p):r.length&&y.checkOwnerPassword(r,i,l,a)?y.getOwnerKey(r,o,l,d):null}(_,A,v,R,I,O,w,E,D,B,M)}if(!T&&!h)throw new i.PasswordException("No password given",i.PasswordResponses.NEED_PASSWORD);if(!T&&h){T=prepareKeyData(P,function decodeUserPassword(r,a,i,o){var l,h,d=new Uint8Array(32),p=0;h=Math.min(32,r.length);for(;p<h;++p)d[p]=r[p];l=0;for(;p<32;)d[p++]=t[l++];var g,m=u(d,0,p),y=o>>3;if(i>=3)for(l=0;l<50;++l)m=u(m,0,m.length);if(i>=3){g=a;var b,v=new Uint8Array(y);for(l=19;l>=0;l--){for(b=0;b<y;++b)v[b]=m[b]^l;g=new c(v).encryptBlock(g)}}else g=new c(m.subarray(0,y)).encryptBlock(a);return g}(A,v,_,g),v,w,C,_,g,x)}if(!T)throw new i.PasswordException("Incorrect Password",i.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=T;if(p>=4){var L=a.get("CF");(0,o.isDict)(L)&&(L.suppressEncryption=!0);this.cf=L;this.stmf=a.get("StmF")||r;this.strf=a.get("StrF")||r;this.eff=a.get("EFF")||this.stmf}}function buildObjectKey(t,r,a,i){var o,l,c=new Uint8Array(a.length+9);for(o=0,l=a.length;o<l;++o)c[o]=a[o];c[o++]=255&t;c[o++]=t>>8&255;c[o++]=t>>16&255;c[o++]=255&r;c[o++]=r>>8&255;if(i){c[o++]=115;c[o++]=65;c[o++]=108;c[o++]=84}return u(c,0,o).subarray(0,Math.min(a.length+5,16))}function buildCipherConstructor(t,r,a,l,u){if(!(0,o.isName)(r))throw new i.FormatError("Invalid crypt filter name.");var h,d=t.get(r.name);null!=d&&(h=d.get("CFM"));if(!h||"None"===h.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new m};if("V2"===h.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new c(buildObjectKey(a,l,u,!1))};if("AESV2"===h.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new b(buildObjectKey(a,l,u,!0))};if("AESV3"===h.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new v(u)};throw new i.FormatError("Unknown crypto method")}CipherTransformFactory.prototype={createCipherTransform:function CipherTransformFactory_createCipherTransform(t,r){if(4===this.algorithm||5===this.algorithm)return new w(buildCipherConstructor(this.cf,this.stmf,t,r,this.encryptionKey),buildCipherConstructor(this.cf,this.strf,t,r,this.encryptionKey));var a=buildObjectKey(t,r,this.encryptionKey,!1),i=function buildCipherCipherConstructor(){return new c(a)};return new w(i,i)}};return CipherTransformFactory}();r.CipherTransformFactory=C},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.ColorSpace=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(135),c=a(138);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var u=function(){function ColorSpace(t,r){_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&(0,o.unreachable)("Cannot initialize ColorSpace.");this.name=t;this.numComps=r}_createClass(ColorSpace,[{key:"getRgb",value:function getRgb(t,r){var a=new Uint8ClampedArray(3);this.getRgbItem(t,r,a,0);return a}},{key:"getRgbItem",value:function getRgbItem(t,r,a,i){(0,o.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,l,c,u){(0,o.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function getOutputLength(t,r){(0,o.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function isPassthrough(t){return!1}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return ColorSpace.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function fillRgb(t,r,a,i,o,l,c,u,h){var d=r*a,p=null,g=1<<c,m=a!==o||r!==i;if(this.isPassthrough(c))p=u;else if(1===this.numComps&&d>g&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var y=c<=8?new Uint8Array(g):new Uint16Array(g),b=0;b<g;b++)y[b]=b;var v=new Uint8ClampedArray(3*g);this.getRgbBuffer(y,0,g,v,0,c,0);if(m){p=new Uint8Array(3*d);for(var S=0,k=0;k<d;++k){var w=3*u[k];p[S++]=v[w];p[S++]=v[w+1];p[S++]=v[w+2]}}else for(var C=0,_=0;_<d;++_){var x=3*u[_];t[C++]=v[x];t[C++]=v[x+1];t[C++]=v[x+2];C+=h}}else if(m){p=new Uint8ClampedArray(3*d);this.getRgbBuffer(u,0,d,p,0,c,0)}else this.getRgbBuffer(u,0,i*l,t,0,c,h);if(p)if(m)!function resizeRgbImage(t,r,a,i,o,l,c){c=1!==c?0:c;for(var u,h=a/o,d=i/l,p=0,g=new Uint16Array(o),m=3*a,y=0;y<o;y++)g[y]=3*Math.floor(y*h);for(var b=0;b<l;b++)for(var v=Math.floor(b*d)*m,S=0;S<o;S++){u=v+g[S];r[p++]=t[u++];r[p++]=t[u++];r[p++]=t[u++];p+=c}}(p,t,r,a,i,o,h);else for(var A=0,T=0,P=0,R=i*l;P<R;P++){t[A++]=p[T++];t[A++]=p[T++];t[A++]=p[T++];A+=h}}},{key:"usesZeroToOneRange",get:function get(){return(0,o.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function _cache(t,r,a,i){if(!a)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!i)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var o,c;if(t instanceof l.Ref){c=t;t=r.fetch(t)}t instanceof l.Name&&(o=t.name);(o||c)&&a.set(o,c,i)}},{key:"getCached",value:function getCached(t,r,a){if(!a)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(t instanceof l.Ref){var i=a.getByRef(t);if(i)return i;try{t=r.fetch(t)}catch(t){if(t instanceof c.MissingDataException)throw t}}if(t instanceof l.Name){var o=a.getByName(t.name);if(o)return o}return null}},{key:"parseAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}(i.default.mark((function _callee(t){var r,a,o,l,c,u,h;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:r=t.cs,a=t.xref,o=t.resources,l=void 0===o?null:o,c=t.pdfFunctionFactory,u=t.localColorSpaceCache;h=this._parse(r,a,l,c);this._cache(r,a,u,h);return i.abrupt("return",h);case 4:case"end":return i.stop()}}),_callee,this)}))),function parseAsync(r){return t.apply(this,arguments)})},{key:"parse",value:function parse(t){var r=t.cs,a=t.xref,i=t.resources,o=void 0===i?null:i,l=t.pdfFunctionFactory,c=t.localColorSpaceCache,u=this.getCached(r,a,c);if(u)return u;var h=this._parse(r,a,o,l);this._cache(r,a,c,h);return h}},{key:"_parse",value:function _parse(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;t=r.fetchIfRef(t);if((0,l.isName)(t))switch(t.name){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"Pattern":return new d(null);default:if((0,l.isDict)(a)){var c=a.get("ColorSpace");if((0,l.isDict)(c)){var u=c.get(t.name);if(u){if((0,l.isName)(u))return this._parse(u,r,a,i);t=u;break}}}throw new o.FormatError("Unrecognized ColorSpace: ".concat(t.name))}if(Array.isArray(t)){var g,m,y,k,w,C,_=r.fetchIfRef(t[0]).name;switch(_){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"CalGray":k=(g=r.fetchIfRef(t[1])).getArray("WhitePoint");w=g.getArray("BlackPoint");C=g.get("Gamma");return new b(k,w,C);case"CalRGB":k=(g=r.fetchIfRef(t[1])).getArray("WhitePoint");w=g.getArray("BlackPoint");C=g.getArray("Gamma");var x=g.getArray("Matrix");return new v(k,w,C,x);case"ICCBased":var A=r.fetchIfRef(t[1]),T=A.dict;m=T.get("N");var P=T.get("Alternate");if(P){var R=this._parse(P,r,a,i);if(R.numComps===m)return R;(0,o.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===m)return this.singletons.gray;if(3===m)return this.singletons.rgb;if(4===m)return this.singletons.cmyk;break;case"Pattern":(y=t[1]||null)&&(y=this._parse(y,r,a,i));return new d(y);case"Indexed":case"I":y=this._parse(t[1],r,a,i);var I=r.fetchIfRef(t[2])+1,O=r.fetchIfRef(t[3]);return new p(y,I,O);case"Separation":case"DeviceN":var E=r.fetchIfRef(t[1]);m=Array.isArray(E)?E.length:1;y=this._parse(t[2],r,a,i);var D=i.create(t[3]);return new h(m,y,D);case"Lab":k=(g=r.fetchIfRef(t[1])).getArray("WhitePoint");w=g.getArray("BlackPoint");var B=g.getArray("Range");return new S(k,w,B);default:throw new o.FormatError("Unimplemented ColorSpace object: ".concat(_))}}throw new o.FormatError("Unrecognized ColorSpace object: ".concat(t))}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2*r!==t.length){(0,o.warn)("The decode map is not the correct length");return!0}for(var a=0,i=t.length;a<i;a+=2)if(0!==t[a]||1!==t[a+1])return!1;return!0}},{key:"singletons",get:function get(){return(0,o.shadow)(this,"singletons",{get gray(){return(0,o.shadow)(this,"gray",new g)},get rgb(){return(0,o.shadow)(this,"rgb",new m)},get cmyk(){return(0,o.shadow)(this,"cmyk",new y)}})}}]);var t;return ColorSpace}();r.ColorSpace=u;var h=function(t){_inherits(AlternateCS,t);var r=_createSuper(AlternateCS);function AlternateCS(t,a,i){var o;_classCallCheck(this,AlternateCS);(o=r.call(this,"Alternate",t)).base=a;o.tintFn=i;o.tmpBuf=new Float32Array(a.numComps);return o}_createClass(AlternateCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){var o=this.tmpBuf;this.tintFn(t,r,o,0);this.base.getRgbItem(o,0,a,i)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){var u,h,d=this.tintFn,p=this.base,g=1/((1<<l)-1),m=p.numComps,y=p.usesZeroToOneRange,b=(p.isPassthrough(8)||!y)&&0===c,v=b?o:0,S=b?i:new Uint8ClampedArray(m*a),k=this.numComps,w=new Float32Array(k),C=new Float32Array(m);for(u=0;u<a;u++){for(h=0;h<k;h++)w[h]=t[r++]*g;d(w,0,C,0);if(y)for(h=0;h<m;h++)S[v++]=255*C[h];else{p.getRgbItem(C,0,S,v);v+=m}}b||p.getRgbBuffer(S,0,a,i,o,8,c)}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps/this.numComps,r)}}]);return AlternateCS}(u),d=function(t){_inherits(PatternCS,t);var r=_createSuper(PatternCS);function PatternCS(t){var a;_classCallCheck(this,PatternCS);(a=r.call(this,"Pattern",null)).base=t;return a}_createClass(PatternCS,[{key:"isDefaultDecode",value:function isDefaultDecode(t,r){(0,o.unreachable)("Should not call PatternCS.isDefaultDecode")}}]);return PatternCS}(u),p=function(t){_inherits(IndexedCS,t);var r=_createSuper(IndexedCS);function IndexedCS(t,a,i){var c;_classCallCheck(this,IndexedCS);(c=r.call(this,"Indexed",1)).base=t;c.highVal=a;var u=t.numComps*a;c.lookup=new Uint8Array(u);if((0,l.isStream)(i)){var h=i.getBytes(u);c.lookup.set(h)}else{if("string"!=typeof i)throw new o.FormatError("IndexedCS - unrecognized lookup table: ".concat(i));for(var d=0;d<u;++d)c.lookup[d]=255&i.charCodeAt(d)}return c}_createClass(IndexedCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){var o=this.base.numComps,l=t[r]*o;this.base.getRgbBuffer(this.lookup,l,1,a,i,8,0)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){for(var u=this.base,h=u.numComps,d=u.getOutputLength(h,c),p=this.lookup,g=0;g<a;++g){var m=t[r++]*h;u.getRgbBuffer(p,m,1,i,o,8,c);o+=d}}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps,r)}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2!==t.length){(0,o.warn)("Decode map length is not correct");return!0}if(!Number.isInteger(r)||r<1){(0,o.warn)("Bits per component is not correct");return!0}return 0===t[0]&&t[1]===(1<<r)-1}}]);return IndexedCS}(u),g=function(t){_inherits(DeviceGrayCS,t);var r=_createSuper(DeviceGrayCS);function DeviceGrayCS(){_classCallCheck(this,DeviceGrayCS);return r.call(this,"DeviceGray",1)}_createClass(DeviceGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){var o=255*t[r];a[i]=a[i+1]=a[i+2]=o}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){for(var u=255/((1<<l)-1),h=r,d=o,p=0;p<a;++p){var g=u*t[h++];i[d++]=g;i[d++]=g;i[d++]=g;d+=c}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return DeviceGrayCS}(u),m=function(t){_inherits(DeviceRgbCS,t);var r=_createSuper(DeviceRgbCS);function DeviceRgbCS(){_classCallCheck(this,DeviceRgbCS);return r.call(this,"DeviceRGB",3)}_createClass(DeviceRgbCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){a[i]=255*t[r];a[i+1]=255*t[r+1];a[i+2]=255*t[r+2]}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){if(8!==l||0!==c)for(var u=255/((1<<l)-1),h=r,d=o,p=0;p<a;++p){i[d++]=u*t[h++];i[d++]=u*t[h++];i[d++]=u*t[h++];d+=c}else i.set(t.subarray(r,r+3*a),o)}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isPassthrough",value:function isPassthrough(t){return 8===t}}]);return DeviceRgbCS}(u),y=function DeviceCmykCSClosure(){function convertToRgb(t,r,a,i,o){var l=t[r]*a,c=t[r+1]*a,u=t[r+2]*a,h=t[r+3]*a;i[o]=255+l*(-4.387332384609988*l+54.48615194189176*c+18.82290502165302*u+212.25662451639585*h-285.2331026137004)+c*(1.7149763477362134*c-5.6096736904047315*u+-17.873870861415444*h-5.497006427196366)+u*(-2.5217340131683033*u-21.248923337353073*h+17.5119270841813)+h*(-21.86122147463605*h-189.48180835922747);i[o+1]=255+l*(8.841041422036149*l+60.118027045597366*c+6.871425592049007*u+31.159100130055922*h-79.2970844816548)+c*(-15.310361306967817*c+17.575251261109482*u+131.35250912493976*h-190.9453302588951)+u*(4.444339102852739*u+9.8632861493405*h-24.86741582555878)+h*(-20.737325471181034*h-187.80453709719578);i[o+2]=255+l*(.8842522430003296*l+8.078677503112928*c+30.89978309703729*u-.23883238689178934*h-14.183576799673286)+c*(10.49593273432072*c+63.02378494754052*u+50.606957656360734*h-112.23884253719248)+u*(.03296041114873217*u+115.60384449646641*h-193.58209356861505)+h*(-22.33816807309886*h-180.12613974708367)}return function(t){_inherits(DeviceCmykCS,t);var r=_createSuper(DeviceCmykCS);function DeviceCmykCS(){_classCallCheck(this,DeviceCmykCS);return r.call(this,"DeviceCMYK",4)}_createClass(DeviceCmykCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){convertToRgb(t,r,1,a,i)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){for(var u=1/((1<<l)-1),h=0;h<a;h++){convertToRgb(t,r,u,i,o);r+=4;o+=3+c}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t/4*(3+r)|0}}]);return DeviceCmykCS}(u)}(),b=function CalGrayCSClosure(){function convertToRgb(t,r,a,i,o,l){var c=r[a]*l,u=Math.pow(c,t.G),h=t.YW*u,d=Math.max(295.8*Math.pow(h,.3333333333333333)-40.8,0);i[o]=d;i[o+1]=d;i[o+2]=d}return function(t){_inherits(CalGrayCS,t);var r=_createSuper(CalGrayCS);function CalGrayCS(t,a,i){var l;_classCallCheck(this,CalGrayCS);l=r.call(this,"CalGray",1);if(!t)throw new o.FormatError("WhitePoint missing - required for color space CalGray");a=a||[0,0,0];i=i||1;l.XW=t[0];l.YW=t[1];l.ZW=t[2];l.XB=a[0];l.YB=a[1];l.ZB=a[2];l.G=i;if(l.XW<0||l.ZW<0||1!==l.YW)throw new o.FormatError("Invalid WhitePoint components for ".concat(l.name)+", no fallback available");if(l.XB<0||l.YB<0||l.ZB<0){(0,o.info)("Invalid BlackPoint for ".concat(l.name,", falling back to default."));l.XB=l.YB=l.ZB=0}0===l.XB&&0===l.YB&&0===l.ZB||(0,o.warn)("".concat(l.name,", BlackPoint: XB: ").concat(l.XB,", YB: ").concat(l.YB,", ")+"ZB: ".concat(l.ZB,", only default values are supported."));if(l.G<1){(0,o.info)("Invalid Gamma: ".concat(l.G," for ").concat(l.name,", ")+"falling back to default.");l.G=1}return l}_createClass(CalGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){convertToRgb(this,t,r,a,i,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){for(var u=1/((1<<l)-1),h=0;h<a;++h){convertToRgb(this,t,r,i,o,u);r+=1;o+=3+c}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return CalGrayCS}(u)}(),v=function CalRGBCSClosure(){var t=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),r=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),a=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),i=new Float32Array([1,1,1]),l=new Float32Array(3),c=new Float32Array(3),h=new Float32Array(3),d=Math.pow(24/116,3)/8;function matrixProduct(t,r,a){a[0]=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];a[1]=t[3]*r[0]+t[4]*r[1]+t[5]*r[2];a[2]=t[6]*r[0]+t[7]*r[1]+t[8]*r[2]}function sRGBTransferFunction(t){return t<=.0031308?adjustToRange(0,1,12.92*t):t>=.99554525?1:adjustToRange(0,1,1.055*Math.pow(t,1/2.4)-.055)}function adjustToRange(t,r,a){return Math.max(t,Math.min(r,a))}function decodeL(t){return t<0?-decodeL(-t):t>8?Math.pow((t+16)/116,3):t*d}function convertToRgb(o,u,d,p,g,m){var y=adjustToRange(0,1,u[d]*m),b=adjustToRange(0,1,u[d+1]*m),v=adjustToRange(0,1,u[d+2]*m),S=1===y?1:Math.pow(y,o.GR),k=1===b?1:Math.pow(b,o.GG),w=1===v?1:Math.pow(v,o.GB),C=o.MXA*S+o.MXB*k+o.MXC*w,_=o.MYA*S+o.MYB*k+o.MYC*w,x=o.MZA*S+o.MZB*k+o.MZC*w,A=c;A[0]=C;A[1]=_;A[2]=x;var T=h;!function normalizeWhitePointToFlat(a,i,o){if(1!==a[0]||1!==a[2]){var c=o;matrixProduct(t,i,c);var u=l;!function convertToFlat(t,r,a){a[0]=1*r[0]/t[0];a[1]=1*r[1]/t[1];a[2]=1*r[2]/t[2]}(a,c,u);matrixProduct(r,u,o)}else{o[0]=i[0];o[1]=i[1];o[2]=i[2]}}(o.whitePoint,A,T);var P=c;!function compensateBlackPoint(t,r,a){if(0!==t[0]||0!==t[1]||0!==t[2]){var i=decodeL(0),o=(1-i)/(1-decodeL(t[0])),l=1-o,c=(1-i)/(1-decodeL(t[1])),u=1-c,h=(1-i)/(1-decodeL(t[2])),d=1-h;a[0]=r[0]*o+l;a[1]=r[1]*c+u;a[2]=r[2]*h+d}else{a[0]=r[0];a[1]=r[1];a[2]=r[2]}}(o.blackPoint,T,P);var R=h;!function normalizeWhitePointToD65(a,i,o){var c=o;matrixProduct(t,i,c);var u=l;!function convertToD65(t,r,a){a[0]=.95047*r[0]/t[0];a[1]=1*r[1]/t[1];a[2]=1.08883*r[2]/t[2]}(a,c,u);matrixProduct(r,u,o)}(i,P,R);var I=c;matrixProduct(a,R,I);p[g]=255*sRGBTransferFunction(I[0]);p[g+1]=255*sRGBTransferFunction(I[1]);p[g+2]=255*sRGBTransferFunction(I[2])}return function(t){_inherits(CalRGBCS,t);var r=_createSuper(CalRGBCS);function CalRGBCS(t,a,i,l){var c;_classCallCheck(this,CalRGBCS);c=r.call(this,"CalRGB",3);if(!t)throw new o.FormatError("WhitePoint missing - required for color space CalRGB");a=a||new Float32Array(3);i=i||new Float32Array([1,1,1]);l=l||new Float32Array([1,0,0,0,1,0,0,0,1]);var u=t[0],h=t[1],d=t[2];c.whitePoint=t;var p=a[0],g=a[1],m=a[2];c.blackPoint=a;c.GR=i[0];c.GG=i[1];c.GB=i[2];c.MXA=l[0];c.MYA=l[1];c.MZA=l[2];c.MXB=l[3];c.MYB=l[4];c.MZB=l[5];c.MXC=l[6];c.MYC=l[7];c.MZC=l[8];if(u<0||d<0||1!==h)throw new o.FormatError("Invalid WhitePoint components for ".concat(c.name)+", no fallback available");if(p<0||g<0||m<0){(0,o.info)("Invalid BlackPoint for ".concat(c.name," [").concat(p,", ").concat(g,", ").concat(m,"], ")+"falling back to default.");c.blackPoint=new Float32Array(3)}if(c.GR<0||c.GG<0||c.GB<0){(0,o.info)("Invalid Gamma [".concat(c.GR,", ").concat(c.GG,", ").concat(c.GB,"] for ")+"".concat(c.name,", falling back to default."));c.GR=c.GG=c.GB=1}return c}_createClass(CalRGBCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){convertToRgb(this,t,r,a,i,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){for(var u=1/((1<<l)-1),h=0;h<a;++h){convertToRgb(this,t,r,i,o,u);r+=3;o+=3+c}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}}]);return CalRGBCS}(u)}(),S=function LabCSClosure(){function fn_g(t){return t>=6/29?t*t*t:108/841*(t-4/29)}function decode(t,r,a,i){return a+t*(i-a)/r}function convertToRgb(t,r,a,i,o,l){var c=r[a],u=r[a+1],h=r[a+2];if(!1!==i){c=decode(c,i,0,100);u=decode(u,i,t.amin,t.amax);h=decode(h,i,t.bmin,t.bmax)}u>t.amax?u=t.amax:u<t.amin&&(u=t.amin);h>t.bmax?h=t.bmax:h<t.bmin&&(h=t.bmin);var d,p,g,m=(c+16)/116,y=m+u/500,b=m-h/200,v=t.XW*fn_g(y),S=t.YW*fn_g(m),k=t.ZW*fn_g(b);if(t.ZW<1){d=3.1339*v+-1.617*S+-.4906*k;p=-.9785*v+1.916*S+.0333*k;g=.072*v+-.229*S+1.4057*k}else{d=3.2406*v+-1.5372*S+-.4986*k;p=-.9689*v+1.8758*S+.0415*k;g=.0557*v+-.204*S+1.057*k}o[l]=255*Math.sqrt(d);o[l+1]=255*Math.sqrt(p);o[l+2]=255*Math.sqrt(g)}return function(t){_inherits(LabCS,t);var r=_createSuper(LabCS);function LabCS(t,a,i){var l;_classCallCheck(this,LabCS);l=r.call(this,"Lab",3);if(!t)throw new o.FormatError("WhitePoint missing - required for color space Lab");a=a||[0,0,0];i=i||[-100,100,-100,100];l.XW=t[0];l.YW=t[1];l.ZW=t[2];l.amin=i[0];l.amax=i[1];l.bmin=i[2];l.bmax=i[3];l.XB=a[0];l.YB=a[1];l.ZB=a[2];if(l.XW<0||l.ZW<0||1!==l.YW)throw new o.FormatError("Invalid WhitePoint components, no fallback available");if(l.XB<0||l.YB<0||l.ZB<0){(0,o.info)("Invalid BlackPoint, falling back to default");l.XB=l.YB=l.ZB=0}if(l.amin>l.amax||l.bmin>l.bmax){(0,o.info)("Invalid Range, falling back to defaults");l.amin=-100;l.amax=100;l.bmin=-100;l.bmax=100}return l}_createClass(LabCS,[{key:"getRgbItem",value:function getRgbItem(t,r,a,i){convertToRgb(this,t,r,!1,a,i)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,a,i,o,l,c){for(var u=(1<<l)-1,h=0;h<a;h++){convertToRgb(this,t,r,u,i,o);r+=3;o+=3+c}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return!0}},{key:"usesZeroToOneRange",get:function get(){return(0,o.shadow)(this,"usesZeroToOneRange",!1)}}]);return LabCS}(u)}()},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.LocalTilingPatternCache=r.LocalImageCache=r.LocalGStateCache=r.LocalFunctionCache=r.LocalColorSpaceCache=r.GlobalImageCache=void 0;var i=a(4),o=a(135);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var l=function(){function BaseLocalCache(t){_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&(0,i.unreachable)("Cannot initialize BaseLocalCache.");if(!t||!t.onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new o.RefSetCache}_createClass(BaseLocalCache,[{key:"getByName",value:function getByName(t){var r=this._nameRefMap.get(t);return r?this.getByRef(r):this._imageMap.get(t)||null}},{key:"getByRef",value:function getByRef(t){return this._imageCache.get(t)||null}},{key:"set",value:function set(t,r,a){(0,i.unreachable)("Abstract method `set` called.")}}]);return BaseLocalCache}(),c=function(t){_inherits(LocalImageCache,t);var r=_createSuper(LocalImageCache);function LocalImageCache(){_classCallCheck(this,LocalImageCache);return r.apply(this,arguments)}_createClass(LocalImageCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalImageCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,a)}else this._imageMap.has(t)||this._imageMap.set(t,a)}}]);return LocalImageCache}(l);r.LocalImageCache=c;var u=function(t){_inherits(LocalColorSpaceCache,t);var r=_createSuper(LocalColorSpaceCache);function LocalColorSpaceCache(){_classCallCheck(this,LocalColorSpaceCache);return r.apply(this,arguments)}_createClass(LocalColorSpaceCache,[{key:"set",value:function set(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;if(!t&&!r)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(r){if(this._imageCache.has(r))return;t&&this._nameRefMap.set(t,r);this._imageCache.put(r,a)}else this._imageMap.has(t)||this._imageMap.set(t,a)}}]);return LocalColorSpaceCache}(l);r.LocalColorSpaceCache=u;var h=function(t){_inherits(LocalFunctionCache,t);var r=_createSuper(LocalFunctionCache);function LocalFunctionCache(t){_classCallCheck(this,LocalFunctionCache);return r.call(this,{onlyRefs:!0})}_createClass(LocalFunctionCache,[{key:"getByName",value:function getByName(t){(0,i.unreachable)("Should not call `getByName` method.")}},{key:"set",value:function set(){var t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return LocalFunctionCache}(l);r.LocalFunctionCache=h;var d=function(t){_inherits(LocalGStateCache,t);var r=_createSuper(LocalGStateCache);function LocalGStateCache(){_classCallCheck(this,LocalGStateCache);return r.apply(this,arguments)}_createClass(LocalGStateCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalGStateCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,a)}else this._imageMap.has(t)||this._imageMap.set(t,a)}}]);return LocalGStateCache}(l);r.LocalGStateCache=d;var p=function(t){_inherits(LocalTilingPatternCache,t);var r=_createSuper(LocalTilingPatternCache);function LocalTilingPatternCache(){_classCallCheck(this,LocalTilingPatternCache);return r.apply(this,arguments)}_createClass(LocalTilingPatternCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalTilingPatternCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,a)}else this._imageMap.has(t)||this._imageMap.set(t,a)}}]);return LocalTilingPatternCache}(l);r.LocalTilingPatternCache=p;var g=function(){_createClass(GlobalImageCache,null,[{key:"NUM_PAGES_THRESHOLD",get:function get(){return(0,i.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MAX_IMAGES_TO_CACHE",get:function get(){return(0,i.shadow)(this,"MAX_IMAGES_TO_CACHE",10)}}]);function GlobalImageCache(){_classCallCheck(this,GlobalImageCache);this._refCache=new o.RefSetCache;this._imageCache=new o.RefSetCache}_createClass(GlobalImageCache,[{key:"shouldCache",value:function shouldCache(t,r){var a=this._refCache.get(t);return!((a?a.size+(a.has(r)?0:1):1)<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this._imageCache.size>=GlobalImageCache.MAX_IMAGES_TO_CACHE)}},{key:"addPageIndex",value:function addPageIndex(t,r){var a=this._refCache.get(t);if(!a){a=new Set;this._refCache.put(t,a)}a.add(r)}},{key:"getData",value:function getData(t,r){var a=this._refCache.get(t);if(!a)return null;if(a.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;if(!this._imageCache.has(t))return null;a.add(r);return this._imageCache.get(t)}},{key:"setData",value:function setData(t,r){if(!this._refCache.has(t))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(t)||(this._imageCache.size>=GlobalImageCache.MAX_IMAGES_TO_CACHE?(0,i.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE."):this._imageCache.put(t,r))}},{key:"clear",value:function clear(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t||this._refCache.clear();this._imageCache.clear()}}]);return GlobalImageCache}();r.GlobalImageCache=g},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.getQuadPoints=getQuadPoints;r.MarkupAnnotation=r.AnnotationFactory=r.AnnotationBorderStyle=r.Annotation=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(140),c=a(138),u=a(156),h=a(135),d=a(153),p=a(174),g=a(142),m=a(176);function _get(t,r,a){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,a){var i=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(a):o.value}})(t,r,a||t)}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var y=function(){function AnnotationFactory(){_classCallCheck(this,AnnotationFactory)}_createClass(AnnotationFactory,null,[{key:"create",value:function create(t,r,a,i){var o=this;return a.ensureCatalog("acroForm").then((function(l){return a.ensure(o,"_create",[t,r,a,i,l])}))}},{key:"_create",value:function _create(t,r,a,i,l){var u=t.fetchIfRef(r);if((0,h.isDict)(u)){var d=(0,h.isRef)(r)?r.toString():"annot_".concat(i.createObjId()),p=u.get("Subtype"),g={xref:t,ref:r,dict:u,subtype:p=(0,h.isName)(p)?p.name:null,id:d,pdfManager:a,acroForm:l instanceof h.Dict?l:h.Dict.empty};switch(p){case"Link":return new A(g);case"Text":return new x(g);case"Widget":var m=(0,c.getInheritableProperty)({dict:u,key:"FT"});switch(m=(0,h.isName)(m)?m.name:null){case"Tx":return new w(g);case"Btn":return new C(g);case"Ch":return new _(g)}(0,o.warn)('Unimplemented widget field type "'+m+'", falling back to base field type.');return new k(g);case"Popup":return new T(g);case"FreeText":return new P(g);case"Line":return new R(g);case"Square":return new I(g);case"Circle":return new O(g);case"PolyLine":return new E(g);case"Polygon":return new D(g);case"Caret":return new B(g);case"Ink":return new M(g);case"Highlight":return new L(g);case"Underline":return new N(g);case"Squiggly":return new j(g);case"StrikeOut":return new U(g);case"Stamp":return new q(g);case"FileAttachment":return new W(g);default:p?(0,o.warn)('Unimplemented annotation type "'+p+'", falling back to base annotation.'):(0,o.warn)("Annotation is missing the required /Subtype.");return new b(g)}}}}]);return AnnotationFactory}();r.AnnotationFactory=y;function getQuadPoints(t,r){if(!t.has("QuadPoints"))return null;var a=t.getArray("QuadPoints");if(!Array.isArray(a)||0===a.length||a.length%8>0)return null;for(var i=[],o=0,l=a.length/8;o<l;o++){i.push([]);for(var c=8*o,u=8*o+8;c<u;c+=2){var h=a[c],d=a[c+1];if(null!==r&&(h<r[0]||h>r[2]||d<r[1]||d>r[3]))return null;i[o].push({x:h,y:d})}}return i.map((function(t){var r=t.reduce((function(t,r){var a=_slicedToArray(t,4),i=a[0],o=a[1],l=a[2],c=a[3];return[Math.min(i,r.x),Math.max(o,r.x),Math.min(l,r.y),Math.max(c,r.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),a=_slicedToArray(r,4),i=a[0],o=a[1],l=a[2],c=a[3];return[{x:i,y:c},{x:o,y:c},{x:i,y:l},{x:o,y:l}]}))}function getTransformMatrix(t,r,a){var i=_slicedToArray(o.Util.getAxialAlignedBoundingBox(r,a),4),l=i[0],c=i[1],u=i[2],h=i[3];if(l===u||c===h)return[1,0,0,1,t[0],t[1]];var d=(t[2]-t[0])/(u-l),p=(t[3]-t[1])/(h-c);return[d,0,0,p,t[0]-l*d,t[1]-c*p]}var b=function(){function Annotation(t){_classCallCheck(this,Annotation);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._streams=[];this.appearance&&this._streams.push(this.appearance);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};this._fallbackFontDict=null}_createClass(Annotation,[{key:"_hasFlag",value:function _hasFlag(t,r){return!!(t&r)}},{key:"_isViewable",value:function _isViewable(t){return!this._hasFlag(t,o.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,o.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function _isPrintable(t){return this._hasFlag(t,o.AnnotationFlag.PRINT)&&!this._hasFlag(t,o.AnnotationFlag.INVISIBLE)}},{key:"isHidden",value:function isHidden(t){var r=t&&t[this.data.id];return r&&"hidden"in r?r.hidden:this._hasFlag(this.flags,o.AnnotationFlag.HIDDEN)}},{key:"setContents",value:function setContents(t){this.contents=(0,o.stringToPDFString)(t||"")}},{key:"setModificationDate",value:function setModificationDate(t){this.modificationDate=(0,o.isString)(t)?t:null}},{key:"setFlags",value:function setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0}},{key:"hasFlag",value:function hasFlag(t){return this._hasFlag(this.flags,t)}},{key:"setRectangle",value:function setRectangle(t){Array.isArray(t)&&4===t.length?this.rectangle=o.Util.normalizeRect(t):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function setColor(t){var r=new Uint8ClampedArray(3);if(Array.isArray(t))switch(t.length){case 0:this.color=null;break;case 1:d.ColorSpace.singletons.gray.getRgbItem(t,0,r,0);this.color=r;break;case 3:d.ColorSpace.singletons.rgb.getRgbItem(t,0,r,0);this.color=r;break;case 4:d.ColorSpace.singletons.cmyk.getRgbItem(t,0,r,0);this.color=r;break;default:this.color=r}else this.color=r}},{key:"setBorderStyle",value:function setBorderStyle(t){this.borderStyle=new v;if((0,h.isDict)(t))if(t.has("BS")){var r=t.get("BS"),a=r.get("Type");if(!a||(0,h.isName)(a,"Border")){this.borderStyle.setWidth(r.get("W"),this.rectangle);this.borderStyle.setStyle(r.get("S"));this.borderStyle.setDashArray(r.getArray("D"))}}else if(t.has("Border")){var i=t.getArray("Border");if(Array.isArray(i)&&i.length>=3){this.borderStyle.setHorizontalCornerRadius(i[0]);this.borderStyle.setVerticalCornerRadius(i[1]);this.borderStyle.setWidth(i[2],this.rectangle);4===i.length&&this.borderStyle.setDashArray(i[3])}}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function setAppearance(t){this.appearance=null;var r=t.get("AP");if((0,h.isDict)(r)){var a=r.get("N");if((0,h.isStream)(a))this.appearance=a;else if((0,h.isDict)(a)){var i=t.get("AS");(0,h.isName)(i)&&a.has(i.name)&&(this.appearance=a.get(i.name))}}}},{key:"loadResources",value:function loadResources(t){return this.appearance.dict.getAsync("Resources").then((function(r){if(r){return new l.ObjectLoader(r,t,r.xref).load().then((function(){return r}))}}))}},{key:"getOperatorList",value:function getOperatorList(t,r,a,i){var l=this;if(!this.appearance)return Promise.resolve(new p.OperatorList);var c=this.appearance,u=this.data,h=c.dict,d=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),g=h.getArray("BBox")||[0,0,1,1],m=h.getArray("Matrix")||[1,0,0,1,0,0],y=getTransformMatrix(u.rect,g,m);return d.then((function(a){var i=new p.OperatorList;i.addOp(o.OPS.beginAnnotation,[u.rect,y,m]);return t.getOperatorList({stream:c,task:r,resources:a,operatorList:i,fallbackFontDict:l._fallbackFontDict}).then((function(){i.addOp(o.OPS.endAnnotation,[]);l.reset();return i}))}))}},{key:"save",value:(t=_asyncToGenerator(i.default.mark((function _callee(t,r,a){return i.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),_callee)}))),function save(r,a,i){return t.apply(this,arguments)})},{key:"getFieldObject",value:function getFieldObject(){return null}},{key:"reset",value:function reset(){var t,r=_createForOfIteratorHelper(this._streams);try{for(r.s();!(t=r.n()).done;){t.value.reset()}}catch(t){r.e(t)}finally{r.f()}}},{key:"viewable",get:function get(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function get(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}}]);var t;return Annotation}();r.Annotation=b;var v=function(){function AnnotationBorderStyle(){_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=o.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}_createClass(AnnotationBorderStyle,[{key:"setWidth",value:function setWidth(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,h.isName)(t))this.width=0;else if(Number.isInteger(t)){if(t>0){var a=(r[2]-r[0])/2,i=(r[3]-r[1])/2;if(a>0&&i>0&&(t>a||t>i)){(0,o.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(t));t=1}}this.width=t}}},{key:"setStyle",value:function setStyle(t){if((0,h.isName)(t))switch(t.name){case"S":this.style=o.AnnotationBorderStyleType.SOLID;break;case"D":this.style=o.AnnotationBorderStyleType.DASHED;break;case"B":this.style=o.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=o.AnnotationBorderStyleType.INSET;break;case"U":this.style=o.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function setDashArray(t){if(Array.isArray(t)&&t.length>0){var r,a=!0,i=!0,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var l=r.value;if(!(+l>=0)){a=!1;break}l>0&&(i=!1)}}catch(t){o.e(t)}finally{o.f()}a&&!i?this.dashArray=t:this.width=0}else t&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}},{key:"setVerticalCornerRadius",value:function setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}}]);return AnnotationBorderStyle}();r.AnnotationBorderStyle=v;var S=function(t){_inherits(MarkupAnnotation,t);var r=_createSuper(MarkupAnnotation);function MarkupAnnotation(t){var a;_classCallCheck(this,MarkupAnnotation);a=r.call(this,t);var i=t.dict;if(i.has("IRT")){var l=i.getRaw("IRT");a.data.inReplyTo=(0,h.isRef)(l)?l.toString():null;var c=i.get("RT");a.data.replyType=(0,h.isName)(c)?c.name:o.AnnotationReplyType.REPLY}if(a.data.replyType===o.AnnotationReplyType.GROUP){var u=i.get("IRT");a.data.title=(0,o.stringToPDFString)(u.get("T")||"");a.setContents(u.get("Contents"));a.data.contents=a.contents;if(u.has("CreationDate")){a.setCreationDate(u.get("CreationDate"));a.data.creationDate=a.creationDate}else a.data.creationDate=null;if(u.has("M")){a.setModificationDate(u.get("M"));a.data.modificationDate=a.modificationDate}else a.data.modificationDate=null;a.data.hasPopup=u.has("Popup");if(u.has("C")){a.setColor(u.getArray("C"));a.data.color=a.color}else a.data.color=null}else{a.data.title=(0,o.stringToPDFString)(i.get("T")||"");a.setCreationDate(i.get("CreationDate"));a.data.creationDate=a.creationDate;a.data.hasPopup=i.has("Popup");i.has("C")||(a.data.color=null)}return a}_createClass(MarkupAnnotation,[{key:"setCreationDate",value:function setCreationDate(t){this.creationDate=(0,o.isString)(t)?t:null}},{key:"_setDefaultAppearance",value:function _setDefaultAppearance(t){var r=t.xref,a=t.extra,i=t.strokeColor,o=t.fillColor,l=t.blendMode,c=t.pointsCallback,u=Number.MAX_VALUE,d=Number.MAX_VALUE,p=Number.MIN_VALUE,m=Number.MIN_VALUE,y=["q"];a&&y.push(a);i&&y.push("".concat(i[0]," ").concat(i[1]," ").concat(i[2]," RG"));o&&y.push("".concat(o[0]," ").concat(o[1]," ").concat(o[2]," rg"));var b,v=_createForOfIteratorHelper(this.data.quadPoints);try{for(v.s();!(b=v.n()).done;){var S=_slicedToArray(c(y,b.value),4),k=S[0],w=S[1],C=S[2],_=S[3];u=Math.min(u,k);p=Math.max(p,w);d=Math.min(d,C);m=Math.max(m,_)}}catch(t){v.e(t)}finally{v.f()}y.push("Q");var x=new h.Dict(r),A=new h.Dict(r);A.set("Subtype",h.Name.get("Form"));var T=new g.StringStream(y.join(" "));T.dict=A;x.set("Fm0",T);var P=new h.Dict(r);l&&P.set("BM",h.Name.get(l));var R=new h.Dict(r);R.set("GS0",P);var I=new h.Dict(r);I.set("ExtGState",R);I.set("XObject",x);var O=new h.Dict(r);O.set("Resources",I);var E=this.data.rect=[u,d,p,m];O.set("BBox",E);this.appearance=new g.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=O;this._streams.push(this.appearance,T)}}]);return MarkupAnnotation}(b);r.MarkupAnnotation=S;var k=function(t){_inherits(WidgetAnnotation,t);var r,a,l,d=_createSuper(WidgetAnnotation);function WidgetAnnotation(t){var r;_classCallCheck(this,WidgetAnnotation);r=d.call(this,t);var a=t.dict,i=r.data;r.ref=t.ref;i.annotationType=o.AnnotationType.WIDGET;i.fieldName=r._constructFieldName(a);i.actions=(0,c.collectActions)(t.xref,a,o.AnnotationActionEventType);var l=(0,c.getInheritableProperty)({dict:a,key:"V",getArray:!0});i.fieldValue=r._decodeFormValue(l);var p=(0,c.getInheritableProperty)({dict:a,key:"DV",getArray:!0});i.defaultFieldValue=r._decodeFormValue(p);i.alternativeText=(0,o.stringToPDFString)(a.get("TU")||"");var g=(0,c.getInheritableProperty)({dict:a,key:"DA"})||t.acroForm.get("DA")||"";i.defaultAppearance=(0,o.isString)(g)?g:"";i.defaultAppearanceData=(0,u.parseDefaultAppearance)(i.defaultAppearance);var m=(0,c.getInheritableProperty)({dict:a,key:"FT"});i.fieldType=(0,h.isName)(m)?m.name:null;var y=(0,c.getInheritableProperty)({dict:a,key:"DR"}),b=t.acroForm.get("DR"),v=r.appearance&&r.appearance.dict.get("Resources");r._fieldResources={localResources:y,acroFormResources:b,appearanceResources:v,mergedResources:h.Dict.merge({xref:t.xref,dictArray:[y,v,b],mergeSubDicts:!0})};i.fieldFlags=(0,c.getInheritableProperty)({dict:a,key:"Ff"});(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0)&&(i.fieldFlags=0);i.readOnly=r.hasFieldFlag(o.AnnotationFieldFlag.READONLY);i.hidden=r._hasFlag(i.annotationFlags,o.AnnotationFlag.HIDDEN);if("Sig"===i.fieldType){i.fieldValue=null;r.setFlags(o.AnnotationFlag.HIDDEN);i.hidden=!0}return r}_createClass(WidgetAnnotation,[{key:"_constructFieldName",value:function _constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){(0,o.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent"))return(0,o.stringToPDFString)(t.get("T"));var r=[];t.has("T")&&r.unshift((0,o.stringToPDFString)(t.get("T")));for(var a=t;a.has("Parent");){a=a.get("Parent");if(!(0,h.isDict)(a))break;a.has("T")&&r.unshift((0,o.stringToPDFString)(a.get("T")))}return r.join(".")}},{key:"_decodeFormValue",value:function _decodeFormValue(t){return Array.isArray(t)?t.filter((function(t){return(0,o.isString)(t)})).map((function(t){return(0,o.stringToPDFString)(t)})):(0,h.isName)(t)?(0,o.stringToPDFString)(t.name):(0,o.isString)(t)?(0,o.stringToPDFString)(t):null}},{key:"hasFieldFlag",value:function hasFieldFlag(t){return!!(this.data.fieldFlags&t)}},{key:"getOperatorList",value:function getOperatorList(t,r,a,i){var l=this;return a?Promise.resolve(new p.OperatorList):this._hasText?this._getAppearance(t,r,i).then((function(c){if(l.appearance&&null===c)return _get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",l).call(l,t,r,a,i);var u=new p.OperatorList;if(!l.data.defaultAppearance||null===c)return u;var h=[1,0,0,1,0,0],d=[0,0,l.data.rect[2]-l.data.rect[0],l.data.rect[3]-l.data.rect[1]],m=getTransformMatrix(l.data.rect,d,h);u.addOp(o.OPS.beginAnnotation,[l.data.rect,m,h]);var y=new g.StringStream(c);return t.getOperatorList({stream:y,task:r,resources:l._fieldResources.mergedResources,operatorList:u}).then((function(){u.addOp(o.OPS.endAnnotation,[]);return u}))})):_get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,a,i)}},{key:"save",value:(l=_asyncToGenerator(i.default.mark((function _callee2(t,r,a){var l,c,u,d,p,g,y,b,v,S,k,w,C,_;return i.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:if((l=a[this.data.id]&&a[this.data.id].value)!==this.data.fieldValue&&void 0!==l){i.next=3;break}return i.abrupt("return",null);case 3:i.next=5;return this._getAppearance(t,r,a);case 5:if(null!==(c=i.sent)){i.next=8;break}return i.abrupt("return",null);case 8:u=t.xref;d=u.fetchIfRef(this.ref);if((0,h.isDict)(d)){i.next=12;break}return i.abrupt("return",null);case 12:p=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];g={path:(0,o.stringToPDFString)(d.get("T")||""),value:l};y=u.getNewRef();(b=new h.Dict(u)).set("N",y);v=u.encrypt;S=null;k=null;if(v){S=v.createCipherTransform(this.ref.num,this.ref.gen);k=v.createCipherTransform(y.num,y.gen);c=k.encryptString(c)}d.set("V",(0,o.isAscii)(l)?l:(0,o.stringToUTF16BEString)(l));d.set("AP",b);d.set("M","D:".concat((0,o.getModificationDate)()));(w=new h.Dict(u)).set("Length",c.length);w.set("Subtype",h.Name.get("Form"));w.set("Resources",this._getSaveFieldResources(u));w.set("BBox",p);C=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,m.writeDict)(d,C,S);C.push("\nendobj\n");_=["".concat(y.num," ").concat(y.gen," obj\n")];(0,m.writeDict)(w,_,k);_.push(" stream\n");_.push(c);_.push("\nendstream\nendobj\n");return i.abrupt("return",[{ref:this.ref,data:C.join(""),xfa:g},{ref:y,data:_.join(""),xfa:null}]);case 38:case"end":return i.stop()}}),_callee2,this)}))),function save(t,r,a){return l.apply(this,arguments)})},{key:"_getAppearance",value:(a=_asyncToGenerator(i.default.mark((function _callee3(t,r,a){var l,c,h,d,p,g,m,y,b,v,S,k,w,C;return i.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:l=this.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD);if(a&&!l){i.next=3;break}return i.abrupt("return",null);case 3:if(void 0!==(c=a[this.data.id]&&a[this.data.id].value)){i.next=6;break}return i.abrupt("return",null);case 6:if(""!==c){i.next=8;break}return i.abrupt("return","");case 8:d=h=2;p=this.data.rect[3]-this.data.rect[1];g=this.data.rect[2]-this.data.rect[0];if(!this.data.defaultAppearance){this.data.defaultAppearance="/Helvetica 0 Tf 0 g";this.data.defaultAppearanceData=(0,u.parseDefaultAppearance)(this.data.defaultAppearance)}i.next=15;return this._getFontData(t,r);case 15:m=i.sent;y=this._computeFontSize(m,p);b=m.descent;isNaN(b)&&(b=0);v=h+Math.abs(b)*y;S=this.data.defaultAppearance;k=this.data.textAlignment;if(!this.data.multiLine){i.next=24;break}return i.abrupt("return",this._getMultilineAppearance(S,c,m,y,g,p,k,d,v));case 24:w=m.encodeString(c).join("");if(!this.data.comb){i.next=27;break}return i.abrupt("return",this._getCombAppearance(S,m,w,g,d,v));case 27:if(!(0===k||k>2)){i.next=29;break}return i.abrupt("return","/Tx BMC q BT "+S+" 1 0 0 1 ".concat(d," ").concat(v," Tm (").concat((0,o.escapeString)(w),") Tj")+" ET Q EMC");case 29:C=this._renderText(w,m,y,g,k,d,v);return i.abrupt("return","/Tx BMC q BT "+S+" 1 0 0 1 0 0 Tm ".concat(C)+" ET Q EMC");case 31:case"end":return i.stop()}}),_callee3,this)}))),function _getAppearance(t,r,i){return a.apply(this,arguments)})},{key:"_getFontData",value:(r=_asyncToGenerator(i.default.mark((function _callee4(t,r){var a,o,l,c,u;return i.default.wrap((function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:a=new p.OperatorList;o={font:null,clone:function clone(){return this}};l=this.data.defaultAppearanceData,c=l.fontName,u=l.fontSize;i.next=5;return t.handleSetFont(this._fieldResources.mergedResources,[c,u],null,a,r,o,null);case 5:return i.abrupt("return",o.font);case 6:case"end":return i.stop()}}),_callee4,this)}))),function _getFontData(t,a){return r.apply(this,arguments)})},{key:"_computeFontSize",value:function _computeFontSize(t,r){var a=this.data.defaultAppearanceData.fontSize;if(!a){var i,o=this.data.defaultAppearanceData,l=o.fontColor,c=o.fontName;if(t.capHeight)i=t.capHeight;else{var h=t.charsToGlyphs(t.encodeString("M").join(""));if(1===h.length&&h[0].width){i=.7*(h[0].width/1e3)}else i=.7}a=Math.max(1,Math.floor(r/(1.5*i)));this.data.defaultAppearance=(0,u.createDefaultAppearance)({fontSize:a,fontName:c,fontColor:l})}return a}},{key:"_renderText",value:function _renderText(t,r,a,i,l,c,u){var h,d,p=a/1e3,g=0,m=_createForOfIteratorHelper(r.charsToGlyphs(t));try{for(m.s();!(h=m.n()).done;){g+=h.value.width*p}}catch(t){m.e(t)}finally{m.f()}d=(d=1===l?(i-g)/2:2===l?i-g-c:c).toFixed(2);u=u.toFixed(2);return"".concat(d," ").concat(u," Td (").concat((0,o.escapeString)(t),") Tj")}},{key:"_getSaveFieldResources",value:function _getSaveFieldResources(t){var r=this._fieldResources,a=r.localResources,i=r.appearanceResources,o=r.acroFormResources,l=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName.name;if(!l)return a||h.Dict.empty;for(var c=0,u=[a,i];c<u.length;c++){var d=u[c];if(d instanceof h.Dict){var p=d.get("Font");if(p instanceof h.Dict&&p.has(l))return d}}if(o instanceof h.Dict){var g=o.get("Font");if(g instanceof h.Dict&&g.has(l)){var m=new h.Dict(t);m.set(l,g.getRaw(l));var y=new h.Dict(t);y.set("Font",m);return h.Dict.merge({xref:t,dictArray:[y,a],mergeSubDicts:!0})}}return a||h.Dict.empty}},{key:"getFieldObject",value:function getFieldObject(){return"Sig"===this.data.fieldType?{id:this.data.id,value:null,type:"signature"}:null}}]);return WidgetAnnotation}(b),w=function(t){_inherits(TextWidgetAnnotation,t);var r=_createSuper(TextWidgetAnnotation);function TextWidgetAnnotation(t){var a;_classCallCheck(this,TextWidgetAnnotation);(a=r.call(this,t))._hasText=!0;var i=t.dict;(0,o.isString)(a.data.fieldValue)||(a.data.fieldValue="");var l=(0,c.getInheritableProperty)({dict:i,key:"Q"});(!Number.isInteger(l)||l<0||l>2)&&(l=null);a.data.textAlignment=l;var u=(0,c.getInheritableProperty)({dict:i,key:"MaxLen"});(!Number.isInteger(u)||u<0)&&(u=null);a.data.maxLen=u;a.data.multiLine=a.hasFieldFlag(o.AnnotationFieldFlag.MULTILINE);a.data.comb=a.hasFieldFlag(o.AnnotationFieldFlag.COMB)&&!a.hasFieldFlag(o.AnnotationFieldFlag.MULTILINE)&&!a.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD)&&!a.hasFieldFlag(o.AnnotationFieldFlag.FILESELECT)&&null!==a.data.maxLen;return a}_createClass(TextWidgetAnnotation,[{key:"_getCombAppearance",value:function _getCombAppearance(t,r,a,i,l,c){var u,h=(i/this.data.maxLen).toFixed(2),d=[],p=_createForOfIteratorHelper(r.getCharPositions(a));try{for(p.s();!(u=p.n()).done;){var g=_slicedToArray(u.value,2),m=g[0],y=g[1];d.push("(".concat((0,o.escapeString)(a.substring(m,y)),") Tj"))}}catch(t){p.e(t)}finally{p.f()}var b=d.join(" ".concat(h," 0 Td "));return"/Tx BMC q BT "+t+" 1 0 0 1 ".concat(l," ").concat(c," Tm ").concat(b)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function _getMultilineAppearance(t,r,a,i,o,l,c,u,h){var d,p=[],g=o-2*u,m=_createForOfIteratorHelper(r.split(/\r\n|\r|\n/));try{for(m.s();!(d=m.n()).done;){var y,b=d.value,v=_createForOfIteratorHelper(this._splitLine(b,a,i,g));try{for(v.s();!(y=v.n()).done;){var S=y.value,k=0===p.length?u:0;p.push(this._renderText(S,a,i,o,c,k,-i))}}catch(t){v.e(t)}finally{v.f()}}}catch(t){m.e(t)}finally{m.f()}var w=p.join("\n");return"/Tx BMC q BT "+t+" 1 0 0 1 0 ".concat(l," Tm ").concat(w)+" ET Q EMC"}},{key:"_splitLine",value:function _splitLine(t,r,a,i){t=r.encodeString(t).join("");var o=r.charsToGlyphs(t);if(o.length<=1)return[t];for(var l=r.getCharPositions(t),c=a/1e3,u=[],h=-1,d=-1,p=-1,g=0,m=0,y=0,b=o.length;y<b;y++){var v=_slicedToArray(l[y],2),S=v[0],k=v[1],w=o[y],C=w.width*c;if(" "===w.unicode)if(m+C>i){u.push(t.substring(g,S));g=S;m=C;h=-1;p=-1}else{m+=C;h=S;d=k;p=y}else if(m+C>i)if(-1!==h){u.push(t.substring(g,d));g=d;y=p+1;h=-1;m=0}else{u.push(t.substring(g,S));g=S;m=C}else m+=C}g<t.length&&u.push(t.substring(g,t.length));return u}},{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue,multiline:this.data.multiLine,password:this.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,type:"text"}}}]);return TextWidgetAnnotation}(k),C=function(t){_inherits(ButtonWidgetAnnotation,t);var r,a,c,u=_createSuper(ButtonWidgetAnnotation);function ButtonWidgetAnnotation(t){var r;_classCallCheck(this,ButtonWidgetAnnotation);(r=u.call(this,t)).checkedAppearance=null;r.uncheckedAppearance=null;r.data.checkBox=!r.hasFieldFlag(o.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON);r.data.radioButton=r.hasFieldFlag(o.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON);r.data.pushButton=r.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON);r.data.isTooltipOnly=!1;r.data.checkBox?r._processCheckBox(t):r.data.radioButton?r._processRadioButton(t):r.data.pushButton?r._processPushButton(t):(0,o.warn)("Invalid field flags for button widget annotation");return r}_createClass(ButtonWidgetAnnotation,[{key:"getOperatorList",value:function getOperatorList(t,r,a,i){if(this.data.pushButton)return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,!1,i);if(i){var o,l=i[this.data.id]&&i[this.data.id].value;if(void 0===l)return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,a,i);if(o=l?this.checkedAppearance:this.uncheckedAppearance){var c=this.appearance;this.appearance=o;var u=_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,a,i);this.appearance=c;return u}return Promise.resolve(new p.OperatorList)}return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,a,i)}},{key:"save",value:(c=_asyncToGenerator(i.default.mark((function _callee5(t,r,a){return i.default.wrap((function _callee5$(i){for(;;)switch(i.prev=i.next){case 0:if(!this.data.checkBox){i.next=2;break}return i.abrupt("return",this._saveCheckbox(t,r,a));case 2:if(!this.data.radioButton){i.next=4;break}return i.abrupt("return",this._saveRadioButton(t,r,a));case 4:return i.abrupt("return",null);case 5:case"end":return i.stop()}}),_callee5,this)}))),function save(t,r,a){return c.apply(this,arguments)})},{key:"_saveCheckbox",value:(a=_asyncToGenerator(i.default.mark((function _callee6(t,r,a){var l,c,u,d,p,g,y;return i.default.wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:if(void 0!==(l=a[this.data.id]&&a[this.data.id].value)){r.next=3;break}return r.abrupt("return",null);case 3:if((this.data.fieldValue&&"Off"!==this.data.fieldValue)!==l){r.next=6;break}return r.abrupt("return",null);case 6:c=t.xref.fetchIfRef(this.ref);if((0,h.isDict)(c)){r.next=9;break}return r.abrupt("return",null);case 9:u={path:(0,o.stringToPDFString)(c.get("T")||""),value:l?this.data.exportValue:""};d=h.Name.get(l?this.data.exportValue:"Off");c.set("V",d);c.set("AS",d);c.set("M","D:".concat((0,o.getModificationDate)()));p=t.xref.encrypt;g=null;p&&(g=p.createCipherTransform(this.ref.num,this.ref.gen));y=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,m.writeDict)(c,y,g);y.push("\nendobj\n");return r.abrupt("return",[{ref:this.ref,data:y.join(""),xfa:u}]);case 21:case"end":return r.stop()}}),_callee6,this)}))),function _saveCheckbox(t,r,i){return a.apply(this,arguments)})},{key:"_saveRadioButton",value:(r=_asyncToGenerator(i.default.mark((function _callee7(t,r,a){var l,c,u,d,p,g,y,b,v,S,k;return i.default.wrap((function _callee7$(r){for(;;)switch(r.prev=r.next){case 0:if(void 0!==(l=a[this.data.id]&&a[this.data.id].value)){r.next=3;break}return r.abrupt("return",null);case 3:if(this.data.fieldValue===this.data.buttonValue!==l){r.next=6;break}return r.abrupt("return",null);case 6:c=t.xref.fetchIfRef(this.ref);if((0,h.isDict)(c)){r.next=9;break}return r.abrupt("return",null);case 9:u={path:(0,o.stringToPDFString)(c.get("T")||""),value:l?this.data.buttonValue:""};d=h.Name.get(l?this.data.buttonValue:"Off");p=null;g=t.xref.encrypt;if(l)if((0,h.isRef)(this.parent)){y=t.xref.fetch(this.parent);b=null;g&&(b=g.createCipherTransform(this.parent.num,this.parent.gen));y.set("V",d);p=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")];(0,m.writeDict)(y,p,b);p.push("\nendobj\n")}else(0,h.isDict)(this.parent)&&this.parent.set("V",d);c.set("AS",d);c.set("M","D:".concat((0,o.getModificationDate)()));v=null;g&&(v=g.createCipherTransform(this.ref.num,this.ref.gen));S=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,m.writeDict)(c,S,v);S.push("\nendobj\n");k=[{ref:this.ref,data:S.join(""),xfa:u}];null!==p&&k.push({ref:this.parent,data:p.join(""),xfa:null});return r.abrupt("return",k);case 24:case"end":return r.stop()}}),_callee7,this)}))),function _saveRadioButton(t,a,i){return r.apply(this,arguments)})},{key:"_processCheckBox",value:function _processCheckBox(t){var r=t.dict.get("AP");if((0,h.isDict)(r)){var a=r.get("N");if((0,h.isDict)(a)){var i=a.getKeys();i.includes("Off")||i.push("Off");if(2===i.length){this.data.exportValue="Off"===i[0]?i[1]:i[0];this.checkedAppearance=a.get(this.data.exportValue);this.uncheckedAppearance=a.get("Off")||null;this._streams.push(this.checkedAppearance);this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict}}}}},{key:"_processRadioButton",value:function _processRadioButton(t){this.data.fieldValue=this.data.buttonValue=null;var r=t.dict.get("Parent");if((0,h.isDict)(r)){this.parent=t.dict.getRaw("Parent");var a=r.get("V");(0,h.isName)(a)&&(this.data.fieldValue=this._decodeFormValue(a))}var i=t.dict.get("AP");if((0,h.isDict)(i)){var o=i.get("N");if((0,h.isDict)(o)){var l,c=_createForOfIteratorHelper(o.getKeys());try{for(c.s();!(l=c.n()).done;){var u=l.value;if("Off"!==u){this.data.buttonValue=this._decodeFormValue(u);break}}}catch(t){c.e(t)}finally{c.f()}this.checkedAppearance=o.get(this.data.buttonValue);this.uncheckedAppearance=o.get("Off")||null;this._streams.push(this.checkedAppearance);this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processPushButton",value:function _processPushButton(t){if(t.dict.has("A")||t.dict.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!t.dict.has("A")&&!t.dict.has("AA");l.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl})}else(0,o.warn)("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function getFieldObject(){var t,r="button";if(this.data.checkBox){r="checkbox";t=this.data.exportValue}else if(this.data.radioButton){r="radiobutton";t=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,type:r}}},{key:"fallbackFontDict",get:function get(){var t=new h.Dict;t.set("BaseFont",h.Name.get("ZapfDingbats"));t.set("Type",h.Name.get("FallbackType"));t.set("Subtype",h.Name.get("FallbackType"));t.set("Encoding",h.Name.get("ZapfDingbatsEncoding"));return(0,o.shadow)(this,"fallbackFontDict",t)}}]);return ButtonWidgetAnnotation}(k),_=function(t){_inherits(ChoiceWidgetAnnotation,t);var r=_createSuper(ChoiceWidgetAnnotation);function ChoiceWidgetAnnotation(t){var a;_classCallCheck(this,ChoiceWidgetAnnotation);(a=r.call(this,t)).data.options=[];var i=(0,c.getInheritableProperty)({dict:t.dict,key:"Opt"});if(Array.isArray(i))for(var l=t.xref,u=0,h=i.length;u<h;u++){var d=l.fetchIfRef(i[u]),p=Array.isArray(d);a.data.options[u]={exportValue:a._decodeFormValue(p?l.fetchIfRef(d[0]):d),displayValue:a._decodeFormValue(p?l.fetchIfRef(d[1]):d)}}(0,o.isString)(a.data.fieldValue)?a.data.fieldValue=[a.data.fieldValue]:a.data.fieldValue||(a.data.fieldValue=[]);a.data.combo=a.hasFieldFlag(o.AnnotationFieldFlag.COMBO);a.data.multiSelect=a.hasFieldFlag(o.AnnotationFieldFlag.MULTISELECT);a._hasText=!0;return a}_createClass(ChoiceWidgetAnnotation,[{key:"getFieldObject",value:function getFieldObject(){var t=this.data.combo?"combobox":"listbox",r=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:r,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,type:t}}}]);return ChoiceWidgetAnnotation}(k),x=function(t){_inherits(TextAnnotation,t);var r=_createSuper(TextAnnotation);function TextAnnotation(t){var a;_classCallCheck(this,TextAnnotation);a=r.call(this,t);var i=t.dict;a.data.annotationType=o.AnnotationType.TEXT;if(a.data.hasAppearance)a.data.name="NoIcon";else{a.data.rect[1]=a.data.rect[3]-22;a.data.rect[2]=a.data.rect[0]+22;a.data.name=i.has("Name")?i.get("Name").name:"Note"}if(i.has("State")){a.data.state=i.get("State")||null;a.data.stateModel=i.get("StateModel")||null}else{a.data.state=null;a.data.stateModel=null}return a}return TextAnnotation}(S),A=function(t){_inherits(LinkAnnotation,t);var r=_createSuper(LinkAnnotation);function LinkAnnotation(t){var a;_classCallCheck(this,LinkAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.LINK;var i=getQuadPoints(t.dict,a.rectangle);i&&(a.data.quadPoints=i);l.Catalog.parseDestDictionary({destDict:t.dict,resultObj:a.data,docBaseUrl:t.pdfManager.docBaseUrl});return a}return LinkAnnotation}(b),T=function(t){_inherits(PopupAnnotation,t);var r=_createSuper(PopupAnnotation);function PopupAnnotation(t){var a;_classCallCheck(this,PopupAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.POPUP;var i=t.dict.get("Parent");if(!i){(0,o.warn)("Popup annotation has a missing or invalid parent annotation.");return _possibleConstructorReturn(a)}var l=i.get("Subtype");a.data.parentType=(0,h.isName)(l)?l.name:null;var c=t.dict.getRaw("Parent");a.data.parentId=(0,h.isRef)(c)?c.toString():null;var u=i.getArray("Rect");Array.isArray(u)&&4===u.length?a.data.parentRect=o.Util.normalizeRect(u):a.data.parentRect=[0,0,0,0];var d=i.get("RT");(0,h.isName)(d,o.AnnotationReplyType.GROUP)&&(i=i.get("IRT"));if(i.has("M")){a.setModificationDate(i.get("M"));a.data.modificationDate=a.modificationDate}else a.data.modificationDate=null;if(i.has("C")){a.setColor(i.getArray("C"));a.data.color=a.color}else a.data.color=null;if(!a.viewable){var p=i.get("F");a._isViewable(p)&&a.setFlags(p)}a.data.title=(0,o.stringToPDFString)(i.get("T")||"");a.data.contents=(0,o.stringToPDFString)(i.get("Contents")||"");return a}return PopupAnnotation}(b),P=function(t){_inherits(FreeTextAnnotation,t);var r=_createSuper(FreeTextAnnotation);function FreeTextAnnotation(t){var a;_classCallCheck(this,FreeTextAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.FREETEXT;return a}return FreeTextAnnotation}(S),R=function(t){_inherits(LineAnnotation,t);var r=_createSuper(LineAnnotation);function LineAnnotation(t){var a;_classCallCheck(this,LineAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.LINE;a.data.lineCoordinates=o.Util.normalizeRect(t.dict.getArray("L"));return a}return LineAnnotation}(S),I=function(t){_inherits(SquareAnnotation,t);var r=_createSuper(SquareAnnotation);function SquareAnnotation(t){var a;_classCallCheck(this,SquareAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.SQUARE;return a}return SquareAnnotation}(S),O=function(t){_inherits(CircleAnnotation,t);var r=_createSuper(CircleAnnotation);function CircleAnnotation(t){var a;_classCallCheck(this,CircleAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.CIRCLE;return a}return CircleAnnotation}(S),E=function(t){_inherits(PolylineAnnotation,t);var r=_createSuper(PolylineAnnotation);function PolylineAnnotation(t){var a;_classCallCheck(this,PolylineAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.POLYLINE;a.data.vertices=[];var i=t.dict.getArray("Vertices");if(!Array.isArray(i))return _possibleConstructorReturn(a);for(var l=0,c=i.length;l<c;l+=2)a.data.vertices.push({x:i[l],y:i[l+1]});return a}return PolylineAnnotation}(S),D=function(t){_inherits(PolygonAnnotation,t);var r=_createSuper(PolygonAnnotation);function PolygonAnnotation(t){var a;_classCallCheck(this,PolygonAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.POLYGON;return a}return PolygonAnnotation}(E),B=function(t){_inherits(CaretAnnotation,t);var r=_createSuper(CaretAnnotation);function CaretAnnotation(t){var a;_classCallCheck(this,CaretAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.CARET;return a}return CaretAnnotation}(S),M=function(t){_inherits(InkAnnotation,t);var r=_createSuper(InkAnnotation);function InkAnnotation(t){var a;_classCallCheck(this,InkAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.INK;a.data.inkLists=[];var i=t.dict.getArray("InkList");if(!Array.isArray(i))return _possibleConstructorReturn(a);for(var l=t.xref,c=0,u=i.length;c<u;++c){a.data.inkLists.push([]);for(var h=0,d=i[c].length;h<d;h+=2)a.data.inkLists[c].push({x:l.fetchIfRef(i[c][h]),y:l.fetchIfRef(i[c][h+1])})}return a}return InkAnnotation}(S),L=function(t){_inherits(HighlightAnnotation,t);var r=_createSuper(HighlightAnnotation);function HighlightAnnotation(t){var a;_classCallCheck(this,HighlightAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.HIGHLIGHT;if(a.data.quadPoints=getQuadPoints(t.dict,null)){if(!a.appearance){var i=a.color?Array.from(a.color).map((function(t){return t/255})):[1,1,0];a._setDefaultAppearance({xref:t.xref,fillColor:i,blendMode:"Multiply",pointsCallback:function pointsCallback(t,r){t.push("".concat(r[0].x," ").concat(r[0].y," m"));t.push("".concat(r[1].x," ").concat(r[1].y," l"));t.push("".concat(r[3].x," ").concat(r[3].y," l"));t.push("".concat(r[2].x," ").concat(r[2].y," l"));t.push("f");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else a.data.hasPopup=!1;return a}return HighlightAnnotation}(S),N=function(t){_inherits(UnderlineAnnotation,t);var r=_createSuper(UnderlineAnnotation);function UnderlineAnnotation(t){var a;_classCallCheck(this,UnderlineAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.UNDERLINE;if(a.data.quadPoints=getQuadPoints(t.dict,null)){if(!a.appearance){var i=a.color?Array.from(a.color).map((function(t){return t/255})):[0,0,0];a._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:i,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[2].x," ").concat(r[2].y," m"));t.push("".concat(r[3].x," ").concat(r[3].y," l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else a.data.hasPopup=!1;return a}return UnderlineAnnotation}(S),j=function(t){_inherits(SquigglyAnnotation,t);var r=_createSuper(SquigglyAnnotation);function SquigglyAnnotation(t){var a;_classCallCheck(this,SquigglyAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.SQUIGGLY;if(a.data.quadPoints=getQuadPoints(t.dict,null)){if(!a.appearance){var i=a.color?Array.from(a.color).map((function(t){return t/255})):[0,0,0];a._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:i,pointsCallback:function pointsCallback(t,r){var a=(r[0].y-r[2].y)/6,i=a,o=r[2].x,l=r[2].y,c=r[3].x;t.push("".concat(o," ").concat(l+i," m"));do{o+=2;i=0===i?a:0;t.push("".concat(o," ").concat(l+i," l"))}while(o<c);t.push("S");return[r[2].x,c,l-2*a,l+2*a]}})}}else a.data.hasPopup=!1;return a}return SquigglyAnnotation}(S),U=function(t){_inherits(StrikeOutAnnotation,t);var r=_createSuper(StrikeOutAnnotation);function StrikeOutAnnotation(t){var a;_classCallCheck(this,StrikeOutAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.STRIKEOUT;if(a.data.quadPoints=getQuadPoints(t.dict,null)){if(!a.appearance){var i=a.color?Array.from(a.color).map((function(t){return t/255})):[0,0,0];a._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:i,pointsCallback:function pointsCallback(t,r){t.push("".concat((r[0].x+r[2].x)/2)+" ".concat((r[0].y+r[2].y)/2," m"));t.push("".concat((r[1].x+r[3].x)/2)+" ".concat((r[1].y+r[3].y)/2," l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else a.data.hasPopup=!1;return a}return StrikeOutAnnotation}(S),q=function(t){_inherits(StampAnnotation,t);var r=_createSuper(StampAnnotation);function StampAnnotation(t){var a;_classCallCheck(this,StampAnnotation);(a=r.call(this,t)).data.annotationType=o.AnnotationType.STAMP;return a}return StampAnnotation}(S),W=function(t){_inherits(FileAttachmentAnnotation,t);var r=_createSuper(FileAttachmentAnnotation);function FileAttachmentAnnotation(t){var a;_classCallCheck(this,FileAttachmentAnnotation);a=r.call(this,t);var i=new l.FileSpec(t.dict.get("FS"),t.xref);a.data.annotationType=o.AnnotationType.FILEATTACHMENT;a.data.file=i.serializable;return a}return FileAttachmentAnnotation}(S)},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.createDefaultAppearance=function createDefaultAppearance(t){var r,a=t.fontSize,i=t.fontName,o=t.fontColor;r=o.every((function(t){return 0===t}))?"0 g":Array.from(o).map((function(t){return(t/255).toFixed(2)})).join(" ")+" rg";return"/".concat((0,c.escapePDFName)(i.name)," ").concat(a," Tf ").concat(r)};r.parseDefaultAppearance=function parseDefaultAppearance(t){return new d(t).parse()};var i=a(135),o=a(4),l=a(153),c=a(138),u=a(157),h=a(142);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t,r)||function _nonIterableRest(){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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(DefaultAppearanceEvaluator,t);var r=_createSuper(DefaultAppearanceEvaluator);function DefaultAppearanceEvaluator(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DefaultAppearanceEvaluator);return r.call(this,new h.StringStream(t))}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(DefaultAppearanceEvaluator,[{key:"parse",value:function parse(){var t={fn:0,args:[]},r={fontSize:0,fontName:i.Name.get(""),fontColor:new Uint8ClampedArray([0,0,0])};try{for(;;){t.args.length=0;if(!this.read(t))break;if(0===this.savedStatesDepth){var a=t.fn,c=t.args;switch(0|a){case o.OPS.setFont:var u=_slicedToArray(c,2),h=u[0],d=u[1];(0,i.isName)(h)&&(r.fontName=h);"number"==typeof d&&d>0&&(r.fontSize=d);break;case o.OPS.setFillRGBColor:l.ColorSpace.singletons.rgb.getRgbItem(c,0,r.fontColor,0);break;case o.OPS.setFillGray:l.ColorSpace.singletons.gray.getRgbItem(c,0,r.fontColor,0);break;case o.OPS.setFillColorSpace:l.ColorSpace.singletons.cmyk.getRgbItem(c,0,r.fontColor,0)}}}}catch(t){(0,o.warn)('parseDefaultAppearance - ignoring errors: "'.concat(t,'".'))}return r}}]);return DefaultAppearanceEvaluator}(u.EvaluatorPreprocessor)},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PartialEvaluator=r.EvaluatorPreprocessor=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(158),c=a(135),u=a(159),h=a(162),d=a(138),p=a(165),g=a(164),m=a(168),y=a(169),b=a(141),v=a(154),S=a(171),k=a(153),w=a(142),C=a(163),_=a(172),x=a(173),A=a(174),T=a(175);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var P=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1}),R=1,I=2,O=Promise.resolve();function normalizeBlendMode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)){for(var a=0,i=t.length;a<i;a++){var l=normalizeBlendMode(t[a],!0);if(l)return l}(0,o.warn)("Unsupported blend mode Array: ".concat(t));return"source-over"}if(!(0,c.isName)(t))return r?null:"source-over";switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(r)return null;(0,o.warn)("Unsupported blend mode: ".concat(t.name));return"source-over"}var E=function(){_createClass(TimeSlotManager,null,[{key:"TIME_SLOT_DURATION_MS",get:function get(){return(0,o.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function get(){return(0,o.shadow)(this,"CHECK_TIME_EVERY",100)}}]);function TimeSlotManager(){_classCallCheck(this,TimeSlotManager);this.reset()}_createClass(TimeSlotManager,[{key:"check",value:function check(){if(++this.checked<TimeSlotManager.CHECK_TIME_EVERY)return!1;this.checked=0;return this.endTime<=Date.now()}},{key:"reset",value:function reset(){this.endTime=Date.now()+TimeSlotManager.TIME_SLOT_DURATION_MS;this.checked=0}}]);return TimeSlotManager}(),D=function(){function PartialEvaluator(t){var r=t.xref,a=t.handler,i=t.pageIndex,o=t.idFactory,l=t.fontCache,c=t.builtInCMapCache,u=t.globalImageCache,h=t.options,d=void 0===h?null:h;_classCallCheck(this,PartialEvaluator);this.xref=r;this.handler=a;this.pageIndex=i;this.idFactory=o;this.fontCache=l;this.builtInCMapCache=c;this.globalImageCache=u;this.options=d||P;this.parsingType3Font=!1;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}_createClass(PartialEvaluator,[{key:"clone",value:function clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,r=Object.create(this);r.options=t;return r}},{key:"hasBlendModes",value:function hasBlendModes(t,r){if(!(t instanceof c.Dict))return!1;if(t.objId&&r.has(t.objId))return!1;var a=new c.RefSet(r);t.objId&&a.put(t.objId);for(var i=[t],l=this.xref;i.length;){var u=i.shift(),h=u.get("ExtGState");if(h instanceof c.Dict){var p,g=_createForOfIteratorHelper(h.getRawValues());try{for(g.s();!(p=g.n()).done;){var m=p.value;if(m instanceof c.Ref){if(a.has(m))continue;try{m=l.fetch(m)}catch(t){if(t instanceof d.MissingDataException)throw t;a.put(m);(0,o.info)('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(m instanceof c.Dict){m.objId&&a.put(m.objId);var y=m.get("BM");if(y instanceof c.Name){if("Normal"!==y.name)return!0}else if(void 0!==y&&Array.isArray(y)){var b,v=_createForOfIteratorHelper(y);try{for(v.s();!(b=v.n()).done;){var S=b.value;if(S instanceof c.Name&&"Normal"!==S.name)return!0}}catch(t){v.e(t)}finally{v.f()}}}}}catch(t){g.e(t)}finally{g.f()}}var k=u.get("XObject");if(k instanceof c.Dict){var w,C=_createForOfIteratorHelper(k.getRawValues());try{for(C.s();!(w=C.n()).done;){var _=w.value;if(_ instanceof c.Ref){if(a.has(_))continue;try{_=l.fetch(_)}catch(t){if(t instanceof d.MissingDataException)throw t;a.put(_);(0,o.info)('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if((0,c.isStream)(_)){_.dict.objId&&a.put(_.dict.objId);var x=_.dict.get("Resources");if(x instanceof c.Dict&&(!x.objId||!a.has(x.objId))){i.push(x);x.objId&&a.put(x.objId)}}}}catch(t){C.e(t)}finally{C.f()}}}a.forEach((function(t){r.put(t)}));return!1}},{key:"fetchBuiltInCMap",value:(U=_asyncToGenerator(i.default.mark((function _callee(t){var r,a,l,c;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(!(r=this.builtInCMapCache.get(t))){i.next=3;break}return i.abrupt("return",r);case 3:a=this.handler.sendWithStream("FetchBuiltInCMap",{name:t});l=a.getReader();i.next=7;return new Promise((function(t,r){!function pump(){l.read().then((function(r){var a=r.value;if(!r.done){t(a);pump()}}),r)}()}));case 7:(c=i.sent).compressionType!==o.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,c);return i.abrupt("return",c);case 10:case"end":return i.stop()}}),_callee,this)}))),function fetchBuiltInCMap(t){return U.apply(this,arguments)})},{key:"buildFormXObject",value:(D=_asyncToGenerator(i.default.mark((function _callee2(t,r,a,l,u,h,d){var p,g,m,y,b,v,S,w,C,_;return i.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:p=r.dict;g=p.getArray("Matrix");m=p.getArray("BBox");m=Array.isArray(m)&&4===m.length?o.Util.normalizeRect(m):null;y=null;if(!p.has("OC")){i.next=10;break}i.next=8;return this.parseMarkedContentProps(p.get("OC"),t);case 8:y=i.sent;l.addOp(o.OPS.beginMarkedContentProps,["OC",y]);case 10:if(!(b=p.get("Group"))){i.next=30;break}v={matrix:g,bbox:m,smask:a,isolated:!1,knockout:!1};S=b.get("S");w=null;if(!(0,c.isName)(S,"Transparency")){i.next=28;break}v.isolated=b.get("I")||!1;v.knockout=b.get("K")||!1;if(!b.has("CS")){i.next=28;break}C=b.getRaw("CS");if(!(_=k.ColorSpace.getCached(C,this.xref,d))){i.next=25;break}w=_;i.next=28;break;case 25:i.next=27;return this.parseColorSpace({cs:C,resources:t,localColorSpaceCache:d});case 27:w=i.sent;case 28:if(a&&a.backdrop){w=w||k.ColorSpace.singletons.rgb;a.backdrop=w.getRgb(a.backdrop,0)}l.addOp(o.OPS.beginGroup,[v]);case 30:l.addOp(o.OPS.paintFormXObjectBegin,[g,m]);return i.abrupt("return",this.getOperatorList({stream:r,task:u,resources:p.get("Resources")||t,operatorList:l,initialState:h}).then((function(){l.addOp(o.OPS.paintFormXObjectEnd,[]);b&&l.addOp(o.OPS.endGroup,[v]);y&&l.addOp(o.OPS.endMarkedContent,[])})));case 32:case"end":return i.stop()}}),_callee2,this)}))),function buildFormXObject(t,r,a,i,o,l,c){return D.apply(this,arguments)})},{key:"_sendImgData",value:function _sendImgData(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=r?[r.data.buffer]:null;return this.parsingType3Font||a?this.handler.send("commonobj",[t,"Image",r],i):this.handler.send("obj",[t,this.pageIndex,"Image",r],i)}},{key:"buildPaintImageXObject",value:(b=_asyncToGenerator(i.default.mark((function _callee3(t){var r,a,l,c,u,h,d,p,g,m,y,b,v,S,k,C,_,x,A,P,R,I,O,E,D,B=this;return i.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:r=t.resources,a=t.image,l=t.isInline,c=void 0!==l&&l,u=t.operatorList,h=t.cacheKey,d=t.localImageCache,p=t.localColorSpaceCache;g=a.dict;m=g.objId;y=g.get("Width","W");b=g.get("Height","H");if(y&&(0,o.isNum)(y)&&b&&(0,o.isNum)(b)){i.next=8;break}(0,o.warn)("Image dimensions are missing, or not numbers.");return i.abrupt("return",void 0);case 8:if(!(-1!==(v=this.options.maxImageSize)&&y*b>v)){i.next=12;break}(0,o.warn)("Image exceeded maximum allowed size and was removed.");return i.abrupt("return",void 0);case 12:if(!g.get("ImageMask","IM")){i.next=25;break}C=g.get("Width","W");_=g.get("Height","H");x=C+7>>3;A=a.getBytes(x*_,!0);P=g.getArray("Decode","D");(S=T.PDFImage.createMask({imgArray:A,width:C,height:_,imageIsFromDecodeStream:a instanceof w.DecodeStream,inverseDecode:!!P&&P[0]>0})).cached=!!h;k=[S];u.addOp(o.OPS.paintImageMaskXObject,k);h&&d.set(h,m,{fn:o.OPS.paintImageMaskXObject,args:k});return i.abrupt("return",void 0);case 25:R=g.get("SMask","SM")||!1;I=g.get("Mask")||!1;if(!c||R||I||!(y+b<200)){i.next=33;break}O=new T.PDFImage({xref:this.xref,res:r,image:a,isInline:c,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:p});S=O.createImageData(!0);u.addOp(o.OPS.paintInlineImageXObject,[S]);return i.abrupt("return",void 0);case 33:E="img_".concat(this.idFactory.createObjId()),D=!1;this.parsingType3Font?E="".concat(this.idFactory.getDocId(),"_type3_").concat(E):m&&(D=this.globalImageCache.shouldCache(m,this.pageIndex))&&(E="".concat(this.idFactory.getDocId(),"_").concat(E));u.addDependency(E);k=[E,y,b];T.PDFImage.buildImage({xref:this.xref,res:r,image:a,isInline:c,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:p}).then((function(t){S=t.createImageData(!1);return B._sendImgData(E,S,D)})).catch((function(t){(0,o.warn)('Unable to decode image "'.concat(E,'": "').concat(t,'".'));return B._sendImgData(E,null,D)}));u.addOp(o.OPS.paintImageXObject,k);if(h){d.set(h,m,{fn:o.OPS.paintImageXObject,args:k});if(m){(0,o.assert)(!c,"Cannot cache an inline image globally.");this.globalImageCache.addPageIndex(m,this.pageIndex);D&&this.globalImageCache.setData(m,{objId:E,fn:o.OPS.paintImageXObject,args:k})}}return i.abrupt("return",void 0);case 41:case"end":return i.stop()}}),_callee3,this)}))),function buildPaintImageXObject(t){return b.apply(this,arguments)})},{key:"handleSMask",value:function handleSMask(t,r,a,i,o,l){var c=t.get("G"),u={subtype:t.get("S").name,backdrop:t.get("BC")},h=t.get("TR");if((0,y.isPDFFunction)(h)){for(var d=this._pdfFunctionFactory.create(h),p=new Uint8Array(256),g=new Float32Array(1),m=0;m<256;m++){g[0]=m/255;d(g,0,g,0);p[m]=255*g[0]|0}u.transferMap=p}return this.buildFormXObject(r,c,u,a,i,o.state.clone(),l)}},{key:"handleTransferFunction",value:function handleTransferFunction(t){var r;if(Array.isArray(t))r=t;else{if(!(0,y.isPDFFunction)(t))return null;r=[t]}var a,i=[],o=0,l=0,u=_createForOfIteratorHelper(r);try{for(u.s();!(a=u.n()).done;){var h=a.value,d=this.xref.fetchIfRef(h);o++;if((0,c.isName)(d,"Identity"))i.push(null);else{if(!(0,y.isPDFFunction)(d))return null;for(var p=this._pdfFunctionFactory.create(d),g=new Uint8Array(256),m=new Float32Array(1),b=0;b<256;b++){m[0]=b/255;p(m,0,m,0);g[b]=255*m[0]|0}i.push(g);l++}}}catch(t){u.e(t)}finally{u.f()}return 1!==o&&4!==o||0===l?null:i}},{key:"handleTilingType",value:function handleTilingType(t,r,a,i,l,u,h,d,p){var g=this,y=new A.OperatorList,b=c.Dict.merge({xref:this.xref,dictArray:[l.get("Resources"),a]});return this.getOperatorList({stream:i,task:h,resources:b,operatorList:y}).then((function(){var a=y.getIR(),i=(0,m.getTilingPatternIR)(a,l,r);u.addDependencies(y.dependencies);u.addOp(t,i);d&&p.set(d,l.objId,{operatorListIR:a,dict:l})})).catch((function(t){if(!(t instanceof o.AbortException)){if(!g.options.ignoreErrors)throw t;g.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorTilingPattern});(0,o.warn)('handleTilingType - ignoring pattern: "'.concat(t,'".'))}}))}},{key:"handleSetFont",value:function handleSetFont(t,r,a,i,l,c){var h,d=this,p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;r&&(h=(r=r.slice())[0].name);return this.loadFont(h,a,t,p).then((function(r){return r.font.isType3Font?r.loadType3Data(d,t,l).then((function(){i.addDependencies(r.type3Dependencies);return r})).catch((function(t){d.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorFontLoadType3});return new B({loadedName:"g_font_error",font:new u.ErrorFont("Type3 font load error: ".concat(t)),dict:r.font,extraProperties:d.options.fontExtraProperties})})):r})).then((function(t){c.font=t.font;t.send(d.handler);return t.loadedName}))}},{key:"handleText",value:function handleText(t,r){var a=r.font,i=a.charsToGlyphs(t);if(a.data){(!!(r.textRenderingMode&o.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===r.fillColorSpace.name||a.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(a,i,this.handler)}return i}},{key:"ensureStateFont",value:function ensureStateFont(t){if(!t.font){var r=new o.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw r;this.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorFontState});(0,o.warn)('ensureStateFont: "'.concat(r,'".'))}}},{key:"setGState",value:(a=_asyncToGenerator(i.default.mark((function _callee4(t){var r,a,l,u,h,d,p,g,m,y,b,v,S,k,w,C,_=this;return i.default.wrap((function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:r=t.resources,a=t.gState,l=t.operatorList,u=t.cacheKey,h=t.task,d=t.stateManager,p=t.localGStateCache,g=t.localColorSpaceCache;m=a.objId;y=!0;b=[];v=a.getKeys();S=Promise.resolve();k=function _loop(){var t=v[w],i=a.get(t);switch(t){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":b.push([t,i]);break;case"Font":y=!1;S=S.then((function(){return _.handleSetFont(r,null,i[0],l,h,d.state).then((function(r){l.addDependency(r);b.push([t,[r,i[1]]])}))}));break;case"BM":b.push([t,normalizeBlendMode(i)]);break;case"SMask":if((0,c.isName)(i,"None")){b.push([t,!1]);break}if((0,c.isDict)(i)){y=!1;S=S.then((function(){return _.handleSMask(i,r,l,h,d,g)}));b.push([t,!0])}else(0,o.warn)("Unsupported SMask type");break;case"TR":var u=_.handleTransferFunction(i);b.push([t,u]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,o.info)("graphic state operator "+t);break;default:(0,o.info)("Unknown graphic state operator "+t)}};for(w=0,C=v.length;w<C;w++)k();return i.abrupt("return",S.then((function(){b.length>0&&l.addOp(o.OPS.setGState,[b]);y&&p.set(u,m,b)})));case 9:case"end":return i.stop()}}),_callee4)}))),function setGState(t){return a.apply(this,arguments)})},{key:"loadFont",value:function loadFont(t,r,a){var l,h=this,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,p=function(){var a=_asyncToGenerator(i.default.mark((function _callee5(){return i.default.wrap((function _callee5$(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new B({loadedName:"g_font_error",font:new u.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,extraProperties:h.options.fontExtraProperties}));case 1:case"end":return a.stop()}}),_callee5)})));return function errorFont(){return a.apply(this,arguments)}}(),g=this.xref;if(r){if(!(0,c.isRef)(r))throw new o.FormatError('The "font" object should be a reference.');l=r}else{var m=a.get("Font");m&&(l=m.getRaw(t))}if(!l){var y='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,o.warn)("".concat(y,"."));return p()}this.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorFontMissing});(0,o.warn)("".concat(y," -- attempting to fallback to a default font."));l=d||PartialEvaluator.fallbackFontDict}if(this.fontCache.has(l))return this.fontCache.get(l);r=g.fetchIfRef(l);if(!(0,c.isDict)(r))return p();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var b,v=(0,o.createPromiseCapability)();try{b=this.preEvaluateFont(r)}catch(t){(0,o.warn)('loadFont - ignoring preEvaluateFont errors: "'.concat(t,'".'));return p()}var S,k=b,w=k.descriptor,C=k.hash,_=(0,c.isRef)(l);_&&(S="f".concat(l.toString()));if(C&&(0,c.isDict)(w)){w.fontAliases||(w.fontAliases=Object.create(null));var x=w.fontAliases;if(x[C]){var A=x[C].aliasRef;if(_&&A&&this.fontCache.has(A)){this.fontCache.putAlias(l,A);return this.fontCache.get(l)}}else x[C]={fontID:this.idFactory.createFontId()};_&&(x[C].aliasRef=l);S=x[C].fontID}if(_)this.fontCache.put(l,v.promise);else{S||(S=this.idFactory.createFontId());r.cacheKey="cacheKey_".concat(S);this.fontCache.put(r.cacheKey,v.promise)}(0,o.assert)(S&&S.startsWith("f"),'The "fontID" must be (correctly) defined.');r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(S);this.translateFont(b).then((function(t){if(void 0!==t.fontType){g.stats.fontTypes[t.fontType]=!0}v.resolve(new B({loadedName:r.loadedName,font:t,dict:r,extraProperties:h.options.fontExtraProperties}))})).catch((function(t){h.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorFontTranslate});try{var a=w&&w.get("FontFile3"),i=a&&a.get("Subtype"),l=(0,u.getFontType)(b.type,i&&i.name);g.stats.fontTypes[l]=!0}catch(t){}v.resolve(new B({loadedName:r.loadedName,font:new u.ErrorFont(t instanceof Error?t.message:t),dict:r,extraProperties:h.options.fontExtraProperties}))}));return v.promise}},{key:"buildPath",value:function buildPath(t,r,a){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=t.length-1;a||(a=[]);if(l<0||t.fnArray[l]!==o.OPS.constructPath){if(i){(0,o.warn)('Encountered path operator "'.concat(r,'" inside of a text object.'));t.addOp(o.OPS.save,null)}t.addOp(o.OPS.constructPath,[[r],a]);i&&t.addOp(o.OPS.restore,null)}else{var c=t.argsArray[l];c[0].push(r);Array.prototype.push.apply(c[1],a)}}},{key:"parseColorSpace",value:function parseColorSpace(t){var r=this,a=t.cs,i=t.resources,l=t.localColorSpaceCache;return k.ColorSpace.parseAsync({cs:a,xref:this.xref,resources:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}).catch((function(t){if(t instanceof o.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorColorSpace});(0,o.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(t,'".'));return null}throw t}))}},{key:"handleColorN",value:function handleColorN(t,r,a,i,l,u,h,p,g){var y=a.pop();if(y instanceof c.Name){var b=y.name,v=g.getByName(b);if(v)try{var S=i.base?i.base.getRgb(a,0):null,k=(0,m.getTilingPatternIR)(v.operatorListIR,v.dict,S);t.addOp(r,k);return}catch(t){if(t instanceof d.MissingDataException)throw t}var w=l.get(b);if(w){var C=(0,c.isStream)(w)?w.dict:w,_=C.get("PatternType");if(_===R){var x=i.base?i.base.getRgb(a,0):null;return this.handleTilingType(r,x,u,w,C,t,h,b,g)}if(_===I){var A=C.get("Shading"),T=C.getArray("Matrix");w=m.Pattern.parseShading(A,T,this.xref,u,this.handler,this._pdfFunctionFactory,p);t.addOp(r,w.getIR());return}throw new o.FormatError("Unknown PatternType: ".concat(_))}}throw new o.FormatError("Unknown PatternName: ".concat(y))}},{key:"parseMarkedContentProps",value:(r=_asyncToGenerator(i.default.mark((function _callee6(t,r){var a,l,u,h,d,p;return i.default.wrap((function _callee6$(i){for(;;)switch(i.prev=i.next){case 0:if(!(0,c.isName)(t)){i.next=5;break}l=r.get("Properties");a=l.get(t.name);i.next=10;break;case 5:if(!(0,c.isDict)(t)){i.next=9;break}a=t;i.next=10;break;case 9:throw new o.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(u=a.get("Type").name)){i.next=15;break}return i.abrupt("return",{type:u,id:a.objId});case 15:if("OCMD"!==u){i.next=27;break}h=a.get("OCGs");if(!Array.isArray(h)&&!(0,c.isDict)(h)){i.next=25;break}d=[];Array.isArray(h)?a.get("OCGs").forEach((function(t){d.push(t.toString())})):d.push(h.objId);p=null;a.get("VE")&&(p=!0);return i.abrupt("return",{type:u,ids:d,policy:(0,c.isName)(a.get("P"))?a.get("P").name:null,expression:p});case 25:if(!(0,c.isRef)(h)){i.next=27;break}return i.abrupt("return",{type:u,id:h.toString()});case 27:return i.abrupt("return",null);case 28:case"end":return i.stop()}}),_callee6)}))),function parseMarkedContentProps(t,a){return r.apply(this,arguments)})},{key:"getOperatorList",value:function getOperatorList(t){var r=this,a=t.stream,i=t.task,l=t.resources,u=t.operatorList,h=t.initialState,d=void 0===h?null:h,p=t.fallbackFontDict,g=void 0===p?null:p;l=l||c.Dict.empty;d=d||new N;if(!u)throw new Error('getOperatorList: missing "operatorList" parameter');var y=this,b=this.xref,S=!1,w=new v.LocalImageCache,C=new v.LocalColorSpaceCache,_=new v.LocalGStateCache,x=new v.LocalTilingPatternCache,A=l.get("XObject")||c.Dict.empty,T=l.get("Pattern")||c.Dict.empty,P=new M(d),R=new j(a,b,P),I=new E;function closePendingRestoreOPS(t){for(var r=0,a=R.savedStatesDepth;r<a;r++)u.addOp(o.OPS.restore,[])}return new Promise((function promiseBody(t,r){var a=function next(a){Promise.all([a,u.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};i.ensureNotTerminated();I.reset();for(var h,d,p,v,E,D={};!(h=I.check());){D.args=null;if(!R.read(D))break;var B=D.args,M=D.fn;switch(0|M){case o.OPS.paintXObject:if(E=B[0].name){var L=w.getByName(E);if(L){u.addOp(L.fn,L.args);B=null;continue}}a(new Promise((function(t,r){if(!E)throw new o.FormatError("XObject must be referred to by name.");var a=A.getRaw(E);if(a instanceof c.Ref){var h=w.getByRef(a);if(h){u.addOp(h.fn,h.args);t();return}var d=y.globalImageCache.getData(a,y.pageIndex);if(d){u.addDependency(d.objId);u.addOp(d.fn,d.args);t();return}a=b.fetch(a)}if(!(0,c.isStream)(a))throw new o.FormatError("XObject should be a stream");var p=a.dict.get("Subtype");if(!(0,c.isName)(p))throw new o.FormatError("XObject should have a Name subtype");if("Form"!==p.name)if("Image"!==p.name){if("PS"!==p.name)throw new o.FormatError("Unhandled XObject subtype ".concat(p.name));(0,o.info)("Ignored XObject subtype PS");t()}else y.buildPaintImageXObject({resources:l,image:a,operatorList:u,cacheKey:E,localImageCache:w,localColorSpaceCache:C}).then(t,r);else{P.save();y.buildFormXObject(l,a,null,u,i,P.state.clone(),C).then((function(){P.restore();t()}),r)}})).catch((function(t){if(!(t instanceof o.AbortException)){if(!y.options.ignoreErrors)throw t;y.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorXObject});(0,o.warn)('getOperatorList - ignoring XObject: "'.concat(t,'".'))}})));return;case o.OPS.setFont:var N=B[1];a(y.handleSetFont(l,B,null,u,i,P.state,g).then((function(t){u.addDependency(t);u.addOp(o.OPS.setFont,[t,N])})));return;case o.OPS.beginText:S=!0;break;case o.OPS.endText:S=!1;break;case o.OPS.endInlineImage:var j=B[0].cacheKey;if(j){var U=w.getByName(j);if(U){u.addOp(U.fn,U.args);B=null;continue}}a(y.buildPaintImageXObject({resources:l,image:B[0],isInline:!0,operatorList:u,cacheKey:j,localImageCache:w,localColorSpaceCache:C}));return;case o.OPS.showText:if(!P.state.font){y.ensureStateFont(P.state);continue}B[0]=y.handleText(B[0],P.state);break;case o.OPS.showSpacedText:if(!P.state.font){y.ensureStateFont(P.state);continue}var q=B[0],W=[],z=q.length,G=P.state;for(d=0;d<z;++d){var H=q[d];(0,o.isString)(H)?Array.prototype.push.apply(W,y.handleText(H,G)):(0,o.isNum)(H)&&W.push(H)}B[0]=W;M=o.OPS.showText;break;case o.OPS.nextLineShowText:if(!P.state.font){y.ensureStateFont(P.state);continue}u.addOp(o.OPS.nextLine);B[0]=y.handleText(B[0],P.state);M=o.OPS.showText;break;case o.OPS.nextLineSetSpacingShowText:if(!P.state.font){y.ensureStateFont(P.state);continue}u.addOp(o.OPS.nextLine);u.addOp(o.OPS.setWordSpacing,[B.shift()]);u.addOp(o.OPS.setCharSpacing,[B.shift()]);B[0]=y.handleText(B[0],P.state);M=o.OPS.showText;break;case o.OPS.setTextRenderingMode:P.state.textRenderingMode=B[0];break;case o.OPS.setFillColorSpace:var V=k.ColorSpace.getCached(B[0],b,C);if(V){P.state.fillColorSpace=V;continue}a(y.parseColorSpace({cs:B[0],resources:l,localColorSpaceCache:C}).then((function(t){t&&(P.state.fillColorSpace=t)})));return;case o.OPS.setStrokeColorSpace:var X=k.ColorSpace.getCached(B[0],b,C);if(X){P.state.strokeColorSpace=X;continue}a(y.parseColorSpace({cs:B[0],resources:l,localColorSpaceCache:C}).then((function(t){t&&(P.state.strokeColorSpace=t)})));return;case o.OPS.setFillColor:B=(v=P.state.fillColorSpace).getRgb(B,0);M=o.OPS.setFillRGBColor;break;case o.OPS.setStrokeColor:B=(v=P.state.strokeColorSpace).getRgb(B,0);M=o.OPS.setStrokeRGBColor;break;case o.OPS.setFillGray:P.state.fillColorSpace=k.ColorSpace.singletons.gray;B=k.ColorSpace.singletons.gray.getRgb(B,0);M=o.OPS.setFillRGBColor;break;case o.OPS.setStrokeGray:P.state.strokeColorSpace=k.ColorSpace.singletons.gray;B=k.ColorSpace.singletons.gray.getRgb(B,0);M=o.OPS.setStrokeRGBColor;break;case o.OPS.setFillCMYKColor:P.state.fillColorSpace=k.ColorSpace.singletons.cmyk;B=k.ColorSpace.singletons.cmyk.getRgb(B,0);M=o.OPS.setFillRGBColor;break;case o.OPS.setStrokeCMYKColor:P.state.strokeColorSpace=k.ColorSpace.singletons.cmyk;B=k.ColorSpace.singletons.cmyk.getRgb(B,0);M=o.OPS.setStrokeRGBColor;break;case o.OPS.setFillRGBColor:P.state.fillColorSpace=k.ColorSpace.singletons.rgb;B=k.ColorSpace.singletons.rgb.getRgb(B,0);break;case o.OPS.setStrokeRGBColor:P.state.strokeColorSpace=k.ColorSpace.singletons.rgb;B=k.ColorSpace.singletons.rgb.getRgb(B,0);break;case o.OPS.setFillColorN:if("Pattern"===(v=P.state.fillColorSpace).name){a(y.handleColorN(u,o.OPS.setFillColorN,B,v,T,l,i,C,x));return}B=v.getRgb(B,0);M=o.OPS.setFillRGBColor;break;case o.OPS.setStrokeColorN:if("Pattern"===(v=P.state.strokeColorSpace).name){a(y.handleColorN(u,o.OPS.setStrokeColorN,B,v,T,l,i,C,x));return}B=v.getRgb(B,0);M=o.OPS.setStrokeRGBColor;break;case o.OPS.shadingFill:var Y=l.get("Shading");if(!Y)throw new o.FormatError("No shading resource found");var K=Y.get(B[0].name);if(!K)throw new o.FormatError("No shading object found");B=[m.Pattern.parseShading(K,null,b,l,y.handler,y._pdfFunctionFactory,C).getIR()];M=o.OPS.shadingFill;break;case o.OPS.setGState:if(E=B[0].name){var J=_.getByName(E);if(J){J.length>0&&u.addOp(o.OPS.setGState,[J]);B=null;continue}}a(new Promise((function(t,r){if(!E)throw new o.FormatError("GState must be referred to by name.");var a=l.get("ExtGState");if(!(a instanceof c.Dict))throw new o.FormatError("ExtGState should be a dictionary.");var h=a.get(E);if(!(h instanceof c.Dict))throw new o.FormatError("GState should be a dictionary.");y.setGState({resources:l,gState:h,operatorList:u,cacheKey:E,task:i,stateManager:P,localGStateCache:_,localColorSpaceCache:C}).then(t,r)})).catch((function(t){if(!(t instanceof o.AbortException)){if(!y.options.ignoreErrors)throw t;y.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorExtGState});(0,o.warn)('getOperatorList - ignoring ExtGState: "'.concat(t,'".'))}})));return;case o.OPS.moveTo:case o.OPS.lineTo:case o.OPS.curveTo:case o.OPS.curveTo2:case o.OPS.curveTo3:case o.OPS.closePath:case o.OPS.rectangle:y.buildPath(u,M,B,S);continue;case o.OPS.markPoint:case o.OPS.markPointProps:case o.OPS.beginCompat:case o.OPS.endCompat:continue;case o.OPS.beginMarkedContentProps:if(!(0,c.isName)(B[0])){(0,o.warn)("Expected name for beginMarkedContentProps arg0=".concat(B[0]));continue}if("OC"===B[0].name){a(y.parseMarkedContentProps(B[1],l).then((function(t){u.addOp(o.OPS.beginMarkedContentProps,["OC",t])})).catch((function(t){if(!(t instanceof o.AbortException)){if(!y.options.ignoreErrors)throw t;y.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorMarkedContent});(0,o.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(t,'".'))}})));return}B=[B[0].name];break;case o.OPS.beginMarkedContent:case o.OPS.endMarkedContent:default:if(null!==B){for(d=0,p=B.length;d<p&&!(B[d]instanceof c.Dict);d++);if(d<p){(0,o.warn)("getOperatorList - ignoring operator: "+M);continue}}}u.addOp(M,B)}if(h)a(O);else{closePendingRestoreOPS();t()}})).catch((function(t){if(!(t instanceof o.AbortException)){if(!r.options.ignoreErrors)throw t;r.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorOperatorList});(0,o.warn)('getOperatorList - ignoring errors during "'.concat(i.name,'" ')+'task: "'.concat(t,'".'));closePendingRestoreOPS()}}))}},{key:"getTextContent",value:function getTextContent(t){var r=this,a=t.stream,i=t.task,l=t.resources,u=t.stateManager,h=void 0===u?null:u,d=t.normalizeWhitespace,g=void 0!==d&&d,m=t.combineTextItems,y=void 0!==m&&m,b=t.sink,k=t.seenStyles,w=void 0===k?Object.create(null):k;l=l||c.Dict.empty;h=h||new M(new L);var C,_=/\s/g,x={items:[],styles:Object.create(null)},A={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},T=this,P=this.xref,R=null,I=new v.LocalImageCache,D=new v.LocalGStateCache,B=new j(a,P,h);function ensureTextContentItem(){if(A.initialized)return A;var t=C.font;if(!(t.loadedName in w)){w[t.loadedName]=!0;x.styles[t.loadedName]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}}A.fontName=t.loadedName;var r=[C.fontSize*C.textHScale,0,0,C.fontSize,0,C.textRise];if(t.isType3Font&&C.fontSize<=1&&!(0,o.isArrayEqual)(C.fontMatrix,o.FONT_IDENTITY_MATRIX)){var a=t.bbox[3]-t.bbox[1];a>0&&(r[3]*=a*C.fontMatrix[3])}var i=o.Util.transform(C.ctm,o.Util.transform(C.textMatrix,r));A.transform=i;if(t.vertical){A.width=Math.sqrt(i[0]*i[0]+i[1]*i[1]);A.height=0;A.vertical=!0}else{A.width=0;A.height=Math.sqrt(i[2]*i[2]+i[3]*i[3]);A.vertical=!1}var l=C.textLineMatrix[0],c=C.textLineMatrix[1],u=Math.sqrt(l*l+c*c);l=C.ctm[0];c=C.ctm[1];var h=Math.sqrt(l*l+c*c);A.textAdvanceScale=h*u;A.lastAdvanceWidth=0;A.lastAdvanceHeight=0;var d=t.spaceWidth/1e3*C.fontSize;if(d){A.spaceWidth=d;A.fakeSpaceMin=.3*d;A.fakeMultiSpaceMin=1.5*d;A.fakeMultiSpaceMax=4*d;A.textRunBreakAllowed=!t.isMonospace}else{A.spaceWidth=0;A.fakeSpaceMin=1/0;A.fakeMultiSpaceMin=1/0;A.fakeMultiSpaceMax=0;A.textRunBreakAllowed=!1}A.initialized=!0;return A}function replaceWhitespace(t){for(var r,a=0,i=t.length;a<i&&(r=t.charCodeAt(a))>=32&&r<=127;)a++;return a<i?t.replace(_," "):t}function handleSetFont(t,r){return T.loadFont(t,r,l).then((function(t){C.font=t.font;C.fontMatrix=t.font.fontMatrix||o.FONT_IDENTITY_MATRIX}))}function buildTextContentItem(t){for(var r=C.font,a=ensureTextContentItem(),i=0,o=0,l=r.charsToGlyphs(t),c=0;c<l.length;c++){var u=l[c],h=null;h=r.vertical&&u.vmetric?u.vmetric[0]:u.width;var d=u.unicode,g=(0,p.getNormalizedUnicodes)();void 0!==g[d]&&(d=g[d]);d=(0,p.reverseIfRtl)(d);var m=C.charSpacing;if(u.isSpace){var y=C.wordSpacing;m+=y;y>0&&addFakeSpaces(y,a.str)}var b=0,v=0;if(r.vertical){o+=v=h*C.fontMatrix[0]*C.fontSize+m}else{i+=b=(h*C.fontMatrix[0]*C.fontSize+m)*C.textHScale}C.translateTextMatrix(b,v);a.str.push(d)}if(r.vertical){a.lastAdvanceHeight=o;a.height+=Math.abs(o)}else{a.lastAdvanceWidth=i;a.width+=i}return a}function addFakeSpaces(t,r){if(!(t<A.fakeSpaceMin))if(t<A.fakeMultiSpaceMin)r.push(" ");else for(var a=Math.round(t/A.spaceWidth);a-- >0;)r.push(" ")}function flushTextContentItem(){if(A.initialized){A.vertical?A.height*=A.textAdvanceScale:A.width*=A.textAdvanceScale;x.items.push(function runBidiTransform(t){var r=t.str.join(""),a=(0,S.bidi)(r,-1,t.vertical);return{str:g?replaceWhitespace(a.str):a.str,dir:a.dir,width:t.width,height:t.height,transform:t.transform,fontName:t.fontName}}(A));A.initialized=!1;A.str.length=0}}function enqueueChunk(){var t=x.items.length;if(t>0){b.enqueue(x,t);x.items=[];x.styles=Object.create(null)}}var N=new E;return new Promise((function promiseBody(t,r){var a=function next(a){enqueueChunk();Promise.all([a,b.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};i.ensureNotTerminated();N.reset();for(var u,d={},p=[];!(u=N.check());){p.length=0;d.args=p;if(!B.read(d))break;C=h.state;var m,v=d.fn;p=d.args;switch(0|v){case o.OPS.setFont:var S=p[0].name,k=p[1];if(C.font&&S===C.fontName&&k===C.fontSize)break;flushTextContentItem();C.fontName=S;C.fontSize=k;a(handleSetFont(S,null));return;case o.OPS.setTextRise:flushTextContentItem();C.textRise=p[0];break;case o.OPS.setHScale:flushTextContentItem();C.textHScale=p[0]/100;break;case o.OPS.setLeading:flushTextContentItem();C.leading=p[0];break;case o.OPS.moveText:var _=!!C.font&&0===(C.font.vertical?p[0]:p[1]);m=p[0]-p[1];if(y&&_&&A.initialized&&m>0&&m<=A.fakeMultiSpaceMax){C.translateTextLineMatrix(p[0],p[1]);A.width+=p[0]-A.lastAdvanceWidth;A.height+=p[1]-A.lastAdvanceHeight;addFakeSpaces(p[0]-A.lastAdvanceWidth-(p[1]-A.lastAdvanceHeight),A.str);break}flushTextContentItem();C.translateTextLineMatrix(p[0],p[1]);C.textMatrix=C.textLineMatrix.slice();break;case o.OPS.setLeadingMoveText:flushTextContentItem();C.leading=-p[1];C.translateTextLineMatrix(p[0],p[1]);C.textMatrix=C.textLineMatrix.slice();break;case o.OPS.nextLine:flushTextContentItem();C.carriageReturn();break;case o.OPS.setTextMatrix:m=C.calcTextLineMatrixAdvance(p[0],p[1],p[2],p[3],p[4],p[5]);if(y&&null!==m&&A.initialized&&m.value>0&&m.value<=A.fakeMultiSpaceMax){C.translateTextLineMatrix(m.width,m.height);A.width+=m.width-A.lastAdvanceWidth;A.height+=m.height-A.lastAdvanceHeight;addFakeSpaces(m.width-A.lastAdvanceWidth-(m.height-A.lastAdvanceHeight),A.str);break}flushTextContentItem();C.setTextMatrix(p[0],p[1],p[2],p[3],p[4],p[5]);C.setTextLineMatrix(p[0],p[1],p[2],p[3],p[4],p[5]);break;case o.OPS.setCharSpacing:C.charSpacing=p[0];break;case o.OPS.setWordSpacing:C.wordSpacing=p[0];break;case o.OPS.beginText:flushTextContentItem();C.textMatrix=o.IDENTITY_MATRIX.slice();C.textLineMatrix=o.IDENTITY_MATRIX.slice();break;case o.OPS.showSpacedText:if(!h.state.font){T.ensureStateFont(h.state);continue}for(var E,L=p[0],j=0,U=L.length;j<U;j++)if("string"==typeof L[j])buildTextContentItem(L[j]);else if((0,o.isNum)(L[j])){ensureTextContentItem();m=L[j]*C.fontSize/1e3;var q=!1;if(C.font.vertical){E=m;C.translateTextMatrix(0,E);(q=A.textRunBreakAllowed&&m>A.fakeMultiSpaceMax)||(A.height+=E)}else{E=(m=-m)*C.textHScale;C.translateTextMatrix(E,0);(q=A.textRunBreakAllowed&&m>A.fakeMultiSpaceMax)||(A.width+=E)}q?flushTextContentItem():m>0&&addFakeSpaces(m,A.str)}break;case o.OPS.showText:if(!h.state.font){T.ensureStateFont(h.state);continue}buildTextContentItem(p[0]);break;case o.OPS.nextLineShowText:if(!h.state.font){T.ensureStateFont(h.state);continue}flushTextContentItem();C.carriageReturn();buildTextContentItem(p[0]);break;case o.OPS.nextLineSetSpacingShowText:if(!h.state.font){T.ensureStateFont(h.state);continue}flushTextContentItem();C.wordSpacing=p[0];C.charSpacing=p[1];C.carriageReturn();buildTextContentItem(p[2]);break;case o.OPS.paintXObject:flushTextContentItem();R||(R=l.get("XObject")||c.Dict.empty);var W=p[0].name;if(W&&I.getByName(W))break;a(new Promise((function(t,r){if(!W)throw new o.FormatError("XObject must be referred to by name.");var a=R.getRaw(W);if(a instanceof c.Ref){if(I.getByRef(a)){t();return}a=P.fetch(a)}if(!(0,c.isStream)(a))throw new o.FormatError("XObject should be a stream");var u=a.dict.get("Subtype");if(!(0,c.isName)(u))throw new o.FormatError("XObject should have a Name subtype");if("Form"===u.name){var d=h.state.clone(),p=new M(d),m=a.dict.getArray("Matrix");Array.isArray(m)&&6===m.length&&p.transform(m);enqueueChunk();var v={enqueueInvoked:!1,enqueue:function enqueue(t,r){this.enqueueInvoked=!0;b.enqueue(t,r)},get desiredSize(){return b.desiredSize},get ready(){return b.ready}};T.getTextContent({stream:a,task:i,resources:a.dict.get("Resources")||l,stateManager:p,normalizeWhitespace:g,combineTextItems:y,sink:v,seenStyles:w}).then((function(){v.enqueueInvoked||I.set(W,a.dict.objId,!0);t()}),r)}else{I.set(W,a.dict.objId,!0);t()}})).catch((function(t){if(!(t instanceof o.AbortException)){if(!T.options.ignoreErrors)throw t;(0,o.warn)('getTextContent - ignoring XObject: "'.concat(t,'".'))}})));return;case o.OPS.setGState:if((W=p[0].name)&&D.getByName(W))break;a(new Promise((function(t,r){if(!W)throw new o.FormatError("GState must be referred to by name.");var a=l.get("ExtGState");if(!(a instanceof c.Dict))throw new o.FormatError("ExtGState should be a dictionary.");var i=a.get(W);if(!(i instanceof c.Dict))throw new o.FormatError("GState should be a dictionary.");var u=i.get("Font");if(u){flushTextContentItem();C.fontName=null;C.fontSize=u[1];handleSetFont(null,u[0]).then(t,r)}else{D.set(W,i.objId,!0);t()}})).catch((function(t){if(!(t instanceof o.AbortException)){if(!T.options.ignoreErrors)throw t;(0,o.warn)('getTextContent - ignoring ExtGState: "'.concat(t,'".'))}})));return}if(x.items.length>=b.desiredSize){u=!0;break}}if(u)a(O);else{flushTextContentItem();enqueueChunk();t()}})).catch((function(t){if(!(t instanceof o.AbortException)){if(!r.options.ignoreErrors)throw t;(0,o.warn)('getTextContent - ignoring errors during "'.concat(i.name,'" ')+'task: "'.concat(t,'".'));flushTextContentItem();enqueueChunk()}}))}},{key:"extractDataStructures",value:function extractDataStructures(t,r,a){var i,l=this,d=this.xref,p=t.get("ToUnicode")||r.get("ToUnicode"),g=p?this.readToUnicode(p):Promise.resolve(void 0);if(a.composite){var m=t.get("CIDSystemInfo");(0,c.isDict)(m)&&(a.cidSystemInfo={registry:(0,o.stringToPDFString)(m.get("Registry")),ordering:(0,o.stringToPDFString)(m.get("Ordering")),supplement:m.get("Supplement")});var y=t.get("CIDToGIDMap");(0,c.isStream)(y)&&(i=y.getBytes())}var b,v=[],S=null;if(t.has("Encoding")){b=t.get("Encoding");if((0,c.isDict)(b)){S=b.get("BaseEncoding");S=(0,c.isName)(S)?S.name:null;if(b.has("Differences"))for(var k=b.get("Differences"),w=0,C=0,_=k.length;C<_;C++){var x=d.fetchIfRef(k[C]);if((0,o.isNum)(x))w=x;else{if(!(0,c.isName)(x))throw new o.FormatError("Invalid entry in 'Differences' array: ".concat(x));v[w++]=x.name}}}else{if(!(0,c.isName)(b))throw new o.FormatError("Encoding is not a Name nor a Dict");S=b.name}"MacRomanEncoding"!==S&&"MacExpertEncoding"!==S&&"WinAnsiEncoding"!==S&&(S=null)}if(S)a.defaultEncoding=(0,h.getEncoding)(S).slice();else{var A=!!(a.flags&u.FontFlags.Symbolic),T=!!(a.flags&u.FontFlags.Nonsymbolic);b=h.StandardEncoding;"TrueType"!==a.type||T||(b=h.WinAnsiEncoding);if(A){b=h.MacRomanEncoding;a.file||(/Symbol/i.test(a.name)?b=h.SymbolSetEncoding:/Dingbats|Wingdings/i.test(a.name)&&(b=h.ZapfDingbatsEncoding))}a.defaultEncoding=b}a.differences=v;a.baseEncodingName=S;a.hasEncoding=!!S||v.length>0;a.dict=t;return g.then((function(t){a.toUnicode=t;return l.buildToUnicode(a)})).then((function(t){a.toUnicode=t;i&&(a.cidToGidMap=l.readCidToGidMap(i,t));return a}))}},{key:"_buildSimpleFontToUnicode",value:function _buildSimpleFontToUnicode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,o.assert)(!t.composite,"Must be a simple font.");var a=[],i=t.defaultEncoding.slice(),l=t.baseEncodingName,c=t.differences;for(var d in c){var g=c[d];".notdef"!==g&&(i[d]=g)}var m=(0,C.getGlyphsUnicode)();for(var y in i){var b=i[y];if(""!==b)if(void 0!==m[b])a[y]=String.fromCharCode(m[b]);else{var v=0;switch(b[0]){case"G":3===b.length&&(v=parseInt(b.substring(1),16));break;case"g":5===b.length&&(v=parseInt(b.substring(1),16));break;case"C":case"c":if(b.length>=3&&b.length<=4){var S=b.substring(1);if(r){v=parseInt(S,16);break}v=+S;if(Number.isNaN(v)&&Number.isInteger(parseInt(S,16)))return this._buildSimpleFontToUnicode(t,!0)}break;default:var k=(0,p.getUnicodeForGlyph)(b,m);-1!==k&&(v=k)}if(v>0&&v<=1114111&&Number.isInteger(v)){if(l&&v===+y){var w=(0,h.getEncoding)(l);if(w&&(b=w[y])){a[y]=String.fromCharCode(m[b]);continue}}a[y]=String.fromCodePoint(v)}}}return new u.ToUnicodeMap(a)}},{key:"buildToUnicode",value:function buildToUnicode(t){t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0;if(t.hasIncludedToUnicodeMap){!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._buildSimpleFontToUnicode(t));return Promise.resolve(t.toUnicode)}if(!t.composite)return Promise.resolve(this._buildSimpleFontToUnicode(t));if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof l.IdentityCMap)||"Adobe"===t.cidSystemInfo.registry&&("GB1"===t.cidSystemInfo.ordering||"CNS1"===t.cidSystemInfo.ordering||"Japan1"===t.cidSystemInfo.ordering||"Korea1"===t.cidSystemInfo.ordering))){var r=t.cidSystemInfo.registry,a=t.cidSystemInfo.ordering,i=c.Name.get(r+"-"+a+"-UCS2");return l.CMapFactory.create({encoding:i,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(r){var a=t.cMap,i=[];a.forEach((function(t,a){if(a>65535)throw new o.FormatError("Max size of CID is 65,535");var l=r.lookup(a);l&&(i[t]=String.fromCharCode((l.charCodeAt(0)<<8)+l.charCodeAt(1)))}));return new u.ToUnicodeMap(i)}))}return Promise.resolve(new u.IdentityToUnicodeMap(t.firstChar,t.lastChar))}},{key:"readToUnicode",value:function readToUnicode(t){var r=this,a=t;return(0,c.isName)(a)?l.CMapFactory.create({encoding:a,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){return t instanceof l.IdentityCMap?new u.IdentityToUnicodeMap(0,65535):new u.ToUnicodeMap(t.getMap())})):(0,c.isStream)(a)?l.CMapFactory.create({encoding:a,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof l.IdentityCMap)return new u.IdentityToUnicodeMap(0,65535);var r=new Array(t.length);t.forEach((function(t,a){for(var i=[],o=0;o<a.length;o+=2){var l=a.charCodeAt(o)<<8|a.charCodeAt(o+1);if(55296==(63488&l)){o+=2;var c=a.charCodeAt(o)<<8|a.charCodeAt(o+1);i.push(((1023&l)<<10)+(1023&c)+65536)}else i.push(l)}r[t]=String.fromCodePoint.apply(String,i)}));return new u.ToUnicodeMap(r)}),(function(t){if(t instanceof o.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorFontToUnicode});(0,o.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(t,'".'));return null}throw t})):Promise.resolve(null)}},{key:"readCidToGidMap",value:function readCidToGidMap(t,r){for(var a=[],i=0,o=t.length;i<o;i++){var l=t[i++]<<8|t[i],c=i>>1;(0!==l||r.has(c))&&(a[c]=l)}return a}},{key:"extractWidths",value:function extractWidths(t,r,a){var i,o,l,h,d,p,g,m,y=this.xref,b=[],v=0,S=[];if(a.composite){v=t.has("DW")?t.get("DW"):1e3;if(m=t.get("W"))for(o=0,l=m.length;o<l;o++){p=y.fetchIfRef(m[o++]);g=y.fetchIfRef(m[o]);if(Array.isArray(g))for(h=0,d=g.length;h<d;h++)b[p++]=y.fetchIfRef(g[h]);else{var k=y.fetchIfRef(m[++o]);for(h=p;h<=g;h++)b[h]=k}}if(a.vertical){var w=t.getArray("DW2")||[880,-1e3];i=[w[1],.5*v,w[0]];if(w=t.get("W2"))for(o=0,l=w.length;o<l;o++){p=y.fetchIfRef(w[o++]);g=y.fetchIfRef(w[o]);if(Array.isArray(g))for(h=0,d=g.length;h<d;h++)S[p++]=[y.fetchIfRef(g[h++]),y.fetchIfRef(g[h++]),y.fetchIfRef(g[h])];else{var C=[y.fetchIfRef(w[++o]),y.fetchIfRef(w[++o]),y.fetchIfRef(w[++o])];for(h=p;h<=g;h++)S[h]=C}}}}else{var _=a.firstChar;if(m=t.get("Widths")){h=_;for(o=0,l=m.length;o<l;o++)b[h++]=y.fetchIfRef(m[o]);v=parseFloat(r.get("MissingWidth"))||0}else{var x=t.get("BaseFont");if((0,c.isName)(x)){var A=this.getBaseFontMetrics(x.name);b=this.buildCharCodeToWidth(A.widths,a);v=A.defaultWidth}}}var T=!0,P=v;for(var R in b){var I=b[R];if(I)if(P){if(P!==I){T=!1;break}}else P=I}T&&(a.flags|=u.FontFlags.FixedPitch);a.defaultWidth=v;a.widths=b;a.defaultVMetrics=i;a.vmetrics=S}},{key:"isSerifFont",value:function isSerifFont(t){var r=t.split("-")[0];return r in(0,g.getSerifFonts)()||-1!==r.search(/serif/gi)}},{key:"getBaseFontMetrics",value:function getBaseFontMetrics(t){var r=0,a=[],i=!1,l=(0,g.getStdFontMap)()[t]||t,c=(0,_.getMetrics)();l in c||(l=this.isSerifFont(t)?"Times-Roman":"Helvetica");var u=c[l];if((0,o.isNum)(u)){r=u;i=!0}else a=u();return{defaultWidth:r,monospace:i,widths:a}}},{key:"buildCharCodeToWidth",value:function buildCharCodeToWidth(t,r){for(var a=Object.create(null),i=r.differences,o=r.defaultEncoding,l=0;l<256;l++)l in i&&t[i[l]]?a[l]=t[i[l]]:l in o&&t[o[l]]&&(a[l]=t[o[l]]);return a}},{key:"preEvaluateFont",value:function preEvaluateFont(t){var r=t,a=t.get("Subtype");if(!(0,c.isName)(a))throw new o.FormatError("invalid font Subtype");var i,l=!1;if("Type0"===a.name){var u=t.get("DescendantFonts");if(!u)throw new o.FormatError("Descendant fonts are not specified");if(!((t=Array.isArray(u)?this.xref.fetchIfRef(u[0]):u)instanceof c.Dict))throw new o.FormatError("Descendant font is not a dictionary.");a=t.get("Subtype");if(!(0,c.isName)(a))throw new o.FormatError("invalid font Subtype");l=!0}var h=t.get("FontDescriptor");if(h){var d=new x.MurmurHash3_64,p=r.getRaw("Encoding");if((0,c.isName)(p))d.update(p.name);else if((0,c.isRef)(p))d.update(p.toString());else if((0,c.isDict)(p)){var g,m=_createForOfIteratorHelper(p.getRawValues());try{for(m.s();!(g=m.n()).done;){var y=g.value;if((0,c.isName)(y))d.update(y.name);else if((0,c.isRef)(y))d.update(y.toString());else if(Array.isArray(y)){for(var b=y.length,v=new Array(b),S=0;S<b;S++){var k=y[S];(0,c.isName)(k)?v[S]=k.name:((0,o.isNum)(k)||(0,c.isRef)(k))&&(v[S]=k.toString())}d.update(v.join())}}}catch(t){m.e(t)}finally{m.f()}}var w=t.get("FirstChar")||0,C=t.get("LastChar")||(l?65535:255);d.update("".concat(w,"-").concat(C));var _=t.get("ToUnicode")||r.get("ToUnicode");if((0,c.isStream)(_)){var A=_.str||_;i=A.buffer?new Uint8Array(A.buffer.buffer,0,A.bufferLength):new Uint8Array(A.bytes.buffer,A.start,A.end-A.start);d.update(i)}else(0,c.isName)(_)&&d.update(_.name);var T=t.get("Widths")||r.get("Widths");if(T){i=new Uint8Array(new Uint32Array(T).buffer);d.update(i)}}return{descriptor:h,dict:t,baseDict:r,composite:l,type:a.name,hash:d?d.hexdigest():""}}},{key:"translateFont",value:(t=_asyncToGenerator(i.default.mark((function _callee7(t){var r,a,h,d,p,m,y,b,v,S,k,w,C,_,x,A,T,P,R,I,O,E,D,B,M,L=this;return i.default.wrap((function _callee7$(i){for(;;)switch(i.prev=i.next){case 0:r=t.baseDict;a=t.dict;h=t.composite;d=t.descriptor;p=t.type;m=h?65535:255;b=a.get("FirstChar")||0;v=a.get("LastChar")||m;if(d){i.next=25;break}if("Type3"!==p){i.next=15;break}(d=new c.Dict(null)).set("FontName",c.Name.get(p));d.set("FontBBox",a.getArray("FontBBox")||[0,0,0,0]);i.next=25;break;case 15:S=a.get("BaseFont");if((0,c.isName)(S)){i.next=18;break}throw new o.FormatError("Base font is not specified");case 18:S=S.name.replace(/[,_]/g,"-");k=this.getBaseFontMetrics(S);w=S.split("-")[0];C=(this.isSerifFont(w)?u.FontFlags.Serif:0)|(k.monospace?u.FontFlags.FixedPitch:0)|((0,g.getSymbolsFonts)()[w]?u.FontFlags.Symbolic:u.FontFlags.Nonsymbolic);y={type:p,name:S,widths:k.widths,defaultWidth:k.defaultWidth,flags:C,firstChar:b,lastChar:v};_=a.get("Widths");return i.abrupt("return",this.extractDataStructures(a,a,y).then((function(t){if(_){for(var r=[],a=b,i=0,o=_.length;i<o;i++)r[a++]=L.xref.fetchIfRef(_[i]);t.widths=r}else t.widths=L.buildCharCodeToWidth(k.widths,t);return new u.Font(S,null,t)})));case 25:x=d.get("FontName");A=a.get("BaseFont");(0,o.isString)(x)&&(x=c.Name.get(x));(0,o.isString)(A)&&(A=c.Name.get(A));if("Type3"!==p){T=x&&x.name;P=A&&A.name;if(T!==P){(0,o.info)("The FontDescriptor's FontName is \"".concat(T,'" but ')+"should be the same as the Font's BaseFont \"".concat(P,'".'));T&&P&&P.startsWith(T)&&(x=A)}}x=x||A;if((0,c.isName)(x)){i.next=33;break}throw new o.FormatError("invalid font name");case 33:if((R=d.get("FontFile","FontFile2","FontFile3"))&&R.dict){(I=R.dict.get("Subtype"))&&(I=I.name);O=R.dict.get("Length1");E=R.dict.get("Length2");D=R.dict.get("Length3")}y={type:p,name:x.name,subtype:I,file:R,length1:O,length2:E,length3:D,loadedName:r.loadedName,composite:h,fixedPitch:!1,fontMatrix:a.getArray("FontMatrix")||o.FONT_IDENTITY_MATRIX,firstChar:b||0,lastChar:v||m,bbox:d.getArray("FontBBox"),ascent:d.get("Ascent"),descent:d.get("Descent"),xHeight:d.get("XHeight"),capHeight:d.get("CapHeight"),flags:d.get("Flags"),italicAngle:d.get("ItalicAngle"),isType3Font:!1};if(!h){i.next=44;break}B=r.get("Encoding");(0,c.isName)(B)&&(y.cidEncoding=B.name);i.next=41;return l.CMapFactory.create({encoding:B,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 41:M=i.sent;y.cMap=M;y.vertical=y.cMap.vertical;case 44:return i.abrupt("return",this.extractDataStructures(a,r,y).then((function(t){L.extractWidths(a,d,t);"Type3"===p&&(t.isType3Font=!0);return new u.Font(x.name,R,t)})));case 45:case"end":return i.stop()}}),_callee7,this)}))),function translateFont(r){return t.apply(this,arguments)})},{key:"_pdfFunctionFactory",get:function get(){var t=new y.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,o.shadow)(this,"_pdfFunctionFactory",t)}}],[{key:"buildFontPaths",value:function buildFontPaths(t,r,a){function buildPath(r){t.renderer.hasBuiltPath(r)||a.send("commonobj",["".concat(t.loadedName,"_path_").concat(r),"FontPath",t.renderer.getPathJs(r)])}var i,o=_createForOfIteratorHelper(r);try{for(o.s();!(i=o.n()).done;){var l=i.value;buildPath(l.fontChar);var c=l.accent;c&&c.fontChar&&buildPath(c.fontChar)}}catch(t){o.e(t)}finally{o.f()}}},{key:"fallbackFontDict",get:function get(){var t=new c.Dict;t.set("BaseFont",c.Name.get("PDFJS-FallbackFont"));t.set("Type",c.Name.get("FallbackType"));t.set("Subtype",c.Name.get("FallbackType"));t.set("Encoding",c.Name.get("WinAnsiEncoding"));return(0,o.shadow)(this,"fallbackFontDict",t)}}]);var t,r,a,b,D,U;return PartialEvaluator}();r.PartialEvaluator=D;var B=function(){function TranslatedFont(t){var r=t.loadedName,a=t.font,i=t.dict,o=t.extraProperties,l=void 0!==o&&o;_classCallCheck(this,TranslatedFont);this.loadedName=r;this.font=a;this.dict=i;this._extraProperties=l;this.type3Loaded=null;this.type3Dependencies=a.isType3Font?new Set:null;this.sent=!1}_createClass(TranslatedFont,[{key:"send",value:function send(t){if(!this.sent){this.sent=!0;t.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)])}}},{key:"fallback",value:function fallback(t){if(this.font.data){this.font.disableFontFace=!0;var r=this.font.glyphCacheValues;D.buildFontPaths(this.font,r,t)}}},{key:"loadType3Data",value:function loadType3Data(t,r,a){var i=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var l=Object.create(t.options);l.ignoreErrors=!1;var c=t.clone(l);c.parsingType3Font=!0;var u,h=this.font,d=this.type3Dependencies,p=Promise.resolve(),g=this.dict.get("CharProcs"),m=this.dict.get("Resources")||r,y=Object.create(null),b=_createForOfIteratorHelper(g.getKeys());try{var v=function _loop2(){var t=u.value;p=p.then((function(){var r=g.get(t),l=new A.OperatorList;return c.getOperatorList({stream:r,task:a,resources:m,operatorList:l}).then((function(){l.fnArray[0]===o.OPS.setCharWidthAndBounds&&i._removeType3ColorOperators(l);y[t]=l.getIR();var r,a=_createForOfIteratorHelper(l.dependencies);try{for(a.s();!(r=a.n()).done;){var c=r.value;d.add(c)}}catch(t){a.e(t)}finally{a.f()}})).catch((function(r){(0,o.warn)('Type3 font resource "'.concat(t,'" is not available.'));var a=new A.OperatorList;y[t]=a.getIR()}))}))};for(b.s();!(u=b.n()).done;)v()}catch(t){b.e(t)}finally{b.f()}this.type3Loaded=p.then((function(){h.charProcOperatorList=y}));return this.type3Loaded}},{key:"_removeType3ColorOperators",value:function _removeType3ColorOperators(t){for(var r=1,a=t.length;r<a;){switch(t.fnArray[r]){case o.OPS.setStrokeColorSpace:case o.OPS.setFillColorSpace:case o.OPS.setStrokeColor:case o.OPS.setStrokeColorN:case o.OPS.setFillColor:case o.OPS.setFillColorN:case o.OPS.setStrokeGray:case o.OPS.setFillGray:case o.OPS.setStrokeRGBColor:case o.OPS.setFillRGBColor:case o.OPS.setStrokeCMYKColor:case o.OPS.setFillCMYKColor:case o.OPS.shadingFill:case o.OPS.setRenderingIntent:t.fnArray.splice(r,1);t.argsArray.splice(r,1);a--;continue;case o.OPS.setGState:for(var i=_slicedToArray(t.argsArray[r],1)[0],l=0,c=i.length;l<c;){switch(_slicedToArray(i[l],1)[0]){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":i.splice(l,1);c--;continue}l++}}r++}}}]);return TranslatedFont}(),M=function(){function StateManager(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new N;_classCallCheck(this,StateManager);this.state=t;this.stateStack=[]}_createClass(StateManager,[{key:"save",value:function save(){var t=this.state;this.stateStack.push(this.state);this.state=t.clone()}},{key:"restore",value:function restore(){var t=this.stateStack.pop();t&&(this.state=t)}},{key:"transform",value:function transform(t){this.state.ctm=o.Util.transform(this.state.ctm,t)}}]);return StateManager}(),L=function(){function TextState(){_classCallCheck(this,TextState);this.ctm=new Float32Array(o.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=o.FONT_IDENTITY_MATRIX;this.textMatrix=o.IDENTITY_MATRIX.slice();this.textLineMatrix=o.IDENTITY_MATRIX.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}_createClass(TextState,[{key:"setTextMatrix",value:function setTextMatrix(t,r,a,i,o,l){var c=this.textMatrix;c[0]=t;c[1]=r;c[2]=a;c[3]=i;c[4]=o;c[5]=l}},{key:"setTextLineMatrix",value:function setTextLineMatrix(t,r,a,i,o,l){var c=this.textLineMatrix;c[0]=t;c[1]=r;c[2]=a;c[3]=i;c[4]=o;c[5]=l}},{key:"translateTextMatrix",value:function translateTextMatrix(t,r){var a=this.textMatrix;a[4]=a[0]*t+a[2]*r+a[4];a[5]=a[1]*t+a[3]*r+a[5]}},{key:"translateTextLineMatrix",value:function translateTextLineMatrix(t,r){var a=this.textLineMatrix;a[4]=a[0]*t+a[2]*r+a[4];a[5]=a[1]*t+a[3]*r+a[5]}},{key:"calcTextLineMatrixAdvance",value:function calcTextLineMatrixAdvance(t,r,a,i,o,l){var c=this.font;if(!c)return null;var u=this.textLineMatrix;if(t!==u[0]||r!==u[1]||a!==u[2]||i!==u[3])return null;var h=o-u[4],d=l-u[5];if(c.vertical&&0!==h||!c.vertical&&0!==d)return null;var p,g,m=t*i-r*a;if(c.vertical){p=-d*a/m;g=d*t/m}else{p=h*i/m;g=-h*r/m}return{width:p,height:g,value:c.vertical?g:p}}},{key:"calcRenderMatrix",value:function calcRenderMatrix(t){var r=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return o.Util.transform(t,o.Util.transform(this.textMatrix,r))}},{key:"carriageReturn",value:function carriageReturn(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function clone(){var clone=Object.create(this);clone.textMatrix=this.textMatrix.slice();clone.textLineMatrix=this.textLineMatrix.slice();clone.fontMatrix=this.fontMatrix.slice();return clone}}]);return TextState}(),N=function(){function EvalState(){_classCallCheck(this,EvalState);this.ctm=new Float32Array(o.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=o.TextRenderingMode.FILL;this.fillColorSpace=k.ColorSpace.singletons.gray;this.strokeColorSpace=k.ColorSpace.singletons.gray}_createClass(EvalState,[{key:"clone",value:function clone(){return Object.create(this)}}]);return EvalState}(),j=function(){_createClass(EvaluatorPreprocessor,null,[{key:"opMap",get:function get(){var t=(0,d.getLookupTableFactory)((function(t){t.w={id:o.OPS.setLineWidth,numArgs:1,variableArgs:!1};t.J={id:o.OPS.setLineCap,numArgs:1,variableArgs:!1};t.j={id:o.OPS.setLineJoin,numArgs:1,variableArgs:!1};t.M={id:o.OPS.setMiterLimit,numArgs:1,variableArgs:!1};t.d={id:o.OPS.setDash,numArgs:2,variableArgs:!1};t.ri={id:o.OPS.setRenderingIntent,numArgs:1,variableArgs:!1};t.i={id:o.OPS.setFlatness,numArgs:1,variableArgs:!1};t.gs={id:o.OPS.setGState,numArgs:1,variableArgs:!1};t.q={id:o.OPS.save,numArgs:0,variableArgs:!1};t.Q={id:o.OPS.restore,numArgs:0,variableArgs:!1};t.cm={id:o.OPS.transform,numArgs:6,variableArgs:!1};t.m={id:o.OPS.moveTo,numArgs:2,variableArgs:!1};t.l={id:o.OPS.lineTo,numArgs:2,variableArgs:!1};t.c={id:o.OPS.curveTo,numArgs:6,variableArgs:!1};t.v={id:o.OPS.curveTo2,numArgs:4,variableArgs:!1};t.y={id:o.OPS.curveTo3,numArgs:4,variableArgs:!1};t.h={id:o.OPS.closePath,numArgs:0,variableArgs:!1};t.re={id:o.OPS.rectangle,numArgs:4,variableArgs:!1};t.S={id:o.OPS.stroke,numArgs:0,variableArgs:!1};t.s={id:o.OPS.closeStroke,numArgs:0,variableArgs:!1};t.f={id:o.OPS.fill,numArgs:0,variableArgs:!1};t.F={id:o.OPS.fill,numArgs:0,variableArgs:!1};t["f*"]={id:o.OPS.eoFill,numArgs:0,variableArgs:!1};t.B={id:o.OPS.fillStroke,numArgs:0,variableArgs:!1};t["B*"]={id:o.OPS.eoFillStroke,numArgs:0,variableArgs:!1};t.b={id:o.OPS.closeFillStroke,numArgs:0,variableArgs:!1};t["b*"]={id:o.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1};t.n={id:o.OPS.endPath,numArgs:0,variableArgs:!1};t.W={id:o.OPS.clip,numArgs:0,variableArgs:!1};t["W*"]={id:o.OPS.eoClip,numArgs:0,variableArgs:!1};t.BT={id:o.OPS.beginText,numArgs:0,variableArgs:!1};t.ET={id:o.OPS.endText,numArgs:0,variableArgs:!1};t.Tc={id:o.OPS.setCharSpacing,numArgs:1,variableArgs:!1};t.Tw={id:o.OPS.setWordSpacing,numArgs:1,variableArgs:!1};t.Tz={id:o.OPS.setHScale,numArgs:1,variableArgs:!1};t.TL={id:o.OPS.setLeading,numArgs:1,variableArgs:!1};t.Tf={id:o.OPS.setFont,numArgs:2,variableArgs:!1};t.Tr={id:o.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1};t.Ts={id:o.OPS.setTextRise,numArgs:1,variableArgs:!1};t.Td={id:o.OPS.moveText,numArgs:2,variableArgs:!1};t.TD={id:o.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1};t.Tm={id:o.OPS.setTextMatrix,numArgs:6,variableArgs:!1};t["T*"]={id:o.OPS.nextLine,numArgs:0,variableArgs:!1};t.Tj={id:o.OPS.showText,numArgs:1,variableArgs:!1};t.TJ={id:o.OPS.showSpacedText,numArgs:1,variableArgs:!1};t["'"]={id:o.OPS.nextLineShowText,numArgs:1,variableArgs:!1};t['"']={id:o.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1};t.d0={id:o.OPS.setCharWidth,numArgs:2,variableArgs:!1};t.d1={id:o.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1};t.CS={id:o.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1};t.cs={id:o.OPS.setFillColorSpace,numArgs:1,variableArgs:!1};t.SC={id:o.OPS.setStrokeColor,numArgs:4,variableArgs:!0};t.SCN={id:o.OPS.setStrokeColorN,numArgs:33,variableArgs:!0};t.sc={id:o.OPS.setFillColor,numArgs:4,variableArgs:!0};t.scn={id:o.OPS.setFillColorN,numArgs:33,variableArgs:!0};t.G={id:o.OPS.setStrokeGray,numArgs:1,variableArgs:!1};t.g={id:o.OPS.setFillGray,numArgs:1,variableArgs:!1};t.RG={id:o.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1};t.rg={id:o.OPS.setFillRGBColor,numArgs:3,variableArgs:!1};t.K={id:o.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1};t.k={id:o.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1};t.sh={id:o.OPS.shadingFill,numArgs:1,variableArgs:!1};t.BI={id:o.OPS.beginInlineImage,numArgs:0,variableArgs:!1};t.ID={id:o.OPS.beginImageData,numArgs:0,variableArgs:!1};t.EI={id:o.OPS.endInlineImage,numArgs:1,variableArgs:!1};t.Do={id:o.OPS.paintXObject,numArgs:1,variableArgs:!1};t.MP={id:o.OPS.markPoint,numArgs:1,variableArgs:!1};t.DP={id:o.OPS.markPointProps,numArgs:2,variableArgs:!1};t.BMC={id:o.OPS.beginMarkedContent,numArgs:1,variableArgs:!1};t.BDC={id:o.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1};t.EMC={id:o.OPS.endMarkedContent,numArgs:0,variableArgs:!1};t.BX={id:o.OPS.beginCompat,numArgs:0,variableArgs:!1};t.EX={id:o.OPS.endCompat,numArgs:0,variableArgs:!1};t.BM=null;t.BD=null;t.true=null;t.fa=null;t.fal=null;t.fals=null;t.false=null;t.nu=null;t.nul=null;t.null=null}));return(0,o.shadow)(this,"opMap",t())}},{key:"MAX_INVALID_PATH_OPS",get:function get(){return(0,o.shadow)(this,"MAX_INVALID_PATH_OPS",20)}}]);function EvaluatorPreprocessor(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new M;_classCallCheck(this,EvaluatorPreprocessor);this.parser=new b.Parser({lexer:new b.Lexer(t,EvaluatorPreprocessor.opMap),xref:r});this.stateManager=a;this.nonProcessedArgs=[];this._numInvalidPathOPS=0}_createClass(EvaluatorPreprocessor,[{key:"read",value:function read(t){for(var r=t.args;;){var a=this.parser.getObj();if(a instanceof c.Cmd){var i=a.cmd,l=EvaluatorPreprocessor.opMap[i];if(!l){(0,o.warn)('Unknown command "'.concat(i,'".'));continue}var u=l.id,h=l.numArgs,d=null!==r?r.length:0;if(l.variableArgs)d>h&&(0,o.info)("Command ".concat(i,": expected [0, ").concat(h,"] args, ")+"but received ".concat(d," args."));else{if(d!==h){for(var p=this.nonProcessedArgs;d>h;){p.push(r.shift());d--}for(;d<h&&0!==p.length;){null===r&&(r=[]);r.unshift(p.pop());d++}}if(d<h){var g="command ".concat(i,": expected ").concat(h," args, ")+"but received ".concat(d," args.");if(u>=o.OPS.moveTo&&u<=o.OPS.endPath&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new o.FormatError("Invalid ".concat(g));(0,o.warn)("Skipping ".concat(g));null!==r&&(r.length=0);continue}}this.preprocessCommand(u,r);t.fn=u;t.args=r;return!0}if(a===c.EOF)return!1;if(null!==a){null===r&&(r=[]);r.push(a);if(r.length>33)throw new o.FormatError("Too many arguments")}}}},{key:"preprocessCommand",value:function preprocessCommand(t,r){switch(0|t){case o.OPS.save:this.stateManager.save();break;case o.OPS.restore:this.stateManager.restore();break;case o.OPS.transform:this.stateManager.transform(r)}}},{key:"savedStatesDepth",get:function get(){return this.stateManager.stateStack.length}}]);return EvaluatorPreprocessor}();r.EvaluatorPreprocessor=j},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.IdentityCMap=r.CMapFactory=r.CMap=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(135),c=a(141),u=a(138),h=a(142);function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var d=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],p=Math.pow(2,24)-1,g=function(){function CMap(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,CMap);this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=!1;this.useCMap=null;this.builtInCMap=t}_createClass(CMap,[{key:"addCodespaceRange",value:function addCodespaceRange(t,r,a){this.codespaceRanges[t-1].push(r,a);this.numCodespaceRanges++}},{key:"mapCidRange",value:function mapCidRange(t,r,a){if(r-t>p)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=r;)this._map[t++]=a++}},{key:"mapBfRange",value:function mapBfRange(t,r,a){if(r-t>p)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var i=a.length-1;t<=r;){this._map[t++]=a;a=a.substring(0,i)+String.fromCharCode(a.charCodeAt(i)+1)}}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,a){if(r-t>p)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var i=a.length,o=0;t<=r&&o<i;){this._map[t]=a[o++];++t}}},{key:"mapOne",value:function mapOne(t,r){this._map[t]=r}},{key:"lookup",value:function lookup(t){return this._map[t]}},{key:"contains",value:function contains(t){return void 0!==this._map[t]}},{key:"forEach",value:function forEach(t){var r=this._map,a=r.length;if(a<=65536)for(var i=0;i<a;i++)void 0!==r[i]&&t(i,r[i]);else for(var o in r)t(o,r[o])}},{key:"charCodeOf",value:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var a in r)if(r[a]===t)return 0|a;return-1}},{key:"getMap",value:function getMap(){return this._map}},{key:"readCharCode",value:function readCharCode(t,r,a){for(var i=0,o=this.codespaceRanges,l=0,c=o.length;l<c;l++){i=(i<<8|t.charCodeAt(r+l))>>>0;for(var u=o[l],h=0,d=u.length;h<d;){var p=u[h++],g=u[h++];if(i>=p&&i<=g){a.charcode=i;a.length=l+1;return}}}a.charcode=0;a.length=1}},{key:"getCharCodeLength",value:function getCharCodeLength(t){for(var r=this.codespaceRanges,a=0,i=r.length;a<i;a++)for(var o=r[a],l=0,c=o.length;l<c;){var u=o[l++],h=o[l++];if(t>=u&&t<=h)return a+1}return 1}},{key:"length",get:function get(){return this._map.length}},{key:"isIdentityCMap",get:function get(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var t=0;t<65536;t++)if(this._map[t]!==t)return!1;return!0}}]);return CMap}();r.CMap=g;var m=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(IdentityCMap,t);var r=_createSuper(IdentityCMap);function IdentityCMap(t,a){var i;_classCallCheck(this,IdentityCMap);(i=r.call(this)).vertical=t;i.addCodespaceRange(a,0,65535);return i}_createClass(IdentityCMap,[{key:"mapCidRange",value:function mapCidRange(t,r,a){(0,o.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function mapBfRange(t,r,a){(0,o.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,a){(0,o.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function mapOne(t,r){(0,o.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}},{key:"contains",value:function contains(t){return Number.isInteger(t)&&t<=65535}},{key:"forEach",value:function forEach(t){for(var r=0;r<=65535;r++)t(r,r)}},{key:"charCodeOf",value:function charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}},{key:"getMap",value:function getMap(){for(var t=new Array(65536),r=0;r<=65535;r++)t[r]=r;return t}},{key:"length",get:function get(){return 65536}},{key:"isIdentityCMap",get:function get(){(0,o.unreachable)("should not access .isIdentityCMap")}}]);return IdentityCMap}(g);r.IdentityCMap=m;var y=function BinaryCMapReaderClosure(){function hexToInt(t,r){for(var a=0,i=0;i<=r;i++)a=a<<8|t[i];return a>>>0}function hexToStr(t,r){return 1===r?String.fromCharCode(t[0],t[1]):3===r?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode.apply(null,t.subarray(0,r+1))}function addHex(t,r,a){for(var i=0,o=a;o>=0;o--){i+=t[o]+r[o];t[o]=255&i;i>>=8}}function incHex(t,r){for(var a=1,i=r;i>=0&&a>0;i--){a+=t[i];t[i]=255&a;a>>=8}}var t=16;function BinaryCMapStream(t){this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(19)}BinaryCMapStream.prototype={readByte:function readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function readNumber(){var t,r=0;do{var a=this.readByte();if(a<0)throw new o.FormatError("unexpected EOF in bcmap");t=!(128&a);r=r<<7|127&a}while(!t);return r},readSigned:function readSigned(){var t=this.readNumber();return 1&t?~(t>>>1):t>>>1},readHex:function readHex(t,r){t.set(this.buffer.subarray(this.pos,this.pos+r+1));this.pos+=r+1},readHexNumber:function readHexNumber(t,r){var a,i=this.tmpBuf,l=0;do{var c=this.readByte();if(c<0)throw new o.FormatError("unexpected EOF in bcmap");a=!(128&c);i[l++]=127&c}while(!a);for(var u=r,h=0,d=0;u>=0;){for(;d<8&&i.length>0;){h=i[--l]<<d|h;d+=7}t[u]=255&h;u--;h>>=8;d-=8}},readHexSigned:function readHexSigned(t,r){this.readHexNumber(t,r);for(var a=1&t[r]?255:0,i=0,o=0;o<=r;o++){i=(1&i)<<8|t[o];t[o]=i>>1^a}},readString:function readString(){for(var t=this.readNumber(),r="",a=0;a<t;a++)r+=String.fromCharCode(this.readNumber());return r}};function BinaryCMapReader(){}BinaryCMapReader.prototype={process:function processBinaryCMap(r,a,i){return new Promise((function(o,l){var c=new BinaryCMapStream(r),u=c.readByte();a.vertical=!!(1&u);for(var h,d,p=null,g=new Uint8Array(t),m=new Uint8Array(t),y=new Uint8Array(t),b=new Uint8Array(t),v=new Uint8Array(t);(d=c.readByte())>=0;){var S=d>>5;if(7!==S){var k=!!(16&d),w=15&d;if(w+1>t)throw new Error("processBinaryCMap: Invalid dataSize.");var C,_=c.readNumber();switch(S){case 0:c.readHex(g,w);c.readHexNumber(m,w);addHex(m,g,w);a.addCodespaceRange(w+1,hexToInt(g,w),hexToInt(m,w));for(C=1;C<_;C++){incHex(m,w);c.readHexNumber(g,w);addHex(g,m,w);c.readHexNumber(m,w);addHex(m,g,w);a.addCodespaceRange(w+1,hexToInt(g,w),hexToInt(m,w))}break;case 1:c.readHex(g,w);c.readHexNumber(m,w);addHex(m,g,w);c.readNumber();for(C=1;C<_;C++){incHex(m,w);c.readHexNumber(g,w);addHex(g,m,w);c.readHexNumber(m,w);addHex(m,g,w);c.readNumber()}break;case 2:c.readHex(y,w);h=c.readNumber();a.mapOne(hexToInt(y,w),h);for(C=1;C<_;C++){incHex(y,w);if(!k){c.readHexNumber(v,w);addHex(y,v,w)}h=c.readSigned()+(h+1);a.mapOne(hexToInt(y,w),h)}break;case 3:c.readHex(g,w);c.readHexNumber(m,w);addHex(m,g,w);h=c.readNumber();a.mapCidRange(hexToInt(g,w),hexToInt(m,w),h);for(C=1;C<_;C++){incHex(m,w);if(k)g.set(m);else{c.readHexNumber(g,w);addHex(g,m,w)}c.readHexNumber(m,w);addHex(m,g,w);h=c.readNumber();a.mapCidRange(hexToInt(g,w),hexToInt(m,w),h)}break;case 4:c.readHex(y,1);c.readHex(b,w);a.mapOne(hexToInt(y,1),hexToStr(b,w));for(C=1;C<_;C++){incHex(y,1);if(!k){c.readHexNumber(v,1);addHex(y,v,1)}incHex(b,w);c.readHexSigned(v,w);addHex(b,v,w);a.mapOne(hexToInt(y,1),hexToStr(b,w))}break;case 5:c.readHex(g,1);c.readHexNumber(m,1);addHex(m,g,1);c.readHex(b,w);a.mapBfRange(hexToInt(g,1),hexToInt(m,1),hexToStr(b,w));for(C=1;C<_;C++){incHex(m,1);if(k)g.set(m);else{c.readHexNumber(g,1);addHex(g,m,1)}c.readHexNumber(m,1);addHex(m,g,1);c.readHex(b,w);a.mapBfRange(hexToInt(g,1),hexToInt(m,1),hexToStr(b,w))}break;default:l(new Error("processBinaryCMap: Unknown type: "+S));return}}else switch(31&d){case 0:c.readString();break;case 1:p=c.readString()}}o(p?i(p):a)}))}};return BinaryCMapReader}(),b=function CMapFactoryClosure(){function strToInt(t){for(var r=0,a=0;a<t.length;a++)r=r<<8|t.charCodeAt(a);return r>>>0}function expectString(t){if(!(0,o.isString)(t))throw new o.FormatError("Malformed CMap: expected string.")}function expectInt(t){if(!Number.isInteger(t))throw new o.FormatError("Malformed CMap: expected int.")}function parseBfChar(t,r){for(;;){var a=r.getObj();if((0,l.isEOF)(a))break;if((0,l.isCmd)(a,"endbfchar"))return;expectString(a);var i=strToInt(a);expectString(a=r.getObj());var o=a;t.mapOne(i,o)}}function parseBfRange(t,r){for(;;){var a=r.getObj();if((0,l.isEOF)(a))break;if((0,l.isCmd)(a,"endbfrange"))return;expectString(a);var i=strToInt(a);expectString(a=r.getObj());var c=strToInt(a);a=r.getObj();if(Number.isInteger(a)||(0,o.isString)(a)){var u=Number.isInteger(a)?String.fromCharCode(a):a;t.mapBfRange(i,c,u)}else{if(!(0,l.isCmd)(a,"["))break;a=r.getObj();for(var h=[];!(0,l.isCmd)(a,"]")&&!(0,l.isEOF)(a);){h.push(a);a=r.getObj()}t.mapBfRangeToArray(i,c,h)}}throw new o.FormatError("Invalid bf range.")}function parseCidChar(t,r){for(;;){var a=r.getObj();if((0,l.isEOF)(a))break;if((0,l.isCmd)(a,"endcidchar"))return;expectString(a);var i=strToInt(a);expectInt(a=r.getObj());var o=a;t.mapOne(i,o)}}function parseCidRange(t,r){for(;;){var a=r.getObj();if((0,l.isEOF)(a))break;if((0,l.isCmd)(a,"endcidrange"))return;expectString(a);var i=strToInt(a);expectString(a=r.getObj());var o=strToInt(a);expectInt(a=r.getObj());var c=a;t.mapCidRange(i,o,c)}}function parseCodespaceRange(t,r){for(;;){var a=r.getObj();if((0,l.isEOF)(a))break;if((0,l.isCmd)(a,"endcodespacerange"))return;if(!(0,o.isString)(a))break;var i=strToInt(a);a=r.getObj();if(!(0,o.isString)(a))break;var c=strToInt(a);t.addCodespaceRange(a.length,i,c)}throw new o.FormatError("Invalid codespace range.")}function parseWMode(t,r){var a=r.getObj();Number.isInteger(a)&&(t.vertical=!!a)}function parseCMapName(t,r){var a=r.getObj();(0,l.isName)(a)&&(0,o.isString)(a.name)&&(t.name=a.name)}function parseCMap(t,r,a,i){var c,h;e:for(;;)try{var d=r.getObj();if((0,l.isEOF)(d))break;if((0,l.isName)(d)){"WMode"===d.name?parseWMode(t,r):"CMapName"===d.name&&parseCMapName(t,r);c=d}else if((0,l.isCmd)(d))switch(d.cmd){case"endcmap":break e;case"usecmap":(0,l.isName)(c)&&(h=c.name);break;case"begincodespacerange":parseCodespaceRange(t,r);break;case"beginbfchar":parseBfChar(t,r);break;case"begincidchar":parseCidChar(t,r);break;case"beginbfrange":parseBfRange(t,r);break;case"begincidrange":parseCidRange(t,r)}}catch(t){if(t instanceof u.MissingDataException)throw t;(0,o.warn)("Invalid cMap data: "+t);continue}!i&&h&&(i=h);return i?extendCMap(t,a,i):Promise.resolve(t)}function extendCMap(t,r,a){return createBuiltInCMap(a,r).then((function(r){t.useCMap=r;if(0===t.numCodespaceRanges){for(var a=t.useCMap.codespaceRanges,i=0;i<a.length;i++)t.codespaceRanges[i]=a[i].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(r,a){t.contains(r)||t.mapOne(r,t.useCMap.lookup(r))}));return t}))}function createBuiltInCMap(t,r){return"Identity-H"===t?Promise.resolve(new m(!1,2)):"Identity-V"===t?Promise.resolve(new m(!0,2)):d.includes(t)?r?r(t).then((function(t){var a=t.cMapData,i=t.compressionType,l=new g(!0);if(i===o.CMapCompressionType.BINARY)return(new y).process(a,l,(function(t){return extendCMap(l,r,t)}));if(i===o.CMapCompressionType.NONE){var u=new c.Lexer(new h.Stream(a));return parseCMap(l,u,r,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))})):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+t))}return{create:function create(t){return function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}(i.default.mark((function _callee(){var r,a,o,u,h;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:r=t.encoding;a=t.fetchBuiltInCMap;o=t.useCMap;if(!(0,l.isName)(r)){i.next=7;break}return i.abrupt("return",createBuiltInCMap(r.name,a));case 7:if(!(0,l.isStream)(r)){i.next=11;break}u=new g;h=new c.Lexer(r);return i.abrupt("return",parseCMap(u,h,a,o).then((function(t){return t.isIdentityCMap?createBuiltInCMap(t.name,a):t})));case 11:throw new Error("Encoding required.");case 12:case"end":return i.stop()}}),_callee)})))()}}}();r.CMapFactory=b},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getFontType=getFontType;r.ToUnicodeMap=r.SEAC_ANALYSIS_ENABLED=r.IdentityToUnicodeMap=r.FontFlags=r.Font=r.ErrorFont=void 0;var i=a(4),o=a(160),l=a(163),c=a(162),u=a(164),h=a(165),d=a(138),p=a(166),g=a(158),m=a(142),y=a(167);function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}var b=[[57344,63743],[1048576,1114109]],v=1e3,S=!0;r.SEAC_ANALYSIS_ENABLED=S;var k=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],w=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"],C={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};r.FontFlags=C;var _=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function adjustWidths(t){if(t.fontMatrix&&t.fontMatrix[0]!==i.FONT_IDENTITY_MATRIX[0]){var r=.001/t.fontMatrix[0],a=t.widths;for(var o in a)a[o]*=r;t.defaultWidth*=r}}function getFontType(t,r){switch(t){case"Type1":return"Type1C"===r?i.FontType.TYPE1C:i.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===r?i.FontType.CIDFONTTYPE0C:i.FontType.CIDFONTTYPE0;case"OpenType":return i.FontType.OPENTYPE;case"TrueType":return i.FontType.TRUETYPE;case"CIDFontType2":return i.FontType.CIDFONTTYPE2;case"MMType1":return i.FontType.MMTYPE1;case"Type0":return i.FontType.TYPE0;default:return i.FontType.UNKNOWN}}function recoverGlyphName(t,r){if(void 0!==r[t])return t;var a=(0,h.getUnicodeForGlyph)(t,r);if(-1!==a)for(var o in r)if(r[o]===a)return o;(0,i.info)("Unable to recover a standard glyph name for: "+t);return t}var x=function GlyphClosure(){function Glyph(t,r,a,i,o,l,c,u){this.fontChar=t;this.unicode=r;this.accent=a;this.width=i;this.vmetric=o;this.operatorListId=l;this.isSpace=c;this.isInFont=u}Glyph.prototype.matchesForCache=function(t,r,a,i,o,l,c,u){return this.fontChar===t&&this.unicode===r&&this.accent===a&&this.width===i&&this.vmetric===o&&this.operatorListId===l&&this.isSpace===c&&this.isInFont===u};return Glyph}(),A=function ToUnicodeMapClosure(){function ToUnicodeMap(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=t}ToUnicodeMap.prototype={get length(){return this._map.length},forEach:function forEach(t){for(var r in this._map)t(r,this._map[r].charCodeAt(0))},has:function has(t){return void 0!==this._map[t]},get:function get(t){return this._map[t]},charCodeOf:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var a in r)if(r[a]===t)return 0|a;return-1},amend:function amend(t){for(var r in t)this._map[r]=t[r]}};return ToUnicodeMap}();r.ToUnicodeMap=A;var T=function IdentityToUnicodeMapClosure(){function IdentityToUnicodeMap(t,r){this.firstChar=t;this.lastChar=r}IdentityToUnicodeMap.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function forEach(t){for(var r=this.firstChar,a=this.lastChar;r<=a;r++)t(r,r)},has:function has(t){return this.firstChar<=t&&t<=this.lastChar},get:function get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)},charCodeOf:function charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1},amend:function amend(t){(0,i.unreachable)("Should not call amend()")}};return IdentityToUnicodeMap}();r.IdentityToUnicodeMap=T;var P=function OpenTypeFileBuilderClosure(){function writeInt16(t,r,a){t[r]=a>>8&255;t[r+1]=255&a}function writeInt32(t,r,a){t[r]=a>>24&255;t[r+1]=a>>16&255;t[r+2]=a>>8&255;t[r+3]=255&a}function writeData(t,r,a){var i,o;if(a instanceof Uint8Array)t.set(a,r);else if("string"==typeof a)for(i=0,o=a.length;i<o;i++)t[r++]=255&a.charCodeAt(i);else for(i=0,o=a.length;i<o;i++)t[r++]=255&a[i]}function OpenTypeFileBuilder(t){this.sfnt=t;this.tables=Object.create(null)}OpenTypeFileBuilder.getSearchParams=function OpenTypeFileBuilder_getSearchParams(t,r){for(var a=1,i=0;(a^t)>a;){a<<=1;i++}var o=a*r;return{range:o,entry:i,rangeShift:r*t-o}};OpenTypeFileBuilder.prototype={toArray:function OpenTypeFileBuilder_toArray(){var t=this.sfnt,r=this.tables,a=Object.keys(r);a.sort();var o,l,c,u,h,p=a.length,g=12+16*p,m=[g];for(o=0;o<p;o++){g+=((u=r[a[o]]).length+3&-4)>>>0;m.push(g)}var y=new Uint8Array(g);for(o=0;o<p;o++){u=r[a[o]];writeData(y,m[o],u)}"true"===t&&(t=(0,i.string32)(65536));y[0]=255&t.charCodeAt(0);y[1]=255&t.charCodeAt(1);y[2]=255&t.charCodeAt(2);y[3]=255&t.charCodeAt(3);writeInt16(y,4,p);var b=OpenTypeFileBuilder.getSearchParams(p,16);writeInt16(y,6,b.range);writeInt16(y,8,b.entry);writeInt16(y,10,b.rangeShift);g=12;for(o=0;o<p;o++){h=a[o];y[g]=255&h.charCodeAt(0);y[g+1]=255&h.charCodeAt(1);y[g+2]=255&h.charCodeAt(2);y[g+3]=255&h.charCodeAt(3);var v=0;for(l=m[o],c=m[o+1];l<c;l+=4){v=v+(0,d.readUint32)(y,l)>>>0}writeInt32(y,g+4,v);writeInt32(y,g+8,m[o]);writeInt32(y,g+12,r[h].length);g+=16}return y},addTable:function OpenTypeFileBuilder_addTable(t,r){if(t in this.tables)throw new Error("Table "+t+" already exists");this.tables[t]=r}};return OpenTypeFileBuilder}(),R=function FontClosure(){function Font(t,r,a){var o;this.name=t;this.loadedName=a.loadedName;this.isType3Font=a.isType3Font;this.missingFile=!1;this.glyphCache=Object.create(null);this.isSerifFont=!!(a.flags&C.Serif);this.isSymbolicFont=!!(a.flags&C.Symbolic);this.isMonospace=!!(a.flags&C.FixedPitch);var l=a.type,c=a.subtype;this.type=l;this.subtype=c;var u="sans-serif";this.isMonospace?u="monospace":this.isSerifFont&&(u="serif");this.fallbackName=u;this.differences=a.differences;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.composite=a.composite;this.cMap=a.cMap;this.capHeight=a.capHeight/v;this.ascent=a.ascent/v;this.descent=a.descent/v;this.fontMatrix=a.fontMatrix;this.bbox=a.bbox;this.defaultEncoding=a.defaultEncoding;this.toUnicode=a.toUnicode;this.fallbackToUnicode=a.fallbackToUnicode||new A;this.toFontChar=[];if("Type3"!==a.type){this.cidEncoding=a.cidEncoding;this.vertical=!!a.vertical;if(this.vertical){this.vmetrics=a.vmetrics;this.defaultVMetrics=a.defaultVMetrics}if(r&&!r.isEmpty){var h=_slicedToArray(function getFontFileType(t,r){var a,o,l=r.type,c=r.subtype,u=r.composite;if(function isTrueTypeFile(t){var r=t.peekBytes(4);return 65536===(0,d.readUint32)(r,0)||"true"===(0,i.bytesToString)(r)}(t)||isTrueTypeCollectionFile(t))a=u?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(t){var r=t.peekBytes(4);return"OTTO"===(0,i.bytesToString)(r)}(t))a=u?"CIDFontType2":"OpenType";else if(function isType1File(t){var r=t.peekBytes(2);if(37===r[0]&&33===r[1])return!0;if(128===r[0]&&1===r[1])return!0;return!1}(t))a=u?"CIDFontType0":"MMType1"===l?"MMType1":"Type1";else if(function isCFFFile(t){var r=t.peekBytes(4);if(r[0]>=1&&r[3]>=1&&r[3]<=4)return!0;return!1}(t))if(u){a="CIDFontType0";o="CIDFontType0C"}else{a="MMType1"===l?"MMType1":"Type1";o="Type1C"}else{(0,i.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");a=l;o=c}return[a,o]}(r,a),2);l=h[0];c=h[1];l===this.type&&c===this.subtype||(0,i.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(l,"/").concat(c,"."));try{var p;switch(l){case"MMType1":(0,i.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var g="Type1C"===c||"CIDFontType0C"===c?new E(r,a):new O(t,r,a);adjustWidths(a);p=this.convert(t,g,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";p=this.checkAndRepair(t,r,a);if(this.isOpenType){adjustWidths(a);l="OpenType"}break;default:throw new i.FormatError("Font ".concat(l," is not supported"))}}catch(t){(0,i.warn)(t);this.fallbackToSystemFont(a);return}this.data=p;this.fontType=getFontType(l,c);this.fontMatrix=a.fontMatrix;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.toUnicode=a.toUnicode;this.seacMap=a.seacMap}else{r&&(0,i.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")");this.fallbackToSystemFont(a)}}else{for(o=0;o<256;o++)this.toFontChar[o]=this.differences[o]||a.defaultEncoding[o];this.fontType=i.FontType.TYPE3}}function int16(t,r){return(t<<8)+r}function signedInt16(t,r){var a=(t<<8)+r;return 32768&a?a-65536:a}function string16(t){return String.fromCharCode(t>>8&255,255&t)}function safeString16(t){t>32767?t=32767:t<-32768&&(t=-32768);return String.fromCharCode(t>>8&255,255&t)}function isTrueTypeCollectionFile(t){var r=t.peekBytes(4);return"ttcf"===(0,i.bytesToString)(r)}function buildToFontChar(t,r,a){for(var i,o=[],l=0,c=t.length;l<c;l++)-1!==(i=(0,h.getUnicodeForGlyph)(t[l],r))&&(o[l]=i);for(var u in a)-1!==(i=(0,h.getUnicodeForGlyph)(a[u],r))&&(o[+u]=i);return o}function adjustMapping(t,r,a){var o=Object.create(null),l=[],c=0,u=b[c][0],h=b[c][1];for(var d in t){var p=t[d|=0];if(r(p)){if(u>h){if(++c>=b.length){(0,i.warn)("Ran out of space in font private use area.");break}u=b[c][0];h=b[c][1]}var g=u++;0===p&&(p=a);o[g]=p;l[d]=g}}return{toFontChar:l,charCodeToGlyphId:o,nextAvailableFontCharCode:u}}function createCmapTable(t,r){var a,o,l,c,u=function getRanges(t,r){var a=[];for(var i in t)t[i]>=r||a.push({fontCharCode:0|i,glyphId:t[i]});0===a.length&&a.push({fontCharCode:0,glyphId:0});a.sort((function fontGetRangesSort(t,r){return t.fontCharCode-r.fontCharCode}));for(var o=[],l=a.length,c=0;c<l;){var u=a[c].fontCharCode,h=[a[c].glyphId];++c;for(var d=u;c<l&&d+1===a[c].fontCharCode;){h.push(a[c].glyphId);++c;if(65535==++d)break}o.push([u,d,h])}return o}(t,r),h=u[u.length-1][1]>65535?2:1,d="\0\0"+string16(h)+"\0\0"+(0,i.string32)(4+8*h);for(a=u.length-1;a>=0&&!(u[a][0]<=65535);--a);var p=a+1;u[a][0]<65535&&65535===u[a][1]&&(u[a][1]=65534);var g,m,y,b,v=u[a][1]<65535?1:0,S=p+v,k=P.getSearchParams(S,2),w="",C="",_="",x="",A="",T=0;for(a=0,o=p;a<o;a++){m=(g=u[a])[0];y=g[1];w+=string16(m);C+=string16(y);var R=!0;for(l=1,c=(b=g[2]).length;l<c;++l)if(b[l]!==b[l-1]+1){R=!1;break}if(R){_+=string16(b[0]-m&65535);x+=string16(0)}else{var I=2*(S-a)+2*T;T+=y-m+1;_+=string16(0);x+=string16(I);for(l=0,c=b.length;l<c;++l)A+=string16(b[l])}}if(v>0){C+="ÿÿ";w+="ÿÿ";_+="\0";x+="\0\0"}var O="\0\0"+string16(2*S)+string16(k.range)+string16(k.entry)+string16(k.rangeShift)+C+"\0\0"+w+_+x+A,E="",D="";if(h>1){d+="\0\0\n"+(0,i.string32)(4+8*h+4+O.length);E="";for(a=0,o=u.length;a<o;a++){m=(g=u[a])[0];var B=(b=g[2])[0];for(l=1,c=b.length;l<c;++l)if(b[l]!==b[l-1]+1){y=g[0]+l-1;E+=(0,i.string32)(m)+(0,i.string32)(y)+(0,i.string32)(B);m=y+1;B=b[l]}E+=(0,i.string32)(m)+(0,i.string32)(g[1])+(0,i.string32)(B)}D="\0\f\0\0"+(0,i.string32)(E.length+16)+"\0\0\0\0"+(0,i.string32)(E.length/12)}return d+"\0"+string16(O.length+4)+O+D+E}function createOS2Table(t,r,a){a=a||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var o=0,l=0,c=0,u=0,d=null,p=0;if(r){for(var g in r){(d>(g|=0)||!d)&&(d=g);p<g&&(p=g);var m=(0,h.getUnicodeRangeFor)(g);if(m<32)o|=1<<m;else if(m<64)l|=1<<m-32;else if(m<96)c|=1<<m-64;else{if(!(m<123))throw new i.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");u|=1<<m-96}}p>65535&&(p=65535)}else{d=0;p=255}var y=t.bbox||[0,0,0,0],b=a.unitsPerEm||1/(t.fontMatrix||i.FONT_IDENTITY_MATRIX)[0],S=t.ascentScaled?1:b/v,k=a.ascent||Math.round(S*(t.ascent||y[3])),w=a.descent||Math.round(S*(t.descent||y[1]));w>0&&t.descent>0&&y[1]<0&&(w=-w);var C=a.yMax||k,_=-a.yMin||-w;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(t.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,i.string32)(o)+(0,i.string32)(l)+(0,i.string32)(c)+(0,i.string32)(u)+"*21*"+string16(t.italicAngle?1:0)+string16(d||t.firstChar)+string16(p||t.lastChar)+string16(k)+string16(w)+"\0d"+string16(C)+string16(_)+"\0\0\0\0\0\0\0\0"+string16(t.xHeight)+string16(t.capHeight)+string16(0)+string16(d||t.firstChar)+"\0"}function createPostTable(t){var r=Math.floor(t.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,i.string32)(r)+"\0\0\0\0"+(0,i.string32)(t.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function createNameTable(t,r){r||(r=[[],[]]);var a,i,o,l,c,u=[r[0][0]||"Original licence",r[0][1]||t,r[0][2]||"Unknown",r[0][3]||"uniqueID",r[0][4]||t,r[0][5]||"Version 0.11",r[0][6]||"",r[0][7]||"Unknown",r[0][8]||"Unknown",r[0][9]||"Unknown"],h=[];for(a=0,i=u.length;a<i;a++){var d=[];for(o=0,l=(c=r[1][a]||u[a]).length;o<l;o++)d.push(string16(c.charCodeAt(o)));h.push(d.join(""))}var p=[u,h],g=["\0","\0"],m=["\0\0","\0"],y=["\0\0","\t"],b=u.length*g.length,v="\0\0"+string16(b)+string16(12*b+6),S=0;for(a=0,i=g.length;a<i;a++){var k=p[a];for(o=0,l=k.length;o<l;o++){c=k[o];v+=g[a]+m[a]+y[a]+string16(o)+string16(c.length)+string16(S);S+=c.length}}return v+=u.join("")+h.join("")}Font.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var t=p.FontRendererFactory.create(this,S);return(0,i.shadow)(this,"renderer",t)},exportData:function exportData(){var t,r,a,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=i?[].concat(k,w):k,l=Object.create(null),c=_createForOfIteratorHelper(o);try{for(c.s();!(a=c.n()).done;)void 0!==(r=this[t=a.value])&&(l[t]=r)}catch(t){c.e(t)}finally{c.f()}return l},fallbackToSystemFont:function fallbackToSystemFont(t){var r=this;this.missingFile=!0;var a=this.name,o=this.type,d=this.subtype,p=a.replace(/[,_]/g,"-").replace(/\s/g,""),g=(0,u.getStdFontMap)(),m=(0,u.getNonStdFontMap)(),y=!!g[p],b=!(!m[p]||!g[m[p]]);p=g[p]||m[p]||p;this.bold=-1!==p.search(/bold/gi);this.italic=-1!==p.search(/oblique/gi)||-1!==p.search(/italic/gi);this.black=-1!==a.search(/Black/g);var v=-1!==a.search(/Narrow/g);this.remeasure=(!y||v)&&Object.keys(this.widths).length>0;if((y||b)&&"CIDFontType2"===o&&this.cidEncoding.startsWith("Identity-")){var S=(0,u.getGlyphMapForStandardFonts)(),k=t.cidToGidMap,w=[];for(var C in S)w[+C]=S[C];if(/Arial-?Black/i.test(a)){var _=(0,u.getSupplementalGlyphMapForArialBlack)();for(var x in _)w[+x]=_[x]}else if(/Calibri/i.test(a)){var P=(0,u.getSupplementalGlyphMapForCalibri)();for(var R in P)w[+R]=P[R]}if(k)for(var I in w){var O=w[I];void 0!==k[O]&&(w[+I]=k[O])}this.toUnicode instanceof T||this.toUnicode.forEach((function(t,r){w[+t]=r}));this.toFontChar=w;this.toUnicode=new A(w)}else if(/Symbol/i.test(p))this.toFontChar=buildToFontChar(c.SymbolSetEncoding,(0,l.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(p)){/Wingdings/i.test(a)&&(0,i.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=buildToFontChar(c.ZapfDingbatsEncoding,(0,l.getDingbatsGlyphsUnicode)(),this.differences)}else if(y)this.toFontChar=buildToFontChar(this.defaultEncoding,(0,l.getGlyphsUnicode)(),this.differences);else{var E=(0,l.getGlyphsUnicode)(),D=[];this.toUnicode.forEach((function(t,a){if(!r.composite){var i=r.differences[t]||r.defaultEncoding[t],o=(0,h.getUnicodeForGlyph)(i,E);-1!==o&&(a=o)}D[+t]=a}));if(this.composite&&this.toUnicode instanceof T&&/Verdana/i.test(a)){var B=(0,u.getGlyphMapForStandardFonts)();for(var M in B)D[+M]=B[M]}this.toFontChar=D}this.loadedName=p.split("-")[0];this.fontType=getFontType(o,d)},checkAndRepair:function Font_checkAndRepair(t,r,a){var u=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(t,r){var a=Object.create(null);a["OS/2"]=null;a.cmap=null;a.head=null;a.hhea=null;a.hmtx=null;a.maxp=null;a.name=null;a.post=null;for(var i=0;i<r;i++){var o=readTableEntry(t);u.includes(o.tag)&&(0!==o.length&&(a[o.tag]=o))}return a}function readTableEntry(t){var r=(0,i.bytesToString)(t.getBytes(4)),a=t.getInt32()>>>0,o=t.getInt32()>>>0,l=t.getInt32()>>>0,c=t.pos;t.pos=t.start?t.start:0;t.skip(o);var u=t.getBytes(l);t.pos=c;if("head"===r){u[8]=u[9]=u[10]=u[11]=0;u[17]|=32}return{tag:r,checksum:a,length:l,offset:o,data:u}}function readOpenTypeHeader(t){return{version:(0,i.bytesToString)(t.getBytes(4)),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function sanitizeGlyph(t,r,a,i,o,l){var c={length:0,sizeOfInstructions:0};if(a-r<=12)return c;var u=t.subarray(r,a),h=signedInt16(u[0],u[1]);if(h<0){!function writeSignedInt16(t,r,a){t[r+1]=a;t[r]=a>>>8}(u,0,h=-1);i.set(u,o);c.length=u.length;return c}var d,p=10,g=0;for(d=0;d<h;d++){g=(u[p]<<8|u[p+1])+1;p+=2}var m=p,y=u[p]<<8|u[p+1];c.sizeOfInstructions=y;var b=p+=2+y,v=0;for(d=0;d<g;d++){var S=u[p++];192&S&&(u[p-1]=63&S);var k=2;2&S?k=1:16&S&&(k=0);var w=2;4&S?w=1:32&S&&(w=0);var C=k+w;v+=C;if(8&S){var _=u[p++];d+=_;v+=_*C}}if(0===v)return c;var x=p+v;if(x>u.length)return c;if(!l&&y>0){i.set(u.subarray(0,m),o);i.set([0,0],o+m);i.set(u.subarray(b,x),o+m+2);x-=y;u.length-x>3&&(x=x+3&-4);c.length=x;return c}if(u.length-x>3){x=x+3&-4;i.set(u.subarray(0,x),o);c.length=x;return c}i.set(u,o);c.length=u.length;return c}function readNameTable(t){var a=(r.start?r.start:0)+t.offset;r.pos=a;var o=[[],[]],l=t.length,c=a+l;if(0!==r.getUint16()||l<6)return o;var u,h,d=r.getUint16(),p=r.getUint16(),g=[];for(u=0;u<d&&r.pos+12<=c;u++){var m={platform:r.getUint16(),encoding:r.getUint16(),language:r.getUint16(),name:r.getUint16(),length:r.getUint16(),offset:r.getUint16()};(1===m.platform&&0===m.encoding&&0===m.language||3===m.platform&&1===m.encoding&&1033===m.language)&&g.push(m)}for(u=0,h=g.length;u<h;u++){var y=g[u];if(!(y.length<=0)){var b=a+p+y.offset;if(!(b+y.length>c)){r.pos=b;var v=y.name;if(y.encoding){for(var S="",k=0,w=y.length;k<w;k+=2)S+=String.fromCharCode(r.getUint16());o[1][v]=S}else o[0][v]=(0,i.bytesToString)(r.getBytes(y.length))}}}return o}var h,d,p,y,b=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function sanitizeTTProgram(t,r){for(var a,o,l,c,u,h=t.data,d=0,p=0,g=0,m=[],y=[],v=[],S=r.tooComplexToFollowFunctions,k=!1,w=0,C=0,_=h.length;d<_;){var x=h[d++];if(64===x){o=h[d++];if(k||C)d+=o;else for(a=0;a<o;a++)m.push(h[d++])}else if(65===x){o=h[d++];if(k||C)d+=2*o;else for(a=0;a<o;a++){l=h[d++];m.push(l<<8|h[d++])}}else if(176==(248&x)){o=x-176+1;if(k||C)d+=o;else for(a=0;a<o;a++)m.push(h[d++])}else if(184==(248&x)){o=x-184+1;if(k||C)d+=2*o;else for(a=0;a<o;a++){l=h[d++];m.push(l<<8|h[d++])}}else if(43!==x||S)if(44!==x||S){if(45===x)if(k){k=!1;p=d}else{if(!(u=y.pop())){(0,i.warn)("TT: ENDF bad stack");r.hintsValid=!1;return}c=v.pop();h=u.data;d=u.i;r.functionsStackDeltas[c]=m.length-u.stackTop}else if(137===x){if(k||C){(0,i.warn)("TT: nested IDEFs not allowed");S=!0}k=!0;g=d}else if(88===x)++w;else if(27===x)C=w;else if(89===x){C===w&&(C=0);--w}else if(28===x&&!k&&!C){var A=m[m.length-1];A>0&&(d+=A-1)}}else{if(k||C){(0,i.warn)("TT: nested FDEFs not allowed");S=!0}k=!0;g=d;c=m.pop();r.functionsDefined[c]={data:h,i:d}}else if(!k&&!C){c=m[m.length-1];if(isNaN(c))(0,i.info)("TT: CALL empty stack (or invalid entry).");else{r.functionsUsed[c]=!0;if(c in r.functionsStackDeltas){var T=m.length+r.functionsStackDeltas[c];if(T<0){(0,i.warn)("TT: CALL invalid functions stack delta.");r.hintsValid=!1;return}m.length=T}else if(c in r.functionsDefined&&!v.includes(c)){y.push({data:h,i:d,stackTop:m.length-1});v.push(c);if(!(u=r.functionsDefined[c])){(0,i.warn)("TT: CALL non-existent function");r.hintsValid=!1;return}h=u.data;d=u.i}}}if(!k&&!C){var P=0;x<=142?P=b[x]:x>=192&&x<=223?P=-1:x>=224&&(P=-2);if(x>=113&&x<=117){o=m.pop();isNaN(o)||(P=2*-o)}for(;P<0&&m.length>0;){m.pop();P++}for(;P>0;){m.push(NaN);P--}}}r.tooComplexToFollowFunctions=S;var R=[h];d>h.length&&R.push(new Uint8Array(d-h.length));if(g>p){(0,i.warn)("TT: complementing a missing function tail");R.push(new Uint8Array([34,45]))}!function foldTTTable(t,r){if(r.length>1){var a,i,o=0;for(a=0,i=r.length;a<i;a++)o+=r[a].length;o=o+3&-4;var l=new Uint8Array(o),c=0;for(a=0,i=r.length;a<i;a++){l.set(r[a],c);c+=r[a].length}t.data=l;t.length=o}}(t,R)}if(isTrueTypeCollectionFile(r=new m.Stream(new Uint8Array(r.getBytes())))){var v=function readTrueTypeCollectionData(t,r){for(var a=function readTrueTypeCollectionHeader(t){var r=(0,i.bytesToString)(t.getBytes(4));(0,i.assert)("ttcf"===r,"Must be a TrueType Collection font.");for(var a=t.getUint16(),o=t.getUint16(),l=t.getInt32()>>>0,c=[],u=0;u<l;u++)c.push(t.getInt32()>>>0);var h={ttcTag:r,majorVersion:a,minorVersion:o,numFonts:l,offsetTable:c};switch(a){case 1:return h;case 2:h.dsigTag=t.getInt32()>>>0;h.dsigLength=t.getInt32()>>>0;h.dsigOffset=t.getInt32()>>>0;return h}throw new i.FormatError("Invalid TrueType Collection majorVersion: ".concat(a,"."))}(t),o=a.numFonts,l=a.offsetTable,c=0;c<o;c++){t.pos=(t.start||0)+l[c];var u=readOpenTypeHeader(t),h=readTables(t,u.numTables);if(!h.name)throw new i.FormatError('TrueType Collection font must contain a "name" table.');for(var d=readNameTable(h.name),p=0,g=d.length;p<g;p++)for(var m=0,y=d[p].length;m<y;m++){var b=d[p][m];if(b&&b.replace(/\s/g,"")===r)return{header:u,tables:h}}}throw new i.FormatError('TrueType Collection does not contain "'.concat(r,'" font.'))}(r,this.name);h=v.header;d=v.tables}else{h=readOpenTypeHeader(r);d=readTables(r,h.numTables)}var k=!d["CFF "];if(k){if(!d.loca)throw new i.FormatError('Required "loca" table is not found');if(!d.glyf){(0,i.warn)('Required "glyf" table is not found -- trying to recover.');d.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{var w=a.composite&&((a.cidToGidMap||[]).length>0||!(a.cMap instanceof g.IdentityCMap));if("OTTO"===h.version&&!w||!d.head||!d.hhea||!d.maxp||!d.post){y=new m.Stream(d["CFF "].data);p=new E(y,a);adjustWidths(a);return this.convert(t,p,a)}delete d.glyf;delete d.loca;delete d.fpgm;delete d.prep;delete d["cvt "];this.isOpenType=!0}if(!d.maxp)throw new i.FormatError('Required "maxp" table is not found');r.pos=(r.start||0)+d.maxp.offset;var C=r.getInt32(),x=r.getUint16(),A=x+1,T=!0;if(A>65535){T=!1;A=x;(0,i.warn)("Not enough space in glyfs to duplicate first glyph.")}var R=0,I=0;if(C>=65536&&d.maxp.length>=22){r.pos+=8;if(r.getUint16()>2){d.maxp.data[14]=0;d.maxp.data[15]=2}r.pos+=4;R=r.getUint16();r.pos+=4;I=r.getUint16()}d.maxp.data[4]=A>>8;d.maxp.data[5]=255&A;var O=function sanitizeTTPrograms(t,r,a,o){var l={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};t&&sanitizeTTProgram(t,l);r&&sanitizeTTProgram(r,l);t&&function checkInvalidFunctions(t,r){if(!t.tooComplexToFollowFunctions)if(t.functionsDefined.length>r){(0,i.warn)("TT: more functions defined than expected");t.hintsValid=!1}else for(var a=0,o=t.functionsUsed.length;a<o;a++){if(a>r){(0,i.warn)("TT: invalid function id: "+a);t.hintsValid=!1;return}if(t.functionsUsed[a]&&!t.functionsDefined[a]){(0,i.warn)("TT: undefined function: "+a);t.hintsValid=!1;return}}}(l,o);if(a&&1&a.length){var c=new Uint8Array(a.length+1);c.set(a.data);a.data=c}return l.hintsValid}(d.fpgm,d.prep,d["cvt "],R);if(!O){delete d.fpgm;delete d.prep;delete d["cvt "]}!function sanitizeMetrics(t,r,a,o,l){if(r){t.pos=(t.start?t.start:0)+r.offset;t.pos+=4;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=8;t.pos+=2;var c=t.getUint16();if(c>o){(0,i.info)("The numOfMetrics ("+c+") should not be greater than the numGlyphs ("+o+")");c=o;r.data[34]=(65280&c)>>8;r.data[35]=255&c}var u=o-c-(a.length-4*c>>1);if(u>0){var h=new Uint8Array(a.length+2*u);h.set(a.data);if(l){h[a.length]=a.data[2];h[a.length+1]=a.data[3]}a.data=h}}else a&&(a.data=null)}(r,d.hhea,d.hmtx,A,T);if(!d.head)throw new i.FormatError('Required "head" table is not found');!function sanitizeHead(t,r,a){var o=t.data,l=function int32(t,r,a,i){return(t<<24)+(r<<16)+(a<<8)+i}(o[0],o[1],o[2],o[3]);if(l>>16!=1){(0,i.info)("Attempting to fix invalid version in head table: "+l);o[0]=0;o[1]=1;o[2]=0;o[3]=0}var c=int16(o[50],o[51]);if(c<0||c>1){(0,i.info)("Attempting to fix invalid indexToLocFormat in head table: "+c);var u=r+1;if(a===u<<1){o[50]=0;o[51]=0}else{if(a!==u<<2)throw new i.FormatError("Could not fix indexToLocFormat: "+c);o[50]=0;o[51]=1}}}(d.head,x,k?d.loca.length:0);var D=Object.create(null);if(k){var B=int16(d.head.data[50],d.head.data[51]),M=function sanitizeGlyphLocations(t,r,a,i,o,l,c){var u,h,d;if(i){u=4;h=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};d=function fontItemEncodeLong(t,r,a){t[r]=a>>>24&255;t[r+1]=a>>16&255;t[r+2]=a>>8&255;t[r+3]=255&a}}else{u=2;h=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1};d=function fontItemEncode(t,r,a){t[r]=a>>9&255;t[r+1]=a>>1&255}}var p=l?a+1:a,g=u*(1+p),m=new Uint8Array(g);m.set(t.data.subarray(0,g));t.data=m;var y,b,v=r.data,S=v.length,k=new Uint8Array(S),w=[];for(y=0,b=0;y<a+1;y++,b+=u){var C=h(m,b);C>S&&(C=S);w.push({index:y,offset:C,endOffset:0})}w.sort((function(t,r){return t.offset-r.offset}));for(y=0;y<a;y++)w[y].endOffset=w[y+1].offset;w.sort((function(t,r){return t.index-r.index}));var _=Object.create(null),x=0;d(m,0,x);for(y=0,b=u;y<a;y++,b+=u){var A=sanitizeGlyph(v,w[y].offset,w[y].endOffset,k,x,o),T=A.length;0===T&&(_[y]=!0);A.sizeOfInstructions>c&&(c=A.sizeOfInstructions);d(m,b,x+=T)}if(0===x){var P=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(y=0,b=u;y<p;y++,b+=u)d(m,b,P.length);r.data=P}else if(l){var R=h(m,u);if(k.length>R+x)r.data=k.subarray(0,R+x);else{r.data=new Uint8Array(R+x);r.data.set(k.subarray(0,x))}r.data.set(k.subarray(0,R),x);d(t.data,m.length-u,x+R)}else r.data=k.subarray(0,x);return{missingGlyphs:_,maxSizeOfInstructions:c}}(d.loca,d.glyf,x,B,O,T,I);D=M.missingGlyphs;if(C>=65536&&d.maxp.length>=22){d.maxp.data[26]=M.maxSizeOfInstructions>>8;d.maxp.data[27]=255&M.maxSizeOfInstructions}}if(!d.hhea)throw new i.FormatError('Required "hhea" table is not found');if(0===d.hhea.data[10]&&0===d.hhea.data[11]){d.hhea.data[10]=255;d.hhea.data[11]=255}var L={unitsPerEm:int16(d.head.data[18],d.head.data[19]),yMax:int16(d.head.data[42],d.head.data[43]),yMin:signedInt16(d.head.data[38],d.head.data[39]),ascent:int16(d.hhea.data[4],d.hhea.data[5]),descent:signedInt16(d.hhea.data[6],d.hhea.data[7])};this.ascent=L.ascent/L.unitsPerEm;this.descent=L.descent/L.unitsPerEm;d.post&&function readPostScriptTable(t,a,o){var l=(r.start?r.start:0)+t.offset;r.pos=l;var c,u=l+t.length,h=r.getInt32();r.skip(28);var d,p=!0;switch(h){case 65536:c=_;break;case 131072:var g=r.getUint16();if(g!==o){p=!1;break}var m=[];for(d=0;d<g;++d){var y=r.getUint16();if(y>=32768){p=!1;break}m.push(y)}if(!p)break;for(var b=[],v=[];r.pos<u;){var S=r.getByte();v.length=S;for(d=0;d<S;++d)v[d]=String.fromCharCode(r.getByte());b.push(v.join(""))}c=[];for(d=0;d<g;++d){var k=m[d];k<258?c.push(_[k]):c.push(b[k-258])}break;case 196608:break;default:(0,i.warn)("Unknown/unsupported post table version "+h);p=!1;a.defaultEncoding&&(c=a.defaultEncoding)}a.glyphNames=c;return p}(d.post,a,x);d.post={tag:"post",data:createPostTable(a)};var N=[];function hasGlyph(t){return!D[t]}if(a.composite){var j=a.cidToGidMap||[],U=0===j.length;a.cMap.forEach((function(t,r){if(r>65535)throw new i.FormatError("Max size of CID is 65,535");var a=-1;U?a=r:void 0!==j[r]&&(a=j[r]);a>=0&&a<x&&hasGlyph(a)&&(N[t]=a)}))}else{var q=function readCmapTable(t,r,a,o){if(!t){(0,i.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var l,c=(r.start?r.start:0)+t.offset;r.pos=c;r.skip(2);for(var u,h=r.getUint16(),d=!1,p=0;p<h;p++){var g=r.getUint16(),m=r.getUint16(),y=r.getInt32()>>>0,b=!1;if(!u||u.platformId!==g||u.encodingId!==m){if(0!==g||0!==m&&1!==m&&3!==m)if(1===g&&0===m)b=!0;else if(3!==g||1!==m||!o&&u){if(a&&3===g&&0===m){b=!0;d=!0}}else{b=!0;a||(d=!0)}else b=!0;b&&(u={platformId:g,encodingId:m,offset:y});if(d)break}}u&&(r.pos=c+u.offset);if(!u||-1===r.peekByte()){(0,i.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var v=r.getUint16();r.skip(4);var S,k,w=!1,C=[];if(0===v){for(S=0;S<256;S++){var _=r.getByte();_&&C.push({charCode:S,glyphId:_})}w=!0}else if(4===v){var x=r.getUint16()>>1;r.skip(6);var A,T=[];for(A=0;A<x;A++)T.push({end:r.getUint16()});r.skip(2);for(A=0;A<x;A++)T[A].start=r.getUint16();for(A=0;A<x;A++)T[A].delta=r.getUint16();var P=0;for(A=0;A<x;A++){l=T[A];var R=r.getUint16();if(R){var I=(R>>1)-(x-A);l.offsetIndex=I;P=Math.max(P,I+l.end-l.start+1)}else l.offsetIndex=-1}var O=[];for(S=0;S<P;S++)O.push(r.getUint16());for(A=0;A<x;A++){c=(l=T[A]).start;var E=l.end,D=l.delta;I=l.offsetIndex;for(S=c;S<=E;S++)if(65535!==S){k=(k=I<0?S:O[I+S-c])+D&65535;C.push({charCode:S,glyphId:k})}}}else{if(6!==v){(0,i.warn)("cmap table has unsupported format: "+v);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var B=r.getUint16(),M=r.getUint16();for(S=0;S<M;S++){k=r.getUint16();var L=B+S;C.push({charCode:L,glyphId:k})}}C.sort((function(t,r){return t.charCode-r.charCode}));for(p=1;p<C.length;p++)if(C[p-1].charCode===C[p].charCode){C.splice(p,1);p--}return{platformId:u.platformId,encodingId:u.encodingId,mappings:C,hasShortCmap:w}}(d.cmap,r,this.isSymbolicFont,a.hasEncoding),W=q.platformId,z=q.encodingId,G=q.mappings,H=G.length,V=[];!a.hasEncoding||"MacRomanEncoding"!==a.baseEncodingName&&"WinAnsiEncoding"!==a.baseEncodingName||(V=(0,c.getEncoding)(a.baseEncodingName));if(a.hasEncoding&&!this.isSymbolicFont&&(3===W&&1===z||1===W&&0===z))for(var X=(0,l.getGlyphsUnicode)(),Y=0;Y<256;Y++){var K,J;if(K=this.differences&&Y in this.differences?this.differences[Y]:Y in V&&""!==V[Y]?V[Y]:c.StandardEncoding[Y]){J=recoverGlyphName(K,X);var Q;3===W&&1===z?Q=X[J]:1===W&&0===z&&(Q=c.MacRomanEncoding.indexOf(J));for(var Z=0;Z<H;++Z)if(G[Z].charCode===Q){N[Y]=G[Z].glyphId;break}}}else if(0===W)for(var $=0;$<H;++$)N[G[$].charCode]=G[$].glyphId;else for(var ee=0;ee<H;++ee){var te=G[ee].charCode;3===W&&te>=61440&&te<=61695&&(te&=255);N[te]=G[ee].glyphId}if(a.glyphNames&&V.length)for(var re=0;re<256;++re)if(void 0===N[re]&&V[re]){K=V[re];var ae=a.glyphNames.indexOf(K);ae>0&&hasGlyph(ae)&&(N[re]=ae)}}0===N.length&&(N[0]=0);var ne=A-1;T||(ne=0);var ie=adjustMapping(N,hasGlyph,ne);this.toFontChar=ie.toFontChar;d.cmap={tag:"cmap",data:createCmapTable(ie.charCodeToGlyphId,A)};d["OS/2"]&&function validateOS2Table(t,r){r.pos=(r.start||0)+t.offset;var a=r.getUint16();r.skip(60);var i=r.getUint16();if(a<4&&768&i)return!1;if(r.getUint16()>r.getUint16())return!1;r.skip(6);if(0===r.getUint16())return!1;t.data[8]=t.data[9]=0;return!0}(d["OS/2"],r)||(d["OS/2"]={tag:"OS/2",data:createOS2Table(a,ie.charCodeToGlyphId,L)});if(!k)try{y=new m.Stream(d["CFF "].data);(p=new o.CFFParser(y,a,S).parse()).duplicateFirstGlyph();var oe=new o.CFFCompiler(p);d["CFF "].data=oe.compile()}catch(t){(0,i.warn)("Failed to compile font "+a.loadedName)}if(d.name){var se=readNameTable(d.name);d.name.data=createNameTable(t,se)}else d.name={tag:"name",data:createNameTable(this.name)};var le=new P(h.version);for(var ce in d)le.addTable(ce,d[ce].data);return le.toArray()},convert:function Font_convert(t,r,a){a.fixedPitch=!1;a.builtInEncoding&&function adjustToUnicode(t,r){if(!t.hasIncludedToUnicodeMap&&!(t.hasEncoding||r===t.defaultEncoding||t.toUnicode instanceof T)){var a=[],i=(0,l.getGlyphsUnicode)();for(var o in r){var c=r[o],u=(0,h.getUnicodeForGlyph)(c,i);-1!==u&&(a[o]=String.fromCharCode(u))}t.toUnicode.amend(a)}}(a,a.builtInEncoding);var o=1;r instanceof E&&(o=r.numGlyphs-1);var u=r.getGlyphMapping(a),d=adjustMapping(u,r.hasGlyphId.bind(r),o);this.toFontChar=d.toFontChar;var p=r.numGlyphs;function getCharCodes(t,r){var a=null;for(var i in t)if(r===t[i]){a||(a=[]);a.push(0|i)}return a}function createCharCode(t,r){for(var a in t)if(r===t[a])return 0|a;d.charCodeToGlyphId[d.nextAvailableFontCharCode]=r;return d.nextAvailableFontCharCode++}var g=r.seacs;if(g&&g.length){var m=a.fontMatrix||i.FONT_IDENTITY_MATRIX,y=r.getCharset(),b=Object.create(null);for(var v in g){var S=g[v|=0],k=c.StandardEncoding[S[2]],w=c.StandardEncoding[S[3]],C=y.indexOf(k),_=y.indexOf(w);if(!(C<0||_<0)){var x={x:S[0]*m[0]+S[1]*m[2]+m[4],y:S[0]*m[1]+S[1]*m[3]+m[5]},A=getCharCodes(u,v);if(A)for(var R=0,I=A.length;R<I;R++){var O=A[R],D=d.charCodeToGlyphId,B=createCharCode(D,C),M=createCharCode(D,_);b[O]={baseFontCharCode:B,accentFontCharCode:M,accentOffset:x}}}}a.seacMap=b}var L=1/(a.fontMatrix||i.FONT_IDENTITY_MATRIX)[0],N=new P("OTTO");N.addTable("CFF ",r.data);N.addTable("OS/2",createOS2Table(a,d.charCodeToGlyphId));N.addTable("cmap",createCmapTable(d.charCodeToGlyphId,p));N.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(L)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+safeString16(a.descent)+"ÿ"+safeString16(a.ascent)+string16(a.italicAngle?2:0)+"\0\0\0\0\0\0\0");N.addTable("hhea","\0\0\0"+safeString16(a.ascent)+safeString16(a.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+safeString16(a.capHeight)+safeString16(Math.tan(a.italicAngle)*a.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+string16(p));N.addTable("hmtx",function fontFieldsHmtx(){for(var t=r.charstrings,a=r.cff?r.cff.widths:null,i="\0\0\0\0",o=1,l=p;o<l;o++){var c=0;if(t){var u=t[o-1];c="width"in u?u.width:0}else a&&(c=Math.ceil(a[o]||0));i+=string16(c)+string16(0)}return i}());N.addTable("maxp","\0\0P\0"+string16(p));N.addTable("name",createNameTable(t));N.addTable("post",createPostTable(a));return N.toArray()},get spaceWidth(){for(var t,r=["space","minus","one","i","I"],a=0,o=r.length;a<o;a++){var c=r[a];if(c in this.widths){t=this.widths[c];break}var u=(0,l.getGlyphsUnicode)()[c],h=0;this.composite&&this.cMap.contains(u)&&(h=this.cMap.lookup(u));!h&&this.toUnicode&&(h=this.toUnicode.charCodeOf(u));h<=0&&(h=u);if(t=this.widths[h])break}t=t||this.defaultWidth;return(0,i.shadow)(this,"spaceWidth",t)},_charToGlyph:function _charToGlyph(t){var r,a,o,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=t;this.cMap&&this.cMap.contains(t)&&(c=this.cMap.lookup(t));a=this.widths[c];a=(0,i.isNum)(a)?a:this.defaultWidth;var u=this.vmetrics&&this.vmetrics[c],d=this.toUnicode.get(t)||this.fallbackToUnicode.get(t)||t;"number"==typeof d&&(d=String.fromCharCode(d));var p=t in this.toFontChar;r=this.toFontChar[t]||t;if(this.missingFile){var g=this.differences[t]||this.defaultEncoding[t];".notdef"!==g&&""!==g||"Type1"!==this.type||(r=32);r=(0,h.mapSpecialUnicodeValues)(r)}this.isType3Font&&(o=r);var m=null;if(this.seacMap&&this.seacMap[t]){p=!0;var y=this.seacMap[t];r=y.baseFontCharCode;m={fontChar:String.fromCodePoint(y.accentFontCharCode),offset:y.accentOffset}}var b="";"number"==typeof r&&(r<=1114111?b=String.fromCodePoint(r):(0,i.warn)("charToGlyph - invalid fontCharCode: ".concat(r)));var v=this.glyphCache[t];if(!v||!v.matchesForCache(b,d,m,a,u,o,l,p)){v=new x(b,d,m,a,u,o,l,p);this.glyphCache[t]=v}return v},charsToGlyphs:function Font_charsToGlyphs(t){var r,a,i,o=this.charsCache;if(o&&(r=o[t]))return r;o||(o=this.charsCache=Object.create(null));r=[];var l,c=t,u=0;if(this.cMap)for(var h=Object.create(null);u<t.length;){this.cMap.readCharCode(t,u,h);i=h.charcode;var d=h.length;u+=d;var p=1===d&&32===t.charCodeAt(u-1);a=this._charToGlyph(i,p);r.push(a)}else for(u=0,l=t.length;u<l;++u){i=t.charCodeAt(u);a=this._charToGlyph(i,32===i);r.push(a)}return o[c]=r},getCharPositions:function getCharPositions(t){var r=[];if(this.cMap)for(var a=Object.create(null),i=0;i<t.length;){this.cMap.readCharCode(t,i,a);var o=a.length;r.push([i,i+o]);i+=o}else for(var l=0,c=t.length;l<c;++l)r.push([l,l+1]);return r},get glyphCacheValues(){return Object.values(this.glyphCache)},encodeString:function encodeString(t){for(var r=[],a=[],i=function hasCurrentBufErrors(){return r.length%2==1},o=0,l=t.length;o<l;o++){var c=t.codePointAt(o);c>55295&&(c<57344||c>65533)&&o++;if(this.toUnicode){var u=String.fromCodePoint(c),h=this.toUnicode.charCodeOf(u);if(-1!==h){if(i()){r.push(a.join(""));a.length=0}for(var d=(this.cMap?this.cMap.getCharCodeLength(h):1)-1;d>=0;d--)a.push(String.fromCharCode(h>>8*d&255));continue}}if(!i()){r.push(a.join(""));a.length=0}a.push(String.fromCodePoint(c))}r.push(a.join(""));return r}};return Font}();r.Font=R;var I=function ErrorFontClosure(){function ErrorFont(t){this.error=t;this.loadedName="g_font_error";this.missingFile=!0}ErrorFont.prototype={charsToGlyphs:function ErrorFont_charsToGlyphs(){return[]},encodeString:function ErrorFont_encodeString(t){return[t]},exportData:function exportData(){return{error:this.error}}};return ErrorFont}();r.ErrorFont=I;function type1FontGlyphMapping(t,r,a){var i,o,u,h=Object.create(null),d=!!(t.flags&C.Symbolic);if(t.baseEncodingName){u=(0,c.getEncoding)(t.baseEncodingName);for(o=0;o<u.length;o++){i=a.indexOf(u[o]);h[o]=i>=0?i:0}}else if(d)for(o in r)h[o]=r[o];else{u=c.StandardEncoding;for(o=0;o<u.length;o++){i=a.indexOf(u[o]);h[o]=i>=0?i:0}}var p,g=t.differences;if(g)for(o in g){var m=g[o];if(-1===(i=a.indexOf(m))){p||(p=(0,l.getGlyphsUnicode)());var y=recoverGlyphName(m,p);y!==m&&(i=a.indexOf(y))}h[o]=i>=0?i:0}return h}var O=function Type1FontClosure(){function findBlock(t,r,a){for(var i,o=t.length,l=r.length,c=o-l,u=a,h=!1;u<c;){i=0;for(;i<l&&t[u+i]===r[i];)i++;if(i>=l){u+=i;for(;u<o&&(0,d.isWhiteSpace)(t[u]);)u++;h=!0;break}u++}return{found:h,length:u}}function Type1Font(t,r,a){var o=a.length1,l=(a.length2,r.peekBytes(6)),c=128===l[0]&&1===l[1];if(c){r.skip(6);o=l[5]<<24|l[4]<<16|l[3]<<8|l[2]}var u=function getHeaderBlock(t,r){var a,o,l,c,u=[101,101,120,101,99],h=t.pos;try{o=(a=t.getBytes(r)).length}catch(t){if(t instanceof d.MissingDataException)throw t}if(o===r&&(l=findBlock(a,u,r-2*u.length)).found&&l.length===r)return{stream:new m.Stream(a),length:r};(0,i.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=h;for(;0!==(l=findBlock(t.peekBytes(2048),u,0)).length;){t.pos+=l.length;if(l.found){c=t.pos-h;break}}t.pos=h;if(c)return{stream:new m.Stream(t.getBytes(c)),length:c};(0,i.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new m.Stream(t.getBytes(r)),length:r}}(r,o);new y.Type1Parser(u.stream,!1,S).extractFontHeader(a);c&&(l=r.getBytes(6))[5]<<24|l[4]<<16|l[3]<<8|l[2];var h=function getEexecBlock(t,r){var a=t.getBytes();return{stream:new m.Stream(a),length:a.length}}(r),p=new y.Type1Parser(h.stream,!0,S).extractFontProgram(a);for(var g in p.properties)a[g]=p.properties[g];var b=p.charstrings,v=this.getType2Charstrings(b),k=this.getType2Subrs(p.subrs);this.charstrings=b;this.data=this.wrap(t,v,this.charstrings,k,a);this.seacs=this.getSeacs(p.charstrings)}Type1Font.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function Type1Font_getCharset(){for(var t=[".notdef"],r=this.charstrings,a=0;a<r.length;a++)t.push(r[a].glyphName);return t},getGlyphMapping:function Type1Font_getGlyphMapping(t){var r=this.charstrings;if(t.composite){for(var a=Object.create(null),i=0,o=r.length;i<o;i++){a[t.cMap.charCodeOf(i)]=i+1}return a}var l,c=[".notdef"];for(l=0;l<r.length;l++)c.push(r[l].glyphName);var u=t.builtInEncoding;if(u){var h=Object.create(null);for(var d in u)(l=c.indexOf(u[d]))>=0&&(h[d]=l)}return type1FontGlyphMapping(t,h,c)},hasGlyphId:function Type1Font_hasGlyphID(t){return!(t<0||t>=this.numGlyphs)&&(0===t||this.charstrings[t-1].charstring.length>0)},getSeacs:function Type1Font_getSeacs(t){var r,a,i=[];for(r=0,a=t.length;r<a;r++){var o=t[r];o.seac&&(i[r+1]=o.seac)}return i},getType2Charstrings:function Type1Font_getType2Charstrings(t){for(var r=[],a=0,i=t.length;a<i;a++)r.push(t[a].charstring);return r},getType2Subrs:function Type1Font_getType2Subrs(t){var r=0,a=t.length;r=a<1133?107:a<33769?1131:32768;var i,o=[];for(i=0;i<r;i++)o.push([11]);for(i=0;i<a;i++)o.push(t[i]);return o},wrap:function Type1Font_wrap(t,r,a,i,l){var c=new o.CFF;c.header=new o.CFFHeader(1,0,4,4);c.names=[t];var u=new o.CFFTopDict;u.setByName("version",391);u.setByName("Notice",392);u.setByName("FullName",393);u.setByName("FamilyName",394);u.setByName("Weight",395);u.setByName("Encoding",null);u.setByName("FontMatrix",l.fontMatrix);u.setByName("FontBBox",l.bbox);u.setByName("charset",null);u.setByName("CharStrings",null);u.setByName("Private",null);c.topDict=u;var h=new o.CFFStrings;h.add("Version 0.11");h.add("See original notice");h.add(t);h.add(t);h.add("Medium");c.strings=h;c.globalSubrIndex=new o.CFFIndex;var d,p,g=r.length,m=[".notdef"];for(d=0;d<g;d++){var y=a[d].glyphName;-1===o.CFFStandardStrings.indexOf(y)&&h.add(y);m.push(y)}c.charset=new o.CFFCharset(!1,0,m);var b=new o.CFFIndex;b.add([139,14]);for(d=0;d<g;d++)b.add(r[d]);c.charStrings=b;var v=new o.CFFPrivateDict;v.setByName("Subrs",null);var S=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(d=0,p=S.length;d<p;d++){var k=S[d];if(k in l.privateData){var w=l.privateData[k];if(Array.isArray(w))for(var C=w.length-1;C>0;C--)w[C]-=w[C-1];v.setByName(k,w)}}c.topDict.privateDict=v;var _=new o.CFFIndex;for(d=0,p=i.length;d<p;d++)_.add(i[d]);v.subrsIndex=_;return new o.CFFCompiler(c).compile()}};return Type1Font}(),E=function CFFFontClosure(){function CFFFont(t,r){this.properties=r;var a=new o.CFFParser(t,r,S);this.cff=a.parse();this.cff.duplicateFirstGlyph();var l=new o.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=l.compile()}catch(a){(0,i.warn)("Failed to compile font "+r.loadedName);this.data=t}}CFFFont.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function CFFFont_getCharset(){return this.cff.charset.charset},getGlyphMapping:function CFFFont_getGlyphMapping(){var t,r,a=this.cff,i=this.properties,o=a.charset.charset;if(i.composite){t=Object.create(null);if(a.isCIDFont)for(r=0;r<o.length;r++){var l=o[r];t[i.cMap.charCodeOf(l)]=r}else for(r=0;r<a.charStrings.count;r++)t[i.cMap.charCodeOf(r)]=r;return t}return t=type1FontGlyphMapping(i,a.encoding?a.encoding.encoding:null,o)},hasGlyphId:function CFFFont_hasGlyphID(t){return this.cff.hasGlyphId(t)}};return CFFFont}()},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.CFFTopDict=r.CFFStrings=r.CFFStandardStrings=r.CFFPrivateDict=r.CFFParser=r.CFFIndex=r.CFFHeader=r.CFFFDSelect=r.CFFCompiler=r.CFFCharset=r.CFF=void 0;var i=a(4),o=a(161),l=a(162);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var c=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];r.CFFStandardStrings=c;var u=391,h=function CFFParserClosure(){var t=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],r=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]+t[r-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]-t[r-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]/t[r-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function stack_div(t,r){t[r-1]=-t[r-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]*t[r-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];return function(){function CFFParser(t,r,a){_classCallCheck(this,CFFParser);this.bytes=t.getBytes();this.properties=r;this.seacAnalysisEnabled=!!a}_createClass(CFFParser,[{key:"parse",value:function parse(){var t=this.properties,r=new d;this.cff=r;var a=this.parseHeader(),i=this.parseIndex(a.endPos),o=this.parseIndex(i.endPos),l=this.parseIndex(o.endPos),c=this.parseIndex(l.endPos),u=this.parseDict(o.obj.get(0)),h=this.createDict(b,u,r.strings);r.header=a.obj;r.names=this.parseNameIndex(i.obj);r.strings=this.parseStringIndex(l.obj);r.topDict=h;r.globalSubrIndex=c.obj;this.parsePrivateDict(r.topDict);r.isCIDFont=h.hasName("ROS");var p=h.getByName("CharStrings"),g=this.parseIndex(p).obj,m=h.getByName("FontMatrix");m&&(t.fontMatrix=m);var y,v,S=h.getByName("FontBBox");if(S){t.ascent=Math.max(S[3],S[1]);t.descent=Math.min(S[1],S[3]);t.ascentScaled=!0}if(r.isCIDFont){for(var k=this.parseIndex(h.getByName("FDArray")).obj,w=0,C=k.count;w<C;++w){var _=k.get(w),x=this.createDict(b,this.parseDict(_),r.strings);this.parsePrivateDict(x);r.fdArray.push(x)}v=null;y=this.parseCharsets(h.getByName("charset"),g.count,r.strings,!0);r.fdSelect=this.parseFDSelect(h.getByName("FDSelect"),g.count)}else{y=this.parseCharsets(h.getByName("charset"),g.count,r.strings,!1);v=this.parseEncoding(h.getByName("Encoding"),t,r.strings,y.charset)}r.charset=y;r.encoding=v;var A=this.parseCharStrings({charStrings:g,localSubrIndex:h.privateDict.subrsIndex,globalSubrIndex:c.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:h.privateDict});r.charStrings=A.charStrings;r.seacs=A.seacs;r.widths=A.widths;return r}},{key:"parseHeader",value:function parseHeader(){for(var t=this.bytes,r=t.length,a=0;a<r&&1!==t[a];)++a;if(a>=r)throw new i.FormatError("Invalid CFF header");if(0!==a){(0,i.info)("cff data is shifted");t=t.subarray(a);this.bytes=t}var o=t[0],l=t[1],c=t[2],u=t[3];return{obj:new p(o,l,c,u),endPos:c}}},{key:"parseDict",value:function parseDict(t){var r=0;function parseOperand(){var a=t[r++];if(30===a)return function parseFloatOperand(){var a="",i=15,o=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],l=t.length;for(;r<l;){var c=t[r++],u=c>>4,h=15&c;if(u===i)break;a+=o[u];if(h===i)break;a+=o[h]}return parseFloat(a)}();if(28===a)return a=((a=t[r++])<<24|t[r++]<<16)>>16;if(29===a)return a=(a=(a=(a=t[r++])<<8|t[r++])<<8|t[r++])<<8|t[r++];if(a>=32&&a<=246)return a-139;if(a>=247&&a<=250)return 256*(a-247)+t[r++]+108;if(a>=251&&a<=254)return-256*(a-251)-t[r++]-108;(0,i.warn)('CFFParser_parseDict: "'+a+'" is a reserved command.');return NaN}var a=[],o=[];r=0;for(var l=t.length;r<l;){var c=t[r];if(c<=21){12===c&&(c=c<<8|t[++r]);o.push([c,a]);a=[];++r}else a.push(parseOperand())}return o}},{key:"parseIndex",value:function parseIndex(t){var r,a,i=new m,o=this.bytes,l=o[t++]<<8|o[t++],c=[],u=t;if(0!==l){var h=o[t++],d=t+(l+1)*h-1;for(r=0,a=l+1;r<a;++r){for(var p=0,g=0;g<h;++g){p<<=8;p+=o[t++]}c.push(d+p)}u=c[l]}for(r=0,a=c.length-1;r<a;++r){var y=c[r],b=c[r+1];i.add(o.subarray(y,b))}return{obj:i,endPos:u}}},{key:"parseNameIndex",value:function parseNameIndex(t){for(var r=[],a=0,o=t.count;a<o;++a){var l=t.get(a);r.push((0,i.bytesToString)(l))}return r}},{key:"parseStringIndex",value:function parseStringIndex(t){for(var r=new g,a=0,o=t.count;a<o;++a){var l=t.get(a);r.add((0,i.bytesToString)(l))}return r}},{key:"createDict",value:function createDict(t,r,a){for(var i=new t(a),o=0,l=r.length;o<l;++o){var c=r[o],u=c[0],h=c[1];i.setByKey(u,h)}return i}},{key:"parseCharString",value:function parseCharString(a,o,l,c){if(!o||a.callDepth>10)return!1;for(var u=a.stackSize,h=a.stack,d=o.length,p=0;p<d;){var g=o[p++],m=null;if(12===g){var y=o[p++];if(0===y){o[p-2]=139;o[p-1]=22;u=0}else m=r[y]}else if(28===g){h[u]=(o[p]<<24|o[p+1]<<16)>>16;p+=2;u++}else if(14===g){if(u>=4){u-=4;if(this.seacAnalysisEnabled){a.seac=h.slice(u,u+4);return!1}}m=t[g]}else if(g>=32&&g<=246){h[u]=g-139;u++}else if(g>=247&&g<=254){h[u]=g<251?(g-247<<8)+o[p]+108:-(g-251<<8)-o[p]-108;p++;u++}else if(255===g){h[u]=(o[p]<<24|o[p+1]<<16|o[p+2]<<8|o[p+3])/65536;p+=4;u++}else if(19===g||20===g){a.hints+=u>>1;p+=a.hints+7>>3;u%=2;m=t[g]}else{if(10===g||29===g){var b;if(!(b=10===g?l:c)){m=t[g];(0,i.warn)("Missing subrsIndex for "+m.id);return!1}var v=32768;b.count<1240?v=107:b.count<33900&&(v=1131);var S=h[--u]+v;if(S<0||S>=b.count||isNaN(S)){m=t[g];(0,i.warn)("Out of bounds subrIndex for "+m.id);return!1}a.stackSize=u;a.callDepth++;if(!this.parseCharString(a,b.get(S),l,c))return!1;a.callDepth--;u=a.stackSize;continue}if(11===g){a.stackSize=u;return!0}m=t[g]}if(m){if(m.stem){a.hints+=u>>1;if(3===g||23===g)a.hasVStems=!0;else if(a.hasVStems&&(1===g||18===g)){(0,i.warn)("CFF stem hints are in wrong order");o[p-1]=1===g?3:23}}if("min"in m&&!a.undefStack&&u<m.min){(0,i.warn)("Not enough parameters for "+m.id+"; actual: "+u+", expected: "+m.min);return!1}if(a.firstStackClearing&&m.stackClearing){a.firstStackClearing=!1;(u-=m.min)>=2&&m.stem?u%=2:u>1&&(0,i.warn)("Found too many parameters for stack-clearing command");u>0&&h[u-1]>=0&&(a.width=h[u-1])}if("stackDelta"in m){"stackFn"in m&&m.stackFn(h,u);u+=m.stackDelta}else if(m.stackClearing)u=0;else if(m.resetStack){u=0;a.undefStack=!1}else if(m.undefStack){u=0;a.undefStack=!0;a.firstStackClearing=!1}}}a.stackSize=u;return!0}},{key:"parseCharStrings",value:function parseCharStrings(t){for(var r=t.charStrings,a=t.localSubrIndex,o=t.globalSubrIndex,l=t.fdSelect,c=t.fdArray,u=t.privateDict,h=[],d=[],p=r.count,g=0;g<p;g++){var m=r.get(g),y={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},b=!0,v=null,S=u;if(l&&c.length){var k=l.getFDIndex(g);if(-1===k){(0,i.warn)("Glyph index is not in fd select.");b=!1}if(k>=c.length){(0,i.warn)("Invalid fd index for glyph index.");b=!1}b&&(v=(S=c[k].privateDict).subrsIndex)}else a&&(v=a);b&&(b=this.parseCharString(y,m,v,o));if(null!==y.width){var w=S.getByName("nominalWidthX");d[g]=w+y.width}else{var C=S.getByName("defaultWidthX");d[g]=C}null!==y.seac&&(h[g]=y.seac);b||r.set(g,new Uint8Array([14]))}return{charStrings:r,seacs:h,widths:d}}},{key:"emptyPrivateDictionary",value:function emptyPrivateDictionary(t){var r=this.createDict(v,[],t.strings);t.setByKey(18,[0,0]);t.privateDict=r}},{key:"parsePrivateDict",value:function parsePrivateDict(t){if(t.hasName("Private")){var r=t.getByName("Private");if(Array.isArray(r)&&2===r.length){var a=r[0],i=r[1];if(0===a||i>=this.bytes.length)this.emptyPrivateDictionary(t);else{var o=i+a,l=this.bytes.subarray(i,o),c=this.parseDict(l),u=this.createDict(v,c,t.strings);t.privateDict=u;if(u.getByName("Subrs")){var h=u.getByName("Subrs"),d=i+h;if(0===h||d>=this.bytes.length)this.emptyPrivateDictionary(t);else{var p=this.parseIndex(d);u.subrsIndex=p.obj}}}}else t.removeByName("Private")}else this.emptyPrivateDictionary(t)}},{key:"parseCharsets",value:function parseCharsets(t,r,a,l){if(0===t)return new k(!0,S.ISO_ADOBE,o.ISOAdobeCharset);if(1===t)return new k(!0,S.EXPERT,o.ExpertCharset);if(2===t)return new k(!0,S.EXPERT_SUBSET,o.ExpertSubsetCharset);var c,u,h,d=this.bytes,p=t,g=d[t++],m=[l?0:".notdef"];r-=1;switch(g){case 0:for(h=0;h<r;h++){c=d[t++]<<8|d[t++];m.push(l?c:a.get(c))}break;case 1:for(;m.length<=r;){c=d[t++]<<8|d[t++];u=d[t++];for(h=0;h<=u;h++)m.push(l?c++:a.get(c++))}break;case 2:for(;m.length<=r;){c=d[t++]<<8|d[t++];u=d[t++]<<8|d[t++];for(h=0;h<=u;h++)m.push(l?c++:a.get(c++))}break;default:throw new i.FormatError("Unknown charset format")}var y=t,b=d.subarray(p,y);return new k(!1,g,m,b)}},{key:"parseEncoding",value:function parseEncoding(t,r,a,o){var c,u,h,d=Object.create(null),p=this.bytes,g=!1,m=null;if(0===t||1===t){g=!0;c=t;var y=t?l.ExpertEncoding:l.StandardEncoding;for(u=0,h=o.length;u<h;u++){var b=y.indexOf(o[u]);-1!==b&&(d[b]=u)}}else{var v=t;switch(127&(c=p[t++])){case 0:var S=p[t++];for(u=1;u<=S;u++)d[p[t++]]=u;break;case 1:var k=p[t++],C=1;for(u=0;u<k;u++)for(var _=p[t++],x=p[t++],A=_;A<=_+x;A++)d[A]=C++;break;default:throw new i.FormatError("Unknown encoding format: ".concat(c," in CFF"))}var T=t;if(128&c){p[v]&=127;!function readSupplement(){var r=p[t++];for(u=0;u<r;u++){var i=p[t++],l=(p[t++]<<8)+(255&p[t++]);d[i]=o.indexOf(a.get(l))}}()}m=p.subarray(v,T)}return new w(g,c&=127,d,m)}},{key:"parseFDSelect",value:function parseFDSelect(t,r){var a,o=this.bytes,l=o[t++],c=[];switch(l){case 0:for(a=0;a<r;++a){var u=o[t++];c.push(u)}break;case 3:var h=o[t++]<<8|o[t++];for(a=0;a<h;++a){var d=o[t++]<<8|o[t++];if(0===a&&0!==d){(0,i.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");d=0}for(var p=o[t++],g=o[t]<<8|o[t+1],m=d;m<g;++m)c.push(p)}t+=2;break;default:throw new i.FormatError('parseFDSelect: Unknown format "'.concat(l,'".'))}if(c.length!==r)throw new i.FormatError("parseFDSelect: Invalid font data.");return new C(l,c)}}]);return CFFParser}()}();r.CFFParser=h;var d=function(){function CFF(){_classCallCheck(this,CFF);this.header=null;this.names=[];this.topDict=null;this.strings=new g;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}_createClass(CFF,[{key:"duplicateFirstGlyph",value:function duplicateFirstGlyph(){if(this.charStrings.count>=65535)(0,i.warn)("Not enough space in charstrings to duplicate first glyph.");else{var t=this.charStrings.get(0);this.charStrings.add(t);this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function hasGlyphId(t){return!(t<0||t>=this.charStrings.count)&&this.charStrings.get(t).length>0}}]);return CFF}();r.CFF=d;var p=function CFFHeader(t,r,a,i){_classCallCheck(this,CFFHeader);this.major=t;this.minor=r;this.hdrSize=a;this.offSize=i};r.CFFHeader=p;var g=function(){function CFFStrings(){_classCallCheck(this,CFFStrings);this.strings=[]}_createClass(CFFStrings,[{key:"get",value:function get(t){return t>=0&&t<=390?c[t]:t-u<=this.strings.length?this.strings[t-u]:c[0]}},{key:"getSID",value:function getSID(t){var r=c.indexOf(t);return-1!==r?r:-1!==(r=this.strings.indexOf(t))?r+u:-1}},{key:"add",value:function add(t){this.strings.push(t)}},{key:"count",get:function get(){return this.strings.length}}]);return CFFStrings}();r.CFFStrings=g;var m=function(){function CFFIndex(){_classCallCheck(this,CFFIndex);this.objects=[];this.length=0}_createClass(CFFIndex,[{key:"add",value:function add(t){this.length+=t.length;this.objects.push(t)}},{key:"set",value:function set(t,r){this.length+=r.length-this.objects[t].length;this.objects[t]=r}},{key:"get",value:function get(t){return this.objects[t]}},{key:"count",get:function get(){return this.objects.length}}]);return CFFIndex}();r.CFFIndex=m;var y=function(){function CFFDict(t,r){_classCallCheck(this,CFFDict);this.keyToNameMap=t.keyToNameMap;this.nameToKeyMap=t.nameToKeyMap;this.defaults=t.defaults;this.types=t.types;this.opcodes=t.opcodes;this.order=t.order;this.strings=r;this.values=Object.create(null)}_createClass(CFFDict,[{key:"setByKey",value:function setByKey(t,r){if(!(t in this.keyToNameMap))return!1;var a=r.length;if(0===a)return!0;for(var o=0;o<a;o++)if(isNaN(r[o])){(0,i.warn)('Invalid CFFDict value: "'+r+'" for key "'+t+'".');return!0}var l=this.types[t];"num"!==l&&"sid"!==l&&"offset"!==l||(r=r[0]);this.values[t]=r;return!0}},{key:"setByName",value:function setByName(t,r){if(!(t in this.nameToKeyMap))throw new i.FormatError('Invalid dictionary name "'.concat(t,'"'));this.values[this.nameToKeyMap[t]]=r}},{key:"hasName",value:function hasName(t){return this.nameToKeyMap[t]in this.values}},{key:"getByName",value:function getByName(t){if(!(t in this.nameToKeyMap))throw new i.FormatError("Invalid dictionary name ".concat(t,'"'));var r=this.nameToKeyMap[t];return r in this.values?this.values[r]:this.defaults[r]}},{key:"removeByName",value:function removeByName(t){delete this.values[this.nameToKeyMap[t]]}}],[{key:"createTables",value:function createTables(t){for(var r={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},a=0,i=t.length;a<i;++a){var o=t[a],l=Array.isArray(o[0])?(o[0][0]<<8)+o[0][1]:o[0];r.keyToNameMap[l]=o[1];r.nameToKeyMap[o[1]]=l;r.types[l]=o[2];r.defaults[l]=o[3];r.opcodes[l]=Array.isArray(o[0])?o[0]:[o[0]];r.order.push(l)}return r}}]);return CFFDict}(),b=function CFFTopDictClosure(){var t=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],r=null;return function(a){_inherits(CFFTopDict,a);var i=_createSuper(CFFTopDict);function CFFTopDict(a){var o;_classCallCheck(this,CFFTopDict);null===r&&(r=y.createTables(t));(o=i.call(this,r,a)).privateDict=null;return o}return CFFTopDict}(y)}();r.CFFTopDict=b;var v=function CFFPrivateDictClosure(){var t=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],r=null;return function(a){_inherits(CFFPrivateDict,a);var i=_createSuper(CFFPrivateDict);function CFFPrivateDict(a){var o;_classCallCheck(this,CFFPrivateDict);null===r&&(r=y.createTables(t));(o=i.call(this,r,a)).subrsIndex=null;return o}return CFFPrivateDict}(y)}();r.CFFPrivateDict=v;var S={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},k=function CFFCharset(t,r,a,i){_classCallCheck(this,CFFCharset);this.predefined=t;this.format=r;this.charset=a;this.raw=i};r.CFFCharset=k;var w=function CFFEncoding(t,r,a,i){_classCallCheck(this,CFFEncoding);this.predefined=t;this.format=r;this.encoding=a;this.raw=i},C=function(){function CFFFDSelect(t,r){_classCallCheck(this,CFFFDSelect);this.format=t;this.fdSelect=r}_createClass(CFFFDSelect,[{key:"getFDIndex",value:function getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}}]);return CFFFDSelect}();r.CFFFDSelect=C;var _=function(){function CFFOffsetTracker(){_classCallCheck(this,CFFOffsetTracker);this.offsets=Object.create(null)}_createClass(CFFOffsetTracker,[{key:"isTracking",value:function isTracking(t){return t in this.offsets}},{key:"track",value:function track(t,r){if(t in this.offsets)throw new i.FormatError("Already tracking location of ".concat(t));this.offsets[t]=r}},{key:"offset",value:function offset(t){for(var r in this.offsets)this.offsets[r]+=t}},{key:"setEntryLocation",value:function setEntryLocation(t,r,a){if(!(t in this.offsets))throw new i.FormatError("Not tracking location of ".concat(t));for(var o=a.data,l=this.offsets[t],c=0,u=r.length;c<u;++c){var h=5*c+l,d=h+1,p=h+2,g=h+3,m=h+4;if(29!==o[h]||0!==o[d]||0!==o[p]||0!==o[g]||0!==o[m])throw new i.FormatError("writing to an offset that is not empty");var y=r[c];o[h]=29;o[d]=y>>24&255;o[p]=y>>16&255;o[g]=y>>8&255;o[m]=255&y}}}]);return CFFOffsetTracker}(),x=function(){function CFFCompiler(t){_classCallCheck(this,CFFCompiler);this.cff=t}_createClass(CFFCompiler,[{key:"compile",value:function compile(){var t=this.cff,r={data:[],length:0,add:function CFFCompiler_add(t){this.data=this.data.concat(t);this.length=this.data.length}},a=this.compileHeader(t.header);r.add(a);var o=this.compileNameIndex(t.names);r.add(o);if(t.isCIDFont&&t.topDict.hasName("FontMatrix")){var l=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(var c=0,u=t.fdArray.length;c<u;c++){var h=t.fdArray[c],d=l.slice(0);h.hasName("FontMatrix")&&(d=i.Util.transform(d,h.getByName("FontMatrix")));h.setByName("FontMatrix",d)}}var p=t.topDict.getByName("XUID");p&&p.length>16&&t.topDict.removeByName("XUID");t.topDict.setByName("charset",0);var g=this.compileTopDicts([t.topDict],r.length,t.isCIDFont);r.add(g.output);var m=g.trackers[0],y=this.compileStringIndex(t.strings.strings);r.add(y);var b=this.compileIndex(t.globalSubrIndex);r.add(b);if(t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)m.setEntryLocation("Encoding",[t.encoding.format],r);else{var v=this.compileEncoding(t.encoding);m.setEntryLocation("Encoding",[r.length],r);r.add(v)}var S=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);m.setEntryLocation("charset",[r.length],r);r.add(S);var k=this.compileCharStrings(t.charStrings);m.setEntryLocation("CharStrings",[r.length],r);r.add(k);if(t.isCIDFont){m.setEntryLocation("FDSelect",[r.length],r);var w=this.compileFDSelect(t.fdSelect);r.add(w);g=this.compileTopDicts(t.fdArray,r.length,!0);m.setEntryLocation("FDArray",[r.length],r);r.add(g.output);var C=g.trackers;this.compilePrivateDicts(t.fdArray,C,r)}this.compilePrivateDicts([t.topDict],[m],r);r.add([0]);return r.data}},{key:"encodeNumber",value:function encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}},{key:"encodeFloat",value:function encodeFloat(t){var r=t.toString(),a=CFFCompiler.EncodeFloatRegExp.exec(r);if(a){var i=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));r=(Math.round(t*i)/i).toString()}var o,l,c="";for(o=0,l=r.length;o<l;++o){var u=r[o];c+="e"===u?"-"===r[++o]?"c":"b":"."===u?"a":"-"===u?"e":u}var h=[30];for(o=0,l=(c+=1&c.length?"f":"ff").length;o<l;o+=2)h.push(parseInt(c.substring(o,o+2),16));return h}},{key:"encodeInteger",value:function encodeInteger(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?[28,t>>8&255,255&t]:[29,t>>24&255,t>>16&255,t>>8&255,255&t]}},{key:"compileHeader",value:function compileHeader(t){return[t.major,t.minor,t.hdrSize,t.offSize]}},{key:"compileNameIndex",value:function compileNameIndex(t){for(var r=new m,a=0,o=t.length;a<o;++a){for(var l=t[a],c=Math.min(l.length,127),u=new Array(c),h=0;h<c;h++){var d=l[h];(d<"!"||d>"~"||"["===d||"]"===d||"("===d||")"===d||"{"===d||"}"===d||"<"===d||">"===d||"/"===d||"%"===d)&&(d="_");u[h]=d}""===(u=u.join(""))&&(u="Bad_Font_Name");r.add((0,i.stringToBytes)(u))}return this.compileIndex(r)}},{key:"compileTopDicts",value:function compileTopDicts(t,r,a){for(var i=[],o=new m,l=0,c=t.length;l<c;++l){var u=t[l];if(a){u.removeByName("CIDFontVersion");u.removeByName("CIDFontRevision");u.removeByName("CIDFontType");u.removeByName("CIDCount");u.removeByName("UIDBase")}var h=new _,d=this.compileDict(u,h);i.push(h);o.add(d);h.offset(r)}return{trackers:i,output:o=this.compileIndex(o,i)}}},{key:"compilePrivateDicts",value:function compilePrivateDicts(t,r,a){for(var o=0,l=t.length;o<l;++o){var c=t[o],u=c.privateDict;if(!u||!c.hasName("Private"))throw new i.FormatError("There must be a private dictionary.");var h=new _,d=this.compileDict(u,h),p=a.length;h.offset(p);d.length||(p=0);r[o].setEntryLocation("Private",[d.length,p],a);a.add(d);if(u.subrsIndex&&u.hasName("Subrs")){var g=this.compileIndex(u.subrsIndex);h.setEntryLocation("Subrs",[d.length],a);a.add(g)}}}},{key:"compileDict",value:function compileDict(t,r){for(var a=[],o=t.order,l=0;l<o.length;++l){var c=o[l];if(c in t.values){var u=t.values[c],h=t.types[c];Array.isArray(h)||(h=[h]);Array.isArray(u)||(u=[u]);if(0!==u.length){for(var d=0,p=h.length;d<p;++d){var g=h[d],m=u[d];switch(g){case"num":case"sid":a=a.concat(this.encodeNumber(m));break;case"offset":var y=t.keyToNameMap[c];r.isTracking(y)||r.track(y,a.length);a=a.concat([29,0,0,0,0]);break;case"array":case"delta":a=a.concat(this.encodeNumber(m));for(var b=1,v=u.length;b<v;++b)a=a.concat(this.encodeNumber(u[b]));break;default:throw new i.FormatError("Unknown data type of ".concat(g))}}a=a.concat(t.opcodes[c])}}}return a}},{key:"compileStringIndex",value:function compileStringIndex(t){for(var r=new m,a=0,o=t.length;a<o;++a)r.add((0,i.stringToBytes)(t[a]));return this.compileIndex(r)}},{key:"compileGlobalSubrIndex",value:function compileGlobalSubrIndex(){var t=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(t))}},{key:"compileCharStrings",value:function compileCharStrings(t){for(var r=new m,a=0;a<t.count;a++){var i=t.get(a);0!==i.length?r.add(i):r.add(new Uint8Array([139,14]))}return this.compileIndex(r)}},{key:"compileCharset",value:function compileCharset(t,r,a,o){var l,c=r-1;if(o)l=new Uint8Array([2,0,0,c>>8&255,255&c]);else{(l=new Uint8Array(1+2*c))[0]=0;for(var u=0,h=t.charset.length,d=!1,p=1;p<l.length;p+=2){var g=0;if(u<h){var m=t.charset[u++];if(-1===(g=a.getSID(m))){g=0;if(!d){d=!0;(0,i.warn)("Couldn't find ".concat(m," in CFF strings"))}}}l[p]=g>>8&255;l[p+1]=255&g}}return this.compileTypedArray(l)}},{key:"compileEncoding",value:function compileEncoding(t){return this.compileTypedArray(t.raw)}},{key:"compileFDSelect",value:function compileFDSelect(t){var r,a,i=t.format;switch(i){case 0:(r=new Uint8Array(1+t.fdSelect.length))[0]=i;for(a=0;a<t.fdSelect.length;a++)r[a+1]=t.fdSelect[a];break;case 3:var o=t.fdSelect[0],l=[i,0,0,0,0,o];for(a=1;a<t.fdSelect.length;a++){var c=t.fdSelect[a];if(c!==o){l.push(a>>8&255,255&a,c);o=c}}var u=(l.length-3)/3;l[1]=u>>8&255;l[2]=255&u;l.push(a>>8&255,255&a);r=new Uint8Array(l)}return this.compileTypedArray(r)}},{key:"compileTypedArray",value:function compileTypedArray(t){for(var r=[],a=0,i=t.length;a<i;++a)r[a]=t[a];return r}},{key:"compileIndex",value:function compileIndex(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=t.objects,i=a.length;if(0===i)return[0,0,0];var o,l,c=[i>>8&255,255&i],u=1;for(o=0;o<i;++o)u+=a[o].length;l=u<256?1:u<65536?2:u<16777216?3:4;c.push(l);var h=1;for(o=0;o<i+1;o++){1===l?c.push(255&h):2===l?c.push(h>>8&255,255&h):3===l?c.push(h>>16&255,h>>8&255,255&h):c.push(h>>>24&255,h>>16&255,h>>8&255,255&h);a[o]&&(h+=a[o].length)}for(o=0;o<i;o++){r[o]&&r[o].offset(c.length);for(var d=0,p=a[o].length;d<p;d++)c.push(a[o][d])}return c}}],[{key:"EncodeFloatRegExp",get:function get(){return(0,i.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]);return CFFCompiler}();r.CFFCompiler=x},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ISOAdobeCharset=r.ExpertSubsetCharset=r.ExpertCharset=void 0;r.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];r.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];r.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getEncoding=function getEncoding(t){switch(t){case"WinAnsiEncoding":return c;case"StandardEncoding":return l;case"MacRomanEncoding":return o;case"SymbolSetEncoding":return u;case"ZapfDingbatsEncoding":return h;case"ExpertEncoding":return a;case"MacExpertEncoding":return i;default:return null}};r.ZapfDingbatsEncoding=r.WinAnsiEncoding=r.SymbolSetEncoding=r.StandardEncoding=r.MacRomanEncoding=r.ExpertEncoding=void 0;var a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];r.ExpertEncoding=a;var i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];r.MacRomanEncoding=o;var l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];r.StandardEncoding=l;var c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];r.WinAnsiEncoding=c;var u=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];r.SymbolSetEncoding=u;var h=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];r.ZapfDingbatsEncoding=h},(t,r,a)=>{"use strict";a.r(r);a.d(r,{getDingbatsGlyphsUnicode:()=>l,getGlyphsUnicode:()=>o});var i=a(138),o=(0,i.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"ffl",64260,"fi",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]})),l=(0,i.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getSymbolsFonts=r.getSupplementalGlyphMapForCalibri=r.getSupplementalGlyphMapForArialBlack=r.getStdFontMap=r.getSerifFonts=r.getNonStdFontMap=r.getGlyphMapForStandardFonts=void 0;var i=a(138),o=(0,i.getLookupTableFactory)((function(t){t.ArialNarrow="Helvetica";t["ArialNarrow-Bold"]="Helvetica-Bold";t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";t["ArialNarrow-Italic"]="Helvetica-Oblique";t.ArialBlack="Helvetica";t["ArialBlack-Bold"]="Helvetica-Bold";t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";t["ArialBlack-Italic"]="Helvetica-Oblique";t["Arial-Black"]="Helvetica";t["Arial-Black-Bold"]="Helvetica-Bold";t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Black-Italic"]="Helvetica-Oblique";t.Arial="Helvetica";t["Arial-Bold"]="Helvetica-Bold";t["Arial-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Italic"]="Helvetica-Oblique";t["Arial-BoldItalicMT"]="Helvetica-BoldOblique";t["Arial-BoldMT"]="Helvetica-Bold";t["Arial-ItalicMT"]="Helvetica-Oblique";t.ArialMT="Helvetica";t["Courier-Bold"]="Courier-Bold";t["Courier-BoldItalic"]="Courier-BoldOblique";t["Courier-Italic"]="Courier-Oblique";t.CourierNew="Courier";t["CourierNew-Bold"]="Courier-Bold";t["CourierNew-BoldItalic"]="Courier-BoldOblique";t["CourierNew-Italic"]="Courier-Oblique";t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";t["CourierNewPS-BoldMT"]="Courier-Bold";t["CourierNewPS-ItalicMT"]="Courier-Oblique";t.CourierNewPSMT="Courier";t.Helvetica="Helvetica";t["Helvetica-Bold"]="Helvetica-Bold";t["Helvetica-BoldItalic"]="Helvetica-BoldOblique";t["Helvetica-BoldOblique"]="Helvetica-BoldOblique";t["Helvetica-Italic"]="Helvetica-Oblique";t["Helvetica-Oblique"]="Helvetica-Oblique";t["Symbol-Bold"]="Symbol";t["Symbol-BoldItalic"]="Symbol";t["Symbol-Italic"]="Symbol";t.TimesNewRoman="Times-Roman";t["TimesNewRoman-Bold"]="Times-Bold";t["TimesNewRoman-BoldItalic"]="Times-BoldItalic";t["TimesNewRoman-Italic"]="Times-Italic";t.TimesNewRomanPS="Times-Roman";t["TimesNewRomanPS-Bold"]="Times-Bold";t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";t["TimesNewRomanPS-BoldMT"]="Times-Bold";t["TimesNewRomanPS-Italic"]="Times-Italic";t["TimesNewRomanPS-ItalicMT"]="Times-Italic";t.TimesNewRomanPSMT="Times-Roman";t["TimesNewRomanPSMT-Bold"]="Times-Bold";t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPSMT-Italic"]="Times-Italic"}));r.getStdFontMap=o;var l=(0,i.getLookupTableFactory)((function(t){t.Calibri="Helvetica";t["Calibri-Bold"]="Helvetica-Bold";t["Calibri-BoldItalic"]="Helvetica-BoldOblique";t["Calibri-Italic"]="Helvetica-Oblique";t.CenturyGothic="Helvetica";t["CenturyGothic-Bold"]="Helvetica-Bold";t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";t["CenturyGothic-Italic"]="Helvetica-Oblique";t.ComicSansMS="Comic Sans MS";t["ComicSansMS-Bold"]="Comic Sans MS-Bold";t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";t["ComicSansMS-Italic"]="Comic Sans MS-Italic";t.LucidaConsole="Courier";t["LucidaConsole-Bold"]="Courier-Bold";t["LucidaConsole-BoldItalic"]="Courier-BoldOblique";t["LucidaConsole-Italic"]="Courier-Oblique";t["LucidaSans-Demi"]="Helvetica-Bold";t["MS-Gothic"]="MS Gothic";t["MS-Gothic-Bold"]="MS Gothic-Bold";t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";t["MS-Gothic-Italic"]="MS Gothic-Italic";t["MS-Mincho"]="MS Mincho";t["MS-Mincho-Bold"]="MS Mincho-Bold";t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";t["MS-Mincho-Italic"]="MS Mincho-Italic";t["MS-PGothic"]="MS PGothic";t["MS-PGothic-Bold"]="MS PGothic-Bold";t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";t["MS-PGothic-Italic"]="MS PGothic-Italic";t["MS-PMincho"]="MS PMincho";t["MS-PMincho-Bold"]="MS PMincho-Bold";t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";t["MS-PMincho-Italic"]="MS PMincho-Italic";t.NuptialScript="Times-Italic";t.SegoeUISymbol="Helvetica";t.Wingdings="ZapfDingbats";t["Wingdings-Regular"]="ZapfDingbats"}));r.getNonStdFontMap=l;var c=(0,i.getLookupTableFactory)((function(t){t["Adobe Jenson"]=!0;t["Adobe Text"]=!0;t.Albertus=!0;t.Aldus=!0;t.Alexandria=!0;t.Algerian=!0;t["American Typewriter"]=!0;t.Antiqua=!0;t.Apex=!0;t.Arno=!0;t.Aster=!0;t.Aurora=!0;t.Baskerville=!0;t.Bell=!0;t.Bembo=!0;t["Bembo Schoolbook"]=!0;t.Benguiat=!0;t["Berkeley Old Style"]=!0;t["Bernhard Modern"]=!0;t["Berthold City"]=!0;t.Bodoni=!0;t["Bauer Bodoni"]=!0;t["Book Antiqua"]=!0;t.Bookman=!0;t["Bordeaux Roman"]=!0;t["Californian FB"]=!0;t.Calisto=!0;t.Calvert=!0;t.Capitals=!0;t.Cambria=!0;t.Cartier=!0;t.Caslon=!0;t.Catull=!0;t.Centaur=!0;t["Century Old Style"]=!0;t["Century Schoolbook"]=!0;t.Chaparral=!0;t["Charis SIL"]=!0;t.Cheltenham=!0;t["Cholla Slab"]=!0;t.Clarendon=!0;t.Clearface=!0;t.Cochin=!0;t.Colonna=!0;t["Computer Modern"]=!0;t["Concrete Roman"]=!0;t.Constantia=!0;t["Cooper Black"]=!0;t.Corona=!0;t.Ecotype=!0;t.Egyptienne=!0;t.Elephant=!0;t.Excelsior=!0;t.Fairfield=!0;t["FF Scala"]=!0;t.Folkard=!0;t.Footlight=!0;t.FreeSerif=!0;t["Friz Quadrata"]=!0;t.Garamond=!0;t.Gentium=!0;t.Georgia=!0;t.Gloucester=!0;t["Goudy Old Style"]=!0;t["Goudy Schoolbook"]=!0;t["Goudy Pro Font"]=!0;t.Granjon=!0;t["Guardian Egyptian"]=!0;t.Heather=!0;t.Hercules=!0;t["High Tower Text"]=!0;t.Hiroshige=!0;t["Hoefler Text"]=!0;t["Humana Serif"]=!0;t.Imprint=!0;t["Ionic No. 5"]=!0;t.Janson=!0;t.Joanna=!0;t.Korinna=!0;t.Lexicon=!0;t["Liberation Serif"]=!0;t["Linux Libertine"]=!0;t.Literaturnaya=!0;t.Lucida=!0;t["Lucida Bright"]=!0;t.Melior=!0;t.Memphis=!0;t.Miller=!0;t.Minion=!0;t.Modern=!0;t["Mona Lisa"]=!0;t["Mrs Eaves"]=!0;t["MS Serif"]=!0;t["Museo Slab"]=!0;t["New York"]=!0;t["Nimbus Roman"]=!0;t["NPS Rawlinson Roadway"]=!0;t.NuptialScript=!0;t.Palatino=!0;t.Perpetua=!0;t.Plantin=!0;t["Plantin Schoolbook"]=!0;t.Playbill=!0;t["Poor Richard"]=!0;t["Rawlinson Roadway"]=!0;t.Renault=!0;t.Requiem=!0;t.Rockwell=!0;t.Roman=!0;t["Rotis Serif"]=!0;t.Sabon=!0;t.Scala=!0;t.Seagull=!0;t.Sistina=!0;t.Souvenir=!0;t.STIX=!0;t["Stone Informal"]=!0;t["Stone Serif"]=!0;t.Sylfaen=!0;t.Times=!0;t.Trajan=!0;t["Trinité"]=!0;t["Trump Mediaeval"]=!0;t.Utopia=!0;t["Vale Type"]=!0;t["Bitstream Vera"]=!0;t["Vera Serif"]=!0;t.Versailles=!0;t.Wanted=!0;t.Weiss=!0;t["Wide Latin"]=!0;t.Windsor=!0;t.XITS=!0}));r.getSerifFonts=c;var u=(0,i.getLookupTableFactory)((function(t){t.Dingbats=!0;t.Symbol=!0;t.ZapfDingbats=!0}));r.getSymbolsFonts=u;var h=(0,i.getLookupTableFactory)((function(t){t[2]=10;t[3]=32;t[4]=33;t[5]=34;t[6]=35;t[7]=36;t[8]=37;t[9]=38;t[10]=39;t[11]=40;t[12]=41;t[13]=42;t[14]=43;t[15]=44;t[16]=45;t[17]=46;t[18]=47;t[19]=48;t[20]=49;t[21]=50;t[22]=51;t[23]=52;t[24]=53;t[25]=54;t[26]=55;t[27]=56;t[28]=57;t[29]=58;t[30]=894;t[31]=60;t[32]=61;t[33]=62;t[34]=63;t[35]=64;t[36]=65;t[37]=66;t[38]=67;t[39]=68;t[40]=69;t[41]=70;t[42]=71;t[43]=72;t[44]=73;t[45]=74;t[46]=75;t[47]=76;t[48]=77;t[49]=78;t[50]=79;t[51]=80;t[52]=81;t[53]=82;t[54]=83;t[55]=84;t[56]=85;t[57]=86;t[58]=87;t[59]=88;t[60]=89;t[61]=90;t[62]=91;t[63]=92;t[64]=93;t[65]=94;t[66]=95;t[67]=96;t[68]=97;t[69]=98;t[70]=99;t[71]=100;t[72]=101;t[73]=102;t[74]=103;t[75]=104;t[76]=105;t[77]=106;t[78]=107;t[79]=108;t[80]=109;t[81]=110;t[82]=111;t[83]=112;t[84]=113;t[85]=114;t[86]=115;t[87]=116;t[88]=117;t[89]=118;t[90]=119;t[91]=120;t[92]=121;t[93]=122;t[94]=123;t[95]=124;t[96]=125;t[97]=126;t[98]=196;t[99]=197;t[100]=199;t[101]=201;t[102]=209;t[103]=214;t[104]=220;t[105]=225;t[106]=224;t[107]=226;t[108]=228;t[109]=227;t[110]=229;t[111]=231;t[112]=233;t[113]=232;t[114]=234;t[115]=235;t[116]=237;t[117]=236;t[118]=238;t[119]=239;t[120]=241;t[121]=243;t[122]=242;t[123]=244;t[124]=246;t[125]=245;t[126]=250;t[127]=249;t[128]=251;t[129]=252;t[130]=8224;t[131]=176;t[132]=162;t[133]=163;t[134]=167;t[135]=8226;t[136]=182;t[137]=223;t[138]=174;t[139]=169;t[140]=8482;t[141]=180;t[142]=168;t[143]=8800;t[144]=198;t[145]=216;t[146]=8734;t[147]=177;t[148]=8804;t[149]=8805;t[150]=165;t[151]=181;t[152]=8706;t[153]=8721;t[154]=8719;t[156]=8747;t[157]=170;t[158]=186;t[159]=8486;t[160]=230;t[161]=248;t[162]=191;t[163]=161;t[164]=172;t[165]=8730;t[166]=402;t[167]=8776;t[168]=8710;t[169]=171;t[170]=187;t[171]=8230;t[210]=218;t[223]=711;t[224]=321;t[225]=322;t[227]=353;t[229]=382;t[234]=253;t[252]=263;t[253]=268;t[254]=269;t[258]=258;t[260]=260;t[261]=261;t[265]=280;t[266]=281;t[268]=283;t[269]=313;t[275]=323;t[276]=324;t[278]=328;t[284]=345;t[285]=346;t[286]=347;t[292]=367;t[295]=377;t[296]=378;t[298]=380;t[305]=963;t[306]=964;t[307]=966;t[308]=8215;t[309]=8252;t[310]=8319;t[311]=8359;t[312]=8592;t[313]=8593;t[337]=9552;t[493]=1039;t[494]=1040;t[705]=1524;t[706]=8362;t[710]=64288;t[711]=64298;t[759]=1617;t[761]=1776;t[763]=1778;t[775]=1652;t[777]=1764;t[778]=1780;t[779]=1781;t[780]=1782;t[782]=771;t[783]=64726;t[786]=8363;t[788]=8532;t[790]=768;t[791]=769;t[792]=768;t[795]=803;t[797]=64336;t[798]=64337;t[799]=64342;t[800]=64343;t[801]=64344;t[802]=64345;t[803]=64362;t[804]=64363;t[805]=64364;t[2424]=7821;t[2425]=7822;t[2426]=7823;t[2427]=7824;t[2428]=7825;t[2429]=7826;t[2430]=7827;t[2433]=7682;t[2678]=8045;t[2679]=8046;t[2830]=1552;t[2838]=686;t[2840]=751;t[2842]=753;t[2843]=754;t[2844]=755;t[2846]=757;t[2856]=767;t[2857]=848;t[2858]=849;t[2862]=853;t[2863]=854;t[2864]=855;t[2865]=861;t[2866]=862;t[2906]=7460;t[2908]=7462;t[2909]=7463;t[2910]=7464;t[2912]=7466;t[2913]=7467;t[2914]=7468;t[2916]=7470;t[2917]=7471;t[2918]=7472;t[2920]=7474;t[2921]=7475;t[2922]=7476;t[2924]=7478;t[2925]=7479;t[2926]=7480;t[2928]=7482;t[2929]=7483;t[2930]=7484;t[2932]=7486;t[2933]=7487;t[2934]=7488;t[2936]=7490;t[2937]=7491;t[2938]=7492;t[2940]=7494;t[2941]=7495;t[2942]=7496;t[2944]=7498;t[2946]=7500;t[2948]=7502;t[2950]=7504;t[2951]=7505;t[2952]=7506;t[2954]=7508;t[2955]=7509;t[2956]=7510;t[2958]=7512;t[2959]=7513;t[2960]=7514;t[2962]=7516;t[2963]=7517;t[2964]=7518;t[2966]=7520;t[2967]=7521;t[2968]=7522;t[2970]=7524;t[2971]=7525;t[2972]=7526;t[2974]=7528;t[2975]=7529;t[2976]=7530;t[2978]=1537;t[2979]=1538;t[2980]=1539;t[2982]=1549;t[2983]=1551;t[2984]=1552;t[2986]=1554;t[2987]=1555;t[2988]=1556;t[2990]=1623;t[2991]=1624;t[2995]=1775;t[2999]=1791;t[3002]=64290;t[3003]=64291;t[3004]=64292;t[3006]=64294;t[3007]=64295;t[3008]=64296;t[3011]=1900;t[3014]=8223;t[3015]=8244;t[3017]=7532;t[3018]=7533;t[3019]=7534;t[3075]=7590;t[3076]=7591;t[3079]=7594;t[3080]=7595;t[3083]=7598;t[3084]=7599;t[3087]=7602;t[3088]=7603;t[3091]=7606;t[3092]=7607;t[3095]=7610;t[3096]=7611;t[3099]=7614;t[3100]=7615;t[3103]=7618;t[3104]=7619;t[3107]=8337;t[3108]=8338;t[3116]=1884;t[3119]=1885;t[3120]=1885;t[3123]=1886;t[3124]=1886;t[3127]=1887;t[3128]=1887;t[3131]=1888;t[3132]=1888;t[3135]=1889;t[3136]=1889;t[3139]=1890;t[3140]=1890;t[3143]=1891;t[3144]=1891;t[3147]=1892;t[3148]=1892;t[3153]=580;t[3154]=581;t[3157]=584;t[3158]=585;t[3161]=588;t[3162]=589;t[3165]=891;t[3166]=892;t[3169]=1274;t[3170]=1275;t[3173]=1278;t[3174]=1279;t[3181]=7622;t[3182]=7623;t[3282]=11799;t[3316]=578;t[3379]=42785;t[3393]=1159;t[3416]=8377}));r.getGlyphMapForStandardFonts=h;var d=(0,i.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));r.getSupplementalGlyphMapForArialBlack=d;var p=(0,i.getLookupTableFactory)((function(t){t[1]=32;t[4]=65;t[17]=66;t[18]=67;t[24]=68;t[28]=69;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[58]=74;t[60]=75;t[62]=76;t[68]=77;t[69]=78;t[75]=79;t[87]=80;t[89]=81;t[90]=82;t[94]=83;t[100]=84;t[104]=85;t[115]=86;t[116]=87;t[121]=88;t[122]=89;t[127]=90;t[258]=97;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[282]=100;t[286]=101;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[361]=106;t[364]=107;t[367]=108;t[371]=322;t[373]=109;t[374]=110;t[381]=111;t[383]=243;t[393]=112;t[395]=113;t[396]=114;t[400]=115;t[401]=347;t[410]=116;t[437]=117;t[448]=118;t[449]=119;t[454]=120;t[455]=121;t[460]=122;t[463]=380;t[853]=44;t[855]=58;t[856]=46;t[876]=47;t[878]=45;t[882]=45;t[894]=40;t[895]=41;t[896]=91;t[897]=93;t[923]=64;t[1004]=48;t[1005]=49;t[1006]=50;t[1007]=51;t[1008]=52;t[1009]=53;t[1010]=54;t[1011]=55;t[1012]=56;t[1013]=57;t[1081]=37;t[1085]=43;t[1086]=45}));r.getSupplementalGlyphMapForCalibri=p},(t,r,a)=>{"use strict";a.r(r);a.d(r,{getNormalizedUnicodes:()=>c,getUnicodeForGlyph:()=>getUnicodeForGlyph,getUnicodeRangeFor:()=>getUnicodeRangeFor,mapSpecialUnicodeValues:()=>mapSpecialUnicodeValues,reverseIfRtl:()=>reverseIfRtl});var i=a(138),o=(0,i.getLookupTableFactory)((function(t){t[63721]=169;t[63193]=169;t[63720]=174;t[63194]=174;t[63722]=8482;t[63195]=8482;t[63729]=9127;t[63730]=9128;t[63731]=9129;t[63740]=9131;t[63741]=9132;t[63742]=9133;t[63726]=9121;t[63727]=9122;t[63728]=9123;t[63737]=9124;t[63738]=9125;t[63739]=9126;t[63723]=9115;t[63724]=9116;t[63725]=9117;t[63734]=9118;t[63735]=9119;t[63736]=9120}));function mapSpecialUnicodeValues(t){return t>=65520&&t<=65535?0:t>=62976&&t<=63743?o()[t]||t:173===t?45:t}function getUnicodeForGlyph(t,r){var a=r[t];if(void 0!==a)return a;if(!t)return-1;if("u"===t[0]){var i,o=t.length;if(7===o&&"n"===t[1]&&"i"===t[2])i=t.substring(3);else{if(!(o>=5&&o<=7))return-1;i=t.substring(1)}if(i===i.toUpperCase()&&(a=parseInt(i,16))>=0)return a}return-1}var l=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function getUnicodeRangeFor(t){for(var r=0,a=l.length;r<a;r++){var i=l[r];if(t>=i.begin&&t<i.end)return r}return-1}var c=(0,i.getArrayLookupTableFactory)((function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ","᾽"," ̓","᾿"," ̓","῀"," ͂","῾"," ̔"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","‗"," ̳","․",".","‥","..","…","...","″","′′","‴","′′′","‶","‵‵","‷","‵‵‵","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","′′′′"," "," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","Ⅰ","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","Ⅴ","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","Ⅹ","X","Ⅺ","XI","Ⅻ","XII","Ⅼ","L","Ⅽ","C","Ⅾ","D","Ⅿ","M","ⅰ","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","ⅴ","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","ⅹ","x","ⅺ","xi","ⅻ","xii","ⅼ","l","ⅽ","c","ⅾ","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(a)","⒝","(b)","⒞","(c)","⒟","(d)","⒠","(e)","⒡","(f)","⒢","(g)","⒣","(h)","⒤","(i)","⒥","(j)","⒦","(k)","⒧","(l)","⒨","(m)","⒩","(n)","⒪","(o)","⒫","(p)","⒬","(q)","⒭","(r)","⒮","(s)","⒯","(t)","⒰","(u)","⒱","(v)","⒲","(w)","⒳","(x)","⒴","(y)","⒵","(z)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","⼂","丶","⼃","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","ㅤ","ᅠ","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","ﮦ","ہ","ﮧ","ہ","ﮨ","ہ","ﮩ","ہ","ﮪ","ھ","ﮫ","ھ","ﮬ","ھ","ﮭ","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","﹍","_","﹎","_","﹏","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","ﺍ","ا","ﺎ","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","ﻩ","ه","ﻪ","ه","ﻫ","ه","ﻬ","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]}));function reverseIfRtl(t){var r=t.length;if(r<=1||!function isRTLRangeFor(t){var r=l[13];return t>=r.begin&&t<r.end||t>=(r=l[11]).begin&&t<r.end}(t.charCodeAt(0)))return t;for(var a="",i=r-1;i>=0;i--)a+=t[i];return a}},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.FontRendererFactory=void 0;var i=a(4),o=a(160),l=a(163),c=a(162),u=a(142);function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var h=function FontRendererFactoryClosure(){function getLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}function getUshort(t,r){return t[r]<<8|t[r+1]}function getSubroutineBias(t){var r=t.length,a=32768;r<1240?a=107:r<33900&&(a=1131);return a}function parseCmap(t,r,a){var o,l,c,u=1===getUshort(t,r+2)?getLong(t,r+8):getLong(t,r+16),h=getUshort(t,r+u);if(4===h){getUshort(t,r+u+2);var d=getUshort(t,r+u+6)>>1;l=r+u+14;o=[];for(c=0;c<d;c++,l+=2)o[c]={end:getUshort(t,l)};l+=2;for(c=0;c<d;c++,l+=2)o[c].start=getUshort(t,l);for(c=0;c<d;c++,l+=2)o[c].idDelta=getUshort(t,l);for(c=0;c<d;c++,l+=2){var p=getUshort(t,l);if(0!==p){o[c].ids=[];for(var g=0,m=o[c].end-o[c].start+1;g<m;g++){o[c].ids[g]=getUshort(t,l+p);p+=2}}}return o}if(12===h){getLong(t,r+u+4);var y=getLong(t,r+u+12);l=r+u+16;o=[];for(c=0;c<y;c++){o.push({start:getLong(t,l),end:getLong(t,l+4),idDelta:getLong(t,l+8)-getLong(t,l)});l+=12}return o}throw new i.FormatError("unsupported cmap: ".concat(h))}function parseCff(t,r,a,i){var l=new o.CFFParser(new u.Stream(t,r,a-r),{},i).parse();return{glyphs:l.charStrings.objects,subrs:l.topDict.privateDict&&l.topDict.privateDict.subrsIndex&&l.topDict.privateDict.subrsIndex.objects,gsubrs:l.globalSubrIndex&&l.globalSubrIndex.objects,isCFFCIDFont:l.isCIDFont,fdSelect:l.fdSelect,fdArray:l.fdArray}}function lookupCmap(t,r){for(var a=r.codePointAt(0),i=0,o=0,l=t.length-1;o<l;){var c=o+l+1>>1;a<t[c].start?l=c-1:o=c}t[o].start<=a&&a<=t[o].end&&(i=t[o].idDelta+(t[o].ids?t[o].ids[a-t[o].start]:a)&65535);return{charCode:a,glyphId:i}}function compileGlyf(t,r,a){function moveTo(t,a){r.push({cmd:"moveTo",args:[t,a]})}function lineTo(t,a){r.push({cmd:"lineTo",args:[t,a]})}function quadraticCurveTo(t,a,i,o){r.push({cmd:"quadraticCurveTo",args:[t,a,i,o]})}var i,o=0,l=(t[o]<<24|t[o+1]<<16)>>16,c=0,u=0;o+=10;if(l<0)do{i=t[o]<<8|t[o+1];var h,d,p=t[o+2]<<8|t[o+3];o+=4;if(1&i){h=(t[o]<<24|t[o+1]<<16)>>16;d=(t[o+2]<<24|t[o+3]<<16)>>16;o+=4}else{h=t[o++];d=t[o++]}if(2&i){c=h;u=d}else{c=0;u=0}var g=1,m=1,y=0,b=0;if(8&i){g=m=(t[o]<<24|t[o+1]<<16)/1073741824;o+=2}else if(64&i){g=(t[o]<<24|t[o+1]<<16)/1073741824;m=(t[o+2]<<24|t[o+3]<<16)/1073741824;o+=4}else if(128&i){g=(t[o]<<24|t[o+1]<<16)/1073741824;y=(t[o+2]<<24|t[o+3]<<16)/1073741824;b=(t[o+4]<<24|t[o+5]<<16)/1073741824;m=(t[o+6]<<24|t[o+7]<<16)/1073741824;o+=8}var v=a.glyphs[p];if(v){r.push({cmd:"save"});r.push({cmd:"transform",args:[g,y,b,m,c,u]});compileGlyf(v,r,a);r.push({cmd:"restore"})}}while(32&i);else{var S,k,w=[];for(S=0;S<l;S++){w.push(t[o]<<8|t[o+1]);o+=2}o+=2+(t[o]<<8|t[o+1]);for(var C=w[w.length-1]+1,_=[];_.length<C;){var x=1;8&(i=t[o++])&&(x+=t[o++]);for(;x-- >0;)_.push({flags:i})}for(S=0;S<C;S++){switch(18&_[S].flags){case 0:c+=(t[o]<<24|t[o+1]<<16)>>16;o+=2;break;case 2:c-=t[o++];break;case 18:c+=t[o++]}_[S].x=c}for(S=0;S<C;S++){switch(36&_[S].flags){case 0:u+=(t[o]<<24|t[o+1]<<16)>>16;o+=2;break;case 4:u-=t[o++];break;case 36:u+=t[o++]}_[S].y=u}var A=0;for(o=0;o<l;o++){var T=w[o],P=_.slice(A,T+1);if(1&P[0].flags)P.push(P[0]);else if(1&P[P.length-1].flags)P.unshift(P[P.length-1]);else{var R={flags:1,x:(P[0].x+P[P.length-1].x)/2,y:(P[0].y+P[P.length-1].y)/2};P.unshift(R);P.push(R)}moveTo(P[0].x,P[0].y);for(S=1,k=P.length;S<k;S++)if(1&P[S].flags)lineTo(P[S].x,P[S].y);else if(1&P[S+1].flags){quadraticCurveTo(P[S].x,P[S].y,P[S+1].x,P[S+1].y);S++}else quadraticCurveTo(P[S].x,P[S].y,(P[S].x+P[S+1].x)/2,(P[S].y+P[S+1].y)/2);A=T+1}}}function compileCharString(t,r,a,o){function moveTo(t,a){r.push({cmd:"moveTo",args:[t,a]})}function lineTo(t,a){r.push({cmd:"lineTo",args:[t,a]})}function bezierCurveTo(t,a,i,o,l,c){r.push({cmd:"bezierCurveTo",args:[t,a,i,o,l,c]})}var l=[],u=0,h=0,d=0;!function parse(t){for(var p=0;p<t.length;){var g,m,y,b,v,S,k,w,C=!1,_=t[p++];switch(_){case 1:case 3:d+=l.length>>1;C=!0;break;case 4:h+=l.pop();moveTo(u,h);C=!0;break;case 5:for(;l.length>0;){u+=l.shift();h+=l.shift();lineTo(u,h)}break;case 6:for(;l.length>0;){lineTo(u+=l.shift(),h);if(0===l.length)break;h+=l.shift();lineTo(u,h)}break;case 7:for(;l.length>0;){h+=l.shift();lineTo(u,h);if(0===l.length)break;lineTo(u+=l.shift(),h)}break;case 8:for(;l.length>0;){g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u,h)}break;case 10:k=l.pop();w=null;if(a.isCFFCIDFont){var x=a.fdSelect.getFDIndex(o);if(x>=0&&x<a.fdArray.length){var A=a.fdArray[x],T=void 0;A.privateDict&&A.privateDict.subrsIndex&&(T=A.privateDict.subrsIndex.objects);T&&(w=T[k+=getSubroutineBias(T)])}else(0,i.warn)("Invalid fd index for glyph index.")}else w=a.subrs[k+a.subrsBias];w&&parse(w);break;case 11:return;case 12:switch(_=t[p++]){case 34:m=(g=u+l.shift())+l.shift();v=h+l.shift();u=m+l.shift();bezierCurveTo(g,h,m,v,u,v);m=(g=u+l.shift())+l.shift();u=m+l.shift();bezierCurveTo(g,v,m,h,u,h);break;case 35:g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u,h);g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u,h);l.pop();break;case 36:bezierCurveTo(g=u+l.shift(),v=h+l.shift(),m=g+l.shift(),S=v+l.shift(),u=m+l.shift(),S);bezierCurveTo(g=u+l.shift(),S,m=g+l.shift(),S+l.shift(),u=m+l.shift(),h);break;case 37:var P=u,R=h;g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u,h);g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m;h=b;Math.abs(u-P)>Math.abs(h-R)?u+=l.shift():h+=l.shift();bezierCurveTo(g,y,m,b,u,h);break;default:throw new i.FormatError("unknown operator: 12 ".concat(_))}break;case 14:if(l.length>=4){var I=l.pop(),O=l.pop();h=l.pop();u=l.pop();r.push({cmd:"save"});r.push({cmd:"translate",args:[u,h]});var E=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[c.StandardEncoding[I]]));compileCharString(a.glyphs[E.glyphId],r,a,E.glyphId);r.push({cmd:"restore"});E=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[c.StandardEncoding[O]]));compileCharString(a.glyphs[E.glyphId],r,a,E.glyphId)}return;case 18:d+=l.length>>1;C=!0;break;case 19:case 20:p+=(d+=l.length>>1)+7>>3;C=!0;break;case 21:h+=l.pop();moveTo(u+=l.pop(),h);C=!0;break;case 22:moveTo(u+=l.pop(),h);C=!0;break;case 23:d+=l.length>>1;C=!0;break;case 24:for(;l.length>2;){g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u,h)}u+=l.shift();h+=l.shift();lineTo(u,h);break;case 25:for(;l.length>6;){u+=l.shift();h+=l.shift();lineTo(u,h)}g=u+l.shift();y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u,h);break;case 26:l.length%2&&(u+=l.shift());for(;l.length>0;){g=u;y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m;h=b+l.shift();bezierCurveTo(g,y,m,b,u,h)}break;case 27:l.length%2&&(h+=l.shift());for(;l.length>0;)bezierCurveTo(g=u+l.shift(),y=h,m=g+l.shift(),b=y+l.shift(),u=m+l.shift(),h=b);break;case 28:l.push((t[p]<<24|t[p+1]<<16)>>16);p+=2;break;case 29:k=l.pop()+a.gsubrsBias;(w=a.gsubrs[k])&&parse(w);break;case 30:for(;l.length>0;){g=u;y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+(1===l.length?l.shift():0);bezierCurveTo(g,y,m,b,u,h);if(0===l.length)break;g=u+l.shift();y=h;m=g+l.shift();b=y+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u=m+(1===l.length?l.shift():0),h)}break;case 31:for(;l.length>0;){g=u+l.shift();y=h;m=g+l.shift();b=y+l.shift();h=b+l.shift();bezierCurveTo(g,y,m,b,u=m+(1===l.length?l.shift():0),h);if(0===l.length)break;g=u;y=h+l.shift();m=g+l.shift();b=y+l.shift();u=m+l.shift();h=b+(1===l.length?l.shift():0);bezierCurveTo(g,y,m,b,u,h)}break;default:if(_<32)throw new i.FormatError("unknown operator: ".concat(_));if(_<247)l.push(_-139);else if(_<251)l.push(256*(_-247)+t[p++]+108);else if(_<255)l.push(256*-(_-251)-t[p++]-108);else{l.push((t[p]<<24|t[p+1]<<16|t[p+2]<<8|t[p+3])/65536);p+=4}}C&&(l.length=0)}}(t)}var t=[],r=function(){function CompiledFont(t){_classCallCheck(this,CompiledFont);this.constructor===CompiledFont&&(0,i.unreachable)("Cannot initialize CompiledFont.");this.fontMatrix=t;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}_createClass(CompiledFont,[{key:"getPathJs",value:function getPathJs(t){var r=lookupCmap(this.cmap,t),a=this.compiledGlyphs[r.glyphId];if(!a){a=this.compileGlyph(this.glyphs[r.glyphId],r.glyphId);this.compiledGlyphs[r.glyphId]=a}void 0===this.compiledCharCodeToGlyphId[r.charCode]&&(this.compiledCharCodeToGlyphId[r.charCode]=r.glyphId);return a}},{key:"compileGlyph",value:function compileGlyph(r,a){if(!r||0===r.length||14===r[0])return t;var o=this.fontMatrix;if(this.isCFFCIDFont){var l=this.fdSelect.getFDIndex(a);if(l>=0&&l<this.fdArray.length){o=this.fdArray[l].getByName("FontMatrix")||i.FONT_IDENTITY_MATRIX}else(0,i.warn)("Invalid fd index for glyph index.")}var c=[];c.push({cmd:"save"});c.push({cmd:"transform",args:o.slice()});c.push({cmd:"scale",args:["size","-size"]});this.compileGlyphImpl(r,c,a);c.push({cmd:"restore"});return c}},{key:"compileGlyphImpl",value:function compileGlyphImpl(){(0,i.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function hasBuiltPath(t){var r=lookupCmap(this.cmap,t);return void 0!==this.compiledGlyphs[r.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[r.charCode]}}]);return CompiledFont}(),a=function(t){_inherits(TrueTypeCompiled,t);var r=_createSuper(TrueTypeCompiled);function TrueTypeCompiled(t,a,i){var o;_classCallCheck(this,TrueTypeCompiled);(o=r.call(this,i||[488e-6,0,0,488e-6,0,0])).glyphs=t;o.cmap=a;return o}_createClass(TrueTypeCompiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r){compileGlyf(t,r,this)}}]);return TrueTypeCompiled}(r),h=function(t){_inherits(Type2Compiled,t);var r=_createSuper(Type2Compiled);function Type2Compiled(t,a,i,o){var c;_classCallCheck(this,Type2Compiled);(c=r.call(this,i||[.001,0,0,.001,0,0])).glyphs=t.glyphs;c.gsubrs=t.gsubrs||[];c.subrs=t.subrs||[];c.cmap=a;c.glyphNameMap=o||(0,l.getGlyphsUnicode)();c.gsubrsBias=getSubroutineBias(c.gsubrs);c.subrsBias=getSubroutineBias(c.subrs);c.isCFFCIDFont=t.isCFFCIDFont;c.fdSelect=t.fdSelect;c.fdArray=t.fdArray;return c}_createClass(Type2Compiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r,a){compileCharString(t,r,this,a)}}]);return Type2Compiled}(r);return{create:function FontRendererFactory_create(t,r){for(var o,l,c,u,d,p,g=new Uint8Array(t.data),m=getUshort(g,4),y=0,b=12;y<m;y++,b+=16){var v=(0,i.bytesToString)(g.subarray(b,b+4)),S=getLong(g,b+8),k=getLong(g,b+12);switch(v){case"cmap":o=parseCmap(g,S);break;case"glyf":l=g.subarray(S,S+k);break;case"loca":c=g.subarray(S,S+k);break;case"head":p=getUshort(g,S+18);d=getUshort(g,S+50);break;case"CFF ":u=parseCff(g,S,S+k,r)}}if(l){var w=p?[1/p,0,0,1/p,0,0]:t.fontMatrix;return new a(function parseGlyfTable(t,r,a){var i,o;if(a){i=4;o=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}}else{i=2;o=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1}}for(var l=[],c=o(r,0),u=i;u<r.length;u+=i){var h=o(r,u);l.push(t.subarray(c,h));c=h}return l}(l,c,d),o,w)}return new h(u,o,t.fontMatrix,t.glyphNameMap)}}}();r.FontRendererFactory=h},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Type1Parser=void 0;var i=a(162),o=a(138),l=a(142),c=a(4),u=function Type1CharStringClosure(){var t=[4],r=[5],a=[6],i=[7],o=[8],l=[12,35],u=[14],h=[21],d=[22],p=[30],g=[31];function Type1CharString(){this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}Type1CharString.prototype={convert:function Type1CharString_convert(m,y,b){for(var v,S,k,w=m.length,C=!1,_=0;_<w;_++){var x=m[_];if(x<32){12===x&&(x=(x<<8)+m[++_]);switch(x){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){C=!0;break}var A=this.stack.pop();this.stack.push(0,A);break}C=this.executeCommand(1,t);break;case 5:C=this.executeCommand(2,r);break;case 6:C=this.executeCommand(1,a);break;case 7:C=this.executeCommand(1,i);break;case 8:C=this.executeCommand(6,o);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){C=!0;break}if(!y[k=this.stack.pop()]){C=!0;break}C=this.convert(y[k],y,b);break;case 11:return C;case 13:if(this.stack.length<2){C=!0;break}v=this.stack.pop();S=this.stack.pop();this.lsb=S;this.width=v;this.stack.push(v,S);C=this.executeCommand(2,d);break;case 14:this.output.push(u[0]);break;case 21:if(this.flexing)break;C=this.executeCommand(2,h);break;case 22:if(this.flexing){this.stack.push(0);break}C=this.executeCommand(1,d);break;case 30:C=this.executeCommand(4,p);break;case 31:C=this.executeCommand(4,g);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:if(b){var T=this.stack[this.stack.length-5];this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-T;C=this.executeCommand(0,u)}else C=this.executeCommand(4,u);break;case 3079:if(this.stack.length<4){C=!0;break}this.stack.pop();v=this.stack.pop();var P=this.stack.pop();S=this.stack.pop();this.lsb=S;this.width=v;this.stack.push(v,S,P);C=this.executeCommand(3,h);break;case 3084:if(this.stack.length<2){C=!0;break}var R=this.stack.pop(),I=this.stack.pop();this.stack.push(I/R);break;case 3088:if(this.stack.length<2){C=!0;break}k=this.stack.pop();var O=this.stack.pop();if(0===k&&3===O){var E=this.stack.splice(this.stack.length-17,17);this.stack.push(E[2]+E[0],E[3]+E[1],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14]);C=this.executeCommand(13,l,!0);this.flexing=!1;this.stack.push(E[15],E[16])}else 1===k&&0===O&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,c.warn)('Unknown type 1 charstring command of "'+x+'"')}if(C)break}else{x<=246?x-=139:x=x<=250?256*(x-247)+m[++_]+108:x<=254?-256*(x-251)-m[++_]-108:(255&m[++_])<<24|(255&m[++_])<<16|(255&m[++_])<<8|(255&m[++_])<<0;this.stack.push(x)}}return C},executeCommand:function executeCommand(t,r,a){var i=this.stack.length;if(t>i)return!0;for(var o=i-t,l=o;l<i;l++){var c=this.stack[l];if(Number.isInteger(c))this.output.push(28,c>>8&255,255&c);else{c=65536*c|0;this.output.push(255,c>>24&255,c>>16&255,c>>8&255,255&c)}}this.output.push.apply(this.output,r);a?this.stack.splice(o,t):this.stack.length=0;return!1}};return Type1CharString}(),h=function Type1ParserClosure(){function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function decrypt(t,r,a){if(a>=t.length)return new Uint8Array(0);var i,o,l=0|r;for(i=0;i<a;i++)l=52845*(t[i]+l)+22719&65535;var c=t.length-a,u=new Uint8Array(c);for(i=a,o=0;o<c;i++,o++){var h=t[i];u[o]=h^l>>8;l=52845*(h+l)+22719&65535}return u}function isSpecial(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}function Type1Parser(t,r,a){if(r){var i=t.getBytes(),c=!((isHexDigit(i[0])||(0,o.isWhiteSpace)(i[0]))&&isHexDigit(i[1])&&isHexDigit(i[2])&&isHexDigit(i[3])&&isHexDigit(i[4])&&isHexDigit(i[5])&&isHexDigit(i[6])&&isHexDigit(i[7]));t=new l.Stream(c?decrypt(i,55665,4):function decryptAscii(t,r,a){var i,o,l=0|r,c=t.length,u=new Uint8Array(c>>>1);for(i=0,o=0;i<c;i++){var h=t[i];if(isHexDigit(h)){i++;for(var d;i<c&&!isHexDigit(d=t[i]);)i++;if(i<c){var p=parseInt(String.fromCharCode(h,d),16);u[o++]=p^l>>8;l=52845*(p+l)+22719&65535}}}return u.slice(a,o)}(i,55665,4))}this.seacAnalysisEnabled=!!a;this.stream=t;this.nextChar()}Type1Parser.prototype={readNumberArray:function Type1Parser_readNumberArray(){this.getToken();for(var t=[];;){var r=this.getToken();if(null===r||"]"===r||"}"===r)break;t.push(parseFloat(r||0))}return t},readNumber:function Type1Parser_readNumber(){var t=this.getToken();return parseFloat(t||0)},readInt:function Type1Parser_readInt(){var t=this.getToken();return 0|parseInt(t||0,10)},readBoolean:function Type1Parser_readBoolean(){return"true"===this.getToken()?1:0},nextChar:function Type1_nextChar(){return this.currentChar=this.stream.getByte()},getToken:function Type1Parser_getToken(){for(var t=!1,r=this.currentChar;;){if(-1===r)return null;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!(0,o.isWhiteSpace)(r))break;r=this.nextChar()}if(isSpecial(r)){this.nextChar();return String.fromCharCode(r)}var a="";do{a+=String.fromCharCode(r);r=this.nextChar()}while(r>=0&&!(0,o.isWhiteSpace)(r)&&!isSpecial(r));return a},readCharStrings:function Type1Parser_readCharStrings(t,r){return-1===r?t:decrypt(t,4330,r)},extractFontProgram:function Type1Parser_extractFontProgram(t){var r=this.stream,a=[],i=[],o=Object.create(null);o.lenIV=4;for(var l,c,h,d,p,g={subrs:[],charstrings:[],properties:{privateData:o}};null!==(l=this.getToken());)if("/"===l)switch(l=this.getToken()){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;null!==(l=this.getToken())&&"end"!==l;)if("/"===l){var m=this.getToken();c=this.readInt();this.getToken();h=c>0?r.getBytes(c):new Uint8Array(0);d=g.properties.privateData.lenIV;p=this.readCharStrings(h,d);this.nextChar();"noaccess"===(l=this.getToken())&&this.getToken();i.push({glyph:m,encoded:p})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){var y=this.readInt();c=this.readInt();this.getToken();h=c>0?r.getBytes(c):new Uint8Array(0);d=g.properties.privateData.lenIV;p=this.readCharStrings(h,d);this.nextChar();"noaccess"===(l=this.getToken())&&this.getToken();a[y]=p}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var b=this.readNumberArray();b.length>0&&b.length,0;break;case"StemSnapH":case"StemSnapV":g.properties.privateData[l]=this.readNumberArray();break;case"StdHW":case"StdVW":g.properties.privateData[l]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":g.properties.privateData[l]=this.readNumber();break;case"ForceBold":g.properties.privateData[l]=this.readBoolean()}for(var v=0;v<i.length;v++){m=i[v].glyph;p=i[v].encoded;var S=new u,k=S.convert(p,a,this.seacAnalysisEnabled),w=S.output;k&&(w=[14]);var C={glyphName:m,charstring:w,width:S.width,lsb:S.lsb,seac:S.seac};".notdef"===m?g.charstrings.unshift(C):g.charstrings.push(C);if(t.builtInEncoding){var _=t.builtInEncoding.indexOf(m);_>-1&&void 0===t.widths[_]&&_>=t.firstChar&&_<=t.lastChar&&(t.widths[_]=S.width)}}return g},extractFontHeader:function Type1Parser_extractFontHeader(t){for(var r;null!==(r=this.getToken());)if("/"===r)switch(r=this.getToken()){case"FontMatrix":var a=this.readNumberArray();t.fontMatrix=a;break;case"Encoding":var o,l=this.getToken();if(/^\d+$/.test(l)){o=[];var c=0|parseInt(l,10);this.getToken();for(var u=0;u<c;u++){r=this.getToken();for(;"dup"!==r&&"def"!==r;)if(null===(r=this.getToken()))return;if("def"===r)break;var h=this.readInt();this.getToken();var d=this.getToken();o[h]=d;this.getToken()}}else o=(0,i.getEncoding)(l);t.builtInEncoding=o;break;case"FontBBox":var p=this.readNumberArray();t.ascent=Math.max(p[3],p[1]);t.descent=Math.min(p[1],p[3]);t.ascentScaled=!0}}};return Type1Parser}();r.Type1Parser=h},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getTilingPatternIR=function getTilingPatternIR(t,r,a){var o=r.getArray("Matrix"),l=i.Util.normalizeRect(r.getArray("BBox")),c=r.get("XStep"),u=r.get("YStep"),h=r.get("PaintType"),d=r.get("TilingType");if(l[2]-l[0]==0||l[3]-l[1]==0)throw new i.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(l,"]."));return["TilingPattern",a,t,o,l,c,u,h,d]};r.Pattern=void 0;var i=a(4),o=a(153),l=a(135),c=a(138),u=2,h=3,d=4,p=5,g=6,m=7,y=function PatternClosure(){function Pattern(){(0,i.unreachable)("should not call Pattern constructor")}Pattern.prototype={getPattern:function Pattern_getPattern(t){(0,i.unreachable)("Should not call Pattern.getStyle: ".concat(t))}};Pattern.parseShading=function(t,r,a,o,y,v,S){var k=(0,l.isStream)(t)?t.dict:t,w=k.get("ShadingType");try{switch(w){case u:case h:return new b.RadialAxial(k,r,a,o,v,S);case d:case p:case g:case m:return new b.Mesh(t,r,a,o,v,S);default:throw new i.FormatError("Unsupported ShadingType: "+w)}}catch(t){if(t instanceof c.MissingDataException)throw t;y.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.shadingPattern});(0,i.warn)(t);return new b.Dummy}};return Pattern}();r.Pattern=y;var b={SMALL_NUMBER:1e-6};b.RadialAxial=function RadialAxialClosure(){function RadialAxial(t,r,a,l,c,u){this.matrix=r;this.coordsArr=t.getArray("Coords");this.shadingType=t.get("ShadingType");this.type="Pattern";var d=o.ColorSpace.parse({cs:t.getRaw("ColorSpace")||t.getRaw("CS"),xref:a,resources:l,pdfFunctionFactory:c,localColorSpaceCache:u});this.cs=d;var p=t.getArray("BBox");Array.isArray(p)&&4===p.length?this.bbox=i.Util.normalizeRect(p):this.bbox=null;var g=0,m=1;if(t.has("Domain")){var y=t.getArray("Domain");g=y[0];m=y[1]}var v=!1,S=!1;if(t.has("Extend")){var k=t.getArray("Extend");v=k[0];S=k[1]}if(!(this.shadingType!==h||v&&S)){var w=this.coordsArr[0],C=this.coordsArr[1],_=this.coordsArr[2],x=this.coordsArr[3],A=this.coordsArr[4],T=this.coordsArr[5],P=Math.sqrt((w-x)*(w-x)+(C-A)*(C-A));_<=T+P&&T<=_+P&&(0,i.warn)("Unsupported radial gradient.")}this.extendStart=v;this.extendEnd=S;var R=t.getRaw("Function"),I=c.createFromArray(R),O=(m-g)/10,E=this.colorStops=[];if(g>=m||O<=0)(0,i.info)("Bad shading domain.");else{for(var D,B=new Float32Array(d.numComps),M=new Float32Array(1),L=0;L<=10;L++){M[0]=g+L*O;I(M,0,B,0);D=d.getRgb(B,0);var N=i.Util.makeHexColor(D[0],D[1],D[2]);E.push([L/10,N])}var j="transparent";if(t.has("Background")){D=d.getRgb(t.get("Background"),0);j=i.Util.makeHexColor(D[0],D[1],D[2])}if(!v){E.unshift([0,j]);E[1][0]+=b.SMALL_NUMBER}if(!S){E[E.length-1][0]-=b.SMALL_NUMBER;E.push([1,j])}this.colorStops=E}}RadialAxial.prototype={getIR:function RadialAxial_getIR(){var t,r,a,o,l,c=this.coordsArr,d=this.shadingType;if(d===u){r=[c[0],c[1]];a=[c[2],c[3]];o=null;l=null;t="axial"}else if(d===h){r=[c[0],c[1]];a=[c[3],c[4]];o=c[2];l=c[5];t="radial"}else(0,i.unreachable)("getPattern type unknown: ".concat(d));var p=this.matrix;if(p){r=i.Util.applyTransform(r,p);a=i.Util.applyTransform(a,p);if(d===h){var g=i.Util.singularValueDecompose2dScale(p);o*=g[0];l*=g[1]}}return["RadialAxial",t,this.bbox,this.colorStops,r,a,o,l]}};return RadialAxial}();b.Mesh=function MeshClosure(){function MeshStreamReader(t,r){this.stream=t;this.context=r;this.buffer=0;this.bufferLength=0;var a=r.numComps;this.tmpCompsBuf=new Float32Array(a);var i=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(i):this.tmpCompsBuf}MeshStreamReader.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var t=this.stream.getByte();if(t<0)return!1;this.buffer=t;this.bufferLength=8;return!0},readBits:function MeshStreamReader_readBits(t){var r=this.buffer,a=this.bufferLength;if(32===t){if(0===a)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;r=r<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var i=this.stream.getByte();this.buffer=i&(1<<a)-1;return(r<<8-a|(255&i)>>a)>>>0}if(8===t&&0===a)return this.stream.getByte();for(;a<t;){r=r<<8|this.stream.getByte();a+=8}a-=t;this.bufferLength=a;this.buffer=r&(1<<a)-1;return r>>a},align:function MeshStreamReader_align(){this.buffer=0;this.bufferLength=0},readFlag:function MeshStreamReader_readFlag(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function MeshStreamReader_readCoordinate(){var t=this.context.bitsPerCoordinate,r=this.readBits(t),a=this.readBits(t),i=this.context.decode,o=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[r*o*(i[1]-i[0])+i[0],a*o*(i[3]-i[2])+i[2]]},readComponents:function MeshStreamReader_readComponents(){for(var t=this.context.numComps,r=this.context.bitsPerComponent,a=r<32?1/((1<<r)-1):2.3283064365386963e-10,i=this.context.decode,o=this.tmpCompsBuf,l=0,c=4;l<t;l++,c+=2){var u=this.readBits(r);o[l]=u*a*(i[c+1]-i[c])+i[c]}var h=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(o,0,h,0);return this.context.colorSpace.getRgb(h,0)}};var t=function getBClosure(){var t=[];return function getB(r){t[r]||(t[r]=function buildB(t){for(var r=[],a=0;a<=t;a++){var i=a/t,o=1-i;r.push(new Float32Array([o*o*o,3*i*o*o,3*i*i*o,i*i*i]))}return r}(r));return t[r]}}();function buildFigureFromPatch(r,a){var o=r.figures[a];(0,i.assert)("patch"===o.type,"Unexpected patch mesh figure");var l=r.coords,c=r.colors,u=o.coords,h=o.colors,d=Math.min(l[u[0]][0],l[u[3]][0],l[u[12]][0],l[u[15]][0]),p=Math.min(l[u[0]][1],l[u[3]][1],l[u[12]][1],l[u[15]][1]),g=Math.max(l[u[0]][0],l[u[3]][0],l[u[12]][0],l[u[15]][0]),m=Math.max(l[u[0]][1],l[u[3]][1],l[u[12]][1],l[u[15]][1]),y=Math.ceil(20*(g-d)/(r.bounds[2]-r.bounds[0]));y=Math.max(3,Math.min(20,y));var b=Math.ceil(20*(m-p)/(r.bounds[3]-r.bounds[1]));b=Math.max(3,Math.min(20,b));for(var v=y+1,S=new Int32Array((b+1)*v),k=new Int32Array((b+1)*v),w=0,C=new Uint8Array(3),_=new Uint8Array(3),x=c[h[0]],A=c[h[1]],T=c[h[2]],P=c[h[3]],R=t(b),I=t(y),O=0;O<=b;O++){C[0]=(x[0]*(b-O)+T[0]*O)/b|0;C[1]=(x[1]*(b-O)+T[1]*O)/b|0;C[2]=(x[2]*(b-O)+T[2]*O)/b|0;_[0]=(A[0]*(b-O)+P[0]*O)/b|0;_[1]=(A[1]*(b-O)+P[1]*O)/b|0;_[2]=(A[2]*(b-O)+P[2]*O)/b|0;for(var E=0;E<=y;E++,w++)if(0!==O&&O!==b||0!==E&&E!==y){for(var D=0,B=0,M=0,L=0;L<=3;L++)for(var N=0;N<=3;N++,M++){var j=R[O][L]*I[E][N];D+=l[u[M]][0]*j;B+=l[u[M]][1]*j}S[w]=l.length;l.push([D,B]);k[w]=c.length;var U=new Uint8Array(3);U[0]=(C[0]*(y-E)+_[0]*E)/y|0;U[1]=(C[1]*(y-E)+_[1]*E)/y|0;U[2]=(C[2]*(y-E)+_[2]*E)/y|0;c.push(U)}}S[0]=u[0];k[0]=h[0];S[y]=u[3];k[y]=h[1];S[v*b]=u[12];k[v*b]=h[2];S[v*b+y]=u[15];k[v*b+y]=h[3];r.figures[a]={type:"lattice",coords:S,colors:k,verticesPerRow:v}}function updateBounds(t){for(var r=t.coords[0][0],a=t.coords[0][1],i=r,o=a,l=1,c=t.coords.length;l<c;l++){var u=t.coords[l][0],h=t.coords[l][1];r=r>u?u:r;a=a>h?h:a;i=i<u?u:i;o=o<h?h:o}t.bounds=[r,a,i,o]}function Mesh(t,r,a,c,u,h){if(!(0,l.isStream)(t))throw new i.FormatError("Mesh data is not a stream");var y=t.dict;this.matrix=r;this.shadingType=y.get("ShadingType");this.type="Pattern";var b=y.getArray("BBox");Array.isArray(b)&&4===b.length?this.bbox=i.Util.normalizeRect(b):this.bbox=null;var v=o.ColorSpace.parse({cs:y.getRaw("ColorSpace")||y.getRaw("CS"),xref:a,resources:c,pdfFunctionFactory:u,localColorSpaceCache:h});this.cs=v;this.background=y.has("Background")?v.getRgb(y.get("Background"),0):null;var S=y.getRaw("Function"),k=S?u.createFromArray(S):null;this.coords=[];this.colors=[];this.figures=[];var w=new MeshStreamReader(t,{bitsPerCoordinate:y.get("BitsPerCoordinate"),bitsPerComponent:y.get("BitsPerComponent"),bitsPerFlag:y.get("BitsPerFlag"),decode:y.getArray("Decode"),colorFn:k,colorSpace:v,numComps:k?1:v.numComps}),C=!1;switch(this.shadingType){case d:!function decodeType4Shading(t,r){for(var a=t.coords,o=t.colors,l=[],c=[],u=0;r.hasData;){var h=r.readFlag(),d=r.readCoordinate(),p=r.readComponents();if(0===u){if(!(0<=h&&h<=2))throw new i.FormatError("Unknown type4 flag");switch(h){case 0:u=3;break;case 1:c.push(c[c.length-2],c[c.length-1]);u=1;break;case 2:c.push(c[c.length-3],c[c.length-1]);u=1}l.push(h)}c.push(a.length);a.push(d);o.push(p);u--;r.align()}t.figures.push({type:"triangles",coords:new Int32Array(c),colors:new Int32Array(c)})}(this,w);break;case p:var _=0|y.get("VerticesPerRow");if(_<2)throw new i.FormatError("Invalid VerticesPerRow");!function decodeType5Shading(t,r,a){for(var i=t.coords,o=t.colors,l=[];r.hasData;){var c=r.readCoordinate(),u=r.readComponents();l.push(i.length);i.push(c);o.push(u)}t.figures.push({type:"lattice",coords:new Int32Array(l),colors:new Int32Array(l),verticesPerRow:a})}(this,w,_);break;case g:!function decodeType6Shading(t,r){for(var a=t.coords,o=t.colors,l=new Int32Array(16),c=new Int32Array(4);r.hasData;){var u,h,d=r.readFlag();if(!(0<=d&&d<=3))throw new i.FormatError("Unknown type6 flag");var p=a.length;for(u=0,h=0!==d?8:12;u<h;u++)a.push(r.readCoordinate());var g,m,y,b,v=o.length;for(u=0,h=0!==d?2:4;u<h;u++)o.push(r.readComponents());switch(d){case 0:l[12]=p+3;l[13]=p+4;l[14]=p+5;l[15]=p+6;l[8]=p+2;l[11]=p+7;l[4]=p+1;l[7]=p+8;l[0]=p;l[1]=p+11;l[2]=p+10;l[3]=p+9;c[2]=v+1;c[3]=v+2;c[0]=v;c[1]=v+3;break;case 1:g=l[12];m=l[13];y=l[14];b=l[15];l[12]=b;l[13]=p+0;l[14]=p+1;l[15]=p+2;l[8]=y;l[11]=p+3;l[4]=m;l[7]=p+4;l[0]=g;l[1]=p+7;l[2]=p+6;l[3]=p+5;g=c[2];m=c[3];c[2]=m;c[3]=v;c[0]=g;c[1]=v+1;break;case 2:g=l[15];m=l[11];l[12]=l[3];l[13]=p+0;l[14]=p+1;l[15]=p+2;l[8]=l[7];l[11]=p+3;l[4]=m;l[7]=p+4;l[0]=g;l[1]=p+7;l[2]=p+6;l[3]=p+5;g=c[3];c[2]=c[1];c[3]=v;c[0]=g;c[1]=v+1;break;case 3:l[12]=l[0];l[13]=p+0;l[14]=p+1;l[15]=p+2;l[8]=l[1];l[11]=p+3;l[4]=l[2];l[7]=p+4;l[0]=l[3];l[1]=p+7;l[2]=p+6;l[3]=p+5;c[2]=c[0];c[3]=v;c[0]=c[1];c[1]=v+1}l[5]=a.length;a.push([(-4*a[l[0]][0]-a[l[15]][0]+6*(a[l[4]][0]+a[l[1]][0])-2*(a[l[12]][0]+a[l[3]][0])+3*(a[l[13]][0]+a[l[7]][0]))/9,(-4*a[l[0]][1]-a[l[15]][1]+6*(a[l[4]][1]+a[l[1]][1])-2*(a[l[12]][1]+a[l[3]][1])+3*(a[l[13]][1]+a[l[7]][1]))/9]);l[6]=a.length;a.push([(-4*a[l[3]][0]-a[l[12]][0]+6*(a[l[2]][0]+a[l[7]][0])-2*(a[l[0]][0]+a[l[15]][0])+3*(a[l[4]][0]+a[l[14]][0]))/9,(-4*a[l[3]][1]-a[l[12]][1]+6*(a[l[2]][1]+a[l[7]][1])-2*(a[l[0]][1]+a[l[15]][1])+3*(a[l[4]][1]+a[l[14]][1]))/9]);l[9]=a.length;a.push([(-4*a[l[12]][0]-a[l[3]][0]+6*(a[l[8]][0]+a[l[13]][0])-2*(a[l[0]][0]+a[l[15]][0])+3*(a[l[11]][0]+a[l[1]][0]))/9,(-4*a[l[12]][1]-a[l[3]][1]+6*(a[l[8]][1]+a[l[13]][1])-2*(a[l[0]][1]+a[l[15]][1])+3*(a[l[11]][1]+a[l[1]][1]))/9]);l[10]=a.length;a.push([(-4*a[l[15]][0]-a[l[0]][0]+6*(a[l[11]][0]+a[l[14]][0])-2*(a[l[12]][0]+a[l[3]][0])+3*(a[l[2]][0]+a[l[8]][0]))/9,(-4*a[l[15]][1]-a[l[0]][1]+6*(a[l[11]][1]+a[l[14]][1])-2*(a[l[12]][1]+a[l[3]][1])+3*(a[l[2]][1]+a[l[8]][1]))/9]);t.figures.push({type:"patch",coords:new Int32Array(l),colors:new Int32Array(c)})}}(this,w);C=!0;break;case m:!function decodeType7Shading(t,r){for(var a=t.coords,o=t.colors,l=new Int32Array(16),c=new Int32Array(4);r.hasData;){var u,h,d=r.readFlag();if(!(0<=d&&d<=3))throw new i.FormatError("Unknown type7 flag");var p=a.length;for(u=0,h=0!==d?12:16;u<h;u++)a.push(r.readCoordinate());var g,m,y,b,v=o.length;for(u=0,h=0!==d?2:4;u<h;u++)o.push(r.readComponents());switch(d){case 0:l[12]=p+3;l[13]=p+4;l[14]=p+5;l[15]=p+6;l[8]=p+2;l[9]=p+13;l[10]=p+14;l[11]=p+7;l[4]=p+1;l[5]=p+12;l[6]=p+15;l[7]=p+8;l[0]=p;l[1]=p+11;l[2]=p+10;l[3]=p+9;c[2]=v+1;c[3]=v+2;c[0]=v;c[1]=v+3;break;case 1:g=l[12];m=l[13];y=l[14];b=l[15];l[12]=b;l[13]=p+0;l[14]=p+1;l[15]=p+2;l[8]=y;l[9]=p+9;l[10]=p+10;l[11]=p+3;l[4]=m;l[5]=p+8;l[6]=p+11;l[7]=p+4;l[0]=g;l[1]=p+7;l[2]=p+6;l[3]=p+5;g=c[2];m=c[3];c[2]=m;c[3]=v;c[0]=g;c[1]=v+1;break;case 2:g=l[15];m=l[11];l[12]=l[3];l[13]=p+0;l[14]=p+1;l[15]=p+2;l[8]=l[7];l[9]=p+9;l[10]=p+10;l[11]=p+3;l[4]=m;l[5]=p+8;l[6]=p+11;l[7]=p+4;l[0]=g;l[1]=p+7;l[2]=p+6;l[3]=p+5;g=c[3];c[2]=c[1];c[3]=v;c[0]=g;c[1]=v+1;break;case 3:l[12]=l[0];l[13]=p+0;l[14]=p+1;l[15]=p+2;l[8]=l[1];l[9]=p+9;l[10]=p+10;l[11]=p+3;l[4]=l[2];l[5]=p+8;l[6]=p+11;l[7]=p+4;l[0]=l[3];l[1]=p+7;l[2]=p+6;l[3]=p+5;c[2]=c[0];c[3]=v;c[0]=c[1];c[1]=v+1}t.figures.push({type:"patch",coords:new Int32Array(l),colors:new Int32Array(c)})}}(this,w);C=!0;break;default:(0,i.unreachable)("Unsupported mesh type.")}if(C){updateBounds(this);for(var x=0,A=this.figures.length;x<A;x++)buildFigureFromPatch(this,x)}updateBounds(this);!function packData(t){var r,a,i,o,l=t.coords,c=new Float32Array(2*l.length);for(r=0,i=0,a=l.length;r<a;r++){var u=l[r];c[i++]=u[0];c[i++]=u[1]}t.coords=c;var h=t.colors,d=new Uint8Array(3*h.length);for(r=0,i=0,a=h.length;r<a;r++){var p=h[r];d[i++]=p[0];d[i++]=p[1];d[i++]=p[2]}t.colors=d;var g=t.figures;for(r=0,a=g.length;r<a;r++){var m=g[r],y=m.coords,b=m.colors;for(i=0,o=y.length;i<o;i++){y[i]*=2;b[i]*=3}}}(this)}Mesh.prototype={getIR:function Mesh_getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}};return Mesh}();b.Dummy=function DummyClosure(){function Dummy(){this.type="Pattern"}Dummy.prototype={getIR:function Dummy_getIR(){return["Dummy"]}};return Dummy}()},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isPDFFunction=function isPDFFunction(t){var r;if("object"!==_typeof(t))return!1;if((0,i.isDict)(t))r=t;else{if(!(0,i.isStream)(t))return!1;r=t.dict}return r.has("FunctionType")};r.PostScriptEvaluator=r.PostScriptCompiler=r.PDFFunctionFactory=void 0;var i=a(135),o=a(4),l=a(170),c=a(154);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}var u=function(){function PDFFunctionFactory(t){var r=t.xref,a=t.isEvalSupported,i=void 0===a||a;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PDFFunctionFactory);this.xref=r;this.isEvalSupported=!1!==i}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(PDFFunctionFactory,[{key:"create",value:function create(t){var r=this.getCached(t);if(r)return r;var a=h.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:t instanceof i.Ref?this.xref.fetch(t):t});this._cache(t,a);return a}},{key:"createFromArray",value:function createFromArray(t){var r=this.getCached(t);if(r)return r;var a=h.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:t instanceof i.Ref?this.xref.fetch(t):t});this._cache(t,a);return a}},{key:"getCached",value:function getCached(t){var r;t instanceof i.Ref?r=t:t instanceof i.Dict?r=t.objId:(0,i.isStream)(t)&&(r=t.dict&&t.dict.objId);if(r){var a=this._localFunctionCache.getByRef(r);if(a)return a}return null}},{key:"_cache",value:function _cache(t,r){if(!r)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var a;t instanceof i.Ref?a=t:t instanceof i.Dict?a=t.objId:(0,i.isStream)(t)&&(a=t.dict&&t.dict.objId);a&&this._localFunctionCache.set(null,a,r)}},{key:"_localFunctionCache",get:function get(){return(0,o.shadow)(this,"_localFunctionCache",new c.LocalFunctionCache)}}]);return PDFFunctionFactory}();r.PDFFunctionFactory=u;function toNumberArray(t){if(!Array.isArray(t))return null;for(var r=t.length,a=0;a<r;a++)if("number"!=typeof t[a]){for(var i=new Array(r),o=0;o<r;o++)i[o]=+t[o];return i}return t}var h=function PDFFunctionClosure(){return{getSampleArray:function getSampleArray(t,r,a,i){var o,l,c=1;for(o=0,l=t.length;o<l;o++)c*=t[o];c*=r;var u=new Array(c),h=0,d=0,p=1/(Math.pow(2,a)-1),g=i.getBytes((c*a+7)/8),m=0;for(o=0;o<c;o++){for(;h<a;){d<<=8;d|=g[m++];h+=8}h-=a;u[o]=(d>>h)*p;d&=(1<<h)-1}return u},getIR:function getIR(t){var r=t.xref,a=t.isEvalSupported,i=t.fn,l=i.dict;l||(l=i);var c=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][l.get("FunctionType")];if(!c)throw new o.FormatError("Unknown type of function");return c.call(this,{xref:r,isEvalSupported:a,fn:i,dict:l})},fromIR:function fromIR(t){var r=t.xref,a=t.isEvalSupported,i=t.IR;switch(i[0]){case 0:return this.constructSampledFromIR({xref:r,isEvalSupported:a,IR:i});case 2:return this.constructInterpolatedFromIR({xref:r,isEvalSupported:a,IR:i});case 3:return this.constructStichedFromIR({xref:r,isEvalSupported:a,IR:i});default:return this.constructPostScriptFromIR({xref:r,isEvalSupported:a,IR:i})}},parse:function parse(t){var r=t.xref,a=t.isEvalSupported,i=t.fn,o=this.getIR({xref:r,isEvalSupported:a,fn:i});return this.fromIR({xref:r,isEvalSupported:a,IR:o})},parseArray:function parseArray(t){var r=t.xref,a=t.isEvalSupported,i=t.fnObj;if(!Array.isArray(i))return this.parse({xref:r,isEvalSupported:a,fn:i});for(var o=[],l=0,c=i.length;l<c;l++)o.push(this.parse({xref:r,isEvalSupported:a,fn:r.fetchIfRef(i[l])}));return function(t,r,a,i){for(var l=0,c=o.length;l<c;l++)o[l](t,r,a,i+l)}},constructSampled:function constructSampled(t){t.xref,t.isEvalSupported;var r=t.fn,a=t.dict;function toMultiArray(t){for(var r=t.length,a=[],i=0,o=0;o<r;o+=2){a[i]=[t[o],t[o+1]];++i}return a}var i=toNumberArray(a.getArray("Domain")),l=toNumberArray(a.getArray("Range"));if(!i||!l)throw new o.FormatError("No domain or range");var c=i.length/2,u=l.length/2;i=toMultiArray(i);l=toMultiArray(l);var h=toNumberArray(a.getArray("Size")),d=a.get("BitsPerSample"),p=a.get("Order")||1;1!==p&&(0,o.info)("No support for cubic spline interpolation: "+p);var g=toNumberArray(a.getArray("Encode"));if(g)g=toMultiArray(g);else{g=[];for(var m=0;m<c;++m)g.push([0,h[m]-1])}var y=toNumberArray(a.getArray("Decode"));return[0,c,i,g,y=y?toMultiArray(y):l,this.getSampleArray(h,u,d,r),h,u,Math.pow(2,d)-1,l]},constructSampledFromIR:function constructSampledFromIR(t){t.xref,t.isEvalSupported;var r=t.IR;function interpolate(t,r,a,i,o){return i+(o-i)/(a-r)*(t-r)}return function constructSampledFromIRResult(t,a,i,o){var l,c,u=r[1],h=r[2],d=r[3],p=r[4],g=r[5],m=r[6],y=r[7],b=r[9],v=1<<u,S=new Float64Array(v),k=new Uint32Array(v);for(c=0;c<v;c++)S[c]=1;var w=y,C=1;for(l=0;l<u;++l){var _=h[l][0],x=h[l][1],A=interpolate(Math.min(Math.max(t[a+l],_),x),_,x,d[l][0],d[l][1]),T=m[l],P=(A=Math.min(Math.max(A,0),T-1))<T-1?Math.floor(A):A-1,R=P+1-A,I=A-P,O=P*w,E=O+w;for(c=0;c<v;c++)if(c&C){S[c]*=I;k[c]+=E}else{S[c]*=R;k[c]+=O}w*=T;C<<=1}for(c=0;c<y;++c){var D=0;for(l=0;l<v;l++)D+=g[k[l]+c]*S[l];D=interpolate(D,0,1,p[c][0],p[c][1]);i[o+c]=Math.min(Math.max(D,b[c][0]),b[c][1])}}},constructInterpolated:function constructInterpolated(t){t.xref,t.isEvalSupported,t.fn;for(var r=t.dict,a=toNumberArray(r.getArray("C0"))||[0],i=toNumberArray(r.getArray("C1"))||[1],o=r.get("N"),l=a.length,c=[],u=0;u<l;++u)c.push(i[u]-a[u]);return[2,a,c,o]},constructInterpolatedFromIR:function constructInterpolatedFromIR(t){t.xref,t.isEvalSupported;var r=t.IR,a=r[1],i=r[2],o=r[3],l=i.length;return function constructInterpolatedFromIRResult(t,r,c,u){for(var h=1===o?t[r]:Math.pow(t[r],o),d=0;d<l;++d)c[u+d]=a[d]+h*i[d]}},constructStiched:function constructStiched(t){var r=t.xref,a=t.isEvalSupported,i=(t.fn,t.dict),l=toNumberArray(i.getArray("Domain"));if(!l)throw new o.FormatError("No domain");if(1!==l.length/2)throw new o.FormatError("Bad domain for stiched function");for(var c=i.get("Functions"),u=[],h=0,d=c.length;h<d;++h)u.push(this.parse({xref:r,isEvalSupported:a,fn:r.fetchIfRef(c[h])}));return[3,l,toNumberArray(i.getArray("Bounds")),toNumberArray(i.getArray("Encode")),u]},constructStichedFromIR:function constructStichedFromIR(t){t.xref,t.isEvalSupported;var r=t.IR,a=r[1],i=r[2],o=r[3],l=r[4],c=new Float32Array(1);return function constructStichedFromIRResult(t,r,u,h){for(var d=function constructStichedFromIRClip(t,r,a){t>a?t=a:t<r&&(t=r);return t}(t[r],a[0],a[1]),p=0,g=i.length;p<g&&!(d<i[p]);++p);var m=a[0];p>0&&(m=i[p-1]);var y=a[1];p<i.length&&(y=i[p]);var b=o[2*p],v=o[2*p+1];c[0]=m===y?b:b+(d-m)*(v-b)/(y-m);l[p](c,0,u,h)}},constructPostScript:function constructPostScript(t){t.xref,t.isEvalSupported;var r=t.fn,a=t.dict,i=toNumberArray(a.getArray("Domain")),c=toNumberArray(a.getArray("Range"));if(!i)throw new o.FormatError("No domain.");if(!c)throw new o.FormatError("No range.");var u=new l.PostScriptLexer(r);return[4,i,c,new l.PostScriptParser(u).parse()]},constructPostScriptFromIR:function constructPostScriptFromIR(t){t.xref;var r=t.isEvalSupported,a=t.IR,i=a[1],l=a[2],c=a[3];if(r&&o.IsEvalSupportedCached.value){var u=(new g).compile(c,i,l);if(u)return new Function("src","srcOffset","dest","destOffset",u)}(0,o.info)("Unable to compile PS function");var h=l.length>>1,d=i.length>>1,m=new p(c),y=Object.create(null),b=8192,v=new Float32Array(d);return function constructPostScriptFromIRResult(t,r,a,i){var o,c,u="",p=v;for(o=0;o<d;o++){c=t[r+o];p[o]=c;u+=c+"_"}var g=y[u];if(void 0===g){var S=new Float32Array(h),k=m.execute(p),w=k.length-h;for(o=0;o<h;o++){c=k[w+o];var C=l[2*o];(c<C||c>(C=l[2*o+1]))&&(c=C);S[o]=c}if(b>0){b--;y[u]=S}a.set(S,i)}else a.set(g,i)}}}}();var d=function PostScriptStackClosure(){function PostScriptStack(t){this.stack=t?Array.prototype.slice.call(t,0):[]}PostScriptStack.prototype={push:function PostScriptStack_push(t){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(t)},pop:function PostScriptStack_pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function PostScriptStack_copy(t){if(this.stack.length+t>=100)throw new Error("PostScript function stack overflow.");for(var r=this.stack,a=r.length-t,i=t-1;i>=0;i--,a++)r.push(r[a])},index:function PostScriptStack_index(t){this.push(this.stack[this.stack.length-t-1])},roll:function PostScriptStack_roll(t,r){var a,i,o,l=this.stack,c=l.length-t,u=l.length-1,h=c+(r-Math.floor(r/t)*t);for(a=c,i=u;a<i;a++,i--){o=l[a];l[a]=l[i];l[i]=o}for(a=c,i=h-1;a<i;a++,i--){o=l[a];l[a]=l[i];l[i]=o}for(a=h,i=u;a<i;a++,i--){o=l[a];l[a]=l[i];l[i]=o}}};return PostScriptStack}(),p=function PostScriptEvaluatorClosure(){function PostScriptEvaluator(t){this.operators=t}PostScriptEvaluator.prototype={execute:function PostScriptEvaluator_execute(t){for(var r,a,i,l=new d(t),c=0,u=this.operators,h=u.length;c<h;)if("number"!=typeof(r=u[c++]))switch(r){case"jz":i=l.pop();(a=l.pop())||(c=i);break;case"j":c=a=l.pop();break;case"abs":a=l.pop();l.push(Math.abs(a));break;case"add":i=l.pop();a=l.pop();l.push(a+i);break;case"and":i=l.pop();a=l.pop();(0,o.isBool)(a)&&(0,o.isBool)(i)?l.push(a&&i):l.push(a&i);break;case"atan":a=l.pop();l.push(Math.atan(a));break;case"bitshift":i=l.pop();(a=l.pop())>0?l.push(a<<i):l.push(a>>i);break;case"ceiling":a=l.pop();l.push(Math.ceil(a));break;case"copy":a=l.pop();l.copy(a);break;case"cos":a=l.pop();l.push(Math.cos(a));break;case"cvi":a=0|l.pop();l.push(a);break;case"cvr":break;case"div":i=l.pop();a=l.pop();l.push(a/i);break;case"dup":l.copy(1);break;case"eq":i=l.pop();a=l.pop();l.push(a===i);break;case"exch":l.roll(2,1);break;case"exp":i=l.pop();a=l.pop();l.push(Math.pow(a,i));break;case"false":l.push(!1);break;case"floor":a=l.pop();l.push(Math.floor(a));break;case"ge":i=l.pop();a=l.pop();l.push(a>=i);break;case"gt":i=l.pop();a=l.pop();l.push(a>i);break;case"idiv":i=l.pop();a=l.pop();l.push(a/i|0);break;case"index":a=l.pop();l.index(a);break;case"le":i=l.pop();a=l.pop();l.push(a<=i);break;case"ln":a=l.pop();l.push(Math.log(a));break;case"log":a=l.pop();l.push(Math.log(a)/Math.LN10);break;case"lt":i=l.pop();a=l.pop();l.push(a<i);break;case"mod":i=l.pop();a=l.pop();l.push(a%i);break;case"mul":i=l.pop();a=l.pop();l.push(a*i);break;case"ne":i=l.pop();a=l.pop();l.push(a!==i);break;case"neg":a=l.pop();l.push(-a);break;case"not":a=l.pop();(0,o.isBool)(a)?l.push(!a):l.push(~a);break;case"or":i=l.pop();a=l.pop();(0,o.isBool)(a)&&(0,o.isBool)(i)?l.push(a||i):l.push(a|i);break;case"pop":l.pop();break;case"roll":i=l.pop();a=l.pop();l.roll(a,i);break;case"round":a=l.pop();l.push(Math.round(a));break;case"sin":a=l.pop();l.push(Math.sin(a));break;case"sqrt":a=l.pop();l.push(Math.sqrt(a));break;case"sub":i=l.pop();a=l.pop();l.push(a-i);break;case"true":l.push(!0);break;case"truncate":a=(a=l.pop())<0?Math.ceil(a):Math.floor(a);l.push(a);break;case"xor":i=l.pop();a=l.pop();(0,o.isBool)(a)&&(0,o.isBool)(i)?l.push(a!==i):l.push(a^i);break;default:throw new o.FormatError("Unknown operator ".concat(r))}else l.push(r);return l.stack}};return PostScriptEvaluator}();r.PostScriptEvaluator=p;var g=function PostScriptCompilerClosure(){function AstNode(t){this.type=t}AstNode.prototype.visit=function(t){(0,o.unreachable)("abstract method")};function AstArgument(t,r,a){AstNode.call(this,"args");this.index=t;this.min=r;this.max=a}AstArgument.prototype=Object.create(AstNode.prototype);AstArgument.prototype.visit=function(t){t.visitArgument(this)};function AstLiteral(t){AstNode.call(this,"literal");this.number=t;this.min=t;this.max=t}AstLiteral.prototype=Object.create(AstNode.prototype);AstLiteral.prototype.visit=function(t){t.visitLiteral(this)};function AstBinaryOperation(t,r,a,i,o){AstNode.call(this,"binary");this.op=t;this.arg1=r;this.arg2=a;this.min=i;this.max=o}AstBinaryOperation.prototype=Object.create(AstNode.prototype);AstBinaryOperation.prototype.visit=function(t){t.visitBinaryOperation(this)};function AstMin(t,r){AstNode.call(this,"max");this.arg=t;this.min=t.min;this.max=r}AstMin.prototype=Object.create(AstNode.prototype);AstMin.prototype.visit=function(t){t.visitMin(this)};function AstVariable(t,r,a){AstNode.call(this,"var");this.index=t;this.min=r;this.max=a}AstVariable.prototype=Object.create(AstNode.prototype);AstVariable.prototype.visit=function(t){t.visitVariable(this)};function AstVariableDefinition(t,r){AstNode.call(this,"definition");this.variable=t;this.arg=r}AstVariableDefinition.prototype=Object.create(AstNode.prototype);AstVariableDefinition.prototype.visit=function(t){t.visitVariableDefinition(this)};function ExpressionBuilderVisitor(){this.parts=[]}ExpressionBuilderVisitor.prototype={visitArgument:function visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")},visitVariable:function visitVariable(t){this.parts.push("v",t.index)},visitLiteral:function visitLiteral(t){this.parts.push(t.number)},visitBinaryOperation:function visitBinaryOperation(t){this.parts.push("(");t.arg1.visit(this);this.parts.push(" ",t.op," ");t.arg2.visit(this);this.parts.push(")")},visitVariableDefinition:function visitVariableDefinition(t){this.parts.push("var ");t.variable.visit(this);this.parts.push(" = ");t.arg.visit(this);this.parts.push(";")},visitMin:function visitMin(t){this.parts.push("Math.min(");t.arg.visit(this);this.parts.push(", ",t.max,")")},toString:function toString(){return this.parts.join("")}};function buildAddOperation(t,r){return"literal"===r.type&&0===r.number?t:"literal"===t.type&&0===t.number?r:"literal"===r.type&&"literal"===t.type?new AstLiteral(t.number+r.number):new AstBinaryOperation("+",t,r,t.min+r.min,t.max+r.max)}function buildMulOperation(t,r){if("literal"===r.type){if(0===r.number)return new AstLiteral(0);if(1===r.number)return t;if("literal"===t.type)return new AstLiteral(t.number*r.number)}if("literal"===t.type){if(0===t.number)return new AstLiteral(0);if(1===t.number)return r}return new AstBinaryOperation("*",t,r,Math.min(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max),Math.max(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max))}function buildSubOperation(t,r){if("literal"===r.type){if(0===r.number)return t;if("literal"===t.type)return new AstLiteral(t.number-r.number)}return"binary"===r.type&&"-"===r.op&&"literal"===t.type&&1===t.number&&"literal"===r.arg1.type&&1===r.arg1.number?r.arg2:new AstBinaryOperation("-",t,r,t.min-r.max,t.max-r.min)}function buildMinOperation(t,r){return t.min>=r?new AstLiteral(r):t.max<=r?t:new AstMin(t,r)}function PostScriptCompiler(){}PostScriptCompiler.prototype={compile:function PostScriptCompiler_compile(t,r,a){for(var i,o,l,c,u,h,d,p,g=[],m=[],y=r.length>>1,b=a.length>>1,v=0,S=0;S<y;S++)g.push(new AstArgument(S,r[2*S],r[2*S+1]));for(var k=0,w=t.length;k<w;k++)if("number"!=typeof(p=t[k]))switch(p){case"add":if(g.length<2)return null;c=g.pop();l=g.pop();g.push(buildAddOperation(l,c));break;case"cvr":if(g.length<1)return null;break;case"mul":if(g.length<2)return null;c=g.pop();l=g.pop();g.push(buildMulOperation(l,c));break;case"sub":if(g.length<2)return null;c=g.pop();l=g.pop();g.push(buildSubOperation(l,c));break;case"exch":if(g.length<2)return null;u=g.pop();h=g.pop();g.push(u,h);break;case"pop":if(g.length<1)return null;g.pop();break;case"index":if(g.length<1)return null;if("literal"!==(l=g.pop()).type)return null;if((i=l.number)<0||!Number.isInteger(i)||g.length<i)return null;if("literal"===(u=g[g.length-i-1]).type||"var"===u.type){g.push(u);break}d=new AstVariable(v++,u.min,u.max);g[g.length-i-1]=d;g.push(d);m.push(new AstVariableDefinition(d,u));break;case"dup":if(g.length<1)return null;if("number"==typeof t[k+1]&&"gt"===t[k+2]&&t[k+3]===k+7&&"jz"===t[k+4]&&"pop"===t[k+5]&&t[k+6]===t[k+1]){l=g.pop();g.push(buildMinOperation(l,t[k+1]));k+=6;break}if("literal"===(u=g[g.length-1]).type||"var"===u.type){g.push(u);break}d=new AstVariable(v++,u.min,u.max);g[g.length-1]=d;g.push(d);m.push(new AstVariableDefinition(d,u));break;case"roll":if(g.length<2)return null;c=g.pop();l=g.pop();if("literal"!==c.type||"literal"!==l.type)return null;o=c.number;if((i=l.number)<=0||!Number.isInteger(i)||!Number.isInteger(o)||g.length<i)return null;if(0===(o=(o%i+i)%i))break;Array.prototype.push.apply(g,g.splice(g.length-i,i-o));break;default:return null}else g.push(new AstLiteral(p));if(g.length!==b)return null;var C=[];m.forEach((function(t){var r=new ExpressionBuilderVisitor;t.visit(r);C.push(r.toString())}));g.forEach((function(t,r){var i=new ExpressionBuilderVisitor;t.visit(i);var o=a[2*r],l=a[2*r+1],c=[i.toString()];if(o>t.min){c.unshift("Math.max(",o,", ");c.push(")")}if(l<t.max){c.unshift("Math.min(",l,", ");c.push(")")}c.unshift("dest[destOffset + ",r,"] = ");c.push(";");C.push(c.join(""))}));return C.join("\n")}};return PostScriptCompiler}();r.PostScriptCompiler=g},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptParser=r.PostScriptLexer=void 0;var i=a(4),o=a(135),l=a(138);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var c=function(){function PostScriptParser(t){_classCallCheck(this,PostScriptParser);this.lexer=t;this.operators=[];this.token=null;this.prev=null}_createClass(PostScriptParser,[{key:"nextToken",value:function nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}},{key:"accept",value:function accept(t){if(this.token.type===t){this.nextToken();return!0}return!1}},{key:"expect",value:function expect(t){if(this.accept(t))return!0;throw new i.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(t,"."))}},{key:"parse",value:function parse(){this.nextToken();this.expect(u.LBRACE);this.parseBlock();this.expect(u.RBRACE);return this.operators}},{key:"parseBlock",value:function parseBlock(){for(;;)if(this.accept(u.NUMBER))this.operators.push(this.prev.value);else if(this.accept(u.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(u.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function parseCondition(){var t=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(u.RBRACE);if(this.accept(u.IF)){this.operators[t]=this.operators.length;this.operators[t+1]="jz"}else{if(!this.accept(u.LBRACE))throw new i.FormatError("PS Function: error parsing conditional.");var r=this.operators.length;this.operators.push(null,null);var a=this.operators.length;this.parseBlock();this.expect(u.RBRACE);this.expect(u.IFELSE);this.operators[r]=this.operators.length;this.operators[r+1]="j";this.operators[t]=a;this.operators[t+1]="jz"}}}]);return PostScriptParser}();r.PostScriptParser=c;var u={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},h=function PostScriptTokenClosure(){var t=Object.create(null);return function(){function PostScriptToken(t,r){_classCallCheck(this,PostScriptToken);this.type=t;this.value=r}_createClass(PostScriptToken,null,[{key:"getOperator",value:function getOperator(r){var a=t[r];return a||(t[r]=new PostScriptToken(u.OPERATOR,r))}},{key:"LBRACE",get:function get(){return(0,i.shadow)(this,"LBRACE",new PostScriptToken(u.LBRACE,"{"))}},{key:"RBRACE",get:function get(){return(0,i.shadow)(this,"RBRACE",new PostScriptToken(u.RBRACE,"}"))}},{key:"IF",get:function get(){return(0,i.shadow)(this,"IF",new PostScriptToken(u.IF,"IF"))}},{key:"IFELSE",get:function get(){return(0,i.shadow)(this,"IFELSE",new PostScriptToken(u.IFELSE,"IFELSE"))}}]);return PostScriptToken}()}(),d=function(){function PostScriptLexer(t){_classCallCheck(this,PostScriptLexer);this.stream=t;this.nextChar();this.strBuf=[]}_createClass(PostScriptLexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function getToken(){for(var t=!1,r=this.currentChar;;){if(r<0)return o.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!(0,l.isWhiteSpace)(r))break;r=this.nextChar()}switch(0|r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new h(u.NUMBER,this.getNumber());case 123:this.nextChar();return h.LBRACE;case 125:this.nextChar();return h.RBRACE}var a=this.strBuf;a.length=0;a[0]=String.fromCharCode(r);for(;(r=this.nextChar())>=0&&(r>=65&&r<=90||r>=97&&r<=122);)a.push(String.fromCharCode(r));var i=a.join("");switch(i.toLowerCase()){case"if":return h.IF;case"ifelse":return h.IFELSE;default:return h.getOperator(i)}}},{key:"getNumber",value:function getNumber(){var t=this.currentChar,r=this.strBuf;r.length=0;r[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=48&&t<=57||45===t||46===t);)r.push(String.fromCharCode(t));var a=parseFloat(r.join(""));if(isNaN(a))throw new i.FormatError("Invalid floating point number: ".concat(a));return a}}]);return PostScriptLexer}();r.PostScriptLexer=d},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.bidi=function bidi(t,r,a){var h=!0,d=t.length;if(0===d||a)return createBidiText(t,h,a);c.length=d;u.length=d;var p,g,m=0;for(p=0;p<d;++p){c[p]=t.charAt(p);var y=t.charCodeAt(p),b="L";y<=255?b=o[y]:1424<=y&&y<=1524?b="R":1536<=y&&y<=1791?(b=l[255&y])||(0,i.warn)("Bidi: invalid Unicode character "+y.toString(16)):1792<=y&&y<=2220&&(b="AL");"R"!==b&&"AL"!==b&&"AN"!==b||m++;u[p]=b}if(0===m)return createBidiText(t,h=!0);if(-1===r)if(m/d<.3){h=!0;r=0}else{h=!1;r=1}var v=[];for(p=0;p<d;++p)v[p]=r;var S,k=isOdd(r)?"R":"L",w=k,C=w,_=w;for(p=0;p<d;++p)"NSM"===u[p]?u[p]=_:_=u[p];_=w;for(p=0;p<d;++p)"EN"===(S=u[p])?u[p]="AL"===_?"AN":"EN":"R"!==S&&"L"!==S&&"AL"!==S||(_=S);for(p=0;p<d;++p)"AL"===(S=u[p])&&(u[p]="R");for(p=1;p<d-1;++p){"ES"===u[p]&&"EN"===u[p-1]&&"EN"===u[p+1]&&(u[p]="EN");"CS"!==u[p]||"EN"!==u[p-1]&&"AN"!==u[p-1]||u[p+1]!==u[p-1]||(u[p]=u[p-1])}for(p=0;p<d;++p)if("EN"===u[p]){var x;for(x=p-1;x>=0&&"ET"===u[x];--x)u[x]="EN";for(x=p+1;x<d&&"ET"===u[x];++x)u[x]="EN"}for(p=0;p<d;++p)"WS"!==(S=u[p])&&"ES"!==S&&"ET"!==S&&"CS"!==S||(u[p]="ON");_=w;for(p=0;p<d;++p)"EN"===(S=u[p])?u[p]="L"===_?"L":"EN":"R"!==S&&"L"!==S||(_=S);for(p=0;p<d;++p)if("ON"===u[p]){var A=findUnequal(u,p+1,"ON"),T=w;p>0&&(T=u[p-1]);var P=C;A+1<d&&(P=u[A+1]);"L"!==T&&(T="R");"L"!==P&&(P="R");T===P&&setValues(u,p,A,T);p=A-1}for(p=0;p<d;++p)"ON"===u[p]&&(u[p]=k);for(p=0;p<d;++p){S=u[p];isEven(v[p])?"R"===S?v[p]+=1:"AN"!==S&&"EN"!==S||(v[p]+=2):"L"!==S&&"AN"!==S&&"EN"!==S||(v[p]+=1)}var R,I=-1,O=99;for(p=0,g=v.length;p<g;++p){R=v[p];I<R&&(I=R);O>R&&isOdd(R)&&(O=R)}for(R=I;R>=O;--R){var E=-1;for(p=0,g=v.length;p<g;++p)if(v[p]<R){if(E>=0){reverseValues(c,E,p);E=-1}}else E<0&&(E=p);E>=0&&reverseValues(c,E,v.length)}for(p=0,g=c.length;p<g;++p){var D=c[p];"<"!==D&&">"!==D||(c[p]="")}return createBidiText(c.join(""),h)};var i=a(4),o=["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"],l=["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 isOdd(t){return 0!=(1&t)}function isEven(t){return 0==(1&t)}function findUnequal(t,r,a){for(var i=r,o=t.length;i<o;++i)if(t[i]!==a)return i;return i}function setValues(t,r,a,i){for(var o=r;o<a;++o)t[o]=i}function reverseValues(t,r,a){for(var i=r,o=a-1;i<o;++i,--o){var l=t[i];t[i]=t[o];t[o]=l}}function createBidiText(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="ltr";a?i="ttb":r||(i="rtl");return{str:t,dir:i}}var c=[],u=[]},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getMetrics=void 0;var i=a(138),o=(0,i.getLookupTableFactory)((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Bold"]=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-BoldOblique"]=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Oblique"]=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t.Symbol=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.universal=713;t.numbersign=500;t.existential=549;t.percent=833;t.ampersand=778;t.suchthat=439;t.parenleft=333;t.parenright=333;t.asteriskmath=500;t.plus=549;t.comma=250;t.minus=549;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=549;t.equal=549;t.greater=549;t.question=444;t.congruent=549;t.Alpha=722;t.Beta=667;t.Chi=722;t.Delta=612;t.Epsilon=611;t.Phi=763;t.Gamma=603;t.Eta=722;t.Iota=333;t.theta1=631;t.Kappa=722;t.Lambda=686;t.Mu=889;t.Nu=722;t.Omicron=722;t.Pi=768;t.Theta=741;t.Rho=556;t.Sigma=592;t.Tau=611;t.Upsilon=690;t.sigma1=439;t.Omega=768;t.Xi=645;t.Psi=795;t.Zeta=611;t.bracketleft=333;t.therefore=863;t.bracketright=333;t.perpendicular=658;t.underscore=500;t.radicalex=500;t.alpha=631;t.beta=549;t.chi=549;t.delta=494;t.epsilon=439;t.phi=521;t.gamma=411;t.eta=603;t.iota=329;t.phi1=603;t.kappa=549;t.lambda=549;t.mu=576;t.nu=521;t.omicron=549;t.pi=549;t.theta=521;t.rho=549;t.sigma=603;t.tau=439;t.upsilon=576;t.omega1=713;t.omega=686;t.xi=493;t.psi=686;t.zeta=494;t.braceleft=480;t.bar=200;t.braceright=480;t.similar=549;t.Euro=750;t.Upsilon1=620;t.minute=247;t.lessequal=549;t.fraction=167;t.infinity=713;t.florin=500;t.club=753;t.diamond=753;t.heart=753;t.spade=753;t.arrowboth=1042;t.arrowleft=987;t.arrowup=603;t.arrowright=987;t.arrowdown=603;t.degree=400;t.plusminus=549;t.second=411;t.greaterequal=549;t.multiply=549;t.proportional=713;t.partialdiff=494;t.bullet=460;t.divide=549;t.notequal=549;t.equivalence=549;t.approxequal=549;t.ellipsis=1e3;t.arrowvertex=603;t.arrowhorizex=1e3;t.carriagereturn=658;t.aleph=823;t.Ifraktur=686;t.Rfraktur=795;t.weierstrass=987;t.circlemultiply=768;t.circleplus=768;t.emptyset=823;t.intersection=768;t.union=768;t.propersuperset=713;t.reflexsuperset=713;t.notsubset=713;t.propersubset=713;t.reflexsubset=713;t.element=713;t.notelement=713;t.angle=768;t.gradient=713;t.registerserif=790;t.copyrightserif=790;t.trademarkserif=890;t.product=823;t.radical=549;t.dotmath=250;t.logicalnot=713;t.logicaland=603;t.logicalor=603;t.arrowdblboth=1042;t.arrowdblleft=987;t.arrowdblup=603;t.arrowdblright=987;t.arrowdbldown=603;t.lozenge=494;t.angleleft=329;t.registersans=790;t.copyrightsans=790;t.trademarksans=786;t.summation=713;t.parenlefttp=384;t.parenleftex=384;t.parenleftbt=384;t.bracketlefttp=384;t.bracketleftex=384;t.bracketleftbt=384;t.bracelefttp=494;t.braceleftmid=494;t.braceleftbt=494;t.braceex=494;t.angleright=329;t.integral=274;t.integraltp=686;t.integralex=686;t.integralbt=686;t.parenrighttp=384;t.parenrightex=384;t.parenrightbt=384;t.bracketrighttp=384;t.bracketrightex=384;t.bracketrightbt=384;t.bracerighttp=494;t.bracerightmid=494;t.bracerightbt=494;t.apple=790}));t["Times-Roman"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=408;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=564;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=564;t.equal=564;t.greater=564;t.question=444;t.at=921;t.A=722;t.B=667;t.C=667;t.D=722;t.E=611;t.F=556;t.G=722;t.H=722;t.I=333;t.J=389;t.K=722;t.L=611;t.M=889;t.N=722;t.O=722;t.P=556;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=722;t.W=944;t.X=722;t.Y=722;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=469;t.underscore=500;t.quoteleft=333;t.a=444;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=500;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=500;t.o=500;t.p=500;t.q=500;t.r=333;t.s=389;t.t=278;t.u=500;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=480;t.bar=200;t.braceright=480;t.asciitilde=541;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=180;t.quotedblleft=444;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=453;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=444;t.quotedblright=444;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=444;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=889;t.ordfeminine=276;t.Lslash=611;t.Oslash=722;t.OE=889;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=444;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=722;t.divide=564;t.Yacute=722;t.Acircumflex=722;t.aacute=444;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=444;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=444;t.Ncommaaccent=722;t.lacute=278;t.agrave=444;t.Tcommaaccent=611;t.Cacute=667;t.atilde=444;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=444;t.Amacron=722;t.rcaron=333;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=556;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=588;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=722;t.Abreve=722;t.multiply=564;t.uacute=500;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=444;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=722;t.Iacute=333;t.plusminus=564;t.brokenbar=200;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=333;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=326;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=444;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=344;t.Kcommaaccent=722;t.Lacute=611;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=722;t.zdotaccent=444;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=500;t.minus=564;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=564;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Bold"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=1e3;t.ampersand=833;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=930;t.A=722;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=778;t.I=389;t.J=500;t.K=778;t.L=667;t.M=944;t.N=722;t.O=778;t.P=611;t.Q=778;t.R=722;t.S=556;t.T=667;t.U=722;t.V=722;t.W=1e3;t.X=722;t.Y=722;t.Z=667;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=581;t.underscore=500;t.quoteleft=333;t.a=500;t.b=556;t.c=444;t.d=556;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=333;t.k=556;t.l=278;t.m=833;t.n=556;t.o=500;t.p=556;t.q=556;t.r=444;t.s=389;t.t=333;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=394;t.bar=220;t.braceright=394;t.asciitilde=520;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=540;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=300;t.Lslash=667;t.Oslash=778;t.OE=1e3;t.ordmasculine=330;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=556;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=722;t.divide=570;t.Yacute=722;t.Acircumflex=722;t.aacute=500;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=667;t.Cacute=722;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=500;t.Amacron=722;t.rcaron=444;t.ccedilla=444;t.Zdotaccent=667;t.Thorn=611;t.Omacron=778;t.Racute=722;t.Sacute=556;t.dcaron=672;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=570;t.uacute=556;t.Tcaron=667;t.partialdiff=494;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=778;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=444;t.omacron=500;t.Zacute=667;t.Zcaron=667;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=416;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=778;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=300;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=556;t.threequarters=750;t.Scedilla=556;t.lcaron=394;t.Kcommaaccent=778;t.Lacute=667;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=667;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=778;t.degree=400;t.ograve=500;t.Ccaron=722;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=444;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=722;t.Lcommaaccent=667;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=444;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=556;t.minus=570;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=333;t.logicalnot=570;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-BoldItalic"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=389;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=832;t.A=667;t.B=667;t.C=667;t.D=722;t.E=667;t.F=667;t.G=722;t.H=778;t.I=389;t.J=500;t.K=667;t.L=611;t.M=889;t.N=722;t.O=722;t.P=611;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=667;t.W=889;t.X=667;t.Y=611;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=570;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=556;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=556;t.v=444;t.w=667;t.x=500;t.y=444;t.z=389;t.braceleft=348;t.bar=220;t.braceright=348;t.asciitilde=570;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=500;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=944;t.ordfeminine=266;t.Lslash=611;t.Oslash=722;t.OE=944;t.ordmasculine=300;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=611;t.divide=570;t.Yacute=611;t.Acircumflex=667;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=611;t.Cacute=667;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=556;t.acircumflex=500;t.Amacron=667;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=611;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=608;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=722;t.Agrave=667;t.Abreve=667;t.multiply=570;t.uacute=556;t.Tcaron=611;t.partialdiff=494;t.ydieresis=444;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=722;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=366;t.eogonek=444;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=576;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=382;t.Kcommaaccent=667;t.Lacute=611;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=722;t.zdotaccent=389;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=500;t.minus=606;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=606;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Italic"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=420;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=675;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=675;t.equal=675;t.greater=675;t.question=500;t.at=920;t.A=611;t.B=611;t.C=667;t.D=722;t.E=611;t.F=611;t.G=722;t.H=722;t.I=333;t.J=444;t.K=667;t.L=556;t.M=833;t.N=667;t.O=722;t.P=611;t.Q=722;t.R=611;t.S=500;t.T=556;t.U=722;t.V=611;t.W=833;t.X=611;t.Y=556;t.Z=556;t.bracketleft=389;t.backslash=278;t.bracketright=389;t.asciicircum=422;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=278;t.g=500;t.h=500;t.i=278;t.j=278;t.k=444;t.l=278;t.m=722;t.n=500;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=500;t.v=444;t.w=667;t.x=444;t.y=444;t.z=389;t.braceleft=400;t.bar=275;t.braceright=400;t.asciitilde=541;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=214;t.quotedblleft=556;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=523;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=556;t.quotedblright=556;t.guillemotright=500;t.ellipsis=889;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=889;t.AE=889;t.ordfeminine=276;t.Lslash=556;t.Oslash=722;t.OE=944;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=667;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=500;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=556;t.divide=675;t.Yacute=556;t.Acircumflex=611;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=500;t.Ncommaaccent=667;t.lacute=278;t.agrave=500;t.Tcommaaccent=556;t.Cacute=667;t.atilde=500;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=611;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=500;t.Amacron=611;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=556;t.Thorn=611;t.Omacron=722;t.Racute=611;t.Sacute=500;t.dcaron=544;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=611;t.Abreve=611;t.multiply=675;t.uacute=500;t.Tcaron=556;t.partialdiff=476;t.ydieresis=444;t.Nacute=667;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=667;t.Iacute=333;t.plusminus=675;t.brokenbar=275;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=389;t.omacron=500;t.Zacute=556;t.Zcaron=556;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=300;t.eogonek=444;t.Uogonek=722;t.Aacute=611;t.Adieresis=611;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=500;t.lcaron=300;t.Kcommaaccent=667;t.Lacute=556;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=500;t.Scommaaccent=500;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=667;t.otilde=500;t.Rcommaaccent=611;t.Lcommaaccent=556;t.Atilde=611;t.Aogonek=611;t.Aring=611;t.Otilde=722;t.zdotaccent=389;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=444;t.minus=675;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=675;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t.ZapfDingbats=(0,i.getLookupTableFactory)((function(t){t.space=278;t.a1=974;t.a2=961;t.a202=974;t.a3=980;t.a4=719;t.a5=789;t.a119=790;t.a118=791;t.a117=690;t.a11=960;t.a12=939;t.a13=549;t.a14=855;t.a15=911;t.a16=933;t.a105=911;t.a17=945;t.a18=974;t.a19=755;t.a20=846;t.a21=762;t.a22=761;t.a23=571;t.a24=677;t.a25=763;t.a26=760;t.a27=759;t.a28=754;t.a6=494;t.a7=552;t.a8=537;t.a9=577;t.a10=692;t.a29=786;t.a30=788;t.a31=788;t.a32=790;t.a33=793;t.a34=794;t.a35=816;t.a36=823;t.a37=789;t.a38=841;t.a39=823;t.a40=833;t.a41=816;t.a42=831;t.a43=923;t.a44=744;t.a45=723;t.a46=749;t.a47=790;t.a48=792;t.a49=695;t.a50=776;t.a51=768;t.a52=792;t.a53=759;t.a54=707;t.a55=708;t.a56=682;t.a57=701;t.a58=826;t.a59=815;t.a60=789;t.a61=789;t.a62=707;t.a63=687;t.a64=696;t.a65=689;t.a66=786;t.a67=787;t.a68=713;t.a69=791;t.a70=785;t.a71=791;t.a72=873;t.a73=761;t.a74=762;t.a203=762;t.a75=759;t.a204=759;t.a76=892;t.a77=892;t.a78=788;t.a79=784;t.a81=438;t.a82=138;t.a83=277;t.a84=415;t.a97=392;t.a98=392;t.a99=668;t.a100=668;t.a89=390;t.a90=390;t.a93=317;t.a94=317;t.a91=276;t.a92=276;t.a205=509;t.a85=509;t.a206=410;t.a86=410;t.a87=234;t.a88=234;t.a95=334;t.a96=334;t.a101=732;t.a102=544;t.a103=544;t.a104=910;t.a106=667;t.a107=760;t.a108=760;t.a112=776;t.a111=595;t.a110=694;t.a109=626;t.a120=788;t.a121=788;t.a122=788;t.a123=788;t.a124=788;t.a125=788;t.a126=788;t.a127=788;t.a128=788;t.a129=788;t.a130=788;t.a131=788;t.a132=788;t.a133=788;t.a134=788;t.a135=788;t.a136=788;t.a137=788;t.a138=788;t.a139=788;t.a140=788;t.a141=788;t.a142=788;t.a143=788;t.a144=788;t.a145=788;t.a146=788;t.a147=788;t.a148=788;t.a149=788;t.a150=788;t.a151=788;t.a152=788;t.a153=788;t.a154=788;t.a155=788;t.a156=788;t.a157=788;t.a158=788;t.a159=788;t.a160=894;t.a161=838;t.a163=1016;t.a164=458;t.a196=748;t.a165=924;t.a192=748;t.a166=918;t.a167=927;t.a168=928;t.a169=928;t.a170=834;t.a171=873;t.a172=828;t.a173=924;t.a162=924;t.a174=917;t.a175=930;t.a176=931;t.a177=463;t.a178=883;t.a179=836;t.a193=836;t.a180=867;t.a199=867;t.a181=696;t.a200=696;t.a182=874;t.a201=874;t.a183=760;t.a184=946;t.a197=771;t.a185=865;t.a194=771;t.a198=888;t.a186=967;t.a195=888;t.a187=831;t.a188=873;t.a189=927;t.a190=970;t.a191=918}))}));r.getMetrics=o},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MurmurHash3_64=void 0;var i=a(4);function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}var o=3285377520,l=4294901760,c=65535,u=function(){function MurmurHash3_64(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MurmurHash3_64);this.h1=t?4294967295&t:o;this.h2=t?4294967295&t:o}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(MurmurHash3_64,[{key:"update",value:function update(t){var r,a;if((0,i.isString)(t)){r=new Uint8Array(2*t.length);a=0;for(var o=0,u=t.length;o<u;o++){var h=t.charCodeAt(o);if(h<=255)r[a++]=h;else{r[a++]=h>>>8;r[a++]=255&h}}}else{if(!(0,i.isArrayBuffer)(t))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");a=(r=t.slice()).byteLength}for(var d=a>>2,p=a-4*d,g=new Uint32Array(r.buffer,0,d),m=0,y=0,b=this.h1,v=this.h2,S=3432918353,k=461845907,w=11601,C=13715,_=0;_<d;_++)1&_?b=5*(b=(b^=m=(m=(m=(m=g[_])*S&l|m*w&c)<<15|m>>>17)*k&l|m*C&c)<<13|b>>>19)+3864292196:v=5*(v=(v^=y=(y=(y=(y=g[_])*S&l|y*w&c)<<15|y>>>17)*k&l|y*C&c)<<13|v>>>19)+3864292196;m=0;switch(p){case 3:m^=r[4*d+2]<<16;case 2:m^=r[4*d+1]<<8;case 1:m=(m=(m=(m^=r[4*d])*S&l|m*w&c)<<15|m>>>17)*k&l|m*C&c;1&d?b^=m:v^=m}this.h1=b;this.h2=v}},{key:"hexdigest",value:function hexdigest(){var t=this.h1,r=this.h2;t=3981806797*(t^=r>>>1)&l|36045*t&c;t=444984403*(t^=(r=4283543511*r&l|(2950163797*(r<<16|t>>>16)&l)>>>16)>>>1)&l|60499*t&c;var a=((t^=(r=3301882366*r&l|(3120437893*(r<<16|t>>>16)&l)>>>16)>>>1)>>>0).toString(16),i=(r>>>0).toString(16);return a.padStart(8,"0")+i.padStart(8,"0")}}]);return MurmurHash3_64}();r.MurmurHash3_64=u},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.OperatorList=void 0;var i=a(4);function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}var o=function QueueOptimizerClosure(){function addState(t,r,a,i,o){for(var l=t,c=0,u=r.length-1;c<u;c++){var h=r[c];l=l[h]||(l[h]=[])}l[r[r.length-1]]={checkFn:a,iterateFn:i,processFn:o}}var t=[];addState(t,[i.OPS.save,i.OPS.transform,i.OPS.paintInlineImageXObject,i.OPS.restore],null,(function iterateInlineImageGroup(t,r){var a=t.fnArray,o=(r-(t.iCurr-3))%4;switch(o){case 0:return a[r]===i.OPS.save;case 1:return a[r]===i.OPS.transform;case 2:return a[r]===i.OPS.paintInlineImageXObject;case 3:return a[r]===i.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(o))}),(function foundInlineImageGroup(t,r){var a=t.fnArray,o=t.argsArray,l=t.iCurr,c=l-3,u=l-2,h=l-1,d=Math.min(Math.floor((r-c)/4),200);if(d<10)return r-(r-c)%4;var p,g=0,m=[],y=0,b=1,v=1;for(p=0;p<d;p++){var S=o[u+(p<<2)],k=o[h+(p<<2)][0];if(b+k.width>1e3){g=Math.max(g,b);v+=y+2;b=0;y=0}m.push({transform:S,x:b,y:v,w:k.width,h:k.height});b+=k.width+2;y=Math.max(y,k.height)}var w=Math.max(g,b)+1,C=v+y+1,_=new Uint8ClampedArray(w*C*4),x=w<<2;for(p=0;p<d;p++){var A=o[h+(p<<2)][0].data,T=m[p].w<<2,P=0,R=m[p].x+m[p].y*w<<2;_.set(A.subarray(0,T),R-x);for(var I=0,O=m[p].h;I<O;I++){_.set(A.subarray(P,P+T),R);P+=T;R+=x}_.set(A.subarray(P-T,P),R);for(;R>=0;){A[R-4]=A[R];A[R-3]=A[R+1];A[R-2]=A[R+2];A[R-1]=A[R+3];A[R+T]=A[R+T-4];A[R+T+1]=A[R+T-3];A[R+T+2]=A[R+T-2];A[R+T+3]=A[R+T-1];R-=x}}a.splice(c,4*d,i.OPS.paintInlineImageXObjectGroup);o.splice(c,4*d,[{width:w,height:C,kind:i.ImageKind.RGBA_32BPP,data:_},m]);return c+1}));addState(t,[i.OPS.save,i.OPS.transform,i.OPS.paintImageMaskXObject,i.OPS.restore],null,(function iterateImageMaskGroup(t,r){var a=t.fnArray,o=(r-(t.iCurr-3))%4;switch(o){case 0:return a[r]===i.OPS.save;case 1:return a[r]===i.OPS.transform;case 2:return a[r]===i.OPS.paintImageMaskXObject;case 3:return a[r]===i.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(o))}),(function foundImageMaskGroup(t,r){var a,o=t.fnArray,l=t.argsArray,c=t.iCurr,u=c-3,h=c-2,d=c-1,p=Math.floor((r-u)/4);if((p=function handlePaintSolidColorImageMask(t,r,a,o){for(var l=t+2,c=0;c<r;c++){var u=o[l+4*c],h=1===u.length&&u[0];if(!h||1!==h.width||1!==h.height||h.data.length&&(1!==h.data.length||0!==h.data[0]))break;a[l+4*c]=i.OPS.paintSolidColorImageMask}return r-c}(u,p,o,l))<10)return r-(r-u)%4;var g,m,y=!1,b=l[d][0],v=l[h][0],S=l[h][1],k=l[h][2],w=l[h][3];if(S===k){y=!0;g=h+4;var C=d+4;for(a=1;a<p;a++,g+=4,C+=4){m=l[g];if(l[C][0]!==b||m[0]!==v||m[1]!==S||m[2]!==k||m[3]!==w){a<10?y=!1:p=a;break}}}if(y){p=Math.min(p,1e3);var _=new Float32Array(2*p);g=h;for(a=0;a<p;a++,g+=4){m=l[g];_[a<<1]=m[4];_[1+(a<<1)]=m[5]}o.splice(u,4*p,i.OPS.paintImageMaskXObjectRepeat);l.splice(u,4*p,[b,v,S,k,w,_])}else{p=Math.min(p,100);var x=[];for(a=0;a<p;a++){m=l[h+(a<<2)];var A=l[d+(a<<2)][0];x.push({data:A.data,width:A.width,height:A.height,transform:m})}o.splice(u,4*p,i.OPS.paintImageMaskXObjectGroup);l.splice(u,4*p,[x])}return u+1}));addState(t,[i.OPS.save,i.OPS.transform,i.OPS.paintImageXObject,i.OPS.restore],(function(t){var r=t.argsArray,a=t.iCurr-2;return 0===r[a][1]&&0===r[a][2]}),(function iterateImageGroup(t,r){var a=t.fnArray,o=t.argsArray,l=(r-(t.iCurr-3))%4;switch(l){case 0:return a[r]===i.OPS.save;case 1:if(a[r]!==i.OPS.transform)return!1;var c=t.iCurr-2,u=o[c][0],h=o[c][3];return o[r][0]===u&&0===o[r][1]&&0===o[r][2]&&o[r][3]===h;case 2:if(a[r]!==i.OPS.paintImageXObject)return!1;var d=o[t.iCurr-1][0];return o[r][0]===d;case 3:return a[r]===i.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(l))}),(function(t,r){var a=t.fnArray,o=t.argsArray,l=t.iCurr,c=l-3,u=l-2,h=o[l-1][0],d=o[u][0],p=o[u][3],g=Math.min(Math.floor((r-c)/4),1e3);if(g<3)return r-(r-c)%4;for(var m=new Float32Array(2*g),y=u,b=0;b<g;b++,y+=4){var v=o[y];m[b<<1]=v[4];m[1+(b<<1)]=v[5]}var S=[h,d,p,m];a.splice(c,4*g,i.OPS.paintImageXObjectRepeat);o.splice(c,4*g,S);return c+1}));addState(t,[i.OPS.beginText,i.OPS.setFont,i.OPS.setTextMatrix,i.OPS.showText,i.OPS.endText],null,(function iterateShowTextGroup(t,r){var a=t.fnArray,o=t.argsArray,l=(r-(t.iCurr-4))%5;switch(l){case 0:return a[r]===i.OPS.beginText;case 1:return a[r]===i.OPS.setFont;case 2:return a[r]===i.OPS.setTextMatrix;case 3:if(a[r]!==i.OPS.showText)return!1;var c=t.iCurr-3,u=o[c][0],h=o[c][1];return o[r][0]===u&&o[r][1]===h;case 4:return a[r]===i.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(l))}),(function(t,r){var a=t.fnArray,i=t.argsArray,o=t.iCurr,l=o-4,c=o-3,u=o-2,h=o-1,d=o,p=i[c][0],g=i[c][1],m=Math.min(Math.floor((r-l)/5),1e3);if(m<3)return r-(r-l)%5;var y=l;if(l>=4&&a[l-4]===a[c]&&a[l-3]===a[u]&&a[l-2]===a[h]&&a[l-1]===a[d]&&i[l-4][0]===p&&i[l-4][1]===g){m++;y-=5}for(var b=y+4,v=1;v<m;v++){a.splice(b,3);i.splice(b,3);b+=2}return b+1}));function QueueOptimizer(t){this.queue=t;this.state=null;this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray};this.match=null;this.lastProcessed=0}QueueOptimizer.prototype={_optimize:function _optimize(){var r=this.queue.fnArray,a=this.lastProcessed,i=r.length,o=this.state,l=this.match;if(o||l||a+1!==i||t[r[a]]){for(var c=this.context;a<i;){if(l){if((0,l.iterateFn)(c,a)){a++;continue}a=(0,l.processFn)(c,a+1);l=null;o=null;if(a>=(i=r.length))break}if((o=(o||t)[r[a]])&&!Array.isArray(o)){c.iCurr=a;a++;if(!o.checkFn||(0,o.checkFn)(c)){l=o;o=null}else o=null}else a++}this.state=o;this.match=l;this.lastProcessed=a}else this.lastProcessed=i},push:function push(t,r){this.queue.fnArray.push(t);this.queue.argsArray.push(r);this._optimize()},flush:function flush(){for(;this.match;){var t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t);this.match=null;this.state=null;this._optimize()}},reset:function reset(){this.state=null;this.match=null;this.lastProcessed=0}};return QueueOptimizer}(),l=function NullOptimizerClosure(){function NullOptimizer(t){this.queue=t}NullOptimizer.prototype={push:function push(t,r){this.queue.fnArray.push(t);this.queue.argsArray.push(r)},flush:function flush(){},reset:function reset(){}};return NullOptimizer}(),c=function OperatorListClosure(){function OperatorList(t,r){this._streamSink=r;this.fnArray=[];this.argsArray=[];this.optimizer=r&&"oplist"!==t?new o(this):new l(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=r?null:Promise.resolve()}OperatorList.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function addOp(t,r){this.optimizer.push(t,r);this.weight++;this._streamSink&&(this.weight>=1e3||this.weight>=995&&(t===i.OPS.restore||t===i.OPS.endText))&&this.flush()},addDependency:function addDependency(t){if(!this.dependencies.has(t)){this.dependencies.add(t);this.addOp(i.OPS.dependency,[t])}},addDependencies:function addDependencies(t){var r,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;this.addDependency(i)}}catch(t){a.e(t)}finally{a.f()}},addOpList:function addOpList(t){if(t instanceof OperatorList){var r,a=_createForOfIteratorHelper(t.dependencies);try{for(a.s();!(r=a.n()).done;){var o=r.value;this.dependencies.add(o)}}catch(t){a.e(t)}finally{a.f()}for(var l=0,c=t.length;l<c;l++)this.addOp(t.fnArray[l],t.argsArray[l])}else(0,i.warn)('addOpList - ignoring invalid "opList" parameter.')},getIR:function getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){for(var t=[],r=this.fnArray,a=this.argsArray,o=this.length,l=0;l<o;l++)switch(r[l]){case i.OPS.paintInlineImageXObject:case i.OPS.paintInlineImageXObjectGroup:case i.OPS.paintImageMaskXObject:var c=a[l][0];c.cached||t.push(c.data.buffer)}return t},flush:function flush(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var r=this.length;this._totalLength+=r;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,length:r},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}};return OperatorList}();r.OperatorList=c},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFImage=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4),l=a(135),c=a(153),u=a(142),h=a(148),d=a(151);function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function decodeAndClamp(t,r,a,i){(t=r+t*a)<0?t=0:t>i&&(t=i);return t}function resizeImageMask(t,r,a,i,o,l){var c,u=o*l;c=r<=8?new Uint8Array(u):r<=16?new Uint16Array(u):new Uint32Array(u);var h,d,p,g,m=a/o,y=i/l,b=0,v=new Uint16Array(o),S=a;for(h=0;h<o;h++)v[h]=Math.floor(h*m);for(h=0;h<l;h++){p=Math.floor(h*y)*S;for(d=0;d<o;d++){g=p+v[d];c[b++]=t[g]}}return c}var p=function(){function PDFImage(t){var r=t.xref,a=t.res,i=t.image,u=t.isInline,h=void 0!==u&&u,p=t.smask,g=void 0===p?null:p,m=t.mask,y=void 0===m?null:m,b=t.isMask,v=void 0!==b&&b,S=t.pdfFunctionFactory,k=t.localColorSpaceCache;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PDFImage);this.image=i;var w=i.dict,C=w.get("Filter");if((0,l.isName)(C))switch(C.name){case"JPXDecode":var _=new d.JpxImage;_.parseImageProperties(i.stream);i.stream.reset();i.width=_.width;i.height=_.height;i.bitsPerComponent=_.bitsPerComponent;i.numComps=_.componentsCount;break;case"JBIG2Decode":i.bitsPerComponent=1;i.numComps=1}var x=w.get("Width","W"),A=w.get("Height","H");if(Number.isInteger(i.width)&&i.width>0&&Number.isInteger(i.height)&&i.height>0&&(i.width!==x||i.height!==A)){(0,o.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");x=i.width;A=i.height}if(x<1||A<1)throw new o.FormatError("Invalid image width: ".concat(x," or height: ").concat(A));this.width=x;this.height=A;this.interpolate=w.get("Interpolate","I")||!1;this.imageMask=w.get("ImageMask","IM")||!1;this.matte=w.get("Matte")||!1;var T=i.bitsPerComponent;if(!T&&!(T=w.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new o.FormatError("Bits per component missing in image: ".concat(this.imageMask));T=1}this.bpc=T;if(!this.imageMask){var P=w.getRaw("ColorSpace")||w.getRaw("CS");if(!P){(0,o.info)("JPX images (which do not require color spaces)");switch(i.numComps){case 1:P=l.Name.get("DeviceGray");break;case 3:P=l.Name.get("DeviceRGB");break;case 4:P=l.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(i.numComps," ")+"color components not supported.")}}this.colorSpace=c.ColorSpace.parse({cs:P,xref:r,resources:h?a:null,pdfFunctionFactory:S,localColorSpaceCache:k});this.numComps=this.colorSpace.numComps}this.decode=w.getArray("Decode","D");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,T)||v&&!c.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var R=(1<<T)-1;this.decodeCoefficients=[];this.decodeAddends=[];for(var I=this.colorSpace&&"Indexed"===this.colorSpace.name,O=0,E=0;O<this.decode.length;O+=2,++E){var D=this.decode[O],B=this.decode[O+1];this.decodeCoefficients[E]=I?(B-D)/R:B-D;this.decodeAddends[E]=I?D:R*D}}if(g)this.smask=new PDFImage({xref:r,res:a,image:g,isInline:h,pdfFunctionFactory:S,localColorSpaceCache:k});else if(y)if((0,l.isStream)(y)){y.dict.get("ImageMask","IM")?this.mask=new PDFImage({xref:r,res:a,image:y,isInline:h,isMask:!0,pdfFunctionFactory:S,localColorSpaceCache:k}):(0,o.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=y}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(PDFImage,[{key:"decodeBuffer",value:function decodeBuffer(t){var r,a,i=this.bpc,o=this.numComps,l=this.decodeAddends,c=this.decodeCoefficients,u=(1<<i)-1;if(1!==i){var h=0;for(r=0,a=this.width*this.height;r<a;r++)for(var d=0;d<o;d++){t[h]=decodeAndClamp(t[h],l[d],c[d],u);h++}}else for(r=0,a=t.length;r<a;r++)t[r]=+!t[r]}},{key:"getComponents",value:function getComponents(t){var r=this.bpc;if(8===r)return t;var a,i=this.width,o=this.height,l=this.numComps,c=i*o*l,u=0;a=r<=8?new Uint8Array(c):r<=16?new Uint16Array(c):new Uint32Array(c);var h,d,p=i*l,g=(1<<r)-1,m=0;if(1===r)for(var y,b,v,S=0;S<o;S++){b=m+(-8&p);v=m+p;for(;m<b;){d=t[u++];a[m]=d>>7&1;a[m+1]=d>>6&1;a[m+2]=d>>5&1;a[m+3]=d>>4&1;a[m+4]=d>>3&1;a[m+5]=d>>2&1;a[m+6]=d>>1&1;a[m+7]=1&d;m+=8}if(m<v){d=t[u++];y=128;for(;m<v;){a[m++]=+!!(d&y);y>>=1}}}else{var k=0;d=0;for(m=0,h=c;m<h;++m){if(m%p==0){d=0;k=0}for(;k<r;){d=d<<8|t[u++];k+=8}var w=k-r,C=d>>w;C<0?C=0:C>g&&(C=g);a[m]=C;d&=(1<<w)-1;k=w}}return a}},{key:"fillOpacity",value:function fillOpacity(t,r,a,i,l){var c,u,h,d,p,g,m=this.smask,y=this.mask;if(m){u=m.width;h=m.height;c=new Uint8ClampedArray(u*h);m.fillGrayBuffer(c);u===r&&h===a||(c=resizeImageMask(c,m.bpc,u,h,r,a))}else if(y)if(y instanceof PDFImage){u=y.width;h=y.height;c=new Uint8ClampedArray(u*h);y.numComps=1;y.fillGrayBuffer(c);for(d=0,p=u*h;d<p;++d)c[d]=255-c[d];u===r&&h===a||(c=resizeImageMask(c,y.bpc,u,h,r,a))}else{if(!Array.isArray(y))throw new o.FormatError("Unknown mask format.");c=new Uint8ClampedArray(r*a);var b=this.numComps;for(d=0,p=r*a;d<p;++d){var v=0,S=d*b;for(g=0;g<b;++g){var k=l[S+g],w=2*g;if(k<y[w]||k>y[w+1]){v=255;break}}c[d]=v}}if(c)for(d=0,g=3,p=r*i;d<p;++d,g+=4)t[g]=c[d];else for(d=0,g=3,p=r*i;d<p;++d,g+=4)t[g]=255}},{key:"undoPreblend",value:function undoPreblend(t,r,a){var i=this.smask&&this.smask.matte;if(i)for(var o=this.colorSpace.getRgb(i,0),l=o[0],c=o[1],u=o[2],h=r*a*4,d=0;d<h;d+=4){var p=t[d+3];if(0!==p){var g=255/p;t[d]=(t[d]-l)*g+l;t[d+1]=(t[d+1]-c)*g+c;t[d+2]=(t[d+2]-u)*g+u}else{t[d]=255;t[d+1]=255;t[d+2]=255}}}},{key:"createImageData",value:function createImageData(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=this.drawWidth,i=this.drawHeight,l={width:a,height:i,kind:0,data:null},c=this.numComps,d=this.width,p=this.height,g=this.bpc,m=d*c*g+7>>3;if(!r){var y;"DeviceGray"===this.colorSpace.name&&1===g?y=o.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==g||this.needsDecode||(y=o.ImageKind.RGB_24BPP);if(y&&!this.smask&&!this.mask&&a===d&&i===p){l.kind=y;t=this.getImageBytes(p*m);if(this.image instanceof u.DecodeStream)l.data=t;else{var b=new Uint8ClampedArray(t.length);b.set(t);l.data=b}if(this.needsDecode){(0,o.assert)(y===o.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var v=l.data,S=0,k=v.length;S<k;S++)v[S]^=255}return l}if(this.image instanceof h.JpegStream&&!this.smask&&!this.mask){var w=p*m;switch(this.colorSpace.name){case"DeviceGray":w*=3;case"DeviceRGB":case"DeviceCMYK":l.kind=o.ImageKind.RGB_24BPP;l.data=this.getImageBytes(w,a,i,!0);return l}}}var C,_,x=0|(t=this.getImageBytes(p*m)).length/m*i/p,A=this.getComponents(t);if(r||this.smask||this.mask){l.kind=o.ImageKind.RGBA_32BPP;l.data=new Uint8ClampedArray(a*i*4);C=1;_=!0;this.fillOpacity(l.data,a,i,x,A)}else{l.kind=o.ImageKind.RGB_24BPP;l.data=new Uint8ClampedArray(a*i*3);C=0;_=!1}this.needsDecode&&this.decodeBuffer(A);this.colorSpace.fillRgb(l.data,d,p,a,i,x,g,A,C);_&&this.undoPreblend(l.data,a,x);return l}},{key:"fillGrayBuffer",value:function fillGrayBuffer(t){var r=this.numComps;if(1!==r)throw new o.FormatError("Reading gray scale from a color image: ".concat(r));var a,i,l=this.width,c=this.height,u=this.bpc,h=l*r*u+7>>3,d=this.getImageBytes(c*h),p=this.getComponents(d);if(1!==u){this.needsDecode&&this.decodeBuffer(p);i=l*c;var g=255/((1<<u)-1);for(a=0;a<i;++a)t[a]=g*p[a]}else{i=l*c;if(this.needsDecode)for(a=0;a<i;++a)t[a]=p[a]-1&255;else for(a=0;a<i;++a)t[a]=255&-p[a]}}},{key:"getImageBytes",value:function getImageBytes(t,r,a){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.image.reset();this.image.drawWidth=r||this.width;this.image.drawHeight=a||this.height;this.image.forceRGB=!!i;return this.image.getBytes(t,!0)}},{key:"drawWidth",get:function get(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}},{key:"drawHeight",get:function get(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}}],[{key:"buildImage",value:(t=function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}(i.default.mark((function _callee(t){var r,a,c,u,h,d,p,g,m,y,b,v;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:r=t.xref,a=t.res,c=t.image,u=t.isInline,h=void 0!==u&&u,d=t.pdfFunctionFactory,p=t.localColorSpaceCache;g=c;m=null;y=null;b=c.dict.get("SMask");v=c.dict.get("Mask");b?m=b:v&&((0,l.isStream)(v)||Array.isArray(v)?y=v:(0,o.warn)("Unsupported mask format."));return i.abrupt("return",new PDFImage({xref:r,res:a,image:g,isInline:h,smask:m,mask:y,pdfFunctionFactory:d,localColorSpaceCache:p}));case 8:case"end":return i.stop()}}),_callee)}))),function buildImage(r){return t.apply(this,arguments)})},{key:"createMask",value:function createMask(t){var r,a,i=t.imgArray,o=t.width,l=t.height,c=t.imageIsFromDecodeStream,u=t.inverseDecode,h=(o+7>>3)*l,d=i.byteLength;if(!c||u&&!(h===d))if(u){(r=new Uint8ClampedArray(h)).set(i);for(a=d;a<h;a++)r[a]=255}else(r=new Uint8ClampedArray(d)).set(i);else r=i;if(u)for(a=0;a<d;a++)r[a]^=255;return{data:r,width:o,height:l}}}]);var t;return PDFImage}();r.PDFImage=p},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.incrementalUpdate=function incrementalUpdate(t){var r=t.originalData,a=t.xrefInfo,h=t.newRefs,d=t.xref,p=void 0===d?null:d,g=t.datasetsRef;!function updateXFA(t,r,a){if(null===t||null===a)return;var o,u=a.fetchIfRef(t),h=(0,i.bytesToString)(u.getBytes()),d=new c.SimpleXMLParser({hasAttributes:!0}).parseFromString(h),p=_createForOfIteratorHelper(r);try{for(p.s();!(o=p.n()).done;){var g=o.value.xfa;if(g){var m=g.path,y=g.value;if(m){var b=d.documentElement.searchNode((0,l.parseXFAPath)(m),0);b?b.childNodes=[new c.SimpleDOMNode("#text",y)]:(0,i.warn)("Node not found for path: ".concat(m))}}}}catch(t){p.e(t)}finally{p.f()}var v=[];d.documentElement.dump(v);var S=v.join(""),k=a.encrypt;if(k){S=k.createCipherTransform(t.num,t.gen).encryptString(S)}var w="".concat(t.num," ").concat(t.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(S.length,">>\nstream\n")+S+"\nendstream\nendobj\n";r.push({ref:t,data:w})}(void 0===g?null:g,h,p);var m,y,b=new o.Dict(null),v=a.newRef,S=r[r.length-1];if(10===S||13===S){m=[];y=r.length}else{m=["\n"];y=r.length+1}b.set("Size",v.num+1);b.set("Prev",a.startXRef);b.set("Type",o.Name.get("XRef"));null!==a.rootRef&&b.set("Root",a.rootRef);null!==a.infoRef&&b.set("Info",a.infoRef);null!==a.encrypt&&b.set("Encrypt",a.encrypt);h.push({ref:v,data:""});h=h.sort((function(t,r){return t.ref.num-r.ref.num}));var k,w=[[0,1,65535]],C=[0,1],_=0,x=_createForOfIteratorHelper(h);try{for(x.s();!(k=x.n()).done;){var A=k.value,T=A.ref,P=A.data;_=Math.max(_,y);w.push([1,y,Math.min(T.gen,65535)]);y+=P.length;C.push(T.num);C.push(1);m.push(P)}}catch(t){x.e(t)}finally{x.f()}b.set("Index",C);if(0!==a.fileIds.length){var R=function computeMD5(t,r){for(var a=Math.floor(Date.now()/1e3),o=r.filename||"",l=[a.toString(),o,t.toString()],c=l.reduce((function(t,r){return t+r.length}),0),h=0,d=Object.values(r.info);h<d.length;h++){var p=d[h];l.push(p);c+=p.length}for(var g=new Uint8Array(c),m=0,y=0,b=l;y<b.length;y++){var v=b[y];writeString(v,m,g);m+=v.length}return(0,i.bytesToString)((0,u.calculateMD5)(g))}(y,a);b.set("ID",[a.fileIds[0],R])}var I=[1,Math.ceil(Math.log2(_)/8),2],O=(I[0]+I[1]+I[2])*w.length;b.set("W",I);b.set("Length",O);m.push("".concat(v.num," ").concat(v.gen," obj\n"));writeDict(b,m,null);m.push(" stream\n");var E=m.reduce((function(t,r){return t+r.length}),0),D="\nendstream\nendobj\nstartxref\n".concat(y,"\n%%EOF\n"),B=new Uint8Array(r.length+E+O+D.length);B.set(r);var M,L=r.length,N=_createForOfIteratorHelper(m);try{for(N.s();!(M=N.n()).done;){var j=M.value;writeString(j,L,B);L+=j.length}}catch(t){N.e(t)}finally{N.f()}for(var U=0,q=w;U<q.length;U++){var W=(V=q[U],X=3,function _arrayWithHoles(t){if(Array.isArray(t))return t}(V)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(V,X)||_unsupportedIterableToArray(V,X)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),z=W[0],G=W[1],H=W[2];L=writeInt(z,I[0],L,B);L=writeInt(G,I[1],L,B);L=writeInt(H,I[2],L,B)}var V,X;writeString(D,L,B);return B};r.writeDict=writeDict;var i=a(4),o=a(135),l=a(138),c=a(177),u=a(152);function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function writeDict(t,r,a){r.push("<<");var i,o=_createForOfIteratorHelper(t.getKeys());try{for(o.s();!(i=o.n()).done;){var c=i.value;r.push(" /".concat((0,l.escapePDFName)(c)," "));writeValue(t.getRaw(c),r,a)}}catch(t){o.e(t)}finally{o.f()}r.push(">>")}function writeValue(t,r,a){if((0,o.isName)(t))r.push("/".concat((0,l.escapePDFName)(t.name)));else if((0,o.isRef)(t))r.push("".concat(t.num," ").concat(t.gen," R"));else if(Array.isArray(t))!function writeArray(t,r,a){r.push("[");var i,o=!0,l=_createForOfIteratorHelper(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;o?o=!1:r.push(" ");writeValue(c,r,a)}}catch(t){l.e(t)}finally{l.f()}r.push("]")}(t,r,a);else if("string"==typeof t){null!==a&&(t=a.encryptString(t));r.push("(".concat((0,i.escapeString)(t),")"))}else"number"==typeof t?r.push(function numberToString(t){if(Number.isInteger(t))return t.toString();var r=Math.round(100*t);return r%100==0?(r/100).toString():r%10==0?t.toFixed(1):t.toFixed(2)}(t)):(0,o.isDict)(t)?writeDict(t,r,a):(0,o.isStream)(t)&&function writeStream(t,r,a){writeDict(t.dict,r,a);r.push(" stream\n");var o=(0,i.bytesToString)(t.getBytes());null!==a&&(o=a.encryptString(o));r.push(o);r.push("\nendstream\n")}(t,r,a)}function writeInt(t,r,a,i){for(var o=r+a-1;o>a-1;o--){i[o]=255&t;t>>=8}return a+r}function writeString(t,r,a){for(var i=0,o=t.length;i<o;i++)a[r+i]=255&t.charCodeAt(i)}},(t,r,a)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.SimpleXMLParser=r.SimpleDOMNode=void 0;var i=a(4);function _get(t,r,a){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,a){var i=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(a):o.value}})(t,r,a||t)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,l=void 0;try{for(var c,u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){a.push(c.value);if(r&&a.length===r)break}}catch(t){o=!0;l=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw l}}return a}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){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 _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var o=0,l=-2,c=-3,u=-4,h=-5,d=-6,p=-9;function isWhitespace(t,r){var a=t[r];return" "===a||"\n"===a||"\r"===a||"\t"===a}var g=function(){function XMLParserBase(){_classCallCheck(this,XMLParserBase)}_createClass(XMLParserBase,[{key:"_resolveEntities",value:function _resolveEntities(t){var r=this;return t.replace(/&([^;]+);/g,(function(t,a){if("#x"===a.substring(0,2))return String.fromCodePoint(parseInt(a.substring(2),16));if("#"===a.substring(0,1))return String.fromCodePoint(parseInt(a.substring(1),10));switch(a){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return r.onResolveEntity(a)}))}},{key:"_parseContent",value:function _parseContent(t,r){var a=[],i=r;function skipWs(){for(;i<t.length&&isWhitespace(t,i);)++i}for(;i<t.length&&!isWhitespace(t,i)&&">"!==t[i]&&"/"!==t[i];)++i;var o=t.substring(r,i);skipWs();for(;i<t.length&&">"!==t[i]&&"/"!==t[i]&&"?"!==t[i];){skipWs();for(var l,c="";i<t.length&&!isWhitespace(t,i)&&"="!==t[i];){c+=t[i];++i}skipWs();if("="!==t[i])return null;++i;skipWs();var u=t[i];if('"'!==u&&"'"!==u)return null;var h=t.indexOf(u,++i);if(h<0)return null;l=t.substring(i,h);a.push({name:c,value:this._resolveEntities(l)});i=h+1;skipWs()}return{name:o,attributes:a,parsed:i-r}}},{key:"_parseProcessingInstruction",value:function _parseProcessingInstruction(t,r){var a=r;for(;a<t.length&&!isWhitespace(t,a)&&">"!==t[a]&&"/"!==t[a];)++a;var i=t.substring(r,a);!function skipWs(){for(;a<t.length&&isWhitespace(t,a);)++a}();for(var o=a;a<t.length&&("?"!==t[a]||">"!==t[a+1]);)++a;return{name:i,value:t.substring(o,a),parsed:a-r}}},{key:"parseXml",value:function parseXml(t){for(var r=0;r<t.length;){var a=r;if("<"===t[r]){var i=void 0;switch(t[++a]){case"/":++a;if((i=t.indexOf(">",a))<0){this.onError(p);return}this.onEndElement(t.substring(a,i));a=i+1;break;case"?":++a;var o=this._parseProcessingInstruction(t,a);if("?>"!==t.substring(a+o.parsed,a+o.parsed+2)){this.onError(c);return}this.onPi(o.name,o.value);a+=o.parsed+2;break;case"!":if("--"===t.substring(a+1,a+3)){if((i=t.indexOf("--\x3e",a+3))<0){this.onError(h);return}this.onComment(t.substring(a+3,i));a=i+3}else if("[CDATA["===t.substring(a+1,a+8)){if((i=t.indexOf("]]>",a+8))<0){this.onError(l);return}this.onCdata(t.substring(a+8,i));a=i+3}else{if("DOCTYPE"!==t.substring(a+1,a+8)){this.onError(d);return}var g=t.indexOf("[",a+8),m=!1;if((i=t.indexOf(">",a+8))<0){this.onError(u);return}if(g>0&&i>g){if((i=t.indexOf("]>",a+8))<0){this.onError(u);return}m=!0}var y=t.substring(a+8,i+(m?1:0));this.onDoctype(y);a=i+(m?2:1)}break;default:var b=this._parseContent(t,a);if(null===b){this.onError(d);return}var v=!1;if("/>"===t.substring(a+b.parsed,a+b.parsed+2))v=!0;else if(">"!==t.substring(a+b.parsed,a+b.parsed+1)){this.onError(p);return}this.onBeginElement(b.name,b.attributes,v);a+=b.parsed+(v?2:1)}}else{for(;a<t.length&&"<"!==t[a];)a++;var S=t.substring(r,a);this.onText(this._resolveEntities(S))}r=a}}},{key:"onResolveEntity",value:function onResolveEntity(t){return"&".concat(t,";")}},{key:"onPi",value:function onPi(t,r){}},{key:"onComment",value:function onComment(t){}},{key:"onCdata",value:function onCdata(t){}},{key:"onDoctype",value:function onDoctype(t){}},{key:"onText",value:function onText(t){}},{key:"onBeginElement",value:function onBeginElement(t,r,a){}},{key:"onEndElement",value:function onEndElement(t){}},{key:"onError",value:function onError(t){}}]);return XMLParserBase}(),m=function(){function SimpleDOMNode(t,r){_classCallCheck(this,SimpleDOMNode);this.nodeName=t;this.nodeValue=r;Object.defineProperty(this,"parentNode",{value:null,writable:!0})}_createClass(SimpleDOMNode,[{key:"hasChildNodes",value:function hasChildNodes(){return this.childNodes&&this.childNodes.length>0}},{key:"searchNode",value:function searchNode(t,r){if(r>=t.length)return this;for(var a=t[r],i=[],o=this;;){if(a.name===o.nodeName){if(0!==a.pos){if(0===i.length)return null;var l,c=0,u=_createForOfIteratorHelper(_slicedToArray(i.pop(),1)[0].childNodes);try{for(u.s();!(l=u.n()).done;){var h=l.value;if(a.name===h.nodeName){if(c===a.pos)return h.searchNode(t,r+1);c++}}}catch(t){u.e(t)}finally{u.f()}return o.searchNode(t,r+1)}var d=o.searchNode(t,r+1);if(null!==d)return d}if(o.childNodes&&0!==o.childNodes.length){i.push([o,0]);o=o.childNodes[0]}else{if(0===i.length)return null;for(;0!==i.length;){var p=_slicedToArray(i.pop(),2),g=p[0],m=p[1]+1;if(m<g.childNodes.length){i.push([g,m]);o=g.childNodes[m];break}}if(0===i.length)return null}}}},{key:"dump",value:function dump(t){if("#text"!==this.nodeName){t.push("<".concat(this.nodeName));if(this.attributes){var r,a=_createForOfIteratorHelper(this.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.push(" ".concat(o.name,'="').concat((0,i.encodeToXmlString)(o.value),'"'))}}catch(t){a.e(t)}finally{a.f()}}if(this.hasChildNodes()){t.push(">");var l,c=_createForOfIteratorHelper(this.childNodes);try{for(c.s();!(l=c.n()).done;){l.value.dump(t)}}catch(t){c.e(t)}finally{c.f()}t.push("</".concat(this.nodeName,">"))}else this.nodeValue?t.push(">".concat((0,i.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):t.push("/>")}else t.push((0,i.encodeToXmlString)(this.nodeValue))}},{key:"firstChild",get:function get(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function get(){var t=this.parentNode.childNodes;if(t){var r=t.indexOf(this);if(-1!==r)return t[r+1]}}},{key:"textContent",get:function get(){return this.childNodes?this.childNodes.map((function(t){return t.textContent})).join(""):this.nodeValue||""}}]);return SimpleDOMNode}();r.SimpleDOMNode=m;var y=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(SimpleXMLParser,t);var r=_createSuper(SimpleXMLParser);function SimpleXMLParser(t){var a,i=t.hasAttributes,l=void 0!==i&&i,c=t.lowerCaseName,u=void 0!==c&&c;_classCallCheck(this,SimpleXMLParser);(a=r.call(this))._currentFragment=null;a._stack=null;a._errorCode=o;a._hasAttributes=l;a._lowerCaseName=u;return a}_createClass(SimpleXMLParser,[{key:"parseFromString",value:function parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=o;this.parseXml(t);if(this._errorCode===o){var r=_slicedToArray(this._currentFragment,1)[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function onResolveEntity(t){switch(t){case"apos":return"'"}return _get(_getPrototypeOf(SimpleXMLParser.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function onText(t){if(!function isWhitespaceString(t){for(var r=0,a=t.length;r<a;r++)if(!isWhitespace(t,r))return!1;return!0}(t)){var r=new m("#text",t);this._currentFragment.push(r)}}},{key:"onCdata",value:function onCdata(t){var r=new m("#text",t);this._currentFragment.push(r)}},{key:"onBeginElement",value:function onBeginElement(t,r,a){this._lowerCaseName&&(t=t.toLowerCase());var i=new m(t);i.childNodes=[];this._hasAttributes&&(i.attributes=r);this._currentFragment.push(i);if(!a){this._stack.push(this._currentFragment);this._currentFragment=i.childNodes}}},{key:"onEndElement",value:function onEndElement(t){this._currentFragment=this._stack.pop()||[];var r=this._currentFragment[this._currentFragment.length-1];if(r)for(var a=0,i=r.childNodes.length;a<i;a++)r.childNodes[a].parentNode=r}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return SimpleXMLParser}(g);r.SimpleXMLParser=y},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MessageHandler=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4);function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=1,c=2,u=1,h=2,d=3,p=4,g=5,m=6,y=7,b=8;function wrapReason(t){if("object"!==_typeof(t)||null===t)return t;switch(t.name){case"AbortException":return new o.AbortException(t.message);case"MissingPDFException":return new o.MissingPDFException(t.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new o.UnknownErrorException(t.message,t.details);default:return new o.UnknownErrorException(t.message,t.toString())}}var v=function(){function MessageHandler(t,r,a){var i=this;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MessageHandler);this.sourceName=t;this.targetName=r;this.comObj=a;this.callbackId=1;this.streamId=1;this.postMessageTransfers=!0;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=function(t){var r=t.data;if(r.targetName===i.sourceName)if(r.stream)i._processStreamMessage(r);else if(r.callback){var o=r.callbackId,u=i.callbackCapabilities[o];if(!u)throw new Error("Cannot resolve callback ".concat(o));delete i.callbackCapabilities[o];if(r.callback===l)u.resolve(r.data);else{if(r.callback!==c)throw new Error("Unexpected callback case");u.reject(wrapReason(r.reason))}}else{var h=i.actionHandler[r.action];if(!h)throw new Error("Unknown action from worker: ".concat(r.action));if(r.callbackId){var d=i.sourceName,p=r.sourceName;new Promise((function(t){t(h(r.data))})).then((function(t){a.postMessage({sourceName:d,targetName:p,callback:l,callbackId:r.callbackId,data:t})}),(function(t){a.postMessage({sourceName:d,targetName:p,callback:c,callbackId:r.callbackId,reason:wrapReason(t)})}))}else r.streamId?i._createStreamSink(r):h(r.data)}};a.addEventListener("message",this._onComObjOnMessage)}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(MessageHandler,[{key:"on",value:function on(t,r){var a=this.actionHandler;if(a[t])throw new Error('There is already an actionName called "'.concat(t,'"'));a[t]=r}},{key:"send",value:function send(t,r,a){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},a)}},{key:"sendWithPromise",value:function sendWithPromise(t,r,a){var i=this.callbackId++,l=(0,o.createPromiseCapability)();this.callbackCapabilities[i]=l;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:r},a)}catch(t){l.reject(t)}return l.promise}},{key:"sendWithStream",value:function sendWithStream(t,r,a,i){var l=this,c=this.streamId++,h=this.sourceName,d=this.targetName,p=this.comObj;return new ReadableStream({start:function start(a){var u=(0,o.createPromiseCapability)();l.streamControllers[c]={controller:a,startCall:u,pullCall:null,cancelCall:null,isClosed:!1};l._postMessage({sourceName:h,targetName:d,action:t,streamId:c,data:r,desiredSize:a.desiredSize},i);return u.promise},pull:function pull(t){var r=(0,o.createPromiseCapability)();l.streamControllers[c].pullCall=r;p.postMessage({sourceName:h,targetName:d,stream:m,streamId:c,desiredSize:t.desiredSize});return r.promise},cancel:function cancel(t){(0,o.assert)(t instanceof Error,"cancel must have a valid reason");var r=(0,o.createPromiseCapability)();l.streamControllers[c].cancelCall=r;l.streamControllers[c].isClosed=!0;p.postMessage({sourceName:h,targetName:d,stream:u,streamId:c,reason:wrapReason(t)});return r.promise}},a)}},{key:"_createStreamSink",value:function _createStreamSink(t){var r=this,a=this.actionHandler[t.action],i=t.streamId,l=this.sourceName,c=t.sourceName,u=this.comObj,h={enqueue:function enqueue(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,u=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var h=this.desiredSize;this.desiredSize-=a;if(h>0&&this.desiredSize<=0){this.sinkCapability=(0,o.createPromiseCapability)();this.ready=this.sinkCapability.promise}r._postMessage({sourceName:l,targetName:c,stream:p,streamId:i,chunk:t},u)}},close:function close(){if(!this.isCancelled){this.isCancelled=!0;u.postMessage({sourceName:l,targetName:c,stream:d,streamId:i});delete r.streamSinks[i]}},error:function error(t){(0,o.assert)(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;u.postMessage({sourceName:l,targetName:c,stream:g,streamId:i,reason:wrapReason(t)})}},sinkCapability:(0,o.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};h.sinkCapability.resolve();h.ready=h.sinkCapability.promise;this.streamSinks[i]=h;new Promise((function(r){r(a(t.data,h))})).then((function(){u.postMessage({sourceName:l,targetName:c,stream:b,streamId:i,success:!0})}),(function(t){u.postMessage({sourceName:l,targetName:c,stream:b,streamId:i,reason:wrapReason(t)})}))}},{key:"_processStreamMessage",value:function _processStreamMessage(t){var r=t.streamId,a=this.sourceName,i=t.sourceName,l=this.comObj;switch(t.stream){case b:t.success?this.streamControllers[r].startCall.resolve():this.streamControllers[r].startCall.reject(wrapReason(t.reason));break;case y:t.success?this.streamControllers[r].pullCall.resolve():this.streamControllers[r].pullCall.reject(wrapReason(t.reason));break;case m:if(!this.streamSinks[r]){l.postMessage({sourceName:a,targetName:i,stream:y,streamId:r,success:!0});break}this.streamSinks[r].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[r].sinkCapability.resolve();this.streamSinks[r].desiredSize=t.desiredSize;var c=this.streamSinks[t.streamId].onPull;new Promise((function(t){t(c&&c())})).then((function(){l.postMessage({sourceName:a,targetName:i,stream:y,streamId:r,success:!0})}),(function(t){l.postMessage({sourceName:a,targetName:i,stream:y,streamId:r,reason:wrapReason(t)})}));break;case p:(0,o.assert)(this.streamControllers[r],"enqueue should have stream controller");if(this.streamControllers[r].isClosed)break;this.streamControllers[r].controller.enqueue(t.chunk);break;case d:(0,o.assert)(this.streamControllers[r],"close should have stream controller");if(this.streamControllers[r].isClosed)break;this.streamControllers[r].isClosed=!0;this.streamControllers[r].controller.close();this._deleteStreamController(r);break;case g:(0,o.assert)(this.streamControllers[r],"error should have stream controller");this.streamControllers[r].controller.error(wrapReason(t.reason));this._deleteStreamController(r);break;case h:t.success?this.streamControllers[r].cancelCall.resolve():this.streamControllers[r].cancelCall.reject(wrapReason(t.reason));this._deleteStreamController(r);break;case u:if(!this.streamSinks[r])break;var v=this.streamSinks[t.streamId].onCancel;new Promise((function(r){r(v&&v(wrapReason(t.reason)))})).then((function(){l.postMessage({sourceName:a,targetName:i,stream:h,streamId:r,success:!0})}),(function(t){l.postMessage({sourceName:a,targetName:i,stream:h,streamId:r,reason:wrapReason(t)})}));this.streamSinks[r].sinkCapability.reject(wrapReason(t.reason));this.streamSinks[r].isCancelled=!0;delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(t=function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}(i.default.mark((function _callee(t){return i.default.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:r.next=2;return Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(t){return t&&t.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return r.stop()}}),_callee,this)}))),function _deleteStreamController(r){return t.apply(this,arguments)})},{key:"_postMessage",value:function _postMessage(t,r){r&&this.postMessageTransfers?this.comObj.postMessage(t,r):this.comObj.postMessage(t)}},{key:"destroy",value:function destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);var t;return MessageHandler}();r.MessageHandler=v},(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFWorkerStream=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(4);function asyncGeneratorStep(t,r,a,i,o,l,c){try{var u=t[l](c),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var l=t.apply(r,a);function _next(t){asyncGeneratorStep(l,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(l,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var l=function(){function PDFWorkerStream(t){_classCallCheck(this,PDFWorkerStream);this._msgHandler=t;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFWorkerStream,[{key:"getFullReader",value:function getFullReader(){(0,o.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new c(this._msgHandler);return this._fullRequestReader}},{key:"getRangeReader",value:function getRangeReader(t,r){var a=new u(t,r,this._msgHandler);this._rangeRequestReaders.push(a);return a}},{key:"cancelAllRequests",value:function cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t);this._rangeRequestReaders.slice(0).forEach((function(r){r.cancel(t)}))}}]);return PDFWorkerStream}();r.PDFWorkerStream=l;var c=function(){function PDFWorkerStreamReader(t){var r=this;_classCallCheck(this,PDFWorkerStreamReader);this._msgHandler=t;this.onProgress=null;this._contentLength=null;this._isRangeSupported=!1;this._isStreamingSupported=!1;var a=this._msgHandler.sendWithStream("GetReader");this._reader=a.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(t){r._isStreamingSupported=t.isStreamingSupported;r._isRangeSupported=t.isRangeSupported;r._contentLength=t.contentLength}))}_createClass(PDFWorkerStreamReader,[{key:"read",value:(t=_asyncToGenerator(i.default.mark((function _callee(){var t,r;return i.default.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:a.next=2;return this._reader.read();case 2:t=a.sent;r=t.value;if(!t.done){a.next=7;break}return a.abrupt("return",{value:void 0,done:!0});case 7:return a.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return a.stop()}}),_callee,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}},{key:"headersReady",get:function get(){return this._headersReady}},{key:"contentLength",get:function get(){return this._contentLength}},{key:"isStreamingSupported",get:function get(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function get(){return this._isRangeSupported}}]);var t;return PDFWorkerStreamReader}(),u=function(){function PDFWorkerStreamRangeReader(t,r,a){_classCallCheck(this,PDFWorkerStreamRangeReader);this._msgHandler=a;this.onProgress=null;var i=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=i.getReader()}_createClass(PDFWorkerStreamRangeReader,[{key:"read",value:(t=_asyncToGenerator(i.default.mark((function _callee2(){var t,r;return i.default.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:a.next=2;return this._reader.read();case 2:t=a.sent;r=t.value;if(!t.done){a.next=7;break}return a.abrupt("return",{value:void 0,done:!0});case 7:return a.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return a.stop()}}),_callee2,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}},{key:"isStreamingSupported",get:function get(){return!1}}]);var t;return PDFWorkerStreamRangeReader}()}],r={};function __w_pdfjs_require__(a){if(r[a])return r[a].exports;var i=r[a]={id:a,loaded:!1,exports:{}};t[a].call(i.exports,i,i.exports,__w_pdfjs_require__);i.loaded=!0;return i.exports}__w_pdfjs_require__.d=(t,r)=>{for(var a in r)__w_pdfjs_require__.o(r,a)&&!__w_pdfjs_require__.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:r[a]})};__w_pdfjs_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);__w_pdfjs_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0})};__w_pdfjs_require__.nmd=t=>{t.paths=[];t.children||(t.children=[]);return t};return __w_pdfjs_require__(0)})()}));