pdf.worker.min.js 1.4 MB

12345678910111213141516171819202122
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2021 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,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.WorkerTask=r.WorkerMessageHandler=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(114),h=o(116),d=o(180),m=o(6),g=o(208),y=o(209),v=o(118);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _arrayWithHoles(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var S=function(){function WorkerTask(t){_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=(0,c.createPromiseCapability)()}_createClass(WorkerTask,[{key:"finished",get:function get(){return this._capability.promise}},{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")}}]);return WorkerTask}();r.WorkerTask=S;var k=function(){function WorkerMessageHandler(){_classCallCheck(this,WorkerMessageHandler)}_createClass(WorkerMessageHandler,null,[{key:"setup",value:function setup(t,r){var o=!1;t.on("test",(function wphSetupTest(r){if(!o){o=!0;if(r instanceof Uint8Array){var l=255===r[0];t.postMessageTransfers=l;t.send("test",{supportTransfers:l})}else t.send("test",null)}}));t.on("configure",(function wphConfigure(t){(0,c.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function wphSetupDoc(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var o,m=!1,k=null,_=[],C=(0,c.getVerbosityLevel)(),w=t.apiVersion,x="2.10.377";if(w!==x)throw new Error('The API version "'.concat(w,'" does not match ')+'the Worker version "'.concat(x,'".'));var O=[];for(var T in[])O.push(T);if(O.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+O.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var R=t.docId,E=t.docBaseUrl,M=t.docId+"_worker",D=new g.MessageHandler(M,R,r);D.postMessageTransfers=t.postMessageTransfers;function ensureNotTerminated(){if(m)throw new Error("Worker was terminated")}function startWorkerTask(t){_.push(t)}function finishWorkerTask(t){t.finish();var r=_.indexOf(t);_.splice(r,1)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=_asyncToGenerator(l.default.mark((function _callee(t){var r,c,u,h,d,m,g;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return o.ensureDoc("checkHeader");case 2:l.next=4;return o.ensureDoc("parseStartXRef");case 4:l.next=6;return o.ensureDoc("parse",[t]);case 6:if(t){l.next=9;break}l.next=9;return o.ensureDoc("checkFirstPage");case 9:l.next=11;return o.ensureDoc("isPureXfa");case 11:if(!(r=l.sent)){l.next=17;break}startWorkerTask(c=new S("loadXfaFonts"));l.next=17;return Promise.all([o.loadXfaFonts(D,c).catch((function(t){})).then((function(){return finishWorkerTask(c)})),o.loadXfaImages()]);case 17:l.next=19;return Promise.all([o.ensureDoc("numPages"),o.ensureDoc("fingerprints")]);case 19:u=l.sent;h=_slicedToArray(u,2);d=h[0];m=h[1];if(!r){l.next=29;break}l.next=26;return o.ensureDoc("htmlForXfa");case 26:l.t0=l.sent;l.next=30;break;case 29:l.t0=null;case 30:g=l.t0;return l.abrupt("return",{numPages:d,fingerprints:m,htmlForXfa:g});case 32:case"end":return l.stop()}}),_callee)})))).apply(this,arguments)}function getPdfManager(t,r,o){var l,u=(0,c.createPromiseCapability)(),d=t.source;if(d.data){try{l=new h.LocalPdfManager(R,d.data,d.password,r,o,E);u.resolve(l)}catch(t){u.reject(t)}return u.promise}var m,g=[];try{m=new y.PDFWorkerStream(D)}catch(t){u.reject(t);return u.promise}var v=m.getFullReader();v.headersReady.then((function(){if(v.isRangeSupported){var t=d.disableAutoFetch||v.isStreamingSupported;l=new h.NetworkPdfManager(R,m,{msgHandler:D,password:d.password,length:v.contentLength,disableAutoFetch:t,rangeChunkSize:d.rangeChunkSize},r,o,E);for(var c=0;c<g.length;c++)l.sendProgressiveData(g[c]);g=[];u.resolve(l);k=null}})).catch((function(t){u.reject(t);k=null}));var S=0;new Promise((function(t,m){v.read().then((function readChunk(t){var y=t.value,_=t.done;try{ensureNotTerminated();if(_){l||function flushChunks(){var t=(0,c.arraysToBytes)(g);d.length&&t.length!==d.length&&(0,c.warn)("reported HTTP length is different from actual");try{l=new h.LocalPdfManager(R,t,d.password,r,o,E);u.resolve(l)}catch(t){u.reject(t)}g=[]}();k=null;return}S+=(0,c.arrayByteLength)(y);v.isStreamingSupported||D.send("DocProgress",{loaded:S,total:Math.max(S,v.contentLength||0)});l?l.sendProgressiveData(y):g.push(y);v.read().then(readChunk,m)}catch(t){m(t)}}),m)})).catch((function(t){u.reject(t);k=null}));k=function cancelXHRs(t){m.cancelAllRequests(t)};return u.promise}D.on("GetPage",(function wphSetupGetPage(t){return o.getPage(t.pageIndex).then((function(t){return Promise.all([o.ensure(t,"rotate"),o.ensure(t,"ref"),o.ensure(t,"userUnit"),o.ensure(t,"view")]).then((function(t){var r=_slicedToArray(t,4);return{rotate:r[0],ref:r[1],userUnit:r[2],view:r[3]}}))}))}));D.on("GetPageIndex",(function wphSetupGetPageIndex(t){var r=t.ref,l=u.Ref.get(r.num,r.gen);return o.ensureCatalog("getPageIndex",[l])}));D.on("GetDestinations",(function wphSetupGetDestinations(t){return o.ensureCatalog("destinations")}));D.on("GetDestination",(function wphSetupGetDestination(t){return o.ensureCatalog("getDestination",[t.id])}));D.on("GetPageLabels",(function wphSetupGetPageLabels(t){return o.ensureCatalog("pageLabels")}));D.on("GetPageLayout",(function wphSetupGetPageLayout(t){return o.ensureCatalog("pageLayout")}));D.on("GetPageMode",(function wphSetupGetPageMode(t){return o.ensureCatalog("pageMode")}));D.on("GetViewerPreferences",(function(t){return o.ensureCatalog("viewerPreferences")}));D.on("GetOpenAction",(function(t){return o.ensureCatalog("openAction")}));D.on("GetAttachments",(function wphSetupGetAttachments(t){return o.ensureCatalog("attachments")}));D.on("GetJavaScript",(function wphSetupGetJavaScript(t){return o.ensureCatalog("javaScript")}));D.on("GetDocJSActions",(function wphSetupGetDocJSActions(t){return o.ensureCatalog("jsActions")}));D.on("GetPageJSActions",(function(t){var r=t.pageIndex;return o.getPage(r).then((function(t){return o.ensure(t,"jsActions")}))}));D.on("GetOutline",(function wphSetupGetOutline(t){return o.ensureCatalog("documentOutline")}));D.on("GetOptionalContentConfig",(function(t){return o.ensureCatalog("optionalContentConfig")}));D.on("GetPermissions",(function(t){return o.ensureCatalog("permissions")}));D.on("GetMetadata",(function wphSetupGetMetadata(t){return Promise.all([o.ensureDoc("documentInfo"),o.ensureCatalog("metadata")])}));D.on("GetMarkInfo",(function wphSetupGetMarkInfo(t){return o.ensureCatalog("markInfo")}));D.on("GetData",(function wphSetupGetData(t){o.requestLoadedStream();return o.onLoadedStream().then((function(t){return t.bytes}))}));D.on("GetStats",(function wphSetupGetStats(t){return o.ensureXRef("stats")}));D.on("GetAnnotations",(function(t){var r=t.pageIndex,l=t.intent;return o.getPage(r).then((function(t){return t.getAnnotationsData(l)}))}));D.on("GetFieldObjects",(function(t){return o.ensureDoc("fieldObjects")}));D.on("HasJSActions",(function(t){return o.ensureDoc("hasJSActions")}));D.on("GetCalculationOrderIds",(function(t){return o.ensureDoc("calculationOrderIds")}));D.on("SaveDocument",(function(t){var r=t.isPureXfa,l=t.numPages,h=t.annotationStorage,m=t.filename;o.requestLoadedStream();var g=[o.onLoadedStream(),o.ensureCatalog("acroForm"),o.ensureDoc("xref"),o.ensureDoc("startXRef")];if(r)g.push(o.serializeXfaData(h));else for(var y=function _loop(t){g.push(o.getPage(t).then((function(r){var o=new S("Save: page ".concat(t));return r.save(D,o,h).finally((function(){finishWorkerTask(o)}))})))},v=0;v<l;v++)y(v);return Promise.all(g).then((function(t){var o=_toArray(t),l=o[0],h=o[1],g=o[2],y=o[3],v=o.slice(4),S=[],k=null;if(r){if(!(k=v[0]))return l.bytes}else{var _,C=_createForOfIteratorHelper(v);try{for(C.s();!(_=C.n()).done;){S=_.value.filter((function(t){return null!==t})).reduce((function(t,r){return t.concat(r)}),S)}}catch(t){C.e(t)}finally{C.f()}if(0===S.length)return l.bytes}var w=h instanceof u.Dict&&h.get("XFA")||[],x=null;if(Array.isArray(w))for(var O=0,T=w.length;O<T;O+=2)"datasets"===w[O]&&(x=w[O+1]);else(0,c.warn)("Unsupported XFA type.");var R=Object.create(null);if(g.trailer){var E=Object.create(null),M=g.trailer.get("Info")||null;M instanceof u.Dict&&M.forEach((function(t,r){(0,c.isString)(t)&&(0,c.isString)(r)&&(E[t]=(0,c.stringToPDFString)(r))}));R={rootRef:g.trailer.getRaw("Root")||null,encryptRef:g.trailer.getRaw("Encrypt")||null,newRef:g.getNewRef(),infoRef:g.trailer.getRaw("Info")||null,info:E,fileIds:g.trailer.get("ID")||null,startXRef:y,filename:m}}g.resetNewRef();return(0,d.incrementalUpdate)({originalData:l.bytes,xrefInfo:R,newRefs:S,xref:g,datasetsRef:x,xfaData:k})}))}));D.on("GetOperatorList",(function wphSetupRenderPage(t,r){var l=t.pageIndex;o.getPage(l).then((function(o){var u=new S("GetOperatorList: page ".concat(l));startWorkerTask(u);var h=C>=c.VerbosityLevel.INFOS?Date.now():0;o.getOperatorList({handler:D,sink:r,task:u,intent:t.intent,renderInteractiveForms:t.renderInteractiveForms,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getOperatorList: time=")+"".concat(Date.now()-h,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(u);if(!u.terminated){D.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));D.on("GetTextContent",(function wphExtractText(t,r){var l=t.pageIndex;r.onPull=function(t){};r.onCancel=function(t){};o.getPage(l).then((function(o){var u=new S("GetTextContent: page "+l);startWorkerTask(u);var h=C>=c.VerbosityLevel.INFOS?Date.now():0;o.extractTextContent({handler:D,task:u,sink:r,normalizeWhitespace:t.normalizeWhitespace,includeMarkedContent:t.includeMarkedContent,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getTextContent: time=")+"".concat(Date.now()-h,"ms"));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));D.on("GetStructTree",(function wphGetStructTree(t){return o.getPage(t.pageIndex).then((function(t){return o.ensure(t,"getStructTree")}))}));D.on("FontFallback",(function(t){return o.fontFallback(t.id,D)}));D.on("Cleanup",(function wphCleanup(t){return o.cleanup(!0)}));D.on("Terminate",(function wphTerminate(t){m=!0;var r=[];if(o){o.terminate(new c.AbortException("Worker was terminated."));var l=o.cleanup();r.push(l);o=null}else(0,u.clearPrimitiveCaches)();k&&k(new c.AbortException("Worker was terminated."));var h,d=_createForOfIteratorHelper(_);try{for(d.s();!(h=d.n()).done;){var g=h.value;r.push(g.finished);g.terminate()}}catch(t){d.e(t)}finally{d.f()}return Promise.all(r).then((function(){D.destroy();D=null}))}));D.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();D.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof c.PasswordException){var r=new S("PasswordException: response ".concat(t.code));startWorkerTask(r);D.sendWithPromise("PasswordRequest",t).then((function(t){var l=t.password;finishWorkerTask(r);o.updatePassword(l);pdfManagerReady()})).catch((function(){finishWorkerTask(r);D.send("DocException",t)}))}else t instanceof c.InvalidPDFException||t instanceof c.MissingPDFException||t instanceof c.UnexpectedResponseException||t instanceof c.UnknownErrorException?D.send("DocException",t):D.send("DocException",new c.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof v.XRefParseException){o.requestLoadedStream();o.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,useSystemFonts:t.useSystemFonts,cMapUrl:t.cMapUrl,standardFontDataUrl:t.standardFontDataUrl},t.enableXfa).then((function(t){if(m){t.terminate(new c.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).onLoadedStream().then((function(t){D.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return M}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new g.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=k;"undefined"==typeof window&&!m.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&k.initializeFromPort(self)},(t,r,o)=>{"use strict";t.exports=o(3)},(t,r,o)=>{"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 l=function(t){var r,o=Object.prototype,l=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function define(t,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0});return t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var c=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(c.prototype),h=new Context(l||[]);u._invoke=function makeInvokeMethod(t,r,o){var l=m;return function invoke(c,u){if(l===y)throw new Error("Generator is already running");if(l===v){if("throw"===c)throw u;return doneResult()}o.method=c;o.arg=u;for(;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===S)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(l===m){l=v;throw o.arg}o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);l=y;var k=tryCatch(t,r,o);if("normal"===k.type){l=o.done?v:g;if(k.arg===S)continue;return{value:k.arg,done:o.done}}if("throw"===k.type){l=v;o.method="throw";o.arg=k.arg}}}}(t,o,h);return u}t.wrap=wrap;function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}var m="suspendedStart",g="suspendedYield",y="executing",v="completed",S={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};define(k,u,(function(){return this}));var _=Object.getPrototypeOf,C=_&&_(_(values([])));C&&C!==o&&l.call(C,u)&&(k=C);var w=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);GeneratorFunction.prototype=GeneratorFunctionPrototype;define(w,"constructor",GeneratorFunctionPrototype);define(GeneratorFunctionPrototype,"constructor",GeneratorFunction);GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"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,d,"GeneratorFunction")}t.prototype=Object.create(w);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){function invoke(o,c,u,h){var d=tryCatch(t[o],t,c);if("throw"!==d.type){var m=d.arg,g=m.value;return g&&"object"===_typeof(g)&&l.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){m.value=t;u(m)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;this._invoke=function enqueue(t,l){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,l,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}defineIteratorMethods(AsyncIterator.prototype);define(AsyncIterator.prototype,h,(function(){return this}));t.AsyncIterator=AsyncIterator;t.async=function(r,o,l,c,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(r,o,l,c),u);return t.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))};function maybeInvokeDelegate(t,o){var l=t.iterator[o.method];if(l===r){o.delegate=null;if("throw"===o.method){if(t.iterator.return){o.method="return";o.arg=r;maybeInvokeDelegate(t,o);if("throw"===o.method)return S}o.method="throw";o.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var c=tryCatch(l,t.iterator,o.arg);if("throw"===c.type){o.method="throw";o.arg=c.arg;o.delegate=null;return S}var u=c.arg;if(!u){o.method="throw";o.arg=new TypeError("iterator result is not an object");o.delegate=null;return S}if(!u.done)return u;o[t.resultName]=u.value;o.next=t.nextLoc;if("return"!==o.method){o.method="next";o.arg=r}o.delegate=null;return S}defineIteratorMethods(w);define(w,d,"Generator");define(w,u,(function(){return this}));define(w,"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 o in t)r.push(o);r.reverse();return function next(){for(;r.length;){var o=r.pop();if(o in t){next.value=o;next.done=!1;return next}}next.done=!0;return next}};function values(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function next(){for(;++c<t.length;)if(l.call(t,c)){next.value=t[c];next.done=!1;return next}next.value=r;next.done=!0;return next};return h.next=h}}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 o in this)"t"===o.charAt(0)&&l.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=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 o=this;function handle(l,c){h.type="throw";h.arg=t;o.next=l;if(c){o.method="next";o.arg=r}return!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=l.call(u,"catchLoc"),m=l.call(u,"finallyLoc");if(d&&m){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!m)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&l.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var u=c;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};h.type=t;h.arg=r;if(u){this.method="next";this.next=u.finallyLoc;return S}return this.complete(h)},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 S},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t){this.complete(o.completion,o.afterLoc);resetTryEntry(o);return S}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var l=o.completion;if("throw"===l.type){var c=l.arg;resetTryEntry(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,o,l){this.delegate={iterator:values(t),resultName:o,nextLoc:l};"next"===this.method&&(this.arg=r);return S}};return t}("object"===_typeof(t=o.nmd(t))?t.exports:{});try{regeneratorRuntime=l}catch(t){"object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=l:Function("r","regeneratorRuntime = r")(l)}},(t,r,o)=>{"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 o=0,l=0;l<r;l++)o+=arrayByteLength(t[l]);for(var c=0,u=new Uint8Array(o),h=0;h<r;h++){var d=t[h];d instanceof Uint8Array||(d="string"==typeof d?stringToBytes(d):new Uint8Array(d));var m=d.byteLength;u.set(d,c);c+=m}return u};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,o=8192;if(r<o)return String.fromCharCode.apply(null,t);for(var l=[],c=0;c<r;c+=o){var u=Math.min(c+o,r),h=t.subarray(c,u);l.push(String.fromCharCode.apply(null,h))}return l.join("")};r.createObjectURL=function createObjectURL(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!o)return URL.createObjectURL(new Blob([t],{type:r}));for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="data:".concat(r,";base64,"),u=0,h=t.length;u<h;u+=3){var d=255&t[u],m=255&t[u+1],g=255&t[u+2],y=d>>2,v=(3&d)<<4|m>>4,S=u+1<h?(15&m)<<2|g>>6:64,k=u+2<h?63&g:64;c+=l[y]+l[v]+l[S]+l[k]}return c};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(o,l){t.resolve=function(t){r=!0;o(t)};t.reject=function(t){r=!0;l(t)}}));return t};r.createValidAbsoluteUrl=function createValidAbsoluteUrl(t,r){if(!t)return null;try{var o=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}}(o))return o}catch(t){}return null};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 c};r.info=function info(t){c>=l.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;for(var o=0,l=t.length;o<l;o++)if(t[o]!==r[o])return!1;return!0};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 o;try{if(!(o=new URL(t)).origin||"null"===o.origin)return!1}catch(t){return!1}var l=new URL(r,o);return o.origin===l.origin};r.isString=function isString(t){return"string"==typeof t};r.objectFromMap=function objectFromMap(t){var r,o=Object.create(null),l=function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(l.s();!(r=l.n()).done;){var c=(d=r.value,m=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(d)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(d,m)||_unsupportedIterableToArray(d,m)||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.")}()),u=c[0],h=c[1];o[u]=h}}catch(t){l.e(t)}finally{l.f()}var d,m;return o};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(k,"")};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(c=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,o=[];if("þ"===t[0]&&"ÿ"===t[1])for(var l=2;l<r;l+=2)o.push(String.fromCharCode(t.charCodeAt(l)<<8|t.charCodeAt(l+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var c=2;c<r;c+=2)o.push(String.fromCharCode(t.charCodeAt(c+1)<<8|t.charCodeAt(c)));else for(var u=0;u<r;++u){var h=O[t.charCodeAt(u)];o.push(h?String.fromCharCode(h):t.charAt(u))}return o.join("")};r.stringToUTF16BEString=function stringToUTF16BEString(t){for(var r=["þÿ"],o=0,l=t.length;o<l;o++){var c=t.charCodeAt(o);r.push(String.fromCharCode(c>>8&255),String.fromCharCode(255&c))}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.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;o(5);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var l={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=l;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",signatures:"signatures",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",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var c=l.WARNINGS;function warn(t){c>=l.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}function shadow(t,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!1});return o}var u=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=u;var h=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,o){var l;_classCallCheck(this,PasswordException);(l=r.call(this,t)).code=o;return l}return PasswordException}(u);r.PasswordException=h;var d=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var l;_classCallCheck(this,UnknownErrorException);(l=r.call(this,t)).details=o;return l}return UnknownErrorException}(u);r.UnknownErrorException=d;var m=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(){_classCallCheck(this,InvalidPDFException);return r.apply(this,arguments)}return InvalidPDFException}(u);r.InvalidPDFException=m;var g=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(){_classCallCheck(this,MissingPDFException);return r.apply(this,arguments)}return MissingPDFException}(u);r.MissingPDFException=g;var y=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,o){var l;_classCallCheck(this,UnexpectedResponseException);(l=r.call(this,t)).status=o;return l}return UnexpectedResponseException}(u);r.UnexpectedResponseException=y;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(){_classCallCheck(this,FormatError);return r.apply(this,arguments)}return FormatError}(u);r.FormatError=v;var S=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(){_classCallCheck(this,AbortException);return r.apply(this,arguments)}return AbortException}(u);r.AbortException=S;var k=/\x00/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),l=0;l<r;++l)o[l]=255&t.charCodeAt(l);return o}function arrayByteLength(t){if(void 0!==t.length)return t.length;assert(void 0!==t.byteLength,"arrayByteLength - invalid argument.");return t.byteLength}var _={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=_;var C={get value(){return shadow(this,"value",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}};r.IsEvalSupportedCached=C;var w=function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(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")})),x=function(){function Util(){_classCallCheck(this,Util)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Util,null,[{key:"makeHexColor",value:function makeHexColor(t,r,o){return"#".concat(w[t]).concat(w[r]).concat(w[o])}},{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 o=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])/o,(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/o]}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(t,r){var o=Util.applyTransform(t,r),l=Util.applyTransform(t.slice(2,4),r),c=Util.applyTransform([t[0],t[3]],r),u=Util.applyTransform([t[2],t[1]],r);return[Math.min(o[0],l[0],c[0],u[0]),Math.min(o[1],l[1],c[1],u[1]),Math.max(o[0],l[0],c[0],u[0]),Math.max(o[1],l[1],c[1],u[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]],o=t[0]*r[0]+t[1]*r[2],l=t[0]*r[1]+t[1]*r[3],c=t[2]*r[0]+t[3]*r[2],u=t[2]*r[1]+t[3]*r[3],h=(o+u)/2,d=Math.sqrt(Math.pow(o+u,2)-4*(o*u-c*l))/2,m=h+d||1,g=h-d||1;return[Math.sqrt(m),Math.sqrt(g)]}},{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 o=[t[0],t[2],r[0],r[2]].sort(compare),l=[t[1],t[3],r[1],r[3]].sort(compare),c=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(o[0]===t[0]&&o[1]===r[0]||o[0]===r[0]&&o[1]===t[0]))return null;c[0]=o[1];c[2]=o[2];if(!(l[0]===t[1]&&l[1]===r[1]||l[0]===r[1]&&l[1]===t[1]))return null;c[1]=l[1];c[3]=l[2];return c}}]);return Util}();r.Util=x;var O=[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]},(t,r,o)=>{"use strict";var l=o(6);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=o(7));globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&l.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&l.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&l.isNodeJS&&(globalThis.DOMMatrix=o(53))}();!function checkObjectFromEntries(){Object.fromEntries||o(54)}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=o(85))}();!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=o(113).ReadableStream)}()}},(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 o=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=o},(t,r,o)=>{o(8);t.exports=o(10)},(t,r,o)=>{o(9)({global:!0},{globalThis:o(10)})},(t,r,o)=>{var l=o(10),c=o(11).f,u=o(26),h=o(29),d=o(30),m=o(40),g=o(52);t.exports=function(t,r){var o,y,v,S,k,_=t.target,C=t.global,w=t.stat;if(o=C?l:w?l[_]||d(_,{}):(l[_]||{}).prototype)for(y in r){S=r[y];v=t.noTargetGet?(k=c(o,y))&&k.value:o[y];if(!g(C?y:_+(w?".":"#")+y,t.forced)&&void 0!==v){if(typeof S==typeof v)continue;m(S,v)}(t.sham||v&&v.sham)&&u(S,"sham",!0);h(o,y,S,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,o)=>{var l=o(12),c=o(14),u=o(15),h=o(16),d=o(20),m=o(22),g=o(24),y=Object.getOwnPropertyDescriptor;r.f=l?y:function getOwnPropertyDescriptor(t,r){t=h(t);r=d(r,!0);if(g)try{return y(t,r)}catch(t){}if(m(t,r))return u(!c.f.call(t,r),t[r])}},(t,r,o)=>{var l=o(13);t.exports=!l((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 o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);r.f=c?function propertyIsEnumerable(t){var r=l(this,t);return!!r&&r.enumerable}:o},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,o)=>{var l=o(17),c=o(19);t.exports=function(t){return l(c(t))}},(t,r,o)=>{var l=o(13),c=o(18),u="".split;t.exports=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?u.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,o)=>{var l=o(21);t.exports=function(t,r){if(!l(t))return t;var o,c;if(r&&"function"==typeof(o=t.toString)&&!l(c=o.call(t)))return c;if("function"==typeof(o=t.valueOf)&&!l(c=o.call(t)))return c;if(!r&&"function"==typeof(o=t.toString)&&!l(c=o.call(t)))return c;throw TypeError("Can't convert object to primitive value")}},t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},(t,r,o)=>{var l=o(23),c={}.hasOwnProperty;t.exports=Object.hasOwn||function hasOwn(t,r){return c.call(l(t),r)}},(t,r,o)=>{var l=o(19);t.exports=function(t){return Object(l(t))}},(t,r,o)=>{var l=o(12),c=o(13),u=o(25);t.exports=!l&&!c((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var l=o(10),c=o(21),u=l.document,h=c(u)&&c(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var l=o(12),c=o(27),u=o(15);t.exports=l?function(t,r,o){return c.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},(t,r,o)=>{var l=o(12),c=o(24),u=o(28),h=o(20),d=Object.defineProperty;r.f=l?d:function defineProperty(t,r,o){u(t);r=h(r,!0);u(o);if(c)try{return d(t,r,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var l=o(21);t.exports=function(t){if(!l(t))throw TypeError(String(t)+" is not an object");return t}},(t,r,o)=>{var l=o(10),c=o(26),u=o(22),h=o(30),d=o(31),m=o(33),g=m.get,y=m.enforce,v=String(String).split("String");(t.exports=function(t,r,o,d){var m,g=!!d&&!!d.unsafe,S=!!d&&!!d.enumerable,k=!!d&&!!d.noTargetGet;if("function"==typeof o){"string"!=typeof r||u(o,"name")||c(o,"name",r);(m=y(o)).source||(m.source=v.join("string"==typeof r?r:""))}if(t!==l){g?!k&&t[r]&&(S=!0):delete t[r];S?t[r]=o:c(t,r,o)}else S?t[r]=o:h(r,o)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&g(this).source||d(this)}))},(t,r,o)=>{var l=o(10),c=o(26);t.exports=function(t,r){try{c(l,t,r)}catch(o){l[t]=r}return r}},(t,r,o)=>{var l=o(32),c=Function.toString;"function"!=typeof l.inspectSource&&(l.inspectSource=function(t){return c.call(t)});t.exports=l.inspectSource},(t,r,o)=>{var l=o(10),c=o(30),u="__core-js_shared__",h=l[u]||c(u,{});t.exports=h},(t,r,o)=>{var l,c,u,h=o(34),d=o(10),m=o(21),g=o(26),y=o(22),v=o(32),S=o(35),k=o(39),_="Object already initialized",C=d.WeakMap;if(h||v.state){var w=v.state||(v.state=new C),x=w.get,O=w.has,T=w.set;l=function(t,r){if(O.call(w,t))throw new TypeError(_);r.facade=t;T.call(w,t,r);return r};c=function(t){return x.call(w,t)||{}};u=function(t){return O.call(w,t)}}else{var R=S("state");k[R]=!0;l=function(t,r){if(y(t,R))throw new TypeError(_);r.facade=t;g(t,R,r);return r};c=function(t){return y(t,R)?t[R]:{}};u=function(t){return y(t,R)}}t.exports={set:l,get:c,has:u,enforce:function(t){return u(t)?c(t):l(t,{})},getterFor:function(t){return function(r){var o;if(!m(r)||(o=c(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var l=o(10),c=o(31),u=l.WeakMap;t.exports="function"==typeof u&&/native code/.test(c(u))},(t,r,o)=>{var l=o(36),c=o(38),u=l("keys");t.exports=function(t){return u[t]||(u[t]=c(t))}},(t,r,o)=>{var l=o(37),c=o(32);(t.exports=function(t,r){return c[t]||(c[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.15.2",mode:l?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},t=>{t.exports=!1},t=>{var r=0,o=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+o).toString(36)}},t=>{t.exports={}},(t,r,o)=>{var l=o(22),c=o(41),u=o(11),h=o(27);t.exports=function(t,r){for(var o=c(r),d=h.f,m=u.f,g=0;g<o.length;g++){var y=o[g];l(t,y)||d(t,y,m(r,y))}}},(t,r,o)=>{var l=o(42),c=o(44),u=o(51),h=o(28);t.exports=l("Reflect","ownKeys")||function ownKeys(t){var r=c.f(h(t)),o=u.f;return o?r.concat(o(t)):r}},(t,r,o)=>{var l=o(43),c=o(10),aFunction=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(l[t])||aFunction(c[t]):l[t]&&l[t][r]||c[t]&&c[t][r]}},(t,r,o)=>{var l=o(10);t.exports=l},(t,r,o)=>{var l=o(45),c=o(50).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return l(t,c)}},(t,r,o)=>{var l=o(22),c=o(16),u=o(46).indexOf,h=o(39);t.exports=function(t,r){var o,d=c(t),m=0,g=[];for(o in d)!l(h,o)&&l(d,o)&&g.push(o);for(;r.length>m;)l(d,o=r[m++])&&(~u(g,o)||g.push(o));return g}},(t,r,o)=>{var l=o(16),c=o(47),u=o(49),createMethod=function(t){return function(r,o,h){var d,m=l(r),g=c(m.length),y=u(h,g);if(t&&o!=o){for(;g>y;)if((d=m[y++])!=d)return!0}else for(;g>y;y++)if((t||y in m)&&m[y]===o)return t||y||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var l=o(48),c=Math.min;t.exports=function(t){return t>0?c(l(t),9007199254740991):0}},t=>{var r=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:r)(t)}},(t,r,o)=>{var l=o(48),c=Math.max,u=Math.min;t.exports=function(t,r){var o=l(t);return o<0?c(o+r,0):u(o,r)}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,o)=>{var l=o(13),c=/#|\.prototype\./,isForced=function(t,r){var o=h[u(t)];return o==m||o!=d&&("function"==typeof r?l(r):!!r)},u=isForced.normalize=function(t){return String(t).replace(c,".").toLowerCase()},h=isForced.data={},d=isForced.NATIVE="N",m=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{"use strict";var l,c,u;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)}u=function(){var t=function CSSMatrix(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];this.setIdentity();return t&&t.length&&this.setMatrixValue(t)},r={isIdentity:{configurable:!0},is2D:{configurable:!0}};r.isIdentity.get=function(){var t=this;return 1===t.m11&&0===t.m12&&0===t.m13&&0===t.m14&&0===t.m21&&1===t.m22&&0===t.m23&&0===t.m24&&0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m41&&0===t.m42&&0===t.m43&&1===t.m44};r.isIdentity.set=function(t){this.isIdentity=t};r.is2D.get=function(){var t=this;return 0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m43&&1===t.m44};r.is2D.set=function(t){this.is2D=t};Object.defineProperties(t.prototype,r);var o=t.prototype;function Translate(r,o,l){var c=new t;c.m41=r;c.e=r;c.m42=o;c.f=o;c.m43=l;return c}function Rotate(r,o,l){var c=new t,u=r*Math.PI/180,h=o*Math.PI/180,d=l*Math.PI/180,m=Math.cos(u),g=-Math.sin(u),y=Math.cos(h),v=-Math.sin(h),S=Math.cos(d),k=-Math.sin(d),_=y*S,C=-y*k;c.m11=_;c.a=_;c.m12=C;c.b=C;c.m13=v;var w=g*v*S+m*k;c.m21=w;c.c=w;var x=m*S-g*v*k;c.m22=x;c.d=x;c.m23=-g*y;c.m31=g*k-m*v*S;c.m32=g*S+m*v*k;c.m33=m*y;return c}function RotateAxisAngle(r,o,l,c){var u=new t,h=c*Math.PI/360,d=Math.sin(h),m=Math.cos(h),g=d*d,y=Math.sqrt(r*r+o*o+l*l),v=0,S=0,k=1;if(0!==y){v=r/y;S=o/y;k=l/y}var _=v*v,C=S*S,w=k*k,x=1-2*(C+w)*g;u.m11=x;u.a=x;var O=2*(r*o*g+l*d*m);u.m12=O;u.b=O;u.m13=2*(r*l*g-o*d*m);var T=2*(o*r*g-l*d*m);u.m21=T;u.c=T;var R=1-2*(w+_)*g;u.m22=R;u.d=R;u.m23=2*(o*l*g+r*d*m);u.m31=2*(l*r*g+o*d*m);u.m32=2*(l*o*g-r*d*m);u.m33=1-2*(_+C)*g;u.m14=0;u.m24=0;u.m34=0;u.m41=0;u.e=0;u.m42=0;u.f=0;u.m43=0;u.m44=1;return u}function Scale(r,o,l){var c=new t;c.m11=r;c.a=r;c.m22=o;c.d=o;c.m33=l;return c}function SkewX(r){var o=r*Math.PI/180,l=new t,c=Math.tan(o);l.m21=c;l.c=c;return l}function SkewY(r){var o=r*Math.PI/180,l=new t,c=Math.tan(o);l.m12=c;l.b=c;return l}function Multiply(r,o){var l=o.m11*r.m11+o.m12*r.m21+o.m13*r.m31+o.m14*r.m41,c=o.m11*r.m12+o.m12*r.m22+o.m13*r.m32+o.m14*r.m42,u=o.m11*r.m13+o.m12*r.m23+o.m13*r.m33+o.m14*r.m43,h=o.m11*r.m14+o.m12*r.m24+o.m13*r.m34+o.m14*r.m44,d=o.m21*r.m11+o.m22*r.m21+o.m23*r.m31+o.m24*r.m41,m=o.m21*r.m12+o.m22*r.m22+o.m23*r.m32+o.m24*r.m42,g=o.m21*r.m13+o.m22*r.m23+o.m23*r.m33+o.m24*r.m43,y=o.m21*r.m14+o.m22*r.m24+o.m23*r.m34+o.m24*r.m44,v=o.m31*r.m11+o.m32*r.m21+o.m33*r.m31+o.m34*r.m41,S=o.m31*r.m12+o.m32*r.m22+o.m33*r.m32+o.m34*r.m42,k=o.m31*r.m13+o.m32*r.m23+o.m33*r.m33+o.m34*r.m43,_=o.m31*r.m14+o.m32*r.m24+o.m33*r.m34+o.m34*r.m44,C=o.m41*r.m11+o.m42*r.m21+o.m43*r.m31+o.m44*r.m41,w=o.m41*r.m12+o.m42*r.m22+o.m43*r.m32+o.m44*r.m42,x=o.m41*r.m13+o.m42*r.m23+o.m43*r.m33+o.m44*r.m43,O=o.m41*r.m14+o.m42*r.m24+o.m43*r.m34+o.m44*r.m44;return new t([l,d,v,C,c,m,S,w,u,g,k,x,h,y,_,O])}function feedFromArray(t,r){var o=Array.from(r);if(16===o.length){var l=o[0],c=o[1],u=o[2],h=o[3],d=o[4],m=o[5],g=o[6],y=o[7],v=o[8],S=o[9],k=o[10],_=o[11],C=o[12],w=o[13],x=o[14],O=o[15];t.m11=l;t.a=l;t.m21=c;t.c=c;t.m31=u;t.m41=h;t.e=h;t.m12=d;t.b=d;t.m22=m;t.d=m;t.m32=g;t.m42=y;t.f=y;t.m13=v;t.m23=S;t.m33=k;t.m43=_;t.m14=C;t.m24=w;t.m34=x;t.m44=O}else{if(6!==o.length)throw new TypeError("CSSMatrix: expecting a 6/16 values Array");var T=o[0],R=o[1],E=o[2],M=o[3],D=o[4],j=o[5];t.m11=T;t.a=T;t.m12=R;t.b=R;t.m21=E;t.c=E;t.m22=M;t.d=M;t.m14=D;t.e=D;t.m24=j;t.f=j}return t}o.setMatrixValue=function setMatrixValue(r){var o=this;if(!r||!r.length)return o;if(r.length&&"string"==typeof r[0]&&r[0].length){var l,c,u=String(r[0]).trim();if("none"===u)return o;l=u.slice(0,u.indexOf("("));c=u.slice("matrix"===l?7:9,-1).split(",").map((function(t){return Math.abs(t)<1e-6?0:+t}));if(!([6,16].indexOf(c.length)>-1))throw new TypeError("CSSMatrix: expecting valid CSS matrix() / matrix3d() syntax");feedFromArray(o,c)}else r[0]instanceof t?feedFromArray(o,r[0].toArray()):Array.isArray(r[0])?feedFromArray(o,r[0]):Array.isArray(r)&&feedFromArray(o,r);return o};o.toString=function toString(){return(this.is2D?"matrix":"matrix3d")+"("+this.toArray(1).join(",")+")"};o.toArray=function toArray(t){var r=this;return r.is2D?[r.a,r.b,r.c,r.d,r.e,r.f]:t?[r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44]:[r.m11,r.m21,r.m31,r.m41,r.m12,r.m22,r.m32,r.m42,r.m13,r.m23,r.m33,r.m43,r.m14,r.m24,r.m34,r.m44]};o.multiply=function multiply(t){return Multiply(this,t)};o.translate=function translate(t,r,o){var l=r,c=o;null==c&&(c=0);null==l&&(l=0);return Multiply(this,Translate(t,l,c))};o.scale=function scale(t,r,o){var l=r,c=o;null==l&&(l=t);null==c&&(c=t);return Multiply(this,Scale(t,l,c))};o.rotate=function rotate(t,r,o){var l=t,c=r,u=o;null==c&&(c=0);if(null==u){u=l;l=0}return Multiply(this,Rotate(l,c,u))};o.rotateAxisAngle=function rotateAxisAngle(t,r,o,l){if(4!==arguments.length)throw new TypeError("CSSMatrix: expecting 4 values");return Multiply(this,RotateAxisAngle(t,r,o,l))};o.skewX=function skewX(t){return Multiply(this,SkewX(t))};o.skewY=function skewY(t){return Multiply(this,SkewY(t))};o.setIdentity=function setIdentity(){return feedFromArray(this,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};o.transformPoint=function transformPoint(t){var r=Translate(t.x,t.y,t.z);r.m44=t.w||1;return{x:(r=this.multiply(r)).m41,y:r.m42,z:r.m43,w:r.m44}};o.transform=function transform(t){var r=this,o=r.m11*t.x+r.m12*t.y+r.m13*t.z+r.m14*t.w,l=r.m21*t.x+r.m22*t.y+r.m23*t.z+r.m24*t.w,c=r.m31*t.x+r.m32*t.y+r.m33*t.z+r.m34*t.w,u=r.m41*t.x+r.m42*t.y+r.m43*t.z+r.m44*t.w;return{x:o/u,y:l/u,z:c/u,w:u}};t.Translate=Translate;t.Rotate=Rotate;t.RotateAxisAngle=RotateAxisAngle;t.Scale=Scale;t.SkewX=SkewX;t.SkewY=SkewY;t.Multiply=Multiply;t.fromMatrix=function fromMatrix(r){return new t([r.m11,r.m21,r.m31,r.m41,r.m12,r.m22,r.m32,r.m42,r.m13,r.m23,r.m33,r.m43,r.m14,r.m24,r.m34,r.m44])};t.fromArray=function fromArray(r){return feedFromArray(new t,r)};t.feedFromArray=feedFromArray;return t},"object"===_typeof(r)?t.exports=u():void 0!==(c="function"==typeof(l=u)?l.call(r,o,r,t):l)&&(t.exports=c)},(t,r,o)=>{o(55);o(75);var l=o(43);t.exports=l.Object.fromEntries},(t,r,o)=>{"use strict";var l=o(16),c=o(56),u=o(66),h=o(33),d=o(67),m="Array Iterator",g=h.set,y=h.getterFor(m);t.exports=d(Array,"Array",(function(t,r){g(this,{type:m,target:l(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,o=t.kind,l=t.index++;if(!r||l>=r.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==o?{value:l,done:!1}:"values"==o?{value:r[l],done:!1}:{value:[l,r[l]],done:!1}}),"values");u.Arguments=u.Array;c("keys");c("values");c("entries")},(t,r,o)=>{var l=o(57),c=o(62),u=o(27),h=l("unscopables"),d=Array.prototype;null==d[h]&&u.f(d,h,{configurable:!0,value:c(null)});t.exports=function(t){d[h][t]=!0}},(t,r,o)=>{var l=o(10),c=o(36),u=o(22),h=o(38),d=o(58),m=o(61),g=c("wks"),y=l.Symbol,v=m?y:y&&y.withoutSetter||h;t.exports=function(t){u(g,t)&&(d||"string"==typeof g[t])||(d&&u(y,t)?g[t]=y[t]:g[t]=v("Symbol."+t));return g[t]}},(t,r,o)=>{var l=o(59),c=o(13);t.exports=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&l&&l<41}))},(t,r,o)=>{var l,c,u=o(10),h=o(60),d=u.process,m=d&&d.versions,g=m&&m.v8;g?c=(l=g.split("."))[0]<4?1:l[0]+l[1]:h&&(!(l=h.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=h.match(/Chrome\/(\d+)/))&&(c=l[1]);t.exports=c&&+c},(t,r,o)=>{var l=o(42);t.exports=l("navigator","userAgent")||""},(t,r,o)=>{var l=o(58);t.exports=l&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var l,c=o(28),u=o(63),h=o(50),d=o(39),m=o(65),g=o(25),y=o(35),v=y("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{l=document.domain&&new ActiveXObject("htmlfile")}catch(t){}NullProtoObject=l?function(t){t.write(scriptTag(""));t.close();var r=t.parentWindow.Object;t=null;return r}(l):function(){var t,r=g("iframe");r.style.display="none";m.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=h.length;t--;)delete NullProtoObject.prototype[h[t]];return NullProtoObject()};d[v]=!0;t.exports=Object.create||function create(t,r){var o;if(null!==t){EmptyConstructor.prototype=c(t);o=new EmptyConstructor;EmptyConstructor.prototype=null;o[v]=t}else o=NullProtoObject();return void 0===r?o:u(o,r)}},(t,r,o)=>{var l=o(12),c=o(27),u=o(28),h=o(64);t.exports=l?Object.defineProperties:function defineProperties(t,r){u(t);for(var o,l=h(r),d=l.length,m=0;d>m;)c.f(t,o=l[m++],r[o]);return t}},(t,r,o)=>{var l=o(45),c=o(50);t.exports=Object.keys||function keys(t){return l(t,c)}},(t,r,o)=>{var l=o(42);t.exports=l("document","documentElement")},t=>{t.exports={}},(t,r,o)=>{"use strict";var l=o(9),c=o(68),u=o(70),h=o(73),d=o(72),m=o(26),g=o(29),y=o(57),v=o(37),S=o(66),k=o(69),_=k.IteratorPrototype,C=k.BUGGY_SAFARI_ITERATORS,w=y("iterator"),x="keys",O="values",T="entries",returnThis=function(){return this};t.exports=function(t,r,o,y,k,R,E){c(o,r,y);var M,D,j,getIterationMethod=function(t){if(t===k&&W)return W;if(!C&&t in U)return U[t];switch(t){case x:return function keys(){return new o(this,t)};case O:return function values(){return new o(this,t)};case T:return function entries(){return new o(this,t)}}return function(){return new o(this)}},L=r+" Iterator",N=!1,U=t.prototype,H=U[w]||U["@@iterator"]||k&&U[k],W=!C&&H||getIterationMethod(k),q="Array"==r&&U.entries||H;if(q){M=u(q.call(new t));if(_!==Object.prototype&&M.next){v||u(M)===_||(h?h(M,_):"function"!=typeof M[w]&&m(M,w,returnThis));d(M,L,!0,!0);v&&(S[L]=returnThis)}}if(k==O&&H&&H.name!==O){N=!0;W=function values(){return H.call(this)}}v&&!E||U[w]===W||m(U,w,W);S[r]=W;if(k){D={values:getIterationMethod(O),keys:R?W:getIterationMethod(x),entries:getIterationMethod(T)};if(E)for(j in D)(C||N||!(j in U))&&g(U,j,D[j]);else l({target:r,proto:!0,forced:C||N},D)}return D}},(t,r,o)=>{"use strict";var l=o(69).IteratorPrototype,c=o(62),u=o(15),h=o(72),d=o(66),returnThis=function(){return this};t.exports=function(t,r,o){var m=r+" Iterator";t.prototype=c(l,{next:u(1,o)});h(t,m,!1,!0);d[m]=returnThis;return t}},(t,r,o)=>{"use strict";var l,c,u,h=o(13),d=o(70),m=o(26),g=o(22),y=o(57),v=o(37),S=y("iterator"),k=!1;[].keys&&("next"in(u=[].keys())?(c=d(d(u)))!==Object.prototype&&(l=c):k=!0);var _=null==l||h((function(){var t={};return l[S].call(t)!==t}));_&&(l={});v&&!_||g(l,S)||m(l,S,(function(){return this}));t.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:k}},(t,r,o)=>{var l=o(22),c=o(23),u=o(35),h=o(71),d=u("IE_PROTO"),m=Object.prototype;t.exports=h?Object.getPrototypeOf:function(t){t=c(t);return l(t,d)?t[d]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?m:null}},(t,r,o)=>{var l=o(13);t.exports=!l((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,o)=>{var l=o(27).f,c=o(22),u=o(57)("toStringTag");t.exports=function(t,r,o){t&&!c(t=o?t:t.prototype,u)&&l(t,u,{configurable:!0,value:r})}},(t,r,o)=>{var l=o(28),c=o(74);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,o={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(o,[]);r=o instanceof Array}catch(t){}return function setPrototypeOf(o,u){l(o);c(u);r?t.call(o,u):o.__proto__=u;return o}}():void 0)},(t,r,o)=>{var l=o(21);t.exports=function(t){if(!l(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},(t,r,o)=>{var l=o(9),c=o(76),u=o(84);l({target:"Object",stat:!0},{fromEntries:function fromEntries(t){var r={};c(t,(function(t,o){u(r,t,o)}),{AS_ENTRIES:!0});return r}})},(t,r,o)=>{var l=o(28),c=o(77),u=o(47),h=o(78),d=o(80),m=o(83),Result=function(t,r){this.stopped=t;this.result=r};t.exports=function(t,r,o){var g,y,v,S,k,_,C,w=o&&o.that,x=!(!o||!o.AS_ENTRIES),O=!(!o||!o.IS_ITERATOR),T=!(!o||!o.INTERRUPTED),R=h(r,w,1+x+T),stop=function(t){g&&m(g);return new Result(!0,t)},callFn=function(t){if(x){l(t);return T?R(t[0],t[1],stop):R(t[0],t[1])}return T?R(t,stop):R(t)};if(O)g=t;else{if("function"!=typeof(y=d(t)))throw TypeError("Target is not iterable");if(c(y)){for(v=0,S=u(t.length);S>v;v++)if((k=callFn(t[v]))&&k instanceof Result)return k;return new Result(!1)}g=y.call(t)}_=g.next;for(;!(C=_.call(g)).done;){try{k=callFn(C.value)}catch(t){m(g);throw t}if("object"==typeof k&&k&&k instanceof Result)return k}return new Result(!1)}},(t,r,o)=>{var l=o(57),c=o(66),u=l("iterator"),h=Array.prototype;t.exports=function(t){return void 0!==t&&(c.Array===t||h[u]===t)}},(t,r,o)=>{var l=o(79);t.exports=function(t,r,o){l(t);if(void 0===r)return t;switch(o){case 0:return function(){return t.call(r)};case 1:return function(o){return t.call(r,o)};case 2:return function(o,l){return t.call(r,o,l)};case 3:return function(o,l,c){return t.call(r,o,l,c)}}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,o)=>{var l=o(81),c=o(66),u=o(57)("iterator");t.exports=function(t){if(null!=t)return t[u]||t["@@iterator"]||c[l(t)]}},(t,r,o)=>{var l=o(82),c=o(18),u=o(57)("toStringTag"),h="Arguments"==c(function(){return arguments}());t.exports=l?c:function(t){var r,o,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),u))?o:h?c(r):"Object"==(l=c(r))&&"function"==typeof r.callee?"Arguments":l}},(t,r,o)=>{var l={};l[o(57)("toStringTag")]="z";t.exports="[object z]"===String(l)},(t,r,o)=>{var l=o(28);t.exports=function(t){var r=t.return;if(void 0!==r)return l(r.call(t)).value}},(t,r,o)=>{"use strict";var l=o(20),c=o(27),u=o(15);t.exports=function(t,r,o){var h=l(r);h in t?c.f(t,h,u(0,o)):t[h]=o}},(t,r,o)=>{o(86);o(87);o(89);o(106);o(107);o(108);o(109);o(111);var l=o(43);t.exports=l.Promise},(t,r,o)=>{"use strict";var l=o(9),c=o(70),u=o(73),h=o(62),d=o(26),m=o(15),g=o(76),y=function AggregateError(t,r){var o=this;if(!(o instanceof y))return new y(t,r);u&&(o=u(new Error(void 0),c(o)));void 0!==r&&d(o,"message",String(r));var l=[];g(t,l.push,{that:l});d(o,"errors",l);return o};y.prototype=h(Error.prototype,{constructor:m(5,y),message:m(5,""),name:m(5,"AggregateError")});l({global:!0},{AggregateError:y})},(t,r,o)=>{var l=o(82),c=o(29),u=o(88);l||c(Object.prototype,"toString",u,{unsafe:!0})},(t,r,o)=>{"use strict";var l=o(82),c=o(81);t.exports=l?{}.toString:function toString(){return"[object "+c(this)+"]"}},(t,r,o)=>{"use strict";var l,c,u,h,d=o(9),m=o(37),g=o(10),y=o(42),v=o(90),S=o(29),k=o(91),_=o(73),C=o(72),w=o(92),x=o(21),O=o(79),T=o(93),R=o(31),E=o(76),M=o(94),D=o(95),j=o(96).set,L=o(99),N=o(101),U=o(103),H=o(102),W=o(104),q=o(33),$=o(52),X=o(57),z=o(105),G=o(98),V=o(59),Y=X("species"),K="Promise",J=q.get,Q=q.set,Z=q.getterFor(K),ee=v&&v.prototype,te=v,re=ee,ae=g.TypeError,ne=g.document,ie=g.process,oe=H.f,se=oe,le=!!(ne&&ne.createEvent&&g.dispatchEvent),ce="function"==typeof PromiseRejectionEvent,ue="unhandledrejection",fe=!1,he=$(K,(function(){var t=R(te),r=t!==String(te);if(!r&&66===V)return!0;if(m&&!re.finally)return!0;if(V>=51&&/native code/.test(t))return!1;var o=new te((function(t){t(1)})),FakePromise=function(t){t((function(){}),(function(){}))};(o.constructor={})[Y]=FakePromise;return!(fe=o.then((function(){}))instanceof FakePromise)||!r&&z&&!ce})),de=he||!M((function(t){te.all(t).catch((function(){}))})),isThenable=function(t){var r;return!(!x(t)||"function"!=typeof(r=t.then))&&r},notify=function(t,r){if(!t.notified){t.notified=!0;var o=t.reactions;L((function(){for(var l=t.value,c=1==t.state,u=0;o.length>u;){var h,d,m,g=o[u++],y=c?g.ok:g.fail,v=g.resolve,S=g.reject,k=g.domain;try{if(y){if(!c){2===t.rejection&&onHandleUnhandled(t);t.rejection=1}if(!0===y)h=l;else{k&&k.enter();h=y(l);if(k){k.exit();m=!0}}h===g.promise?S(ae("Promise-chain cycle")):(d=isThenable(h))?d.call(h,v,S):v(h)}else S(l)}catch(t){k&&!m&&k.exit();S(t)}}t.reactions=[];t.notified=!1;r&&!t.rejection&&onUnhandled(t)}))}},dispatchEvent=function(t,r,o){var l,c;if(le){(l=ne.createEvent("Event")).promise=r;l.reason=o;l.initEvent(t,!1,!0);g.dispatchEvent(l)}else l={promise:r,reason:o};!ce&&(c=g["on"+t])?c(l):t===ue&&U("Unhandled promise rejection",o)},onUnhandled=function(t){j.call(g,(function(){var r,o=t.facade,l=t.value;if(isUnhandled(t)){r=W((function(){G?ie.emit("unhandledRejection",l,o):dispatchEvent(ue,o,l)}));t.rejection=G||isUnhandled(t)?2:1;if(r.error)throw r.value}}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){j.call(g,(function(){var r=t.facade;G?ie.emit("rejectionHandled",r):dispatchEvent("rejectionhandled",r,t.value)}))},bind=function(t,r,o){return function(l){t(r,l,o)}},internalReject=function(t,r,o){if(!t.done){t.done=!0;o&&(t=o);t.value=r;t.state=2;notify(t,!0)}},internalResolve=function(t,r,o){if(!t.done){t.done=!0;o&&(t=o);try{if(t.facade===r)throw ae("Promise can't be resolved itself");var l=isThenable(r);if(l)L((function(){var o={done:!1};try{l.call(r,bind(internalResolve,o,t),bind(internalReject,o,t))}catch(r){internalReject(o,r,t)}}));else{t.value=r;t.state=1;notify(t,!1)}}catch(r){internalReject({done:!1},r,t)}}};if(he){re=(te=function Promise(t){T(this,te,K);O(t);l.call(this);var r=J(this);try{t(bind(internalResolve,r),bind(internalReject,r))}catch(t){internalReject(r,t)}}).prototype;(l=function Promise(t){Q(this,{type:K,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k(re,{then:function then(t,r){var o=Z(this),l=oe(D(this,te));l.ok="function"!=typeof t||t;l.fail="function"==typeof r&&r;l.domain=G?ie.domain:void 0;o.parent=!0;o.reactions.push(l);0!=o.state&&notify(o,!1);return l.promise},catch:function(t){return this.then(void 0,t)}});c=function(){var t=new l,r=J(t);this.promise=t;this.resolve=bind(internalResolve,r);this.reject=bind(internalReject,r)};H.f=oe=function(t){return t===te||t===u?new c(t):se(t)};if(!m&&"function"==typeof v&&ee!==Object.prototype){h=ee.then;if(!fe){S(ee,"then",(function then(t,r){var o=this;return new te((function(t,r){h.call(o,t,r)})).then(t,r)}),{unsafe:!0});S(ee,"catch",re.catch,{unsafe:!0})}try{delete ee.constructor}catch(t){}_&&_(ee,re)}}d({global:!0,wrap:!0,forced:he},{Promise:te});C(te,K,!1,!0);w(K);u=y(K);d({target:K,stat:!0,forced:he},{reject:function reject(t){var r=oe(this);r.reject.call(void 0,t);return r.promise}});d({target:K,stat:!0,forced:m||he},{resolve:function resolve(t){return N(m&&this===u?te:this,t)}});d({target:K,stat:!0,forced:de},{all:function all(t){var r=this,o=oe(r),l=o.resolve,c=o.reject,u=W((function(){var o=O(r.resolve),u=[],h=0,d=1;E(t,(function(t){var m=h++,g=!1;u.push(void 0);d++;o.call(r,t).then((function(t){if(!g){g=!0;u[m]=t;--d||l(u)}}),c)}));--d||l(u)}));u.error&&c(u.value);return o.promise},race:function race(t){var r=this,o=oe(r),l=o.reject,c=W((function(){var c=O(r.resolve);E(t,(function(t){c.call(r,t).then(o.resolve,l)}))}));c.error&&l(c.value);return o.promise}})},(t,r,o)=>{var l=o(10);t.exports=l.Promise},(t,r,o)=>{var l=o(29);t.exports=function(t,r,o){for(var c in r)l(t,c,r[c],o);return t}},(t,r,o)=>{"use strict";var l=o(42),c=o(27),u=o(57),h=o(12),d=u("species");t.exports=function(t){var r=l(t),o=c.f;h&&r&&!r[d]&&o(r,d,{configurable:!0,get:function(){return this}})}},t=>{t.exports=function(t,r,o){if(!(t instanceof r))throw TypeError("Incorrect "+(o?o+" ":"")+"invocation");return t}},(t,r,o)=>{var l=o(57)("iterator"),c=!1;try{var u=0,h={next:function(){return{done:!!u++}},return:function(){c=!0}};h[l]=function(){return this};Array.from(h,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!c)return!1;var o=!1;try{var u={};u[l]=function(){return{next:function(){return{done:o=!0}}}};t(u)}catch(t){}return o}},(t,r,o)=>{var l=o(28),c=o(79),u=o(57)("species");t.exports=function(t,r){var o,h=l(t).constructor;return void 0===h||null==(o=l(h)[u])?r:c(o)}},(t,r,o)=>{var l,c,u,h=o(10),d=o(13),m=o(78),g=o(65),y=o(25),v=o(97),S=o(98),k=h.location,_=h.setImmediate,C=h.clearImmediate,w=h.process,x=h.MessageChannel,O=h.Dispatch,T=0,R={},E="onreadystatechange",run=function(t){if(R.hasOwnProperty(t)){var r=R[t];delete R[t];r()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){h.postMessage(t+"",k.protocol+"//"+k.host)};if(!_||!C){_=function setImmediate(t){for(var r=[],o=1;arguments.length>o;)r.push(arguments[o++]);R[++T]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)};l(T);return T};C=function clearImmediate(t){delete R[t]};if(S)l=function(t){w.nextTick(runner(t))};else if(O&&O.now)l=function(t){O.now(runner(t))};else if(x&&!v){u=(c=new x).port2;c.port1.onmessage=listener;l=m(u.postMessage,u,1)}else if(h.addEventListener&&"function"==typeof postMessage&&!h.importScripts&&k&&"file:"!==k.protocol&&!d(post)){l=post;h.addEventListener("message",listener,!1)}else l=E in y("script")?function(t){g.appendChild(y("script")).onreadystatechange=function(){g.removeChild(this);run(t)}}:function(t){setTimeout(runner(t),0)}}t.exports={set:_,clear:C}},(t,r,o)=>{var l=o(60);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(l)},(t,r,o)=>{var l=o(18),c=o(10);t.exports="process"==l(c.process)},(t,r,o)=>{var l,c,u,h,d,m,g,y,v=o(10),S=o(11).f,k=o(96).set,_=o(97),C=o(100),w=o(98),x=v.MutationObserver||v.WebKitMutationObserver,O=v.document,T=v.process,R=v.Promise,E=S(v,"queueMicrotask"),M=E&&E.value;if(!M){l=function(){var t,r;w&&(t=T.domain)&&t.exit();for(;c;){r=c.fn;c=c.next;try{r()}catch(t){c?h():u=void 0;throw t}}u=void 0;t&&t.enter()};if(_||w||C||!x||!O)if(R&&R.resolve){(g=R.resolve(void 0)).constructor=R;y=g.then;h=function(){y.call(g,l)}}else h=w?function(){T.nextTick(l)}:function(){k.call(v,l)};else{d=!0;m=O.createTextNode("");new x(l).observe(m,{characterData:!0});h=function(){m.data=d=!d}}}t.exports=M||function(t){var r={fn:t,next:void 0};u&&(u.next=r);if(!c){c=r;h()}u=r}},(t,r,o)=>{var l=o(60);t.exports=/web0s(?!.*chrome)/i.test(l)},(t,r,o)=>{var l=o(28),c=o(21),u=o(102);t.exports=function(t,r){l(t);if(c(r)&&r.constructor===t)return r;var o=u.f(t);(0,o.resolve)(r);return o.promise}},(t,r,o)=>{"use strict";var l=o(79),PromiseCapability=function(t){var r,o;this.promise=new t((function(t,l){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=t;o=l}));this.resolve=l(r);this.reject=l(o)};t.exports.f=function(t){return new PromiseCapability(t)}},(t,r,o)=>{var l=o(10);t.exports=function(t,r){var o=l.console;o&&o.error&&(1===arguments.length?o.error(t):o.error(t,r))}},t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},t=>{t.exports="object"==typeof window},(t,r,o)=>{"use strict";var l=o(9),c=o(79),u=o(102),h=o(104),d=o(76);l({target:"Promise",stat:!0},{allSettled:function allSettled(t){var r=this,o=u.f(r),l=o.resolve,m=o.reject,g=h((function(){var o=c(r.resolve),u=[],h=0,m=1;d(t,(function(t){var c=h++,d=!1;u.push(void 0);m++;o.call(r,t).then((function(t){if(!d){d=!0;u[c]={status:"fulfilled",value:t};--m||l(u)}}),(function(t){if(!d){d=!0;u[c]={status:"rejected",reason:t};--m||l(u)}}))}));--m||l(u)}));g.error&&m(g.value);return o.promise}})},(t,r,o)=>{"use strict";var l=o(9),c=o(79),u=o(42),h=o(102),d=o(104),m=o(76),g="No one promise resolved";l({target:"Promise",stat:!0},{any:function any(t){var r=this,o=h.f(r),l=o.resolve,y=o.reject,v=d((function(){var o=c(r.resolve),h=[],d=0,v=1,S=!1;m(t,(function(t){var c=d++,m=!1;h.push(void 0);v++;o.call(r,t).then((function(t){if(!m&&!S){S=!0;l(t)}}),(function(t){if(!m&&!S){m=!0;h[c]=t;--v||y(new(u("AggregateError"))(h,g))}}))}));--v||y(new(u("AggregateError"))(h,g))}));v.error&&y(v.value);return o.promise}})},(t,r,o)=>{"use strict";var l=o(9),c=o(37),u=o(90),h=o(13),d=o(42),m=o(95),g=o(101),y=o(29);l({target:"Promise",proto:!0,real:!0,forced:!!u&&h((function(){u.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=m(this,d("Promise")),o="function"==typeof t;return this.then(o?function(o){return g(r,t()).then((function(){return o}))}:t,o?function(o){return g(r,t()).then((function(){throw o}))}:t)}});if(!c&&"function"==typeof u){var v=d("Promise").prototype.finally;u.prototype.finally!==v&&y(u.prototype,"finally",v,{unsafe:!0})}},(t,r,o)=>{"use strict";var l=o(110).charAt,c=o(33),u=o(67),h="String Iterator",d=c.set,m=c.getterFor(h);u(String,"String",(function(t){d(this,{type:h,string:String(t),index:0})}),(function next(){var t,r=m(this),o=r.string,c=r.index;if(c>=o.length)return{value:void 0,done:!0};t=l(o,c);r.index+=t.length;return{value:t,done:!1}}))},(t,r,o)=>{var l=o(48),c=o(19),createMethod=function(t){return function(r,o){var u,h,d=String(c(r)),m=l(o),g=d.length;return m<0||m>=g?t?"":void 0:(u=d.charCodeAt(m))<55296||u>56319||m+1===g||(h=d.charCodeAt(m+1))<56320||h>57343?t?d.charAt(m):u:t?d.slice(m,m+2):h-56320+(u-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},(t,r,o)=>{var l=o(10),c=o(112),u=o(55),h=o(26),d=o(57),m=d("iterator"),g=d("toStringTag"),y=u.values;for(var v in c){var S=l[v],k=S&&S.prototype;if(k){if(k[m]!==y)try{h(k,m,y)}catch(t){k[m]=y}k[g]||h(k,g,v);if(c[v])for(var _ in u)if(k[_]!==u[_])try{h(k,_,u[_])}catch(t){k[_]=u[_]}}}},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}},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 o=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 l=noop,c=Promise,u=Promise.prototype.then,h=Promise.resolve.bind(c),d=Promise.reject.bind(c);function newPromise(t){return new c(t)}function promiseResolvedWith(t){return h(t)}function promiseRejectedWith(t){return d(t)}function PerformPromiseThen(t,r,o){return u.call(t,r,o)}function uponPromise(t,r,o){PerformPromiseThen(PerformPromiseThen(t,r,o),void 0,l)}function uponFulfillment(t,r){uponPromise(t,r)}function uponRejection(t,r){uponPromise(t,void 0,r)}function transformPromiseWith(t,r,o){return PerformPromiseThen(t,r,o)}function setPromiseIsHandledToTrue(t){PerformPromiseThen(t,void 0,l)}var m=function(){var t=o&&o.queueMicrotask;if("function"==typeof t)return t;var r=promiseResolvedWith(void 0);return function(t){return PerformPromiseThen(r,t)}}();function reflectCall(t,r,o){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,r,o)}function promiseCall(t,r,o){try{return promiseResolvedWith(reflectCall(t,r,o))}catch(t){return promiseRejectedWith(t)}}var g=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,o=r;16383===r._elements.length&&(o={_elements:[],_next:void 0});r._elements.push(t);if(o!==r){this._back=o;r._next=o}++this._size};SimpleQueue.prototype.shift=function(){var t=this._front,r=t,o=this._cursor,l=o+1,c=t._elements,u=c[o];if(16384===l){r=t._next;l=0}--this._size;this._cursor=l;t!==r&&(this._front=r);c[o]=void 0;return u};SimpleQueue.prototype.forEach=function(t){for(var r=this._cursor,o=this._front,l=o._elements;r!==l.length||void 0!==o._next;){if(r===l.length){r=0;if(0===(l=(o=o._next)._elements).length)break}t(l[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,o){t._closedPromise_resolve=r;t._closedPromise_reject=o}))}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 y=r("[[AbortSteps]]"),v=r("[[ErrorSteps]]"),S=r("[[CancelSteps]]"),k=r("[[PullSteps]]"),_=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},C=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,o){if(void 0===t)throw new TypeError("Parameter "+r+" is required in '"+o+"'.")}function assertRequiredField(t,r,o){if(void 0===t)throw new TypeError(r+" is required in '"+o+"'.")}function convertUnrestrictedDouble(t){return Number(t)}function censorNegativeZero(t){return 0===t?0:t}function convertUnsignedLongLongWithEnforceRange(t,r){var o=Number.MAX_SAFE_INTEGER,l=Number(t);l=censorNegativeZero(l);if(!_(l))throw new TypeError(r+" is not a finite number");if((l=function integerPart(t){return censorNegativeZero(C(t))}(l))<0||l>o)throw new TypeError(r+" is outside the accepted range of 0 to "+o+", inclusive");return _(l)&&0!==l?l:0}function assertReadableStream(t,r){if(!IsReadableStream(t))throw new TypeError(r+" is not a ReadableStream.")}function AcquireReadableStreamDefaultReader(t){return new O(t)}function ReadableStreamAddReadRequest(t,r){t._reader._readRequests.push(r)}function ReadableStreamFulfillReadRequest(t,r,o){var l=t._reader._readRequests.shift();o?l._closeSteps():l._chunkSteps(r)}function ReadableStreamGetNumReadRequests(t){return t._reader._readRequests.length}function ReadableStreamHasDefaultReader(t){var r=t._reader;return void 0!==r&&!!IsReadableStreamDefaultReader(r)}var w,x,O=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 g}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,o=newPromise((function(o,l){t=o;r=l}));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 o};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(O.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(O.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function IsReadableStreamDefaultReader(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")&&t instanceof O}function ReadableStreamDefaultReaderRead(t,r){var o=t._ownerReadableStream;o._disturbed=!0;"closed"===o._state?r._closeSteps():"errored"===o._state?r._errorSteps(o._storedError):o._readableStreamController[k](r)}function defaultReaderBrandCheckException(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}if("symbol"==typeof r.asyncIterator){x=((w={})[r.asyncIterator]=function(){return this},w);Object.defineProperty(x,r.asyncIterator,{enumerable:!1})}var T=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,o,l=this._reader;if(void 0===l._ownerReadableStream)return promiseRejectedWith(readerLockException("iterate"));var c=newPromise((function(t,l){r=t;o=l}));ReadableStreamDefaultReaderRead(l,{_chunkSteps:function(o){t._ongoingPromise=void 0;m((function(){return r({value:o,done:!1})}))},_closeSteps:function(){t._ongoingPromise=void 0;t._isFinished=!0;ReadableStreamReaderGenericRelease(l);r({value:void 0,done:!0})},_errorSteps:function(r){t._ongoingPromise=void 0;t._isFinished=!0;ReadableStreamReaderGenericRelease(l);o(r)}});return c};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 o=ReadableStreamReaderGenericCancel(r,t);ReadableStreamReaderGenericRelease(r);return transformPromiseWith(o,(function(){return{value:t,done:!0}}))}ReadableStreamReaderGenericRelease(r);return promiseResolvedWith({value:t,done:!0})};return ReadableStreamAsyncIteratorImpl}(),R={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!==x&&Object.setPrototypeOf(R,x);function IsReadableStreamAsyncIterator(t){if(!typeIsObject(t))return!1;if(!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorImpl"))return!1;try{return t._asyncIteratorImpl instanceof T}catch(t){return!1}}function streamAsyncIteratorBrandCheckException(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}var E=Number.isNaN||function(t){return t!=t};function CreateArrayFromList(t){return t.slice()}function CopyDataBlockBytes(t,r,o,l,c){new Uint8Array(t).set(new Uint8Array(o,l,c),r)}function ArrayBufferSlice(t,r,o){if(t.slice)return t.slice(r,o);var l=o-r,c=new ArrayBuffer(l);CopyDataBlockBytes(c,0,t,r,l);return c}function CloneAsUint8Array(t){var r=ArrayBufferSlice(t.buffer,t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(r)}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,o){if(!function IsNonNegativeNumber(t){return!("number"!=typeof t||E(t)||t<0)}(o)||o===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:r,size:o});t._queueTotalSize+=o}function ResetQueue(t){t._queue=new g;t._queueTotalSize=0}var M=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;ReadableByteStreamControllerRespond(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(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");t.buffer;ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController,t)};return ReadableStreamBYOBRequest}();Object.defineProperties(M.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(M.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var D=function(){function ReadableByteStreamController(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableByteStreamController.prototype,"byobRequest",{get:function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("byobRequest");return ReadableByteStreamControllerGetBYOBRequest(this)},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");ReadableByteStreamControllerClose(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");ReadableByteStreamControllerEnqueue(this,t)};ReadableByteStreamController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("error");ReadableByteStreamControllerError(this,t)};ReadableByteStreamController.prototype[S]=function(t){ReadableByteStreamControllerClearPendingPullIntos(this);ResetQueue(this);var r=this._cancelAlgorithm(t);ReadableByteStreamControllerClearAlgorithms(this);return r};ReadableByteStreamController.prototype[k]=function(t){var r=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength;ReadableByteStreamControllerHandleQueueDrain(this);var l=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);t._chunkSteps(l)}else{var c=this._autoAllocateChunkSize;if(void 0!==c){var u=void 0;try{u=new ArrayBuffer(c)}catch(r){t._errorSteps(r);return}var h={buffer:u,bufferByteLength:c,byteOffset:0,byteLength:c,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(h)}ReadableStreamAddReadRequest(r,t);ReadableByteStreamControllerCallPullIfNeeded(this)}};return ReadableByteStreamController}();Object.defineProperties(D.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(D.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function IsReadableByteStreamController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")&&t instanceof D}function IsReadableStreamBYOBRequest(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")&&t instanceof M}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 ReadableByteStreamControllerClearPendingPullIntos(t){ReadableByteStreamControllerInvalidateBYOBRequest(t);t._pendingPullIntos=new g}function ReadableByteStreamControllerCommitPullIntoDescriptor(t,r){var o=!1;"closed"===t._state&&(o=!0);var l=ReadableByteStreamControllerConvertPullIntoDescriptor(r);"default"===r.readerType?ReadableStreamFulfillReadRequest(t,l,o):function ReadableStreamFulfillReadIntoRequest(t,r,o){var l=t._reader._readIntoRequests.shift();o?l._closeSteps(r):l._chunkSteps(r)}(t,l,o)}function ReadableByteStreamControllerConvertPullIntoDescriptor(t){var r=t.bytesFilled,o=t.elementSize;return new t.viewConstructor(t.buffer,t.byteOffset,r/o)}function ReadableByteStreamControllerEnqueueChunkToQueue(t,r,o,l){t._queue.push({buffer:r,byteOffset:o,byteLength:l});t._queueTotalSize+=l}function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,r){var o=r.elementSize,l=r.bytesFilled-r.bytesFilled%o,c=Math.min(t._queueTotalSize,r.byteLength-r.bytesFilled),u=r.bytesFilled+c,h=u-u%o,d=c,m=!1;if(h>l){d=h-r.bytesFilled;m=!0}for(var g=t._queue;d>0;){var y=g.peek(),v=Math.min(d,y.byteLength),S=r.byteOffset+r.bytesFilled;CopyDataBlockBytes(r.buffer,S,y.buffer,y.byteOffset,v);if(y.byteLength===v)g.shift();else{y.byteOffset+=v;y.byteLength-=v}t._queueTotalSize-=v;ReadableByteStreamControllerFillHeadPullIntoDescriptor(0,v,r);d-=v}return m}function ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,r,o){o.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 o=t._pendingPullIntos.peek();ReadableByteStreamControllerInvalidateBYOBRequest(t);"closed"===t._controlledReadableByteStream._state?function ReadableByteStreamControllerRespondInClosedState(t,r){var o=t._controlledReadableByteStream;if(ReadableStreamHasBYOBReader(o))for(;ReadableStreamGetNumReadIntoRequests(o)>0;)ReadableByteStreamControllerCommitPullIntoDescriptor(o,ReadableByteStreamControllerShiftPendingPullInto(t))}(t):function ReadableByteStreamControllerRespondInReadableState(t,r,o){ReadableByteStreamControllerFillHeadPullIntoDescriptor(0,r,o);if(!(o.bytesFilled<o.elementSize)){ReadableByteStreamControllerShiftPendingPullInto(t);var l=o.bytesFilled%o.elementSize;if(l>0){var c=o.byteOffset+o.bytesFilled,u=ArrayBufferSlice(o.buffer,c-l,c);ReadableByteStreamControllerEnqueueChunkToQueue(t,u,0,u.byteLength)}o.bytesFilled-=l;ReadableByteStreamControllerCommitPullIntoDescriptor(t._controlledReadableByteStream,o);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t)}}(t,r,o);ReadableByteStreamControllerCallPullIfNeeded(t)}function ReadableByteStreamControllerShiftPendingPullInto(t){return t._pendingPullIntos.shift()}function ReadableByteStreamControllerClearAlgorithms(t){t._pullAlgorithm=void 0;t._cancelAlgorithm=void 0}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 o=new TypeError("Insufficient bytes to fill elements in the given buffer");ReadableByteStreamControllerError(t,o);throw o}ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamClose(r)}}function ReadableByteStreamControllerEnqueue(t,r){var o=t._controlledReadableByteStream;if(!t._closeRequested&&"readable"===o._state){var l=r.buffer,c=r.byteOffset,u=r.byteLength,h=l;if(t._pendingPullIntos.length>0){var d=t._pendingPullIntos.peek();d.buffer;d.buffer=d.buffer}ReadableByteStreamControllerInvalidateBYOBRequest(t);if(ReadableStreamHasDefaultReader(o))0===ReadableStreamGetNumReadRequests(o)?ReadableByteStreamControllerEnqueueChunkToQueue(t,h,c,u):ReadableStreamFulfillReadRequest(o,new Uint8Array(h,c,u),!1);else if(ReadableStreamHasBYOBReader(o)){ReadableByteStreamControllerEnqueueChunkToQueue(t,h,c,u);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t)}else ReadableByteStreamControllerEnqueueChunkToQueue(t,h,c,u);ReadableByteStreamControllerCallPullIfNeeded(t)}}function ReadableByteStreamControllerError(t,r){var o=t._controlledReadableByteStream;if("readable"===o._state){ReadableByteStreamControllerClearPendingPullIntos(t);ResetQueue(t);ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamError(o,r)}}function ReadableByteStreamControllerGetBYOBRequest(t){if(null===t._byobRequest&&t._pendingPullIntos.length>0){var r=t._pendingPullIntos.peek(),o=new Uint8Array(r.buffer,r.byteOffset+r.bytesFilled,r.byteLength-r.bytesFilled),l=Object.create(M.prototype);!function SetUpReadableStreamBYOBRequest(t,r,o){t._associatedReadableByteStreamController=r;t._view=o}(l,t,o);t._byobRequest=l}return t._byobRequest}function ReadableByteStreamControllerGetDesiredSize(t){var r=t._controlledReadableByteStream._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function ReadableByteStreamControllerRespond(t,r){var o=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")}else{if(0===r)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(o.bytesFilled+r>o.byteLength)throw new RangeError("bytesWritten out of range")}o.buffer=o.buffer;ReadableByteStreamControllerRespondInternal(t,r)}function ReadableByteStreamControllerRespondWithNewView(t,r){var o=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==r.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===r.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(o.byteOffset+o.bytesFilled!==r.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(o.bufferByteLength!==r.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(o.bytesFilled+r.byteLength>o.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");o.buffer=r.buffer;ReadableByteStreamControllerRespondInternal(t,r.byteLength)}function SetUpReadableByteStreamController(t,r,o,l,c,u,h){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=u;r._pullAlgorithm=l;r._cancelAlgorithm=c;r._autoAllocateChunkSize=h;r._pendingPullIntos=new g;t._readableStreamController=r;uponPromise(promiseResolvedWith(o()),(function(){r._started=!0;ReadableByteStreamControllerCallPullIfNeeded(r)}),(function(t){ReadableByteStreamControllerError(r,t)}))}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 AcquireReadableStreamBYOBReader(t){return new j(t)}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 j=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 g}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"));t.buffer;if(void 0===this._ownerReadableStream)return promiseRejectedWith(readerLockException("read from"));var r,o,l=newPromise((function(t,l){r=t;o=l}));ReadableStreamBYOBReaderRead(this,t,{_chunkSteps:function(t){return r({value:t,done:!1})},_closeSteps:function(t){return r({value:t,done:!0})},_errorSteps:function(t){return o(t)}});return l};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(j.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(j.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function IsReadableStreamBYOBReader(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")&&t instanceof j}function ReadableStreamBYOBReaderRead(t,r,o){var l=t._ownerReadableStream;l._disturbed=!0;"errored"===l._state?o._errorSteps(l._storedError):function ReadableByteStreamControllerPullInto(t,r,o){var l=t._controlledReadableByteStream,c=1;r.constructor!==DataView&&(c=r.constructor.BYTES_PER_ELEMENT);var u=r.constructor,h=r.buffer,d={buffer:h,bufferByteLength:h.byteLength,byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:c,viewConstructor:u,readerType:"byob"};if(t._pendingPullIntos.length>0){t._pendingPullIntos.push(d);ReadableStreamAddReadIntoRequest(l,o)}else if("closed"!==l._state){if(t._queueTotalSize>0){if(ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,d)){var m=ReadableByteStreamControllerConvertPullIntoDescriptor(d);ReadableByteStreamControllerHandleQueueDrain(t);o._chunkSteps(m);return}if(t._closeRequested){var g=new TypeError("Insufficient bytes to fill elements in the given buffer");ReadableByteStreamControllerError(t,g);o._errorSteps(g);return}}t._pendingPullIntos.push(d);ReadableStreamAddReadIntoRequest(l,o);ReadableByteStreamControllerCallPullIfNeeded(t)}else{var y=new u(d.buffer,d.byteOffset,0);o._closeSteps(y)}}(l._readableStreamController,r,o)}function byobReaderBrandCheckException(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}function ExtractHighWaterMark(t,r){var o=t.highWaterMark;if(void 0===o)return r;if(E(o)||o<0)throw new RangeError("Invalid highWaterMark");return o}function ExtractSizeAlgorithm(t){var r=t.size;return r||function(){return 1}}function convertQueuingStrategy(t,r){assertDictionary(t,r);var o=null==t?void 0:t.highWaterMark,l=null==t?void 0:t.size;return{highWaterMark:void 0===o?void 0:convertUnrestrictedDouble(o),size:void 0===l?void 0:convertQueuingStrategySize(l,r+" has member 'size' that")}}function convertQueuingStrategySize(t,r){assertFunction(t,r);return function(r){return convertUnrestrictedDouble(t(r))}}function convertUnderlyingSinkAbortCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertUnderlyingSinkCloseCallback(t,r,o){assertFunction(t,o);return function(){return promiseCall(t,r,[])}}function convertUnderlyingSinkStartCallback(t,r,o){assertFunction(t,o);return function(o){return reflectCall(t,r,[o])}}function convertUnderlyingSinkWriteCallback(t,r,o){assertFunction(t,o);return function(o,l){return promiseCall(t,r,[o,l])}}function assertWritableStream(t,r){if(!IsWritableStream(t))throw new TypeError(r+" is not a WritableStream.")}var L="function"==typeof AbortController,N=function(){function WritableStream(t,r){void 0===t&&(t={});void 0===r&&(r={});void 0===t?t=null:assertObject(t,"First parameter");var o=convertQueuingStrategy(r,"Second parameter"),l=function convertUnderlyingSink(t,r){assertDictionary(t,r);var o=null==t?void 0:t.abort,l=null==t?void 0:t.close,c=null==t?void 0:t.start,u=null==t?void 0:t.type,h=null==t?void 0:t.write;return{abort:void 0===o?void 0:convertUnderlyingSinkAbortCallback(o,t,r+" has member 'abort' that"),close:void 0===l?void 0:convertUnderlyingSinkCloseCallback(l,t,r+" has member 'close' that"),start:void 0===c?void 0:convertUnderlyingSinkStartCallback(c,t,r+" has member 'start' that"),write:void 0===h?void 0:convertUnderlyingSinkWriteCallback(h,t,r+" has member 'write' that"),type:u}}(t,"First parameter");InitializeWritableStream(this);if(void 0!==l.type)throw new RangeError("Invalid type is specified");var c=ExtractSizeAlgorithm(o);!function SetUpWritableStreamDefaultControllerFromUnderlyingSink(t,r,o,l){var c=Object.create(W.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(c)});void 0!==r.write&&(writeAlgorithm=function(t){return r.write(t,c)});void 0!==r.close&&(closeAlgorithm=function(){return r.close()});void 0!==r.abort&&(abortAlgorithm=function(t){return r.abort(t)});SetUpWritableStreamDefaultController(t,c,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,o,l)}(this,l,ExtractHighWaterMark(o,1),c)}Object.defineProperty(WritableStream.prototype,"locked",{get:function(){if(!IsWritableStream(this))throw streamBrandCheckException$2("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$2("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$2("close"))};WritableStream.prototype.getWriter=function(){if(!IsWritableStream(this))throw streamBrandCheckException$2("getWriter");return AcquireWritableStreamDefaultWriter(this)};return WritableStream}();Object.defineProperties(N.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(N.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});function AcquireWritableStreamDefaultWriter(t){return new U(t)}function InitializeWritableStream(t){t._state="writable";t._storedError=void 0;t._writer=void 0;t._writableStreamController=void 0;t._writeRequests=new g;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")&&t instanceof N}function IsWritableStreamLocked(t){return void 0!==t._writer}function WritableStreamAbort(t,r){var o;if("closed"===t._state||"errored"===t._state)return promiseResolvedWith(void 0);t._writableStreamController._abortReason=r;null===(o=t._writableStreamController._abortController)||void 0===o||o.abort();var l=t._state;if("closed"===l||"errored"===l)return promiseResolvedWith(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var c=!1;if("erroring"===l){c=!0;r=void 0}var u=newPromise((function(o,l){t._pendingAbortRequest={_promise:void 0,_resolve:o,_reject:l,_reason:r,_wasAlreadyErroring:c}}));t._pendingAbortRequest._promise=u;c||WritableStreamStartErroring(t,r);return u}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 o=newPromise((function(r,o){var l={_resolve:r,_reject:o};t._closeRequest=l})),l=t._writer;void 0!==l&&t._backpressure&&"writable"===r&&defaultWriterReadyPromiseResolve(l);!function WritableStreamDefaultControllerClose(t){EnqueueValueWithSize(t,H,0);WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}(t._writableStreamController);return o}function WritableStreamDealWithRejection(t,r){"writable"!==t._state?WritableStreamFinishErroring(t):WritableStreamStartErroring(t,r)}function WritableStreamStartErroring(t,r){var o=t._writableStreamController;t._state="erroring";t._storedError=r;var l=t._writer;void 0!==l&&WritableStreamDefaultWriterEnsureReadyPromiseRejected(l,r);!function WritableStreamHasOperationMarkedInFlight(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}(t)&&o._started&&WritableStreamFinishErroring(t)}function WritableStreamFinishErroring(t){t._state="errored";t._writableStreamController[v]();var r=t._storedError;t._writeRequests.forEach((function(t){t._reject(r)}));t._writeRequests=new g;if(void 0!==t._pendingAbortRequest){var o=t._pendingAbortRequest;t._pendingAbortRequest=void 0;if(o._wasAlreadyErroring){o._reject(r);WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}else uponPromise(t._writableStreamController[y](o._reason),(function(){o._resolve();WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}),(function(r){o._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 o=t._writer;void 0!==o&&r!==t._backpressure&&(r?function defaultWriterReadyPromiseReset(t){defaultWriterReadyPromiseInitialize(t)}(o):defaultWriterReadyPromiseResolve(o));t._backpressure=r}var U=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 o=t._storedError;defaultWriterReadyPromiseInitializeAsRejected(this,o);defaultWriterClosedPromiseInitializeAsRejected(this,o)}}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,o=r._state;return"errored"===o||"erroring"===o?null:"closed"===o?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(U.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(U.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function IsWritableStreamDefaultWriter(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")&&t instanceof U}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,o=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");WritableStreamDefaultWriterEnsureReadyPromiseRejected(t,o);WritableStreamDefaultWriterEnsureClosedPromiseRejected(t,o);r._writer=void 0;t._ownerWritableStream=void 0}function WritableStreamDefaultWriterWrite(t,r){var o=t._ownerWritableStream,l=o._writableStreamController,c=function WritableStreamDefaultControllerGetChunkSize(t,r){try{return t._strategySizeAlgorithm(r)}catch(r){WritableStreamDefaultControllerErrorIfNeeded(t,r);return 1}}(l,r);if(o!==t._ownerWritableStream)return promiseRejectedWith(defaultWriterLockException("write to"));var u=o._state;if("errored"===u)return promiseRejectedWith(o._storedError);if(WritableStreamCloseQueuedOrInFlight(o)||"closed"===u)return promiseRejectedWith(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===u)return promiseRejectedWith(o._storedError);var h=function WritableStreamAddWriteRequest(t){return newPromise((function(r,o){var l={_resolve:r,_reject:o};t._writeRequests.push(l)}))}(o);!function WritableStreamDefaultControllerWrite(t,r,o){try{EnqueueValueWithSize(t,r,o)}catch(r){WritableStreamDefaultControllerErrorIfNeeded(t,r);return}var l=t._controlledWritableStream;WritableStreamCloseQueuedOrInFlight(l)||"writable"!==l._state||WritableStreamUpdateBackpressure(l,WritableStreamDefaultControllerGetBackpressure(t));WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}(l,r,c);return h}var H={},W=function(){function WritableStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(WritableStreamDefaultController.prototype,"abortReason",{get:function(){if(!IsWritableStreamDefaultController(this))throw defaultControllerBrandCheckException$2("abortReason");return this._abortReason},enumerable:!1,configurable:!0});Object.defineProperty(WritableStreamDefaultController.prototype,"signal",{get:function(){if(!IsWritableStreamDefaultController(this))throw defaultControllerBrandCheckException$2("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0});WritableStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsWritableStreamDefaultController(this))throw defaultControllerBrandCheckException$2("error");"writable"===this._controlledWritableStream._state&&WritableStreamDefaultControllerError(this,t)};WritableStreamDefaultController.prototype[y]=function(t){var r=this._abortAlgorithm(t);WritableStreamDefaultControllerClearAlgorithms(this);return r};WritableStreamDefaultController.prototype[v]=function(){ResetQueue(this)};return WritableStreamDefaultController}();Object.defineProperties(W.prototype,{error:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(W.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function IsWritableStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")&&t instanceof W}function SetUpWritableStreamDefaultController(t,r,o,l,c,u,h,d){r._controlledWritableStream=t;t._writableStreamController=r;r._queue=void 0;r._queueTotalSize=void 0;ResetQueue(r);r._abortReason=void 0;r._abortController=function createAbortController(){if(L)return new AbortController}();r._started=!1;r._strategySizeAlgorithm=d;r._strategyHWM=h;r._writeAlgorithm=l;r._closeAlgorithm=c;r._abortAlgorithm=u;var m=WritableStreamDefaultControllerGetBackpressure(r);WritableStreamUpdateBackpressure(t,m);uponPromise(promiseResolvedWith(o()),(function(){r._started=!0;WritableStreamDefaultControllerAdvanceQueueIfNeeded(r)}),(function(o){r._started=!0;WritableStreamDealWithRejection(t,o)}))}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 o=function PeekQueueValue(t){return t._queue.peek().value}(t);o===H?function WritableStreamDefaultControllerProcessClose(t){var r=t._controlledWritableStream;!function WritableStreamMarkCloseRequestInFlight(t){t._inFlightCloseRequest=t._closeRequest;t._closeRequest=void 0}(r);DequeueValue(t);var o=t._closeAlgorithm();WritableStreamDefaultControllerClearAlgorithms(t);uponPromise(o,(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 o=t._controlledWritableStream;!function WritableStreamMarkFirstWriteRequestInFlight(t){t._inFlightWriteRequest=t._writeRequests.shift()}(o);uponPromise(t._writeAlgorithm(r),(function(){!function WritableStreamFinishInFlightWrite(t){t._inFlightWriteRequest._resolve(void 0);t._inFlightWriteRequest=void 0}(o);var r=o._state;DequeueValue(t);if(!WritableStreamCloseQueuedOrInFlight(o)&&"writable"===r){var l=WritableStreamDefaultControllerGetBackpressure(t);WritableStreamUpdateBackpressure(o,l)}WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}),(function(r){"writable"===o._state&&WritableStreamDefaultControllerClearAlgorithms(t);!function WritableStreamFinishInFlightWriteWithError(t,r){t._inFlightWriteRequest._reject(r);t._inFlightWriteRequest=void 0;WritableStreamDealWithRejection(t,r)}(o,r)}))}(t,o)}}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 o=t._controlledWritableStream;WritableStreamDefaultControllerClearAlgorithms(t);WritableStreamStartErroring(o,r)}function streamBrandCheckException$2(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function defaultControllerBrandCheckException$2(t){return new TypeError("WritableStreamDefaultController.prototype."+t+" can only be used on a WritableStreamDefaultController")}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,o){t._closedPromise_resolve=r;t._closedPromise_reject=o;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,o){t._readyPromise_resolve=r;t._readyPromise_reject=o}));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 q="undefined"!=typeof DOMException?DOMException:void 0,$=function isDOMExceptionConstructor(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{new t;return!0}catch(t){return!1}}(q)?q: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,o,l,c,u){var h=AcquireReadableStreamDefaultReader(t),d=AcquireWritableStreamDefaultWriter(r);t._disturbed=!0;var m=!1,g=promiseResolvedWith(void 0);return newPromise((function(y,v){var S;if(void 0!==u){S=function(){var o=new $("Aborted","AbortError"),u=[];l||u.push((function(){return"writable"===r._state?WritableStreamAbort(r,o):promiseResolvedWith(void 0)}));c||u.push((function(){return"readable"===t._state?ReadableStreamCancel(t,o):promiseResolvedWith(void 0)}));shutdownWithAction((function(){return Promise.all(u.map((function(t){return t()})))}),!0,o)};if(u.aborted){S();return}u.addEventListener("abort",S)}isOrBecomesErrored(t,h._closedPromise,(function(t){l?shutdown(!0,t):shutdownWithAction((function(){return WritableStreamAbort(r,t)}),!0,t)}));isOrBecomesErrored(r,d._closedPromise,(function(r){c?shutdown(!0,r):shutdownWithAction((function(){return ReadableStreamCancel(t,r)}),!0,r)}));!function isOrBecomesClosed(t,r,o){"closed"===t._state?o():uponFulfillment(r,o)}(t,h._closedPromise,(function(){o?shutdown():shutdownWithAction((function(){return function WritableStreamDefaultWriterCloseWithErrorPropagation(t){var r=t._ownerWritableStream,o=r._state;return WritableStreamCloseQueuedOrInFlight(r)||"closed"===o?promiseResolvedWith(void 0):"errored"===o?promiseRejectedWith(r._storedError):WritableStreamDefaultWriterClose(t)}(d)}))}));if(WritableStreamCloseQueuedOrInFlight(r)||"closed"===r._state){var k=new TypeError("the destination writable stream closed before all data could be piped to it");c?shutdown(!0,k):shutdownWithAction((function(){return ReadableStreamCancel(t,k)}),!0,k)}setPromiseIsHandledToTrue(function pipeLoop(){return newPromise((function(t,r){!function next(o){o?t():PerformPromiseThen(function pipeStep(){return m?promiseResolvedWith(!0):PerformPromiseThen(d._readyPromise,(function(){return newPromise((function(t,r){ReadableStreamDefaultReaderRead(h,{_chunkSteps:function(r){g=PerformPromiseThen(WritableStreamDefaultWriterWrite(d,r),void 0,noop);t(!1)},_closeSteps:function(){return t(!0)},_errorSteps:r})}))}))}(),next,r)}(!1)}))}());function waitForWritesToFinish(){var t=g;return PerformPromiseThen(g,(function(){return t!==g?waitForWritesToFinish():void 0}))}function isOrBecomesErrored(t,r,o){"errored"===t._state?o(t._storedError):uponRejection(r,o)}function shutdownWithAction(t,o,l){if(!m){m=!0;"writable"!==r._state||WritableStreamCloseQueuedOrInFlight(r)?doTheRest():uponFulfillment(waitForWritesToFinish(),doTheRest)}function doTheRest(){uponPromise(t(),(function(){return finalize(o,l)}),(function(t){return finalize(!0,t)}))}}function shutdown(t,o){if(!m){m=!0;"writable"!==r._state||WritableStreamCloseQueuedOrInFlight(r)?finalize(t,o):uponFulfillment(waitForWritesToFinish(),(function(){return finalize(t,o)}))}}function finalize(t,r){WritableStreamDefaultWriterRelease(d);ReadableStreamReaderGenericRelease(h);void 0!==u&&u.removeEventListener("abort",S);t?v(r):y(void 0)}}))}var X=function(){function ReadableStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableStreamDefaultController.prototype,"desiredSize",{get:function(){if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException$1("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this)},enumerable:!1,configurable:!0});ReadableStreamDefaultController.prototype.close=function(){if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException$1("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$1("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$1("error");ReadableStreamDefaultControllerError(this,t)};ReadableStreamDefaultController.prototype[S]=function(t){ResetQueue(this);var r=this._cancelAlgorithm(t);ReadableStreamDefaultControllerClearAlgorithms(this);return r};ReadableStreamDefaultController.prototype[k]=function(t){var r=this._controlledReadableStream;if(this._queue.length>0){var o=DequeueValue(this);if(this._closeRequested&&0===this._queue.length){ReadableStreamDefaultControllerClearAlgorithms(this);ReadableStreamClose(r)}else ReadableStreamDefaultControllerCallPullIfNeeded(this);t._chunkSteps(o)}else{ReadableStreamAddReadRequest(r,t);ReadableStreamDefaultControllerCallPullIfNeeded(this)}};return ReadableStreamDefaultController}();Object.defineProperties(X.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(X.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function IsReadableStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")&&t instanceof X}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 o=t._controlledReadableStream;if(IsReadableStreamLocked(o)&&ReadableStreamGetNumReadRequests(o)>0)ReadableStreamFulfillReadRequest(o,r,!1);else{var l=void 0;try{l=t._strategySizeAlgorithm(r)}catch(r){ReadableStreamDefaultControllerError(t,r);throw r}try{EnqueueValueWithSize(t,r,l)}catch(r){ReadableStreamDefaultControllerError(t,r);throw r}}ReadableStreamDefaultControllerCallPullIfNeeded(t)}}function ReadableStreamDefaultControllerError(t,r){var o=t._controlledReadableStream;if("readable"===o._state){ResetQueue(t);ReadableStreamDefaultControllerClearAlgorithms(t);ReadableStreamError(o,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,o,l,c,u,h){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=h;r._strategyHWM=u;r._pullAlgorithm=l;r._cancelAlgorithm=c;t._readableStreamController=r;uponPromise(promiseResolvedWith(o()),(function(){r._started=!0;ReadableStreamDefaultControllerCallPullIfNeeded(r)}),(function(t){ReadableStreamDefaultControllerError(r,t)}))}function defaultControllerBrandCheckException$1(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}function ReadableStreamTee(t,r){return IsReadableByteStreamController(t._readableStreamController)?function ReadableByteStreamTee(t){var r,o,l,c,u,h=AcquireReadableStreamDefaultReader(t),d=!1,g=!1,y=!1,v=newPromise((function(t){u=t}));function forwardReaderError(t){uponRejection(t._closedPromise,(function(r){if(t===h){ReadableByteStreamControllerError(l._readableStreamController,r);ReadableByteStreamControllerError(c._readableStreamController,r);g&&y||u(void 0)}}))}function pullWithDefaultReader(){if(IsReadableStreamBYOBReader(h)){ReadableStreamReaderGenericRelease(h);forwardReaderError(h=AcquireReadableStreamDefaultReader(t))}ReadableStreamDefaultReaderRead(h,{_chunkSteps:function(r){m((function(){d=!1;var o=r,h=r;if(!g&&!y)try{h=CloneAsUint8Array(r)}catch(r){ReadableByteStreamControllerError(l._readableStreamController,r);ReadableByteStreamControllerError(c._readableStreamController,r);u(ReadableStreamCancel(t,r));return}g||ReadableByteStreamControllerEnqueue(l._readableStreamController,o);y||ReadableByteStreamControllerEnqueue(c._readableStreamController,h)}))},_closeSteps:function(){d=!1;g||ReadableByteStreamControllerClose(l._readableStreamController);y||ReadableByteStreamControllerClose(c._readableStreamController);l._readableStreamController._pendingPullIntos.length>0&&ReadableByteStreamControllerRespond(l._readableStreamController,0);c._readableStreamController._pendingPullIntos.length>0&&ReadableByteStreamControllerRespond(c._readableStreamController,0);g&&y||u(void 0)},_errorSteps:function(){d=!1}})}function pullWithBYOBReader(r,o){if(IsReadableStreamDefaultReader(h)){ReadableStreamReaderGenericRelease(h);forwardReaderError(h=AcquireReadableStreamBYOBReader(t))}var v=o?c:l,S=o?l:c;ReadableStreamBYOBReaderRead(h,r,{_chunkSteps:function(r){m((function(){d=!1;var l=o?y:g;if(o?g:y)l||ReadableByteStreamControllerRespondWithNewView(v._readableStreamController,r);else{var c=void 0;try{c=CloneAsUint8Array(r)}catch(r){ReadableByteStreamControllerError(v._readableStreamController,r);ReadableByteStreamControllerError(S._readableStreamController,r);u(ReadableStreamCancel(t,r));return}l||ReadableByteStreamControllerRespondWithNewView(v._readableStreamController,r);ReadableByteStreamControllerEnqueue(S._readableStreamController,c)}}))},_closeSteps:function(t){d=!1;var r=o?y:g,l=o?g:y;r||ReadableByteStreamControllerClose(v._readableStreamController);l||ReadableByteStreamControllerClose(S._readableStreamController);if(void 0!==t){r||ReadableByteStreamControllerRespondWithNewView(v._readableStreamController,t);!l&&S._readableStreamController._pendingPullIntos.length>0&&ReadableByteStreamControllerRespond(S._readableStreamController,0)}r&&l||u(void 0)},_errorSteps:function(){d=!1}})}function pull1Algorithm(){if(d)return promiseResolvedWith(void 0);d=!0;var t=ReadableByteStreamControllerGetBYOBRequest(l._readableStreamController);null===t?pullWithDefaultReader():pullWithBYOBReader(t._view,!1);return promiseResolvedWith(void 0)}function pull2Algorithm(){if(d)return promiseResolvedWith(void 0);d=!0;var t=ReadableByteStreamControllerGetBYOBRequest(c._readableStreamController);null===t?pullWithDefaultReader():pullWithBYOBReader(t._view,!0);return promiseResolvedWith(void 0)}function cancel1Algorithm(l){g=!0;r=l;if(y){var c=CreateArrayFromList([r,o]),h=ReadableStreamCancel(t,c);u(h)}return v}function cancel2Algorithm(l){y=!0;o=l;if(g){var c=CreateArrayFromList([r,o]),h=ReadableStreamCancel(t,c);u(h)}return v}function startAlgorithm(){}l=CreateReadableByteStream(startAlgorithm,pull1Algorithm,cancel1Algorithm);c=CreateReadableByteStream(startAlgorithm,pull2Algorithm,cancel2Algorithm);forwardReaderError(h);return[l,c]}(t):function ReadableStreamDefaultTee(t,r){var o,l,c,u,h,d=AcquireReadableStreamDefaultReader(t),g=!1,y=!1,v=!1,S=newPromise((function(t){h=t}));function pullAlgorithm(){if(g)return promiseResolvedWith(void 0);g=!0;ReadableStreamDefaultReaderRead(d,{_chunkSteps:function(t){m((function(){g=!1;var r=t,o=t;y||ReadableStreamDefaultControllerEnqueue(c._readableStreamController,r);v||ReadableStreamDefaultControllerEnqueue(u._readableStreamController,o)}))},_closeSteps:function(){g=!1;y||ReadableStreamDefaultControllerClose(c._readableStreamController);v||ReadableStreamDefaultControllerClose(u._readableStreamController);y&&v||h(void 0)},_errorSteps:function(){g=!1}});return promiseResolvedWith(void 0)}function cancel1Algorithm(r){y=!0;o=r;if(v){var c=CreateArrayFromList([o,l]),u=ReadableStreamCancel(t,c);h(u)}return S}function cancel2Algorithm(r){v=!0;l=r;if(y){var c=CreateArrayFromList([o,l]),u=ReadableStreamCancel(t,c);h(u)}return S}function startAlgorithm(){}c=CreateReadableStream(startAlgorithm,pullAlgorithm,cancel1Algorithm);u=CreateReadableStream(startAlgorithm,pullAlgorithm,cancel2Algorithm);uponRejection(d._closedPromise,(function(t){ReadableStreamDefaultControllerError(c._readableStreamController,t);ReadableStreamDefaultControllerError(u._readableStreamController,t);y&&v||h(void 0)}));return[c,u]}(t)}function convertUnderlyingSourceCancelCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertUnderlyingSourcePullCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertUnderlyingSourceStartCallback(t,r,o){assertFunction(t,o);return function(o){return reflectCall(t,r,[o])}}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 o=null==t?void 0:t.preventAbort,l=null==t?void 0:t.preventCancel,c=null==t?void 0:t.preventClose,u=null==t?void 0:t.signal;void 0!==u&&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.")}(u,r+" has member 'signal' that");return{preventAbort:Boolean(o),preventCancel:Boolean(l),preventClose:Boolean(c),signal:u}}var z=function(){function ReadableStream(t,r){void 0===t&&(t={});void 0===r&&(r={});void 0===t?t=null:assertObject(t,"First parameter");var o=convertQueuingStrategy(r,"Second parameter"),l=function convertUnderlyingDefaultOrByteSource(t,r){assertDictionary(t,r);var o=t,l=null==o?void 0:o.autoAllocateChunkSize,c=null==o?void 0:o.cancel,u=null==o?void 0:o.pull,h=null==o?void 0:o.start,d=null==o?void 0:o.type;return{autoAllocateChunkSize:void 0===l?void 0:convertUnsignedLongLongWithEnforceRange(l,r+" has member 'autoAllocateChunkSize' that"),cancel:void 0===c?void 0:convertUnderlyingSourceCancelCallback(c,o,r+" has member 'cancel' that"),pull:void 0===u?void 0:convertUnderlyingSourcePullCallback(u,o,r+" has member 'pull' that"),start:void 0===h?void 0:convertUnderlyingSourceStartCallback(h,o,r+" has member 'start' that"),type:void 0===d?void 0:convertReadableStreamType(d,r+" has member 'type' that")}}(t,"First parameter");InitializeReadableStream(this);if("bytes"===l.type){if(void 0!==o.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function SetUpReadableByteStreamControllerFromUnderlyingSource(t,r,o){var l=Object.create(D.prototype),startAlgorithm=function(){},pullAlgorithm=function(){return promiseResolvedWith(void 0)},cancelAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(l)});void 0!==r.pull&&(pullAlgorithm=function(){return r.pull(l)});void 0!==r.cancel&&(cancelAlgorithm=function(t){return r.cancel(t)});var c=r.autoAllocateChunkSize;if(0===c)throw new TypeError("autoAllocateChunkSize must be greater than 0");SetUpReadableByteStreamController(t,l,startAlgorithm,pullAlgorithm,cancelAlgorithm,o,c)}(this,l,ExtractHighWaterMark(o,0))}else{var c=ExtractSizeAlgorithm(o);!function SetUpReadableStreamDefaultControllerFromUnderlyingSource(t,r,o,l){var c=Object.create(X.prototype),startAlgorithm=function(){},pullAlgorithm=function(){return promiseResolvedWith(void 0)},cancelAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(c)});void 0!==r.pull&&(pullAlgorithm=function(){return r.pull(c)});void 0!==r.cancel&&(cancelAlgorithm=function(t){return r.cancel(t)});SetUpReadableStreamDefaultController(t,c,startAlgorithm,pullAlgorithm,cancelAlgorithm,o,l)}(this,l,ExtractHighWaterMark(o,1),c)}}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 o=null==t?void 0:t.mode;return{mode:void 0===o?void 0:convertReadableStreamReaderMode(o,r+" has member 'mode' that")}}(t,"First parameter").mode?AcquireReadableStreamDefaultReader(this):AcquireReadableStreamBYOBReader(this)};ReadableStream.prototype.pipeThrough=function(t,r){void 0===r&&(r={});if(!IsReadableStream(this))throw streamBrandCheckException$1("pipeThrough");assertRequiredArgument(t,1,"pipeThrough");var o=function convertReadableWritablePair(t,r){assertDictionary(t,r);var o=null==t?void 0:t.readable;assertRequiredField(o,"readable","ReadableWritablePair");assertReadableStream(o,r+" has member 'readable' that");var l=null==t?void 0:t.writable;assertRequiredField(l,"writable","ReadableWritablePair");assertWritableStream(l,r+" has member 'writable' that");return{readable:o,writable:l}}(t,"First parameter"),l=convertPipeOptions(r,"Second parameter");if(IsReadableStreamLocked(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(IsWritableStreamLocked(o.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");setPromiseIsHandledToTrue(ReadableStreamPipeTo(this,o.writable,l.preventClose,l.preventAbort,l.preventCancel,l.signal));return o.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 o;try{o=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,o.preventClose,o.preventAbort,o.preventCancel,o.signal)};ReadableStream.prototype.tee=function(){if(!IsReadableStream(this))throw streamBrandCheckException$1("tee");return CreateArrayFromList(ReadableStreamTee(this))};ReadableStream.prototype.values=function(t){void 0===t&&(t=void 0);if(!IsReadableStream(this))throw streamBrandCheckException$1("values");return function AcquireReadableStreamAsyncIterator(t,r){var o=AcquireReadableStreamDefaultReader(t),l=new T(o,r),c=Object.create(R);c._asyncIteratorImpl=l;return c}(this,function convertIteratorOptions(t,r){assertDictionary(t,r);var o=null==t?void 0:t.preventCancel;return{preventCancel:Boolean(o)}}(t,"First parameter").preventCancel)};return ReadableStream}();Object.defineProperties(z.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(z.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0});"symbol"==typeof r.asyncIterator&&Object.defineProperty(z.prototype,r.asyncIterator,{value:z.prototype.values,writable:!0,configurable:!0});function CreateReadableStream(t,r,o,l,c){void 0===l&&(l=1);void 0===c&&(c=function(){return 1});var u=Object.create(z.prototype);InitializeReadableStream(u);SetUpReadableStreamDefaultController(u,Object.create(X.prototype),t,r,o,l,c);return u}function CreateReadableByteStream(t,r,o){var l=Object.create(z.prototype);InitializeReadableStream(l);SetUpReadableByteStreamController(l,Object.create(D.prototype),t,r,o,0,void 0);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")&&t instanceof z}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);var o=t._reader;if(void 0!==o&&IsReadableStreamBYOBReader(o)){o._readIntoRequests.forEach((function(t){t._closeSteps(void 0)}));o._readIntoRequests=new g}return transformPromiseWith(t._readableStreamController[S](r),noop)}function ReadableStreamClose(t){t._state="closed";var r=t._reader;if(void 0!==r){defaultReaderClosedPromiseResolve(r);if(IsReadableStreamDefaultReader(r)){r._readRequests.forEach((function(t){t._closeSteps()}));r._readRequests=new g}}}function ReadableStreamError(t,r){t._state="errored";t._storedError=r;var o=t._reader;if(void 0!==o){defaultReaderClosedPromiseReject(o,r);if(IsReadableStreamDefaultReader(o)){o._readRequests.forEach((function(t){t._errorSteps(r)}));o._readRequests=new g}else{o._readIntoRequests.forEach((function(t){t._errorSteps(r)}));o._readIntoRequests=new g}}}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 o=null==t?void 0:t.highWaterMark;assertRequiredField(o,"highWaterMark","QueuingStrategyInit");return{highWaterMark:convertUnrestrictedDouble(o)}}var byteLengthSizeFunction=function(t){return t.byteLength};Object.defineProperty(byteLengthSizeFunction,"name",{value:"size",configurable:!0});var G=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 byteLengthSizeFunction},enumerable:!1,configurable:!0});return ByteLengthQueuingStrategy}();Object.defineProperties(G.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(G.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")&&t instanceof G}var countSizeFunction=function(){return 1};Object.defineProperty(countSizeFunction,"name",{value:"size",configurable:!0});var V=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 countSizeFunction},enumerable:!1,configurable:!0});return CountQueuingStrategy}();Object.defineProperties(V.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(V.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")&&t instanceof V}function convertTransformerFlushCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertTransformerStartCallback(t,r,o){assertFunction(t,o);return function(o){return reflectCall(t,r,[o])}}function convertTransformerTransformCallback(t,r,o){assertFunction(t,o);return function(o,l){return promiseCall(t,r,[o,l])}}var Y=function(){function TransformStream(t,r,o){void 0===t&&(t={});void 0===r&&(r={});void 0===o&&(o={});void 0===t&&(t=null);var l=convertQueuingStrategy(r,"Second parameter"),c=convertQueuingStrategy(o,"Third parameter"),u=function convertTransformer(t,r){assertDictionary(t,r);var o=null==t?void 0:t.flush,l=null==t?void 0:t.readableType,c=null==t?void 0:t.start,u=null==t?void 0:t.transform,h=null==t?void 0:t.writableType;return{flush:void 0===o?void 0:convertTransformerFlushCallback(o,t,r+" has member 'flush' that"),readableType:l,start:void 0===c?void 0:convertTransformerStartCallback(c,t,r+" has member 'start' that"),transform:void 0===u?void 0:convertTransformerTransformCallback(u,t,r+" has member 'transform' that"),writableType:h}}(t,"First parameter");if(void 0!==u.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==u.writableType)throw new RangeError("Invalid writableType specified");var h,d=ExtractHighWaterMark(c,0),m=ExtractSizeAlgorithm(c),g=ExtractHighWaterMark(l,1),y=ExtractSizeAlgorithm(l);!function InitializeTransformStream(t,r,o,l,c,u){function startAlgorithm(){return r}function writeAlgorithm(r){return function TransformStreamDefaultSinkWriteAlgorithm(t,r){var o=t._transformStreamController;return t._backpressure?transformPromiseWith(t._backpressureChangePromise,(function(){var l=t._writable;if("erroring"===l._state)throw l._storedError;return TransformStreamDefaultControllerPerformTransform(o,r)})):TransformStreamDefaultControllerPerformTransform(o,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,o=t._transformStreamController,l=o._flushAlgorithm();TransformStreamDefaultControllerClearAlgorithms(o);return transformPromiseWith(l,(function(){if("errored"===r._state)throw r._storedError;ReadableStreamDefaultControllerClose(r._readableStreamController)}),(function(o){TransformStreamError(t,o);throw r._storedError}))}(t)}t._writable=function CreateWritableStream(t,r,o,l,c,u){void 0===c&&(c=1);void 0===u&&(u=function(){return 1});var h=Object.create(N.prototype);InitializeWritableStream(h);SetUpWritableStreamDefaultController(h,Object.create(W.prototype),t,r,o,l,c,u);return h}(startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,o,l);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,c,u);t._backpressure=void 0;t._backpressureChangePromise=void 0;t._backpressureChangePromise_resolve=void 0;TransformStreamSetBackpressure(t,!0);t._transformStreamController=void 0}(this,newPromise((function(t){h=t})),g,y,d,m);!function SetUpTransformStreamDefaultControllerFromTransformer(t,r){var o=Object.create(K.prototype),transformAlgorithm=function(t){try{TransformStreamDefaultControllerEnqueue(o,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,o)});void 0!==r.flush&&(flushAlgorithm=function(){return r.flush(o)});!function SetUpTransformStreamDefaultController(t,r,o,l){r._controlledTransformStream=t;t._transformStreamController=r;r._transformAlgorithm=o;r._flushAlgorithm=l}(t,o,transformAlgorithm,flushAlgorithm)}(this,u);void 0!==u.start?h(u.start(this._transformStreamController)):h(void 0)}Object.defineProperty(TransformStream.prototype,"readable",{get:function(){if(!IsTransformStream(this))throw streamBrandCheckException("readable");return this._readable},enumerable:!1,configurable:!0});Object.defineProperty(TransformStream.prototype,"writable",{get:function(){if(!IsTransformStream(this))throw streamBrandCheckException("writable");return this._writable},enumerable:!1,configurable:!0});return TransformStream}();Object.defineProperties(Y.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(Y.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});function IsTransformStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")&&t instanceof Y}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 K=function(){function TransformStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(TransformStreamDefaultController.prototype,"desiredSize",{get:function(){if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException("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("enqueue");TransformStreamDefaultControllerEnqueue(this,t)};TransformStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException("error");!function TransformStreamDefaultControllerError(t,r){TransformStreamError(t._controlledTransformStream,r)}(this,t)};TransformStreamDefaultController.prototype.terminate=function(){if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException("terminate");!function TransformStreamDefaultControllerTerminate(t){var r=t._controlledTransformStream;ReadableStreamDefaultControllerClose(r._readable._readableStreamController);var o=new TypeError("TransformStream terminated");TransformStreamErrorWritableAndUnblockWrite(r,o)}(this)};return TransformStreamDefaultController}();Object.defineProperties(K.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(K.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function IsTransformStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")&&t instanceof K}function TransformStreamDefaultControllerClearAlgorithms(t){t._transformAlgorithm=void 0;t._flushAlgorithm=void 0}function TransformStreamDefaultControllerEnqueue(t,r){var o=t._controlledTransformStream,l=o._readable._readableStreamController;if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(l))throw new TypeError("Readable side is not in a state that permits enqueue");try{ReadableStreamDefaultControllerEnqueue(l,r)}catch(t){TransformStreamErrorWritableAndUnblockWrite(o,t);throw o._readable._storedError}(function ReadableStreamDefaultControllerHasBackpressure(t){return!ReadableStreamDefaultControllerShouldCallPull(t)})(l)!==o._backpressure&&TransformStreamSetBackpressure(o,!0)}function TransformStreamDefaultControllerPerformTransform(t,r){return transformPromiseWith(t._transformAlgorithm(r),void 0,(function(r){TransformStreamError(t._controlledTransformStream,r);throw r}))}function defaultControllerBrandCheckException(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function streamBrandCheckException(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=G;t.CountQueuingStrategy=V;t.ReadableByteStreamController=D;t.ReadableStream=z;t.ReadableStreamBYOBReader=j;t.ReadableStreamBYOBRequest=M;t.ReadableStreamDefaultController=X;t.ReadableStreamDefaultReader=O;t.TransformStream=Y;t.TransformStreamDefaultController=K;t.WritableStream=N;t.WritableStreamDefaultController=W;t.WritableStreamDefaultWriter=U;Object.defineProperty(t,"__esModule",{value:!0})})(r)},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.clearPrimitiveCaches=function clearPrimitiveCaches(){m._clearCache();d._clearCache();v._clearCache()};r.isCmd=function isCmd(t,r){return t instanceof m&&(void 0===r||t.cmd===r)};r.isDict=function isDict(t,r){return t instanceof y&&(void 0===r||isName(t.get("Type"),r))};r.isEOF=function isEOF(t){return t===h};r.isName=isName;r.isRef=function isRef(t){return t instanceof v};r.isRefsEqual=function isRefsEqual(t,r){return t.num===r.num&&t.gen===r.gen};r.isStream=function isStream(t){return t instanceof u.BaseStream};r.RefSetCache=r.RefSet=r.Ref=r.Name=r.EOF=r.Dict=r.Cmd=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(115);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h={};r.EOF=h;var d=function NameClosure(){var t=Object.create(null);return function(){function Name(t){_classCallCheck(this,Name);this.name=t}_createClass(Name,null,[{key:"get",value:function get(r){var o=t[r];return o||(t[r]=new Name(r))}},{key:"_clearCache",value:function _clearCache(){t=Object.create(null)}}]);return Name}()}();r.Name=d;var m=function CmdClosure(){var t=Object.create(null);return function(){function Cmd(t){_classCallCheck(this,Cmd);this.cmd=t}_createClass(Cmd,null,[{key:"get",value:function get(r){var o=t[r];return o||(t[r]=new Cmd(r))}},{key:"_clearCache",value:function _clearCache(){t=Object.create(null)}}]);return Cmd}()}();r.Cmd=m;var g=function nonSerializableClosure(){return g},y=function(){function Dict(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,Dict);this._map=Object.create(null);this.xref=t;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=g}_createClass(Dict,[{key:"assignXref",value:function assignXref(t){this.xref=t}},{key:"size",get:function get(){return Object.keys(this._map).length}},{key:"get",value:function get(t,r,o){var l=this._map[t];void 0===l&&void 0!==r&&void 0===(l=this._map[r])&&void 0!==o&&(l=this._map[o]);return l instanceof v&&this.xref?this.xref.fetch(l,this.suppressEncryption):l}},{key:"getAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t,r,o){var c;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:void 0===(c=this._map[t])&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);if(!(c instanceof v&&this.xref)){l.next=4;break}return l.abrupt("return",this.xref.fetchAsync(c,this.suppressEncryption));case 4:return l.abrupt("return",c);case 5:case"end":return l.stop()}}),_callee,this)}))),function getAsync(r,o,l){return t.apply(this,arguments)})},{key:"getArray",value:function getArray(t,r,o){var l=this._map[t];void 0===l&&void 0!==r&&void 0===(l=this._map[r])&&void 0!==o&&(l=this._map[o]);l instanceof v&&this.xref&&(l=this.xref.fetch(l,this.suppressEncryption));if(Array.isArray(l))for(var c=0,u=(l=l.slice()).length;c<u;c++)l[c]instanceof v&&this.xref&&(l[c]=this.xref.fetch(l[c],this.suppressEncryption));return l}},{key:"getRaw",value:function getRaw(t){return this._map[t]}},{key:"getKeys",value:function getKeys(){return Object.keys(this._map)}},{key:"getRawValues",value:function getRawValues(){return Object.values(this._map)}},{key:"set",value:function set(t,r){this._map[t]=r}},{key:"has",value:function has(t){return void 0!==this._map[t]}},{key:"forEach",value:function forEach(t){for(var r in this._map)t(r,this.get(r))}}],[{key:"empty",get:function get(){var t=new Dict(null);t.set=function(t,r){(0,c.unreachable)("Should not call `set` on the empty dictionary.")};return(0,c.shadow)(this,"empty",t)}},{key:"merge",value:function merge(t){var r,o=t.xref,l=t.dictArray,c=t.mergeSubDicts,u=void 0!==c&&c,h=new Dict(o),d=new Map,m=_createForOfIteratorHelper(l);try{for(m.s();!(r=m.n()).done;){var g=r.value;if(g instanceof Dict)for(var y=0,v=Object.entries(g._map);y<v.length;y++){var S=_slicedToArray(v[y],2),k=S[0],_=S[1],C=d.get(k);if(void 0===C){C=[];d.set(k,C)}else if(!u)continue;C.push(_)}}}catch(t){m.e(t)}finally{m.f()}var w,x=_createForOfIteratorHelper(d);try{for(x.s();!(w=x.n()).done;){var O=_slicedToArray(w.value,2),T=O[0],R=O[1];if(1!==R.length&&R[0]instanceof Dict){var E,M=new Dict(o),D=_createForOfIteratorHelper(R);try{for(D.s();!(E=D.n()).done;){var j=E.value;if(j instanceof Dict)for(var L=0,N=Object.entries(j._map);L<N.length;L++){var U=_slicedToArray(N[L],2),H=U[0],W=U[1];void 0===M._map[H]&&(M._map[H]=W)}}}catch(t){D.e(t)}finally{D.f()}M.size>0&&(h._map[T]=M)}else h._map[T]=R[0]}}catch(t){x.e(t)}finally{x.f()}d.clear();return h.size>0?h:Dict.empty}}]);var t;return Dict}();r.Dict=y;var v=function RefClosure(){var t=Object.create(null);return function(){function Ref(t,r){_classCallCheck(this,Ref);this.num=t;this.gen=r}_createClass(Ref,[{key:"toString",value:function toString(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"get",value:function get(r,o){var l=0===o?"".concat(r,"R"):"".concat(r,"R").concat(o),c=t[l];return c||(t[l]=new Ref(r,o))}},{key:"_clearCache",value:function _clearCache(){t=Object.create(null)}}]);return Ref}()}();r.Ref=v;var S=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,o=_createForOfIteratorHelper(this._set.values());try{for(o.s();!(r=o.n()).done;){t(r.value)}}catch(t){o.e(t)}finally{o.f()}}},{key:"clear",value:function clear(){this._set.clear()}}]);return RefSet}();r.RefSet=S;var k=function(){function RefSetCache(){_classCallCheck(this,RefSetCache);this._map=new Map}_createClass(RefSetCache,[{key:"size",get:function get(){return this._map.size}},{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,o=_createForOfIteratorHelper(this._map.values());try{for(o.s();!(r=o.n()).done;){t(r.value)}}catch(t){o.e(t)}finally{o.f()}}},{key:"clear",value:function clear(){this._map.clear()}}]);return RefSetCache}();r.RefSetCache=k;function isName(t,r){return t instanceof d&&(void 0===r||t.name===r)}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.BaseStream=void 0;var l=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=function(){function BaseStream(){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,BaseStream);this.constructor===BaseStream&&(0,l.unreachable)("Cannot initialize BaseStream.")}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(BaseStream,[{key:"length",get:function get(){(0,l.unreachable)("Abstract getter `length` accessed")}},{key:"isEmpty",get:function get(){(0,l.unreachable)("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function get(){return(0,l.shadow)(this,"isDataLoaded",!0)}},{key:"getByte",value:function getByte(){(0,l.unreachable)("Abstract method `getByte` called")}},{key:"getBytes",value:function getBytes(t){(0,l.unreachable)("Abstract method `getBytes` called")}},{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],o=this.getBytes(t,r);this.pos-=o.length;return o}},{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:"getByteRange",value:function getByteRange(t,r){(0,l.unreachable)("Abstract method `getByteRange` called")}},{key:"getString",value:function getString(t){return(0,l.bytesToString)(this.getBytes(t,!1))}},{key:"skip",value:function skip(t){this.pos+=t||1}},{key:"reset",value:function reset(){(0,l.unreachable)("Abstract method `reset` called")}},{key:"moveStart",value:function moveStart(){(0,l.unreachable)("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function makeSubStream(t,r){(0,l.unreachable)("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function getBaseStreams(){return null}}]);return BaseStream}();r.BaseStream=c},(t,r,o)=>{"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 l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(117),h=o(118),d=o(120),m=o(119);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function parseDocBaseUrl(t){if(t){var r=(0,c.createValidAbsoluteUrl)(t);if(r)return r.href;(0,c.warn)('Invalid absolute docBaseUrl: "'.concat(t,'".'))}return null}var g=function(){function BasePdfManager(){_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&(0,c.unreachable)("Cannot initialize BasePdfManager.")}_createClass(BasePdfManager,[{key:"docId",get:function get(){return this._docId}},{key:"password",get:function get(){return this._password}},{key:"docBaseUrl",get:function get(){return this._docBaseUrl}},{key:"onLoadedStream",value:function onLoadedStream(){(0,c.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:"loadXfaFonts",value:function loadXfaFonts(t,r){return this.pdfDocument.loadXfaFonts(t,r)}},{key:"loadXfaImages",value:function loadXfaImages(){return this.pdfDocument.loadXfaImages()}},{key:"serializeXfaData",value:function serializeXfaData(t){return this.pdfDocument.serializeXfaData(t)}},{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(l.default.mark((function _callee(t,r,o){return l.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:(0,c.unreachable)("Abstract method `ensure` called");case 1:case"end":return t.stop()}}),_callee)}))),function ensure(r,o,l){return t.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){(0,c.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function requestLoadedStream(){(0,c.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function sendProgressiveData(t){(0,c.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function updatePassword(t){this._password=t}},{key:"terminate",value:function terminate(t){(0,c.unreachable)("Abstract method `terminate` called")}}]);var t;return BasePdfManager}(),y=function(t){_inherits(LocalPdfManager,t);var r,o=_createSuper(LocalPdfManager);function LocalPdfManager(t,r,l,c,u,h){var g;_classCallCheck(this,LocalPdfManager);(g=o.call(this))._docId=t;g._password=l;g._docBaseUrl=parseDocBaseUrl(h);g.evaluatorOptions=c;g.enableXfa=u;var y=new m.Stream(r);g.pdfDocument=new d.PDFDocument(_assertThisInitialized(g),y);g._loadedStreamPromise=Promise.resolve(y);return g}_createClass(LocalPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(l.default.mark((function _callee2(t,r,o){var c;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if("function"!=typeof(c=t[r])){l.next=3;break}return l.abrupt("return",c.apply(t,o));case 3:return l.abrupt("return",c);case 4:case"end":return l.stop()}}),_callee2)}))),function ensure(t,o,l){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}(g);r.LocalPdfManager=y;var v=function(t){_inherits(NetworkPdfManager,t);var r,o=_createSuper(NetworkPdfManager);function NetworkPdfManager(t,r,l,c,h,m){var g;_classCallCheck(this,NetworkPdfManager);(g=o.call(this))._docId=t;g._password=l.password;g._docBaseUrl=parseDocBaseUrl(m);g.msgHandler=l.msgHandler;g.evaluatorOptions=c;g.enableXfa=h;g.streamManager=new u.ChunkedStreamManager(r,{msgHandler:l.msgHandler,length:l.length,disableAutoFetch:l.disableAutoFetch,rangeChunkSize:l.rangeChunkSize});g.pdfDocument=new d.PDFDocument(_assertThisInitialized(g),g.streamManager.getStream());return g}_createClass(NetworkPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(l.default.mark((function _callee3(t,r,o){var c;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:l.prev=0;if("function"!=typeof(c=t[r])){l.next=4;break}return l.abrupt("return",c.apply(t,o));case 4:return l.abrupt("return",c);case 7:l.prev=7;l.t0=l.catch(0);if(l.t0 instanceof h.MissingDataException){l.next=11;break}throw l.t0;case 11:l.next=13;return this.requestRange(l.t0.begin,l.t0.end);case 13:return l.abrupt("return",this.ensure(t,r,o));case 14:case"end":return l.stop()}}),_callee3,this,[[0,7]])}))),function ensure(t,o,l){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}(g);r.NetworkPdfManager=v},(t,r,o)=>{"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.ChunkedStreamManager=r.ChunkedStream=void 0;var l=o(4),c=o(118);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(ChunkedStream,t);var r=_createSuper(ChunkedStream);function ChunkedStream(t,o,l){var c;_classCallCheck(this,ChunkedStream);(c=r.call(this,new Uint8Array(t),0,t,null)).chunkSize=o;c._loadedChunks=new Set;c.numChunks=Math.ceil(t/o);c.manager=l;c.progressiveDataLength=0;c.lastSuccessfulEnsureByteChunk=-1;return c}_createClass(ChunkedStream,[{key:"getMissingChunks",value:function getMissingChunks(){for(var t=[],r=0,o=this.numChunks;r<o;++r)this._loadedChunks.has(r)||t.push(r);return t}},{key:"numChunksLoaded",get:function get(){return this._loadedChunks.size}},{key:"isDataLoaded",get:function get(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function onReceiveData(t,r){var o=this.chunkSize;if(t%o!=0)throw new Error("Bad begin offset: ".concat(t));var l=t+r.byteLength;if(l%o!=0&&l!==this.bytes.length)throw new Error("Bad end offset: ".concat(l));this.bytes.set(new Uint8Array(r),t);for(var c=Math.floor(t/o),u=Math.floor((l-1)/o)+1,h=c;h<u;++h)this._loadedChunks.add(h)}},{key:"onReceiveProgressiveData",value:function onReceiveProgressiveData(t){var r=this.progressiveDataLength,o=Math.floor(r/this.chunkSize);this.bytes.set(new Uint8Array(t),r);r+=t.byteLength;this.progressiveDataLength=r;for(var l=r>=this.end?this.numChunks:Math.floor(r/this.chunkSize),c=o;c<l;++c)this._loadedChunks.add(c)}},{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 c.MissingDataException(t,t+1);this.lastSuccessfulEnsureByteChunk=r}}}},{key:"ensureRange",value:function ensureRange(t,r){if(!(t>=r||r<=this.progressiveDataLength))for(var o=this.chunkSize,l=Math.floor(t/o),u=Math.floor((r-1)/o)+1,h=l;h<u;++h)if(!this._loadedChunks.has(h))throw new c.MissingDataException(t,r)}},{key:"nextEmptyChunk",value:function nextEmptyChunk(t){for(var r=this.numChunks,o=0;o<r;++o){var l=(t+o)%r;if(!this._loadedChunks.has(l))return l}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:"getBytes",value:function getBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.bytes,l=this.pos,c=this.end;if(!t){c>this.progressiveDataLength&&this.ensureRange(l,c);var u=o.subarray(l,c);return r?new Uint8ClampedArray(u):u}var h=l+t;h>c&&(h=c);h>this.progressiveDataLength&&this.ensureRange(l,h);this.pos=h;var d=o.subarray(l,h);return r?new Uint8ClampedArray(d):d}},{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:"makeSubStream",value:function makeSubStream(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;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),o=Math.floor((this.end-1)/t)+1,l=[],c=r;c<o;++c)this._loadedChunks.has(c)||l.push(c);return l};Object.defineProperty(ChunkedStreamSubstream.prototype,"isDataLoaded",{get:function get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var l=new ChunkedStreamSubstream;l.pos=l.start=t;l.end=t+r||this.end;l.dict=o;return l}},{key:"getBaseStreams",value:function getBaseStreams(){return[this]}}]);return ChunkedStream}(o(119).Stream);r.ChunkedStream=u;var h=function(){function ChunkedStreamManager(t,r){_classCallCheck(this,ChunkedStreamManager);this.length=r.length;this.chunkSize=r.rangeChunkSize;this.stream=new u(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,l.createPromiseCapability)()}_createClass(ChunkedStreamManager,[{key:"onLoadedStream",value:function onLoadedStream(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function sendRequest(t,r){var o=this,c=this.pdfNetworkStream.getRangeReader(t,r);c.isStreamingSupported||(c.onProgress=this.onProgress.bind(this));var u=[],h=0;new Promise((function(t,r){c.read().then((function readChunk(d){try{if(!d.done){var m=d.value;u.push(m);h+=(0,l.arrayByteLength)(m);c.isStreamingSupported&&o.onProgress({loaded:h});c.read().then(readChunk,r);return}var g=(0,l.arraysToBytes)(u);u=null;t(g)}catch(t){r(t)}}),r)})).then((function(r){o.aborted||o.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,o=this.currRequestId++,c=new Set;this._chunksNeededByRequest.set(o,c);var u,h=_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){var d=u.value;this.stream.hasChunk(d)||c.add(d)}}catch(t){h.e(t)}finally{h.f()}if(0===c.size)return Promise.resolve();var m=(0,l.createPromiseCapability)();this._promisesByRequest.set(o,m);var g,y=[],v=_createForOfIteratorHelper(c);try{for(v.s();!(g=v.n()).done;){var S=g.value,k=this._requestsByChunk.get(S);if(!k){k=[];this._requestsByChunk.set(S,k);y.push(S)}k.push(o)}}catch(t){v.e(t)}finally{v.f()}if(y.length>0){var _,C=_createForOfIteratorHelper(this.groupChunks(y));try{for(C.s();!(_=C.n()).done;){var w=_.value,x=w.beginChunk*this.chunkSize,O=Math.min(w.endChunk*this.chunkSize,this.length);this.sendRequest(x,O)}}catch(t){C.e(t)}finally{C.f()}}return m.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 o=this.getBeginChunk(t),l=this.getEndChunk(r),c=[],u=o;u<l;++u)c.push(u);return this._requestChunks(c)}},{key:"requestRanges",value:function requestRanges(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=[],l=_createForOfIteratorHelper(r);try{for(l.s();!(t=l.n()).done;)for(var c=t.value,u=this.getBeginChunk(c.begin),h=this.getEndChunk(c.end),d=u;d<h;++d)o.includes(d)||o.push(d)}catch(t){l.e(t)}finally{l.f()}o.sort((function(t,r){return t-r}));return this._requestChunks(o)}},{key:"groupChunks",value:function groupChunks(t){for(var r=[],o=-1,l=-1,c=0,u=t.length;c<u;++c){var h=t[c];o<0&&(o=h);if(l>=0&&l+1!==h){r.push({beginChunk:o,endChunk:l+1});o=h}c+1===t.length&&r.push({beginChunk:o,endChunk:h+1});l=h}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,o=void 0===t.begin,l=o?this.progressiveDataLength:t.begin,c=l+r.byteLength,u=Math.floor(l/this.chunkSize),h=c<this.length?Math.floor(c/this.chunkSize):Math.ceil(c/this.chunkSize);if(o){this.stream.onReceiveProgressiveData(r);this.progressiveDataLength=c}else this.stream.onReceiveData(l,r);this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var d=[],m=u;m<h;++m){var g=this._requestsByChunk.get(m);if(g){this._requestsByChunk.delete(m);var y,v=_createForOfIteratorHelper(g);try{for(v.s();!(y=v.n()).done;){var S=y.value,k=this._chunksNeededByRequest.get(S);k.has(m)&&k.delete(m);k.size>0||d.push(S)}}catch(t){v.e(t)}finally{v.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var _;if(1===this.stream.numChunksLoaded){var C=this.stream.numChunks-1;this.stream.hasChunk(C)||(_=C)}else _=this.stream.nextEmptyChunk(h);Number.isInteger(_)&&this._requestChunks([_])}for(var w=0,x=d;w<x.length;w++){var O=x[w],T=this._promisesByRequest.get(O);this._promisesByRequest.delete(O);T.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,o=_createForOfIteratorHelper(this._promisesByRequest.values());try{for(o.s();!(r=o.n()).done;){r.value.reject(t)}}catch(t){o.e(t)}finally{o.f()}}}]);return ChunkedStreamManager}();r.ChunkedStreamManager=h},(t,r,o)=>{"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,o){var u=Object.create(null),h=getInheritableProperty({dict:r,key:"AA",stopWhenFound:!1});if(h)for(var d=h.length-1;d>=0;d--){var m=h[d];if(m instanceof c.Dict){var g,y=_createForOfIteratorHelper(m.getKeys());try{for(y.s();!(g=y.n()).done;){var v=g.value,S=o[v];if(S){var k=m.getRaw(v),_=new c.RefSet,C=[];_collectJS(k,t,C,_);C.length>0&&(u[S]=C)}}}catch(t){y.e(t)}finally{y.f()}}}if(r.has("A")){var w=r.get("A"),x=new c.RefSet,O=[];_collectJS(w,t,O,x);O.length>0&&(u.Action=O)}return(0,l.objectSize)(u)>0?u:null};r.encodeToXmlString=function encodeToXmlString(t){for(var r=[],o=0,l=0,c=t.length;l<c;l++){var u=t.codePointAt(l);if(32<=u&&u<=126){var h=y[u];if(h){o<l&&r.push(t.substring(o,l));r.push(h);o=l+1}}else{o<l&&r.push(t.substring(o,l));r.push("&#x".concat(u.toString(16).toUpperCase(),";"));u>55295&&(u<57344||u>65533)&&l++;o=l+1}}if(0===r.length)return t;o<t.length&&r.push(t.substring(o,t.length));return r.join("")};r.escapePDFName=function escapePDFName(t){for(var r=[],o=0,l=0,c=t.length;l<c;l++){var u=t.charCodeAt(l);if(u<33||u>126||35===u||40===u||41===u||60===u||62===u||91===u||93===u||123===u||125===u||47===u||37===u){o<l&&r.push(t.substring(o,l));r.push("#".concat(u.toString(16)));o=l+1}}if(0===r.length)return t;o<t.length&&r.push(t.substring(o,t.length));return r.join("")};r.getArrayLookupTableFactory=function getArrayLookupTableFactory(t){var r;return function(){if(t){var o=t();t=null;r=Object.create(null);for(var l=0,c=o.length;l<c;l+=2)r[o[l]]=o[l+1];o=null}return r}};r.getInheritableProperty=getInheritableProperty;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 o=t.match(r);return o?{name:o[1],pos:parseInt(o[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,l.assert)(Number.isInteger(t)&&t>0,"The number should be a positive integer.");var o,c=[];for(;t>=1e3;){t-=1e3;c.push("M")}o=t/100|0;t%=100;c.push(g[o]);o=t/10|0;t%=10;c.push(g[10+o]);c.push(g[20+t]);var u=c.join("");return r?u.toLowerCase():u};r.validateCSSFont=function validateCSSFont(t){var r=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),o=t.fontFamily,c=t.fontWeight,u=t.italicAngle;if(/^".*"$/.test(o)){if(/[^\\]"/.test(o.slice(1,o.length-1))){(0,l.warn)('XFA - FontFamily contains some unescaped ": '.concat(o,"."));return!1}}else if(/^'.*'$/.test(o)){if(/[^\\]'/.test(o.slice(1,o.length-1))){(0,l.warn)("XFA - FontFamily contains some unescaped ': ".concat(o,"."));return!1}}else{var h,d=_createForOfIteratorHelper(o.split(/[ \t]+/));try{for(d.s();!(h=d.n()).done;){var m=h.value;if(/^([0-9]|(-([0-9]|-)))/.test(m)||!/^[a-zA-Z0-9\-_\\]+$/.test(m)){(0,l.warn)("XFA - FontFamily contains some invalid <custom-ident>: ".concat(o,"."));return!1}}}catch(t){d.e(t)}finally{d.f()}}var g=c?c.toString():"";t.fontWeight=r.has(g)?g:"400";var y=parseFloat(u);t.italicAngle=isNaN(y)||y<-90||y>90?"14":u.toString();return!0};r.XRefParseException=r.XRefEntryException=r.ParserEOFException=r.MissingDataException=void 0;var l=o(4),c=o(114);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){_inherits(MissingDataException,t);var r=_createSuper(MissingDataException);function MissingDataException(t,o){var l;_classCallCheck(this,MissingDataException);(l=r.call(this,"Missing data [".concat(t,", ").concat(o,")"))).begin=t;l.end=o;return l}return MissingDataException}(l.BaseException);r.MissingDataException=u;var h=function(t){_inherits(ParserEOFException,t);var r=_createSuper(ParserEOFException);function ParserEOFException(){_classCallCheck(this,ParserEOFException);return r.apply(this,arguments)}return ParserEOFException}(l.BaseException);r.ParserEOFException=h;var d=function(t){_inherits(XRefEntryException,t);var r=_createSuper(XRefEntryException);function XRefEntryException(){_classCallCheck(this,XRefEntryException);return r.apply(this,arguments)}return XRefEntryException}(l.BaseException);r.XRefEntryException=d;var m=function(t){_inherits(XRefParseException,t);var r=_createSuper(XRefParseException);function XRefParseException(){_classCallCheck(this,XRefParseException);return r.apply(this,arguments)}return XRefParseException}(l.BaseException);r.XRefParseException=m;function getInheritableProperty(t){for(var r,o=t.dict,l=t.key,u=t.getArray,h=void 0!==u&&u,d=t.stopWhenFound,m=void 0===d||d,g=new c.RefSet;o instanceof c.Dict&&(!o.objId||!g.has(o.objId));){o.objId&&g.put(o.objId);var y=h?o.getArray(l):o.get(l);if(void 0!==y){if(m)return y;r||(r=[]);r.push(y)}o=o.get("Parent")}return r}var g=["","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,o,u){if(t){var h=null;if((0,c.isRef)(t)){if(u.has(t))return;h=t;u.put(h);t=r.fetch(t)}if(Array.isArray(t)){var d,m=_createForOfIteratorHelper(t);try{for(m.s();!(d=m.n()).done;){_collectJS(d.value,r,o,u)}}catch(t){m.e(t)}finally{m.f()}}else if(t instanceof c.Dict){if((0,c.isName)(t.get("S"),"JavaScript")&&t.has("JS")){var g,y=t.get("JS");g=(0,c.isStream)(y)?y.getString():y;(g=(0,l.stringToPDFString)(g))&&o.push(g)}_collectJS(t.getRaw("Next"),r,o,u)}h&&u.remove(h)}}var y={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(t,r,o)=>{"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.StringStream=r.Stream=r.NullStream=void 0;var l=o(115),c=o(4);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){_inherits(Stream,t);var r=_createSuper(Stream);function Stream(t,o,l,c){var u;_classCallCheck(this,Stream);(u=r.call(this)).bytes=t instanceof Uint8Array?t:new Uint8Array(t);u.start=o||0;u.pos=u.start;u.end=o+l||u.bytes.length;u.dict=c;return u}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Stream,[{key:"length",get:function get(){return this.end-this.start}},{key:"isEmpty",get:function get(){return 0===this.length}},{key:"getByte",value:function getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function getBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.bytes,l=this.pos,c=this.end;if(!t){var u=o.subarray(l,c);return r?new Uint8ClampedArray(u):u}var h=l+t;h>c&&(h=c);this.pos=h;var d=o.subarray(l,h);return r?new Uint8ClampedArray(d):d}},{key:"getByteRange",value:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);return this.bytes.subarray(t,r)}},{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){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Stream(this.bytes.buffer,t,r,o)}}]);return Stream}(l.BaseStream);r.Stream=u;var h=function(t){_inherits(StringStream,t);var r=_createSuper(StringStream);function StringStream(t){_classCallCheck(this,StringStream);return r.call(this,(0,c.stringToBytes)(t))}return StringStream}(u);r.StringStream=h;var d=function(t){_inherits(NullStream,t);var r=_createSuper(NullStream);function NullStream(){_classCallCheck(this,NullStream);return r.call(this,new Uint8Array(0))}return NullStream}(u);r.NullStream=d},(t,r,o)=>{"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 l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(114),h=o(118),d=o(119),m=o(121),g=o(115),y=o(181),v=o(173),S=o(164),k=o(126),_=o(179),C=o(171),w=o(124),x=o(128),O=o(178),T=o(183),R=o(207);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_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){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var E=[0,0,612,792],M=function(){function Page(t){var r=t.pdfManager,o=t.xref,l=t.pageIndex,c=t.pageDict,u=t.ref,h=t.globalIdFactory,d=t.fontCache,m=t.builtInCMapCache,g=t.standardFontDataCache,y=t.globalImageCache,v=t.nonBlendModesSet,S=t.xfaFactory;_classCallCheck(this,Page);this.pdfManager=r;this.pageIndex=l;this.pageDict=c;this.xref=o;this.ref=u;this.fontCache=d;this.builtInCMapCache=m;this.standardFontDataCache=g;this.globalImageCache=y;this.nonBlendModesSet=v;this.evaluatorOptions=r.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=S;var k={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(l,"_").concat(++k.obj)}},{key:"getPageObjId",value:function getPageObjId(){return"page".concat(u.toString())}}]);return _class}(h)}_createClass(Page,[{key:"_getInheritableProperty",value:function _getInheritableProperty(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,h.getInheritableProperty)({dict:this.pageDict,key:t,getArray:r,stopWhenFound:!1});return Array.isArray(o)?1!==o.length&&(0,u.isDict)(o[0])?u.Dict.merge({xref:this.xref,dictArray:o}):o[0]:o}},{key:"content",get:function get(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function get(){return(0,c.shadow)(this,"resources",this._getInheritableProperty("Resources")||u.Dict.empty)}},{key:"_getBoundingBox",value:function _getBoundingBox(t){if(this.xfaData)return this.xfaData.bbox;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,c.warn)("Empty /".concat(t," entry."))}return null}},{key:"mediaBox",get:function get(){return(0,c.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||E)}},{key:"cropBox",get:function get(){return(0,c.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function get(){var t=this.pageDict.get("UserUnit");(!(0,c.isNum)(t)||t<=0)&&(t=1);return(0,c.shadow)(this,"userUnit",t)}},{key:"view",get:function get(){var t,r=this.cropBox,o=this.mediaBox;if(r===o||(0,c.isArrayEqual)(r,o))t=o;else{var l=c.Util.intersect(r,o);l&&l[2]-l[0]!=0&&l[3]-l[1]!=0?t=l:(0,c.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,c.shadow)(this,"view",t||o)}},{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,c.shadow)(this,"rotate",t)}},{key:"getContentStream",value:function getContentStream(){return this.pdfManager.ensure(this,"content").then((function(t){return t instanceof g.BaseStream?t:Array.isArray(t)?new x.StreamsSequenceStream(t):new d.NullStream}))}},{key:"xfaData",get:function get(){return this.xfaFactory?(0,c.shadow)(this,"xfaData",{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}):(0,c.shadow)(this,"xfaData",null)}},{key:"save",value:function save(t,r,o){var l=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){var u,h=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var m=u.value;m.mustBePrinted(o)&&h.push(m.save(l,r,o).catch((function(t){(0,c.warn)("save - ignoring annotation data during "+'"'.concat(r.name,'" task: "').concat(t,'".'));return null})))}}catch(t){d.e(t)}finally{d.f()}return Promise.all(h)}))}},{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 _.ObjectLoader(r.resources,t,r.xref).load()}))}},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.handler,l=t.sink,u=t.task,h=t.intent,d=t.renderInteractiveForms,m=t.annotationStorage,g=this.getContentStream(),y=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),v=new w.PartialEvaluator({xref:this.xref,handler:o,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),S=Promise.all([g,y]).then((function(t){var c=_slicedToArray(t,1)[0],d=new C.OperatorList(h,l);o.send("StartRenderPage",{transparency:v.hasBlendModes(r.resources,r.nonBlendModesSet),pageIndex:r.pageIndex,intent:h});return v.getOperatorList({stream:c,task:u,resources:r.resources,operatorList:d}).then((function(){return d}))}));return Promise.all([S,this._parsedAnnotations]).then((function(t){var r=_slicedToArray(t,2),o=r[0],l=r[1];if(0===l.length){o.flush(!0);return{length:o.totalLength}}var g,y=h.startsWith("oplist-")?h.split("-")[1]:h,S=[],k=_createForOfIteratorHelper(l);try{for(k.s();!(g=k.n()).done;){var _=g.value;("display"===y&&_.mustBeViewed(m)||"print"===y&&_.mustBePrinted(m))&&S.push(_.getOperatorList(v,u,d,m).catch((function(t){(0,c.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(u.name,'" task: "').concat(t,'".'));return null})))}}catch(t){k.e(t)}finally{k.f()}return Promise.all(S).then((function(t){o.addOp(c.OPS.beginAnnotations,[]);var r,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var u=r.value;o.addOpList(u)}}catch(t){l.e(t)}finally{l.f()}o.addOp(c.OPS.endAnnotations,[]);o.flush(!0);return{length:o.totalLength}}))}))}},{key:"extractTextContent",value:function extractTextContent(t){var r=this,o=t.handler,l=t.task,c=t.normalizeWhitespace,u=t.includeMarkedContent,h=t.sink,d=t.combineTextItems,m=this.getContentStream(),g=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([m,g]).then((function(t){var m=_slicedToArray(t,1)[0];return new w.PartialEvaluator({xref:r.xref,handler:o,pageIndex:r.pageIndex,idFactory:r._localIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,options:r.evaluatorOptions}).getTextContent({stream:m,task:l,resources:r.resources,normalizeWhitespace:c,includeMarkedContent:u,combineTextItems:d,sink:h})}))}},{key:"getStructTree",value:(t=_asyncToGenerator(l.default.mark((function _callee(){var t,r;return l.default.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this.pdfManager.ensureCatalog("structTreeRoot");case 2:if(t=o.sent){o.next=5;break}return o.abrupt("return",null);case 5:o.next=7;return this.pdfManager.ensure(this,"_parseStructTree",[t]);case 7:r=o.sent;return o.abrupt("return",r.serializable);case 9:case"end":return o.stop()}}),_callee,this)}))),function getStructTree(){return t.apply(this,arguments)})},{key:"_parseStructTree",value:function _parseStructTree(t){var r=new O.StructTreePage(t,this.pageDict);r.parse();return r}},{key:"getAnnotationsData",value:function getAnnotationsData(t){return this._parsedAnnotations.then((function(r){for(var o=[],l=0,c=r.length;l<c;l++)(!t||"display"===t&&r[l].viewable||"print"===t&&r[l].printable)&&o.push(r[l].data);return o}))}},{key:"annotations",get:function get(){var t=this._getInheritableProperty("Annots");return(0,c.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,o=[],l=_createForOfIteratorHelper(t.annotations);try{for(l.s();!(r=l.n()).done;){var u=r.value;o.push(m.AnnotationFactory.create(t.xref,u,t.pdfManager,t._localIdFactory,!1).catch((function(t){(0,c.warn)('_parsedAnnotations: "'.concat(t,'".'));return null})))}}catch(t){l.e(t)}finally{l.f()}return Promise.all(o).then((function(t){return t.filter((function(t){return!!t}))}))}));return(0,c.shadow)(this,"_parsedAnnotations",r)}},{key:"jsActions",get:function get(){var t=(0,h.collectActions)(this.xref,this.pageDict,c.PageActionEventType);return(0,c.shadow)(this,"jsActions",t)}}]);var t;return Page}();r.Page=M;var D=new Uint8Array([37,80,68,70,45]),j=new Uint8Array([115,116,97,114,116,120,114,101,102]),L=new Uint8Array([101,110,100,111,98,106]),N=/^[1-9]\.[0-9]$/;function find(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=r.length,u=t.peekBytes(o),h=u.length-c;if(h<=0)return!1;if(l)for(var d=c-1,m=u.length-1;m>=d;){for(var g=0;g<c&&u[m-g]===r[d-g];)g++;if(g>=c){t.pos+=m-d;return!0}m--}else for(var y=0;y<=h;){for(var v=0;v<c&&u[y+v]===r[v];)v++;if(v>=c){t.pos+=y;return!0}y++}return!1}var U=function(){function PDFDocument(t,r){_classCallCheck(this,PDFDocument);var o;if((0,u.isStream)(r))o=r;else{if(!(0,c.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");o=new d.Stream(r)}if(o.length<=0)throw new c.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t;this.stream=o;this.xref=new R.XRef(o,t);this._pagePromises=[];this._version=null;var l={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(++l.font)}},{key:"createObjId",value:function createObjId(){(0,c.unreachable)("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function getPageObjId(){(0,c.unreachable)("Abstract method `getPageObjId` called.")}}]);return _class2}()}_createClass(PDFDocument,[{key:"parse",value:function parse(t){this.xref.parse(t);this.catalog=new v.Catalog(this.pdfManager,this.xref);this.catalog.version&&(this._version=this.catalog.version)}},{key:"linearization",get:function get(){var t=null;try{t=k.Linearization.create(this.stream)}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)(t)}return(0,c.shadow)(this,"linearization",t)}},{key:"startXRef",get:function get(){var t=this.stream,r=0;if(this.linearization){t.reset();find(t,L)&&(r=t.pos+6-t.start)}else{for(var o=j.length,l=!1,u=t.end;!l&&u>0;){(u-=1024-o)<0&&(u=0);t.pos=u;l=find(t,j,1024,!0)}if(l){t.skip(9);var d;do{d=t.getByte()}while((0,h.isWhiteSpace)(d));for(var m="";d>=32&&d<=57;){m+=String.fromCharCode(d);d=t.getByte()}r=parseInt(m,10);isNaN(r)&&(r=0)}}return(0,c.shadow)(this,"startXRef",r)}},{key:"checkHeader",value:function checkHeader(){var t=this.stream;t.reset();if(find(t,D)){t.moveStart();for(var r,o="";(r=t.getByte())>32&&!(o.length>=12);)o+=String.fromCharCode(r);this._version||(this._version=o.substring(5))}}},{key:"parseStartXRef",value:function parseStartXRef(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function get(){if(this.xfaFactory)return(0,c.shadow)(this,"numPages",this.xfaFactory.numberPages);var t=this.linearization,r=t?t.numPages:this.catalog.numPages;return(0,c.shadow)(this,"numPages",r)}},{key:"_hasOnlyDocumentSignatures",value:function _hasOnlyDocumentSignatures(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=10;return!!Array.isArray(t)&&t.every((function(t){if(!((t=r.xref.fetchIfRef(t))instanceof u.Dict))return!1;if(t.has("Kids")){if(++o>l){(0,c.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return r._hasOnlyDocumentSignatures(t.get("Kids"),o)}var h=(0,u.isName)(t.get("FT"),"Sig"),d=t.get("Rect"),m=Array.isArray(d)&&d.every((function(t){return 0===t}));return h&&m}))}},{key:"xfaData",get:function get(){var t=this.catalog.acroForm;if(!t)return null;var r=t.get("XFA"),o={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if((0,u.isStream)(r)&&!r.isEmpty)try{o["xdp:xdp"]=(0,c.stringToUTF8String)(r.getString());return o}catch(t){(0,c.warn)("XFA - Invalid utf-8 string.");return null}if(!Array.isArray(r)||0===r.length)return null;for(var l=0,h=r.length;l<h;l+=2){var d=void 0;d=0===l?"xdp:xdp":l===h-2?"/xdp:xdp":r[l];if(o.hasOwnProperty(d)){var m=this.xref.fetchIfRef(r[l+1]);if((0,u.isStream)(m)&&!m.isEmpty)try{o[d]=(0,c.stringToUTF8String)(m.getString())}catch(t){(0,c.warn)("XFA - Invalid utf-8 string.");return null}}}return o}},{key:"xfaFactory",get:function get(){if(this.pdfManager.enableXfa&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm){var t=this.xfaData;return(0,c.shadow)(this,"xfaFactory",t?new T.XFAFactory(t):null)}return(0,c.shadow)(this,"xfaFaxtory",null)}},{key:"isPureXfa",get:function get(){return this.xfaFactory&&this.xfaFactory.isValid()}},{key:"htmlForXfa",get:function get(){return this.xfaFactory?this.xfaFactory.getPages():null}},{key:"loadXfaImages",value:(x=_asyncToGenerator(l.default.mark((function _callee2(){var t,r,o,c,h,d,m,g;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=l.sent){l.next=5;break}return l.abrupt("return");case 5:r=t.getKeys();o=new _.ObjectLoader(t,r,this.xref);l.next=9;return o.load();case 9:c=new Map;h=_createForOfIteratorHelper(r);l.prev=11;h.s();case 13:if((d=h.n()).done){l.next=21;break}m=d.value;g=t.get(m);if((0,u.isStream)(g)){l.next=18;break}return l.abrupt("continue",19);case 18:c.set(m,g.getBytes());case 19:l.next=13;break;case 21:l.next=26;break;case 23:l.prev=23;l.t0=l.catch(11);h.e(l.t0);case 26:l.prev=26;h.f();return l.finish(26);case 29:this.xfaFactory.setImages(c);case 30:case"end":return l.stop()}}),_callee2,this,[[11,23,26,29]])}))),function loadXfaImages(){return x.apply(this,arguments)})},{key:"loadXfaFonts",value:(g=_asyncToGenerator(l.default.mark((function _callee3(t,r){var o,d,m,g,y,v,k,x,O,T,R,E,M,D,j,L,N,U,H,W,q,$,X,z,G,V,Y,K,J,Q,Z,ee,te,re,ae,ne;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return this.pdfManager.ensureCatalog("acroForm");case 2:if(o=l.sent){l.next=5;break}return l.abrupt("return");case 5:l.next=7;return o.getAsync("DR");case 7:if((d=l.sent)instanceof u.Dict){l.next=10;break}return l.abrupt("return");case 10:m=new _.ObjectLoader(d,["Font"],this.xref);l.next=13;return m.load();case 13:if((g=d.get("Font"))instanceof u.Dict){l.next=16;break}return l.abrupt("return");case 16:(y=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)).useSystemFonts=!1;v=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:y});k=new C.OperatorList;x=[];l.t0=function clone(){return this};O={get font(){return x[x.length-1]},set font(t){x.push(t)},clone:l.t0};T=new Map;g.forEach((function(t,r){T.set(t,r)}));R=[];E=_createForOfIteratorHelper(T);l.prev=27;E.s();case 29:if((M=E.n()).done){l.next=44;break}D=_slicedToArray(M.value,2),j=D[0],L=D[1];if((N=L.get("FontDescriptor"))instanceof u.Dict){l.next=34;break}return l.abrupt("continue",42);case 34:U=(U=N.get("FontFamily")).replace(/[ ]+([0-9])/g,"$1");H=N.get("FontWeight");W=-N.get("ItalicAngle");q={fontFamily:U,fontWeight:H,italicAngle:W};if((0,h.validateCSSFont)(q)){l.next=41;break}return l.abrupt("continue",42);case 41:R.push(v.handleSetFont(d,[u.Name.get(j),1],null,k,r,O,null,q).catch((function(t){(0,c.warn)('loadXfaFonts: "'.concat(t,'".'));return null})));case 42:l.next=29;break;case 44:l.next=49;break;case 46:l.prev=46;l.t1=l.catch(27);E.e(l.t1);case 49:l.prev=49;E.f();return l.finish(49);case 52:l.next=54;return Promise.all(R);case 54:if($=this.xfaFactory.setFonts(x)){l.next=57;break}return l.abrupt("return");case 57:y.ignoreErrors=!0;R.length=0;x.length=0;X=new Set;z=_createForOfIteratorHelper($);try{for(z.s();!(G=z.n()).done;){V=G.value;(0,S.getXfaFontWidths)("".concat(V,"-Regular"))||X.add(V)}}catch(t){z.e(t)}finally{z.f()}X.size&&$.push("PdfJS-Fallback");Y=_createForOfIteratorHelper($);l.prev=65;Y.s();case 67:if((K=Y.n()).done){l.next=74;break}J=K.value;if(!X.has(J)){l.next=71;break}return l.abrupt("continue",72);case 71:for(Q=0,Z=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];Q<Z.length;Q++){ee=Z[Q];te="".concat(J,"-").concat(ee.name);re=(0,S.getXfaFontWidths)(te);(ae=new u.Dict(null)).set("BaseFont",u.Name.get(te));ae.set("Type",u.Name.get("Font"));ae.set("Subtype",u.Name.get("TrueType"));ae.set("Encoding",u.Name.get("WinAnsiEncoding"));(ne=new u.Dict(null)).set("Widths",re);ae.set("FontDescriptor",ne);R.push(v.handleSetFont(d,[u.Name.get(te),1],null,k,r,O,ae,{fontFamily:J,fontWeight:ee.fontWeight,italicAngle:ee.italicAngle}).catch((function(t){(0,c.warn)('loadXfaFonts: "'.concat(t,'".'));return null})))}case 72:l.next=67;break;case 74:l.next=79;break;case 76:l.prev=76;l.t2=l.catch(65);Y.e(l.t2);case 79:l.prev=79;Y.f();return l.finish(79);case 82:l.next=84;return Promise.all(R);case 84:this.xfaFactory.appendFonts(x,X);case 85:case"end":return l.stop()}}),_callee3,this,[[27,46,49,52],[65,76,79,82]])}))),function loadXfaFonts(t,r){return g.apply(this,arguments)})},{key:"serializeXfaData",value:(o=_asyncToGenerator(l.default.mark((function _callee4(t){return l.default.wrap((function _callee4$(r){for(;;)switch(r.prev=r.next){case 0:if(!this.xfaFactory){r.next=2;break}return r.abrupt("return",this.xfaFactory.serializeData(t));case 2:return r.abrupt("return",null);case 3:case"end":return r.stop()}}),_callee4,this)}))),function serializeXfaData(t){return o.apply(this,arguments)})},{key:"formInfo",get:function get(){var t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},r=this.catalog.acroForm;if(!r)return(0,c.shadow)(this,"formInfo",t);try{var o=r.get("Fields"),l=Array.isArray(o)&&o.length>0;t.hasFields=l;var d=r.get("XFA");t.hasXfa=Array.isArray(d)&&d.length>0||(0,u.isStream)(d)&&!d.isEmpty;var m=!!(1&r.get("SigFlags")),g=m&&this._hasOnlyDocumentSignatures(o);t.hasAcroForm=l&&!g;t.hasSignatures=m}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('Cannot fetch form information: "'.concat(t,'".'))}return(0,c.shadow)(this,"formInfo",t)}},{key:"documentInfo",get:function get(){var t={Title:c.isString,Author:c.isString,Subject:c.isString,Keywords:c.isString,Creator:c.isString,Producer:c.isString,CreationDate:c.isString,ModDate:c.isString,Trapped:u.isName},r=this._version;if("string"!=typeof r||!N.test(r)){(0,c.warn)("Invalid PDF header version number: ".concat(r));r=null}var o,l={PDFFormatVersion:r,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{o=this.xref.trailer.get("Info")}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)("The document information dictionary is invalid.")}if((0,u.isDict)(o)){var d,m=_createForOfIteratorHelper(o.getKeys());try{for(m.s();!(d=m.n()).done;){var g=d.value,y=o.get(g);if(t[g])t[g](y)?l[g]="string"!=typeof y?y:(0,c.stringToPDFString)(y):(0,c.info)('Bad value in document info for "'.concat(g,'".'));else if("string"==typeof g){var v=void 0;if((0,c.isString)(y))v=(0,c.stringToPDFString)(y);else{if(!((0,u.isName)(y)||(0,c.isNum)(y)||(0,c.isBool)(y))){(0,c.info)('Unsupported value in document info for (custom) "'.concat(g,'".'));continue}v=y}l.Custom||(l.Custom=Object.create(null));l.Custom[g]=v}}}catch(t){m.e(t)}finally{m.f()}}return(0,c.shadow)(this,"documentInfo",l)}},{key:"fingerprints",get:function get(){function validate(t){return"string"==typeof t&&t.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==t}function hexString(t){for(var r=[],o=0,l=t.length;o<l;o++){var c=t[o].toString(16);r.push(c.padStart(2,"0"))}return r.join("")}var t,r,o=this.xref.trailer.get("ID");if(Array.isArray(o)&&validate(o[0])){t=(0,c.stringToBytes)(o[0]);o[1]!==o[0]&&validate(o[1])&&(r=(0,c.stringToBytes)(o[1]))}else t=(0,y.calculateMD5)(this.stream.getByteRange(0,1024),0,1024);return(0,c.shadow)(this,"fingerprints",[hexString(t),r?hexString(r):null])}},{key:"_getLinearizationPage",value:function _getLinearizationPage(t){var r=this.catalog,o=this.linearization,l=u.Ref.get(o.objectNumberFirst,0);return this.xref.fetchAsync(l).then((function(t){if((0,u.isDict)(t,"Page")||(0,u.isDict)(t)&&!t.has("Type")&&t.has("Contents")){l&&!r.pageKidsCountCache.has(l)&&r.pageKidsCountCache.put(l,1);return[t,l]}throw new c.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(o){(0,c.info)(o);return r.getPageDict(t)}))}},{key:"getPage",value:function getPage(t){var r=this;if(void 0!==this._pagePromises[t])return this._pagePromises[t];var o=this.catalog,l=this.linearization;if(this.xfaFactory)return Promise.resolve(new M({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:u.Dict.empty,ref:null,globalIdFactory:this._globalIdFactory,fontCache:o.fontCache,builtInCMapCache:o.builtInCMapCache,standardFontDataCache:o.standardFontDataCache,globalImageCache:o.globalImageCache,nonBlendModesSet:o.nonBlendModesSet,xfaFactory:this.xfaFactory}));var c=l&&l.pageFirst===t?this._getLinearizationPage(t):o.getPageDict(t);return this._pagePromises[t]=c.then((function(l){var c=_slicedToArray(l,2),u=c[0],h=c[1];return new M({pdfManager:r.pdfManager,xref:r.xref,pageIndex:t,pageDict:u,ref:h,globalIdFactory:r._globalIdFactory,fontCache:o.fontCache,builtInCMapCache:o.builtInCMapCache,standardFontDataCache:o.standardFontDataCache,globalImageCache:o.globalImageCache,nonBlendModesSet:o.nonBlendModesSet,xfaFactory:null})}))}},{key:"checkFirstPage",value:function checkFirstPage(){var t=this;return this.getPage(0).catch(function(){var r=_asyncToGenerator(l.default.mark((function _callee5(r){return l.default.wrap((function _callee5$(o){for(;;)switch(o.prev=o.next){case 0:if(!(r instanceof h.XRefEntryException)){o.next=5;break}t._pagePromises.length=0;o.next=4;return t.cleanup();case 4:throw new h.XRefParseException;case 5:case"end":return o.stop()}}),_callee5)})));return function(t){return r.apply(this,arguments)}}())}},{key:"fontFallback",value:function fontFallback(t,r){return this.catalog.fontFallback(t,r)}},{key:"cleanup",value:(r=_asyncToGenerator(l.default.mark((function _callee6(){var t,r=arguments;return l.default.wrap((function _callee6$(o){for(;;)switch(o.prev=o.next){case 0:t=r.length>0&&void 0!==r[0]&&r[0];return o.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,u.clearPrimitiveCaches)());case 2:case"end":return o.stop()}}),_callee6,this)}))),function cleanup(){return r.apply(this,arguments)})},{key:"_collectFieldObjects",value:function _collectFieldObjects(t,r,o){var l=this.xref.fetchIfRef(r);if(l.has("T")){var u=(0,c.stringToPDFString)(l.get("T"));t=""===t?u:"".concat(t,".").concat(u)}o.has(t)||o.set(t,[]);o.get(t).push(m.AnnotationFactory.create(this.xref,r,this.pdfManager,this._localIdFactory,!0).then((function(t){return t&&t.getFieldObject()})).catch((function(t){(0,c.warn)('_collectFieldObjects: "'.concat(t,'".'));return null})));if(l.has("Kids")){var h,d=_createForOfIteratorHelper(l.get("Kids"));try{for(d.s();!(h=d.n()).done;){var g=h.value;this._collectFieldObjects(t,g,o)}}catch(t){d.e(t)}finally{d.f()}}}},{key:"fieldObjects",get:function get(){if(!this.formInfo.hasFields)return(0,c.shadow)(this,"fieldObjects",Promise.resolve(null));var t,r=Object.create(null),o=new Map,l=_createForOfIteratorHelper(this.catalog.acroForm.get("Fields"));try{for(l.s();!(t=l.n()).done;){var u=t.value;this._collectFieldObjects("",u,o)}}catch(t){l.e(t)}finally{l.f()}var h,d=[],m=_createForOfIteratorHelper(o);try{var g=function _loop(){var t=_slicedToArray(h.value,2),o=t[0],l=t[1];d.push(Promise.all(l).then((function(t){(t=t.filter((function(t){return!!t}))).length>0&&(r[o]=t)})))};for(m.s();!(h=m.n()).done;)g()}catch(t){m.e(t)}finally{m.f()}return(0,c.shadow)(this,"fieldObjects",Promise.all(d).then((function(){return r})))}},{key:"hasJSActions",get:function get(){var t=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,c.shadow)(this,"hasJSActions",t)}},{key:"_parseHasJSActions",value:(t=_asyncToGenerator(l.default.mark((function _callee7(){var t,r,o,c;return l.default.wrap((function _callee7$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:t=l.sent;r=_slicedToArray(t,2);o=r[0];c=r[1];if(!o){l.next=8;break}return l.abrupt("return",!0);case 8:if(!c){l.next=10;break}return l.abrupt("return",Object.values(c).some((function(t){return t.some((function(t){return null!==t.actions}))})));case 10:return l.abrupt("return",!1);case 11:case"end":return l.stop()}}),_callee7,this)}))),function _parseHasJSActions(){return t.apply(this,arguments)})},{key:"calculationOrderIds",get:function get(){var t=this.catalog.acroForm;if(!t||!t.has("CO"))return(0,c.shadow)(this,"calculationOrderIds",null);var r=t.get("CO");if(!Array.isArray(r)||0===r.length)return(0,c.shadow)(this,"calculationOrderIds",null);var o=r.filter(u.isRef).map((function(t){return t.toString()}));return 0===o.length?(0,c.shadow)(this,"calculationOrderIds",null):(0,c.shadow)(this,"calculationOrderIds",o)}}]);var t,r,o,g,x;return PDFDocument}();r.PDFDocument=U},(t,r,o)=>{"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 l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(118),h=o(122),d=o(114),m=o(173),g=o(123),y=o(175),v=o(179),S=o(171),k=o(119),_=o(180);function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_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){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var C=function(){function AnnotationFactory(){_classCallCheck(this,AnnotationFactory)}_createClass(AnnotationFactory,null,[{key:"create",value:function create(t,r,o,l,c){var u=this;return Promise.all([o.ensureCatalog("acroForm"),c?this._getPageIndex(t,r,o):-1]).then((function(h){var d=_slicedToArray(h,2),m=d[0],g=d[1];return o.ensure(u,"_create",[t,r,o,l,m,c,g])}))}},{key:"_create",value:function _create(t,r,o,l,h,m){var g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:-1,y=t.fetchIfRef(r);if((0,d.isDict)(y)){var v=(0,d.isRef)(r)?r.toString():"annot_".concat(l.createObjId()),S=y.get("Subtype"),k={xref:t,ref:r,dict:y,subtype:S=(0,d.isName)(S)?S.name:null,id:v,pdfManager:o,acroForm:h instanceof d.Dict?h:d.Dict.empty,collectFields:m,pageIndex:g};switch(S){case"Link":return new L(k);case"Text":return new j(k);case"Widget":var _=(0,u.getInheritableProperty)({dict:y,key:"FT"});switch(_=(0,d.isName)(_)?_.name:null){case"Tx":return new R(k);case"Btn":return new E(k);case"Ch":return new M(k);case"Sig":return new D(k)}(0,c.warn)('Unimplemented widget field type "'.concat(_,'", ')+"falling back to base field type.");return new T(k);case"Popup":return new N(k);case"FreeText":return new U(k);case"Line":return new H(k);case"Square":return new W(k);case"Circle":return new q(k);case"PolyLine":return new $(k);case"Polygon":return new X(k);case"Caret":return new z(k);case"Ink":return new G(k);case"Highlight":return new V(k);case"Underline":return new Y(k);case"Squiggly":return new K(k);case"StrikeOut":return new J(k);case"Stamp":return new Q(k);case"FileAttachment":return new Z(k);default:m||(S?(0,c.warn)('Unimplemented annotation type "'.concat(S,'", ')+"falling back to base annotation."):(0,c.warn)("Annotation is missing the required /Subtype."));return new w(k)}}}},{key:"_getPageIndex",value:(t=_asyncToGenerator(l.default.mark((function _callee(t,r,o){var u,h,m;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:l.prev=0;l.next=3;return t.fetchIfRefAsync(r);case 3:u=l.sent;if((0,d.isDict)(u)){l.next=6;break}return l.abrupt("return",-1);case 6:h=u.getRaw("P");if((0,d.isRef)(h)){l.next=9;break}return l.abrupt("return",-1);case 9:l.next=11;return o.ensureCatalog("getPageIndex",[h]);case 11:m=l.sent;return l.abrupt("return",m);case 15:l.prev=15;l.t0=l.catch(0);(0,c.warn)('_getPageIndex: "'.concat(l.t0,'".'));return l.abrupt("return",-1);case 19:case"end":return l.stop()}}),_callee,null,[[0,15]])}))),function _getPageIndex(r,o,l){return t.apply(this,arguments)})}]);var t;return AnnotationFactory}();r.AnnotationFactory=C;function getRgbColor(t){var r=new Uint8ClampedArray(3);if(!Array.isArray(t))return r;switch(t.length){case 0:return null;case 1:g.ColorSpace.singletons.gray.getRgbItem(t,0,r,0);return r;case 3:g.ColorSpace.singletons.rgb.getRgbItem(t,0,r,0);return r;case 4:g.ColorSpace.singletons.cmyk.getRgbItem(t,0,r,0);return r;default:return r}}function getQuadPoints(t,r){if(!t.has("QuadPoints"))return null;var o=t.getArray("QuadPoints");if(!Array.isArray(o)||0===o.length||o.length%8>0)return null;for(var l=[],c=0,u=o.length/8;c<u;c++){l.push([]);for(var h=8*c,d=8*c+8;h<d;h+=2){var m=o[h],g=o[h+1];if(null!==r&&(m<r[0]||m>r[2]||g<r[1]||g>r[3]))return null;l[c].push({x:m,y:g})}}return l.map((function(t){var r=t.reduce((function(t,r){var o=_slicedToArray(t,4),l=o[0],c=o[1],u=o[2],h=o[3];return[Math.min(l,r.x),Math.max(c,r.x),Math.min(u,r.y),Math.max(h,r.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),o=_slicedToArray(r,4),l=o[0],c=o[1],u=o[2],h=o[3];return[{x:l,y:h},{x:c,y:h},{x:l,y:u},{x:c,y:u}]}))}function getTransformMatrix(t,r,o){var l=_slicedToArray(c.Util.getAxialAlignedBoundingBox(r,o),4),u=l[0],h=l[1],d=l[2],m=l[3];if(u===d||h===m)return[1,0,0,1,t[0],t[1]];var g=(t[2]-t[0])/(d-u),y=(t[3]-t[1])/(m-h);return[g,0,0,y,t[0]-u*g,t[1]-h*y]}var w=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};if(t.collectFields){var o=r.get("Kids");if(Array.isArray(o)){var l,h=[],m=_createForOfIteratorHelper(o);try{for(m.s();!(l=m.n()).done;){var g=l.value;(0,d.isRef)(g)&&h.push(g.toString())}}catch(t){m.e(t)}finally{m.f()}0!==h.length&&(this.data.kidIds=h)}this.data.actions=(0,u.collectActions)(t.xref,r,c.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(r);this.data.pageIndex=t.pageIndex}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,c.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,c.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function _isPrintable(t){return this._hasFlag(t,c.AnnotationFlag.PRINT)&&!this._hasFlag(t,c.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function mustBeViewed(t){var r=t&&t.get(this.data.id);return r&&void 0!==r.hidden?!r.hidden:this.viewable&&!this._hasFlag(this.flags,c.AnnotationFlag.HIDDEN)}},{key:"mustBePrinted",value:function mustBePrinted(t){var r=t&&t.get(this.data.id);return r&&void 0!==r.print?r.print:this.printable}},{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))}},{key:"setContents",value:function setContents(t){this.contents=(0,c.stringToPDFString)(t||"")}},{key:"setModificationDate",value:function setModificationDate(t){this.modificationDate=(0,c.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=c.Util.normalizeRect(t):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function setColor(t){this.color=getRgbColor(t)}},{key:"setBorderStyle",value:function setBorderStyle(t){this.borderStyle=new x;if((0,d.isDict)(t))if(t.has("BS")){var r=t.get("BS"),o=r.get("Type");if(!o||(0,d.isName)(o,"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 l=t.getArray("Border");if(Array.isArray(l)&&l.length>=3){this.borderStyle.setHorizontalCornerRadius(l[0]);this.borderStyle.setVerticalCornerRadius(l[1]);this.borderStyle.setWidth(l[2],this.rectangle);4===l.length&&this.borderStyle.setDashArray(l[3])}}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function setAppearance(t){this.appearance=null;var r=t.get("AP");if((0,d.isDict)(r)){var o=r.get("N");if((0,d.isStream)(o))this.appearance=o;else if((0,d.isDict)(o)){var l=t.get("AS");(0,d.isName)(l)&&o.has(l.name)&&(this.appearance=o.get(l.name))}}}},{key:"loadResources",value:function loadResources(t){return this.appearance.dict.getAsync("Resources").then((function(r){if(r){return new v.ObjectLoader(r,t,r.xref).load().then((function(){return r}))}}))}},{key:"getOperatorList",value:function getOperatorList(t,r,o,l){var u=this;if(!this.appearance)return Promise.resolve(new S.OperatorList);var h=this.appearance,d=this.data,m=h.dict,g=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),y=m.getArray("BBox")||[0,0,1,1],v=m.getArray("Matrix")||[1,0,0,1,0,0],k=getTransformMatrix(d.rect,y,v);return g.then((function(o){var l=new S.OperatorList;l.addOp(c.OPS.beginAnnotation,[d.id,d.rect,k,v]);return t.getOperatorList({stream:h,task:r,resources:o,operatorList:l,fallbackFontDict:u._fallbackFontDict}).then((function(){l.addOp(c.OPS.endAnnotation,[]);u.reset();return l}))}))}},{key:"save",value:(t=_asyncToGenerator(l.default.mark((function _callee2(t,r,o){return l.default.wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),_callee2)}))),function save(r,o,l){return t.apply(this,arguments)})},{key:"getFieldObject",value:function getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex}: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:"_constructFieldName",value:function _constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){(0,c.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent"))return(0,c.stringToPDFString)(t.get("T"));var r=[];t.has("T")&&r.unshift((0,c.stringToPDFString)(t.get("T")));var o=t,l=new d.RefSet;t.objId&&l.put(t.objId);for(;o.has("Parent")&&(o=o.get("Parent"))instanceof d.Dict&&(!o.objId||!l.has(o.objId));){o.objId&&l.put(o.objId);o.has("T")&&r.unshift((0,c.stringToPDFString)(o.get("T")))}return r.join(".")}}]);var t;return Annotation}();r.Annotation=w;var x=function(){function AnnotationBorderStyle(){_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=c.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,d.isName)(t))this.width=0;else if(Number.isInteger(t)){if(t>0){var o=(r[2]-r[0])/2,l=(r[3]-r[1])/2;if(o>0&&l>0&&(t>o||t>l)){(0,c.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(t));t=1}}this.width=t}}},{key:"setStyle",value:function setStyle(t){if((0,d.isName)(t))switch(t.name){case"S":this.style=c.AnnotationBorderStyleType.SOLID;break;case"D":this.style=c.AnnotationBorderStyleType.DASHED;break;case"B":this.style=c.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=c.AnnotationBorderStyleType.INSET;break;case"U":this.style=c.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function setDashArray(t){if(Array.isArray(t)&&t.length>0){var r,o=!0,l=!0,c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var u=r.value;if(!(+u>=0)){o=!1;break}u>0&&(l=!1)}}catch(t){c.e(t)}finally{c.f()}o&&!l?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=x;var O=function(t){_inherits(MarkupAnnotation,t);var r=_createSuper(MarkupAnnotation);function MarkupAnnotation(t){var o;_classCallCheck(this,MarkupAnnotation);o=r.call(this,t);var l=t.dict;if(l.has("IRT")){var u=l.getRaw("IRT");o.data.inReplyTo=(0,d.isRef)(u)?u.toString():null;var h=l.get("RT");o.data.replyType=(0,d.isName)(h)?h.name:c.AnnotationReplyType.REPLY}if(o.data.replyType===c.AnnotationReplyType.GROUP){var m=l.get("IRT");o.data.title=(0,c.stringToPDFString)(m.get("T")||"");o.setContents(m.get("Contents"));o.data.contents=o.contents;if(m.has("CreationDate")){o.setCreationDate(m.get("CreationDate"));o.data.creationDate=o.creationDate}else o.data.creationDate=null;if(m.has("M")){o.setModificationDate(m.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;o.data.hasPopup=m.has("Popup");if(m.has("C")){o.setColor(m.getArray("C"));o.data.color=o.color}else o.data.color=null}else{o.data.title=(0,c.stringToPDFString)(l.get("T")||"");o.setCreationDate(l.get("CreationDate"));o.data.creationDate=o.creationDate;o.data.hasPopup=l.has("Popup");l.has("C")||(o.data.color=null)}return o}_createClass(MarkupAnnotation,[{key:"setCreationDate",value:function setCreationDate(t){this.creationDate=(0,c.isString)(t)?t:null}},{key:"_setDefaultAppearance",value:function _setDefaultAppearance(t){var r=t.xref,o=t.extra,l=t.strokeColor,c=t.fillColor,u=t.blendMode,h=t.strokeAlpha,m=t.fillAlpha,g=t.pointsCallback,y=Number.MAX_VALUE,v=Number.MAX_VALUE,S=Number.MIN_VALUE,_=Number.MIN_VALUE,C=["q"];o&&C.push(o);l&&C.push("".concat(l[0]," ").concat(l[1]," ").concat(l[2]," RG"));c&&C.push("".concat(c[0]," ").concat(c[1]," ").concat(c[2]," rg"));var w=this.data.quadPoints;w||(w=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var x,O=_createForOfIteratorHelper(w);try{for(O.s();!(x=O.n()).done;){var T=_slicedToArray(g(C,x.value),4),R=T[0],E=T[1],M=T[2],D=T[3];y=Math.min(y,R);S=Math.max(S,E);v=Math.min(v,M);_=Math.max(_,D)}}catch(t){O.e(t)}finally{O.f()}C.push("Q");var j=new d.Dict(r),L=new d.Dict(r);L.set("Subtype",d.Name.get("Form"));var N=new k.StringStream(C.join(" "));N.dict=L;j.set("Fm0",N);var U=new d.Dict(r);u&&U.set("BM",d.Name.get(u));"number"==typeof h&&U.set("CA",h);"number"==typeof m&&U.set("ca",m);var H=new d.Dict(r);H.set("GS0",U);var W=new d.Dict(r);W.set("ExtGState",H);W.set("XObject",j);var q=new d.Dict(r);q.set("Resources",W);var $=this.data.rect=[y,v,S,_];q.set("BBox",$);this.appearance=new k.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=q;this._streams.push(this.appearance,N)}}]);return MarkupAnnotation}(w);r.MarkupAnnotation=O;var T=function(t){_inherits(WidgetAnnotation,t);var r,o,m,g=_createSuper(WidgetAnnotation);function WidgetAnnotation(t){var r;_classCallCheck(this,WidgetAnnotation);r=g.call(this,t);var o=t.dict,l=r.data;r.ref=t.ref;l.annotationType=c.AnnotationType.WIDGET;void 0===l.fieldName&&(l.fieldName=r._constructFieldName(o));void 0===l.actions&&(l.actions=(0,u.collectActions)(t.xref,o,c.AnnotationActionEventType));var m=(0,u.getInheritableProperty)({dict:o,key:"V",getArray:!0});l.fieldValue=r._decodeFormValue(m);var y=(0,u.getInheritableProperty)({dict:o,key:"DV",getArray:!0});l.defaultFieldValue=r._decodeFormValue(y);l.alternativeText=(0,c.stringToPDFString)(o.get("TU")||"");var v=(0,u.getInheritableProperty)({dict:o,key:"DA"})||t.acroForm.get("DA");r._defaultAppearance=(0,c.isString)(v)?v:"";l.defaultAppearanceData=(0,h.parseDefaultAppearance)(r._defaultAppearance);var S=(0,u.getInheritableProperty)({dict:o,key:"FT"});l.fieldType=(0,d.isName)(S)?S.name:null;var k=(0,u.getInheritableProperty)({dict:o,key:"DR"}),_=t.acroForm.get("DR"),C=r.appearance&&r.appearance.dict.get("Resources");r._fieldResources={localResources:k,acroFormResources:_,appearanceResources:C,mergedResources:d.Dict.merge({xref:t.xref,dictArray:[k,C,_],mergeSubDicts:!0})};l.fieldFlags=(0,u.getInheritableProperty)({dict:o,key:"Ff"});(!Number.isInteger(l.fieldFlags)||l.fieldFlags<0)&&(l.fieldFlags=0);l.readOnly=r.hasFieldFlag(c.AnnotationFieldFlag.READONLY);l.hidden=r._hasFlag(l.annotationFlags,c.AnnotationFlag.HIDDEN);return r}_createClass(WidgetAnnotation,[{key:"_decodeFormValue",value:function _decodeFormValue(t){return Array.isArray(t)?t.filter((function(t){return(0,c.isString)(t)})).map((function(t){return(0,c.stringToPDFString)(t)})):(0,d.isName)(t)?(0,c.stringToPDFString)(t.name):(0,c.isString)(t)?(0,c.stringToPDFString)(t):null}},{key:"hasFieldFlag",value:function hasFieldFlag(t){return!!(this.data.fieldFlags&t)}},{key:"getOperatorList",value:function getOperatorList(t,r,o,l){var u=this;return!o||this instanceof D?this._hasText?this._getAppearance(t,r,l).then((function(h){if(u.appearance&&null===h)return _get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",u).call(u,t,r,o,l);var d=new S.OperatorList;if(!u._defaultAppearance||null===h)return d;var m=[1,0,0,1,0,0],g=[0,0,u.data.rect[2]-u.data.rect[0],u.data.rect[3]-u.data.rect[1]],y=getTransformMatrix(u.data.rect,g,m);d.addOp(c.OPS.beginAnnotation,[u.data.id,u.data.rect,y,m]);var v=new k.StringStream(h);return t.getOperatorList({stream:v,task:r,resources:u._fieldResources.mergedResources,operatorList:d}).then((function(){d.addOp(c.OPS.endAnnotation,[]);return d}))})):_get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l):Promise.resolve(new S.OperatorList)}},{key:"save",value:(m=_asyncToGenerator(l.default.mark((function _callee3(t,r,o){var u,h,m,g,y,v,S,k,C,w,x,O,T,R,E;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:if(o){l.next=2;break}return l.abrupt("return",null);case 2:u=o.get(this.data.id);if((h=u&&u.value)!==this.data.fieldValue&&void 0!==h){l.next=6;break}return l.abrupt("return",null);case 6:l.next=8;return this._getAppearance(t,r,o);case 8:if(null!==(m=l.sent)){l.next=11;break}return l.abrupt("return",null);case 11:g=t.xref;y=g.fetchIfRef(this.ref);if((0,d.isDict)(y)){l.next=15;break}return l.abrupt("return",null);case 15:v=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];S={path:(0,c.stringToPDFString)(y.get("T")||""),value:h};k=g.getNewRef();(C=new d.Dict(g)).set("N",k);w=g.encrypt;x=null;O=null;if(w){x=w.createCipherTransform(this.ref.num,this.ref.gen);O=w.createCipherTransform(k.num,k.gen);m=O.encryptString(m)}y.set("V",(0,c.isAscii)(h)?h:(0,c.stringToUTF16BEString)(h));y.set("AP",C);y.set("M","D:".concat((0,c.getModificationDate)()));(T=new d.Dict(g)).set("Length",m.length);T.set("Subtype",d.Name.get("Form"));T.set("Resources",this._getSaveFieldResources(g));T.set("BBox",v);R=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,_.writeDict)(y,R,x);R.push("\nendobj\n");E=["".concat(k.num," ").concat(k.gen," obj\n")];(0,_.writeDict)(T,E,O);E.push(" stream\n",m,"\nendstream\nendobj\n");return l.abrupt("return",[{ref:this.ref,data:R.join(""),xfa:S},{ref:k,data:E.join(""),xfa:null}]);case 39:case"end":return l.stop()}}),_callee3,this)}))),function save(t,r,o){return m.apply(this,arguments)})},{key:"_getAppearance",value:(o=_asyncToGenerator(l.default.mark((function _callee4(t,r,o){var u,d,m,g,y,v,S,k,_,C,w,x,O,T,R,E,M,D;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:u=this.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD);if(o&&!u){l.next=3;break}return l.abrupt("return",null);case 3:d=o.get(this.data.id);if(void 0!==(m=d&&d.value)){l.next=7;break}return l.abrupt("return",null);case 7:if(""!==(m=m.trim())){l.next=10;break}return l.abrupt("return","");case 10:g=-1;this.data.multiLine&&(g=m.split(/\r\n|\r|\n/).length);v=y=2;S=this.data.rect[3]-this.data.rect[1];k=this.data.rect[2]-this.data.rect[0];this._defaultAppearance||(this.data.defaultAppearanceData=(0,h.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));_=this._computeFontSize(S,g),C=_slicedToArray(_,2),w=C[0],x=C[1];l.next=20;return this._getFontData(t,r);case 20:O=l.sent;T=O.descent;isNaN(T)&&(T=0);R=y+Math.abs(T)*x;E=this.data.textAlignment;if(!this.data.multiLine){l.next=27;break}return l.abrupt("return",this._getMultilineAppearance(w,m,O,x,k,S,E,v,R));case 27:M=O.encodeString(m).join("");if(!this.data.comb){l.next=30;break}return l.abrupt("return",this._getCombAppearance(w,O,M,k,v,R));case 30:if(!(0===E||E>2)){l.next=32;break}return l.abrupt("return","/Tx BMC q BT "+w+" 1 0 0 1 ".concat(v," ").concat(R," Tm (").concat((0,c.escapeString)(M),") Tj")+" ET Q EMC");case 32:D=this._renderText(M,O,x,k,E,v,R);return l.abrupt("return","/Tx BMC q BT "+w+" 1 0 0 1 0 0 Tm ".concat(D)+" ET Q EMC");case 34:case"end":return l.stop()}}),_callee4,this)}))),function _getAppearance(t,r,l){return o.apply(this,arguments)})},{key:"_getFontData",value:(r=_asyncToGenerator(l.default.mark((function _callee5(t,r){var o,c,u,h,m;return l.default.wrap((function _callee5$(l){for(;;)switch(l.prev=l.next){case 0:o=new S.OperatorList;c={font:null,clone:function clone(){return this}};u=this.data.defaultAppearanceData,h=u.fontName,m=u.fontSize;l.next=5;return t.handleSetFont(this._fieldResources.mergedResources,[h&&d.Name.get(h),m],null,o,r,c,null);case 5:return l.abrupt("return",c.font);case 6:case"end":return l.stop()}}),_callee5,this)}))),function _getFontData(t,o){return r.apply(this,arguments)})},{key:"_computeFontSize",value:function _computeFontSize(t,r){var o=this.data.defaultAppearanceData.fontSize;if(!o){var l=function roundWithOneDigit(t){return Math.round(10*t)/10};if(-1===r)o=l(.8*t);else{var c=(o=10)/.8,u=Math.round(t/c);o=l(.8*(c=t/(u=Math.max(u,r))))}var d=this.data.defaultAppearanceData,m=d.fontName,g=d.fontColor;this._defaultAppearance=(0,h.createDefaultAppearance)({fontSize:o,fontName:m,fontColor:g})}return[this._defaultAppearance,o]}},{key:"_renderText",value:function _renderText(t,r,o,l,u,h,d){var m,g,y=o/1e3,v=0,S=_createForOfIteratorHelper(r.charsToGlyphs(t));try{for(S.s();!(m=S.n()).done;){v+=m.value.width*y}}catch(t){S.e(t)}finally{S.f()}g=(g=1===u?(l-v)/2:2===u?l-v-h:h).toFixed(2);d=d.toFixed(2);return"".concat(g," ").concat(d," Td (").concat((0,c.escapeString)(t),") Tj")}},{key:"_getSaveFieldResources",value:function _getSaveFieldResources(t){var r=this._fieldResources,o=r.localResources,l=r.appearanceResources,c=r.acroFormResources,u=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!u)return o||d.Dict.empty;for(var h=0,m=[o,l];h<m.length;h++){var g=m[h];if(g instanceof d.Dict){var y=g.get("Font");if(y instanceof d.Dict&&y.has(u))return g}}if(c instanceof d.Dict){var v=c.get("Font");if(v instanceof d.Dict&&v.has(u)){var S=new d.Dict(t);S.set(u,v.getRaw(u));var k=new d.Dict(t);k.set("Font",S);return d.Dict.merge({xref:t,dictArray:[k,o],mergeSubDicts:!0})}}return o||d.Dict.empty}},{key:"getFieldObject",value:function getFieldObject(){return null}}]);return WidgetAnnotation}(w),R=function(t){_inherits(TextWidgetAnnotation,t);var r=_createSuper(TextWidgetAnnotation);function TextWidgetAnnotation(t){var o;_classCallCheck(this,TextWidgetAnnotation);(o=r.call(this,t))._hasText=!0;var l=t.dict;(0,c.isString)(o.data.fieldValue)||(o.data.fieldValue="");var h=(0,u.getInheritableProperty)({dict:l,key:"Q"});(!Number.isInteger(h)||h<0||h>2)&&(h=null);o.data.textAlignment=h;var d=(0,u.getInheritableProperty)({dict:l,key:"MaxLen"});(!Number.isInteger(d)||d<0)&&(d=null);o.data.maxLen=d;o.data.multiLine=o.hasFieldFlag(c.AnnotationFieldFlag.MULTILINE);o.data.comb=o.hasFieldFlag(c.AnnotationFieldFlag.COMB)&&!o.hasFieldFlag(c.AnnotationFieldFlag.MULTILINE)&&!o.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD)&&!o.hasFieldFlag(c.AnnotationFieldFlag.FILESELECT)&&null!==o.data.maxLen;return o}_createClass(TextWidgetAnnotation,[{key:"_getCombAppearance",value:function _getCombAppearance(t,r,o,l,u,h){var d,m=(l/this.data.maxLen).toFixed(2),g=[],y=_createForOfIteratorHelper(r.getCharPositions(o));try{for(y.s();!(d=y.n()).done;){var v=_slicedToArray(d.value,2),S=v[0],k=v[1];g.push("(".concat((0,c.escapeString)(o.substring(S,k)),") Tj"))}}catch(t){y.e(t)}finally{y.f()}var _=g.join(" ".concat(m," 0 Td "));return"/Tx BMC q BT "+t+" 1 0 0 1 ".concat(u," ").concat(h," Tm ").concat(_)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function _getMultilineAppearance(t,r,o,l,c,u,h,d,m){var g,y=[],v=c-2*d,S=_createForOfIteratorHelper(r.split(/\r\n|\r|\n/));try{for(S.s();!(g=S.n()).done;){var k,_=g.value,C=_createForOfIteratorHelper(this._splitLine(_,o,l,v));try{for(C.s();!(k=C.n()).done;){var w=k.value,x=0===y.length?d:0;y.push(this._renderText(w,o,l,c,h,x,-l))}}catch(t){C.e(t)}finally{C.f()}}}catch(t){S.e(t)}finally{S.f()}var O=y.join("\n");return"/Tx BMC q BT "+t+" 1 0 0 1 0 ".concat(u," Tm ").concat(O)+" ET Q EMC"}},{key:"_splitLine",value:function _splitLine(t,r,o,l){t=r.encodeString(t).join("");var c=r.charsToGlyphs(t);if(c.length<=1)return[t];for(var u=r.getCharPositions(t),h=o/1e3,d=[],m=-1,g=-1,y=-1,v=0,S=0,k=0,_=c.length;k<_;k++){var C=_slicedToArray(u[k],2),w=C[0],x=C[1],O=c[k],T=O.width*h;if(" "===O.unicode)if(S+T>l){d.push(t.substring(v,w));v=w;S=T;m=-1;y=-1}else{S+=T;m=w;g=x;y=k}else if(S+T>l)if(-1!==m){d.push(t.substring(v,g));v=g;k=y+1;m=-1;S=0}else{d.push(t.substring(v,w));v=w;S=T}else S+=T}v<t.length&&d.push(t.substring(v,t.length));return d}},{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(c.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,page:this.data.pageIndex,type:"text"}}}]);return TextWidgetAnnotation}(T),E=function(t){_inherits(ButtonWidgetAnnotation,t);var r,o,u,h=_createSuper(ButtonWidgetAnnotation);function ButtonWidgetAnnotation(t){var r;_classCallCheck(this,ButtonWidgetAnnotation);(r=h.call(this,t)).checkedAppearance=null;r.uncheckedAppearance=null;r.data.checkBox=!r.hasFieldFlag(c.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.radioButton=r.hasFieldFlag(c.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.pushButton=r.hasFieldFlag(c.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,c.warn)("Invalid field flags for button widget annotation");return r}_createClass(ButtonWidgetAnnotation,[{key:"getOperatorList",value:function getOperatorList(t,r,o,l){if(this.data.pushButton)return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,!1,l);if(l){var c,u=l.get(this.data.id),h=u&&u.value;if(void 0===h)return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l);if(c=h?this.checkedAppearance:this.uncheckedAppearance){var d=this.appearance;this.appearance=c;var m=_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l);this.appearance=d;return m}return Promise.resolve(new S.OperatorList)}return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l)}},{key:"save",value:(u=_asyncToGenerator(l.default.mark((function _callee6(t,r,o){return l.default.wrap((function _callee6$(l){for(;;)switch(l.prev=l.next){case 0:if(!this.data.checkBox){l.next=2;break}return l.abrupt("return",this._saveCheckbox(t,r,o));case 2:if(!this.data.radioButton){l.next=4;break}return l.abrupt("return",this._saveRadioButton(t,r,o));case 4:return l.abrupt("return",null);case 5:case"end":return l.stop()}}),_callee6,this)}))),function save(t,r,o){return u.apply(this,arguments)})},{key:"_saveCheckbox",value:(o=_asyncToGenerator(l.default.mark((function _callee7(t,r,o){var u,h,m,g,y,v,S,k;return l.default.wrap((function _callee7$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:u=o.get(this.data.id);if(void 0!==(h=u&&u.value)){r.next=6;break}return r.abrupt("return",null);case 6:if((this.data.fieldValue&&"Off"!==this.data.fieldValue)!==h){r.next=9;break}return r.abrupt("return",null);case 9:m=t.xref.fetchIfRef(this.ref);if((0,d.isDict)(m)){r.next=12;break}return r.abrupt("return",null);case 12:g={path:(0,c.stringToPDFString)(m.get("T")||""),value:h?this.data.exportValue:""};y=d.Name.get(h?this.data.exportValue:"Off");m.set("V",y);m.set("AS",y);m.set("M","D:".concat((0,c.getModificationDate)()));v=t.xref.encrypt;S=null;v&&(S=v.createCipherTransform(this.ref.num,this.ref.gen));k=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,_.writeDict)(m,k,S);k.push("\nendobj\n");return r.abrupt("return",[{ref:this.ref,data:k.join(""),xfa:g}]);case 24:case"end":return r.stop()}}),_callee7,this)}))),function _saveCheckbox(t,r,l){return o.apply(this,arguments)})},{key:"_saveRadioButton",value:(r=_asyncToGenerator(l.default.mark((function _callee8(t,r,o){var u,h,m,g,y,v,S,k,C,w,x,O;return l.default.wrap((function _callee8$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:u=o.get(this.data.id);if(void 0!==(h=u&&u.value)){r.next=6;break}return r.abrupt("return",null);case 6:if(this.data.fieldValue===this.data.buttonValue!==h){r.next=9;break}return r.abrupt("return",null);case 9:m=t.xref.fetchIfRef(this.ref);if((0,d.isDict)(m)){r.next=12;break}return r.abrupt("return",null);case 12:g={path:(0,c.stringToPDFString)(m.get("T")||""),value:h?this.data.buttonValue:""};y=d.Name.get(h?this.data.buttonValue:"Off");v=null;S=t.xref.encrypt;if(h)if((0,d.isRef)(this.parent)){k=t.xref.fetch(this.parent);C=null;S&&(C=S.createCipherTransform(this.parent.num,this.parent.gen));k.set("V",y);v=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")];(0,_.writeDict)(k,v,C);v.push("\nendobj\n")}else(0,d.isDict)(this.parent)&&this.parent.set("V",y);m.set("AS",y);m.set("M","D:".concat((0,c.getModificationDate)()));w=null;S&&(w=S.createCipherTransform(this.ref.num,this.ref.gen));x=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,_.writeDict)(m,x,w);x.push("\nendobj\n");O=[{ref:this.ref,data:x.join(""),xfa:g}];null!==v&&O.push({ref:this.parent,data:v.join(""),xfa:null});return r.abrupt("return",O);case 27:case"end":return r.stop()}}),_callee8,this)}))),function _saveRadioButton(t,o,l){return r.apply(this,arguments)})},{key:"_processCheckBox",value:function _processCheckBox(t){var r=t.dict.get("AP");if((0,d.isDict)(r)){var o=r.get("N");if((0,d.isDict)(o)){var l=o.getKeys();l.includes("Off")||l.push("Off");l.includes(this.data.fieldValue)||(this.data.fieldValue=null);if(2===l.length){this.data.exportValue="Off"===l[0]?l[1]:l[0];this.checkedAppearance=o.get(this.data.exportValue);this.uncheckedAppearance=o.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,d.isDict)(r)){this.parent=t.dict.getRaw("Parent");var o=r.get("V");(0,d.isName)(o)&&(this.data.fieldValue=this._decodeFormValue(o))}var l=t.dict.get("AP");if((0,d.isDict)(l)){var c=l.get("N");if((0,d.isDict)(c)){var u,h=_createForOfIteratorHelper(c.getKeys());try{for(h.s();!(u=h.n()).done;){var m=u.value;if("Off"!==m){this.data.buttonValue=this._decodeFormValue(m);break}}}catch(t){h.e(t)}finally{h.f()}this.checkedAppearance=c.get(this.data.buttonValue);this.uncheckedAppearance=c.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");m.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl})}else(0,c.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,page:this.data.pageIndex,type:r}}},{key:"fallbackFontDict",get:function get(){var t=new d.Dict;t.set("BaseFont",d.Name.get("ZapfDingbats"));t.set("Type",d.Name.get("FallbackType"));t.set("Subtype",d.Name.get("FallbackType"));t.set("Encoding",d.Name.get("ZapfDingbatsEncoding"));return(0,c.shadow)(this,"fallbackFontDict",t)}}]);return ButtonWidgetAnnotation}(T),M=function(t){_inherits(ChoiceWidgetAnnotation,t);var r=_createSuper(ChoiceWidgetAnnotation);function ChoiceWidgetAnnotation(t){var o;_classCallCheck(this,ChoiceWidgetAnnotation);(o=r.call(this,t)).data.options=[];var l=(0,u.getInheritableProperty)({dict:t.dict,key:"Opt"});if(Array.isArray(l))for(var h=t.xref,d=0,m=l.length;d<m;d++){var g=h.fetchIfRef(l[d]),y=Array.isArray(g);o.data.options[d]={exportValue:o._decodeFormValue(y?h.fetchIfRef(g[0]):g),displayValue:o._decodeFormValue(y?h.fetchIfRef(g[1]):g)}}(0,c.isString)(o.data.fieldValue)?o.data.fieldValue=[o.data.fieldValue]:o.data.fieldValue||(o.data.fieldValue=[]);o.data.combo=o.hasFieldFlag(c.AnnotationFieldFlag.COMBO);o.data.multiSelect=o.hasFieldFlag(c.AnnotationFieldFlag.MULTISELECT);o._hasText=!0;return o}_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,items:this.data.options,page:this.data.pageIndex,type:t}}}]);return ChoiceWidgetAnnotation}(T),D=function(t){_inherits(SignatureWidgetAnnotation,t);var r=_createSuper(SignatureWidgetAnnotation);function SignatureWidgetAnnotation(t){var o;_classCallCheck(this,SignatureWidgetAnnotation);(o=r.call(this,t)).data.fieldValue=null;return o}_createClass(SignatureWidgetAnnotation,[{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}]);return SignatureWidgetAnnotation}(T),j=function(t){_inherits(TextAnnotation,t);var r=_createSuper(TextAnnotation);function TextAnnotation(t){var o;_classCallCheck(this,TextAnnotation);o=r.call(this,t);var l=t.dict;o.data.annotationType=c.AnnotationType.TEXT;if(o.data.hasAppearance)o.data.name="NoIcon";else{o.data.rect[1]=o.data.rect[3]-22;o.data.rect[2]=o.data.rect[0]+22;o.data.name=l.has("Name")?l.get("Name").name:"Note"}if(l.has("State")){o.data.state=l.get("State")||null;o.data.stateModel=l.get("StateModel")||null}else{o.data.state=null;o.data.stateModel=null}return o}return TextAnnotation}(O),L=function(t){_inherits(LinkAnnotation,t);var r=_createSuper(LinkAnnotation);function LinkAnnotation(t){var o;_classCallCheck(this,LinkAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.LINK;var l=getQuadPoints(t.dict,o.rectangle);l&&(o.data.quadPoints=l);m.Catalog.parseDestDictionary({destDict:t.dict,resultObj:o.data,docBaseUrl:t.pdfManager.docBaseUrl});return o}return LinkAnnotation}(w),N=function(t){_inherits(PopupAnnotation,t);var r=_createSuper(PopupAnnotation);function PopupAnnotation(t){var o;_classCallCheck(this,PopupAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.POPUP;var l=t.dict.get("Parent");if(!l){(0,c.warn)("Popup annotation has a missing or invalid parent annotation.");return _possibleConstructorReturn(o)}var u=l.get("Subtype");o.data.parentType=(0,d.isName)(u)?u.name:null;var h=t.dict.getRaw("Parent");o.data.parentId=(0,d.isRef)(h)?h.toString():null;var m=l.getArray("Rect");Array.isArray(m)&&4===m.length?o.data.parentRect=c.Util.normalizeRect(m):o.data.parentRect=[0,0,0,0];var g=l.get("RT");(0,d.isName)(g,c.AnnotationReplyType.GROUP)&&(l=l.get("IRT"));if(l.has("M")){o.setModificationDate(l.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;if(l.has("C")){o.setColor(l.getArray("C"));o.data.color=o.color}else o.data.color=null;if(!o.viewable){var y=l.get("F");o._isViewable(y)&&o.setFlags(y)}o.data.title=(0,c.stringToPDFString)(l.get("T")||"");o.data.contents=(0,c.stringToPDFString)(l.get("Contents")||"");return o}return PopupAnnotation}(w),U=function(t){_inherits(FreeTextAnnotation,t);var r=_createSuper(FreeTextAnnotation);function FreeTextAnnotation(t){var o;_classCallCheck(this,FreeTextAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.FREETEXT;return o}return FreeTextAnnotation}(O),H=function(t){_inherits(LineAnnotation,t);var r=_createSuper(LineAnnotation);function LineAnnotation(t){var o;_classCallCheck(this,LineAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.LINE;var l=t.dict.getArray("L");o.data.lineCoordinates=c.Util.normalizeRect(l);if(!o.appearance){var u=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],h=t.dict.get("CA"),d=null,m=t.dict.getArray("IC");m&&(d=(m=getRgbColor(m))?Array.from(m).map((function(t){return t/255})):null);var g=d?h:null,y=o.borderStyle.width||1,v=2*y,S=[o.data.lineCoordinates[0]-v,o.data.lineCoordinates[1]-v,o.data.lineCoordinates[2]+v,o.data.lineCoordinates[3]+v];c.Util.intersect(o.rectangle,S)||(o.rectangle=S);o._setDefaultAppearance({xref:t.xref,extra:"".concat(y," w"),strokeColor:u,fillColor:d,strokeAlpha:h,fillAlpha:g,pointsCallback:function pointsCallback(t,r){t.push("".concat(l[0]," ").concat(l[1]," m"),"".concat(l[2]," ").concat(l[3]," l"),"S");return[r[0].x-y,r[1].x+y,r[3].y-y,r[1].y+y]}})}return o}return LineAnnotation}(O),W=function(t){_inherits(SquareAnnotation,t);var r=_createSuper(SquareAnnotation);function SquareAnnotation(t){var o;_classCallCheck(this,SquareAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.SQUARE;if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=t.dict.get("CA"),h=null,d=t.dict.getArray("IC");if(d){d=getRgbColor(d);h=d?Array.from(d).map((function(t){return t/255})):null}var m=h?u:null;o._setDefaultAppearance({xref:t.xref,extra:"".concat(o.borderStyle.width," w"),strokeColor:l,fillColor:h,strokeAlpha:u,fillAlpha:m,pointsCallback:function pointsCallback(t,r){var l=r[2].x+o.borderStyle.width/2,c=r[2].y+o.borderStyle.width/2,u=r[3].x-r[2].x-o.borderStyle.width,d=r[1].y-r[3].y-o.borderStyle.width;t.push("".concat(l," ").concat(c," ").concat(u," ").concat(d," re"));h?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return SquareAnnotation}(O),q=function(t){_inherits(CircleAnnotation,t);var r=_createSuper(CircleAnnotation);function CircleAnnotation(t){var o;_classCallCheck(this,CircleAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.CIRCLE;if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=t.dict.get("CA"),h=null,d=t.dict.getArray("IC");if(d){d=getRgbColor(d);h=d?Array.from(d).map((function(t){return t/255})):null}var m=h?u:null,g=4/3*Math.tan(Math.PI/8);o._setDefaultAppearance({xref:t.xref,extra:"".concat(o.borderStyle.width," w"),strokeColor:l,fillColor:h,strokeAlpha:u,fillAlpha:m,pointsCallback:function pointsCallback(t,r){var l=r[0].x+o.borderStyle.width/2,c=r[0].y-o.borderStyle.width/2,u=r[3].x-o.borderStyle.width/2,d=r[3].y+o.borderStyle.width/2,m=l+(u-l)/2,y=c+(d-c)/2,v=(u-l)/2*g,S=(d-c)/2*g;t.push("".concat(m," ").concat(d," m"),"".concat(m+v," ").concat(d," ").concat(u," ").concat(y+S," ").concat(u," ").concat(y," c"),"".concat(u," ").concat(y-S," ").concat(m+v," ").concat(c," ").concat(m," ").concat(c," c"),"".concat(m-v," ").concat(c," ").concat(l," ").concat(y-S," ").concat(l," ").concat(y," c"),"".concat(l," ").concat(y+S," ").concat(m-v," ").concat(d," ").concat(m," ").concat(d," c"),"h");h?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return CircleAnnotation}(O),$=function(t){_inherits(PolylineAnnotation,t);var r=_createSuper(PolylineAnnotation);function PolylineAnnotation(t){var o;_classCallCheck(this,PolylineAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.POLYLINE;o.data.vertices=[];var l=t.dict.getArray("Vertices");if(!Array.isArray(l))return _possibleConstructorReturn(o);for(var u=0,h=l.length;u<h;u+=2)o.data.vertices.push({x:l[u],y:l[u+1]});if(!o.appearance){var d,m=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],g=t.dict.get("CA"),y=o.borderStyle.width||1,v=2*y,S=[1/0,1/0,-1/0,-1/0],k=_createForOfIteratorHelper(o.data.vertices);try{for(k.s();!(d=k.n()).done;){var _=d.value;S[0]=Math.min(S[0],_.x-v);S[1]=Math.min(S[1],_.y-v);S[2]=Math.max(S[2],_.x+v);S[3]=Math.max(S[3],_.y+v)}}catch(t){k.e(t)}finally{k.f()}c.Util.intersect(o.rectangle,S)||(o.rectangle=S);o._setDefaultAppearance({xref:t.xref,extra:"".concat(y," w"),strokeColor:m,strokeAlpha:g,pointsCallback:function pointsCallback(t,r){for(var l=o.data.vertices,c=0,u=l.length;c<u;c++)t.push("".concat(l[c].x," ").concat(l[c].y," ").concat(0===c?"m":"l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return PolylineAnnotation}(O),X=function(t){_inherits(PolygonAnnotation,t);var r=_createSuper(PolygonAnnotation);function PolygonAnnotation(t){var o;_classCallCheck(this,PolygonAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.POLYGON;return o}return PolygonAnnotation}($),z=function(t){_inherits(CaretAnnotation,t);var r=_createSuper(CaretAnnotation);function CaretAnnotation(t){var o;_classCallCheck(this,CaretAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.CARET;return o}return CaretAnnotation}(O),G=function(t){_inherits(InkAnnotation,t);var r=_createSuper(InkAnnotation);function InkAnnotation(t){var o;_classCallCheck(this,InkAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.INK;o.data.inkLists=[];var l=t.dict.getArray("InkList");if(!Array.isArray(l))return _possibleConstructorReturn(o);for(var u=t.xref,h=0,d=l.length;h<d;++h){o.data.inkLists.push([]);for(var m=0,g=l[h].length;m<g;m+=2)o.data.inkLists[h].push({x:u.fetchIfRef(l[h][m]),y:u.fetchIfRef(l[h][m+1])})}if(!o.appearance){var y,v=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],S=t.dict.get("CA"),k=o.borderStyle.width||1,_=2*k,C=[1/0,1/0,-1/0,-1/0],w=_createForOfIteratorHelper(o.data.inkLists);try{for(w.s();!(y=w.n()).done;){var x,O=_createForOfIteratorHelper(y.value);try{for(O.s();!(x=O.n()).done;){var T=x.value;C[0]=Math.min(C[0],T.x-_);C[1]=Math.min(C[1],T.y-_);C[2]=Math.max(C[2],T.x+_);C[3]=Math.max(C[3],T.y+_)}}catch(t){O.e(t)}finally{O.f()}}}catch(t){w.e(t)}finally{w.f()}c.Util.intersect(o.rectangle,C)||(o.rectangle=C);o._setDefaultAppearance({xref:t.xref,extra:"".concat(k," w"),strokeColor:v,strokeAlpha:S,pointsCallback:function pointsCallback(t,r){var l,c=_createForOfIteratorHelper(o.data.inkLists);try{for(c.s();!(l=c.n()).done;){for(var u=l.value,h=0,d=u.length;h<d;h++)t.push("".concat(u[h].x," ").concat(u[h].y," ").concat(0===h?"m":"l"));t.push("S")}}catch(t){c.e(t)}finally{c.f()}return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return InkAnnotation}(O),V=function(t){_inherits(HighlightAnnotation,t);var r=_createSuper(HighlightAnnotation);function HighlightAnnotation(t){var o;_classCallCheck(this,HighlightAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.HIGHLIGHT;if(o.data.quadPoints=getQuadPoints(t.dict,null)){var l=o.appearance&&o.appearance.dict.get("Resources");if(!o.appearance||!l||!l.has("ExtGState")){o.appearance&&(0,c.warn)("HighlightAnnotation - ignoring built-in appearance stream.");var u=o.color?Array.from(o.color).map((function(t){return t/255})):[1,1,0],h=t.dict.get("CA");o._setDefaultAppearance({xref:t.xref,fillColor:u,blendMode:"Multiply",fillAlpha:h,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[0].x," ").concat(r[0].y," m"),"".concat(r[1].x," ").concat(r[1].y," l"),"".concat(r[3].x," ").concat(r[3].y," l"),"".concat(r[2].x," ").concat(r[2].y," l"),"f");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.hasPopup=!1;return o}return HighlightAnnotation}(O),Y=function(t){_inherits(UnderlineAnnotation,t);var r=_createSuper(UnderlineAnnotation);function UnderlineAnnotation(t){var o;_classCallCheck(this,UnderlineAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.UNDERLINE;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=t.dict.get("CA");o._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:l,strokeAlpha:u,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[2].x," ").concat(r[2].y," m"),"".concat(r[3].x," ").concat(r[3].y," l"),"S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.hasPopup=!1;return o}return UnderlineAnnotation}(O),K=function(t){_inherits(SquigglyAnnotation,t);var r=_createSuper(SquigglyAnnotation);function SquigglyAnnotation(t){var o;_classCallCheck(this,SquigglyAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.SQUIGGLY;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=t.dict.get("CA");o._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:l,strokeAlpha:u,pointsCallback:function pointsCallback(t,r){var o=(r[0].y-r[2].y)/6,l=o,c=r[2].x,u=r[2].y,h=r[3].x;t.push("".concat(c," ").concat(u+l," m"));do{c+=2;l=0===l?o:0;t.push("".concat(c," ").concat(u+l," l"))}while(c<h);t.push("S");return[r[2].x,h,u-2*o,u+2*o]}})}}else o.data.hasPopup=!1;return o}return SquigglyAnnotation}(O),J=function(t){_inherits(StrikeOutAnnotation,t);var r=_createSuper(StrikeOutAnnotation);function StrikeOutAnnotation(t){var o;_classCallCheck(this,StrikeOutAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.STRIKEOUT;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=t.dict.get("CA");o._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:l,strokeAlpha:u,pointsCallback:function pointsCallback(t,r){t.push("".concat((r[0].x+r[2].x)/2," ")+"".concat((r[0].y+r[2].y)/2," m"),"".concat((r[1].x+r[3].x)/2," ")+"".concat((r[1].y+r[3].y)/2," l"),"S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.hasPopup=!1;return o}return StrikeOutAnnotation}(O),Q=function(t){_inherits(StampAnnotation,t);var r=_createSuper(StampAnnotation);function StampAnnotation(t){var o;_classCallCheck(this,StampAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.STAMP;return o}return StampAnnotation}(O),Z=function(t){_inherits(FileAttachmentAnnotation,t);var r=_createSuper(FileAttachmentAnnotation);function FileAttachmentAnnotation(t){var o;_classCallCheck(this,FileAttachmentAnnotation);o=r.call(this,t);var l=new y.FileSpec(t.dict.get("FS"),t.xref);o.data.annotationType=c.AnnotationType.FILEATTACHMENT;o.data.file=l.serializable;return o}return FileAttachmentAnnotation}(O)},(t,r,o)=>{"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,o=t.fontSize,l=t.fontName,c=t.fontColor;r=c.every((function(t){return 0===t}))?"0 g":Array.from(c).map((function(t){return(t/255).toFixed(2)})).join(" ")+" rg";return"/".concat((0,u.escapePDFName)(l)," ").concat(o," Tf ").concat(r)};r.parseDefaultAppearance=function parseDefaultAppearance(t){return new g(t).parse()};var l=o(4),c=o(123),u=o(118),h=o(124),d=o(114),m=o(119);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))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 o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 g=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 m.StringStream(t))}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(DefaultAppearanceEvaluator,[{key:"parse",value:function parse(){var t={fn:0,args:[]},r={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){t.args.length=0;if(!this.read(t))break;if(0===this.savedStatesDepth){var o=t.fn,u=t.args;switch(0|o){case l.OPS.setFont:var h=_slicedToArray(u,2),m=h[0],g=h[1];m instanceof d.Name&&(r.fontName=m.name);"number"==typeof g&&g>0&&(r.fontSize=g);break;case l.OPS.setFillRGBColor:c.ColorSpace.singletons.rgb.getRgbItem(u,0,r.fontColor,0);break;case l.OPS.setFillGray:c.ColorSpace.singletons.gray.getRgbItem(u,0,r.fontColor,0);break;case l.OPS.setFillColorSpace:c.ColorSpace.singletons.cmyk.getRgbItem(u,0,r.fontColor,0)}}}}catch(t){(0,l.warn)('parseDefaultAppearance - ignoring errors: "'.concat(t,'".'))}return r}}]);return DefaultAppearanceEvaluator}(h.EvaluatorPreprocessor)},(t,r,o)=>{"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 l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(114),h=o(118);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=function(){function ColorSpace(t,r){_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&(0,c.unreachable)("Cannot initialize ColorSpace.");this.name=t;this.numComps=r}_createClass(ColorSpace,[{key:"getRgb",value:function getRgb(t,r){var o=new Uint8ClampedArray(3);this.getRgbItem(t,r,o,0);return o}},{key:"getRgbItem",value:function getRgbItem(t,r,o,l){(0,c.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,u,h,d){(0,c.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function getOutputLength(t,r){(0,c.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,o,l,c,u,h,d,m){var g=r*o,y=null,v=1<<h,S=o!==c||r!==l;if(this.isPassthrough(h))y=d;else if(1===this.numComps&&g>v&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var k=h<=8?new Uint8Array(v):new Uint16Array(v),_=0;_<v;_++)k[_]=_;var C=new Uint8ClampedArray(3*v);this.getRgbBuffer(k,0,v,C,0,h,0);if(S){y=new Uint8Array(3*g);for(var w=0,x=0;x<g;++x){var O=3*d[x];y[w++]=C[O];y[w++]=C[O+1];y[w++]=C[O+2]}}else for(var T=0,R=0;R<g;++R){var E=3*d[R];t[T++]=C[E];t[T++]=C[E+1];t[T++]=C[E+2];T+=m}}else if(S){y=new Uint8ClampedArray(3*g);this.getRgbBuffer(d,0,g,y,0,h,0)}else this.getRgbBuffer(d,0,l*u,t,0,h,m);if(y)if(S)!function resizeRgbImage(t,r,o,l,c,u,h){h=1!==h?0:h;for(var d,m=o/c,g=l/u,y=0,v=new Uint16Array(c),S=3*o,k=0;k<c;k++)v[k]=3*Math.floor(k*m);for(var _=0;_<u;_++)for(var C=Math.floor(_*g)*S,w=0;w<c;w++){d=C+v[w];r[y++]=t[d++];r[y++]=t[d++];r[y++]=t[d++];y+=h}}(y,t,r,o,l,c,m);else for(var M=0,D=0,j=0,L=l*u;j<L;j++){t[M++]=y[D++];t[M++]=y[D++];t[M++]=y[D++];M+=m}}},{key:"usesZeroToOneRange",get:function get(){return(0,c.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function _cache(t,r,o,l){if(!o)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!l)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var c,h;if(t instanceof u.Ref){h=t;t=r.fetch(t)}t instanceof u.Name&&(c=t.name);(c||h)&&o.set(c,h,l)}},{key:"getCached",value:function getCached(t,r,o){if(!o)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(t instanceof u.Ref){var l=o.getByRef(t);if(l)return l;try{t=r.fetch(t)}catch(t){if(t instanceof h.MissingDataException)throw t}}if(t instanceof u.Name){var c=o.getByName(t.name);if(c)return c}return null}},{key:"parseAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t){var r,o,c,u,h,d,m;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:r=t.cs,o=t.xref,c=t.resources,u=void 0===c?null:c,h=t.pdfFunctionFactory,d=t.localColorSpaceCache;m=this._parse(r,o,u,h);this._cache(r,o,d,m);return l.abrupt("return",m);case 4:case"end":return l.stop()}}),_callee,this)}))),function parseAsync(r){return t.apply(this,arguments)})},{key:"parse",value:function parse(t){var r=t.cs,o=t.xref,l=t.resources,c=void 0===l?null:l,u=t.pdfFunctionFactory,h=t.localColorSpaceCache,d=this.getCached(r,o,h);if(d)return d;var m=this._parse(r,o,c,u);this._cache(r,o,h,m);return m}},{key:"_parse",value:function _parse(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0;t=r.fetchIfRef(t);if((0,u.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 g(null);default:if((0,u.isDict)(o)){var h=o.get("ColorSpace");if((0,u.isDict)(h)){var d=h.get(t.name);if(d){if((0,u.isName)(d))return this._parse(d,r,o,l);t=d;break}}}throw new c.FormatError("Unrecognized ColorSpace: ".concat(t.name))}if(Array.isArray(t)){var v,S,k,x,O,T,R=r.fetchIfRef(t[0]).name;switch(R){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":x=(v=r.fetchIfRef(t[1])).getArray("WhitePoint");O=v.getArray("BlackPoint");T=v.get("Gamma");return new _(x,O,T);case"CalRGB":x=(v=r.fetchIfRef(t[1])).getArray("WhitePoint");O=v.getArray("BlackPoint");T=v.getArray("Gamma");var E=v.getArray("Matrix");return new C(x,O,T,E);case"ICCBased":var M=r.fetchIfRef(t[1]),D=M.dict;S=D.get("N");var j=D.get("Alternate");if(j){var L=this._parse(j,r,o,l);if(L.numComps===S)return L;(0,c.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===S)return this.singletons.gray;if(3===S)return this.singletons.rgb;if(4===S)return this.singletons.cmyk;break;case"Pattern":(k=t[1]||null)&&(k=this._parse(k,r,o,l));return new g(k);case"Indexed":case"I":k=this._parse(t[1],r,o,l);var N=r.fetchIfRef(t[2])+1,U=r.fetchIfRef(t[3]);return new y(k,N,U);case"Separation":case"DeviceN":var H=r.fetchIfRef(t[1]);S=Array.isArray(H)?H.length:1;k=this._parse(t[2],r,o,l);var W=l.create(t[3]);return new m(S,k,W);case"Lab":x=(v=r.fetchIfRef(t[1])).getArray("WhitePoint");O=v.getArray("BlackPoint");var q=v.getArray("Range");return new w(x,O,q);default:throw new c.FormatError("Unimplemented ColorSpace object: ".concat(R))}}throw new c.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,c.warn)("The decode map is not the correct length");return!0}for(var o=0,l=t.length;o<l;o+=2)if(0!==t[o]||1!==t[o+1])return!1;return!0}},{key:"singletons",get:function get(){return(0,c.shadow)(this,"singletons",{get gray(){return(0,c.shadow)(this,"gray",new v)},get rgb(){return(0,c.shadow)(this,"rgb",new S)},get cmyk(){return(0,c.shadow)(this,"cmyk",new k)}})}}]);var t;return ColorSpace}();r.ColorSpace=d;var m=function(t){_inherits(AlternateCS,t);var r=_createSuper(AlternateCS);function AlternateCS(t,o,l){var c;_classCallCheck(this,AlternateCS);(c=r.call(this,"Alternate",t)).base=o;c.tintFn=l;c.tmpBuf=new Float32Array(o.numComps);return c}_createClass(AlternateCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){var c=this.tmpBuf;this.tintFn(t,r,c,0);this.base.getRgbItem(c,0,o,l)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){var d,m,g=this.tintFn,y=this.base,v=1/((1<<u)-1),S=y.numComps,k=y.usesZeroToOneRange,_=(y.isPassthrough(8)||!k)&&0===h,C=_?c:0,w=_?l:new Uint8ClampedArray(S*o),x=this.numComps,O=new Float32Array(x),T=new Float32Array(S);for(d=0;d<o;d++){for(m=0;m<x;m++)O[m]=t[r++]*v;g(O,0,T,0);if(k)for(m=0;m<S;m++)w[C++]=255*T[m];else{y.getRgbItem(T,0,w,C);C+=S}}_||y.getRgbBuffer(w,0,o,l,c,8,h)}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps/this.numComps,r)}}]);return AlternateCS}(d),g=function(t){_inherits(PatternCS,t);var r=_createSuper(PatternCS);function PatternCS(t){var o;_classCallCheck(this,PatternCS);(o=r.call(this,"Pattern",null)).base=t;return o}_createClass(PatternCS,[{key:"isDefaultDecode",value:function isDefaultDecode(t,r){(0,c.unreachable)("Should not call PatternCS.isDefaultDecode")}}]);return PatternCS}(d),y=function(t){_inherits(IndexedCS,t);var r=_createSuper(IndexedCS);function IndexedCS(t,o,l){var h;_classCallCheck(this,IndexedCS);(h=r.call(this,"Indexed",1)).base=t;h.highVal=o;var d=t.numComps*o;h.lookup=new Uint8Array(d);if((0,u.isStream)(l)){var m=l.getBytes(d);h.lookup.set(m)}else{if("string"!=typeof l)throw new c.FormatError("IndexedCS - unrecognized lookup table: ".concat(l));for(var g=0;g<d;++g)h.lookup[g]=255&l.charCodeAt(g)}return h}_createClass(IndexedCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){var c=this.base.numComps,u=t[r]*c;this.base.getRgbBuffer(this.lookup,u,1,o,l,8,0)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=this.base,m=d.numComps,g=d.getOutputLength(m,h),y=this.lookup,v=0;v<o;++v){var S=t[r++]*m;d.getRgbBuffer(y,S,1,l,c,8,h);c+=g}}},{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,c.warn)("Decode map length is not correct");return!0}if(!Number.isInteger(r)||r<1){(0,c.warn)("Bits per component is not correct");return!0}return 0===t[0]&&t[1]===(1<<r)-1}}]);return IndexedCS}(d),v=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,o,l){var c=255*t[r];o[l]=o[l+1]=o[l+2]=c}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=255/((1<<u)-1),m=r,g=c,y=0;y<o;++y){var v=d*t[m++];l[g++]=v;l[g++]=v;l[g++]=v;g+=h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return DeviceGrayCS}(d),S=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,o,l){o[l]=255*t[r];o[l+1]=255*t[r+1];o[l+2]=255*t[r+2]}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){if(8!==u||0!==h)for(var d=255/((1<<u)-1),m=r,g=c,y=0;y<o;++y){l[g++]=d*t[m++];l[g++]=d*t[m++];l[g++]=d*t[m++];g+=h}else l.set(t.subarray(r,r+3*o),c)}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isPassthrough",value:function isPassthrough(t){return 8===t}}]);return DeviceRgbCS}(d),k=function DeviceCmykCSClosure(){function convertToRgb(t,r,o,l,c){var u=t[r]*o,h=t[r+1]*o,d=t[r+2]*o,m=t[r+3]*o;l[c]=255+u*(-4.387332384609988*u+54.48615194189176*h+18.82290502165302*d+212.25662451639585*m-285.2331026137004)+h*(1.7149763477362134*h-5.6096736904047315*d+-17.873870861415444*m-5.497006427196366)+d*(-2.5217340131683033*d-21.248923337353073*m+17.5119270841813)+m*(-21.86122147463605*m-189.48180835922747);l[c+1]=255+u*(8.841041422036149*u+60.118027045597366*h+6.871425592049007*d+31.159100130055922*m-79.2970844816548)+h*(-15.310361306967817*h+17.575251261109482*d+131.35250912493976*m-190.9453302588951)+d*(4.444339102852739*d+9.8632861493405*m-24.86741582555878)+m*(-20.737325471181034*m-187.80453709719578);l[c+2]=255+u*(.8842522430003296*u+8.078677503112928*h+30.89978309703729*d-.23883238689178934*m-14.183576799673286)+h*(10.49593273432072*h+63.02378494754052*d+50.606957656360734*m-112.23884253719248)+d*(.03296041114873217*d+115.60384449646641*m-193.58209356861505)+m*(-22.33816807309886*m-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,o,l){convertToRgb(t,r,1,o,l)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=1/((1<<u)-1),m=0;m<o;m++){convertToRgb(t,r,d,l,c);r+=4;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t/4*(3+r)|0}}]);return DeviceCmykCS}(d)}(),_=function CalGrayCSClosure(){function convertToRgb(t,r,o,l,c,u){var h=r[o]*u,d=Math.pow(h,t.G),m=t.YW*d,g=Math.max(295.8*Math.pow(m,.3333333333333333)-40.8,0);l[c]=g;l[c+1]=g;l[c+2]=g}return function(t){_inherits(CalGrayCS,t);var r=_createSuper(CalGrayCS);function CalGrayCS(t,o,l){var u;_classCallCheck(this,CalGrayCS);u=r.call(this,"CalGray",1);if(!t)throw new c.FormatError("WhitePoint missing - required for color space CalGray");o=o||[0,0,0];l=l||1;u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.XB=o[0];u.YB=o[1];u.ZB=o[2];u.G=l;if(u.XW<0||u.ZW<0||1!==u.YW)throw new c.FormatError("Invalid WhitePoint components for ".concat(u.name)+", no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,c.info)("Invalid BlackPoint for ".concat(u.name,", falling back to default."));u.XB=u.YB=u.ZB=0}0===u.XB&&0===u.YB&&0===u.ZB||(0,c.warn)("".concat(u.name,", BlackPoint: XB: ").concat(u.XB,", YB: ").concat(u.YB,", ")+"ZB: ".concat(u.ZB,", only default values are supported."));if(u.G<1){(0,c.info)("Invalid Gamma: ".concat(u.G," for ").concat(u.name,", ")+"falling back to default.");u.G=1}return u}_createClass(CalGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(this,t,r,o,l,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=1/((1<<u)-1),m=0;m<o;++m){convertToRgb(this,t,r,l,c,d);r+=1;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return CalGrayCS}(d)}(),C=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]),o=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),l=new Float32Array([1,1,1]),u=new Float32Array(3),h=new Float32Array(3),m=new Float32Array(3),g=Math.pow(24/116,3)/8;function matrixProduct(t,r,o){o[0]=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];o[1]=t[3]*r[0]+t[4]*r[1]+t[5]*r[2];o[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,o){return Math.max(t,Math.min(r,o))}function decodeL(t){return t<0?-decodeL(-t):t>8?Math.pow((t+16)/116,3):t*g}function convertToRgb(c,d,g,y,v,S){var k=adjustToRange(0,1,d[g]*S),_=adjustToRange(0,1,d[g+1]*S),C=adjustToRange(0,1,d[g+2]*S),w=1===k?1:Math.pow(k,c.GR),x=1===_?1:Math.pow(_,c.GG),O=1===C?1:Math.pow(C,c.GB),T=c.MXA*w+c.MXB*x+c.MXC*O,R=c.MYA*w+c.MYB*x+c.MYC*O,E=c.MZA*w+c.MZB*x+c.MZC*O,M=h;M[0]=T;M[1]=R;M[2]=E;var D=m;!function normalizeWhitePointToFlat(o,l,c){if(1!==o[0]||1!==o[2]){var h=c;matrixProduct(t,l,h);var d=u;!function convertToFlat(t,r,o){o[0]=1*r[0]/t[0];o[1]=1*r[1]/t[1];o[2]=1*r[2]/t[2]}(o,h,d);matrixProduct(r,d,c)}else{c[0]=l[0];c[1]=l[1];c[2]=l[2]}}(c.whitePoint,M,D);var j=h;!function compensateBlackPoint(t,r,o){if(0!==t[0]||0!==t[1]||0!==t[2]){var l=decodeL(0),c=(1-l)/(1-decodeL(t[0])),u=1-c,h=(1-l)/(1-decodeL(t[1])),d=1-h,m=(1-l)/(1-decodeL(t[2])),g=1-m;o[0]=r[0]*c+u;o[1]=r[1]*h+d;o[2]=r[2]*m+g}else{o[0]=r[0];o[1]=r[1];o[2]=r[2]}}(c.blackPoint,D,j);var L=m;!function normalizeWhitePointToD65(o,l,c){var h=c;matrixProduct(t,l,h);var d=u;!function convertToD65(t,r,o){o[0]=.95047*r[0]/t[0];o[1]=1*r[1]/t[1];o[2]=1.08883*r[2]/t[2]}(o,h,d);matrixProduct(r,d,c)}(l,j,L);var N=h;matrixProduct(o,L,N);y[v]=255*sRGBTransferFunction(N[0]);y[v+1]=255*sRGBTransferFunction(N[1]);y[v+2]=255*sRGBTransferFunction(N[2])}return function(t){_inherits(CalRGBCS,t);var r=_createSuper(CalRGBCS);function CalRGBCS(t,o,l,u){var h;_classCallCheck(this,CalRGBCS);h=r.call(this,"CalRGB",3);if(!t)throw new c.FormatError("WhitePoint missing - required for color space CalRGB");o=o||new Float32Array(3);l=l||new Float32Array([1,1,1]);u=u||new Float32Array([1,0,0,0,1,0,0,0,1]);var d=t[0],m=t[1],g=t[2];h.whitePoint=t;var y=o[0],v=o[1],S=o[2];h.blackPoint=o;h.GR=l[0];h.GG=l[1];h.GB=l[2];h.MXA=u[0];h.MYA=u[1];h.MZA=u[2];h.MXB=u[3];h.MYB=u[4];h.MZB=u[5];h.MXC=u[6];h.MYC=u[7];h.MZC=u[8];if(d<0||g<0||1!==m)throw new c.FormatError("Invalid WhitePoint components for ".concat(h.name)+", no fallback available");if(y<0||v<0||S<0){(0,c.info)("Invalid BlackPoint for ".concat(h.name," [").concat(y,", ").concat(v,", ").concat(S,"], ")+"falling back to default.");h.blackPoint=new Float32Array(3)}if(h.GR<0||h.GG<0||h.GB<0){(0,c.info)("Invalid Gamma [".concat(h.GR,", ").concat(h.GG,", ").concat(h.GB,"] for ")+"".concat(h.name,", falling back to default."));h.GR=h.GG=h.GB=1}return h}_createClass(CalRGBCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(this,t,r,o,l,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=1/((1<<u)-1),m=0;m<o;++m){convertToRgb(this,t,r,l,c,d);r+=3;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}}]);return CalRGBCS}(d)}(),w=function LabCSClosure(){function fn_g(t){return t>=6/29?Math.pow(t,3):108/841*(t-4/29)}function decode(t,r,o,l){return o+t*(l-o)/r}function convertToRgb(t,r,o,l,c,u){var h=r[o],d=r[o+1],m=r[o+2];if(!1!==l){h=decode(h,l,0,100);d=decode(d,l,t.amin,t.amax);m=decode(m,l,t.bmin,t.bmax)}d>t.amax?d=t.amax:d<t.amin&&(d=t.amin);m>t.bmax?m=t.bmax:m<t.bmin&&(m=t.bmin);var g,y,v,S=(h+16)/116,k=S+d/500,_=S-m/200,C=t.XW*fn_g(k),w=t.YW*fn_g(S),x=t.ZW*fn_g(_);if(t.ZW<1){g=3.1339*C+-1.617*w+-.4906*x;y=-.9785*C+1.916*w+.0333*x;v=.072*C+-.229*w+1.4057*x}else{g=3.2406*C+-1.5372*w+-.4986*x;y=-.9689*C+1.8758*w+.0415*x;v=.0557*C+-.204*w+1.057*x}c[u]=255*Math.sqrt(g);c[u+1]=255*Math.sqrt(y);c[u+2]=255*Math.sqrt(v)}return function(t){_inherits(LabCS,t);var r=_createSuper(LabCS);function LabCS(t,o,l){var u;_classCallCheck(this,LabCS);u=r.call(this,"Lab",3);if(!t)throw new c.FormatError("WhitePoint missing - required for color space Lab");o=o||[0,0,0];l=l||[-100,100,-100,100];u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.amin=l[0];u.amax=l[1];u.bmin=l[2];u.bmax=l[3];u.XB=o[0];u.YB=o[1];u.ZB=o[2];if(u.XW<0||u.ZW<0||1!==u.YW)throw new c.FormatError("Invalid WhitePoint components, no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,c.info)("Invalid BlackPoint, falling back to default");u.XB=u.YB=u.ZB=0}if(u.amin>u.amax||u.bmin>u.bmax){(0,c.info)("Invalid Range, falling back to defaults");u.amin=-100;u.amax=100;u.bmin=-100;u.bmax=100}return u}_createClass(LabCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(this,t,r,!1,o,l)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=(1<<u)-1,m=0;m<o;m++){convertToRgb(this,t,r,d,l,c);r+=3;c+=3+h}}},{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,c.shadow)(this,"usesZeroToOneRange",!1)}}]);return LabCS}(d)}()},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PartialEvaluator=r.EvaluatorPreprocessor=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(125),h=o(114),d=o(143),m=o(147),g=o(146),y=o(150),v=o(149),S=o(158),k=o(151),_=o(159),C=o(126),w=o(161),x=o(119),O=o(162),T=o(123),R=o(128),E=o(148),M=o(118),D=o(163),j=o(164),L=o(170),N=o(171),U=o(172);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var H=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),W=1,q=2,$=Promise.resolve();function normalizeBlendMode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)){for(var o=0,l=t.length;o<l;o++){var u=normalizeBlendMode(t[o],!0);if(u)return u}(0,c.warn)("Unsupported blend mode Array: ".concat(t));return"source-over"}if(!(0,h.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,c.warn)("Unsupported blend mode: ".concat(t.name));return"source-over"}var X=function(){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}}],[{key:"TIME_SLOT_DURATION_MS",get:function get(){return(0,c.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function get(){return(0,c.shadow)(this,"CHECK_TIME_EVERY",100)}}]);return TimeSlotManager}(),z=function(){function PartialEvaluator(t){var r=t.xref,o=t.handler,l=t.pageIndex,c=t.idFactory,u=t.fontCache,h=t.builtInCMapCache,d=t.standardFontDataCache,m=t.globalImageCache,g=t.options,y=void 0===g?null:g;_classCallCheck(this,PartialEvaluator);this.xref=r;this.handler=o;this.pageIndex=l;this.idFactory=c;this.fontCache=u;this.builtInCMapCache=h;this.standardFontDataCache=d;this.globalImageCache=m;this.options=y||H;this.parsingType3Font=!1;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}_createClass(PartialEvaluator,[{key:"_pdfFunctionFactory",get:function get(){var t=new _.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,c.shadow)(this,"_pdfFunctionFactory",t)}},{key:"clone",value:function clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.create(this);r.options=Object.assign(Object.create(null),this.options,t);return r}},{key:"hasBlendModes",value:function hasBlendModes(t,r){if(!(t instanceof h.Dict))return!1;if(t.objId&&r.has(t.objId))return!1;var o=new h.RefSet(r);t.objId&&o.put(t.objId);for(var l=[t],u=this.xref;l.length;){var d=l.shift(),m=d.get("ExtGState");if(m instanceof h.Dict){var g,y=_createForOfIteratorHelper(m.getRawValues());try{for(y.s();!(g=y.n()).done;){var v=g.value;if(v instanceof h.Ref){if(o.has(v))continue;try{v=u.fetch(v)}catch(t){o.put(v);(0,c.info)('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(v instanceof h.Dict){v.objId&&o.put(v.objId);var S=v.get("BM");if(S instanceof h.Name){if("Normal"!==S.name)return!0}else if(void 0!==S&&Array.isArray(S)){var k,_=_createForOfIteratorHelper(S);try{for(_.s();!(k=_.n()).done;){var C=k.value;if(C instanceof h.Name&&"Normal"!==C.name)return!0}}catch(t){_.e(t)}finally{_.f()}}}}}catch(t){y.e(t)}finally{y.f()}}var w=d.get("XObject");if(w instanceof h.Dict){var x,O=_createForOfIteratorHelper(w.getRawValues());try{for(O.s();!(x=O.n()).done;){var T=x.value;if(T instanceof h.Ref){if(o.has(T))continue;try{T=u.fetch(T)}catch(t){o.put(T);(0,c.info)('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if((0,h.isStream)(T)){T.dict.objId&&o.put(T.dict.objId);var R=T.dict.get("Resources");if(R instanceof h.Dict&&(!R.objId||!o.has(R.objId))){l.push(R);R.objId&&o.put(R.objId)}}}}catch(t){O.e(t)}finally{O.f()}}}o.forEach((function(t){r.put(t)}));return!1}},{key:"fetchBuiltInCMap",value:(Z=_asyncToGenerator(l.default.mark((function _callee(t){var r,o,u,h;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:if(!(r=this.builtInCMapCache.get(t))){l.next=3;break}return l.abrupt("return",r);case 3:if(null===this.options.cMapUrl){l.next=19;break}u="".concat(this.options.cMapUrl).concat(t,".bcmap");l.next=7;return fetch(u);case 7:if((h=l.sent).ok){l.next=10;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(u,'" with "').concat(h.statusText,'".'));case 10:l.t0=Uint8Array;l.next=13;return h.arrayBuffer();case 13:l.t1=l.sent;l.t2=new l.t0(l.t1);l.t3=c.CMapCompressionType.BINARY;o={cMapData:l.t2,compressionType:l.t3};l.next=22;break;case 19:l.next=21;return this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:o=l.sent;case 22:o.compressionType!==c.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,o);return l.abrupt("return",o);case 24:case"end":return l.stop()}}),_callee,this)}))),function fetchBuiltInCMap(t){return Z.apply(this,arguments)})},{key:"fetchStandardFontData",value:(Q=_asyncToGenerator(l.default.mark((function _callee2(t){var r,o,u,h,d,m;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if(!(r=this.standardFontDataCache.get(t))){l.next=3;break}return l.abrupt("return",new x.Stream(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){l.next=5;break}return l.abrupt("return",null);case 5:o=(0,y.getFontNameToFileMap)(),u=o[t];if(null===this.options.standardFontDataUrl){l.next=20;break}d="".concat(this.options.standardFontDataUrl).concat(u);l.next=10;return fetch(d);case 10:if((m=l.sent).ok){l.next=15;break}(0,c.warn)('fetchStandardFontData: failed to fetch file "'.concat(d,'" with "').concat(m.statusText,'".'));l.next=18;break;case 15:l.next=17;return m.arrayBuffer();case 17:h=l.sent;case 18:l.next=29;break;case 20:l.prev=20;l.next=23;return this.handler.sendWithPromise("FetchStandardFontData",{filename:u});case 23:h=l.sent;l.next=29;break;case 26:l.prev=26;l.t0=l.catch(20);(0,c.warn)('fetchStandardFontData: failed to fetch file "'.concat(u,'" with "').concat(l.t0,'".'));case 29:if(h){l.next=31;break}return l.abrupt("return",null);case 31:this.standardFontDataCache.set(t,h);return l.abrupt("return",new x.Stream(h));case 33:case"end":return l.stop()}}),_callee2,this,[[20,26]])}))),function fetchStandardFontData(t){return Q.apply(this,arguments)})},{key:"buildFormXObject",value:(z=_asyncToGenerator(l.default.mark((function _callee3(t,r,o,u,d,m,g){var y,v,S,k,_,C,w,x,O,R;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:y=r.dict;v=y.getArray("Matrix");S=y.getArray("BBox");S=Array.isArray(S)&&4===S.length?c.Util.normalizeRect(S):null;k=null;if(!y.has("OC")){l.next=10;break}l.next=8;return this.parseMarkedContentProps(y.get("OC"),t);case 8:k=l.sent;u.addOp(c.OPS.beginMarkedContentProps,["OC",k]);case 10:if(!(C=y.get("Group"))){l.next=30;break}_={matrix:v,bbox:S,smask:o,isolated:!1,knockout:!1};w=C.get("S");x=null;if(!(0,h.isName)(w,"Transparency")){l.next=28;break}_.isolated=C.get("I")||!1;_.knockout=C.get("K")||!1;if(!C.has("CS")){l.next=28;break}O=C.getRaw("CS");if(!(R=T.ColorSpace.getCached(O,this.xref,g))){l.next=25;break}x=R;l.next=28;break;case 25:l.next=27;return this.parseColorSpace({cs:O,resources:t,localColorSpaceCache:g});case 27:x=l.sent;case 28:if(o&&o.backdrop){x=x||T.ColorSpace.singletons.rgb;o.backdrop=x.getRgb(o.backdrop,0)}u.addOp(c.OPS.beginGroup,[_]);case 30:u.addOp(c.OPS.paintFormXObjectBegin,[v,S]);return l.abrupt("return",this.getOperatorList({stream:r,task:d,resources:y.get("Resources")||t,operatorList:u,initialState:m}).then((function(){u.addOp(c.OPS.paintFormXObjectEnd,[]);C&&u.addOp(c.OPS.endGroup,[_]);k&&u.addOp(c.OPS.endMarkedContent,[])})));case 32:case"end":return l.stop()}}),_callee3,this)}))),function buildFormXObject(t,r,o,l,c,u,h){return z.apply(this,arguments)})},{key:"_sendImgData",value:function _sendImgData(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=r?[r.data.buffer]:null;return this.parsingType3Font||o?this.handler.send("commonobj",[t,"Image",r],l):this.handler.send("obj",[t,this.pageIndex,"Image",r],l)}},{key:"buildPaintImageXObject",value:(M=_asyncToGenerator(l.default.mark((function _callee4(t){var r,o,u,h,d,m,g,y,v,S,k,_,C,w,x,O,T,E,M,D,j,L,N,H,W,q=this;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:r=t.resources,o=t.image,u=t.isInline,h=void 0!==u&&u,d=t.operatorList,m=t.cacheKey,g=t.localImageCache,y=t.localColorSpaceCache;v=o.dict;S=v.objId;k=v.get("Width","W");_=v.get("Height","H");if(k&&(0,c.isNum)(k)&&_&&(0,c.isNum)(_)){l.next=8;break}(0,c.warn)("Image dimensions are missing, or not numbers.");return l.abrupt("return",void 0);case 8:if(!(-1!==(C=this.options.maxImageSize)&&k*_>C)){l.next=12;break}(0,c.warn)("Image exceeded maximum allowed size and was removed.");return l.abrupt("return",void 0);case 12:if(!v.get("ImageMask","IM")){l.next=25;break}O=v.get("Width","W");T=v.get("Height","H");E=O+7>>3;M=o.getBytes(E*T,!0);D=v.getArray("Decode","D");(w=U.PDFImage.createMask({imgArray:M,width:O,height:T,imageIsFromDecodeStream:o instanceof R.DecodeStream,inverseDecode:!!D&&D[0]>0})).cached=!!m;x=[w];d.addOp(c.OPS.paintImageMaskXObject,x);m&&g.set(m,S,{fn:c.OPS.paintImageMaskXObject,args:x});return l.abrupt("return",void 0);case 25:j=v.get("SMask","SM")||!1;L=v.get("Mask")||!1;if(!h||j||L||!(k+_<200)){l.next=33;break}N=new U.PDFImage({xref:this.xref,res:r,image:o,isInline:h,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:y});w=N.createImageData(!0);d.addOp(c.OPS.paintInlineImageXObject,[w]);return l.abrupt("return",void 0);case 33:H="img_".concat(this.idFactory.createObjId()),W=!1;this.parsingType3Font?H="".concat(this.idFactory.getDocId(),"_type3_").concat(H):S&&(W=this.globalImageCache.shouldCache(S,this.pageIndex))&&(H="".concat(this.idFactory.getDocId(),"_").concat(H));d.addDependency(H);x=[H,k,_];U.PDFImage.buildImage({xref:this.xref,res:r,image:o,isInline:h,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:y}).then((function(t){w=t.createImageData(!1);m&&S&&W&&q.globalImageCache.addByteSize(S,w.data.length);return q._sendImgData(H,w,W)})).catch((function(t){(0,c.warn)('Unable to decode image "'.concat(H,'": "').concat(t,'".'));return q._sendImgData(H,null,W)}));d.addOp(c.OPS.paintImageXObject,x);if(m){g.set(m,S,{fn:c.OPS.paintImageXObject,args:x});if(S){(0,c.assert)(!h,"Cannot cache an inline image globally.");this.globalImageCache.addPageIndex(S,this.pageIndex);W&&this.globalImageCache.setData(S,{objId:H,fn:c.OPS.paintImageXObject,args:x,byteSize:0})}}return l.abrupt("return",void 0);case 41:case"end":return l.stop()}}),_callee4,this)}))),function buildPaintImageXObject(t){return M.apply(this,arguments)})},{key:"handleSMask",value:function handleSMask(t,r,o,l,c,u){var h=t.get("G"),d={subtype:t.get("S").name,backdrop:t.get("BC")},m=t.get("TR");if((0,_.isPDFFunction)(m)){for(var g=this._pdfFunctionFactory.create(m),y=new Uint8Array(256),v=new Float32Array(1),S=0;S<256;S++){v[0]=S/255;g(v,0,v,0);y[S]=255*v[0]|0}d.transferMap=y}return this.buildFormXObject(r,h,d,o,l,c.state.clone(),u)}},{key:"handleTransferFunction",value:function handleTransferFunction(t){var r;if(Array.isArray(t))r=t;else{if(!(0,_.isPDFFunction)(t))return null;r=[t]}var o,l=[],c=0,u=0,d=_createForOfIteratorHelper(r);try{for(d.s();!(o=d.n()).done;){var m=o.value,g=this.xref.fetchIfRef(m);c++;if((0,h.isName)(g,"Identity"))l.push(null);else{if(!(0,_.isPDFFunction)(g))return null;for(var y=this._pdfFunctionFactory.create(g),v=new Uint8Array(256),S=new Float32Array(1),k=0;k<256;k++){S[0]=k/255;y(S,0,S,0);v[k]=255*S[0]|0}l.push(v);u++}}}catch(t){d.e(t)}finally{d.f()}return 1!==c&&4!==c||0===u?null:l}},{key:"handleTilingType",value:function handleTilingType(t,r,o,l,u,d,m,g,y){var v=this,k=new N.OperatorList,_=h.Dict.merge({xref:this.xref,dictArray:[u.get("Resources"),o]});return this.getOperatorList({stream:l,task:m,resources:_,operatorList:k}).then((function(){var o=k.getIR(),l=(0,S.getTilingPatternIR)(o,u,r);d.addDependencies(k.dependencies);d.addOp(t,l);g&&y.set(g,u.objId,{operatorListIR:o,dict:u})})).catch((function(t){if(!(t instanceof c.AbortException)){if(!v.options.ignoreErrors)throw t;v.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorTilingPattern});(0,c.warn)('handleTilingType - ignoring pattern: "'.concat(t,'".'))}}))}},{key:"handleSetFont",value:function handleSetFont(t,r,o,l,u,m){var g=this,y=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,v=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,S=r&&r[0]instanceof h.Name?r[0].name:null;return this.loadFont(S,o,t,y,v).then((function(r){return r.font.isType3Font?r.loadType3Data(g,t,u).then((function(){l.addDependencies(r.type3Dependencies);return r})).catch((function(t){g.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontLoadType3});return new G({loadedName:"g_font_error",font:new d.ErrorFont("Type3 font load error: ".concat(t)),dict:r.font,evaluatorOptions:g.options})})):r})).then((function(t){m.font=t.font;t.send(g.handler);return t.loadedName}))}},{key:"handleText",value:function handleText(t,r){var o=r.font,l=o.charsToGlyphs(t);if(o.data){(!!(r.textRenderingMode&c.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===r.fillColorSpace.name||o.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(o,l,this.handler,this.options)}return l}},{key:"ensureStateFont",value:function ensureStateFont(t){if(!t.font){var r=new c.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw r;this.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontState});(0,c.warn)('ensureStateFont: "'.concat(r,'".'))}}},{key:"setGState",value:(C=_asyncToGenerator(l.default.mark((function _callee5(t){var r,o,u,d,m,g,y,v,S,k,_,C,w,x,O,T,R=this;return l.default.wrap((function _callee5$(l){for(;;)switch(l.prev=l.next){case 0:r=t.resources,o=t.gState,u=t.operatorList,d=t.cacheKey,m=t.task,g=t.stateManager,y=t.localGStateCache,v=t.localColorSpaceCache;S=o.objId;k=!0;_=[];C=o.getKeys();w=Promise.resolve();x=function _loop(t,l){var d=C[t],y=o.get(d);switch(d){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":_.push([d,y]);break;case"Font":k=!1;w=w.then((function(){return R.handleSetFont(r,null,y[0],u,m,g.state).then((function(t){u.addDependency(t);_.push([d,[t,y[1]]])}))}));break;case"BM":_.push([d,normalizeBlendMode(y)]);break;case"SMask":if((0,h.isName)(y,"None")){_.push([d,!1]);break}if((0,h.isDict)(y)){k=!1;w=w.then((function(){return R.handleSMask(y,r,u,m,g,v)}));_.push([d,!0])}else(0,c.warn)("Unsupported SMask type");break;case"TR":var S=R.handleTransferFunction(y);_.push([d,S]);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,c.info)("graphic state operator "+d);break;default:(0,c.info)("Unknown graphic state operator "+d)}};for(O=0,T=C.length;O<T;O++)x(O);return l.abrupt("return",w.then((function(){_.length>0&&u.addOp(c.OPS.setGState,[_]);k&&y.set(d,S,_)})));case 9:case"end":return l.stop()}}),_callee5)}))),function setGState(t){return C.apply(this,arguments)})},{key:"loadFont",value:function loadFont(t,r,o){var u,g=this,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,v=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,S=function(){var o=_asyncToGenerator(l.default.mark((function _callee6(){return l.default.wrap((function _callee6$(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new G({loadedName:"g_font_error",font:new d.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:g.options}));case 1:case"end":return o.stop()}}),_callee6)})));return function errorFont(){return o.apply(this,arguments)}}(),k=this.xref;if(r){if(!(0,h.isRef)(r))throw new c.FormatError('The "font" object should be a reference.');u=r}else{var _=o.get("Font");_&&(u=_.getRaw(t))}if(!u){var C='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,c.warn)("".concat(C,"."));return S()}this.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontMissing});(0,c.warn)("".concat(C," -- attempting to fallback to a default font."));u=y||PartialEvaluator.fallbackFontDict}if(this.fontCache.has(u))return this.fontCache.get(u);r=k.fetchIfRef(u);if(!(0,h.isDict)(r))return S();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var w,x=(0,c.createPromiseCapability)();try{(w=this.preEvaluateFont(r)).cssFontInfo=v}catch(t){(0,c.warn)('loadFont - preEvaluateFont failed: "'.concat(t,'".'));return S()}var O,T=w,R=T.descriptor,E=T.hash,M=(0,h.isRef)(u);M&&(O="f".concat(u.toString()));if(E&&(0,h.isDict)(R)){R.fontAliases||(R.fontAliases=Object.create(null));var D=R.fontAliases;if(D[E]){var j=D[E].aliasRef;if(M&&j&&this.fontCache.has(j)){this.fontCache.putAlias(u,j);return this.fontCache.get(u)}}else D[E]={fontID:this.idFactory.createFontId()};M&&(D[E].aliasRef=u);O=D[E].fontID}if(M)this.fontCache.put(u,x.promise);else{O||(O=this.idFactory.createFontId());r.cacheKey="cacheKey_".concat(O);this.fontCache.put(r.cacheKey,x.promise)}(0,c.assert)(O&&O.startsWith("f"),'The "fontID" must be (correctly) defined.');r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(O);this.translateFont(w).then((function(t){if(void 0!==t.fontType){k.stats.fontTypes[t.fontType]=!0}x.resolve(new G({loadedName:r.loadedName,font:t,dict:r,evaluatorOptions:g.options}))})).catch((function(t){g.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontTranslate});(0,c.warn)('loadFont - translateFont failed: "'.concat(t,'".'));try{var o=R&&R.get("FontFile3"),l=o&&o.get("Subtype"),u=(0,m.getFontType)(w.type,l&&l.name);k.stats.fontTypes[u]=!0}catch(t){}x.resolve(new G({loadedName:r.loadedName,font:new d.ErrorFont(t instanceof Error?t.message:t),dict:r,evaluatorOptions:g.options}))}));return x.promise}},{key:"buildPath",value:function buildPath(t,r,o){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=t.length-1;o||(o=[]);if(u<0||t.fnArray[u]!==c.OPS.constructPath){if(l){(0,c.warn)('Encountered path operator "'.concat(r,'" inside of a text object.'));t.addOp(c.OPS.save,null)}t.addOp(c.OPS.constructPath,[[r],o]);l&&t.addOp(c.OPS.restore,null)}else{var h=t.argsArray[u];h[0].push(r);Array.prototype.push.apply(h[1],o)}}},{key:"parseColorSpace",value:function parseColorSpace(t){var r=this,o=t.cs,l=t.resources,u=t.localColorSpaceCache;return T.ColorSpace.parseAsync({cs:o,xref:this.xref,resources:l,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).catch((function(t){if(t instanceof c.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorColorSpace});(0,c.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(t,'".'));return null}throw t}))}},{key:"parseShading",value:function parseShading(t){var r=t.keyObj,o=t.shading,l=t.resources,c=t.localColorSpaceCache,u=t.localShadingPatternCache,h=t.matrix,d=void 0===h?null:h,m=u.get(r);if(!m){var g=S.Pattern.parseShading(o,d,this.xref,l,this.handler,this._pdfFunctionFactory,c).getIR();m="pattern_".concat(this.idFactory.createObjId());u.set(r,m);this.handler.send("obj",[m,this.pageIndex,"Pattern",g])}return m}},{key:"handleColorN",value:function handleColorN(t,r,o,l,u,d,m,g,y,v){var k=o.pop();if(k instanceof h.Name){var _=k.name,C=y.getByName(_);if(C)try{var w=l.base?l.base.getRgb(o,0):null,x=(0,S.getTilingPatternIR)(C.operatorListIR,C.dict,w);t.addOp(r,x);return}catch(t){}var O=u.get(_);if(O){var T=(0,h.isStream)(O)?O.dict:O,R=T.get("PatternType");if(R===W){var E=l.base?l.base.getRgb(o,0):null;return this.handleTilingType(r,E,d,O,T,t,m,_,y)}if(R===q){var M=T.get("Shading"),D=T.getArray("Matrix"),j=this.parseShading({keyObj:O,shading:M,matrix:D,resources:d,localColorSpaceCache:g,localShadingPatternCache:v});t.addOp(r,["Shading",j]);return}throw new c.FormatError("Unknown PatternType: ".concat(R))}}throw new c.FormatError("Unknown PatternName: ".concat(k))}},{key:"_parseVisibilityExpression",value:function _parseVisibilityExpression(t,r,o){if(++r>10)(0,c.warn)("Visibility expression is too deeply nested");else{var l=t.length,u=this.xref.fetchIfRef(t[0]);if(l<2||!(0,h.isName)(u))(0,c.warn)("Invalid visibility expression");else{switch(u.name){case"And":case"Or":case"Not":o.push(u.name);break;default:(0,c.warn)("Invalid operator ".concat(u.name," in visibility expression"));return}for(var d=1;d<l;d++){var m=t[d],g=this.xref.fetchIfRef(m);if(Array.isArray(g)){var y=[];o.push(y);this._parseVisibilityExpression(g,r,y)}else(0,h.isRef)(m)&&o.push(m.toString())}}}}},{key:"parseMarkedContentProps",value:(o=_asyncToGenerator(l.default.mark((function _callee7(t,r){var o,u,d,m,g,y,v,S,k,_;return l.default.wrap((function _callee7$(l){for(;;)switch(l.prev=l.next){case 0:if(!(0,h.isName)(t)){l.next=5;break}u=r.get("Properties");o=u.get(t.name);l.next=10;break;case 5:if(!(0,h.isDict)(t)){l.next=9;break}o=t;l.next=10;break;case 9:throw new c.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(d=o.get("Type").name)){l.next=15;break}return l.abrupt("return",{type:d,id:o.objId});case 15:if("OCMD"!==d){l.next=31;break}m=o.get("VE");if(!Array.isArray(m)){l.next=22;break}g=[];this._parseVisibilityExpression(m,0,g);if(!(g.length>0)){l.next=22;break}return l.abrupt("return",{type:"OCMD",expression:g});case 22:y=o.get("OCGs");if(!Array.isArray(y)&&!(0,h.isDict)(y)){l.next=29;break}v=[];if(Array.isArray(y)){S=_createForOfIteratorHelper(y);try{for(S.s();!(k=S.n()).done;){_=k.value;v.push(_.toString())}}catch(t){S.e(t)}finally{S.f()}}else v.push(y.objId);return l.abrupt("return",{type:d,ids:v,policy:(0,h.isName)(o.get("P"))?o.get("P").name:null,expression:null});case 29:if(!(0,h.isRef)(y)){l.next=31;break}return l.abrupt("return",{type:d,id:y.toString()});case 31:return l.abrupt("return",null);case 32:case"end":return l.stop()}}),_callee7,this)}))),function parseMarkedContentProps(t,r){return o.apply(this,arguments)})},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.stream,l=t.task,u=t.resources,d=t.operatorList,m=t.initialState,g=void 0===m?null:m,y=t.fallbackFontDict,v=void 0===y?null:y;u=u||h.Dict.empty;g=g||new K;if(!d)throw new Error('getOperatorList: missing "operatorList" parameter');var S=this,k=this.xref,_=!1,C=new w.LocalImageCache,x=new w.LocalColorSpaceCache,O=new w.LocalGStateCache,R=new w.LocalTilingPatternCache,E=new Map,M=u.get("XObject")||h.Dict.empty,D=u.get("Pattern")||h.Dict.empty,j=new V(g),L=new J(o,k,j),N=new X;function closePendingRestoreOPS(t){for(var r=0,o=L.savedStatesDepth;r<o;r++)d.addOp(c.OPS.restore,[])}return new Promise((function promiseBody(t,r){var o=function next(o){Promise.all([o,d.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};l.ensureNotTerminated();N.reset();for(var m,g,y,w,U,H,W={};!(m=N.check());){W.args=null;if(!L.read(W))break;var q=W.args,X=W.fn;switch(0|X){case c.OPS.paintXObject:H=q[0]instanceof h.Name;U=q[0].name;if(H){var z=C.getByName(U);if(z){d.addOp(z.fn,z.args);q=null;continue}}o(new Promise((function(t,r){if(!H)throw new c.FormatError("XObject must be referred to by name.");var o=M.getRaw(U);if(o instanceof h.Ref){var m=C.getByRef(o);if(m){d.addOp(m.fn,m.args);t();return}var g=S.globalImageCache.getData(o,S.pageIndex);if(g){d.addDependency(g.objId);d.addOp(g.fn,g.args);t();return}o=k.fetch(o)}if(!(0,h.isStream)(o))throw new c.FormatError("XObject should be a stream");var y=o.dict.get("Subtype");if(!(0,h.isName)(y))throw new c.FormatError("XObject should have a Name subtype");if("Form"!==y.name)if("Image"!==y.name){if("PS"!==y.name)throw new c.FormatError("Unhandled XObject subtype ".concat(y.name));(0,c.info)("Ignored XObject subtype PS");t()}else S.buildPaintImageXObject({resources:u,image:o,operatorList:d,cacheKey:U,localImageCache:C,localColorSpaceCache:x}).then(t,r);else{j.save();S.buildFormXObject(u,o,null,d,l,j.state.clone(),x).then((function(){j.restore();t()}),r)}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!S.options.ignoreErrors)throw t;S.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorXObject});(0,c.warn)('getOperatorList - ignoring XObject: "'.concat(t,'".'))}})));return;case c.OPS.setFont:var G=q[1];o(S.handleSetFont(u,q,null,d,l,j.state,v).then((function(t){d.addDependency(t);d.addOp(c.OPS.setFont,[t,G])})));return;case c.OPS.beginText:_=!0;break;case c.OPS.endText:_=!1;break;case c.OPS.endInlineImage:var V=q[0].cacheKey;if(V){var Y=C.getByName(V);if(Y){d.addOp(Y.fn,Y.args);q=null;continue}}o(S.buildPaintImageXObject({resources:u,image:q[0],isInline:!0,operatorList:d,cacheKey:V,localImageCache:C,localColorSpaceCache:x}));return;case c.OPS.showText:if(!j.state.font){S.ensureStateFont(j.state);continue}q[0]=S.handleText(q[0],j.state);break;case c.OPS.showSpacedText:if(!j.state.font){S.ensureStateFont(j.state);continue}var K=q[0],J=[],Q=K.length,Z=j.state;for(g=0;g<Q;++g){var ee=K[g];(0,c.isString)(ee)?Array.prototype.push.apply(J,S.handleText(ee,Z)):(0,c.isNum)(ee)&&J.push(ee)}q[0]=J;X=c.OPS.showText;break;case c.OPS.nextLineShowText:if(!j.state.font){S.ensureStateFont(j.state);continue}d.addOp(c.OPS.nextLine);q[0]=S.handleText(q[0],j.state);X=c.OPS.showText;break;case c.OPS.nextLineSetSpacingShowText:if(!j.state.font){S.ensureStateFont(j.state);continue}d.addOp(c.OPS.nextLine);d.addOp(c.OPS.setWordSpacing,[q.shift()]);d.addOp(c.OPS.setCharSpacing,[q.shift()]);q[0]=S.handleText(q[0],j.state);X=c.OPS.showText;break;case c.OPS.setTextRenderingMode:j.state.textRenderingMode=q[0];break;case c.OPS.setFillColorSpace:var te=T.ColorSpace.getCached(q[0],k,x);if(te){j.state.fillColorSpace=te;continue}o(S.parseColorSpace({cs:q[0],resources:u,localColorSpaceCache:x}).then((function(t){t&&(j.state.fillColorSpace=t)})));return;case c.OPS.setStrokeColorSpace:var re=T.ColorSpace.getCached(q[0],k,x);if(re){j.state.strokeColorSpace=re;continue}o(S.parseColorSpace({cs:q[0],resources:u,localColorSpaceCache:x}).then((function(t){t&&(j.state.strokeColorSpace=t)})));return;case c.OPS.setFillColor:q=(w=j.state.fillColorSpace).getRgb(q,0);X=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeColor:q=(w=j.state.strokeColorSpace).getRgb(q,0);X=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillGray:j.state.fillColorSpace=T.ColorSpace.singletons.gray;q=T.ColorSpace.singletons.gray.getRgb(q,0);X=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeGray:j.state.strokeColorSpace=T.ColorSpace.singletons.gray;q=T.ColorSpace.singletons.gray.getRgb(q,0);X=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillCMYKColor:j.state.fillColorSpace=T.ColorSpace.singletons.cmyk;q=T.ColorSpace.singletons.cmyk.getRgb(q,0);X=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeCMYKColor:j.state.strokeColorSpace=T.ColorSpace.singletons.cmyk;q=T.ColorSpace.singletons.cmyk.getRgb(q,0);X=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillRGBColor:j.state.fillColorSpace=T.ColorSpace.singletons.rgb;q=T.ColorSpace.singletons.rgb.getRgb(q,0);break;case c.OPS.setStrokeRGBColor:j.state.strokeColorSpace=T.ColorSpace.singletons.rgb;q=T.ColorSpace.singletons.rgb.getRgb(q,0);break;case c.OPS.setFillColorN:if("Pattern"===(w=j.state.fillColorSpace).name){o(S.handleColorN(d,c.OPS.setFillColorN,q,w,D,u,l,x,R,E));return}q=w.getRgb(q,0);X=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeColorN:if("Pattern"===(w=j.state.strokeColorSpace).name){o(S.handleColorN(d,c.OPS.setStrokeColorN,q,w,D,u,l,x,R,E));return}q=w.getRgb(q,0);X=c.OPS.setStrokeRGBColor;break;case c.OPS.shadingFill:var ae=u.get("Shading");if(!ae)throw new c.FormatError("No shading resource found");var ne=ae.get(q[0].name);if(!ne)throw new c.FormatError("No shading object found");q=[S.parseShading({keyObj:ne,shading:ne,resources:u,localColorSpaceCache:x,localShadingPatternCache:E})];X=c.OPS.shadingFill;break;case c.OPS.setGState:H=q[0]instanceof h.Name;U=q[0].name;if(H){var ie=O.getByName(U);if(ie){ie.length>0&&d.addOp(c.OPS.setGState,[ie]);q=null;continue}}o(new Promise((function(t,r){if(!H)throw new c.FormatError("GState must be referred to by name.");var o=u.get("ExtGState");if(!(o instanceof h.Dict))throw new c.FormatError("ExtGState should be a dictionary.");var m=o.get(U);if(!(m instanceof h.Dict))throw new c.FormatError("GState should be a dictionary.");S.setGState({resources:u,gState:m,operatorList:d,cacheKey:U,task:l,stateManager:j,localGStateCache:O,localColorSpaceCache:x}).then(t,r)})).catch((function(t){if(!(t instanceof c.AbortException)){if(!S.options.ignoreErrors)throw t;S.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorExtGState});(0,c.warn)('getOperatorList - ignoring ExtGState: "'.concat(t,'".'))}})));return;case c.OPS.moveTo:case c.OPS.lineTo:case c.OPS.curveTo:case c.OPS.curveTo2:case c.OPS.curveTo3:case c.OPS.closePath:case c.OPS.rectangle:S.buildPath(d,X,q,_);continue;case c.OPS.markPoint:case c.OPS.markPointProps:case c.OPS.beginCompat:case c.OPS.endCompat:continue;case c.OPS.beginMarkedContentProps:if(!(0,h.isName)(q[0])){(0,c.warn)("Expected name for beginMarkedContentProps arg0=".concat(q[0]));continue}if("OC"===q[0].name){o(S.parseMarkedContentProps(q[1],u).then((function(t){d.addOp(c.OPS.beginMarkedContentProps,["OC",t])})).catch((function(t){if(!(t instanceof c.AbortException)){if(!S.options.ignoreErrors)throw t;S.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorMarkedContent});(0,c.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(t,'".'))}})));return}q=[q[0].name,q[1]instanceof h.Dict?q[1].get("MCID"):null];break;case c.OPS.beginMarkedContent:case c.OPS.endMarkedContent:default:if(null!==q){for(g=0,y=q.length;g<y&&!(q[g]instanceof h.Dict);g++);if(g<y){(0,c.warn)("getOperatorList - ignoring operator: "+X);continue}}}d.addOp(X,q)}if(m)o($);else{closePendingRestoreOPS();t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!r.options.ignoreErrors)throw t;r.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorOperatorList});(0,c.warn)('getOperatorList - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(t,'".'));closePendingRestoreOPS()}}))}},{key:"getTextContent",value:function getTextContent(t){var r=this,o=t.stream,l=t.task,u=t.resources,d=t.stateManager,m=void 0===d?null:d,g=t.normalizeWhitespace,y=void 0!==g&&g,S=t.combineTextItems,k=void 0!==S&&S,_=t.includeMarkedContent,C=void 0!==_&&_,x=t.sink,T=t.seenStyles,R=void 0===T?new Set:T;u=u||h.Dict.empty;m=m||new V(new Y);var E,M=/\s/g,D={items:[],styles:Object.create(null)},j={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,lastCharSize:0,prevTransform:null,textAdvanceScale:0,spaceWidth:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,transform:null,fontName:null,hasEOL:!1,isLastCharWhiteSpace:!1},L=this,N=this.xref,U=[],H=null,W=new w.LocalImageCache,q=new w.LocalGStateCache,z=new J(o,N,m);function getCurrentTextTransform(){var t=E.font,r=[E.fontSize*E.textHScale,0,0,E.fontSize,0,E.textRise];if(t.isType3Font&&(E.fontSize<=1||t.isCharBBox)&&!(0,c.isArrayEqual)(E.fontMatrix,c.FONT_IDENTITY_MATRIX)){var o=t.bbox[3]-t.bbox[1];o>0&&(r[3]*=o*E.fontMatrix[3])}return c.Util.transform(E.ctm,c.Util.transform(E.textMatrix,r))}function ensureTextContentItem(){if(j.initialized)return j;var t=E.font,r=t.loadedName;if(!R.has(r)){R.add(r);D.styles[r]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}}j.fontName=r;var o=j.transform=getCurrentTextTransform();if(t.vertical){j.width=j.totalWidth=Math.hypot(o[0],o[1]);j.height=j.totalHeight=0;j.vertical=!0}else{j.width=j.totalWidth=0;j.height=j.totalHeight=Math.hypot(o[2],o[3]);j.vertical=!1}var l=Math.hypot(E.textLineMatrix[0],E.textLineMatrix[1]),c=Math.hypot(E.ctm[0],E.ctm[1]);j.textAdvanceScale=c*l;j.lastCharSize=j.lastCharSize||0;var u=t.spaceWidth/1e3*E.fontSize;if(u){j.spaceWidth=u;j.trackingSpaceMin=.3*u;j.spaceInFlowMin=.3*u;j.spaceInFlowMax=1.3*u}else{j.spaceWidth=0;j.trackingSpaceMin=1/0}j.hasEOL=!1;j.initialized=!0;return j}function updateAdvanceScale(){if(j.initialized){var t=Math.hypot(E.textLineMatrix[0],E.textLineMatrix[1]),r=Math.hypot(E.ctm[0],E.ctm[1])*t;if(r!==j.textAdvanceScale){if(j.vertical){j.totalHeight+=j.height*j.textAdvanceScale;j.height=0}else{j.totalWidth+=j.width*j.textAdvanceScale;j.width=0}j.textAdvanceScale=r}}}function runBidiTransform(t){var r=t.str.join(""),o=(0,O.bidi)(r,-1,t.vertical);return{str:y?function replaceWhitespace(t){for(var r,o=t.length,l=0;l<o&&(r=t.charCodeAt(l))>=32&&r<=127;)l++;return l<o?t.replace(M," "):t}(o.str):o.str,dir:o.dir,width:t.totalWidth,height:t.totalHeight,transform:t.transform,fontName:t.fontName,hasEOL:t.hasEOL}}function handleSetFont(t,r){return L.loadFont(t,r,u).then((function(t){return t.font.isType3Font?t.loadType3Data(L,u,l).catch((function(){})).then((function(){return t})):t})).then((function(t){E.font=t.font;E.fontMatrix=t.font.fontMatrix||c.FONT_IDENTITY_MATRIX}))}function buildTextContentItem(t){var r=t.chars,o=t.extraSpacing,l=t.isFirstChunk,c=E.font;if(r){var u=(0,v.getNormalizedUnicodes)(),h=c.charsToGlyphs(r),d=E.fontMatrix[0]*E.fontSize;l&&function compareWithLastPosition(t){if(k&&E.font&&j.prevTransform){var r=getCurrentTextTransform(),o=r[4],l=r[5],c=j.prevTransform[4],u=j.prevTransform[5];if(c!==o||u!==l){var h=(o-c)/j.textAdvanceScale,d=(l-u)/j.textAdvanceScale,m=-.5*j.lastCharSize;if(E.font.vertical){if(Math.abs(h)>j.width/j.textAdvanceScale){appendEOL();return}if(m>d)return;if(d>j.trackingSpaceMin)j.height+=d;else if(!addFakeSpaces(d,0,j.prevTransform))if(0===j.str.length){D.items.push({str:" ",dir:"ltr",width:0,height:d,transform:j.prevTransform,fontName:j.fontName,hasEOL:!1});j.isLastCharWhiteSpace=!0}else j.height+=d}else if(Math.abs(d)>j.height/j.textAdvanceScale)appendEOL();else if(!(m>h))if(h<=j.trackingSpaceMin)j.width+=h;else if(!addFakeSpaces(h,0,j.prevTransform))if(0===j.str.length){D.items.push({str:" ",dir:"ltr",width:h,height:0,transform:j.prevTransform,fontName:j.fontName,hasEOL:!1});j.isLastCharWhiteSpace=!0}else j.width+=h}}}();for(var m=ensureTextContentItem(),g=0,y=0,S=0,_=h.length;S<_;S++){var C=h[S],w=E.charSpacing+(S===_-1?o:0),x=C.unicode;if(C.isSpace){w+=E.wordSpacing;m.isLastCharWhiteSpace=!0}else{x=u[x]||x;x=(0,v.reverseIfRtl)(x);m.isLastCharWhiteSpace=!1}m.str.push(x);var O=(c.vertical&&C.vmetric?C.vmetric[0]:C.width)*d;if(c.vertical){E.translateTextMatrix(0,O);O=Math.abs(O)}else{O*=E.textHScale;E.translateTextMatrix(O,0)}g+=O;if(w){c.vertical||(w*=E.textHScale);O+=w;var T=w>j.trackingSpaceMin&&addFakeSpaces(w,g);c.vertical?E.translateTextMatrix(0,w):E.translateTextMatrix(w,0);if(T){m=ensureTextContentItem();g=0}else g+=w}y=O}m.lastCharSize=y;c.vertical?m.height+=g:m.width+=g;m.prevTransform=getCurrentTextTransform()}else{var R=E.charSpacing+o;R&&(c.vertical?E.translateTextMatrix(0,R):E.translateTextMatrix(R*E.textHScale,0))}}function appendEOL(){if(j.initialized){j.hasEOL=!0;flushTextContentItem()}else D.items.length>0?D.items[D.items.length-1].hasEOL=!0:D.items.push({str:"",dir:"ltr",width:0,height:0,transform:getCurrentTextTransform(),fontName:E.font.loadedName,hasEOL:!0});j.isLastCharWhiteSpace=!1;j.lastCharSize=0}function addFakeSpaces(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(j.spaceInFlowMin<=t&&t<=j.spaceInFlowMax){if(j.initialized){j.str.push(" ");j.isLastCharWhiteSpace=!0}return!1}var l=j.fontName,c=0;t*=j.textAdvanceScale;if(j.vertical){j.height+=r;c=t;t=0}else j.width+=r;flushTextContentItem();if(j.isLastCharWhiteSpace)return!0;j.isLastCharWhiteSpace=!0;D.items.push({str:" ",dir:"ltr",width:t,height:c,transform:o||getCurrentTextTransform(),fontName:l,hasEOL:!1});return!0}function flushTextContentItem(){if(j.initialized&&j.str){j.vertical?j.totalHeight+=j.height*j.textAdvanceScale:j.totalWidth+=j.width*j.textAdvanceScale;D.items.push(runBidiTransform(j));j.initialized=!1;j.str.length=0}}function enqueueChunk(){var t=D.items.length;if(t>0){x.enqueue(D,t);D.items=[];D.styles=Object.create(null)}}var G=new X;return new Promise((function promiseBody(t,r){var o=function next(o){enqueueChunk();Promise.all([o,x.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};l.ensureNotTerminated();G.reset();for(var d,g={},v=[];!(d=G.check());){v.length=0;g.args=v;if(!z.read(g))break;E=m.state;var S=g.fn;v=g.args;switch(0|S){case c.OPS.setFont:var _=v[0].name,w=v[1];if(E.font&&_===E.fontName&&w===E.fontSize)break;flushTextContentItem();E.fontName=_;E.fontSize=w;o(handleSetFont(_,null));return;case c.OPS.setTextRise:flushTextContentItem();E.textRise=v[0];break;case c.OPS.setHScale:flushTextContentItem();E.textHScale=v[0]/100;break;case c.OPS.setLeading:flushTextContentItem();E.leading=v[0];break;case c.OPS.moveText:E.translateTextLineMatrix(v[0],v[1]);E.textMatrix=E.textLineMatrix.slice();break;case c.OPS.setLeadingMoveText:flushTextContentItem();E.leading=-v[1];E.translateTextLineMatrix(v[0],v[1]);E.textMatrix=E.textLineMatrix.slice();break;case c.OPS.nextLine:appendEOL();E.carriageReturn();break;case c.OPS.setTextMatrix:E.setTextMatrix(v[0],v[1],v[2],v[3],v[4],v[5]);E.setTextLineMatrix(v[0],v[1],v[2],v[3],v[4],v[5]);updateAdvanceScale();break;case c.OPS.setCharSpacing:E.charSpacing=v[0];break;case c.OPS.setWordSpacing:E.wordSpacing=v[0];break;case c.OPS.beginText:flushTextContentItem();E.textMatrix=c.IDENTITY_MATRIX.slice();E.textLineMatrix=c.IDENTITY_MATRIX.slice();break;case c.OPS.showSpacedText:if(!m.state.font){L.ensureStateFont(m.state);continue}for(var O=(E.font.vertical?1:-1)*E.fontSize/1e3,T=v[0],M=!0,X=0,Y=T.length;X<Y-1;X++){var K=T[X];if("string"==typeof K)U.push(K);else if("number"==typeof K&&0!==K){var J=U.join("");U.length=0;buildTextContentItem({chars:J,extraSpacing:K*O,isFirstChunk:M});J&&M&&(M=!1)}}var Q=T[T.length-1];"string"==typeof Q&&U.push(Q);if(U.length>0){var Z=U.join("");U.length=0;buildTextContentItem({chars:Z,extraSpacing:0,isFirstChunk:M})}break;case c.OPS.showText:if(!m.state.font){L.ensureStateFont(m.state);continue}buildTextContentItem({chars:v[0],extraSpacing:0,isFirstChunk:!0});break;case c.OPS.nextLineShowText:if(!m.state.font){L.ensureStateFont(m.state);continue}j.hasEOL=!0;flushTextContentItem();E.carriageReturn();buildTextContentItem({chars:v[0],extraSpacing:0,isFirstChunk:!0});break;case c.OPS.nextLineSetSpacingShowText:if(!m.state.font){L.ensureStateFont(m.state);continue}j.hasEOL=!0;flushTextContentItem();E.wordSpacing=v[0];E.charSpacing=v[1];E.carriageReturn();buildTextContentItem({chars:v[2],extraSpacing:0,isFirstChunk:!0});break;case c.OPS.paintXObject:flushTextContentItem();H||(H=u.get("XObject")||h.Dict.empty);var ee=v[0]instanceof h.Name,te=v[0].name;if(ee&&W.getByName(te))break;o(new Promise((function(t,r){if(!ee)throw new c.FormatError("XObject must be referred to by name.");var o=H.getRaw(te);if(o instanceof h.Ref){if(W.getByRef(o)){t();return}if(L.globalImageCache.getData(o,L.pageIndex)){t();return}o=N.fetch(o)}if(!(0,h.isStream)(o))throw new c.FormatError("XObject should be a stream");var d=o.dict.get("Subtype");if(!(0,h.isName)(d))throw new c.FormatError("XObject should have a Name subtype");if("Form"===d.name){var g=m.state.clone(),v=new V(g),S=o.dict.getArray("Matrix");Array.isArray(S)&&6===S.length&&v.transform(S);enqueueChunk();var _={enqueueInvoked:!1,enqueue:function enqueue(t,r){this.enqueueInvoked=!0;x.enqueue(t,r)},get desiredSize(){return x.desiredSize},get ready(){return x.ready}};L.getTextContent({stream:o,task:l,resources:o.dict.get("Resources")||u,stateManager:v,normalizeWhitespace:y,combineTextItems:k,includeMarkedContent:C,sink:_,seenStyles:R}).then((function(){_.enqueueInvoked||W.set(te,o.dict.objId,!0);t()}),r)}else{W.set(te,o.dict.objId,!0);t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!L.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring XObject: "'.concat(t,'".'))}})));return;case c.OPS.setGState:ee=v[0]instanceof h.Name;te=v[0].name;if(ee&&q.getByName(te))break;o(new Promise((function(t,r){if(!ee)throw new c.FormatError("GState must be referred to by name.");var o=u.get("ExtGState");if(!(o instanceof h.Dict))throw new c.FormatError("ExtGState should be a dictionary.");var l=o.get(te);if(!(l instanceof h.Dict))throw new c.FormatError("GState should be a dictionary.");var d=l.get("Font");if(d){flushTextContentItem();E.fontName=null;E.fontSize=d[1];handleSetFont(null,d[0]).then(t,r)}else{q.set(te,l.objId,!0);t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!L.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring ExtGState: "'.concat(t,'".'))}})));return;case c.OPS.beginMarkedContent:C&&D.items.push({type:"beginMarkedContent",tag:(0,h.isName)(v[0])?v[0].name:null});break;case c.OPS.beginMarkedContentProps:if(C){flushTextContentItem();var re=null;(0,h.isDict)(v[1])&&(re=v[1].get("MCID"));D.items.push({type:"beginMarkedContentProps",id:Number.isInteger(re)?"".concat(L.idFactory.getPageObjId(),"_mcid").concat(re):null,tag:(0,h.isName)(v[0])?v[0].name:null})}break;case c.OPS.endMarkedContent:if(C){flushTextContentItem();D.items.push({type:"endMarkedContent"})}}if(D.items.length>=x.desiredSize){d=!0;break}}if(d)o($);else{flushTextContentItem();enqueueChunk();t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!r.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(t,'".'));flushTextContentItem();enqueueChunk()}}))}},{key:"extractDataStructures",value:function extractDataStructures(t,r,o){var l,u=this,d=this.xref,y=this.readToUnicode(o.toUnicode||t.get("ToUnicode")||r.get("ToUnicode"));if(o.composite){var v=t.get("CIDSystemInfo");(0,h.isDict)(v)&&(o.cidSystemInfo={registry:(0,c.stringToPDFString)(v.get("Registry")),ordering:(0,c.stringToPDFString)(v.get("Ordering")),supplement:v.get("Supplement")});var S=t.get("CIDToGIDMap");(0,h.isStream)(S)&&(l=S.getBytes())}var k,_=[],C=null;if(t.has("Encoding")){k=t.get("Encoding");if((0,h.isDict)(k)){C=k.get("BaseEncoding");C=(0,h.isName)(C)?C.name:null;if(k.has("Differences"))for(var w=k.get("Differences"),x=0,O=0,T=w.length;O<T;O++){var R=d.fetchIfRef(w[O]);if((0,c.isNum)(R))x=R;else{if(!(0,h.isName)(R))throw new c.FormatError("Invalid entry in 'Differences' array: ".concat(R));_[x++]=R.name}}}else{if(!(0,h.isName)(k))throw new c.FormatError("Encoding is not a Name nor a Dict");C=k.name}"MacRomanEncoding"!==C&&"MacExpertEncoding"!==C&&"WinAnsiEncoding"!==C&&(C=null)}if(C)o.defaultEncoding=(0,g.getEncoding)(C);else{var E=!!(o.flags&m.FontFlags.Symbolic),M=!!(o.flags&m.FontFlags.Nonsymbolic);k=g.StandardEncoding;"TrueType"!==o.type||M||(k=g.WinAnsiEncoding);if(E){k=g.MacRomanEncoding;o.file&&!o.isInternalFont||(/Symbol/i.test(o.name)?k=g.SymbolSetEncoding:/Dingbats|Wingdings/i.test(o.name)&&(k=g.ZapfDingbatsEncoding))}o.defaultEncoding=k}o.differences=_;o.baseEncodingName=C;o.hasEncoding=!!C||_.length>0;o.dict=t;return y.then((function(t){o.toUnicode=t;return u.buildToUnicode(o)})).then((function(t){o.toUnicode=t;l&&(o.cidToGidMap=u.readCidToGidMap(l,t));return o}))}},{key:"_simpleFontToUnicode",value:function _simpleFontToUnicode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.assert)(!t.composite,"Must be a simple font.");var o=[],l=t.defaultEncoding.slice(),u=t.baseEncodingName,h=t.differences;for(var d in h){var m=h[d];".notdef"!==m&&(l[d]=m)}var y=(0,E.getGlyphsUnicode)();for(var S in l){var k=l[S];if(""!==k)if(void 0!==y[k])o[S]=String.fromCharCode(y[k]);else{var _=0;switch(k[0]){case"G":3===k.length&&(_=parseInt(k.substring(1),16));break;case"g":5===k.length&&(_=parseInt(k.substring(1),16));break;case"C":case"c":if(k.length>=3&&k.length<=4){var C=k.substring(1);if(r){_=parseInt(C,16);break}_=+C;if(Number.isNaN(_)&&Number.isInteger(parseInt(C,16)))return this._simpleFontToUnicode(t,!0)}break;default:var w=(0,v.getUnicodeForGlyph)(k,y);-1!==w&&(_=w)}if(_>0&&_<=1114111&&Number.isInteger(_)){if(u&&_===+S){var x=(0,g.getEncoding)(u);if(x&&(k=x[S])){o[S]=String.fromCharCode(y[k]);continue}}o[S]=String.fromCodePoint(_)}}}return o}},{key:"buildToUnicode",value:(r=_asyncToGenerator(l.default.mark((function _callee8(t){var r,o,d,m,g,y;return l.default.wrap((function _callee8$(l){for(;;)switch(l.prev=l.next){case 0:t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0;if(!t.hasIncludedToUnicodeMap){l.next=4;break}!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t));return l.abrupt("return",t.toUnicode);case 4:if(t.composite){l.next=6;break}return l.abrupt("return",new k.ToUnicodeMap(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof u.IdentityCMap)&&("Adobe"!==t.cidSystemInfo.registry||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){l.next=15;break}r=t.cidSystemInfo,o=r.registry,d=r.ordering;m=h.Name.get("".concat(o,"-").concat(d,"-UCS2"));l.next=11;return u.CMapFactory.create({encoding:m,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:g=l.sent;y=[];t.cMap.forEach((function(t,r){if(r>65535)throw new c.FormatError("Max size of CID is 65,535");var o=g.lookup(r);o&&(y[t]=String.fromCharCode((o.charCodeAt(0)<<8)+o.charCodeAt(1)))}));return l.abrupt("return",new k.ToUnicodeMap(y));case 15:return l.abrupt("return",new k.IdentityToUnicodeMap(t.firstChar,t.lastChar));case 16:case"end":return l.stop()}}),_callee8,this)}))),function buildToUnicode(t){return r.apply(this,arguments)})},{key:"readToUnicode",value:function readToUnicode(t){var r=this;return t?(0,h.isName)(t)?u.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){return t instanceof u.IdentityCMap?new k.IdentityToUnicodeMap(0,65535):new k.ToUnicodeMap(t.getMap())})):(0,h.isStream)(t)?u.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof u.IdentityCMap)return new k.IdentityToUnicodeMap(0,65535);var r=new Array(t.length);t.forEach((function(t,o){for(var l=[],c=0;c<o.length;c+=2){var u=o.charCodeAt(c)<<8|o.charCodeAt(c+1);if(55296==(63488&u)){c+=2;var h=o.charCodeAt(c)<<8|o.charCodeAt(c+1);l.push(((1023&u)<<10)+(1023&h)+65536)}else l.push(u)}r[t]=String.fromCodePoint.apply(String,l)}));return new k.ToUnicodeMap(r)}),(function(t){if(t instanceof c.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontToUnicode});(0,c.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(t,'".'));return null}throw t})):Promise.resolve(null):Promise.resolve(null)}},{key:"readCidToGidMap",value:function readCidToGidMap(t,r){for(var o=[],l=0,c=t.length;l<c;l++){var u=t[l++]<<8|t[l],h=l>>1;(0!==u||r.has(h))&&(o[h]=u)}return o}},{key:"extractWidths",value:function extractWidths(t,r,o){var l,c,u,d,g,y,v,S,k=this.xref,_=[],C=0,w=[];if(o.composite){C=t.has("DW")?t.get("DW"):1e3;if(S=t.get("W"))for(c=0,u=S.length;c<u;c++){y=k.fetchIfRef(S[c++]);v=k.fetchIfRef(S[c]);if(Array.isArray(v))for(d=0,g=v.length;d<g;d++)_[y++]=k.fetchIfRef(v[d]);else{var x=k.fetchIfRef(S[++c]);for(d=y;d<=v;d++)_[d]=x}}if(o.vertical){var O=t.getArray("DW2")||[880,-1e3];l=[O[1],.5*C,O[0]];if(O=t.get("W2"))for(c=0,u=O.length;c<u;c++){y=k.fetchIfRef(O[c++]);v=k.fetchIfRef(O[c]);if(Array.isArray(v))for(d=0,g=v.length;d<g;d++)w[y++]=[k.fetchIfRef(v[d++]),k.fetchIfRef(v[d++]),k.fetchIfRef(v[d])];else{var T=[k.fetchIfRef(O[++c]),k.fetchIfRef(O[++c]),k.fetchIfRef(O[++c])];for(d=y;d<=v;d++)w[d]=T}}}}else{var R=o.firstChar;if(S=t.get("Widths")){d=R;for(c=0,u=S.length;c<u;c++)_[d++]=k.fetchIfRef(S[c]);C=parseFloat(r.get("MissingWidth"))||0}else{var E=t.get("BaseFont");if((0,h.isName)(E)){var M=this.getBaseFontMetrics(E.name);_=this.buildCharCodeToWidth(M.widths,o);C=M.defaultWidth}}}var D=!0,j=C;for(var L in _){var N=_[L];if(N)if(j){if(j!==N){D=!1;break}}else j=N}D&&(o.flags|=m.FontFlags.FixedPitch);o.defaultWidth=C;o.widths=_;o.defaultVMetrics=l;o.vmetrics=w}},{key:"isSerifFont",value:function isSerifFont(t){var r=t.split("-")[0];return r in(0,y.getSerifFonts)()||-1!==r.search(/serif/gi)}},{key:"getBaseFontMetrics",value:function getBaseFontMetrics(t){var r=0,o=Object.create(null),l=!1,u=(0,y.getStdFontMap)()[t]||t,h=(0,D.getMetrics)();u in h||(u=this.isSerifFont(t)?"Times-Roman":"Helvetica");var d=h[u];if((0,c.isNum)(d)){r=d;l=!0}else o=d();return{defaultWidth:r,monospace:l,widths:o}}},{key:"buildCharCodeToWidth",value:function buildCharCodeToWidth(t,r){for(var o=Object.create(null),l=r.differences,c=r.defaultEncoding,u=0;u<256;u++)u in l&&t[l[u]]?o[u]=t[l[u]]:u in c&&t[c[u]]&&(o[u]=t[c[u]]);return o}},{key:"preEvaluateFont",value:function preEvaluateFont(t){var r=t,o=t.get("Subtype");if(!(0,h.isName)(o))throw new c.FormatError("invalid font Subtype");var l,u,d=!1;if("Type0"===o.name){var m=t.get("DescendantFonts");if(!m)throw new c.FormatError("Descendant fonts are not specified");if(!((t=Array.isArray(m)?this.xref.fetchIfRef(m[0]):m)instanceof h.Dict))throw new c.FormatError("Descendant font is not a dictionary.");o=t.get("Subtype");if(!(0,h.isName)(o))throw new c.FormatError("invalid font Subtype");d=!0}var g=t.get("FirstChar")||0,y=t.get("LastChar")||(d?65535:255),v=t.get("FontDescriptor");if(v){l=new L.MurmurHash3_64;var S=r.getRaw("Encoding");if((0,h.isName)(S))l.update(S.name);else if((0,h.isRef)(S))l.update(S.toString());else if((0,h.isDict)(S)){var k,_=_createForOfIteratorHelper(S.getRawValues());try{for(_.s();!(k=_.n()).done;){var C=k.value;if((0,h.isName)(C))l.update(C.name);else if((0,h.isRef)(C))l.update(C.toString());else if(Array.isArray(C)){for(var w=C.length,x=new Array(w),O=0;O<w;O++){var T=C[O];(0,h.isName)(T)?x[O]=T.name:((0,c.isNum)(T)||(0,h.isRef)(T))&&(x[O]=T.toString())}l.update(x.join())}}}catch(t){_.e(t)}finally{_.f()}}l.update("".concat(g,"-").concat(y));u=t.get("ToUnicode")||r.get("ToUnicode");if((0,h.isStream)(u)){var R=u.str||u,E=R.buffer?new Uint8Array(R.buffer.buffer,0,R.bufferLength):new Uint8Array(R.bytes.buffer,R.start,R.end-R.start);l.update(E)}else(0,h.isName)(u)&&l.update(u.name);var M=t.get("Widths")||r.get("Widths");if(Array.isArray(M)){var D,j=[],N=_createForOfIteratorHelper(M);try{for(N.s();!(D=N.n()).done;){var U=D.value;((0,c.isNum)(U)||(0,h.isRef)(U))&&j.push(U.toString())}}catch(t){N.e(t)}finally{N.f()}l.update(j.join())}if(d){l.update("compositeFont");var H=t.get("W")||r.get("W");if(Array.isArray(H)){var W,q=[],$=_createForOfIteratorHelper(H);try{for($.s();!(W=$.n()).done;){var X=W.value;if((0,c.isNum)(X)||(0,h.isRef)(X))q.push(X.toString());else if(Array.isArray(X)){var z,G=[],V=_createForOfIteratorHelper(X);try{for(V.s();!(z=V.n()).done;){var Y=z.value;((0,c.isNum)(Y)||(0,h.isRef)(Y))&&G.push(Y.toString())}}catch(t){V.e(t)}finally{V.f()}q.push("[".concat(G.join(),"]"))}}}catch(t){$.e(t)}finally{$.f()}l.update(q.join())}}}return{descriptor:v,dict:t,baseDict:r,composite:d,type:o.name,firstChar:g,lastChar:y,toUnicode:u,hash:l?l.hexdigest():""}}},{key:"translateFont",value:(t=_asyncToGenerator(l.default.mark((function _callee9(t){var r,o,g,v,S,k,_,C,w,O,T,R,E,M,D,L,N,U,H,W,q,$,X,z,G,V,Y,K,J,Q,Z,ee,te,re,ae,ne=this;return l.default.wrap((function _callee9$(l){for(;;)switch(l.prev=l.next){case 0:r=t.descriptor,o=t.dict,g=t.baseDict,v=t.composite,S=t.type,k=t.firstChar,_=t.lastChar,C=t.toUnicode,w=t.cssFontInfo;O="Type3"===S;if(r){l.next=27;break}if(!O){l.next=9;break}(r=new h.Dict(null)).set("FontName",h.Name.get(S));r.set("FontBBox",o.getArray("FontBBox")||[0,0,0,0]);l.next=27;break;case 9:R=o.get("BaseFont");if((0,h.isName)(R)){l.next=12;break}throw new c.FormatError("Base font is not specified");case 12:R=R.name.replace(/[,_]/g,"-");E=this.getBaseFontMetrics(R);M=R.split("-")[0];D=(this.isSerifFont(M)?m.FontFlags.Serif:0)|(E.monospace?m.FontFlags.FixedPitch:0)|((0,y.getSymbolsFonts)()[M]?m.FontFlags.Symbolic:m.FontFlags.Nonsymbolic);T={type:S,name:R,loadedName:g.loadedName,widths:E.widths,defaultWidth:E.defaultWidth,flags:D,firstChar:k,lastChar:_,toUnicode:C,xHeight:0,capHeight:0,italicAngle:0,isType3Font:O};L=o.get("Widths");N=(0,y.getStandardFontName)(R);U=null;if(!N){l.next=26;break}T.isStandardFont=!0;l.next=24;return this.fetchStandardFontData(N);case 24:U=l.sent;T.isInternalFont=!!U;case 26:return l.abrupt("return",this.extractDataStructures(o,o,T).then((function(t){if(L){for(var r=[],o=k,l=0,c=L.length;l<c;l++)r[o++]=ne.xref.fetchIfRef(L[l]);t.widths=r}else t.widths=ne.buildCharCodeToWidth(E.widths,t);return new d.Font(R,U,t)})));case 27:H=r.get("FontName");W=o.get("BaseFont");(0,c.isString)(H)&&(H=h.Name.get(H));(0,c.isString)(W)&&(W=h.Name.get(W));if(!O){q=H&&H.name;$=W&&W.name;if(q!==$){(0,c.info)("The FontDescriptor's FontName is \"".concat(q,'" but ')+"should be the same as the Font's BaseFont \"".concat($,'".'));q&&$&&$.startsWith(q)&&(H=W)}}H=H||W;if((0,h.isName)(H)){l.next=35;break}throw new c.FormatError("invalid font name");case 35:l.prev=35;X=r.get("FontFile","FontFile2","FontFile3");l.next=45;break;case 39:l.prev=39;l.t0=l.catch(35);if(this.options.ignoreErrors){l.next=43;break}throw l.t0;case 43:(0,c.warn)('translateFont - fetching "'.concat(H.name,'" font file: "').concat(l.t0,'".'));X=new x.NullStream;case 45:K=!1;J=!1;Q=null;if(!X){l.next=52;break}if(X.dict){(Z=X.dict.get("Subtype"))instanceof h.Name&&(z=Z.name);G=X.dict.get("Length1");V=X.dict.get("Length2");Y=X.dict.get("Length3")}l.next=73;break;case 52:if(!w){l.next=65;break}if(!(ee=(0,j.getXfaFontName)(H.name))){l.next=63;break}w.fontFamily="".concat(w.fontFamily,"-PdfJS-XFA");w.lineHeight=ee.lineHeight||null;Q=ee.factors||null;l.next=60;return this.fetchStandardFontData(ee.name);case 60:X=l.sent;J=!!X;S="TrueType";case 63:l.next=73;break;case 65:if(O){l.next=73;break}if(!(te=(0,y.getStandardFontName)(H.name))){l.next=73;break}K=!0;l.next=71;return this.fetchStandardFontData(te);case 71:X=l.sent;J=!!X;case 73:T={type:S,name:H.name,subtype:z,file:X,length1:G,length2:V,length3:Y,isStandardFont:K,isInternalFont:J,loadedName:g.loadedName,composite:v,fixedPitch:!1,fontMatrix:o.getArray("FontMatrix")||c.FONT_IDENTITY_MATRIX,firstChar:k,lastChar:_,toUnicode:C,bbox:r.getArray("FontBBox")||o.getArray("FontBBox"),ascent:r.get("Ascent"),descent:r.get("Descent"),xHeight:r.get("XHeight")||0,capHeight:r.get("CapHeight")||0,flags:r.get("Flags"),italicAngle:r.get("ItalicAngle")||0,isType3Font:O,cssFontInfo:w,scaleFactors:Q};if(!v){l.next=82;break}re=g.get("Encoding");(0,h.isName)(re)&&(T.cidEncoding=re.name);l.next=79;return u.CMapFactory.create({encoding:re,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 79:ae=l.sent;T.cMap=ae;T.vertical=T.cMap.vertical;case 82:return l.abrupt("return",this.extractDataStructures(o,g,T).then((function(t){ne.extractWidths(o,r,t);return new d.Font(H.name,X,t)})));case 83:case"end":return l.stop()}}),_callee9,this,[[35,39]])}))),function translateFont(r){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function buildFontPaths(t,r,o,l){function buildPath(r){var u="".concat(t.loadedName,"_path_").concat(r);try{if(t.renderer.hasBuiltPath(r))return;o.send("commonobj",[u,"FontPath",t.renderer.getPathJs(r)])}catch(t){if(l.ignoreErrors){o.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontBuildPath});(0,c.warn)("buildFontPaths - ignoring ".concat(u,' glyph: "').concat(t,'".'));return}throw t}}var u,h=_createForOfIteratorHelper(r);try{for(h.s();!(u=h.n()).done;){var d=u.value;buildPath(d.fontChar);var m=d.accent;m&&m.fontChar&&buildPath(m.fontChar)}}catch(t){h.e(t)}finally{h.f()}}},{key:"fallbackFontDict",get:function get(){var t=new h.Dict;t.set("BaseFont",h.Name.get("PDFJS-FallbackFont"));t.set("Type",h.Name.get("FallbackType"));t.set("Subtype",h.Name.get("FallbackType"));t.set("Encoding",h.Name.get("WinAnsiEncoding"));return(0,c.shadow)(this,"fallbackFontDict",t)}}]);var t,r,o,C,M,z,Q,Z;return PartialEvaluator}();r.PartialEvaluator=z;var G=function(){function TranslatedFont(t){var r=t.loadedName,o=t.font,l=t.dict,c=t.evaluatorOptions;_classCallCheck(this,TranslatedFont);this.loadedName=r;this.font=o;this.dict=l;this._evaluatorOptions=c||H;this.type3Loaded=null;this.type3Dependencies=o.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._evaluatorOptions.fontExtraProperties)])}}},{key:"fallback",value:function fallback(t){if(this.font.data){this.font.disableFontFace=!0;z.buildFontPaths(this.font,this.font.glyphCacheValues,t,this._evaluatorOptions)}}},{key:"loadType3Data",value:function loadType3Data(t,r,o){var l=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var u=t.clone({ignoreErrors:!1});u.parsingType3Font=!0;var h,d=this.font,m=this.type3Dependencies,g=Promise.resolve(),y=this.dict.get("CharProcs"),v=this.dict.get("Resources")||r,S=Object.create(null),k=!d.bbox||(0,c.isArrayEqual)(d.bbox,[0,0,0,0]),_=_createForOfIteratorHelper(y.getKeys());try{var C=function _loop2(){var t=h.value;g=g.then((function(){var r=y.get(t),h=new N.OperatorList;return u.getOperatorList({stream:r,task:o,resources:v,operatorList:h}).then((function(){h.fnArray[0]===c.OPS.setCharWidthAndBounds&&l._removeType3ColorOperators(h,k);S[t]=h.getIR();var r,o=_createForOfIteratorHelper(h.dependencies);try{for(o.s();!(r=o.n()).done;){var u=r.value;m.add(u)}}catch(t){o.e(t)}finally{o.f()}})).catch((function(r){(0,c.warn)('Type3 font resource "'.concat(t,'" is not available.'));var o=new N.OperatorList;S[t]=o.getIR()}))}))};for(_.s();!(h=_.n()).done;)C()}catch(t){_.e(t)}finally{_.f()}this.type3Loaded=g.then((function(){d.charProcOperatorList=S;if(l._bbox){d.isCharBBox=!0;d.bbox=l._bbox}}));return this.type3Loaded}},{key:"_removeType3ColorOperators",value:function _removeType3ColorOperators(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r){this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]);var o=c.Util.normalizeRect(t.argsArray[0].slice(2));this._bbox[0]=Math.min(this._bbox[0],o[0]);this._bbox[1]=Math.min(this._bbox[1],o[1]);this._bbox[2]=Math.max(this._bbox[2],o[2]);this._bbox[3]=Math.max(this._bbox[3],o[3])}for(var l=1,u=t.length;l<u;){switch(t.fnArray[l]){case c.OPS.setStrokeColorSpace:case c.OPS.setFillColorSpace:case c.OPS.setStrokeColor:case c.OPS.setStrokeColorN:case c.OPS.setFillColor:case c.OPS.setFillColorN:case c.OPS.setStrokeGray:case c.OPS.setFillGray:case c.OPS.setStrokeRGBColor:case c.OPS.setFillRGBColor:case c.OPS.setStrokeCMYKColor:case c.OPS.setFillCMYKColor:case c.OPS.shadingFill:case c.OPS.setRenderingIntent:t.fnArray.splice(l,1);t.argsArray.splice(l,1);u--;continue;case c.OPS.setGState:for(var h=_slicedToArray(t.argsArray[l],1),d=h[0],m=0,g=d.length;m<g;){var y=_slicedToArray(d[m],1),v=y[0];switch(v){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":d.splice(m,1);g--;continue}m++}}l++}}}]);return TranslatedFont}(),V=function(){function StateManager(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new K;_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=c.Util.transform(this.state.ctm,t)}}]);return StateManager}(),Y=function(){function TextState(){_classCallCheck(this,TextState);this.ctm=new Float32Array(c.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=c.FONT_IDENTITY_MATRIX;this.textMatrix=c.IDENTITY_MATRIX.slice();this.textLineMatrix=c.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,o,l,c,u){var h=this.textMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=l;h[4]=c;h[5]=u}},{key:"setTextLineMatrix",value:function setTextLineMatrix(t,r,o,l,c,u){var h=this.textLineMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=l;h[4]=c;h[5]=u}},{key:"translateTextMatrix",value:function translateTextMatrix(t,r){var o=this.textMatrix;o[4]=o[0]*t+o[2]*r+o[4];o[5]=o[1]*t+o[3]*r+o[5]}},{key:"translateTextLineMatrix",value:function translateTextLineMatrix(t,r){var o=this.textLineMatrix;o[4]=o[0]*t+o[2]*r+o[4];o[5]=o[1]*t+o[3]*r+o[5]}},{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}(),K=function(){function EvalState(){_classCallCheck(this,EvalState);this.ctm=new Float32Array(c.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=c.TextRenderingMode.FILL;this.fillColorSpace=T.ColorSpace.singletons.gray;this.strokeColorSpace=T.ColorSpace.singletons.gray}_createClass(EvalState,[{key:"clone",value:function clone(){return Object.create(this)}}]);return EvalState}(),J=function(){function EvaluatorPreprocessor(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new V;_classCallCheck(this,EvaluatorPreprocessor);this.parser=new C.Parser({lexer:new C.Lexer(t,EvaluatorPreprocessor.opMap),xref:r});this.stateManager=o;this.nonProcessedArgs=[];this._numInvalidPathOPS=0}_createClass(EvaluatorPreprocessor,[{key:"savedStatesDepth",get:function get(){return this.stateManager.stateStack.length}},{key:"read",value:function read(t){for(var r=t.args;;){var o=this.parser.getObj();if(o instanceof h.Cmd){var l=o.cmd,u=EvaluatorPreprocessor.opMap[l];if(!u){(0,c.warn)('Unknown command "'.concat(l,'".'));continue}var d=u.id,m=u.numArgs,g=null!==r?r.length:0;if(u.variableArgs)g>m&&(0,c.info)("Command ".concat(l,": expected [0, ").concat(m,"] args, ")+"but received ".concat(g," args."));else{if(g!==m){for(var y=this.nonProcessedArgs;g>m;){y.push(r.shift());g--}for(;g<m&&0!==y.length;){null===r&&(r=[]);r.unshift(y.pop());g++}}if(g<m){var v="command ".concat(l,": expected ").concat(m," args, ")+"but received ".concat(g," args.");if(d>=c.OPS.moveTo&&d<=c.OPS.endPath&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new c.FormatError("Invalid ".concat(v));(0,c.warn)("Skipping ".concat(v));null!==r&&(r.length=0);continue}}this.preprocessCommand(d,r);t.fn=d;t.args=r;return!0}if(o===h.EOF)return!1;if(null!==o){null===r&&(r=[]);r.push(o);if(r.length>33)throw new c.FormatError("Too many arguments")}}}},{key:"preprocessCommand",value:function preprocessCommand(t,r){switch(0|t){case c.OPS.save:this.stateManager.save();break;case c.OPS.restore:this.stateManager.restore();break;case c.OPS.transform:this.stateManager.transform(r)}}}],[{key:"opMap",get:function get(){var t=(0,M.getLookupTableFactory)((function(t){t.w={id:c.OPS.setLineWidth,numArgs:1,variableArgs:!1};t.J={id:c.OPS.setLineCap,numArgs:1,variableArgs:!1};t.j={id:c.OPS.setLineJoin,numArgs:1,variableArgs:!1};t.M={id:c.OPS.setMiterLimit,numArgs:1,variableArgs:!1};t.d={id:c.OPS.setDash,numArgs:2,variableArgs:!1};t.ri={id:c.OPS.setRenderingIntent,numArgs:1,variableArgs:!1};t.i={id:c.OPS.setFlatness,numArgs:1,variableArgs:!1};t.gs={id:c.OPS.setGState,numArgs:1,variableArgs:!1};t.q={id:c.OPS.save,numArgs:0,variableArgs:!1};t.Q={id:c.OPS.restore,numArgs:0,variableArgs:!1};t.cm={id:c.OPS.transform,numArgs:6,variableArgs:!1};t.m={id:c.OPS.moveTo,numArgs:2,variableArgs:!1};t.l={id:c.OPS.lineTo,numArgs:2,variableArgs:!1};t.c={id:c.OPS.curveTo,numArgs:6,variableArgs:!1};t.v={id:c.OPS.curveTo2,numArgs:4,variableArgs:!1};t.y={id:c.OPS.curveTo3,numArgs:4,variableArgs:!1};t.h={id:c.OPS.closePath,numArgs:0,variableArgs:!1};t.re={id:c.OPS.rectangle,numArgs:4,variableArgs:!1};t.S={id:c.OPS.stroke,numArgs:0,variableArgs:!1};t.s={id:c.OPS.closeStroke,numArgs:0,variableArgs:!1};t.f={id:c.OPS.fill,numArgs:0,variableArgs:!1};t.F={id:c.OPS.fill,numArgs:0,variableArgs:!1};t["f*"]={id:c.OPS.eoFill,numArgs:0,variableArgs:!1};t.B={id:c.OPS.fillStroke,numArgs:0,variableArgs:!1};t["B*"]={id:c.OPS.eoFillStroke,numArgs:0,variableArgs:!1};t.b={id:c.OPS.closeFillStroke,numArgs:0,variableArgs:!1};t["b*"]={id:c.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1};t.n={id:c.OPS.endPath,numArgs:0,variableArgs:!1};t.W={id:c.OPS.clip,numArgs:0,variableArgs:!1};t["W*"]={id:c.OPS.eoClip,numArgs:0,variableArgs:!1};t.BT={id:c.OPS.beginText,numArgs:0,variableArgs:!1};t.ET={id:c.OPS.endText,numArgs:0,variableArgs:!1};t.Tc={id:c.OPS.setCharSpacing,numArgs:1,variableArgs:!1};t.Tw={id:c.OPS.setWordSpacing,numArgs:1,variableArgs:!1};t.Tz={id:c.OPS.setHScale,numArgs:1,variableArgs:!1};t.TL={id:c.OPS.setLeading,numArgs:1,variableArgs:!1};t.Tf={id:c.OPS.setFont,numArgs:2,variableArgs:!1};t.Tr={id:c.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1};t.Ts={id:c.OPS.setTextRise,numArgs:1,variableArgs:!1};t.Td={id:c.OPS.moveText,numArgs:2,variableArgs:!1};t.TD={id:c.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1};t.Tm={id:c.OPS.setTextMatrix,numArgs:6,variableArgs:!1};t["T*"]={id:c.OPS.nextLine,numArgs:0,variableArgs:!1};t.Tj={id:c.OPS.showText,numArgs:1,variableArgs:!1};t.TJ={id:c.OPS.showSpacedText,numArgs:1,variableArgs:!1};t["'"]={id:c.OPS.nextLineShowText,numArgs:1,variableArgs:!1};t['"']={id:c.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1};t.d0={id:c.OPS.setCharWidth,numArgs:2,variableArgs:!1};t.d1={id:c.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1};t.CS={id:c.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1};t.cs={id:c.OPS.setFillColorSpace,numArgs:1,variableArgs:!1};t.SC={id:c.OPS.setStrokeColor,numArgs:4,variableArgs:!0};t.SCN={id:c.OPS.setStrokeColorN,numArgs:33,variableArgs:!0};t.sc={id:c.OPS.setFillColor,numArgs:4,variableArgs:!0};t.scn={id:c.OPS.setFillColorN,numArgs:33,variableArgs:!0};t.G={id:c.OPS.setStrokeGray,numArgs:1,variableArgs:!1};t.g={id:c.OPS.setFillGray,numArgs:1,variableArgs:!1};t.RG={id:c.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1};t.rg={id:c.OPS.setFillRGBColor,numArgs:3,variableArgs:!1};t.K={id:c.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1};t.k={id:c.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1};t.sh={id:c.OPS.shadingFill,numArgs:1,variableArgs:!1};t.BI={id:c.OPS.beginInlineImage,numArgs:0,variableArgs:!1};t.ID={id:c.OPS.beginImageData,numArgs:0,variableArgs:!1};t.EI={id:c.OPS.endInlineImage,numArgs:1,variableArgs:!1};t.Do={id:c.OPS.paintXObject,numArgs:1,variableArgs:!1};t.MP={id:c.OPS.markPoint,numArgs:1,variableArgs:!1};t.DP={id:c.OPS.markPointProps,numArgs:2,variableArgs:!1};t.BMC={id:c.OPS.beginMarkedContent,numArgs:1,variableArgs:!1};t.BDC={id:c.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1};t.EMC={id:c.OPS.endMarkedContent,numArgs:0,variableArgs:!1};t.BX={id:c.OPS.beginCompat,numArgs:0,variableArgs:!1};t.EX={id:c.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,c.shadow)(this,"opMap",t())}},{key:"MAX_INVALID_PATH_OPS",get:function get(){return(0,c.shadow)(this,"MAX_INVALID_PATH_OPS",20)}}]);return EvaluatorPreprocessor}();r.EvaluatorPreprocessor=J},(t,r,o)=>{"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 l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(114),h=o(126),d=o(118),m=o(119);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var g=["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"],y=Math.pow(2,24)-1,v=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,o){this.codespaceRanges[t-1].push(r,o);this.numCodespaceRanges++}},{key:"mapCidRange",value:function mapCidRange(t,r,o){if(r-t>y)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=r;)this._map[t++]=o++}},{key:"mapBfRange",value:function mapBfRange(t,r,o){if(r-t>y)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var l=o.length-1;t<=r;){this._map[t++]=o;o=o.substring(0,l)+String.fromCharCode(o.charCodeAt(l)+1)}}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){if(r-t>y)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var l=o.length,c=0;t<=r&&c<l;){this._map[t]=o[c++];++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,o=r.length;if(o<=65536)for(var l=0;l<o;l++)void 0!==r[l]&&t(l,r[l]);else for(var c in r)t(c,r[c])}},{key:"charCodeOf",value:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var o in r)if(r[o]===t)return 0|o;return-1}},{key:"getMap",value:function getMap(){return this._map}},{key:"readCharCode",value:function readCharCode(t,r,o){for(var l=0,c=this.codespaceRanges,u=0,h=c.length;u<h;u++){l=(l<<8|t.charCodeAt(r+u))>>>0;for(var d=c[u],m=0,g=d.length;m<g;){var y=d[m++],v=d[m++];if(l>=y&&l<=v){o.charcode=l;o.length=u+1;return}}}o.charcode=0;o.length=1}},{key:"getCharCodeLength",value:function getCharCodeLength(t){for(var r=this.codespaceRanges,o=0,l=r.length;o<l;o++)for(var c=r[o],u=0,h=c.length;u<h;){var d=c[u++],m=c[u++];if(t>=d&&t<=m)return o+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=v;var S=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,o){var l;_classCallCheck(this,IdentityCMap);(l=r.call(this)).vertical=t;l.addCodespaceRange(o,0,65535);return l}_createClass(IdentityCMap,[{key:"mapCidRange",value:function mapCidRange(t,r,o){(0,c.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function mapBfRange(t,r,o){(0,c.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){(0,c.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function mapOne(t,r){(0,c.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,c.unreachable)("should not access .isIdentityCMap")}}]);return IdentityCMap}(v);r.IdentityCMap=S;var k=function BinaryCMapReaderClosure(){function hexToInt(t,r){for(var o=0,l=0;l<=r;l++)o=o<<8|t[l];return o>>>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,o){for(var l=0,c=o;c>=0;c--){l+=t[c]+r[c];t[c]=255&l;l>>=8}}function incHex(t,r){for(var o=1,l=r;l>=0&&o>0;l--){o+=t[l];t[l]=255&o;o>>=8}}var t=16,r=function(){function BinaryCMapStream(t){_classCallCheck(this,BinaryCMapStream);this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(19)}_createClass(BinaryCMapStream,[{key:"readByte",value:function readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function readNumber(){var t,r=0;do{var o=this.readByte();if(o<0)throw new c.FormatError("unexpected EOF in bcmap");t=!(128&o);r=r<<7|127&o}while(!t);return r}},{key:"readSigned",value:function readSigned(){var t=this.readNumber();return 1&t?~(t>>>1):t>>>1}},{key:"readHex",value:function readHex(t,r){t.set(this.buffer.subarray(this.pos,this.pos+r+1));this.pos+=r+1}},{key:"readHexNumber",value:function readHexNumber(t,r){var o,l=this.tmpBuf,u=0;do{var h=this.readByte();if(h<0)throw new c.FormatError("unexpected EOF in bcmap");o=!(128&h);l[u++]=127&h}while(!o);for(var d=r,m=0,g=0;d>=0;){for(;g<8&&l.length>0;){m|=l[--u]<<g;g+=7}t[d]=255&m;d--;m>>=8;g-=8}}},{key:"readHexSigned",value:function readHexSigned(t,r){this.readHexNumber(t,r);for(var o=1&t[r]?255:0,l=0,c=0;c<=r;c++){l=(1&l)<<8|t[c];t[c]=l>>1^o}}},{key:"readString",value:function readString(){for(var t=this.readNumber(),r="",o=0;o<t;o++)r+=String.fromCharCode(this.readNumber());return r}}]);return BinaryCMapStream}();return function(){function BinaryCMapReader(){_classCallCheck(this,BinaryCMapReader)}_createClass(BinaryCMapReader,[{key:"process",value:(o=_asyncToGenerator(l.default.mark((function _callee(o,c,u){var h,d,m,g,y,v,S,k,_,C,w,x,O,T,R,E,M,D,j,L,N;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:h=new r(o);d=h.readByte();c.vertical=!!(1&d);m=null;g=new Uint8Array(t);y=new Uint8Array(t);v=new Uint8Array(t);S=new Uint8Array(t);k=new Uint8Array(t);case 9:if(!((C=h.readByte())>=0)){l.next=68;break}if(7!=(w=C>>5)){l.next=20;break}l.t0=31&C;l.next=0===l.t0?15:1===l.t0?17:19;break;case 15:h.readString();return l.abrupt("break",19);case 17:m=h.readString();return l.abrupt("break",19);case 19:return l.abrupt("continue",9);case 20:x=!!(16&C);if(!(1+(O=15&C)>t)){l.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:T=1;R=h.readNumber();l.t1=w;l.next=0===l.t1?29:1===l.t1?35:2===l.t1?41:3===l.t1?46:4===l.t1?53:5===l.t1?58:65;break;case 29:h.readHex(g,O);h.readHexNumber(y,O);addHex(y,g,O);c.addCodespaceRange(O+1,hexToInt(g,O),hexToInt(y,O));for(E=1;E<R;E++){incHex(y,O);h.readHexNumber(g,O);addHex(g,y,O);h.readHexNumber(y,O);addHex(y,g,O);c.addCodespaceRange(O+1,hexToInt(g,O),hexToInt(y,O))}return l.abrupt("break",66);case 35:h.readHex(g,O);h.readHexNumber(y,O);addHex(y,g,O);h.readNumber();for(M=1;M<R;M++){incHex(y,O);h.readHexNumber(g,O);addHex(g,y,O);h.readHexNumber(y,O);addHex(y,g,O);h.readNumber()}return l.abrupt("break",66);case 41:h.readHex(v,O);_=h.readNumber();c.mapOne(hexToInt(v,O),_);for(D=1;D<R;D++){incHex(v,O);if(!x){h.readHexNumber(k,O);addHex(v,k,O)}_=h.readSigned()+(_+1);c.mapOne(hexToInt(v,O),_)}return l.abrupt("break",66);case 46:h.readHex(g,O);h.readHexNumber(y,O);addHex(y,g,O);_=h.readNumber();c.mapCidRange(hexToInt(g,O),hexToInt(y,O),_);for(j=1;j<R;j++){incHex(y,O);if(x)g.set(y);else{h.readHexNumber(g,O);addHex(g,y,O)}h.readHexNumber(y,O);addHex(y,g,O);_=h.readNumber();c.mapCidRange(hexToInt(g,O),hexToInt(y,O),_)}return l.abrupt("break",66);case 53:h.readHex(v,T);h.readHex(S,O);c.mapOne(hexToInt(v,T),hexToStr(S,O));for(L=1;L<R;L++){incHex(v,T);if(!x){h.readHexNumber(k,T);addHex(v,k,T)}incHex(S,O);h.readHexSigned(k,O);addHex(S,k,O);c.mapOne(hexToInt(v,T),hexToStr(S,O))}return l.abrupt("break",66);case 58:h.readHex(g,T);h.readHexNumber(y,T);addHex(y,g,T);h.readHex(S,O);c.mapBfRange(hexToInt(g,T),hexToInt(y,T),hexToStr(S,O));for(N=1;N<R;N++){incHex(y,T);if(x)g.set(y);else{h.readHexNumber(g,T);addHex(g,y,T)}h.readHexNumber(y,T);addHex(y,g,T);h.readHex(S,O);c.mapBfRange(hexToInt(g,T),hexToInt(y,T),hexToStr(S,O))}return l.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(w));case 66:l.next=9;break;case 68:if(!m){l.next=70;break}return l.abrupt("return",u(m));case 70:return l.abrupt("return",c);case 71:case"end":return l.stop()}}),_callee)}))),function process(t,r,l){return o.apply(this,arguments)})}]);var o;return BinaryCMapReader}()}(),_=function CMapFactoryClosure(){function strToInt(t){for(var r=0,o=0;o<t.length;o++)r=r<<8|t.charCodeAt(o);return r>>>0}function expectString(t){if(!(0,c.isString)(t))throw new c.FormatError("Malformed CMap: expected string.")}function expectInt(t){if(!Number.isInteger(t))throw new c.FormatError("Malformed CMap: expected int.")}function parseBfChar(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endbfchar"))return;expectString(o);var l=strToInt(o);expectString(o=r.getObj());var c=o;t.mapOne(l,c)}}function parseBfRange(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endbfrange"))return;expectString(o);var l=strToInt(o);expectString(o=r.getObj());var h=strToInt(o);o=r.getObj();if(Number.isInteger(o)||(0,c.isString)(o)){var d=Number.isInteger(o)?String.fromCharCode(o):o;t.mapBfRange(l,h,d)}else{if(!(0,u.isCmd)(o,"["))break;o=r.getObj();for(var m=[];!(0,u.isCmd)(o,"]")&&!(0,u.isEOF)(o);){m.push(o);o=r.getObj()}t.mapBfRangeToArray(l,h,m)}}throw new c.FormatError("Invalid bf range.")}function parseCidChar(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endcidchar"))return;expectString(o);var l=strToInt(o);expectInt(o=r.getObj());var c=o;t.mapOne(l,c)}}function parseCidRange(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endcidrange"))return;expectString(o);var l=strToInt(o);expectString(o=r.getObj());var c=strToInt(o);expectInt(o=r.getObj());var h=o;t.mapCidRange(l,c,h)}}function parseCodespaceRange(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endcodespacerange"))return;if(!(0,c.isString)(o))break;var l=strToInt(o);o=r.getObj();if(!(0,c.isString)(o))break;var h=strToInt(o);t.addCodespaceRange(o.length,l,h)}throw new c.FormatError("Invalid codespace range.")}function parseWMode(t,r){var o=r.getObj();Number.isInteger(o)&&(t.vertical=!!o)}function parseCMapName(t,r){var o=r.getObj();(0,u.isName)(o)&&(0,c.isString)(o.name)&&(t.name=o.name)}function parseCMap(t,r,o,l){return _parseCMap.apply(this,arguments)}function _parseCMap(){return(_parseCMap=_asyncToGenerator(l.default.mark((function _callee3(t,r,o,h){var m,g,y;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:0;l.prev=1;y=r.getObj();if(!(0,u.isEOF)(y)){l.next=7;break}return l.abrupt("break",39);case 7:if(!(0,u.isName)(y)){l.next=12;break}"WMode"===y.name?parseWMode(t,r):"CMapName"===y.name&&parseCMapName(t,r);m=y;l.next=29;break;case 12:if(!(0,u.isCmd)(y)){l.next=29;break}l.t0=y.cmd;l.next="endcmap"===l.t0?16:"usecmap"===l.t0?17:"begincodespacerange"===l.t0?19:"beginbfchar"===l.t0?21:"begincidchar"===l.t0?23:"beginbfrange"===l.t0?25:"begincidrange"===l.t0?27:29;break;case 16:return l.abrupt("break",39);case 17:(0,u.isName)(m)&&(g=m.name);return l.abrupt("break",29);case 19:parseCodespaceRange(t,r);return l.abrupt("break",29);case 21:parseBfChar(t,r);return l.abrupt("break",29);case 23:parseCidChar(t,r);return l.abrupt("break",29);case 25:parseBfRange(t,r);return l.abrupt("break",29);case 27:parseCidRange(t,r);return l.abrupt("break",29);case 29:l.next=37;break;case 31:l.prev=31;l.t1=l.catch(1);if(!(l.t1 instanceof d.MissingDataException)){l.next=35;break}throw l.t1;case 35:(0,c.warn)("Invalid cMap data: "+l.t1);return l.abrupt("continue",0);case 37:l.next=0;break;case 39:!h&&g&&(h=g);if(!h){l.next=42;break}return l.abrupt("return",extendCMap(t,o,h));case 42:return l.abrupt("return",t);case 43:case"end":return l.stop()}}),_callee3,null,[[1,31]])})))).apply(this,arguments)}function extendCMap(t,r,o){return _extendCMap.apply(this,arguments)}function _extendCMap(){return(_extendCMap=_asyncToGenerator(l.default.mark((function _callee4(t,r,o){var c,u;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return createBuiltInCMap(o,r);case 2:t.useCMap=l.sent;if(0===t.numCodespaceRanges){c=t.useCMap.codespaceRanges;for(u=0;u<c.length;u++)t.codespaceRanges[u]=c[u].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(r,o){t.contains(r)||t.mapOne(r,t.useCMap.lookup(r))}));return l.abrupt("return",t);case 6:case"end":return l.stop()}}),_callee4)})))).apply(this,arguments)}function createBuiltInCMap(t,r){return _createBuiltInCMap.apply(this,arguments)}function _createBuiltInCMap(){return(_createBuiltInCMap=_asyncToGenerator(l.default.mark((function _callee5(t,r){var o,u,d,y,_;return l.default.wrap((function _callee5$(l){for(;;)switch(l.prev=l.next){case 0:if("Identity-H"!==t){l.next=4;break}return l.abrupt("return",new S(!1,2));case 4:if("Identity-V"!==t){l.next=6;break}return l.abrupt("return",new S(!0,2));case 6:if(g.includes(t)){l.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){l.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:l.next=12;return r(t);case 12:o=l.sent;u=o.cMapData;d=o.compressionType;y=new v(!0);if(d!==c.CMapCompressionType.BINARY){l.next=18;break}return l.abrupt("return",(new k).process(u,y,(function(t){return extendCMap(y,r,t)})));case 18:if(d!==c.CMapCompressionType.NONE){l.next=21;break}_=new h.Lexer(new m.Stream(u));return l.abrupt("return",parseCMap(y,_,r,null));case 21:throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.");case 22:case"end":return l.stop()}}),_callee5)})))).apply(this,arguments)}return{create:function create(t){return _asyncToGenerator(l.default.mark((function _callee2(){var r,o,c,d;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:r=t.encoding;o=t.fetchBuiltInCMap;c=t.useCMap;if(!(0,u.isName)(r)){l.next=7;break}return l.abrupt("return",createBuiltInCMap(r.name,o));case 7:if(!(0,u.isStream)(r)){l.next=14;break}l.next=10;return parseCMap(new v,new h.Lexer(r),o,c);case 10:if(!(d=l.sent).isIdentityCMap){l.next=13;break}return l.abrupt("return",createBuiltInCMap(d.name,o));case 13:return l.abrupt("return",d);case 14:throw new Error("Encoding required.");case 15:case"end":return l.stop()}}),_callee2)})))()}}}();r.CMapFactory=_},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Parser=r.Linearization=r.Lexer=void 0;var l=o(4),c=o(114),u=o(118),h=o(127),d=o(129),m=o(130),g=o(132),y=o(133),v=o(136),S=o(138),k=o(140),_=o(119),C=o(141),w=o(142);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function computeAdler32(t){for(var r=t.length,o=1,l=0,c=0;c<r;++c)l+=o+=255&t[c];return l%65521<<16|o%65521}var x=function(){function Parser(t){var r=t.lexer,o=t.xref,l=t.allowStreams,c=void 0!==l&&l,u=t.recoveryMode,h=void 0!==u&&u;_classCallCheck(this,Parser);this.lexer=r;this.xref=o;this.allowStreams=c;this.recoveryMode=h;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 c.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 u.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 c.Cmd)switch(r.cmd){case"BI":return this.makeInlineImage(t);case"[":for(var o=[];!(0,c.isCmd)(this.buf1,"]")&&!(0,c.isEOF)(this.buf1);)o.push(this.getObj(t));if((0,c.isEOF)(this.buf1)){if(this.recoveryMode)return o;throw new u.ParserEOFException("End of file inside array.")}this.shift();return o;case"<<":for(var h=new c.Dict(this.xref);!(0,c.isCmd)(this.buf1,">>")&&!(0,c.isEOF)(this.buf1);)if((0,c.isName)(this.buf1)){var d=this.buf1.name;this.shift();if((0,c.isEOF)(this.buf1))break;h.set(d,this.getObj(t))}else{(0,l.info)("Malformed dictionary: key must be a name object");this.shift()}if((0,c.isEOF)(this.buf1)){if(this.recoveryMode)return h;throw new u.ParserEOFException("End of file inside dictionary.")}if((0,c.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(h,t):h;this.shift();return h;default:return r}if(Number.isInteger(r)){if(Number.isInteger(this.buf1)&&(0,c.isCmd)(this.buf2,"R")){var m=c.Ref.get(r,this.buf1);this.shift();this.shift();return m}return r}return"string"==typeof r&&t?t.decryptString(r):r}},{key:"findDefaultInlineStreamEnd",value:function findDefaultInlineStreamEnd(t){for(var r,o,h=this.lexer,d=t.pos,m=0;-1!==(r=t.getByte());)if(0===m)m=69===r?1:0;else if(1===m)m=73===r?2:0;else{(0,l.assert)(2===m,"findDefaultInlineStreamEnd - invalid state.");if(32===r||10===r||13===r){o=t.pos;for(var g=t.peekBytes(10),y=0,v=g.length;y<v;y++)if((0!==(r=g[y])||0===g[y+1])&&10!==r&&13!==r&&(r<32||r>127)){m=0;break}if(2!==m)continue;if(h.knownCommands){var S=h.peekObj();S instanceof c.Cmd&&!h.knownCommands[S.cmd]&&(m=0)}else(0,l.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===m)break}else m=0}if(-1===r){(0,l.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(o){(0,l.warn)('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-o))}}var k=4;t.skip(-k);r=t.peekByte();t.skip(k);(0,u.isWhiteSpace)(r)||k--;return t.pos-k-d}},{key:"findDCTDecodeInlineStreamEnd",value:function findDCTDecodeInlineStreamEnd(t){for(var r,o,c=t.pos,u=!1;-1!==(r=t.getByte());)if(255===r){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:u=!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:(o=t.getUint16())>2?t.skip(o-2):t.skip(-2)}if(u)break}var h=t.pos-c;if(-1===r){(0,l.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");t.skip(-h);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return h}},{key:"findASCII85DecodeInlineStreamEnd",value:function findASCII85DecodeInlineStreamEnd(t){for(var r,o=t.pos;-1!==(r=t.getByte());)if(126===r){var c=t.pos;r=t.peekByte();for(;(0,u.isWhiteSpace)(r);){t.skip();r=t.peekByte()}if(62===r){t.skip();break}if(t.pos>c){var h=t.peekBytes(2);if(69===h[0]&&73===h[1])break}}var d=t.pos-o;if(-1===r){(0,l.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-d);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return d}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function findASCIIHexDecodeInlineStreamEnd(t){for(var r,o=t.pos;-1!==(r=t.getByte())&&62!==r;);var c=t.pos-o;if(-1===r){(0,l.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-c);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return c}},{key:"inlineStreamSkipEI",value:function inlineStreamSkipEI(t){for(var r,o=0;-1!==(r=t.getByte());)if(0===o)o=69===r?1:0;else if(1===o)o=73===r?2:0;else if(2===o)break}},{key:"makeInlineImage",value:function makeInlineImage(t){for(var r,o=this.lexer,u=o.stream,h=new c.Dict(this.xref);!(0,c.isCmd)(this.buf1,"ID")&&!(0,c.isEOF)(this.buf1);){if(!(0,c.isName)(this.buf1))throw new l.FormatError("Dictionary key must be a name object");var d=this.buf1.name;this.shift();if((0,c.isEOF)(this.buf1))break;h.set(d,this.getObj(t))}-1!==o.beginInlineImagePos&&(r=u.pos-o.beginInlineImagePos);var m,g=h.get("Filter","F");if((0,c.isName)(g))m=g.name;else if(Array.isArray(g)){var y=this.xref.fetchIfRef(g[0]);(0,c.isName)(y)&&(m=y.name)}var v,S=u.pos;v="DCTDecode"===m||"DCT"===m?this.findDCTDecodeInlineStreamEnd(u):"ASCII85Decode"===m||"A85"===m?this.findASCII85DecodeInlineStreamEnd(u):"ASCIIHexDecode"===m||"AHx"===m?this.findASCIIHexDecodeInlineStreamEnd(u):this.findDefaultInlineStreamEnd(u);var k,_=u.makeSubStream(S,v,h);if(v<1e3&&r<5552){var C=_.getBytes();_.reset();var w=u.pos;u.pos=o.beginInlineImagePos;var x=u.getBytes(r);u.pos=w;k=computeAdler32(C)+"_"+computeAdler32(x);var O=this.imageCache[k];if(void 0!==O){this.buf2=c.Cmd.get("EI");this.shift();O.reset();return O}}t&&(_=t.createStream(_,v));(_=this.filter(_,h,v)).dict=h;if(void 0!==k){_.cacheKey="inline_".concat(v,"_").concat(k);this.imageCache[k]=_}this.buf2=c.Cmd.get("EI");this.shift();return _}},{key:"_findStreamLength",value:function _findStreamLength(t,r){var o=this.lexer.stream;o.pos=t;for(var l=r.length;o.pos<o.end;){var c=o.peekBytes(2048),u=c.length-l;if(u<=0)break;for(var h=0;h<u;){for(var d=0;d<l&&c[h+d]===r[d];)d++;if(d>=l){o.pos+=h;return o.pos-t}h++}o.pos+=u}return-1}},{key:"makeStream",value:function makeStream(t,r){var o=this.lexer,h=o.stream;o.skipToNextLine();var d=h.pos-1,m=t.get("Length");if(!Number.isInteger(m)){(0,l.info)('Bad length "'.concat(m,'" in stream'));m=0}h.pos=d+m;o.nextChar();if(this.tryShift()&&(0,c.isCmd)(this.buf2,"endstream"))this.shift();else{var g=new Uint8Array([101,110,100,115,116,114,101,97,109]),y=this._findStreamLength(d,g);if(y<0){for(var v=1;v<=1;v++){var S=g.length-v,k=g.slice(0,S),_=this._findStreamLength(d,k);if(_>=0){var C=h.peekBytes(S+1)[S];if(!(0,u.isWhiteSpace)(C))break;(0,l.info)('Found "'.concat((0,l.bytesToString)(k),'" when ')+"searching for endstream command.");y=_;break}}if(y<0)throw new l.FormatError("Missing endstream command.")}m=y;o.nextChar();this.shift();this.shift()}this.shift();h=h.makeSubStream(d,m,t);r&&(h=r.createStream(h,m));(h=this.filter(h,t,m)).dict=t;return h}},{key:"filter",value:function filter(t,r,o){var filter=r.get("Filter","F"),u=r.get("DecodeParms","DP");if((0,c.isName)(filter)){Array.isArray(u)&&(0,l.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name.");return this.makeFilter(t,filter.name,o,u)}var h=o;if(Array.isArray(filter))for(var d=filter,m=u,g=0,y=d.length;g<y;++g){filter=this.xref.fetchIfRef(d[g]);if(!(0,c.isName)(filter))throw new l.FormatError('Bad filter name "'.concat(filter,'"'));u=null;Array.isArray(m)&&g in m&&(u=this.xref.fetchIfRef(m[g]));t=this.makeFilter(t,filter.name,h,u);h=null}return t}},{key:"makeFilter",value:function makeFilter(t,r,o,c){if(0===o){(0,l.warn)('Empty "'.concat(r,'" stream.'));return new _.NullStream}try{var x=this.xref.stats.streamTypes;if("FlateDecode"===r||"Fl"===r){x[l.StreamType.FLATE]=!0;return c?new C.PredictorStream(new g.FlateStream(t,o),o,c):new g.FlateStream(t,o)}if("LZWDecode"===r||"LZW"===r){x[l.StreamType.LZW]=!0;var O=1;if(c){c.has("EarlyChange")&&(O=c.get("EarlyChange"));return new C.PredictorStream(new k.LZWStream(t,o,O),o,c)}return new k.LZWStream(t,o,O)}if("DCTDecode"===r||"DCT"===r){x[l.StreamType.DCT]=!0;return new v.JpegStream(t,o,c)}if("JPXDecode"===r||"JPX"===r){x[l.StreamType.JPX]=!0;return new S.JpxStream(t,o,c)}if("ASCII85Decode"===r||"A85"===r){x[l.StreamType.A85]=!0;return new h.Ascii85Stream(t,o)}if("ASCIIHexDecode"===r||"AHx"===r){x[l.StreamType.AHX]=!0;return new d.AsciiHexStream(t,o)}if("CCITTFaxDecode"===r||"CCF"===r){x[l.StreamType.CCF]=!0;return new m.CCITTFaxStream(t,o,c)}if("RunLengthDecode"===r||"RL"===r){x[l.StreamType.RLX]=!0;return new w.RunLengthStream(t,o)}if("JBIG2Decode"===r){x[l.StreamType.JBIG]=!0;return new y.Jbig2Stream(t,o,c)}(0,l.warn)('Filter "'.concat(r,'" is not supported.'));return t}catch(t){if(t instanceof u.MissingDataException)throw t;(0,l.warn)('Invalid stream: "'.concat(t,'"'));return new _.NullStream}}}]);return Parser}();r.Parser=x;var O=[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 T=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,o=0,c=0;if(45===t){c=-1;45===(t=this.nextChar())&&(t=this.nextChar())}else if(43===t){c=1;t=this.nextChar()}if(10===t||13===t)do{t=this.nextChar()}while(10===t||13===t);if(46===t){o=10;t=this.nextChar()}if(t<48||t>57){if(10===o&&0===c&&((0,u.isWhiteSpace)(t)||-1===t)){(0,l.warn)("Lexer.getNumber - treating a single decimal point as zero.");return 0}throw new l.FormatError("Invalid number: ".concat(String.fromCharCode(t)," (charCode ").concat(t,")"))}c=c||1;for(var h=t-48,d=0,m=1;(t=this.nextChar())>=0;)if(t>=48&&t<=57){var g=t-48;if(r)d=10*d+g;else{0!==o&&(o*=10);h=10*h+g}}else if(46===t){if(0!==o)break;o=1}else if(45===t)(0,l.warn)("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t){m=45===t?-1:1;this.nextChar()}else if(t<48||t>57)break;r=!0}0!==o&&(h/=o);r&&(h*=Math.pow(10,m*d));return c*h}},{key:"getString",value:function getString(){var t=1,r=!1,o=this.strBuf;o.length=0;for(var c=this.nextChar();;){var u=!1;switch(0|c){case-1:(0,l.warn)("Unterminated string");r=!0;break;case 40:++t;o.push("(");break;case 41:if(0==--t){this.nextChar();r=!0}else o.push(")");break;case 92:switch(c=this.nextChar()){case-1:(0,l.warn)("Unterminated string");r=!0;break;case 110:o.push("\n");break;case 114:o.push("\r");break;case 116:o.push("\t");break;case 98:o.push("\b");break;case 102:o.push("\f");break;case 92:case 40:case 41:o.push(String.fromCharCode(c));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var h=15&c;u=!0;if((c=this.nextChar())>=48&&c<=55){h=(h<<3)+(15&c);if((c=this.nextChar())>=48&&c<=55){u=!1;h=(h<<3)+(15&c)}}o.push(String.fromCharCode(h));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:o.push(String.fromCharCode(c))}break;default:o.push(String.fromCharCode(c))}if(r)break;u||(c=this.nextChar())}return o.join("")}},{key:"getName",value:function getName(){var t,r,o=this.strBuf;o.length=0;for(;(t=this.nextChar())>=0&&!O[t];)if(35===t){t=this.nextChar();if(O[t]){(0,l.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");o.push("#");break}var u=toHexDigit(t);if(-1!==u){r=t;var h=toHexDigit(t=this.nextChar());if(-1===h){(0,l.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(t),") ")+"in hexadecimal number.");o.push("#",String.fromCharCode(r));if(O[t])break;o.push(String.fromCharCode(t));continue}o.push(String.fromCharCode(u<<4|h))}else o.push("#",String.fromCharCode(t))}else o.push(String.fromCharCode(t));o.length>127?(0,l.warn)("Name token is longer than allowed by the spec: ".concat(o.length)):0===o.length&&(0,l.warn)("Name token is empty.");return c.Name.get(o.join(""))}},{key:"_hexStringWarn",value:function _hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,l.warn)("getHexString - ignoring invalid character: ".concat(t)):(0,l.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function getHexString(){var t=this.strBuf;t.length=0;var r,o,c=this.currentChar,u=!0;this._hexStringNumWarn=0;for(;;){if(c<0){(0,l.warn)("Unterminated hex string");break}if(62===c){this.nextChar();break}if(1!==O[c]){if(u){if(-1===(r=toHexDigit(c))){this._hexStringWarn(c);c=this.nextChar();continue}}else{if(-1===(o=toHexDigit(c))){this._hexStringWarn(c);c=this.nextChar();continue}t.push(String.fromCharCode(r<<4|o))}u=!u;c=this.nextChar()}else c=this.nextChar()}return t.join("")}},{key:"getObj",value:function getObj(){for(var t=!1,r=this.currentChar;;){if(r<0)return c.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(1!==O[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 c.Cmd.get("[");case 93:this.nextChar();return c.Cmd.get("]");case 60:if(60===(r=this.nextChar())){this.nextChar();return c.Cmd.get("<<")}return this.getHexString();case 62:if(62===(r=this.nextChar())){this.nextChar();return c.Cmd.get(">>")}return c.Cmd.get(">");case 123:this.nextChar();return c.Cmd.get("{");case 125:this.nextChar();return c.Cmd.get("}");case 41:this.nextChar();throw new l.FormatError("Illegal character: ".concat(r))}for(var o=String.fromCharCode(r),u=this.knownCommands,h=u&&void 0!==u[o];(r=this.nextChar())>=0&&!O[r];){var d=o+String.fromCharCode(r);if(h&&void 0===u[d])break;if(128===o.length)throw new l.FormatError("Command token too long: ".concat(o.length));o=d;h=u&&void 0!==u[o]}if("true"===o)return!0;if("false"===o)return!1;if("null"===o)return null;"BI"===o&&(this.beginInlineImagePos=this.stream.pos);return c.Cmd.get(o)}},{key:"peekObj",value:function peekObj(){var t,r=this.stream.pos,o=this.currentChar,c=this.beginInlineImagePos;try{t=this.getObj()}catch(t){if(t instanceof u.MissingDataException)throw t;(0,l.warn)("peekObj: ".concat(t))}this.stream.pos=r;this.currentChar=o;this.beginInlineImagePos=c;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=T;var R=function(){function Linearization(){_classCallCheck(this,Linearization)}_createClass(Linearization,null,[{key:"create",value:function create(t){function getInt(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=t.get(r);if(Number.isInteger(l)&&(o?l>=0:l>0))return l;throw new Error('The "'.concat(r,'" parameter in the linearization ')+"dictionary is invalid.")}var r,o,u=new x({lexer:new T(t),xref:null}),h=u.getObj(),d=u.getObj(),m=u.getObj(),g=u.getObj();if(!(Number.isInteger(h)&&Number.isInteger(d)&&(0,c.isCmd)(m,"obj")&&(0,c.isDict)(g)&&(0,l.isNum)(r=g.get("Linearized"))&&r>0))return null;if((o=getInt(g,"L"))!==t.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:o,hints:function getHints(t){var r,o=t.get("H");if(Array.isArray(o)&&(2===(r=o.length)||4===r)){for(var l=0;l<r;l++){var c=o[l];if(!(Number.isInteger(c)&&c>0))throw new Error("Hint (".concat(l,") in the linearization dictionary is invalid."))}return o}throw new Error("Hint array in the linearization dictionary is invalid.")}(g),objectNumberFirst:getInt(g,"O"),endFirst:getInt(g,"E"),numPages:getInt(g,"N"),mainXRefEntriesOffset:getInt(g,"T"),pageFirst:g.has("P")?getInt(g,"P",!0):0}}}]);return Linearization}();r.Linearization=R},(t,r,o)=>{"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.Ascii85Stream=void 0;var l=o(128),c=o(118);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(Ascii85Stream,t);var r=_createSuper(Ascii85Stream);function Ascii85Stream(t,o){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Ascii85Stream);o&&(o*=.8);(l=r.call(this,o)).str=t;l.dict=t.dict;l.input=new Uint8Array(5);return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Ascii85Stream,[{key:"readBlock",value:function readBlock(){for(var t=this.str,r=t.getByte();(0,c.isWhiteSpace)(r);)r=t.getByte();if(-1!==r&&126!==r){var o,l,u=this.bufferLength;if(122===r){o=this.ensureBuffer(u+4);for(l=0;l<4;++l)o[u+l]=0;this.bufferLength+=4}else{var h=this.input;h[0]=r;for(l=1;l<5;++l){r=t.getByte();for(;(0,c.isWhiteSpace)(r);)r=t.getByte();h[l]=r;if(-1===r||126===r)break}o=this.ensureBuffer(u+l-1);this.bufferLength+=l-1;if(l<5){for(;l<5;++l)h[l]=117;this.eof=!0}var d=0;for(l=0;l<5;++l)d=85*d+(h[l]-33);for(l=3;l>=0;--l){o[u+l]=255&d;d>>=8}}}else this.eof=!0}}]);return Ascii85Stream}(l.DecodeStream);r.Ascii85Stream=u},(t,r,o)=>{"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.StreamsSequenceStream=r.DecodeStream=void 0;var l=o(115),c=o(119);function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(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 _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=new Uint8Array(0),h=function(t){_inherits(DecodeStream,t);var r=_createSuper(DecodeStream);function DecodeStream(t){var o;_classCallCheck(this,DecodeStream);(o=r.call(this))._rawMinBufferLength=t||0;o.pos=0;o.bufferLength=0;o.eof=!1;o.buffer=u;o.minBufferLength=512;if(t)for(;o.minBufferLength<t;)o.minBufferLength*=2;return o}_createClass(DecodeStream,[{key:"isEmpty",get:function get(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}},{key:"ensureBuffer",value:function ensureBuffer(t){var r=this.buffer;if(t<=r.byteLength)return r;for(var o=this.minBufferLength;o<t;)o*=2;var l=new Uint8Array(o);l.set(r);return this.buffer=l}},{key:"getByte",value:function getByte(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}},{key:"getBytes",value:function getBytes(t){var r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.pos;if(t){this.ensureBuffer(l+t);r=l+t;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var c=this.bufferLength;r>c&&(r=c)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var u=this.buffer.subarray(l,r);return!o||u instanceof Uint8ClampedArray?u:new Uint8ClampedArray(u)}},{key:"reset",value:function reset(){this.pos=0}},{key:"makeSubStream",value:function makeSubStream(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===r)for(;!this.eof;)this.readBlock();else for(var l=t+r;this.bufferLength<=l&&!this.eof;)this.readBlock();return new c.Stream(this.buffer,t,r,o)}},{key:"getBaseStreams",value:function getBaseStreams(){return this.str?this.str.getBaseStreams():null}}]);return DecodeStream}(l.BaseStream);r.DecodeStream=h;var d=function(t){_inherits(StreamsSequenceStream,t);var r=_createSuper(StreamsSequenceStream);function StreamsSequenceStream(t){var o;_classCallCheck(this,StreamsSequenceStream);var l,c=0,u=_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var d=l.value;c+=d instanceof h?d._rawMinBufferLength:d.length}}catch(t){u.e(t)}finally{u.f()}(o=r.call(this,c)).streams=t;return o}_createClass(StreamsSequenceStream,[{key:"readBlock",value:function readBlock(){var t=this.streams;if(0!==t.length){var r=t.shift().getBytes(),o=this.bufferLength,l=o+r.length;this.ensureBuffer(l).set(r,o);this.bufferLength=l}else this.eof=!0}},{key:"getBaseStreams",value:function getBaseStreams(){var t,r=[],o=_createForOfIteratorHelper(this.streams);try{for(o.s();!(t=o.n()).done;){var l=t.value.getBaseStreams();l&&r.push.apply(r,_toConsumableArray(l))}}catch(t){o.e(t)}finally{o.f()}return r.length>0?r:null}}]);return StreamsSequenceStream}(h);r.StreamsSequenceStream=d},(t,r,o)=>{"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.AsciiHexStream=void 0;function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){!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)}(AsciiHexStream,t);var r=_createSuper(AsciiHexStream);function AsciiHexStream(t,o){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,AsciiHexStream);o&&(o*=.5);(l=r.call(this,o)).str=t;l.dict=t.dict;l.firstDigit=-1;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(AsciiHexStream,[{key:"readBlock",value:function readBlock(){var t=this.str.getBytes(8e3);if(t.length){var r,o=t.length+1>>1,l=this.ensureBuffer(this.bufferLength+o),c=this.bufferLength,u=this.firstDigit,h=_createForOfIteratorHelper(t);try{for(h.s();!(r=h.n()).done;){var d=r.value,m=void 0;if(d>=48&&d<=57)m=15&d;else{if(!(d>=65&&d<=70||d>=97&&d<=102)){if(62===d){this.eof=!0;break}continue}m=9+(15&d)}if(u<0)u=m;else{l[c++]=u<<4|m;u=-1}}}catch(t){h.e(t)}finally{h.f()}if(u>=0&&this.eof){l[c++]=u<<4;u=-1}this.firstDigit=u;this.bufferLength=c}else this.eof=!0}}]);return AsciiHexStream}(o(128).DecodeStream);r.AsciiHexStream=l},(t,r,o)=>{"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.CCITTFaxStream=void 0;var l=o(114),c=o(131);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(CCITTFaxStream,t);var r=_createSuper(CCITTFaxStream);function CCITTFaxStream(t,o,u){var h;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,CCITTFaxStream);(h=r.call(this,o)).str=t;h.dict=t.dict;(0,l.isDict)(u)||(u=l.Dict.empty);var d={next:function next(){return t.getByte()}};h.ccittFaxDecoder=new c.CCITTFaxDecoder(d,{K:u.get("K"),EndOfLine:u.get("EndOfLine"),EncodedByteAlign:u.get("EncodedByteAlign"),Columns:u.get("Columns"),Rows:u.get("Rows"),EndOfBlock:u.get("EndOfBlock"),BlackIs1:u.get("BlackIs1")});return h}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(CCITTFaxStream,[{key:"readBlock",value:function readBlock(){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}(o(128).DecodeStream);r.CCITTFaxStream=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxDecoder=void 0;var l=o(4);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=-1,u=[[-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]],h=[[-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]],d=[[-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]],m=[[-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]],g=[[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]],y=[[-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]],v=function(){function CCITTFaxDecoder(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,CCITTFaxDecoder);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 o,l=r.EndOfBlock;null==l&&(l=!0);this.eoblock=l;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===(o=this._lookBits(12));)this._eatBits(1);1===o&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(CCITTFaxDecoder,[{key:"readNextChar",value:function readNextChar(){if(this.eof)return-1;var t,r,o,u,h,d=this.refLine,m=this.codingLine,g=this.columns;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var y,v,S;if(this.nextLine2D){for(u=0;m[u]<g;++u)d[u]=m[u];d[u++]=g;d[u]=g;m[0]=0;this.codingPos=0;t=0;r=0;for(;m[this.codingPos]<g;)switch(y=this._getTwoDimCode()){case 0:this._addPixels(d[t+1],r);d[t+1]<g&&(t+=2);break;case 1:y=v=0;if(r){do{y+=S=this._getBlackCode()}while(S>=64);do{v+=S=this._getWhiteCode()}while(S>=64)}else{do{y+=S=this._getWhiteCode()}while(S>=64);do{v+=S=this._getBlackCode()}while(S>=64)}this._addPixels(m[this.codingPos]+y,r);m[this.codingPos]<g&&this._addPixels(m[this.codingPos]+v,1^r);for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2;break;case 7:this._addPixels(d[t]+3,r);r^=1;if(m[this.codingPos]<g){++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case 5:this._addPixels(d[t]+2,r);r^=1;if(m[this.codingPos]<g){++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case 3:this._addPixels(d[t]+1,r);r^=1;if(m[this.codingPos]<g){++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case 2:this._addPixels(d[t],r);r^=1;if(m[this.codingPos]<g){++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case 8:this._addPixelsNeg(d[t]-3,r);r^=1;if(m[this.codingPos]<g){t>0?--t:++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case 6:this._addPixelsNeg(d[t]-2,r);r^=1;if(m[this.codingPos]<g){t>0?--t:++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case 4:this._addPixelsNeg(d[t]-1,r);r^=1;if(m[this.codingPos]<g){t>0?--t:++t;for(;d[t]<=m[this.codingPos]&&d[t]<g;)t+=2}break;case c:this._addPixels(g,0);this.eof=!0;break;default:(0,l.info)("bad 2d code");this._addPixels(g,0);this.err=!0}}else{m[0]=0;this.codingPos=0;r=0;for(;m[this.codingPos]<g;){y=0;if(r)do{y+=S=this._getBlackCode()}while(S>=64);else do{y+=S=this._getWhiteCode()}while(S>=64);this._addPixels(m[this.codingPos]+y,r);r^=1}}var k=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){y=this._lookBits(12);if(this.eoline)for(;y!==c&&1!==y;){this._eatBits(1);y=this._lookBits(12)}else for(;0===y;){this._eatBits(1);y=this._lookBits(12)}if(1===y){this._eatBits(12);k=!0}else y===c&&(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&&k&&this.byteAlign){if(1===(y=this._lookBits(12))){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0)for(u=0;u<4;++u){1!==(y=this._lookBits(12))&&(0,l.info)("bad rtc code: "+y);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((y=this._lookBits(13))===c){this.eof=!0;return-1}if(y>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&y)}}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1];this.row++}if(this.outputBits>=8){h=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&m[this.codingPos]<g){this.codingPos++;this.outputBits=m[this.codingPos]-m[this.codingPos-1]}}else{o=8;h=0;do{if(this.outputBits>o){h<<=o;1&this.codingPos||(h|=255>>8-o);this.outputBits-=o;o=0}else{h<<=this.outputBits;1&this.codingPos||(h|=255>>8-this.outputBits);o-=this.outputBits;this.outputBits=0;if(m[this.codingPos]<g){this.codingPos++;this.outputBits=m[this.codingPos]-m[this.codingPos-1]}else if(o>0){h<<=o;o=0}}}while(o)}this.black&&(h^=255);return h}},{key:"_addPixels",value:function _addPixels(t,r){var o=this.codingLine,c=this.codingPos;if(t>o[c]){if(t>this.columns){(0,l.info)("row is wrong length");this.err=!0;t=this.columns}1&c^r&&++c;o[c]=t}this.codingPos=c}},{key:"_addPixelsNeg",value:function _addPixelsNeg(t,r){var o=this.codingLine,c=this.codingPos;if(t>o[c]){if(t>this.columns){(0,l.info)("row is wrong length");this.err=!0;t=this.columns}1&c^r&&++c;o[c]=t}else if(t<o[c]){if(t<0){(0,l.info)("invalid code");this.err=!0;t=0}for(;c>0&&t<o[c-1];)--c;o[c]=t}this.codingPos=c}},{key:"_findTableCode",value:function _findTableCode(t,r,o,l){for(var u=l||0,h=t;h<=r;++h){var d=this._lookBits(h);if(d===c)return[!0,1,!1];h<r&&(d<<=r-h);if(!u||d>=u){var m=o[d-u];if(m[0]===h){this._eatBits(h);return[!0,m[1],!0]}}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function _getTwoDimCode(){var t,r=0;if(this.eoblock){r=this._lookBits(7);if((t=u[r])&&t[0]>0){this._eatBits(t[0]);return t[1]}}else{var o=this._findTableCode(1,7,u);if(o[0]&&o[2])return o[1]}(0,l.info)("Bad two dim code");return c}},{key:"_getWhiteCode",value:function _getWhiteCode(){var t,r=0;if(this.eoblock){if((r=this._lookBits(12))===c)return 1;if((t=r>>5==0?h[r]:d[r>>3])[0]>0){this._eatBits(t[0]);return t[1]}}else{var o=this._findTableCode(1,9,d);if(o[0])return o[1];if((o=this._findTableCode(11,12,h))[0])return o[1]}(0,l.info)("bad white code");this._eatBits(1);return 1}},{key:"_getBlackCode",value:function _getBlackCode(){var t,r;if(this.eoblock){if((t=this._lookBits(13))===c)return 1;if((r=t>>7==0?m[t]:t>>9==0&&t>>7!=0?g[(t>>1)-64]:y[t>>7])[0]>0){this._eatBits(r[0]);return r[1]}}else{var o=this._findTableCode(2,6,y);if(o[0])return o[1];if((o=this._findTableCode(7,12,g,64))[0])return o[1];if((o=this._findTableCode(10,13,m))[0])return o[1]}(0,l.info)("bad black code");this._eatBits(1);return 1}},{key:"_lookBits",value:function _lookBits(t){for(var r;this.inputBits<t;){if(-1===(r=this.source.next()))return 0===this.inputBits?c:this.inputBuf<<t-this.inputBits&65535>>16-t;this.inputBuf=this.inputBuf<<8|r;this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}},{key:"_eatBits",value:function _eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}}]);return CCITTFaxDecoder}();r.CCITTFaxDecoder=v},(t,r,o)=>{"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.FlateStream=void 0;var l=o(128),c=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=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]),d=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]),m=[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],g=[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],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)}(FlateStream,t);var r=_createSuper(FlateStream);function FlateStream(t,o){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FlateStream);(l=r.call(this,o)).str=t;l.dict=t.dict;var u=t.getByte(),h=t.getByte();if(-1===u||-1===h)throw new c.FormatError("Invalid header in flate stream: ".concat(u,", ").concat(h));if(8!=(15&u))throw new c.FormatError("Unknown compression method in flate stream: ".concat(u,", ").concat(h));if(((u<<8)+h)%31!=0)throw new c.FormatError("Bad FCHECK in flate stream: ".concat(u,", ").concat(h));if(32&h)throw new c.FormatError("FDICT bit set in flate stream: ".concat(u,", ").concat(h));l.codeSize=0;l.codeBuf=0;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(FlateStream,[{key:"getBits",value:function getBits(t){for(var r,o=this.str,l=this.codeSize,u=this.codeBuf;l<t;){if(-1===(r=o.getByte()))throw new c.FormatError("Bad encoding in flate stream");u|=r<<l;l+=8}r=u&(1<<t)-1;this.codeBuf=u>>t;this.codeSize=l-=t;return r}},{key:"getCode",value:function getCode(t){for(var r,o=this.str,l=t[0],u=t[1],h=this.codeSize,d=this.codeBuf;h<u&&-1!==(r=o.getByte());){d|=r<<h;h+=8}var m=l[d&(1<<u)-1],g=m>>16,y=65535&m;if(g<1||h<g)throw new c.FormatError("Bad encoding in flate stream");this.codeBuf=d>>g;this.codeSize=h-g;return y}},{key:"generateHuffmanTable",value:function generateHuffmanTable(t){var r,o=t.length,l=0;for(r=0;r<o;++r)t[r]>l&&(l=t[r]);for(var c=1<<l,u=new Int32Array(c),h=1,d=0,m=2;h<=l;++h,d<<=1,m<<=1)for(var g=0;g<o;++g)if(t[g]===h){var y=0,v=d;for(r=0;r<h;++r){y=y<<1|1&v;v>>=1}for(r=y;r<c;r+=m)u[r]=h<<16|g;++d}return[u,l]}},{key:"readBlock",value:function readBlock(){var t,r,o=this.str,l=this.getBits(3);1&l&&(this.eof=!0);if(0!==(l>>=1)){var y,v;if(1===l){y=m;v=g}else{if(2!==l)throw new c.FormatError("Unknown block type in flate stream");var S,k=this.getBits(5)+257,_=this.getBits(5)+1,C=this.getBits(4)+4,w=new Uint8Array(u.length);for(S=0;S<C;++S)w[u[S]]=this.getBits(3);var x=this.generateHuffmanTable(w);r=0;S=0;for(var O,T,R,E=k+_,M=new Uint8Array(E);S<E;){var D=this.getCode(x);if(16===D){O=2;T=3;R=r}else if(17===D){O=3;T=3;R=r=0}else{if(18!==D){M[S++]=r=D;continue}O=7;T=11;R=r=0}for(var j=this.getBits(O)+T;j-- >0;)M[S++]=R}y=this.generateHuffmanTable(M.subarray(0,k));v=this.generateHuffmanTable(M.subarray(k,E))}for(var L=(t=this.buffer)?t.length:0,N=this.bufferLength;;){var U=this.getCode(y);if(U<256){N+1>=L&&(L=(t=this.ensureBuffer(N+1)).length);t[N++]=U}else{if(256===U){this.bufferLength=N;return}var H=(U=h[U-=257])>>16;H>0&&(H=this.getBits(H));r=(65535&U)+H;U=this.getCode(v);(H=(U=d[U])>>16)>0&&(H=this.getBits(H));var W=(65535&U)+H;N+r>=L&&(L=(t=this.ensureBuffer(N+r)).length);for(var q=0;q<r;++q,++N)t[N]=t[N-W]}}}else{var $;if(-1===($=o.getByte()))throw new c.FormatError("Bad block header in flate stream");var X=$;if(-1===($=o.getByte()))throw new c.FormatError("Bad block header in flate stream");X|=$<<8;if(-1===($=o.getByte()))throw new c.FormatError("Bad block header in flate stream");var z=$;if(-1===($=o.getByte()))throw new c.FormatError("Bad block header in flate stream");if((z|=$<<8)!==(65535&~X)&&(0!==X||0!==z))throw new c.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;var G=this.bufferLength,V=G+X;t=this.ensureBuffer(V);this.bufferLength=V;if(0===X)-1===o.peekByte()&&(this.eof=!0);else{var Y=o.getBytes(X);t.set(Y,G);Y.length<X&&(this.eof=!0)}}}}]);return FlateStream}(l.DecodeStream);r.FlateStream=y},(t,r,o)=>{"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.Jbig2Stream=void 0;var l=o(114),c=o(128),u=o(134),h=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(Jbig2Stream,t);var r=_createSuper(Jbig2Stream);function Jbig2Stream(t,o,l){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Jbig2Stream);(c=r.call(this,o)).stream=t;c.dict=t.dict;c.maybeLength=o;c.params=l;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Jbig2Stream,[{key:"bytes",get:function get(){return(0,h.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function ensureBuffer(t){}},{key:"readBlock",value:function readBlock(){if(!this.eof){var t=new u.Jbig2Image,r=[];if((0,l.isDict)(this.params)){var o=this.params.get("JBIG2Globals");if((0,l.isStream)(o)){var c=o.getBytes();r.push({data:c,start:0,end:c.length})}}r.push({data:this.bytes,start:0,end:this.bytes.length});for(var h=t.parseChunks(r),d=h.length,m=0;m<d;m++)h[m]^=255;this.buffer=h;this.bufferLength=d;this.eof=!0}}}]);return Jbig2Stream}(c.DecodeStream);r.Jbig2Stream=d},(t,r,o)=>{"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 l=o(4),c=o(118),u=o(135),h=o(131);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(Jbig2Error,t);var r=_createSuper(Jbig2Error);function Jbig2Error(t){_classCallCheck(this,Jbig2Error);return r.call(this,"JBIG2 error: ".concat(t))}return Jbig2Error}(l.BaseException),m=function(){function ContextCache(){_classCallCheck(this,ContextCache)}_createClass(ContextCache,[{key:"getContexts",value:function getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}}]);return ContextCache}(),g=function(){function DecodingContext(t,r,o){_classCallCheck(this,DecodingContext);this.data=t;this.start=r;this.end=o}_createClass(DecodingContext,[{key:"decoder",get:function get(){var t=new u.ArithmeticDecoder(this.data,this.start,this.end);return(0,l.shadow)(this,"decoder",t)}},{key:"contextCache",get:function get(){var t=new m;return(0,l.shadow)(this,"contextCache",t)}}]);return DecodingContext}();function decodeInteger(t,r,o){var l=t.getContexts(r),c=1;function readBits(t){for(var r=0,u=0;u<t;u++){var h=o.readBit(l,c);c=c<256?c<<1|h:511&(c<<1|h)|256;r=r<<1|h}return r>>>0}var u=readBits(1),h=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===u?h:h>0?-h:null}function decodeIAID(t,r,o){for(var l=t.getContexts("IAID"),c=1,u=0;u<o;u++){c=c<<1|r.readBit(l,c)}return o<31?c&(1<<o)-1:2147483647&c}var y=["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"],v=[[{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}]],S=[{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}]}],k=[39717,1941,229,405],_=[32,8];function decodeBitmap(t,r,o,l,c,u,h,d){if(t){return decodeMMRBitmap(new E(d.data,d.start,d.end),r,o,!1)}if(0===l&&!u&&!c&&4===h.length&&3===h[0].x&&-1===h[0].y&&-3===h[1].x&&-1===h[1].y&&2===h[2].x&&-2===h[2].y&&-2===h[3].x&&-2===h[3].y)return function decodeBitmapTemplate0(t,r,o){var l,c,u,h,d,m,g,y=o.decoder,v=o.contextCache.getContexts("GB"),S=[];for(c=0;c<r;c++){d=S[c]=new Uint8Array(t);m=c<1?d:S[c-1];l=(g=c<2?d:S[c-2])[0]<<13|g[1]<<12|g[2]<<11|m[0]<<7|m[1]<<6|m[2]<<5|m[3]<<4;for(u=0;u<t;u++){d[u]=h=y.readBit(v,l);l=(31735&l)<<1|(u+3<t?g[u+3]<<11:0)|(u+4<t?m[u+4]<<4:0)|h}}return S}(r,o,d);var m=!!u,g=v[l].concat(h);g.sort((function(t,r){return t.y-r.y||t.x-r.x}));var y,S,_=g.length,C=new Int8Array(_),w=new Int8Array(_),x=[],O=0,T=0,R=0,M=0;for(S=0;S<_;S++){C[S]=g[S].x;w[S]=g[S].y;T=Math.min(T,g[S].x);R=Math.max(R,g[S].x);M=Math.min(M,g[S].y);S<_-1&&g[S].y===g[S+1].y&&g[S].x===g[S+1].x-1?O|=1<<_-1-S:x.push(S)}var D=x.length,j=new Int8Array(D),L=new Int8Array(D),N=new Uint16Array(D);for(y=0;y<D;y++){S=x[y];j[y]=g[S].x;L[y]=g[S].y;N[y]=1<<_-1-S}for(var U,H,W,q,$,X=-T,z=-M,G=r-R,V=k[l],Y=new Uint8Array(r),K=[],J=d.decoder,Q=d.contextCache.getContexts("GB"),Z=0,ee=0,te=0;te<o;te++){if(c){if(Z^=J.readBit(Q,V)){K.push(Y);continue}}Y=new Uint8Array(Y);K.push(Y);for(U=0;U<r;U++)if(m&&u[te][U])Y[U]=0;else{if(U>=X&&U<G&&te>=z){ee=ee<<1&O;for(S=0;S<D;S++){H=te+L[S];W=U+j[S];(q=K[H][W])&&(ee|=q=N[S])}}else{ee=0;$=_-1;for(S=0;S<_;S++,$--)(W=U+C[S])>=0&&W<r&&(H=te+w[S])>=0&&(q=K[H][W])&&(ee|=q<<$)}var re=J.readBit(Q,ee);Y[U]=re}}return K}function decodeRefinement(t,r,o,l,c,u,h,m,g){var y=S[o].coding;0===o&&(y=y.concat([m[0]]));var v,k=y.length,C=new Int32Array(k),w=new Int32Array(k);for(v=0;v<k;v++){C[v]=y[v].x;w[v]=y[v].y}var x=S[o].reference;0===o&&(x=x.concat([m[1]]));var O=x.length,T=new Int32Array(O),R=new Int32Array(O);for(v=0;v<O;v++){T[v]=x[v].x;R[v]=x[v].y}for(var E=l[0].length,M=l.length,D=_[o],j=[],L=g.decoder,N=g.contextCache.getContexts("GR"),U=0,H=0;H<r;H++){if(h){if(U^=L.readBit(N,D))throw new d("prediction is not supported")}var W=new Uint8Array(t);j.push(W);for(var q=0;q<t;q++){var $=void 0,X=void 0,z=0;for(v=0;v<k;v++){$=H+w[v];X=q+C[v];$<0||X<0||X>=t?z<<=1:z=z<<1|j[$][X]}for(v=0;v<O;v++){$=H+R[v]-u;X=q+T[v]-c;$<0||$>=M||X<0||X>=E?z<<=1:z=z<<1|l[$][X]}var G=L.readBit(N,z);W[q]=G}}return j}function decodeTextRegion(t,r,o,l,c,u,h,m,g,y,v,S,k,_,C,w,x,O,T){if(t&&r)throw new d("refinement with Huffman is not supported");var R,E,M=[];for(R=0;R<l;R++){E=new Uint8Array(o);if(c)for(var D=0;D<o;D++)E[D]=c;M.push(E)}var j=x.decoder,L=x.contextCache,N=t?-_.tableDeltaT.decode(T):-decodeInteger(L,"IADT",j),U=0;R=0;for(;R<u;){N+=t?_.tableDeltaT.decode(T):decodeInteger(L,"IADT",j);for(var H=U+=t?_.tableFirstS.decode(T):decodeInteger(L,"IAFS",j);;){var W=0;h>1&&(W=t?T.readBits(O):decodeInteger(L,"IAIT",j));var q=h*N+W,$=t?_.symbolIDTable.decode(T):decodeIAID(L,j,g),X=r&&(t?T.readBit():decodeInteger(L,"IARI",j)),z=m[$],G=z[0].length,V=z.length;if(X){var Y=decodeInteger(L,"IARDW",j),K=decodeInteger(L,"IARDH",j);z=decodeRefinement(G+=Y,V+=K,C,z,(Y>>1)+decodeInteger(L,"IARDX",j),(K>>1)+decodeInteger(L,"IARDY",j),!1,w,x)}var J=q-(1&S?0:V-1),Q=H-(2&S?G-1:0),Z=void 0,ee=void 0,te=void 0;if(y){for(Z=0;Z<V;Z++)if(E=M[Q+Z]){te=z[Z];var re=Math.min(o-J,G);switch(k){case 0:for(ee=0;ee<re;ee++)E[J+ee]|=te[ee];break;case 2:for(ee=0;ee<re;ee++)E[J+ee]^=te[ee];break;default:throw new d("operator ".concat(k," is not supported"))}}H+=V-1}else{for(ee=0;ee<V;ee++)if(E=M[J+ee]){te=z[ee];switch(k){case 0:for(Z=0;Z<G;Z++)E[Q+Z]|=te[Z];break;case 2:for(Z=0;Z<G;Z++)E[Q+Z]^=te[Z];break;default:throw new d("operator ".concat(k," is not supported"))}}H+=G-1}R++;var ae=t?_.tableDeltaS.decode(T):decodeInteger(L,"IADS",j);if(null===ae)break;H+=ae+v}}return M}function readSegmentHeader(t,r){var o={};o.number=(0,c.readUint32)(t,r);var l=t[r+4],u=63&l;if(!y[u])throw new d("invalid segment type: "+u);o.type=u;o.typeName=y[u];o.deferredNonRetain=!!(128&l);var h=!!(64&l),m=t[r+5],g=m>>5&7,v=[31&m],S=r+6;if(7===m){g=536870911&(0,c.readUint32)(t,S-1);S+=3;var k=g+7>>3;v[0]=t[S++];for(;--k>0;)v.push(t[S++])}else if(5===m||6===m)throw new d("invalid referred-to flags");o.retainBits=v;var _=4;o.number<=256?_=1:o.number<=65536&&(_=2);var w,x,O=[];for(w=0;w<g;w++){var T=void 0;T=1===_?t[S]:2===_?(0,c.readUint16)(t,S):(0,c.readUint32)(t,S);O.push(T);S+=_}o.referredTo=O;if(h){o.pageAssociation=(0,c.readUint32)(t,S);S+=4}else o.pageAssociation=t[S++];o.length=(0,c.readUint32)(t,S);S+=4;if(4294967295===o.length){if(38!==u)throw new d("invalid unknown segment length");var R=readRegionSegmentInformation(t,S),E=!!(1&t[S+C]),M=new Uint8Array(6);if(!E){M[0]=255;M[1]=172}M[2]=R.height>>>24&255;M[3]=R.height>>16&255;M[4]=R.height>>8&255;M[5]=255&R.height;for(w=S,x=t.length;w<x;w++){for(var D=0;D<6&&M[D]===t[w+D];)D++;if(6===D){o.length=w+6;break}}if(4294967295===o.length)throw new d("segment end was not found")}o.headerEnd=S;return o}function readSegments(t,r,o,l){for(var c=[],u=o;u<l;){var h=readSegmentHeader(r,u);u=h.headerEnd;var d={header:h,data:r};if(!t.randomAccess){d.start=u;u+=h.length;d.end=u}c.push(d);if(51===h.type)break}if(t.randomAccess)for(var m=0,g=c.length;m<g;m++){c[m].start=u;u+=c[m].header.length;c[m].end=u}return c}function readRegionSegmentInformation(t,r){return{width:(0,c.readUint32)(t,r),height:(0,c.readUint32)(t,r+4),x:(0,c.readUint32)(t,r+8),y:(0,c.readUint32)(t,r+12),combinationOperator:7&t[r+16]}}var C=17;function processSegment(t,r){var o,l,u,h,m=t.header,g=t.data,y=t.end,v=t.start;switch(m.type){case 0:var S={},k=(0,c.readUint16)(g,v);S.huffman=!!(1&k);S.refinement=!!(2&k);S.huffmanDHSelector=k>>2&3;S.huffmanDWSelector=k>>4&3;S.bitmapSizeSelector=k>>6&1;S.aggregationInstancesSelector=k>>7&1;S.bitmapCodingContextUsed=!!(256&k);S.bitmapCodingContextRetained=!!(512&k);S.template=k>>10&3;S.refinementTemplate=k>>12&1;v+=2;if(!S.huffman){h=0===S.template?4:1;l=[];for(u=0;u<h;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}S.at=l}if(S.refinement&&!S.refinementTemplate){l=[];for(u=0;u<2;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}S.refinementAt=l}S.numberOfExportedSymbols=(0,c.readUint32)(g,v);v+=4;S.numberOfNewSymbols=(0,c.readUint32)(g,v);v+=4;o=[S,m.number,m.referredTo,g,v,y];break;case 6:case 7:var _={};_.info=readRegionSegmentInformation(g,v);v+=C;var w=(0,c.readUint16)(g,v);v+=2;_.huffman=!!(1&w);_.refinement=!!(2&w);_.logStripSize=w>>2&3;_.stripSize=1<<_.logStripSize;_.referenceCorner=w>>4&3;_.transposed=!!(64&w);_.combinationOperator=w>>7&3;_.defaultPixelValue=w>>9&1;_.dsOffset=w<<17>>27;_.refinementTemplate=w>>15&1;if(_.huffman){var x=(0,c.readUint16)(g,v);v+=2;_.huffmanFS=3&x;_.huffmanDS=x>>2&3;_.huffmanDT=x>>4&3;_.huffmanRefinementDW=x>>6&3;_.huffmanRefinementDH=x>>8&3;_.huffmanRefinementDX=x>>10&3;_.huffmanRefinementDY=x>>12&3;_.huffmanRefinementSizeSelector=!!(16384&x)}if(_.refinement&&!_.refinementTemplate){l=[];for(u=0;u<2;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}_.refinementAt=l}_.numberOfSymbolInstances=(0,c.readUint32)(g,v);v+=4;o=[_,m.referredTo,g,v,y];break;case 16:var O={},T=g[v++];O.mmr=!!(1&T);O.template=T>>1&3;O.patternWidth=g[v++];O.patternHeight=g[v++];O.maxPatternIndex=(0,c.readUint32)(g,v);v+=4;o=[O,m.number,g,v,y];break;case 22:case 23:var R={};R.info=readRegionSegmentInformation(g,v);v+=C;var E=g[v++];R.mmr=!!(1&E);R.template=E>>1&3;R.enableSkip=!!(8&E);R.combinationOperator=E>>4&7;R.defaultPixelValue=E>>7&1;R.gridWidth=(0,c.readUint32)(g,v);v+=4;R.gridHeight=(0,c.readUint32)(g,v);v+=4;R.gridOffsetX=4294967295&(0,c.readUint32)(g,v);v+=4;R.gridOffsetY=4294967295&(0,c.readUint32)(g,v);v+=4;R.gridVectorX=(0,c.readUint16)(g,v);v+=2;R.gridVectorY=(0,c.readUint16)(g,v);v+=2;o=[R,m.referredTo,g,v,y];break;case 38:case 39:var M={};M.info=readRegionSegmentInformation(g,v);v+=C;var D=g[v++];M.mmr=!!(1&D);M.template=D>>1&3;M.prediction=!!(8&D);if(!M.mmr){h=0===M.template?4:1;l=[];for(u=0;u<h;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}M.at=l}o=[M,g,v,y];break;case 48:var j={width:(0,c.readUint32)(g,v),height:(0,c.readUint32)(g,v+4),resolutionX:(0,c.readUint32)(g,v+8),resolutionY:(0,c.readUint32)(g,v+12)};4294967295===j.height&&delete j.height;var L=g[v+16];(0,c.readUint16)(g,v+17);j.lossless=!!(1&L);j.refinement=!!(2&L);j.defaultPixelValue=L>>2&1;j.combinationOperator=L>>3&3;j.requiresBuffer=!!(32&L);j.combinationOperatorOverride=!!(64&L);o=[j];break;case 49:case 50:case 51:break;case 53:o=[m.number,g,v,y];break;case 62:break;default:throw new d("segment type ".concat(m.typeName,"(").concat(m.type,")")+" is not implemented")}var N="on"+m.typeName;N in r&&r[N].apply(r,o)}function processSegments(t,r){for(var o=0,l=t.length;o<l;o++)processSegment(t[o],r)}var w=function(){function SimpleSegmentVisitor(){_classCallCheck(this,SimpleSegmentVisitor)}_createClass(SimpleSegmentVisitor,[{key:"onPageInformation",value:function onPageInformation(t){this.currentPageInfo=t;var r=t.width+7>>3,o=new Uint8ClampedArray(r*t.height);if(t.defaultPixelValue)for(var l=0,c=o.length;l<c;l++)o[l]=255;this.buffer=o}},{key:"drawBitmap",value:function drawBitmap(t,r){var o,l,c,u,h=this.currentPageInfo,m=t.width,g=t.height,y=h.width+7>>3,v=h.combinationOperatorOverride?t.combinationOperator:h.combinationOperator,S=this.buffer,k=128>>(7&t.x),_=t.y*y+(t.x>>3);switch(v){case 0:for(o=0;o<g;o++){c=k;u=_;for(l=0;l<m;l++){r[o][l]&&(S[u]|=c);if(!(c>>=1)){c=128;u++}}_+=y}break;case 2:for(o=0;o<g;o++){c=k;u=_;for(l=0;l<m;l++){r[o][l]&&(S[u]^=c);if(!(c>>=1)){c=128;u++}}_+=y}break;default:throw new d("operator ".concat(v," is not supported"))}}},{key:"onImmediateGenericRegion",value:function onImmediateGenericRegion(t,r,o,l){var c=t.info,u=new g(r,o,l),h=decodeBitmap(t.mmr,c.width,c.height,t.template,t.prediction,null,t.at,u);this.drawBitmap(c,h)}},{key:"onImmediateLosslessGenericRegion",value:function onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function onSymbolDictionary(t,r,o,l,u,h){var m,y;if(t.huffman){m=function getSymbolDictionaryHuffmanTables(t,r,o){var l,c,u,h,m=0;switch(t.huffmanDHSelector){case 0:case 1:l=getStandardTable(t.huffmanDHSelector+4);break;case 3:l=getCustomHuffmanTable(m,r,o);m++;break;default:throw new d("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:c=getStandardTable(t.huffmanDWSelector+2);break;case 3:c=getCustomHuffmanTable(m,r,o);m++;break;default:throw new d("invalid Huffman DW selector")}if(t.bitmapSizeSelector){u=getCustomHuffmanTable(m,r,o);m++}else u=getStandardTable(1);h=t.aggregationInstancesSelector?getCustomHuffmanTable(m,r,o):getStandardTable(1);return{tableDeltaHeight:l,tableDeltaWidth:c,tableBitmapSize:u,tableAggregateInstances:h}}(t,o,this.customTables);y=new E(l,u,h)}var v=this.symbols;v||(this.symbols=v={});for(var S=[],k=0,_=o.length;k<_;k++){var C=v[o[k]];C&&(S=S.concat(C))}var w=new g(l,u,h);v[r]=function decodeSymbolDictionary(t,r,o,l,u,h,m,g,y,v,S,k){if(t&&r)throw new d("symbol refinement with Huffman is not supported");var _,C,w=[],x=0,O=(0,c.log2)(o.length+l),T=S.decoder,R=S.contextCache;if(t){_=getStandardTable(1);C=[];O=Math.max(O,1)}for(;w.length<l;){x+=t?h.tableDeltaHeight.decode(k):decodeInteger(R,"IADH",T);for(var E=0,M=0,D=t?C.length:0;;){var j=t?h.tableDeltaWidth.decode(k):decodeInteger(R,"IADW",T);if(null===j)break;M+=E+=j;var L=void 0;if(r){var N=decodeInteger(R,"IAAI",T);if(N>1)L=decodeTextRegion(t,r,E,x,0,N,1,o.concat(w),O,0,0,1,0,h,y,v,S,0,k);else{var U=decodeIAID(R,T,O),H=decodeInteger(R,"IARDX",T),W=decodeInteger(R,"IARDY",T);L=decodeRefinement(E,x,y,U<o.length?o[U]:w[U-o.length],H,W,!1,v,S)}w.push(L)}else if(t)C.push(E);else{L=decodeBitmap(!1,E,x,m,!1,null,g,S);w.push(L)}}if(t&&!r){var q=h.tableBitmapSize.decode(k);k.byteAlign();var $=void 0;if(0===q)$=readUncompressedBitmap(k,M,x);else{var X=k.end,z=k.position+q;k.end=z;$=decodeMMRBitmap(k,M,x,!1);k.end=X;k.position=z}var G=C.length;if(D===G-1)w.push($);else{var V=void 0,Y=void 0,K=0,J=void 0,Q=void 0;for(V=D;V<G;V++){J=K+C[V];Q=[];for(Y=0;Y<x;Y++)Q.push($[Y].subarray(K,J));w.push(Q);K=J}}}}for(var Z,ee,te=[],re=[],ae=!1,ne=o.length+l;re.length<ne;){for(var ie=t?_.decode(k):decodeInteger(R,"IAEX",T);ie--;)re.push(ae);ae=!ae}for(Z=0,ee=o.length;Z<ee;Z++)re[Z]&&te.push(o[Z]);for(var oe=0;oe<l;Z++,oe++)re[Z]&&te.push(w[oe]);return te}(t.huffman,t.refinement,S,t.numberOfNewSymbols,t.numberOfExportedSymbols,m,t.template,t.at,t.refinementTemplate,t.refinementAt,w,y)}},{key:"onImmediateTextRegion",value:function onImmediateTextRegion(t,r,o,l,u){for(var h,m,y=t.info,v=this.symbols,S=[],k=0,_=r.length;k<_;k++){var C=v[r[k]];C&&(S=S.concat(C))}var w=(0,c.log2)(S.length);if(t.huffman){m=new E(o,l,u);h=function getTextRegionHuffmanTables(t,r,o,l,c){for(var u=[],h=0;h<=34;h++){var m=c.readBits(4);u.push(new x([h,m,0,0]))}var g=new T(u,!1);u.length=0;for(var y=0;y<l;){var v=g.decode(c);if(v>=32){var S=void 0,k=void 0,_=void 0;switch(v){case 32:if(0===y)throw new d("no previous value in symbol ID table");k=c.readBits(2)+3;S=u[y-1].prefixLength;break;case 33:k=c.readBits(3)+3;S=0;break;case 34:k=c.readBits(7)+11;S=0;break;default:throw new d("invalid code length in symbol ID table")}for(_=0;_<k;_++){u.push(new x([y,S,0,0]));y++}}else{u.push(new x([y,v,0,0]));y++}}c.byteAlign();var C,w,O,R=new T(u,!1),E=0;switch(t.huffmanFS){case 0:case 1:C=getStandardTable(t.huffmanFS+6);break;case 3:C=getCustomHuffmanTable(E,r,o);E++;break;default:throw new d("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:w=getStandardTable(t.huffmanDS+8);break;case 3:w=getCustomHuffmanTable(E,r,o);E++;break;default:throw new d("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:O=getStandardTable(t.huffmanDT+11);break;case 3:O=getCustomHuffmanTable(E,r,o);E++;break;default:throw new d("invalid Huffman DT selector")}if(t.refinement)throw new d("refinement with Huffman is not supported");return{symbolIDTable:R,tableFirstS:C,tableDeltaS:w,tableDeltaT:O}}(t,r,this.customTables,S.length,m)}var O=new g(o,l,u),R=decodeTextRegion(t.huffman,t.refinement,y.width,y.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,S,w,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,h,t.refinementTemplate,t.refinementAt,O,t.logStripSize,m);this.drawBitmap(y,R)}},{key:"onImmediateLosslessTextRegion",value:function onImmediateLosslessTextRegion(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function onPatternDictionary(t,r,o,l,c){var u=this.patterns;u||(this.patterns=u={});var h=new g(o,l,c);u[r]=function decodePatternDictionary(t,r,o,l,c,u){var h=[];if(!t){h.push({x:-r,y:0});0===c&&h.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}for(var d=decodeBitmap(t,(l+1)*r,o,c,!1,null,h,u),m=[],g=0;g<=l;g++){for(var y=[],v=r*g,S=v+r,k=0;k<o;k++)y.push(d[k].subarray(v,S));m.push(y)}return m}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,h)}},{key:"onImmediateHalftoneRegion",value:function onImmediateHalftoneRegion(t,r,o,l,u){var h=this.patterns[r[0]],m=t.info,y=new g(o,l,u),v=function decodeHalftoneRegion(t,r,o,l,u,h,m,g,y,v,S,k,_,C,w){if(m)throw new d("skip is not supported");if(0!==g)throw new d('operator "'.concat(g,'" is not supported in halftone region'));var x,O,T,R=[];for(x=0;x<u;x++){T=new Uint8Array(l);if(h)for(O=0;O<l;O++)T[O]=h;R.push(T)}var M=r.length,D=r[0],j=D[0].length,L=D.length,N=(0,c.log2)(M),U=[];if(!t){U.push({x:o<=1?3:2,y:-1});0===o&&U.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}var H,W,q,$,X,z,G,V,Y,K,J,Q=[];t&&(H=new E(w.data,w.start,w.end));for(x=N-1;x>=0;x--){W=t?decodeMMRBitmap(H,y,v,!0):decodeBitmap(!1,y,v,o,!1,null,U,w);Q[x]=W}for(q=0;q<v;q++)for($=0;$<y;$++){X=0;z=0;for(O=N-1;O>=0;O--)z|=(X^=Q[O][q][$])<<O;G=r[z];Y=k+q*_-$*C>>8;if((V=S+q*C+$*_>>8)>=0&&V+j<=l&&Y>=0&&Y+L<=u)for(x=0;x<L;x++){J=R[Y+x];K=G[x];for(O=0;O<j;O++)J[V+O]|=K[O]}else{var Z=void 0,ee=void 0;for(x=0;x<L;x++)if(!((ee=Y+x)<0||ee>=u)){J=R[ee];K=G[x];for(O=0;O<j;O++)(Z=V+O)>=0&&Z<l&&(J[Z]|=K[O])}}}return R}(t.mmr,h,t.template,m.width,m.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,y);this.drawBitmap(m,v)}},{key:"onImmediateLosslessHalftoneRegion",value:function onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function onTables(t,r,o,l){var u=this.customTables;u||(this.customTables=u={});u[t]=function decodeTablesSegment(t,r,o){var l,u,h=t[r],d=4294967295&(0,c.readUint32)(t,r+1),m=4294967295&(0,c.readUint32)(t,r+5),g=new E(t,r+9,o),y=1+(h>>1&7),v=1+(h>>4&7),S=[],k=d;do{l=g.readBits(y);u=g.readBits(v);S.push(new x([k,l,u,0]));k+=1<<u}while(k<m);l=g.readBits(y);S.push(new x([d-1,l,32,0,"lower"]));l=g.readBits(y);S.push(new x([m,l,32,0]));if(1&h){l=g.readBits(y);S.push(new x([l,0]))}return new T(S,!1)}(r,o,l)}}]);return SimpleSegmentVisitor}(),x=function HuffmanLine(t){_classCallCheck(this,HuffmanLine);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]}},O=function(){function HuffmanTreeNode(t){_classCallCheck(this,HuffmanTreeNode);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}_createClass(HuffmanTreeNode,[{key:"buildTree",value:function buildTree(t,r){var o=t.prefixCode>>r&1;if(r<=0)this.children[o]=new HuffmanTreeNode(t);else{var l=this.children[o];l||(this.children[o]=l=new HuffmanTreeNode(null));l.buildTree(t,r-1)}}},{key:"decodeNode",value: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 o=this.children[t.readBit()];if(!o)throw new d("invalid Huffman data");return o.decodeNode(t)}}]);return HuffmanTreeNode}(),T=function(){function HuffmanTable(t,r){_classCallCheck(this,HuffmanTable);r||this.assignPrefixCodes(t);this.rootNode=new O(null);for(var o=0,l=t.length;o<l;o++){var c=t[o];c.prefixLength>0&&this.rootNode.buildTree(c,c.prefixLength-1)}}_createClass(HuffmanTable,[{key:"decode",value:function decode(t){return this.rootNode.decodeNode(t)}},{key:"assignPrefixCodes",value:function assignPrefixCodes(t){for(var r=t.length,o=0,l=0;l<r;l++)o=Math.max(o,t[l].prefixLength);for(var c=new Uint32Array(o+1),u=0;u<r;u++)c[t[u].prefixLength]++;var h,d,m,g=1,y=0;c[0]=0;for(;g<=o;){h=y=y+c[g-1]<<1;d=0;for(;d<r;){if((m=t[d]).prefixLength===g){m.prefixCode=h;h++}d++}g++}}}]);return HuffmanTable}();var R={};function getStandardTable(t){var r,o=R[t];if(o)return o;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 d("standard table B.".concat(t," does not exist"))}for(var l=0,c=r.length;l<c;l++)r[l]=new x(r[l]);o=new T(r,!0);R[t]=o;return o}var E=function(){function Reader(t,r,o){_classCallCheck(this,Reader);this.data=t;this.start=r;this.end=o;this.position=r;this.shift=-1;this.currentByte=0}_createClass(Reader,[{key:"readBit",value:function readBit(){if(this.shift<0){if(this.position>=this.end)throw new d("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}},{key:"readBits",value:function readBits(t){var r,o=0;for(r=t-1;r>=0;r--)o|=this.readBit()<<r;return o}},{key:"byteAlign",value:function byteAlign(){this.shift=-1}},{key:"next",value:function next(){return this.position>=this.end?-1:this.data[this.position++]}}]);return Reader}();function getCustomHuffmanTable(t,r,o){for(var l=0,c=0,u=r.length;c<u;c++){var h=o[r[c]];if(h){if(t===l)return h;l++}}throw new d("can't find custom Huffman table")}function readUncompressedBitmap(t,r,o){for(var l=[],c=0;c<o;c++){var u=new Uint8Array(r);l.push(u);for(var h=0;h<r;h++)u[h]=t.readBit();t.byteAlign()}return l}function decodeMMRBitmap(t,r,o,l){for(var c,u={K:-1,Columns:r,Rows:o,BlackIs1:!0,EndOfBlock:l},d=new h.CCITTFaxDecoder(t,u),m=[],g=!1,y=0;y<o;y++){var v=new Uint8Array(r);m.push(v);for(var S=-1,k=0;k<r;k++){if(S<0){if(-1===(c=d.readNextChar())){c=0;g=!0}S=7}v[k]=c>>S&1;S--}}if(l&&!g)for(var _=0;_<5&&-1!==d.readNextChar();_++);return m}var M=function(){function Jbig2Image(){_classCallCheck(this,Jbig2Image)}_createClass(Jbig2Image,[{key:"parseChunks",value:function parseChunks(t){return function parseJbig2Chunks(t){for(var r=new w,o=0,l=t.length;o<l;o++){var c=t[o];processSegments(readSegments({},c.data,c.start,c.end),r)}return r.buffer}(t)}},{key:"parse",value:function parse(t){var r=function parseJbig2(t){var r=t.length,o=0;if(151!==t[o]||74!==t[o+1]||66!==t[o+2]||50!==t[o+3]||13!==t[o+4]||10!==t[o+5]||26!==t[o+6]||10!==t[o+7])throw new d("parseJbig2 - invalid header.");var l=Object.create(null);o+=8;var u=t[o++];l.randomAccess=!(1&u);if(!(2&u)){l.numberOfPages=(0,c.readUint32)(t,o);o+=4}var h=readSegments(l,t,o,r),m=new w;processSegments(h,m);for(var g=m.currentPageInfo,y=g.width,v=g.height,S=m.buffer,k=new Uint8ClampedArray(y*v),_=0,C=0,x=0;x<v;x++)for(var O=0,T=void 0,R=0;R<y;R++){if(!O){O=128;T=S[C++]}k[_++]=T&O?0:255;O>>=1}return{imgData:k,width:y,height:v}}(t),o=r.imgData,l=r.width,u=r.height;this.width=l;this.height=u;return o}}]);return Jbig2Image}();r.Jbig2Image=M},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ArithmeticDecoder=void 0;function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var o=[{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}],l=function(){function ArithmeticDecoder(t,r,o){!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=o;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,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);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 l,c=t[r]>>1,u=1&t[r],h=o[c],d=h.qe,m=this.a-d;if(this.chigh<d)if(m<d){m=d;l=u;c=h.nmps}else{m=d;l=1^u;1===h.switchFlag&&(u=l);c=h.nlps}else{this.chigh-=d;if(0!=(32768&m)){this.a=m;return u}if(m<d){l=1^u;1===h.switchFlag&&(u=l);c=h.nlps}else{l=u;c=h.nmps}}do{0===this.ct&&this.byteIn();m<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&m));this.a=m;t[r]=c<<1|u;return l}}]);return ArithmeticDecoder}();r.ArithmeticDecoder=l},(t,r,o)=>{"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.JpegStream=void 0;var l=o(128),c=o(114),u=o(137),h=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(JpegStream,t);var r=_createSuper(JpegStream);function JpegStream(t,o,l){var c,u;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpegStream);for(;-1!==(u=t.getByte());)if(255===u){t.skip(-1);break}(c=r.call(this,o)).stream=t;c.dict=t.dict;c.maybeLength=o;c.params=l;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(JpegStream,[{key:"bytes",get:function get(){return(0,h.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function ensureBuffer(t){}},{key:"readBlock",value:function readBlock(){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 o=this.dict.get("BitsPerComponent")||8,l=r.length,h=new Int32Array(l),d=!1,m=(1<<o)-1,g=0;g<l;g+=2){h[g]=256*(r[g+1]-r[g])|0;h[g+1]=r[g]*m|0;256===h[g]&&0===h[g+1]||(d=!0)}d&&(t.decodeTransform=h)}if((0,c.isDict)(this.params)){var y=this.params.get("ColorTransform");Number.isInteger(y)&&(t.colorTransform=y)}var v=new u.JpegImage(t);v.parse(this.bytes);var S=v.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=S;this.bufferLength=S.length;this.eof=!0}}}]);return JpegStream}(l.DecodeStream);r.JpegStream=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpegImage=void 0;var l=o(4),c=o(118);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){_inherits(JpegError,t);var r=_createSuper(JpegError);function JpegError(t){_classCallCheck(this,JpegError);return r.call(this,"JPEG error: ".concat(t))}return JpegError}(l.BaseException),h=function(t){_inherits(DNLMarkerError,t);var r=_createSuper(DNLMarkerError);function DNLMarkerError(t,o){var l;_classCallCheck(this,DNLMarkerError);(l=r.call(this,t)).scanLines=o;return l}return DNLMarkerError}(l.BaseException),d=function(t){_inherits(EOIMarkerError,t);var r=_createSuper(EOIMarkerError);function EOIMarkerError(){_classCallCheck(this,EOIMarkerError);return r.apply(this,arguments)}return EOIMarkerError}(l.BaseException),m=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]),g=4017,y=799,v=3406,S=2276,k=1567,_=3784,C=5793,w=2896;function buildHuffmanTable(t,r){for(var o,l,c=0,u=16;u>0&&!t[u-1];)u--;var h,d=[{children:[],index:0}],m=d[0];for(o=0;o<u;o++){for(l=0;l<t[o];l++){(m=d.pop()).children[m.index]=r[c];for(;m.index>0;)m=d.pop();m.index++;d.push(m);for(;d.length<=o;){d.push(h={children:[],index:0});m.children[m.index]=h.children;m=h}c++}if(o+1<u){d.push(h={children:[],index:0});m.children[m.index]=h.children;m=h}}return d[0].children}function getBlockBufferOffset(t,r,o){return 64*((t.blocksPerLine+1)*r+o)}function decodeScan(t,r,o,g,y,v,S,k,_){var C=arguments.length>9&&void 0!==arguments[9]&&arguments[9],w=o.mcusPerLine,x=o.progressive,O=r,T=0,R=0;function readBit(){if(R>0){R--;return T>>R&1}if(255===(T=t[r++])){var l=t[r++];if(l){if(220===l&&C){r+=2;var m=(0,c.readUint16)(t,r);r+=2;if(m>0&&m!==o.scanLines)throw new h("Found DNL marker (0xFFDC) while parsing scan data",m)}else if(217===l){if(C){var g=j*(8===o.precision?8:0);if(g>0&&Math.round(o.scanLines/g)>=10)throw new h("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",g)}throw new d("Found EOI marker (0xFFD9) while parsing scan data")}throw new u("unexpected marker ".concat((T<<8|l).toString(16)))}}R=7;return T>>>7}function decodeHuffman(t){for(var r=t;;){switch(_typeof(r=r[readBit()])){case"number":return r;case"object":continue}throw new u("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(t,r){var o=decodeHuffman(t.huffmanTableDC),l=0===o?0:receiveAndExtend(o);t.blockData[r]=t.pred+=l;for(var c=1;c<64;){var u=decodeHuffman(t.huffmanTableAC),h=15&u,d=u>>4;if(0!==h){var g=m[c+=d];t.blockData[r+g]=receiveAndExtend(h);c++}else{if(d<15)break;c+=16}}}function decodeDCFirst(t,r){var o=decodeHuffman(t.huffmanTableDC),l=0===o?0:receiveAndExtend(o)<<_;t.blockData[r]=t.pred+=l}function decodeDCSuccessive(t,r){t.blockData[r]|=readBit()<<_}var E=0;function decodeACFirst(t,r){if(E>0)E--;else for(var o=v,l=S;o<=l;){var c=decodeHuffman(t.huffmanTableAC),u=15&c,h=c>>4;if(0!==u){var d=m[o+=h];t.blockData[r+d]=receiveAndExtend(u)*(1<<_);o++}else{if(h<15){E=receive(h)+(1<<h)-1;break}o+=16}}}var M,D=0;function decodeACSuccessive(t,r){for(var o,l,c=v,h=S,d=0;c<=h;){var g=r+m[c],y=t.blockData[g]<0?-1:1;switch(D){case 0:d=(l=decodeHuffman(t.huffmanTableAC))>>4;if(0===(o=15&l))if(d<15){E=receive(d)+(1<<d);D=4}else{d=16;D=1}else{if(1!==o)throw new u("invalid ACn encoding");M=receiveAndExtend(o);D=d?2:3}continue;case 1:case 2:t.blockData[g]?t.blockData[g]+=y*(readBit()<<_):0===--d&&(D=2===D?3:0);break;case 3:if(t.blockData[g])t.blockData[g]+=y*(readBit()<<_);else{t.blockData[g]=M<<_;D=0}break;case 4:t.blockData[g]&&(t.blockData[g]+=y*(readBit()<<_))}c++}4===D&&0===--E&&(D=0)}var j=0;function decodeMcu(t,r,o,l,c){var u=o%w;j=(o/w|0)*t.v+l;var h=u*t.h+c;r(t,getBlockBufferOffset(t,j,h))}function decodeBlock(t,r,o){j=o/t.blocksPerLine|0;var l=o%t.blocksPerLine;r(t,getBlockBufferOffset(t,j,l))}var L,N,U,H,W,q,$=g.length;q=x?0===v?0===k?decodeDCFirst:decodeDCSuccessive:0===k?decodeACFirst:decodeACSuccessive:decodeBaseline;var X,z,G,V,Y=0;z=1===$?g[0].blocksPerLine*g[0].blocksPerColumn:w*o.mcusPerColumn;for(;Y<=z;){var K=y?Math.min(z-Y,y):z;if(K>0){for(N=0;N<$;N++)g[N].pred=0;E=0;if(1===$){L=g[0];for(W=0;W<K;W++){decodeBlock(L,q,Y);Y++}}else for(W=0;W<K;W++){for(N=0;N<$;N++){G=(L=g[N]).h;V=L.v;for(U=0;U<V;U++)for(H=0;H<G;H++)decodeMcu(L,q,Y,U,H)}Y++}}R=0;if(!(X=findNextFileMarker(t,r)))break;if(X.invalid){var J=K>0?"unexpected":"excessive";(0,l.warn)("decodeScan - ".concat(J," MCU data, current marker is: ").concat(X.invalid));r=X.offset}if(!(X.marker>=65488&&X.marker<=65495))break;r+=2}return r-O}function quantizeAndInverse(t,r,o){var l,c,h,d,m,x,O,T,R,E,M,D,j,L,N,U,H,W=t.quantizationTable,q=t.blockData;if(!W)throw new u("missing required Quantization Table.");for(var $=0;$<64;$+=8){R=q[r+$];E=q[r+$+1];M=q[r+$+2];D=q[r+$+3];j=q[r+$+4];L=q[r+$+5];N=q[r+$+6];U=q[r+$+7];R*=W[$];if(0!=(E|M|D|j|L|N|U)){E*=W[$+1];M*=W[$+2];D*=W[$+3];j*=W[$+4];L*=W[$+5];N*=W[$+6];U*=W[$+7];c=(l=(l=C*R+128>>8)+(c=C*j+128>>8)+1>>1)-c;H=(h=M)*_+(d=N)*k+128>>8;h=h*k-d*_+128>>8;O=(m=(m=w*(E-U)+128>>8)+(O=L<<4)+1>>1)-O;x=(T=(T=w*(E+U)+128>>8)+(x=D<<4)+1>>1)-x;d=(l=l+(d=H)+1>>1)-d;h=(c=c+h+1>>1)-h;H=m*S+T*v+2048>>12;m=m*v-T*S+2048>>12;T=H;H=x*y+O*g+2048>>12;x=x*g-O*y+2048>>12;O=H;o[$]=l+T;o[$+7]=l-T;o[$+1]=c+O;o[$+6]=c-O;o[$+2]=h+x;o[$+5]=h-x;o[$+3]=d+m;o[$+4]=d-m}else{H=C*R+512>>10;o[$]=H;o[$+1]=H;o[$+2]=H;o[$+3]=H;o[$+4]=H;o[$+5]=H;o[$+6]=H;o[$+7]=H}}for(var X=0;X<8;++X){R=o[X];if(0!=((E=o[X+8])|(M=o[X+16])|(D=o[X+24])|(j=o[X+32])|(L=o[X+40])|(N=o[X+48])|(U=o[X+56]))){c=(l=4112+((l=C*R+2048>>12)+(c=C*j+2048>>12)+1>>1))-c;H=(h=M)*_+(d=N)*k+2048>>12;h=h*k-d*_+2048>>12;d=H;O=(m=(m=w*(E-U)+2048>>12)+(O=L)+1>>1)-O;x=(T=(T=w*(E+U)+2048>>12)+(x=D)+1>>1)-x;H=m*S+T*v+2048>>12;m=m*v-T*S+2048>>12;T=H;H=x*y+O*g+2048>>12;x=x*g-O*y+2048>>12;(R=(l=l+d+1>>1)+T)<16?R=0:R>=4080?R=255:R>>=4;(E=(c=c+h+1>>1)+(O=H))<16?E=0:E>=4080?E=255:E>>=4;(M=(h=c-h)+x)<16?M=0:M>=4080?M=255:M>>=4;(D=(d=l-d)+m)<16?D=0:D>=4080?D=255:D>>=4;(j=d-m)<16?j=0:j>=4080?j=255:j>>=4;(L=h-x)<16?L=0:L>=4080?L=255:L>>=4;(N=c-O)<16?N=0:N>=4080?N=255:N>>=4;(U=l-T)<16?U=0:U>=4080?U=255:U>>=4;q[r+X]=R;q[r+X+8]=E;q[r+X+16]=M;q[r+X+24]=D;q[r+X+32]=j;q[r+X+40]=L;q[r+X+48]=N;q[r+X+56]=U}else{H=(H=C*R+8192>>14)<-2040?0:H>=2024?255:H+2056>>4;q[r+X]=H;q[r+X+8]=H;q[r+X+16]=H;q[r+X+24]=H;q[r+X+32]=H;q[r+X+40]=H;q[r+X+48]=H;q[r+X+56]=H}}}function buildComponentData(t,r){for(var o=r.blocksPerLine,l=r.blocksPerColumn,c=new Int16Array(64),u=0;u<l;u++)for(var h=0;h<o;h++){quantizeAndInverse(r,getBlockBufferOffset(r,u,h),c)}return r.blockData}function findNextFileMarker(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,l=t.length-1,u=o<r?o:r;if(r>=l)return null;var h=(0,c.readUint16)(t,r);if(h>=65472&&h<=65534)return{invalid:null,marker:h,offset:r};for(var d=(0,c.readUint16)(t,u);!(d>=65472&&d<=65534);){if(++u>=l)return null;d=(0,c.readUint16)(t,u)}return{invalid:h.toString(16),marker:d,offset:u}}var x=function(){function JpegImage(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,o=void 0===r?null:r,l=t.colorTransform,c=void 0===l?-1:l;_classCallCheck(this,JpegImage);this._decodeTransform=o;this._colorTransform=c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(JpegImage,[{key:"parse",value:function parse(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.dnlScanLines,g=void 0===o?null:o;function readDataBlock(){var r=(0,c.readUint16)(t,S),o=(S+=2)+r-2,u=findNextFileMarker(t,o,S);if(u&&u.invalid){(0,l.warn)("readDataBlock - incorrect length, current marker is: "+u.invalid);o=u.offset}var h=t.subarray(S,o);S+=h.length;return h}function prepareComponents(t){for(var r=Math.ceil(t.samplesPerLine/8/t.maxH),o=Math.ceil(t.scanLines/8/t.maxV),l=0,c=t.components.length;l<c;l++){var u=t.components[l],h=Math.ceil(Math.ceil(t.samplesPerLine/8)*u.h/t.maxH),d=Math.ceil(Math.ceil(t.scanLines/8)*u.v/t.maxV),m=r*u.h,g=64*(o*u.v)*(m+1);u.blockData=new Int16Array(g);u.blocksPerLine=h;u.blocksPerColumn=d}t.mcusPerLine=r;t.mcusPerColumn=o}var y,v,S=0,k=null,_=null,C=0,w=[],x=[],O=[],T=(0,c.readUint16)(t,S);S+=2;if(65496!==T)throw new u("SOI not found");T=(0,c.readUint16)(t,S);S+=2;e:for(;65497!==T;){var R=void 0,E=void 0,M=void 0;switch(T){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 D=readDataBlock();65504===T&&74===D[0]&&70===D[1]&&73===D[2]&&70===D[3]&&0===D[4]&&(k={version:{major:D[5],minor:D[6]},densityUnits:D[7],xDensity:D[8]<<8|D[9],yDensity:D[10]<<8|D[11],thumbWidth:D[12],thumbHeight:D[13],thumbData:D.subarray(14,14+3*D[12]*D[13])});65518===T&&65===D[0]&&100===D[1]&&111===D[2]&&98===D[3]&&101===D[4]&&(_={version:D[5]<<8|D[6],flags0:D[7]<<8|D[8],flags1:D[9]<<8|D[10],transformCode:D[11]});break;case 65499:for(var j=(0,c.readUint16)(t,S),L=j+(S+=2)-2;S<L;){var N=t[S++],U=new Uint16Array(64);if(N>>4==0)for(E=0;E<64;E++)U[m[E]]=t[S++];else{if(N>>4!=1)throw new u("DQT - invalid table spec");for(E=0;E<64;E++){U[m[E]]=(0,c.readUint16)(t,S);S+=2}}w[15&N]=U}break;case 65472:case 65473:case 65474:if(y)throw new u("Only single frame JPEGs supported");S+=2;(y={}).extended=65473===T;y.progressive=65474===T;y.precision=t[S++];var H=(0,c.readUint16)(t,S);S+=2;y.scanLines=g||H;y.samplesPerLine=(0,c.readUint16)(t,S);S+=2;y.components=[];y.componentIds={};var W=t[S++],q=0,$=0;for(R=0;R<W;R++){var X=t[S],z=t[S+1]>>4,G=15&t[S+1];q<z&&(q=z);$<G&&($=G);var V=t[S+2];M=y.components.push({h:z,v:G,quantizationId:V,quantizationTable:null});y.componentIds[X]=M-1;S+=3}y.maxH=q;y.maxV=$;prepareComponents(y);break;case 65476:var Y=(0,c.readUint16)(t,S);S+=2;for(R=2;R<Y;){var K=t[S++],J=new Uint8Array(16),Q=0;for(E=0;E<16;E++,S++)Q+=J[E]=t[S];var Z=new Uint8Array(Q);for(E=0;E<Q;E++,S++)Z[E]=t[S];R+=17+Q;(K>>4==0?O:x)[15&K]=buildHuffmanTable(J,Z)}break;case 65501:S+=2;v=(0,c.readUint16)(t,S);S+=2;break;case 65498:var ee=1==++C&&!g;S+=2;var te=t[S++],re=[];for(R=0;R<te;R++){var ae=t[S++],ne=y.componentIds[ae],ie=y.components[ne];ie.index=ae;var oe=t[S++];ie.huffmanTableDC=O[oe>>4];ie.huffmanTableAC=x[15&oe];re.push(ie)}var se=t[S++],le=t[S++],ce=t[S++];try{var ue=decodeScan(t,S,y,re,v,se,le,ce>>4,15&ce,ee);S+=ue}catch(r){if(r instanceof h){(0,l.warn)("".concat(r.message," -- attempting to re-parse the JPEG image."));return this.parse(t,{dnlScanLines:r.scanLines})}if(r instanceof d){(0,l.warn)("".concat(r.message," -- ignoring the rest of the image data."));break e}throw r}break;case 65500:S+=4;break;case 65535:255!==t[S]&&S--;break;default:var fe=findNextFileMarker(t,S-2,S-3);if(fe&&fe.invalid){(0,l.warn)("JpegImage.parse - unexpected data, current marker is: "+fe.invalid);S=fe.offset;break}if(!fe||S>=t.length-1){(0,l.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new u("JpegImage.parse - unknown marker: "+T.toString(16))}T=(0,c.readUint16)(t,S);S+=2}this.width=y.samplesPerLine;this.height=y.scanLines;this.jfif=k;this.adobe=_;this.components=[];for(var he=0,de=y.components.length;he<de;he++){var pe=y.components[he],me=w[pe.quantizationId];me&&(pe.quantizationTable=me);this.components.push({index:pe.index,output:buildComponentData(0,pe),scaleX:pe.h/y.maxH,scaleY:pe.v/y.maxV,blocksPerLine:pe.blocksPerLine,blocksPerColumn:pe.blocksPerColumn})}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function _getLinearizedBlockData(t,r){var o,l,c,u,h,d,m,g,y,v,S,k,_=arguments.length>2&&void 0!==arguments[2]&&arguments[2],C=this.width/t,w=this.height/r,x=0,O=this.components.length,T=t*r*O,R=new Uint8ClampedArray(T),E=new Uint32Array(t),M=4294967288;for(m=0;m<O;m++){l=(o=this.components[m]).scaleX*C;c=o.scaleY*w;x=m;S=o.output;u=o.blocksPerLine+1<<3;if(l!==k){for(h=0;h<t;h++){g=0|h*l;E[h]=(g&M)<<3|7&g}k=l}for(d=0;d<r;d++){v=u*((g=0|d*c)&M)|(7&g)<<3;for(h=0;h<t;h++){R[x]=S[v+E[h]];x+=O}}}var D=this._decodeTransform;_||4!==O||D||(D=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(D)for(m=0;m<T;)for(g=0,y=0;g<O;g++,m++,y+=2)R[m]=(R[m]*D[y]>>8)+D[y+1];return R}},{key:"_isColorConversionNeeded",get:function get(){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}},{key:"_convertYccToRgb",value:function _convertYccToRgb(t){for(var r,o,l,c=0,u=t.length;c<u;c+=3){r=t[c];o=t[c+1];l=t[c+2];t[c]=r-179.456+1.402*l;t[c+1]=r+135.459-.344*o-.714*l;t[c+2]=r-226.816+1.772*o}return t}},{key:"_convertYcckToRgb",value:function _convertYcckToRgb(t){for(var r,o,l,c,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];l=t[h+2];c=t[h+3];t[u++]=o*(-660635669420364e-19*o+.000437130475926232*l-54080610064599e-18*r+.00048449797120281*c-.154362151871126)-122.67195406894+l*(-.000957964378445773*l+.000817076911346625*r-.00477271405408747*c+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*c+.48357088451265)+c*(-.000336197177618394*c+.484791561490776);t[u++]=107.268039397724+o*(219927104525741e-19*o-.000640992018297945*l+.000659397001245577*r+.000426105652938837*c-.176491792462875)+l*(-.000778269941513683*l+.00130872261408275*r+.000770482631801132*c-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*c+.25802910206845)+c*(-.000318913117588328*c-.213742400323665);t[u++]=o*(-.000570115196973677*o-263409051004589e-19*l+.0020741088115012*r-.00288260236853442*c+.814272968359295)-20.810012546947+l*(-153496057440975e-19*l-.000132689043961446*r+.000560833691242812*c-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*c+.116935020465145)+c*(-.000343531996510555*c+.24165260232407)}return t.subarray(0,u)}},{key:"_convertYcckToCmyk",value:function _convertYcckToCmyk(t){for(var r,o,l,c=0,u=t.length;c<u;c+=4){r=t[c];o=t[c+1];l=t[c+2];t[c]=434.456-r-1.402*l;t[c+1]=119.541-r+.344*o+.714*l;t[c+2]=481.816-r-1.772*o}return t}},{key:"_convertCmykToRgb",value:function _convertCmykToRgb(t){for(var r,o,l,c,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];l=t[h+2];c=t[h+3];t[u++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*o+.0002894718188643294*l+.003264231057537806*c-1.1185611867203937)+o*(26374107616089405e-21*o-8626949158638572e-20*l-.0002748769067499491*c-.02155688794978967)+l*(-3878099212869363e-20*l-.0003267808279485286*c+.0686742238595345)-c*(.0003361971776183937*c+.7430659151342254);t[u++]=255+r*(.00013596372813588848*r+.000924537132573585*o+.00010567359618683593*l+.0004791864687436512*c-.3109689587515875)+o*(-.00023545346108370344*o+.0002702845253534714*l+.0020200308977307156*c-.7488052167015494)+l*(6834815998235662e-20*l+.00015168452363460973*c-.09751927774728933)-c*(.0003189131175883281*c+.7364883807733168);t[u++]=255+r*(13598650411385307e-21*r+.00012423956175490851*o+.0004751985097583589*l-36729317476630422e-22*c-.05562186980264034)+o*(.00016141380598724676*o+.0009692239130725186*l+.0007782692450036253*c-.44015232367526463)+l*(5.068882914068769e-7*l+.0017778369011375071*c-.7591454649749609)-c*(.0003435319965105553*c+.7063770186160144)}return t.subarray(0,u)}},{key:"getData",value:function getData(t){var r=t.width,o=t.height,l=t.forceRGB,c=void 0!==l&&l,h=t.isSourcePDF,d=void 0!==h&&h;if(this.numComponents>4)throw new u("Unsupported color mode");var m=this._getLinearizedBlockData(r,o,d);if(1===this.numComponents&&c){for(var g=m.length,y=new Uint8ClampedArray(3*g),v=0,S=0;S<g;S++){var k=m[S];y[v++]=k;y[v++]=k;y[v++]=k}return y}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(m);if(4===this.numComponents){if(this._isColorConversionNeeded)return c?this._convertYcckToRgb(m):this._convertYcckToCmyk(m);if(c)return this._convertCmykToRgb(m)}return m}}]);return JpegImage}();r.JpegImage=x},(t,r,o)=>{"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.JpxStream=void 0;var l=o(128),c=o(139),u=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 h=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)}(JpxStream,t);var r=_createSuper(JpxStream);function JpxStream(t,o,l){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpxStream);(c=r.call(this,o)).stream=t;c.dict=t.dict;c.maybeLength=o;c.params=l;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(JpxStream,[{key:"bytes",get:function get(){return(0,u.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function ensureBuffer(t){}},{key:"readBlock",value:function readBlock(){if(!this.eof){var t=new c.JpxImage;t.parse(this.bytes);var r=t.width,o=t.height,l=t.componentsCount,u=t.tiles.length;if(1===u)this.buffer=t.tiles[0].items;else{for(var h=new Uint8ClampedArray(r*o*l),d=0;d<u;d++)for(var m=t.tiles[d],g=m.width,y=m.height,v=m.left,S=m.top,k=m.items,_=0,C=(r*S+v)*l,w=r*l,x=g*l,O=0;O<y;O++){var T=k.subarray(_,_+x);h.set(T,C);_+=x;C+=w}this.buffer=h}this.bufferLength=this.buffer.length;this.eof=!0}}}]);return JpxStream}(l.DecodeStream);r.JpxStream=h},(t,r,o)=>{"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 l=o(4),c=o(118),u=o(135);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 h=function(t){_inherits(JpxError,t);var r=_createSuper(JpxError);function JpxError(t){_classCallCheck(this,JpxError);return r.call(this,"JPX error: ".concat(t))}return JpxError}(l.BaseException),d={LL:0,LH:1,HL:1,HH:2},m=function(){function JpxImage(){_classCallCheck(this,JpxImage);this.failOnCorruptedImage=!1}_createClass(JpxImage,[{key:"parse",value:function parse(t){if(65359!==(0,c.readUint16)(t,0))for(var r=t.length,o=0;o<r;){var u=8,d=(0,c.readUint32)(t,o),m=(0,c.readUint32)(t,o+4);o+=u;if(1===d){d=4294967296*(0,c.readUint32)(t,o)+(0,c.readUint32)(t,o+4);o+=8;u+=8}0===d&&(d=r-o+u);if(d<u)throw new h("Invalid box field size");var g=d-u,y=!0;switch(m){case 1785737832:y=!1;break;case 1668246642:var v=t[o];if(1===v){var S=(0,c.readUint32)(t,o+3);switch(S){case 16:case 17:case 18:break;default:(0,l.warn)("Unknown colorspace "+S)}}else 2===v&&(0,l.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(t,o,o+g);break;case 1783636e3:218793738!==(0,c.readUint32)(t,o)&&(0,l.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var k=String.fromCharCode(m>>24&255,m>>16&255,m>>8&255,255&m);(0,l.warn)("Unsupported header type ".concat(m," (").concat(k,")."))}y&&(o+=g)}else this.parseCodestream(t,0,t.length)}},{key:"parseImageProperties",value:function parseImageProperties(t){for(var r=t.getByte();r>=0;){if(65361===(r<<8|(r=t.getByte()))){t.skip(4);var o=t.getInt32()>>>0,l=t.getInt32()>>>0,c=t.getInt32()>>>0,u=t.getInt32()>>>0;t.skip(16);var d=t.getUint16();this.width=o-c;this.height=l-u;this.componentsCount=d;this.bitsPerComponent=8;return}}throw new h("No size marker found in JPX stream")}},{key:"parseCodestream",value:function parseCodestream(t,r,o){var u={},d=!1;try{for(var m=r;m+1<o;){var g=(0,c.readUint16)(t,m);m+=2;var y=0,v=void 0,S=void 0,k=void 0,_=void 0,C=void 0,w=void 0;switch(g){case 65359:u.mainHeader=!0;break;case 65497:break;case 65361:y=(0,c.readUint16)(t,m);var x={};x.Xsiz=(0,c.readUint32)(t,m+4);x.Ysiz=(0,c.readUint32)(t,m+8);x.XOsiz=(0,c.readUint32)(t,m+12);x.YOsiz=(0,c.readUint32)(t,m+16);x.XTsiz=(0,c.readUint32)(t,m+20);x.YTsiz=(0,c.readUint32)(t,m+24);x.XTOsiz=(0,c.readUint32)(t,m+28);x.YTOsiz=(0,c.readUint32)(t,m+32);var O=(0,c.readUint16)(t,m+36);x.Csiz=O;var T=[];v=m+38;for(var R=0;R<O;R++){var E={precision:1+(127&t[v]),isSigned:!!(128&t[v]),XRsiz:t[v+1],YRsiz:t[v+2]};v+=3;calculateComponentDimensions(E,x);T.push(E)}u.SIZ=x;u.components=T;calculateTileGrids(u,T);u.QCC=[];u.COC=[];break;case 65372:y=(0,c.readUint16)(t,m);var M={};v=m+2;switch(31&(S=t[v++])){case 0:_=8;C=!0;break;case 1:_=16;C=!1;break;case 2:_=16;C=!0;break;default:throw new Error("Invalid SQcd value "+S)}M.noQuantization=8===_;M.scalarExpounded=C;M.guardBits=S>>5;k=[];for(;v<y+m;){var D={};if(8===_){D.epsilon=t[v++]>>3;D.mu=0}else{D.epsilon=t[v]>>3;D.mu=(7&t[v])<<8|t[v+1];v+=2}k.push(D)}M.SPqcds=k;if(u.mainHeader)u.QCD=M;else{u.currentTile.QCD=M;u.currentTile.QCC=[]}break;case 65373:y=(0,c.readUint16)(t,m);var j={};v=m+2;var L=void 0;if(u.SIZ.Csiz<257)L=t[v++];else{L=(0,c.readUint16)(t,v);v+=2}switch(31&(S=t[v++])){case 0:_=8;C=!0;break;case 1:_=16;C=!1;break;case 2:_=16;C=!0;break;default:throw new Error("Invalid SQcd value "+S)}j.noQuantization=8===_;j.scalarExpounded=C;j.guardBits=S>>5;k=[];for(;v<y+m;){var N={};if(8===_){N.epsilon=t[v++]>>3;N.mu=0}else{N.epsilon=t[v]>>3;N.mu=(7&t[v])<<8|t[v+1];v+=2}k.push(N)}j.SPqcds=k;u.mainHeader?u.QCC[L]=j:u.currentTile.QCC[L]=j;break;case 65362:y=(0,c.readUint16)(t,m);var U={};v=m+2;var H=t[v++];U.entropyCoderWithCustomPrecincts=!!(1&H);U.sopMarkerUsed=!!(2&H);U.ephMarkerUsed=!!(4&H);U.progressionOrder=t[v++];U.layersCount=(0,c.readUint16)(t,v);v+=2;U.multipleComponentTransform=t[v++];U.decompositionLevelsCount=t[v++];U.xcb=2+(15&t[v++]);U.ycb=2+(15&t[v++]);var W=t[v++];U.selectiveArithmeticCodingBypass=!!(1&W);U.resetContextProbabilities=!!(2&W);U.terminationOnEachCodingPass=!!(4&W);U.verticallyStripe=!!(8&W);U.predictableTermination=!!(16&W);U.segmentationSymbolUsed=!!(32&W);U.reversibleTransformation=t[v++];if(U.entropyCoderWithCustomPrecincts){for(var q=[];v<y+m;){var $=t[v++];q.push({PPx:15&$,PPy:$>>4})}U.precinctsSizes=q}var X=[];U.selectiveArithmeticCodingBypass&&X.push("selectiveArithmeticCodingBypass");U.resetContextProbabilities&&X.push("resetContextProbabilities");U.terminationOnEachCodingPass&&X.push("terminationOnEachCodingPass");U.verticallyStripe&&X.push("verticallyStripe");U.predictableTermination&&X.push("predictableTermination");if(X.length>0){d=!0;(0,l.warn)("JPX: Unsupported COD options (".concat(X.join(", "),")."))}if(u.mainHeader)u.COD=U;else{u.currentTile.COD=U;u.currentTile.COC=[]}break;case 65424:y=(0,c.readUint16)(t,m);(w={}).index=(0,c.readUint16)(t,m+2);w.length=(0,c.readUint32)(t,m+4);w.dataEnd=w.length+m-2;w.partIndex=t[m+8];w.partsCount=t[m+9];u.mainHeader=!1;if(0===w.partIndex){w.COD=u.COD;w.COC=u.COC.slice(0);w.QCD=u.QCD;w.QCC=u.QCC.slice(0)}u.currentTile=w;break;case 65427:if(0===(w=u.currentTile).partIndex){initializeTile(u,w.index);buildPackets(u)}parseTilePackets(u,t,m,y=w.dataEnd-m);break;case 65363:(0,l.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:y=(0,c.readUint16)(t,m);break;default:throw new Error("Unknown codestream code: "+g.toString(16))}m+=y}}catch(t){if(d||this.failOnCorruptedImage)throw new h(t.message);(0,l.warn)('JPX: Trying to recover from: "'.concat(t.message,'".'))}this.tiles=function transformComponents(t){for(var r=t.SIZ,o=t.components,l=r.Csiz,c=[],u=0,h=t.tiles.length;u<h;u++){for(var d=t.tiles[u],m=[],g=0;g<l;g++)m[g]=transformTile(t,d,g);var y=m[0],v=new Uint8ClampedArray(y.items.length*l),S={left:y.left,top:y.top,width:y.width,height:y.height,items:v},k=void 0,_=void 0,C=0,w=void 0,x=void 0,O=void 0,T=void 0,R=void 0;if(d.codingStyleDefaultParameters.multipleComponentTransform){var E=4===l,M=m[0].items,D=m[1].items,j=m[2].items,L=E?m[3].items:null;_=.5+(128<<(k=o[0].precision-8));var N=d.components[0],U=l-3;x=M.length;if(N.codingStyleParameters.reversibleTransformation)for(w=0;w<x;w++,C+=U){O=M[w]+_;T=D[w];var H=O-((R=j[w])+T>>2);v[C++]=H+R>>k;v[C++]=H>>k;v[C++]=H+T>>k}else for(w=0;w<x;w++,C+=U){O=M[w]+_;T=D[w];R=j[w];v[C++]=O+1.402*R>>k;v[C++]=O-.34413*T-.71414*R>>k;v[C++]=O+1.772*T>>k}if(E)for(w=0,C=3;w<x;w++,C+=4)v[C]=L[w]+_>>k}else for(var W=0;W<l;W++){var q=m[W].items;_=.5+(128<<(k=o[W].precision-8));for(C=W,w=0,x=q.length;w<x;w++){v[C]=q[w]+_>>k;C+=l}}c.push(S)}return c}(u);this.width=u.SIZ.Xsiz-u.SIZ.XOsiz;this.height=u.SIZ.Ysiz-u.SIZ.YOsiz;this.componentsCount=u.SIZ.Csiz}}]);return JpxImage}();r.JpxImage=m;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 o,l=t.SIZ,c=[],u=Math.ceil((l.Xsiz-l.XTOsiz)/l.XTsiz),h=Math.ceil((l.Ysiz-l.YTOsiz)/l.YTsiz),d=0;d<h;d++)for(var m=0;m<u;m++){(o={}).tx0=Math.max(l.XTOsiz+m*l.XTsiz,l.XOsiz);o.ty0=Math.max(l.YTOsiz+d*l.YTsiz,l.YOsiz);o.tx1=Math.min(l.XTOsiz+(m+1)*l.XTsiz,l.Xsiz);o.ty1=Math.min(l.YTOsiz+(d+1)*l.YTsiz,l.Ysiz);o.width=o.tx1-o.tx0;o.height=o.ty1-o.ty0;o.components=[];c.push(o)}t.tiles=c;for(var g=0,y=l.Csiz;g<y;g++)for(var v=r[g],S=0,k=c.length;S<k;S++){var _={};o=c[S];_.tcx0=Math.ceil(o.tx0/v.XRsiz);_.tcy0=Math.ceil(o.ty0/v.YRsiz);_.tcx1=Math.ceil(o.tx1/v.XRsiz);_.tcy1=Math.ceil(o.ty1/v.YRsiz);_.width=_.tcx1-_.tcx0;_.height=_.tcy1-_.tcy0;o.components[g]=_}}function getBlocksDimensions(t,r,o){var l=r.codingStyleParameters,c={};if(l.entropyCoderWithCustomPrecincts){c.PPx=l.precinctsSizes[o].PPx;c.PPy=l.precinctsSizes[o].PPy}else{c.PPx=15;c.PPy=15}c.xcb_=o>0?Math.min(l.xcb,c.PPx-1):Math.min(l.xcb,c.PPx);c.ycb_=o>0?Math.min(l.ycb,c.PPy-1):Math.min(l.ycb,c.PPy);return c}function buildPrecincts(t,r,o){var l=1<<o.PPx,c=1<<o.PPy,u=0===r.resLevel,h=1<<o.PPx+(u?0:-1),d=1<<o.PPy+(u?0:-1),m=r.trx1>r.trx0?Math.ceil(r.trx1/l)-Math.floor(r.trx0/l):0,g=r.try1>r.try0?Math.ceil(r.try1/c)-Math.floor(r.try0/c):0,y=m*g;r.precinctParameters={precinctWidth:l,precinctHeight:c,numprecinctswide:m,numprecinctshigh:g,numprecincts:y,precinctWidthInSubband:h,precinctHeightInSubband:d}}function buildCodeblocks(t,r,o){var l,c,u,h,d=o.xcb_,m=o.ycb_,g=1<<d,y=1<<m,v=r.tbx0>>d,S=r.tby0>>m,k=r.tbx1+g-1>>d,_=r.tby1+y-1>>m,C=r.resolution.precinctParameters,w=[],x=[];for(c=S;c<_;c++)for(l=v;l<k;l++){(u={cbx:l,cby:c,tbx0:g*l,tby0:y*c,tbx1:g*(l+1),tby1:y*(c+1)}).tbx0_=Math.max(r.tbx0,u.tbx0);u.tby0_=Math.max(r.tby0,u.tby0);u.tbx1_=Math.min(r.tbx1,u.tbx1);u.tby1_=Math.min(r.tby1,u.tby1);h=Math.floor((u.tbx0_-r.tbx0)/C.precinctWidthInSubband)+Math.floor((u.tby0_-r.tby0)/C.precinctHeightInSubband)*C.numprecinctswide;u.precinctNumber=h;u.subbandType=r.type;u.Lblock=3;if(!(u.tbx1_<=u.tbx0_||u.tby1_<=u.tby0_)){w.push(u);var O=x[h];if(void 0!==O){l<O.cbxMin?O.cbxMin=l:l>O.cbxMax&&(O.cbxMax=l);c<O.cbyMin?O.cbxMin=c:c>O.cbyMax&&(O.cbyMax=c)}else x[h]=O={cbxMin:l,cbyMin:c,cbxMax:l,cbyMax:c};u.precinct=O}}r.codeblockParameters={codeblockWidth:d,codeblockHeight:m,numcodeblockwide:k-v+1,numcodeblockhigh:_-S+1};r.codeblocks=w;r.precincts=x}function createPacket(t,r,o){for(var l=[],c=t.subbands,u=0,h=c.length;u<h;u++)for(var d=c[u].codeblocks,m=0,g=d.length;m<g;m++){var y=d[m];y.precinctNumber===r&&l.push(y)}return{layerNumber:o,codeblocks:l}}function LayerResolutionComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=0,m=0;m<u;m++)d=Math.max(d,l.components[m].codingStyleParameters.decompositionLevelsCount);var g=0,y=0,v=0,S=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<c;g++){for(;y<=d;y++){for(;v<u;v++){var t=l.components[v];if(!(y>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[y],o=r.precinctParameters.numprecincts;S<o;){var m=createPacket(r,S,g);S++;return m}S=0}}v=0}y=0}throw new h("Out of packets")}}function ResolutionLayerComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=0,m=0;m<u;m++)d=Math.max(d,l.components[m].codingStyleParameters.decompositionLevelsCount);var g=0,y=0,v=0,S=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<=d;g++){for(;y<c;y++){for(;v<u;v++){var t=l.components[v];if(!(g>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[g],o=r.precinctParameters.numprecincts;S<o;){var m=createPacket(r,S,y);S++;return m}S=0}}v=0}y=0}throw new h("Out of packets")}}function ResolutionPositionComponentLayerIterator(t){var r,o,l,c,u=t.SIZ,d=t.currentTile.index,m=t.tiles[d],g=m.codingStyleDefaultParameters.layersCount,y=u.Csiz,v=0;for(l=0;l<y;l++){var S=m.components[l];v=Math.max(v,S.codingStyleParameters.decompositionLevelsCount)}var k=new Int32Array(v+1);for(o=0;o<=v;++o){var _=0;for(l=0;l<y;++l){var C=m.components[l].resolutions;o<C.length&&(_=Math.max(_,C[o].precinctParameters.numprecincts))}k[o]=_}r=0;o=0;l=0;c=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=v;o++){for(;c<k[o];c++){for(;l<y;l++){var t=m.components[l];if(!(o>t.codingStyleParameters.decompositionLevelsCount)){var u=t.resolutions[o],d=u.precinctParameters.numprecincts;if(!(c>=d)){for(;r<g;){var S=createPacket(u,c,r);r++;return S}r=0}}}l=0}c=0}throw new h("Out of packets")}}function PositionComponentResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=getPrecinctSizesInImageScale(l),m=d,g=0,y=0,v=0,S=0,k=0;this.nextPacket=function JpxImage_nextPacket(){for(;k<m.maxNumHigh;k++){for(;S<m.maxNumWide;S++){for(;v<u;v++){for(var t=l.components[v],r=t.codingStyleParameters.decompositionLevelsCount;y<=r;y++){var o=t.resolutions[y],_=d.components[v].resolutions[y],C=getPrecinctIndexIfExist(S,k,_,m,o);if(null!==C){for(;g<c;){var w=createPacket(o,C,g);g++;return w}g=0}}y=0}v=0}S=0}throw new h("Out of packets")}}function ComponentPositionResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=getPrecinctSizesInImageScale(l),m=0,g=0,y=0,v=0,S=0;this.nextPacket=function JpxImage_nextPacket(){for(;y<u;++y){for(var t=l.components[y],r=d.components[y],o=t.codingStyleParameters.decompositionLevelsCount;S<r.maxNumHigh;S++){for(;v<r.maxNumWide;v++){for(;g<=o;g++){var k=t.resolutions[g],_=r.resolutions[g],C=getPrecinctIndexIfExist(v,S,_,r,k);if(null!==C){for(;m<c;){var w=createPacket(k,C,m);m++;return w}m=0}}g=0}v=0}S=0}throw new h("Out of packets")}}function getPrecinctIndexIfExist(t,r,o,l,c){var u=t*l.minWidth,h=r*l.minHeight;if(u%o.width!=0||h%o.height!=0)return null;var d=h/o.width*c.precinctParameters.numprecinctswide;return u/o.height+d}function getPrecinctSizesInImageScale(t){for(var r=t.components.length,o=Number.MAX_VALUE,l=Number.MAX_VALUE,c=0,u=0,h=new Array(r),d=0;d<r;d++){for(var m=t.components[d],g=m.codingStyleParameters.decompositionLevelsCount,y=new Array(g+1),v=Number.MAX_VALUE,S=Number.MAX_VALUE,k=0,_=0,C=1,w=g;w>=0;--w){var x=m.resolutions[w],O=C*x.precinctParameters.precinctWidth,T=C*x.precinctParameters.precinctHeight;v=Math.min(v,O);S=Math.min(S,T);k=Math.max(k,x.precinctParameters.numprecinctswide);_=Math.max(_,x.precinctParameters.numprecinctshigh);y[w]={width:O,height:T};C<<=1}o=Math.min(o,v);l=Math.min(l,S);c=Math.max(c,k);u=Math.max(u,_);h[d]={resolutions:y,minWidth:v,minHeight:S,maxNumWide:k,maxNumHigh:_}}return{components:h,minWidth:o,minHeight:l,maxNumWide:c,maxNumHigh:u}}function buildPackets(t){for(var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=r.Csiz,u=0;u<c;u++){for(var d=l.components[u],m=d.codingStyleParameters.decompositionLevelsCount,g=[],y=[],v=0;v<=m;v++){var S=getBlocksDimensions(0,d,v),k={},_=1<<m-v;k.trx0=Math.ceil(d.tcx0/_);k.try0=Math.ceil(d.tcy0/_);k.trx1=Math.ceil(d.tcx1/_);k.try1=Math.ceil(d.tcy1/_);k.resLevel=v;buildPrecincts(0,k,S);g.push(k);var C=void 0;if(0===v){(C={}).type="LL";C.tbx0=Math.ceil(d.tcx0/_);C.tby0=Math.ceil(d.tcy0/_);C.tbx1=Math.ceil(d.tcx1/_);C.tby1=Math.ceil(d.tcy1/_);C.resolution=k;buildCodeblocks(0,C,S);y.push(C);k.subbands=[C]}else{var w=1<<m-v+1,x=[];(C={}).type="HL";C.tbx0=Math.ceil(d.tcx0/w-.5);C.tby0=Math.ceil(d.tcy0/w);C.tbx1=Math.ceil(d.tcx1/w-.5);C.tby1=Math.ceil(d.tcy1/w);C.resolution=k;buildCodeblocks(0,C,S);y.push(C);x.push(C);(C={}).type="LH";C.tbx0=Math.ceil(d.tcx0/w);C.tby0=Math.ceil(d.tcy0/w-.5);C.tbx1=Math.ceil(d.tcx1/w);C.tby1=Math.ceil(d.tcy1/w-.5);C.resolution=k;buildCodeblocks(0,C,S);y.push(C);x.push(C);(C={}).type="HH";C.tbx0=Math.ceil(d.tcx0/w-.5);C.tby0=Math.ceil(d.tcy0/w-.5);C.tbx1=Math.ceil(d.tcx1/w-.5);C.tby1=Math.ceil(d.tcy1/w-.5);C.resolution=k;buildCodeblocks(0,C,S);y.push(C);x.push(C);k.subbands=x}}d.resolutions=g;d.subbands=y}var O=l.codingStyleDefaultParameters.progressionOrder;switch(O){case 0:l.packetsIterator=new LayerResolutionComponentPositionIterator(t);break;case 1:l.packetsIterator=new ResolutionLayerComponentPositionIterator(t);break;case 2:l.packetsIterator=new ResolutionPositionComponentLayerIterator(t);break;case 3:l.packetsIterator=new PositionComponentResolutionLayerIterator(t);break;case 4:l.packetsIterator=new ComponentPositionResolutionLayerIterator(t);break;default:throw new h("Unsupported progression order ".concat(O))}}function parseTilePackets(t,r,o,l){var u,h=0,d=0,m=!1;function readBits(t){for(;d<t;){var l=r[o+h];h++;if(m){u=u<<7|l;d+=7;m=!1}else{u=u<<8|l;d+=8}255===l&&(m=!0)}return u>>>(d-=t)&(1<<t)-1}function skipMarkerIfEqual(t){if(255===r[o+h-1]&&r[o+h]===t){skipBytes(1);return!0}if(255===r[o+h]&&r[o+h+1]===t){skipBytes(2);return!0}return!1}function skipBytes(t){h+=t}function alignToByte(){d=0;if(m){h++;m=!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 v=t.currentTile.index,S=t.tiles[v],k=t.COD.sopMarkerUsed,_=t.COD.ephMarkerUsed,C=S.packetsIterator;h<l;){alignToByte();k&&skipMarkerIfEqual(145)&&skipBytes(4);var w=C.nextPacket();if(readBits(1)){for(var x=w.layerNumber,O=[],T=void 0,R=0,E=w.codeblocks.length;R<E;R++){var M=(T=w.codeblocks[R]).precinct,D=T.cbx-M.cbxMin,j=T.cby-M.cbyMin,L=!1,N=!1,U=void 0;if(void 0!==T.included)L=!!readBits(1);else{var H=void 0;if(void 0!==(M=T.precinct).inclusionTree)H=M.inclusionTree;else{var W=M.cbxMax-M.cbxMin+1,q=M.cbyMax-M.cbyMin+1;H=new y(W,q,x);U=new g(W,q);M.inclusionTree=H;M.zeroBitPlanesTree=U}if(H.reset(D,j,x))for(;;){if(!readBits(1)){H.incrementValue(x);break}if(!H.nextLevel()){T.included=!0;L=N=!0;break}}}if(L){if(N){(U=M.zeroBitPlanesTree).reset(D,j);for(;;)if(readBits(1)){if(!U.nextLevel())break}else U.incrementValue();T.zeroBitPlanes=U.value}for(var $=readCodingpasses();readBits(1);)T.Lblock++;var X=(0,c.log2)($),z=readBits(($<1<<X?X-1:X)+T.Lblock);O.push({codeblock:T,codingpasses:$,dataLength:z})}}alignToByte();_&&skipMarkerIfEqual(146);for(;O.length>0;){var G=O.shift();void 0===(T=G.codeblock).data&&(T.data=[]);T.data.push({data:r,start:o+h,end:o+h+G.dataLength,codingpasses:G.codingpasses});h+=G.dataLength}}}return h}function copyCoefficients(t,r,o,l,c,h,d,m){for(var g=l.tbx0,y=l.tby0,S=l.tbx1-l.tbx0,k=l.codeblocks,_="H"===l.type.charAt(0)?1:0,C="H"===l.type.charAt(1)?r:0,w=0,x=k.length;w<x;++w){var O=k[w],T=O.tbx1_-O.tbx0_,R=O.tby1_-O.tby0_;if(0!==T&&0!==R&&void 0!==O.data){var E=new v(T,R,O.subbandType,O.zeroBitPlanes,h),M=2,D=O.data,j=0,L=0,N=void 0,U=void 0,H=void 0;for(N=0,U=D.length;N<U;N++){j+=(H=D[N]).end-H.start;L+=H.codingpasses}var W=new Uint8Array(j),q=0;for(N=0,U=D.length;N<U;N++){var $=(H=D[N]).data.subarray(H.start,H.end);W.set($,q);q+=$.length}var X=new u.ArithmeticDecoder(W,0,j);E.setDecoder(X);for(N=0;N<L;N++){switch(M){case 0:E.runSignificancePropagationPass();break;case 1:E.runMagnitudeRefinementPass();break;case 2:E.runCleanupPass();m&&E.checkSegmentationSymbol()}M=(M+1)%3}var z=O.tbx0_-g+(O.tby0_-y)*S,G=E.coefficentsSign,V=E.coefficentsMagnitude,Y=E.bitsDecoded,K=d?0:.5,J=void 0,Q=void 0,Z=void 0;q=0;var ee="LL"!==l.type;for(N=0;N<R;N++){var te=2*(z/S|0)*(r-S)+_+C;for(J=0;J<T;J++){if(0!==(Q=V[q])){Q=(Q+K)*c;0!==G[q]&&(Q=-Q);Z=Y[q];var re=ee?te+(z<<1):z;t[re]=d&&Z>=h?Q:Q*(1<<h-Z)}z++;q++}z+=S-T}}}}function transformTile(t,r,o){for(var l=r.components[o],c=l.codingStyleParameters,u=l.quantizationParameters,h=c.decompositionLevelsCount,m=u.SPqcds,g=u.scalarExpounded,y=u.guardBits,v=c.segmentationSymbolUsed,S=t.components[o].precision,C=c.reversibleTransformation,w=C?new _:new k,x=[],O=0,T=0;T<=h;T++){for(var R=l.resolutions[T],E=R.trx1-R.trx0,M=R.try1-R.try0,D=new Float32Array(E*M),j=0,L=R.subbands.length;j<L;j++){var N=void 0,U=void 0;if(g){N=m[O].mu;U=m[O].epsilon;O++}else{N=m[0].mu;U=m[0].epsilon+(T>0?1-T:0)}var H=R.subbands[j],W=d[H.type];copyCoefficients(D,E,0,H,C?1:Math.pow(2,S+W-U)*(1+N/2048),y+U-1,C,v)}x.push({width:E,height:M,items:D})}var q=w.calculate(x,l.tcx0,l.tcy0);return{left:l.tcx0,top:l.tcy0,width:q.width,height:q.height,items:q.items}}function initializeTile(t,r){for(var o=t.SIZ.Csiz,l=t.tiles[r],c=0;c<o;c++){var u=l.components[c],h=void 0!==t.currentTile.QCC[c]?t.currentTile.QCC[c]:t.currentTile.QCD;u.quantizationParameters=h;var d=void 0!==t.currentTile.COC[c]?t.currentTile.COC[c]:t.currentTile.COD;u.codingStyleParameters=d}l.codingStyleDefaultParameters=t.currentTile.COD}var g=function(){function TagTree(t,r){_classCallCheck(this,TagTree);var o=(0,c.log2)(Math.max(t,r))+1;this.levels=[];for(var l=0;l<o;l++){var u={width:t,height:r,items:[]};this.levels.push(u);t=Math.ceil(t/2);r=Math.ceil(r/2)}}_createClass(TagTree,[{key:"reset",value:function reset(t,r){for(var o,l=0,c=0;l<this.levels.length;){var u=t+r*(o=this.levels[l]).width;if(void 0!==o.items[u]){c=o.items[u];break}o.index=u;t>>=1;r>>=1;l++}l--;(o=this.levels[l]).items[o.index]=c;this.currentLevel=l;delete this.value}},{key:"incrementValue",value:function incrementValue(){var t=this.levels[this.currentLevel];t.items[t.index]++}},{key:"nextLevel",value:function nextLevel(){var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];if(--t<0){this.value=o;return!1}this.currentLevel=t;(r=this.levels[t]).items[r.index]=o;return!0}}]);return TagTree}(),y=function(){function InclusionTree(t,r,o){_classCallCheck(this,InclusionTree);var l=(0,c.log2)(Math.max(t,r))+1;this.levels=[];for(var u=0;u<l;u++){for(var h=new Uint8Array(t*r),d=0,m=h.length;d<m;d++)h[d]=o;var g={width:t,height:r,items:h};this.levels.push(g);t=Math.ceil(t/2);r=Math.ceil(r/2)}}_createClass(InclusionTree,[{key:"reset",value:function reset(t,r,o){for(var l=0;l<this.levels.length;){var c=this.levels[l],u=t+r*c.width;c.index=u;var h=c.items[u];if(255===h)break;if(h>o){this.currentLevel=l;this.propagateValues();return!1}t>>=1;r>>=1;l++}this.currentLevel=l-1;return!0}},{key:"incrementValue",value:function incrementValue(t){var r=this.levels[this.currentLevel];r.items[r.index]=t+1;this.propagateValues()}},{key:"propagateValues",value:function propagateValues(){for(var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];--t>=0;)(r=this.levels[t]).items[r.index]=o}},{key:"nextLevel",value:function nextLevel(){var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];r.items[r.index]=255;if(--t<0)return!1;this.currentLevel=t;(r=this.levels[t]).items[r.index]=o;return!0}}]);return InclusionTree}(),v=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]),o=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]),l=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]);return function(){function BitModel(t,c,u,h,d){_classCallCheck(this,BitModel);this.width=t;this.height=c;var m;m="HH"===u?l:"HL"===u?o:r;this.contextLabelTable=m;var g,y=t*c;this.neighborsSignificance=new Uint8Array(y);this.coefficentsSign=new Uint8Array(y);g=d>14?new Uint32Array(y):d>6?new Uint16Array(y):new Uint8Array(y);this.coefficentsMagnitude=g;this.processingFlags=new Uint8Array(y);var v=new Uint8Array(y);if(0!==h)for(var S=0;S<y;S++)v[S]=h;this.bitsDecoded=v;this.reset()}_createClass(BitModel,[{key:"setDecoder",value:function setDecoder(t){this.decoder=t}},{key:"reset",value:function reset(){this.contexts=new Int8Array(19);this.contexts[0]=8;this.contexts[17]=92;this.contexts[18]=6}},{key:"setNeighborsSignificance",value:function setNeighborsSignificance(t,r,o){var l,c=this.neighborsSignificance,u=this.width,h=this.height,d=r>0,m=r+1<u;if(t>0){l=o-u;d&&(c[l-1]+=16);m&&(c[l+1]+=16);c[l]+=4}if(t+1<h){l=o+u;d&&(c[l-1]+=16);m&&(c[l+1]+=16);c[l]+=4}d&&(c[o-1]+=1);m&&(c[o+1]+=1);c[o]|=128}},{key:"runSignificancePropagationPass",value:function runSignificancePropagationPass(){for(var t=this.decoder,r=this.width,o=this.height,l=this.coefficentsMagnitude,c=this.coefficentsSign,u=this.neighborsSignificance,h=this.processingFlags,d=this.contexts,m=this.contextLabelTable,g=this.bitsDecoded,y=0;y<o;y+=4)for(var v=0;v<r;v++)for(var S=y*r+v,k=0;k<4;k++,S+=r){var _=y+k;if(_>=o)break;h[S]&=-2;if(!l[S]&&u[S]){var C=m[u[S]];if(t.readBit(d,C)){var w=this.decodeSignBit(_,v,S);c[S]=w;l[S]=1;this.setNeighborsSignificance(_,v,S);h[S]|=2}g[S]++;h[S]|=1}}}},{key:"decodeSignBit",value:function decodeSignBit(t,r,o){var l,c,u,h,d,m,g=this.width,y=this.height,v=this.coefficentsMagnitude,S=this.coefficentsSign;h=r>0&&0!==v[o-1];if(r+1<g&&0!==v[o+1]){u=S[o+1];l=h?1-u-(c=S[o-1]):1-u-u}else l=h?1-(c=S[o-1])-c:0;var k=3*l;h=t>0&&0!==v[o-g];if(t+1<y&&0!==v[o+g]){u=S[o+g];l=h?1-u-(c=S[o-g])+k:1-u-u+k}else l=h?1-(c=S[o-g])-c+k:k;if(l>=0){d=9+l;m=this.decoder.readBit(this.contexts,d)}else{d=9-l;m=1^this.decoder.readBit(this.contexts,d)}return m}},{key:"runMagnitudeRefinementPass",value:function runMagnitudeRefinementPass(){for(var t,r=this.decoder,o=this.width,l=this.height,c=this.coefficentsMagnitude,u=this.neighborsSignificance,h=this.contexts,d=this.bitsDecoded,m=this.processingFlags,g=o*l,y=4*o,v=0;v<g;v=t){t=Math.min(g,v+y);for(var S=0;S<o;S++)for(var k=v+S;k<t;k+=o)if(c[k]&&0==(1&m[k])){var _=16;if(0!=(2&m[k])){m[k]^=2;_=0===(127&u[k])?15:14}var C=r.readBit(h,_);c[k]=c[k]<<1|C;d[k]++;m[k]|=1}}}},{key:"runCleanupPass",value:function runCleanupPass(){for(var r,o=this.decoder,l=this.width,c=this.height,u=this.neighborsSignificance,h=this.coefficentsMagnitude,d=this.coefficentsSign,m=this.contexts,g=this.contextLabelTable,y=this.bitsDecoded,v=this.processingFlags,S=l,k=2*l,_=3*l,C=0;C<c;C=r){r=Math.min(C+4,c);for(var w=C*l,x=C+3<c,O=0;O<l;O++){var T=w+O,R=0,E=T,M=C,D=void 0;if(x&&0===v[T]&&0===v[T+S]&&0===v[T+k]&&0===v[T+_]&&0===u[T]&&0===u[T+S]&&0===u[T+k]&&0===u[T+_]){if(!o.readBit(m,18)){y[T]++;y[T+S]++;y[T+k]++;y[T+_]++;continue}if(0!==(R=o.readBit(m,t)<<1|o.readBit(m,t))){M=C+R;E+=R*l}D=this.decodeSignBit(M,O,E);d[E]=D;h[E]=1;this.setNeighborsSignificance(M,O,E);v[E]|=2;E=T;for(var j=C;j<=M;j++,E+=l)y[E]++;R++}for(M=C+R;M<r;M++,E+=l)if(!h[E]&&0==(1&v[E])){var L=g[u[E]];if(1===o.readBit(m,L)){D=this.decodeSignBit(M,O,E);d[E]=D;h[E]=1;this.setNeighborsSignificance(M,O,E);v[E]|=2}y[E]++}}}}},{key:"checkSegmentationSymbol",value:function checkSegmentationSymbol(){var r=this.decoder,o=this.contexts;if(10!==(r.readBit(o,t)<<3|r.readBit(o,t)<<2|r.readBit(o,t)<<1|r.readBit(o,t)))throw new h("Invalid segmentation symbol")}}]);return BitModel}()}(),S=function(){function Transform(){_classCallCheck(this,Transform);this.constructor===Transform&&(0,l.unreachable)("Cannot initialize Transform.")}_createClass(Transform,[{key:"calculate",value:function calculate(t,r,o){for(var l=t[0],c=1,u=t.length;c<u;c++)l=this.iterate(l,t[c],r,o);return l}},{key:"extend",value:function extend(t,r,o){var l=r-1,c=r+1,u=r+o-2,h=r+o;t[l--]=t[c++];t[h++]=t[u--];t[l--]=t[c++];t[h++]=t[u--];t[l--]=t[c++];t[h++]=t[u--];t[l]=t[c];t[h]=t[u]}},{key:"filter",value:function filter(t,r,o){(0,l.unreachable)("Abstract method `filter` called")}},{key:"iterate",value:function iterate(t,r,o,l){var c,u,h,d,m,g,y=t.width,v=t.height,S=t.items,k=r.width,_=r.height,C=r.items;for(h=0,c=0;c<v;c++){d=2*c*k;for(u=0;u<y;u++,h++,d+=2)C[d]=S[h]}S=t.items=null;var w=new Float32Array(k+8);if(1===k){if(0!=(1&o))for(g=0,h=0;g<_;g++,h+=k)C[h]*=.5}else for(g=0,h=0;g<_;g++,h+=k){w.set(C.subarray(h,h+k),4);this.extend(w,4,k);this.filter(w,4,k);C.set(w.subarray(4,4+k),h)}var x=16,O=[];for(c=0;c<x;c++)O.push(new Float32Array(_+8));var T,R=0;t=4+_;if(1===_){if(0!=(1&l))for(m=0;m<k;m++)C[m]*=.5}else for(m=0;m<k;m++){if(0===R){x=Math.min(k-m,x);for(h=m,d=4;d<t;h+=k,d++)for(T=0;T<x;T++)O[T][d]=C[h+T];R=x}var E=O[--R];this.extend(E,4,_);this.filter(E,4,_);if(0===R){h=m-x+1;for(d=4;d<t;h+=k,d++)for(T=0;T<x;T++)C[h+T]=O[T][d]}}return{width:k,height:_,items:C}}}]);return Transform}(),k=function(t){_inherits(IrreversibleTransform,t);var r=_createSuper(IrreversibleTransform);function IrreversibleTransform(){_classCallCheck(this,IrreversibleTransform);return r.apply(this,arguments)}_createClass(IrreversibleTransform,[{key:"filter",value:function filter(t,r,o){var l,c,u,h,d=o>>1,m=-1.586134342059924,g=-.052980118572961,y=.882911075530934,v=.443506852043971,S=1.230174104914001;l=(r|=0)-3;for(c=d+4;c--;l+=2)t[l]*=.8128930661159609;u=v*t[(l=r-2)-1];for(c=d+3;c--;l+=2){h=v*t[l+1];t[l]=S*t[l]-u-h;if(!c--)break;u=v*t[(l+=2)+1];t[l]=S*t[l]-u-h}u=y*t[(l=r-1)-1];for(c=d+2;c--;l+=2){h=y*t[l+1];t[l]-=u+h;if(!c--)break;u=y*t[(l+=2)+1];t[l]-=u+h}u=g*t[(l=r)-1];for(c=d+1;c--;l+=2){h=g*t[l+1];t[l]-=u+h;if(!c--)break;u=g*t[(l+=2)+1];t[l]-=u+h}if(0!==d){u=m*t[(l=r+1)-1];for(c=d;c--;l+=2){h=m*t[l+1];t[l]-=u+h;if(!c--)break;u=m*t[(l+=2)+1];t[l]-=u+h}}}}]);return IrreversibleTransform}(S),_=function(t){_inherits(ReversibleTransform,t);var r=_createSuper(ReversibleTransform);function ReversibleTransform(){_classCallCheck(this,ReversibleTransform);return r.apply(this,arguments)}_createClass(ReversibleTransform,[{key:"filter",value:function filter(t,r,o){var l,c,u=o>>1;for(l=r|=0,c=u+1;c--;l+=2)t[l]-=t[l-1]+t[l+1]+2>>2;for(l=r+1,c=u;c--;l+=2)t[l]+=t[l-1]+t[l+1]>>1}}]);return ReversibleTransform}(S)},(t,r,o)=>{"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.LZWStream=void 0;function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){!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)}(LZWStream,t);var r=_createSuper(LZWStream);function LZWStream(t,o,l){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,LZWStream);(c=r.call(this,o)).str=t;c.dict=t.dict;c.cachedData=0;c.bitsCached=0;for(var u=4096,h={earlyChange:l,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(u),dictionaryLengths:new Uint16Array(u),dictionaryPrevCodes:new Uint16Array(u),currentSequence:new Uint8Array(u),currentSequenceLength:0},d=0;d<256;++d){h.dictionaryValues[d]=d;h.dictionaryLengths[d]=1}c.lzwState=h;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(LZWStream,[{key:"readBits",value:function readBits(t){for(var r=this.bitsCached,o=this.cachedData;r<t;){var l=this.str.getByte();if(-1===l){this.eof=!0;return null}o=o<<8|l;r+=8}this.bitsCached=r-=t;this.cachedData=o;this.lastCode=null;return o>>>r&(1<<t)-1}},{key:"readBlock",value:function readBlock(){var t,r,o,l=1024,c=this.lzwState;if(c){var u=c.earlyChange,h=c.nextCode,d=c.dictionaryValues,m=c.dictionaryLengths,g=c.dictionaryPrevCodes,y=c.codeLength,v=c.prevCode,S=c.currentSequence,k=c.currentSequenceLength,_=0,C=this.bufferLength,w=this.ensureBuffer(this.bufferLength+l);for(t=0;t<512;t++){var x=this.readBits(y),O=k>0;if(x<256){S[0]=x;k=1}else{if(!(x>=258)){if(256===x){y=9;h=258;k=0;continue}this.eof=!0;delete this.lzwState;break}if(x<h)for(r=(k=m[x])-1,o=x;r>=0;r--){S[r]=d[o];o=g[o]}else S[k++]=S[0]}if(O){g[h]=v;m[h]=m[v]+1;d[h]=S[0];y=++h+u&h+u-1?y:0|Math.min(Math.log(h+u)/.6931471805599453+1,12)}v=x;if(l<(_+=k)){do{l+=512}while(l<_);w=this.ensureBuffer(this.bufferLength+l)}for(r=0;r<k;r++)w[C++]=S[r]}c.nextCode=h;c.codeLength=y;c.prevCode=v;c.currentSequenceLength=k;this.bufferLength=C}}}]);return LZWStream}(o(128).DecodeStream);r.LZWStream=l},(t,r,o)=>{"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.PredictorStream=void 0;var l=o(128),c=o(4),u=o(114);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}var h=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)}(PredictorStream,t);var r=_createSuper(PredictorStream);function PredictorStream(t,o,l){var h;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PredictorStream);h=r.call(this,o);if(!(0,u.isDict)(l))return _possibleConstructorReturn(h,t);var d=h.predictor=l.get("Predictor")||1;if(d<=1)return _possibleConstructorReturn(h,t);if(2!==d&&(d<10||d>15))throw new c.FormatError("Unsupported predictor: ".concat(d));h.readBlock=2===d?h.readBlockTiff:h.readBlockPng;h.str=t;h.dict=t.dict;var m=h.colors=l.get("Colors")||1,g=h.bits=l.get("BitsPerComponent")||8,y=h.columns=l.get("Columns")||1;h.pixBytes=m*g+7>>3;h.rowBytes=y*m*g+7>>3;return _possibleConstructorReturn(h,_assertThisInitialized(h))}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(PredictorStream,[{key:"readBlockTiff",value:function readBlockTiff(){var t=this.rowBytes,r=this.bufferLength,o=this.ensureBuffer(r+t),l=this.bits,c=this.colors,u=this.str.getBytes(t);this.eof=!u.length;if(!this.eof){var h,d=0,m=0,g=0,y=0,v=r;if(1===l&&1===c)for(h=0;h<t;++h){var S=u[h]^d;S^=S>>1;S^=S>>2;d=(1&(S^=S>>4))<<7;o[v++]=S}else if(8===l){for(h=0;h<c;++h)o[v++]=u[h];for(;h<t;++h){o[v]=o[v-c]+u[h];v++}}else if(16===l){var k=2*c;for(h=0;h<k;++h)o[v++]=u[h];for(;h<t;h+=2){var _=((255&u[h])<<8)+(255&u[h+1])+((255&o[v-k])<<8)+(255&o[v-k+1]);o[v++]=_>>8&255;o[v++]=255&_}}else{var C=new Uint8Array(c+1),w=(1<<l)-1,x=0,O=r,T=this.columns;for(h=0;h<T;++h)for(var R=0;R<c;++R){if(g<l){d=d<<8|255&u[x++];g+=8}C[R]=C[R]+(d>>g-l)&w;g-=l;m=m<<l|C[R];if((y+=l)>=8){o[O++]=m>>y-8&255;y-=8}}y>0&&(o[O++]=(m<<8-y)+(d&(1<<8-y)-1))}this.bufferLength+=t}}},{key:"readBlockPng",value:function readBlockPng(){var t=this.rowBytes,r=this.pixBytes,o=this.str.getByte(),l=this.str.getBytes(t);this.eof=!l.length;if(!this.eof){var u=this.bufferLength,h=this.ensureBuffer(u+t),d=h.subarray(u-t,u);0===d.length&&(d=new Uint8Array(t));var m,g,y,v=u;switch(o){case 0:for(m=0;m<t;++m)h[v++]=l[m];break;case 1:for(m=0;m<r;++m)h[v++]=l[m];for(;m<t;++m){h[v]=h[v-r]+l[m]&255;v++}break;case 2:for(m=0;m<t;++m)h[v++]=d[m]+l[m]&255;break;case 3:for(m=0;m<r;++m)h[v++]=(d[m]>>1)+l[m];for(;m<t;++m){h[v]=(d[m]+h[v-r]>>1)+l[m]&255;v++}break;case 4:for(m=0;m<r;++m){g=d[m];y=l[m];h[v++]=g+y}for(;m<t;++m){g=d[m];var S=d[m-r],k=h[v-r],_=k+g-S,C=_-k;C<0&&(C=-C);var w=_-g;w<0&&(w=-w);var x=_-S;x<0&&(x=-x);y=l[m];h[v++]=C<=w&&C<=x?k+y:w<=x?g+y:S+y}break;default:throw new c.FormatError("Unsupported predictor: ".concat(o))}this.bufferLength+=t}}}]);return PredictorStream}(l.DecodeStream);r.PredictorStream=h},(t,r,o)=>{"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.RunLengthStream=void 0;function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){!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)}(RunLengthStream,t);var r=_createSuper(RunLengthStream);function RunLengthStream(t,o){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,RunLengthStream);(l=r.call(this,o)).str=t;l.dict=t.dict;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(RunLengthStream,[{key:"readBlock",value:function readBlock(){var t=this.str.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var r,o=this.bufferLength,l=t[0];if(l<128){(r=this.ensureBuffer(o+l+1))[o++]=t[1];if(l>0){var c=this.str.getBytes(l);r.set(c,o);o+=l}}else{l=257-l;var u=t[1];r=this.ensureBuffer(o+l+1);for(var h=0;h<l;h++)r[o++]=u}this.bufferLength=o}}}]);return RunLengthStream}(o(128).DecodeStream);r.RunLengthStream=l},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Font=r.ErrorFont=void 0;var l=o(4),c=o(144),u=o(147),h=o(148),d=o(146),m=o(150),g=o(149),y=o(151),v=o(152),S=o(153),k=o(154),_=o(125),C=o(155),w=o(118),x=o(119),O=o(156);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var T=[[57344,63743],[1048576,1114109]],R=1e3,E=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],M=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function adjustWidths(t){if(t.fontMatrix&&t.fontMatrix[0]!==l.FONT_IDENTITY_MATRIX[0]){var r=.001/t.fontMatrix[0],o=t.widths;for(var c in o)o[c]*=r;t.defaultWidth*=r}}function amendFallbackToUnicode(t){if(t.fallbackToUnicode&&!(t.toUnicode instanceof y.IdentityToUnicodeMap)){var r=[];for(var o in t.fallbackToUnicode)t.toUnicode.has(o)||(r[o]=t.fallbackToUnicode[o]);r.length>0&&t.toUnicode.amend(r)}}var D=function(){function Glyph(t,r,o,l,c,u,h,d,m){_classCallCheck(this,Glyph);this.originalCharCode=t;this.fontChar=r;this.unicode=o;this.accent=l;this.width=c;this.vmetric=u;this.operatorListId=h;this.isSpace=d;this.isInFont=m}_createClass(Glyph,[{key:"matchesForCache",value:function matchesForCache(t,r,o,l,c,u,h,d,m){return this.originalCharCode===t&&this.fontChar===r&&this.unicode===o&&this.accent===l&&this.width===c&&this.vmetric===u&&this.operatorListId===h&&this.isSpace===d&&this.isInFont===m}}]);return Glyph}();function int16(t,r){return(t<<8)+r}function writeSignedInt16(t,r,o){t[r+1]=o;t[r]=o>>>8}function signedInt16(t,r){var o=(t<<8)+r;return 32768&o?o-65536:o}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,l.bytesToString)(r)}function getFontFileType(t,r){var o,c,u=r.type,h=r.subtype,d=r.composite;if(function isTrueTypeFile(t){var r=t.peekBytes(4);return 65536===(0,w.readUint32)(r,0)||"true"===(0,l.bytesToString)(r)}(t)||isTrueTypeCollectionFile(t))o=d?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(t){var r=t.peekBytes(4);return"OTTO"===(0,l.bytesToString)(r)}(t))o=d?"CIDFontType2":"OpenType";else if(function isType1File(t){var r=t.peekBytes(2);return 37===r[0]&&33===r[1]||128===r[0]&&1===r[1]}(t))o=d?"CIDFontType0":"MMType1"===u?"MMType1":"Type1";else if(function isCFFFile(t){var r=t.peekBytes(4);return r[0]>=1&&r[3]>=1&&r[3]<=4}(t))if(d){o="CIDFontType0";c="CIDFontType0C"}else{o="MMType1"===u?"MMType1":"Type1";c="Type1C"}else{(0,l.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");o=u;c=h}return[o,c]}function buildToFontChar(t,r,o){for(var l,c=[],u=0,h=t.length;u<h;u++)-1!==(l=(0,g.getUnicodeForGlyph)(t[u],r))&&(c[u]=l);for(var d in o)-1!==(l=(0,g.getUnicodeForGlyph)(o[d],r))&&(c[+d]=l);return c}function adjustMapping(t,r,o){var c=Object.create(null),u=[],h=0,d=T[h][0],m=T[h][1];for(var g in t){var y=t[g|=0];if(r(y)){if(d>m){if(++h>=T.length){(0,l.warn)("Ran out of space in font private use area.");break}d=T[h][0];m=T[h][1]}var v=d++;0===y&&(y=o);c[v]=y;u[g]=v}}return{toFontChar:u,charCodeToGlyphId:c,nextAvailableFontCharCode:d}}function createCmapTable(t,r){var o,c,u,h,d=function getRanges(t,r){var o=[];for(var l in t)t[l]>=r||o.push({fontCharCode:0|l,glyphId:t[l]});0===o.length&&o.push({fontCharCode:0,glyphId:0});o.sort((function fontGetRangesSort(t,r){return t.fontCharCode-r.fontCharCode}));for(var c=[],u=o.length,h=0;h<u;){var d=o[h].fontCharCode,m=[o[h].glyphId];++h;for(var g=d;h<u&&g+1===o[h].fontCharCode;){m.push(o[h].glyphId);++h;if(65535==++g)break}c.push([d,g,m])}return c}(t,r),m=d[d.length-1][1]>65535?2:1,g="\0\0"+string16(m)+"\0\0"+(0,l.string32)(4+8*m);for(o=d.length-1;o>=0&&!(d[o][0]<=65535);--o);var y=o+1;d[o][0]<65535&&65535===d[o][1]&&(d[o][1]=65534);var v,S,k,_,w=d[o][1]<65535?1:0,x=y+w,O=C.OpenTypeFileBuilder.getSearchParams(x,2),T="",R="",E="",M="",D="",j=0;for(o=0,c=y;o<c;o++){S=(v=d[o])[0];k=v[1];T+=string16(S);R+=string16(k);var L=!0;for(u=1,h=(_=v[2]).length;u<h;++u)if(_[u]!==_[u-1]+1){L=!1;break}if(L){E+=string16(_[0]-S&65535);M+=string16(0)}else{var N=2*(x-o)+2*j;j+=k-S+1;E+=string16(0);M+=string16(N);for(u=0,h=_.length;u<h;++u)D+=string16(_[u])}}if(w>0){R+="ÿÿ";T+="ÿÿ";E+="\0";M+="\0\0"}var U="\0\0"+string16(2*x)+string16(O.range)+string16(O.entry)+string16(O.rangeShift)+R+"\0\0"+T+E+M+D,H="",W="";if(m>1){g+="\0\0\n"+(0,l.string32)(4+8*m+4+U.length);H="";for(o=0,c=d.length;o<c;o++){S=(v=d[o])[0];var q=(_=v[2])[0];for(u=1,h=_.length;u<h;++u)if(_[u]!==_[u-1]+1){k=v[0]+u-1;H+=(0,l.string32)(S)+(0,l.string32)(k)+(0,l.string32)(q);S=k+1;q=_[u]}H+=(0,l.string32)(S)+(0,l.string32)(v[1])+(0,l.string32)(q)}W="\0\f\0\0"+(0,l.string32)(H.length+16)+"\0\0\0\0"+(0,l.string32)(H.length/12)}return g+"\0"+string16(U.length+4)+U+W+H}function createOS2Table(t,r,o){o=o||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var c=0,u=0,h=0,d=0,m=null,y=0;if(r){for(var v in r){(m>(v|=0)||!m)&&(m=v);y<v&&(y=v);var S=(0,g.getUnicodeRangeFor)(v);if(S<32)c|=1<<S;else if(S<64)u|=1<<S-32;else if(S<96)h|=1<<S-64;else{if(!(S<123))throw new l.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");d|=1<<S-96}}y>65535&&(y=65535)}else{m=0;y=255}var k=t.bbox||[0,0,0,0],_=o.unitsPerEm||1/(t.fontMatrix||l.FONT_IDENTITY_MATRIX)[0],C=t.ascentScaled?1:_/R,w=o.ascent||Math.round(C*(t.ascent||k[3])),x=o.descent||Math.round(C*(t.descent||k[1]));x>0&&t.descent>0&&k[1]<0&&(x=-x);var O=o.yMax||w,T=-o.yMin||-x;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,l.string32)(c)+(0,l.string32)(u)+(0,l.string32)(h)+(0,l.string32)(d)+"*21*"+string16(t.italicAngle?1:0)+string16(m||t.firstChar)+string16(y||t.lastChar)+string16(w)+string16(x)+"\0d"+string16(O)+string16(T)+"\0\0\0\0\0\0\0\0"+string16(t.xHeight)+string16(t.capHeight)+string16(0)+string16(m||t.firstChar)+"\0"}function createPostTable(t){var r=Math.floor(t.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,l.string32)(r)+"\0\0\0\0"+(0,l.string32)(t.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function createPostscriptName(t){return t.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function createNameTable(t,r){r||(r=[[],[]]);var o,l,c,u,h,d=[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]||createPostscriptName(t),r[0][7]||"Unknown",r[0][8]||"Unknown",r[0][9]||"Unknown"],m=[];for(o=0,l=d.length;o<l;o++){var g=[];for(c=0,u=(h=r[1][o]||d[o]).length;c<u;c++)g.push(string16(h.charCodeAt(c)));m.push(g.join(""))}var y=[d,m],v=["\0","\0"],S=["\0\0","\0"],k=["\0\0","\t"],_=d.length*v.length,C="\0\0"+string16(_)+string16(12*_+6),w=0;for(o=0,l=v.length;o<l;o++){var x=y[o];for(c=0,u=x.length;c<u;c++){h=x[c];C+=v[o]+S[o]+k[o]+string16(c)+string16(h.length)+string16(w);w+=h.length}}return C+=d.join("")+m.join("")}var j=function(){function Font(t,r,o){_classCallCheck(this,Font);this.name=t;this.psName=null;this.mimetype=null;this.disableFontFace=!1;this.loadedName=o.loadedName;this.isType3Font=o.isType3Font;this.missingFile=!1;this.cssFontInfo=o.cssFontInfo;this._charsCache=Object.create(null);this._glyphCache=Object.create(null);this.isSerifFont=!!(o.flags&u.FontFlags.Serif);this.isSymbolicFont=!!(o.flags&u.FontFlags.Symbolic);this.isMonospace=!!(o.flags&u.FontFlags.FixedPitch);var c=o.type,h=o.subtype;this.type=c;this.subtype=h;var d="sans-serif";this.isMonospace?d="monospace":this.isSerifFont&&(d="serif");this.fallbackName=d;this.differences=o.differences;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.composite=o.composite;this.cMap=o.cMap;this.capHeight=o.capHeight/R;this.ascent=o.ascent/R;this.descent=o.descent/R;this.lineHeight=this.ascent-this.descent;this.fontMatrix=o.fontMatrix;this.bbox=o.bbox;this.defaultEncoding=o.defaultEncoding;this.toUnicode=o.toUnicode;this.toFontChar=[];if("Type3"!==o.type){this.cidEncoding=o.cidEncoding;this.vertical=!!o.vertical;if(this.vertical){this.vmetrics=o.vmetrics;this.defaultVMetrics=o.defaultVMetrics}if(r&&!r.isEmpty){var m,g=_slicedToArray(getFontFileType(r,o),2);c=g[0];h=g[1];c===this.type&&h===this.subtype||(0,l.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(c,"/").concat(h,"."));try{switch(c){case"MMType1":(0,l.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var y="Type1C"===h||"CIDFontType0C"===h?new v.CFFFont(r,o):new O.Type1Font(t,r,o);adjustWidths(o);m=this.convert(t,y,o);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";m=this.checkAndRepair(t,r,o);if(this.isOpenType){adjustWidths(o);c="OpenType"}break;default:throw new l.FormatError("Font ".concat(c," is not supported"))}}catch(t){(0,l.warn)(t);this.fallbackToSystemFont(o);return}amendFallbackToUnicode(o);this.data=m;this.fontType=(0,u.getFontType)(c,h,o.isStandardFont);this.fontMatrix=o.fontMatrix;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.toUnicode=o.toUnicode;this.seacMap=o.seacMap}else{r&&(0,l.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")");this.fallbackToSystemFont(o)}}else{for(var S=0;S<256;S++)this.toFontChar[S]=this.differences[S]||o.defaultEncoding[S];this.fontType=l.FontType.TYPE3}}_createClass(Font,[{key:"renderer",get:function get(){var t=S.FontRendererFactory.create(this,u.SEAC_ANALYSIS_ENABLED);return(0,l.shadow)(this,"renderer",t)}},{key:"exportData",value:function exportData(){var t,r,o,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c=l?[].concat(E,M):E,u=Object.create(null),h=_createForOfIteratorHelper(c);try{for(h.s();!(o=h.n()).done;)void 0!==(r=this[t=o.value])&&(u[t]=r)}catch(t){h.e(t)}finally{h.f()}return u}},{key:"fallbackToSystemFont",value:function fallbackToSystemFont(t){var r=this;this.missingFile=!0;var o=this.name,c=this.type,v=this.subtype,S=(0,u.normalizeFontName)(o),k=(0,m.getStdFontMap)(),_=(0,m.getNonStdFontMap)(),C=!!k[S],w=!(!_[S]||!k[_[S]]);S=k[S]||_[S]||S;this.bold=-1!==S.search(/bold/gi);this.italic=-1!==S.search(/oblique/gi)||-1!==S.search(/italic/gi);this.black=-1!==o.search(/Black/g);var x=-1!==o.search(/Narrow/g);this.remeasure=(!C||x)&&Object.keys(this.widths).length>0;if((C||w)&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var O=(0,m.getGlyphMapForStandardFonts)(),T=t.cidToGidMap,R=[];for(var E in O)R[+E]=O[E];if(/Arial-?Black/i.test(o)){var M=(0,m.getSupplementalGlyphMapForArialBlack)();for(var D in M)R[+D]=M[D]}else if(/Calibri/i.test(o)){var j=(0,m.getSupplementalGlyphMapForCalibri)();for(var L in j)R[+L]=j[L]}if(T)for(var N in R){var U=R[N];void 0!==T[U]&&(R[+N]=T[U])}this.toUnicode instanceof y.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,r){R[+t]=r}));this.toFontChar=R;this.toUnicode=new y.ToUnicodeMap(R)}else if(/Symbol/i.test(S))this.toFontChar=buildToFontChar(d.SymbolSetEncoding,(0,h.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(S)){/Wingdings/i.test(o)&&(0,l.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=buildToFontChar(d.ZapfDingbatsEncoding,(0,h.getDingbatsGlyphsUnicode)(),this.differences)}else if(C)this.toFontChar=buildToFontChar(this.defaultEncoding,(0,h.getGlyphsUnicode)(),this.differences);else{var H=(0,h.getGlyphsUnicode)(),W=[];this.toUnicode.forEach((function(t,o){if(!r.composite){var l=r.differences[t]||r.defaultEncoding[t],c=(0,g.getUnicodeForGlyph)(l,H);-1!==c&&(o=c)}W[+t]=o}));if(this.composite&&this.toUnicode instanceof y.IdentityToUnicodeMap&&/Verdana/i.test(o)){var q=(0,m.getGlyphMapForStandardFonts)();for(var $ in q)W[+$]=q[$]}this.toFontChar=W}amendFallbackToUnicode(t);this.loadedName=S.split("-")[0];this.fontType=(0,u.getFontType)(c,v,t.isStandardFont)}},{key:"checkAndRepair",value:function checkAndRepair(t,r,o){var m=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(t,r){var o=Object.create(null);o["OS/2"]=null;o.cmap=null;o.head=null;o.hhea=null;o.hmtx=null;o.maxp=null;o.name=null;o.post=null;for(var l=0;l<r;l++){var c=readTableEntry(t);m.includes(c.tag)&&(0!==c.length&&(o[c.tag]=c))}return o}function readTableEntry(t){var r=t.getString(4),o=t.getInt32()>>>0,l=t.getInt32()>>>0,c=t.getInt32()>>>0,u=t.pos;t.pos=t.start?t.start:0;t.skip(l);var h=t.getBytes(c);t.pos=u;if("head"===r){h[8]=h[9]=h[10]=h[11]=0;h[17]|=32}return{tag:r,checksum:o,length:c,offset:l,data:h}}function readOpenTypeHeader(t){return{version:t.getString(4),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function sanitizeGlyph(t,r,o,l,c,u){var h={length:0,sizeOfInstructions:0};if(o-r<=12)return h;var d=t.subarray(r,o),m=signedInt16(d[0],d[1]);if(m<0){writeSignedInt16(d,0,m=-1);l.set(d,c);h.length=d.length;return h}var g,y=10,v=0;for(g=0;g<m;g++){v=(d[y]<<8|d[y+1])+1;y+=2}var S=y,k=d[y]<<8|d[y+1];h.sizeOfInstructions=k;var _=y+=2+k,C=0;for(g=0;g<v;g++){var w=d[y++];192&w&&(d[y-1]=63&w);var x=2;2&w?x=1:16&w&&(x=0);var O=2;4&w?O=1:32&w&&(O=0);var T=x+O;C+=T;if(8&w){var R=d[y++];g+=R;C+=R*T}}if(0===C)return h;var E=y+C;if(E>d.length)return h;if(!u&&k>0){l.set(d.subarray(0,S),c);l.set([0,0],c+S);l.set(d.subarray(_,E),c+S+2);E-=k;d.length-E>3&&(E=E+3&-4);h.length=E;return h}if(d.length-E>3){E=E+3&-4;l.set(d.subarray(0,E),c);h.length=E;return h}l.set(d,c);h.length=d.length;return h}function readNameTable(t){var o=(r.start?r.start:0)+t.offset;r.pos=o;var l=[[],[]],c=t.length,u=o+c;if(0!==r.getUint16()||c<6)return l;var h,d,m=r.getUint16(),g=r.getUint16(),y=[];for(h=0;h<m&&r.pos+12<=u;h++){var v={platform:r.getUint16(),encoding:r.getUint16(),language:r.getUint16(),name:r.getUint16(),length:r.getUint16(),offset:r.getUint16()};(1===v.platform&&0===v.encoding&&0===v.language||3===v.platform&&1===v.encoding&&1033===v.language)&&y.push(v)}for(h=0,d=y.length;h<d;h++){var S=y[h];if(!(S.length<=0)){var k=o+g+S.offset;if(!(k+S.length>u)){r.pos=k;var _=S.name;if(S.encoding){for(var C="",w=0,x=S.length;w<x;w+=2)C+=String.fromCharCode(r.getUint16());l[1][_]=C}else l[0][_]=r.getString(S.length)}}}return l}var g,y,S,w,O=[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 o,c,u,h,d,m=t.data,g=0,y=0,v=0,S=[],k=[],_=[],C=r.tooComplexToFollowFunctions,w=!1,x=0,T=0,R=m.length;g<R;){var E=m[g++];if(64===E){c=m[g++];if(w||T)g+=c;else for(o=0;o<c;o++)S.push(m[g++])}else if(65===E){c=m[g++];if(w||T)g+=2*c;else for(o=0;o<c;o++){u=m[g++];S.push(u<<8|m[g++])}}else if(176==(248&E)){c=E-176+1;if(w||T)g+=c;else for(o=0;o<c;o++)S.push(m[g++])}else if(184==(248&E)){c=E-184+1;if(w||T)g+=2*c;else for(o=0;o<c;o++){u=m[g++];S.push(u<<8|m[g++])}}else if(43!==E||C)if(44!==E||C){if(45===E)if(w){w=!1;y=g}else{if(!(d=k.pop())){(0,l.warn)("TT: ENDF bad stack");r.hintsValid=!1;return}h=_.pop();m=d.data;g=d.i;r.functionsStackDeltas[h]=S.length-d.stackTop}else if(137===E){if(w||T){(0,l.warn)("TT: nested IDEFs not allowed");C=!0}w=!0;v=g}else if(88===E)++x;else if(27===E)T=x;else if(89===E){T===x&&(T=0);--x}else if(28===E&&!w&&!T){var M=S[S.length-1];M>0&&(g+=M-1)}}else{if(w||T){(0,l.warn)("TT: nested FDEFs not allowed");C=!0}w=!0;v=g;h=S.pop();r.functionsDefined[h]={data:m,i:g}}else if(!w&&!T){h=S[S.length-1];if(isNaN(h))(0,l.info)("TT: CALL empty stack (or invalid entry).");else{r.functionsUsed[h]=!0;if(h in r.functionsStackDeltas){var D=S.length+r.functionsStackDeltas[h];if(D<0){(0,l.warn)("TT: CALL invalid functions stack delta.");r.hintsValid=!1;return}S.length=D}else if(h in r.functionsDefined&&!_.includes(h)){k.push({data:m,i:g,stackTop:S.length-1});_.push(h);if(!(d=r.functionsDefined[h])){(0,l.warn)("TT: CALL non-existent function");r.hintsValid=!1;return}m=d.data;g=d.i}}}if(!w&&!T){var j=0;E<=142?j=O[E]:E>=192&&E<=223?j=-1:E>=224&&(j=-2);if(E>=113&&E<=117){c=S.pop();isNaN(c)||(j=2*-c)}for(;j<0&&S.length>0;){S.pop();j++}for(;j>0;){S.push(NaN);j--}}}r.tooComplexToFollowFunctions=C;var L=[m];g>m.length&&L.push(new Uint8Array(g-m.length));if(v>y){(0,l.warn)("TT: complementing a missing function tail");L.push(new Uint8Array([34,45]))}!function foldTTTable(t,r){if(r.length>1){var o,l,c=0;for(o=0,l=r.length;o<l;o++)c+=r[o].length;c=c+3&-4;var u=new Uint8Array(c),h=0;for(o=0,l=r.length;o<l;o++){u.set(r[o],h);h+=r[o].length}t.data=u;t.length=c}}(t,L)}if(isTrueTypeCollectionFile(r=new x.Stream(new Uint8Array(r.getBytes())))){var T=function readTrueTypeCollectionData(t,r){for(var o,c=function readTrueTypeCollectionHeader(t){var r=t.getString(4);(0,l.assert)("ttcf"===r,"Must be a TrueType Collection font.");for(var o=t.getUint16(),c=t.getUint16(),u=t.getInt32()>>>0,h=[],d=0;d<u;d++)h.push(t.getInt32()>>>0);var m={ttcTag:r,majorVersion:o,minorVersion:c,numFonts:u,offsetTable:h};switch(o){case 1:return m;case 2:m.dsigTag=t.getInt32()>>>0;m.dsigLength=t.getInt32()>>>0;m.dsigOffset=t.getInt32()>>>0;return m}throw new l.FormatError("Invalid TrueType Collection majorVersion: ".concat(o,"."))}(t),u=c.numFonts,h=c.offsetTable,d=r.split("+"),m=0;m<u;m++){t.pos=(t.start||0)+h[m];var g=readOpenTypeHeader(t),y=readTables(t,g.numTables);if(!y.name)throw new l.FormatError('TrueType Collection font must contain a "name" table.');for(var v=readNameTable(y.name),S=0,k=v.length;S<k;S++)for(var _=0,C=v[S].length;_<C;_++){var w=v[S][_]&&v[S][_].replace(/\s/g,"");if(w){if(w===r)return{header:g,tables:y};if(!(d.length<2)){var x,O=_createForOfIteratorHelper(d);try{for(O.s();!(x=O.n()).done;){var T=x.value;w===T&&(o={name:T,header:g,tables:y})}}catch(t){O.e(t)}finally{O.f()}}}}}if(o){(0,l.warn)('TrueType Collection does not contain "'.concat(r,'" font, ')+'falling back to "'.concat(o.name,'" font instead.'));return{header:o.header,tables:o.tables}}throw new l.FormatError('TrueType Collection does not contain "'.concat(r,'" font.'))}(r,this.name);g=T.header;y=T.tables}else{g=readOpenTypeHeader(r);y=readTables(r,g.numTables)}var R=!y["CFF "];if(R){if(!y.loca)throw new l.FormatError('Required "loca" table is not found');if(!y.glyf){(0,l.warn)('Required "glyf" table is not found -- trying to recover.');y.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{var E=o.composite&&((o.cidToGidMap||[]).length>0||!(o.cMap instanceof _.IdentityCMap));if("OTTO"===g.version&&!E||!y.head||!y.hhea||!y.maxp||!y.post){w=new x.Stream(y["CFF "].data);S=new v.CFFFont(w,o);adjustWidths(o);return this.convert(t,S,o)}delete y.glyf;delete y.loca;delete y.fpgm;delete y.prep;delete y["cvt "];this.isOpenType=!0}if(!y.maxp)throw new l.FormatError('Required "maxp" table is not found');r.pos=(r.start||0)+y.maxp.offset;var M=r.getInt32(),D=r.getUint16();if(o.scaleFactors&&o.scaleFactors.length===D&&R){var j=o.scaleFactors,L=int16(y.head.data[50],y.head.data[51]),N=new k.GlyfTable({glyfTable:y.glyf.data,isGlyphLocationsLong:L,locaTable:y.loca.data,numGlyphs:D});N.scale(j);var U=N.write(),H=U.glyf,W=U.loca,q=U.isLocationLong;y.glyf.data=H;y.loca.data=W;if(q!==!!L){y.head.data[50]=0;y.head.data[51]=q?1:0}for(var $=y.hmtx.data,X=0;X<D;X++){var z=4*X,G=Math.round(j[X]*int16($[z],$[z+1]));$[z]=G>>8&255;$[z+1]=255&G;writeSignedInt16($,z+2,Math.round(j[X]*signedInt16($[z+2],$[z+3])))}}var V=D+1,Y=!0;if(V>65535){Y=!1;V=D;(0,l.warn)("Not enough space in glyfs to duplicate first glyph.")}var K=0,J=0;if(M>=65536&&y.maxp.length>=22){r.pos+=8;if(r.getUint16()>2){y.maxp.data[14]=0;y.maxp.data[15]=2}r.pos+=4;K=r.getUint16();r.pos+=4;J=r.getUint16()}y.maxp.data[4]=V>>8;y.maxp.data[5]=255&V;var Q=function sanitizeTTPrograms(t,r,o,c){var u={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};t&&sanitizeTTProgram(t,u);r&&sanitizeTTProgram(r,u);t&&function checkInvalidFunctions(t,r){if(!t.tooComplexToFollowFunctions)if(t.functionsDefined.length>r){(0,l.warn)("TT: more functions defined than expected");t.hintsValid=!1}else for(var o=0,c=t.functionsUsed.length;o<c;o++){if(o>r){(0,l.warn)("TT: invalid function id: "+o);t.hintsValid=!1;return}if(t.functionsUsed[o]&&!t.functionsDefined[o]){(0,l.warn)("TT: undefined function: "+o);t.hintsValid=!1;return}}}(u,c);if(o&&1&o.length){var h=new Uint8Array(o.length+1);h.set(o.data);o.data=h}return u.hintsValid}(y.fpgm,y.prep,y["cvt "],K);if(!Q){delete y.fpgm;delete y.prep;delete y["cvt "]}!function sanitizeMetrics(t,r,o,c,u,h){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;var d=t.getUint16();t.pos+=8;t.pos+=2;var m=t.getUint16();if(0!==d){if(!(2&int16(c.data[44],c.data[45]))){r.data[22]=0;r.data[23]=0}}if(m>u){(0,l.info)("The numOfMetrics (".concat(m,") should not be ")+"greater than the numGlyphs (".concat(u,")."));m=u;r.data[34]=(65280&m)>>8;r.data[35]=255&m}var g=u-m-(o.length-4*m>>1);if(g>0){var y=new Uint8Array(o.length+2*g);y.set(o.data);if(h){y[o.length]=o.data[2];y[o.length+1]=o.data[3]}o.data=y}}else o&&(o.data=null)}(r,y.hhea,y.hmtx,y.head,V,Y);if(!y.head)throw new l.FormatError('Required "head" table is not found');!function sanitizeHead(t,r,o){var c=t.data,u=function int32(t,r,o,l){return(t<<24)+(r<<16)+(o<<8)+l}(c[0],c[1],c[2],c[3]);if(u>>16!=1){(0,l.info)("Attempting to fix invalid version in head table: "+u);c[0]=0;c[1]=1;c[2]=0;c[3]=0}var h=int16(c[50],c[51]);if(h<0||h>1){(0,l.info)("Attempting to fix invalid indexToLocFormat in head table: "+h);var d=r+1;if(o===d<<1){c[50]=0;c[51]=0}else{if(o!==d<<2)throw new l.FormatError("Could not fix indexToLocFormat: "+h);c[50]=0;c[51]=1}}}(y.head,D,R?y.loca.length:0);var Z=Object.create(null);if(R){var ee=int16(y.head.data[50],y.head.data[51]),te=function sanitizeGlyphLocations(t,r,o,l,c,u,h){var d,m,g;if(l){d=4;m=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};g=function fontItemEncodeLong(t,r,o){t[r]=o>>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}}else{d=2;m=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1};g=function fontItemEncode(t,r,o){t[r]=o>>9&255;t[r+1]=o>>1&255}}var y=u?o+1:o,v=d*(1+y),S=new Uint8Array(v);S.set(t.data.subarray(0,v));t.data=S;var k,_,C=r.data,w=C.length,x=new Uint8Array(w),O=[];for(k=0,_=0;k<o+1;k++,_+=d){var T=m(S,_);T>w&&(T=w);O.push({index:k,offset:T,endOffset:0})}O.sort((function(t,r){return t.offset-r.offset}));for(k=0;k<o;k++)O[k].endOffset=O[k+1].offset;O.sort((function(t,r){return t.index-r.index}));var R=Object.create(null),E=0;g(S,0,E);for(k=0,_=d;k<o;k++,_+=d){var M=sanitizeGlyph(C,O[k].offset,O[k].endOffset,x,E,c),D=M.length;0===D&&(R[k]=!0);M.sizeOfInstructions>h&&(h=M.sizeOfInstructions);g(S,_,E+=D)}if(0===E){var j=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(k=0,_=d;k<y;k++,_+=d)g(S,_,j.length);r.data=j}else if(u){var L=m(S,d);if(x.length>L+E)r.data=x.subarray(0,L+E);else{r.data=new Uint8Array(L+E);r.data.set(x.subarray(0,E))}r.data.set(x.subarray(0,L),E);g(t.data,S.length-d,E+L)}else r.data=x.subarray(0,E);return{missingGlyphs:R,maxSizeOfInstructions:h}}(y.loca,y.glyf,D,ee,Q,Y,J);Z=te.missingGlyphs;if(M>=65536&&y.maxp.length>=22){y.maxp.data[26]=te.maxSizeOfInstructions>>8;y.maxp.data[27]=255&te.maxSizeOfInstructions}}if(!y.hhea)throw new l.FormatError('Required "hhea" table is not found');if(0===y.hhea.data[10]&&0===y.hhea.data[11]){y.hhea.data[10]=255;y.hhea.data[11]=255}var re={unitsPerEm:int16(y.head.data[18],y.head.data[19]),yMax:int16(y.head.data[42],y.head.data[43]),yMin:signedInt16(y.head.data[38],y.head.data[39]),ascent:signedInt16(y.hhea.data[4],y.hhea.data[5]),descent:signedInt16(y.hhea.data[6],y.hhea.data[7]),lineGap:signedInt16(y.hhea.data[8],y.hhea.data[9])};this.ascent=re.ascent/re.unitsPerEm;this.descent=re.descent/re.unitsPerEm;this.lineGap=re.lineGap/re.unitsPerEm;this.cssFontInfo&&this.cssFontInfo.lineHeight?this.lineHeight=this.cssFontInfo.lineHeight:this.lineHeight=this.ascent-this.descent+this.lineGap;y.post&&function readPostScriptTable(t,o,c){var h=(r.start?r.start:0)+t.offset;r.pos=h;var d,m=h+t.length,g=r.getInt32();r.skip(28);var y,v=!0;switch(g){case 65536:d=u.MacStandardGlyphOrdering;break;case 131072:var S=r.getUint16();if(S!==c){v=!1;break}var k=[];for(y=0;y<S;++y){var _=r.getUint16();if(_>=32768){v=!1;break}k.push(_)}if(!v)break;for(var C=[],w=[];r.pos<m;){var x=r.getByte();w.length=x;for(y=0;y<x;++y)w[y]=String.fromCharCode(r.getByte());C.push(w.join(""))}d=[];for(y=0;y<S;++y){var O=k[y];O<258?d.push(u.MacStandardGlyphOrdering[O]):d.push(C[O-258])}break;case 196608:break;default:(0,l.warn)("Unknown/unsupported post table version "+g);v=!1;o.defaultEncoding&&(d=o.defaultEncoding)}o.glyphNames=d;return v}(y.post,o,D);y.post={tag:"post",data:createPostTable(o)};var ae=[];function hasGlyph(t){return!Z[t]}if(o.composite){var ne=o.cidToGidMap||[],ie=0===ne.length;o.cMap.forEach((function(t,r){if(r>65535)throw new l.FormatError("Max size of CID is 65,535");var o=-1;ie?o=r:void 0!==ne[r]&&(o=ne[r]);o>=0&&o<D&&hasGlyph(o)&&(ae[t]=o)}))}else{var oe=function readCmapTable(t,r,o,c){if(!t){(0,l.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var u,h=(r.start?r.start:0)+t.offset;r.pos=h;r.skip(2);for(var d,m=r.getUint16(),g=!1,y=0;y<m;y++){var v=r.getUint16(),S=r.getUint16(),k=r.getInt32()>>>0,_=!1;if(!d||d.platformId!==v||d.encodingId!==S){if(0!==v||0!==S&&1!==S&&3!==S)if(1===v&&0===S)_=!0;else if(3!==v||1!==S||!c&&d){if(o&&3===v&&0===S){_=!0;var C=!0;if(y<m-1){var w=r.peekBytes(2);int16(w[0],w[1])<v&&(C=!1)}C&&(g=!0)}}else{_=!0;o||(g=!0)}else _=!0;_&&(d={platformId:v,encodingId:S,offset:k});if(g)break}}d&&(r.pos=h+d.offset);if(!d||-1===r.peekByte()){(0,l.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var x=r.getUint16();r.skip(4);var O,T,R=!1,E=[];if(0===x){for(O=0;O<256;O++){var M=r.getByte();M&&E.push({charCode:O,glyphId:M})}R=!0}else if(4===x){var D=r.getUint16()>>1;r.skip(6);var j,L=[];for(j=0;j<D;j++)L.push({end:r.getUint16()});r.skip(2);for(j=0;j<D;j++)L[j].start=r.getUint16();for(j=0;j<D;j++)L[j].delta=r.getUint16();var N,U=0;for(j=0;j<D;j++){u=L[j];var H=r.getUint16();if(H){N=(H>>1)-(D-j);u.offsetIndex=N;U=Math.max(U,N+u.end-u.start+1)}else u.offsetIndex=-1}var W=[];for(O=0;O<U;O++)W.push(r.getUint16());for(j=0;j<D;j++){h=(u=L[j]).start;var q=u.end,$=u.delta;N=u.offsetIndex;for(O=h;O<=q;O++)if(65535!==O){T=(T=N<0?O:W[N+O-h])+$&65535;E.push({charCode:O,glyphId:T})}}}else{if(6!==x){(0,l.warn)("cmap table has unsupported format: "+x);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var X=r.getUint16(),z=r.getUint16();for(O=0;O<z;O++){T=r.getUint16();var G=X+O;E.push({charCode:G,glyphId:T})}}E.sort((function(t,r){return t.charCode-r.charCode}));for(var V=1;V<E.length;V++)if(E[V-1].charCode===E[V].charCode){E.splice(V,1);V--}return{platformId:d.platformId,encodingId:d.encodingId,mappings:E,hasShortCmap:R}}(y.cmap,r,this.isSymbolicFont,o.hasEncoding),se=oe.platformId,le=oe.encodingId,ce=oe.mappings,ue=ce.length,fe=[];!o.hasEncoding||"MacRomanEncoding"!==o.baseEncodingName&&"WinAnsiEncoding"!==o.baseEncodingName||(fe=(0,d.getEncoding)(o.baseEncodingName));if(o.hasEncoding&&!this.isSymbolicFont&&(3===se&&1===le||1===se&&0===le))for(var he=(0,h.getGlyphsUnicode)(),de=0;de<256;de++){var pe=void 0;if(pe=void 0!==this.differences[de]?this.differences[de]:""!==fe[de]?fe[de]:d.StandardEncoding[de]){var me=(0,u.recoverGlyphName)(pe,he),ge=void 0;3===se&&1===le?ge=he[me]:1===se&&0===le&&(ge=d.MacRomanEncoding.indexOf(me));for(var ye=0;ye<ue;++ye)if(ce[ye].charCode===ge){ae[de]=ce[ye].glyphId;break}}}else if(0===se)for(var ve=0;ve<ue;++ve)ae[ce[ve].charCode]=ce[ve].glyphId;else for(var be=0;be<ue;++be){var Se=ce[be].charCode;3===se&&Se>=61440&&Se<=61695&&(Se&=255);ae[Se]=ce[be].glyphId}if(o.glyphNames&&(fe.length||this.differences.length))for(var ke=0;ke<256;++ke)if(void 0===ae[ke]){var _e=this.differences[ke]||fe[ke];if(_e){var Ce=o.glyphNames.indexOf(_e);Ce>0&&hasGlyph(Ce)&&(ae[ke]=Ce)}}}0===ae.length&&(ae[0]=0);var we=V-1;Y||(we=0);if(!o.cssFontInfo){var Ae=adjustMapping(ae,hasGlyph,we);this.toFontChar=Ae.toFontChar;y.cmap={tag:"cmap",data:createCmapTable(Ae.charCodeToGlyphId,V)};y["OS/2"]&&function validateOS2Table(t,r){r.pos=(r.start||0)+t.offset;var o=r.getUint16();r.skip(60);var l=r.getUint16();if(o<4&&768&l)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}(y["OS/2"],r)||(y["OS/2"]={tag:"OS/2",data:createOS2Table(o,Ae.charCodeToGlyphId,re)})}if(!R)try{w=new x.Stream(y["CFF "].data);(S=new c.CFFParser(w,o,u.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();var xe=new c.CFFCompiler(S);y["CFF "].data=xe.compile()}catch(t){(0,l.warn)("Failed to compile font "+o.loadedName)}if(y.name){var Oe=readNameTable(y.name);y.name.data=createNameTable(t,Oe);this.psName=Oe[0][6]||null}else y.name={tag:"name",data:createNameTable(this.name)};var Pe=new C.OpenTypeFileBuilder(g.version);for(var Te in y)Pe.addTable(Te,y[Te].data);return Pe.toArray()}},{key:"convert",value:function convert(t,r,o){o.fixedPitch=!1;o.builtInEncoding&&function adjustToUnicode(t,r){if(!(t.isInternalFont||r===t.defaultEncoding||t.toUnicode instanceof y.IdentityToUnicodeMap)){var o=[],l=(0,h.getGlyphsUnicode)();for(var c in r){if(t.hasIncludedToUnicodeMap){if(t.toUnicode.has(c))continue}else if(t.hasEncoding&&void 0!==t.differences[c])continue;var u=r[c],d=(0,g.getUnicodeForGlyph)(u,l);-1!==d&&(o[c]=String.fromCharCode(d))}o.length>0&&t.toUnicode.amend(o)}}(o,o.builtInEncoding);var c=1;r instanceof v.CFFFont&&(c=r.numGlyphs-1);var m=r.getGlyphMapping(o),S=null,k=m;if(!o.cssFontInfo){S=adjustMapping(m,r.hasGlyphId.bind(r),c);this.toFontChar=S.toFontChar;k=S.charCodeToGlyphId}var _=r.numGlyphs;function getCharCodes(t,r){var o=null;for(var l in t)if(r===t[l]){o||(o=[]);o.push(0|l)}return o}function createCharCode(t,r){for(var o in t)if(r===t[o])return 0|o;S.charCodeToGlyphId[S.nextAvailableFontCharCode]=r;return S.nextAvailableFontCharCode++}var w=r.seacs;if(S&&u.SEAC_ANALYSIS_ENABLED&&w&&w.length){var x=o.fontMatrix||l.FONT_IDENTITY_MATRIX,O=r.getCharset(),T=Object.create(null);for(var R in w){var E=w[R|=0],M=d.StandardEncoding[E[2]],D=d.StandardEncoding[E[3]],j=O.indexOf(M),L=O.indexOf(D);if(!(j<0||L<0)){var N={x:E[0]*x[0]+E[1]*x[2]+x[4],y:E[0]*x[1]+E[1]*x[3]+x[5]},U=getCharCodes(m,R);if(U)for(var H=0,W=U.length;H<W;H++){var q=U[H],$=S.charCodeToGlyphId,X=createCharCode($,j),z=createCharCode($,L);T[q]={baseFontCharCode:X,accentFontCharCode:z,accentOffset:N}}}}o.seacMap=T}var G=1/(o.fontMatrix||l.FONT_IDENTITY_MATRIX)[0],V=new C.OpenTypeFileBuilder("OTTO");V.addTable("CFF ",r.data);V.addTable("OS/2",createOS2Table(o,k));V.addTable("cmap",createCmapTable(k,_));V.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(G)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+safeString16(o.descent)+"ÿ"+safeString16(o.ascent)+string16(o.italicAngle?2:0)+"\0\0\0\0\0\0\0");V.addTable("hhea","\0\0\0"+safeString16(o.ascent)+safeString16(o.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+safeString16(o.capHeight)+safeString16(Math.tan(o.italicAngle)*o.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+string16(_));V.addTable("hmtx",function fontFieldsHmtx(){for(var t=r.charstrings,o=r.cff?r.cff.widths:null,l="\0\0\0\0",c=1,u=_;c<u;c++){var h=0;if(t){var d=t[c-1];h="width"in d?d.width:0}else o&&(h=Math.ceil(o[c]||0));l+=string16(h)+string16(0)}return l}());V.addTable("maxp","\0\0P\0"+string16(_));V.addTable("name",createNameTable(t));V.addTable("post",createPostTable(o));return V.toArray()}},{key:"spaceWidth",get:function get(){for(var t,r=["space","minus","one","i","I"],o=0,c=r.length;o<c;o++){var u=r[o];if(u in this.widths){t=this.widths[u];break}var d=(0,h.getGlyphsUnicode)()[u],m=0;this.composite&&this.cMap.contains(d)&&(m=this.cMap.lookup(d));!m&&this.toUnicode&&(m=this.toUnicode.charCodeOf(d));m<=0&&(m=d);if(t=this.widths[m])break}t=t||this.defaultWidth;return(0,l.shadow)(this,"spaceWidth",t)}},{key:"_charToGlyph",value:function _charToGlyph(t){var r,o,c,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=t;this.cMap&&this.cMap.contains(t)&&(h=this.cMap.lookup(t));o=this.widths[h];o=(0,l.isNum)(o)?o:this.defaultWidth;var d=this.vmetrics&&this.vmetrics[h],m=this.toUnicode.get(t)||t;"number"==typeof m&&(m=String.fromCharCode(m));var y=void 0!==this.toFontChar[t];r=this.toFontChar[t]||t;if(this.missingFile){var v=this.differences[t]||this.defaultEncoding[t];".notdef"!==v&&""!==v||"Type1"!==this.type||(r=32);r=(0,g.mapSpecialUnicodeValues)(r)}this.isType3Font&&(c=r);var S=null;if(this.seacMap&&this.seacMap[t]){y=!0;var k=this.seacMap[t];r=k.baseFontCharCode;S={fontChar:String.fromCodePoint(k.accentFontCharCode),offset:k.accentOffset}}var _="";"number"==typeof r&&(r<=1114111?_=String.fromCodePoint(r):(0,l.warn)("charToGlyph - invalid fontCharCode: ".concat(r)));var C=this._glyphCache[t];if(!C||!C.matchesForCache(t,_,m,S,o,d,c,u,y)){C=new D(t,_,m,S,o,d,c,u,y);this._glyphCache[t]=C}return C}},{key:"charsToGlyphs",value:function charsToGlyphs(t){var r=this._charsCache[t];if(r)return r;r=[];if(this.cMap)for(var o=Object.create(null),l=t.length,c=0;c<l;){this.cMap.readCharCode(t,c,o);var u=o.charcode,h=o.length;c+=h;var d=this._charToGlyph(u,1===h&&32===t.charCodeAt(c-1));r.push(d)}else for(var m=0,g=t.length;m<g;++m){var y=t.charCodeAt(m),v=this._charToGlyph(y,32===y);r.push(v)}return this._charsCache[t]=r}},{key:"getCharPositions",value:function getCharPositions(t){var r=[];if(this.cMap)for(var o=Object.create(null),l=0;l<t.length;){this.cMap.readCharCode(t,l,o);var c=o.length;r.push([l,l+c]);l+=c}else for(var u=0,h=t.length;u<h;++u)r.push([u,u+1]);return r}},{key:"glyphCacheValues",get:function get(){return Object.values(this._glyphCache)}},{key:"encodeString",value:function encodeString(t){for(var r=[],o=[],l=function hasCurrentBufErrors(){return r.length%2==1},c=0,u=t.length;c<u;c++){var h=t.codePointAt(c);h>55295&&(h<57344||h>65533)&&c++;if(this.toUnicode){var d=String.fromCodePoint(h),m=this.toUnicode.charCodeOf(d);if(-1!==m){if(l()){r.push(o.join(""));o.length=0}for(var g=(this.cMap?this.cMap.getCharCodeLength(m):1)-1;g>=0;g--)o.push(String.fromCharCode(m>>8*g&255));continue}}if(!l()){r.push(o.join(""));o.length=0}o.push(String.fromCodePoint(h))}r.push(o.join(""));return r}}]);return Font}();r.Font=j;var L=function(){function ErrorFont(t){_classCallCheck(this,ErrorFont);this.error=t;this.loadedName="g_font_error";this.missingFile=!0}_createClass(ErrorFont,[{key:"charsToGlyphs",value:function charsToGlyphs(){return[]}},{key:"encodeString",value:function encodeString(t){return[t]}},{key:"exportData",value:function exportData(){return{error:this.error}}}]);return ErrorFont}();r.ErrorFont=L},(t,r,o)=>{"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 l=o(4),c=o(145),u=o(146);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h=[".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=h;var d=391,m=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,o){_classCallCheck(this,CFFParser);this.bytes=t.getBytes();this.properties=r;this.seacAnalysisEnabled=!!o}_createClass(CFFParser,[{key:"parse",value:function parse(){var t=this.properties,r=new g;this.cff=r;var o=this.parseHeader(),l=this.parseIndex(o.endPos),c=this.parseIndex(l.endPos),u=this.parseIndex(c.endPos),h=this.parseIndex(u.endPos),d=this.parseDict(c.obj.get(0)),m=this.createDict(_,d,r.strings);r.header=o.obj;r.names=this.parseNameIndex(l.obj);r.strings=this.parseStringIndex(u.obj);r.topDict=m;r.globalSubrIndex=h.obj;this.parsePrivateDict(r.topDict);r.isCIDFont=m.hasName("ROS");var y=m.getByName("CharStrings"),v=this.parseIndex(y).obj,S=m.getByName("FontMatrix");S&&(t.fontMatrix=S);var k,C,w=m.getByName("FontBBox");if(w){t.ascent=Math.max(w[3],w[1]);t.descent=Math.min(w[1],w[3]);t.ascentScaled=!0}if(r.isCIDFont){for(var x=this.parseIndex(m.getByName("FDArray")).obj,O=0,T=x.count;O<T;++O){var R=x.get(O),E=this.createDict(_,this.parseDict(R),r.strings);this.parsePrivateDict(E);r.fdArray.push(E)}C=null;k=this.parseCharsets(m.getByName("charset"),v.count,r.strings,!0);r.fdSelect=this.parseFDSelect(m.getByName("FDSelect"),v.count)}else{k=this.parseCharsets(m.getByName("charset"),v.count,r.strings,!1);C=this.parseEncoding(m.getByName("Encoding"),t,r.strings,k.charset)}r.charset=k;r.encoding=C;var M=this.parseCharStrings({charStrings:v,localSubrIndex:m.privateDict.subrsIndex,globalSubrIndex:h.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:m.privateDict});r.charStrings=M.charStrings;r.seacs=M.seacs;r.widths=M.widths;return r}},{key:"parseHeader",value:function parseHeader(){for(var t=this.bytes,r=t.length,o=0;o<r&&1!==t[o];)++o;if(o>=r)throw new l.FormatError("Invalid CFF header");if(0!==o){(0,l.info)("cff data is shifted");t=t.subarray(o);this.bytes=t}var c=t[0],u=t[1],h=t[2],d=t[3];return{obj:new y(c,u,h,d),endPos:h}}},{key:"parseDict",value:function parseDict(t){var r=0;function parseOperand(){var o=t[r++];if(30===o)return function parseFloatOperand(){var o="",l=15,c=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],u=t.length;for(;r<u;){var h=t[r++],d=h>>4,m=15&h;if(d===l)break;o+=c[d];if(m===l)break;o+=c[m]}return parseFloat(o)}();if(28===o)return o=((o=t[r++])<<24|t[r++]<<16)>>16;if(29===o)return o=(o=(o=(o=t[r++])<<8|t[r++])<<8|t[r++])<<8|t[r++];if(o>=32&&o<=246)return o-139;if(o>=247&&o<=250)return 256*(o-247)+t[r++]+108;if(o>=251&&o<=254)return-256*(o-251)-t[r++]-108;(0,l.warn)('CFFParser_parseDict: "'+o+'" is a reserved command.');return NaN}var o=[],c=[];r=0;for(var u=t.length;r<u;){var h=t[r];if(h<=21){12===h&&(h=h<<8|t[++r]);c.push([h,o]);o=[];++r}else o.push(parseOperand())}return c}},{key:"parseIndex",value:function parseIndex(t){var r,o,l=new S,c=this.bytes,u=c[t++]<<8|c[t++],h=[],d=t;if(0!==u){var m=c[t++],g=t+(u+1)*m-1;for(r=0,o=u+1;r<o;++r){for(var y=0,v=0;v<m;++v){y<<=8;y+=c[t++]}h.push(g+y)}d=h[u]}for(r=0,o=h.length-1;r<o;++r){var k=h[r],_=h[r+1];l.add(c.subarray(k,_))}return{obj:l,endPos:d}}},{key:"parseNameIndex",value:function parseNameIndex(t){for(var r=[],o=0,c=t.count;o<c;++o){var u=t.get(o);r.push((0,l.bytesToString)(u))}return r}},{key:"parseStringIndex",value:function parseStringIndex(t){for(var r=new v,o=0,c=t.count;o<c;++o){var u=t.get(o);r.add((0,l.bytesToString)(u))}return r}},{key:"createDict",value:function createDict(t,r,o){for(var l=new t(o),c=0,u=r.length;c<u;++c){var h=r[c],d=h[0],m=h[1];l.setByKey(d,m)}return l}},{key:"parseCharString",value:function parseCharString(o,c,u,h){if(!c||o.callDepth>10)return!1;for(var d=o.stackSize,m=o.stack,g=c.length,y=0;y<g;){var v=c[y++],S=null;if(12===v){var k=c[y++];if(0===k){c[y-2]=139;c[y-1]=22;d=0}else S=r[k]}else if(28===v){m[d]=(c[y]<<24|c[y+1]<<16)>>16;y+=2;d++}else if(14===v){if(d>=4){d-=4;if(this.seacAnalysisEnabled){o.seac=m.slice(d,d+4);return!1}}S=t[v]}else if(v>=32&&v<=246){m[d]=v-139;d++}else if(v>=247&&v<=254){m[d]=v<251?(v-247<<8)+c[y]+108:-(v-251<<8)-c[y]-108;y++;d++}else if(255===v){m[d]=(c[y]<<24|c[y+1]<<16|c[y+2]<<8|c[y+3])/65536;y+=4;d++}else if(19===v||20===v){o.hints+=d>>1;y+=o.hints+7>>3;d%=2;S=t[v]}else{if(10===v||29===v){var _=void 0;if(!(_=10===v?u:h)){S=t[v];(0,l.warn)("Missing subrsIndex for "+S.id);return!1}var C=32768;_.count<1240?C=107:_.count<33900&&(C=1131);var w=m[--d]+C;if(w<0||w>=_.count||isNaN(w)){S=t[v];(0,l.warn)("Out of bounds subrIndex for "+S.id);return!1}o.stackSize=d;o.callDepth++;if(!this.parseCharString(o,_.get(w),u,h))return!1;o.callDepth--;d=o.stackSize;continue}if(11===v){o.stackSize=d;return!0}if(0===v&&y===c.length){c[y-1]=14;S=t[14]}else S=t[v]}if(S){if(S.stem){o.hints+=d>>1;if(3===v||23===v)o.hasVStems=!0;else if(o.hasVStems&&(1===v||18===v)){(0,l.warn)("CFF stem hints are in wrong order");c[y-1]=1===v?3:23}}if("min"in S&&!o.undefStack&&d<S.min){(0,l.warn)("Not enough parameters for "+S.id+"; actual: "+d+", expected: "+S.min);if(0===d){c[y-1]=14;return!0}return!1}if(o.firstStackClearing&&S.stackClearing){o.firstStackClearing=!1;(d-=S.min)>=2&&S.stem?d%=2:d>1&&(0,l.warn)("Found too many parameters for stack-clearing command");d>0&&(o.width=m[d-1])}if("stackDelta"in S){"stackFn"in S&&S.stackFn(m,d);d+=S.stackDelta}else if(S.stackClearing)d=0;else if(S.resetStack){d=0;o.undefStack=!1}else if(S.undefStack){d=0;o.undefStack=!0;o.firstStackClearing=!1}}}o.stackSize=d;return!0}},{key:"parseCharStrings",value:function parseCharStrings(t){for(var r=t.charStrings,o=t.localSubrIndex,c=t.globalSubrIndex,u=t.fdSelect,h=t.fdArray,d=t.privateDict,m=[],g=[],y=r.count,v=0;v<y;v++){var S=r.get(v),k={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},_=!0,C=null,w=d;if(u&&h.length){var x=u.getFDIndex(v);if(-1===x){(0,l.warn)("Glyph index is not in fd select.");_=!1}if(x>=h.length){(0,l.warn)("Invalid fd index for glyph index.");_=!1}_&&(C=(w=h[x].privateDict).subrsIndex)}else o&&(C=o);_&&(_=this.parseCharString(k,S,C,c));if(null!==k.width){var O=w.getByName("nominalWidthX");g[v]=O+k.width}else{var T=w.getByName("defaultWidthX");g[v]=T}null!==k.seac&&(m[v]=k.seac);_||r.set(v,new Uint8Array([14]))}return{charStrings:r,seacs:m,widths:g}}},{key:"emptyPrivateDictionary",value:function emptyPrivateDictionary(t){var r=this.createDict(C,[],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 o=r[0],l=r[1];if(0===o||l>=this.bytes.length)this.emptyPrivateDictionary(t);else{var c=l+o,u=this.bytes.subarray(l,c),h=this.parseDict(u),d=this.createDict(C,h,t.strings);t.privateDict=d;if(d.getByName("Subrs")){var m=d.getByName("Subrs"),g=l+m;if(0===m||g>=this.bytes.length)this.emptyPrivateDictionary(t);else{var y=this.parseIndex(g);d.subrsIndex=y.obj}}}}else t.removeByName("Private")}else this.emptyPrivateDictionary(t)}},{key:"parseCharsets",value:function parseCharsets(t,r,o,u){if(0===t)return new x(!0,w.ISO_ADOBE,c.ISOAdobeCharset);if(1===t)return new x(!0,w.EXPERT,c.ExpertCharset);if(2===t)return new x(!0,w.EXPERT_SUBSET,c.ExpertSubsetCharset);var h,d,m,g=this.bytes,y=t,v=g[t++],S=[u?0:".notdef"];r-=1;switch(v){case 0:for(m=0;m<r;m++){h=g[t++]<<8|g[t++];S.push(u?h:o.get(h))}break;case 1:for(;S.length<=r;){h=g[t++]<<8|g[t++];d=g[t++];for(m=0;m<=d;m++)S.push(u?h++:o.get(h++))}break;case 2:for(;S.length<=r;){h=g[t++]<<8|g[t++];d=g[t++]<<8|g[t++];for(m=0;m<=d;m++)S.push(u?h++:o.get(h++))}break;default:throw new l.FormatError("Unknown charset format")}var k=t,_=g.subarray(y,k);return new x(!1,v,S,_)}},{key:"parseEncoding",value:function parseEncoding(t,r,o,c){var h,d,m,g=Object.create(null),y=this.bytes,v=!1,S=null;if(0===t||1===t){v=!0;h=t;var k=t?u.ExpertEncoding:u.StandardEncoding;for(d=0,m=c.length;d<m;d++){var _=k.indexOf(c[d]);-1!==_&&(g[_]=d)}}else{var C=t;switch(127&(h=y[t++])){case 0:var w=y[t++];for(d=1;d<=w;d++)g[y[t++]]=d;break;case 1:var x=y[t++],T=1;for(d=0;d<x;d++)for(var R=y[t++],E=y[t++],M=R;M<=R+E;M++)g[M]=T++;break;default:throw new l.FormatError("Unknown encoding format: ".concat(h," in CFF"))}var D=t;if(128&h){y[C]&=127;!function readSupplement(){var r=y[t++];for(d=0;d<r;d++){var l=y[t++],u=(y[t++]<<8)+(255&y[t++]);g[l]=c.indexOf(o.get(u))}}()}S=y.subarray(C,D)}return new O(v,h&=127,g,S)}},{key:"parseFDSelect",value:function parseFDSelect(t,r){var o,c=this.bytes,u=c[t++],h=[];switch(u){case 0:for(o=0;o<r;++o){var d=c[t++];h.push(d)}break;case 3:var m=c[t++]<<8|c[t++];for(o=0;o<m;++o){var g=c[t++]<<8|c[t++];if(0===o&&0!==g){(0,l.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");g=0}for(var y=c[t++],v=c[t]<<8|c[t+1],S=g;S<v;++S)h.push(y)}t+=2;break;default:throw new l.FormatError('parseFDSelect: Unknown format "'.concat(u,'".'))}if(h.length!==r)throw new l.FormatError("parseFDSelect: Invalid font data.");return new T(u,h)}}]);return CFFParser}()}();r.CFFParser=m;var g=function(){function CFF(){_classCallCheck(this,CFF);this.header=null;this.names=[];this.topDict=null;this.strings=new v;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,l.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=g;var y=function CFFHeader(t,r,o,l){_classCallCheck(this,CFFHeader);this.major=t;this.minor=r;this.hdrSize=o;this.offSize=l};r.CFFHeader=y;var v=function(){function CFFStrings(){_classCallCheck(this,CFFStrings);this.strings=[]}_createClass(CFFStrings,[{key:"get",value:function get(t){return t>=0&&t<=390?h[t]:t-d<=this.strings.length?this.strings[t-d]:h[0]}},{key:"getSID",value:function getSID(t){var r=h.indexOf(t);return-1!==r?r:-1!==(r=this.strings.indexOf(t))?r+d:-1}},{key:"add",value:function add(t){this.strings.push(t)}},{key:"count",get:function get(){return this.strings.length}}]);return CFFStrings}();r.CFFStrings=v;var S=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=S;var k=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 o=r.length;if(0===o)return!0;for(var c=0;c<o;c++)if(isNaN(r[c])){(0,l.warn)('Invalid CFFDict value: "'+r+'" for key "'+t+'".');return!0}var u=this.types[t];"num"!==u&&"sid"!==u&&"offset"!==u||(r=r[0]);this.values[t]=r;return!0}},{key:"setByName",value:function setByName(t,r){if(!(t in this.nameToKeyMap))throw new l.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 l.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:[]},o=0,l=t.length;o<l;++o){var c=t[o],u=Array.isArray(c[0])?(c[0][0]<<8)+c[0][1]:c[0];r.keyToNameMap[u]=c[1];r.nameToKeyMap[c[1]]=u;r.types[u]=c[2];r.defaults[u]=c[3];r.opcodes[u]=Array.isArray(c[0])?c[0]:[c[0]];r.order.push(u)}return r}}]);return CFFDict}(),_=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(o){_inherits(CFFTopDict,o);var l=_createSuper(CFFTopDict);function CFFTopDict(o){var c;_classCallCheck(this,CFFTopDict);null===r&&(r=k.createTables(t));(c=l.call(this,r,o)).privateDict=null;return c}return CFFTopDict}(k)}();r.CFFTopDict=_;var C=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(o){_inherits(CFFPrivateDict,o);var l=_createSuper(CFFPrivateDict);function CFFPrivateDict(o){var c;_classCallCheck(this,CFFPrivateDict);null===r&&(r=k.createTables(t));(c=l.call(this,r,o)).subrsIndex=null;return c}return CFFPrivateDict}(k)}();r.CFFPrivateDict=C;var w={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},x=function CFFCharset(t,r,o,l){_classCallCheck(this,CFFCharset);this.predefined=t;this.format=r;this.charset=o;this.raw=l};r.CFFCharset=x;var O=function CFFEncoding(t,r,o,l){_classCallCheck(this,CFFEncoding);this.predefined=t;this.format=r;this.encoding=o;this.raw=l},T=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=T;var R=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 l.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,o){if(!(t in this.offsets))throw new l.FormatError("Not tracking location of ".concat(t));for(var c=o.data,u=this.offsets[t],h=0,d=r.length;h<d;++h){var m=5*h+u,g=m+1,y=m+2,v=m+3,S=m+4;if(29!==c[m]||0!==c[g]||0!==c[y]||0!==c[v]||0!==c[S])throw new l.FormatError("writing to an offset that is not empty");var k=r[h];c[m]=29;c[g]=k>>24&255;c[y]=k>>16&255;c[v]=k>>8&255;c[S]=255&k}}}]);return CFFOffsetTracker}(),E=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}},o=this.compileHeader(t.header);r.add(o);var c=this.compileNameIndex(t.names);r.add(c);if(t.isCIDFont&&t.topDict.hasName("FontMatrix")){var u=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(var h=0,d=t.fdArray.length;h<d;h++){var m=t.fdArray[h],g=u.slice(0);m.hasName("FontMatrix")&&(g=l.Util.transform(g,m.getByName("FontMatrix")));m.setByName("FontMatrix",g)}}var y=t.topDict.getByName("XUID");y&&y.length>16&&t.topDict.removeByName("XUID");t.topDict.setByName("charset",0);var v=this.compileTopDicts([t.topDict],r.length,t.isCIDFont);r.add(v.output);var S=v.trackers[0],k=this.compileStringIndex(t.strings.strings);r.add(k);var _=this.compileIndex(t.globalSubrIndex);r.add(_);if(t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)S.setEntryLocation("Encoding",[t.encoding.format],r);else{var C=this.compileEncoding(t.encoding);S.setEntryLocation("Encoding",[r.length],r);r.add(C)}var w=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);S.setEntryLocation("charset",[r.length],r);r.add(w);var x=this.compileCharStrings(t.charStrings);S.setEntryLocation("CharStrings",[r.length],r);r.add(x);if(t.isCIDFont){S.setEntryLocation("FDSelect",[r.length],r);var O=this.compileFDSelect(t.fdSelect);r.add(O);v=this.compileTopDicts(t.fdArray,r.length,!0);S.setEntryLocation("FDArray",[r.length],r);r.add(v.output);var T=v.trackers;this.compilePrivateDicts(t.fdArray,T,r)}this.compilePrivateDicts([t.topDict],[S],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(),o=CFFCompiler.EncodeFloatRegExp.exec(r);if(o){var l=parseFloat("1e"+((o[2]?+o[2]:0)+o[1].length));r=(Math.round(t*l)/l).toString()}var c,u,h="";for(c=0,u=r.length;c<u;++c){var d=r[c];h+="e"===d?"-"===r[++c]?"c":"b":"."===d?"a":"-"===d?"e":d}var m=[30];for(c=0,u=(h+=1&h.length?"f":"ff").length;c<u;c+=2)m.push(parseInt(h.substring(c,c+2),16));return m}},{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,4,t.offSize]}},{key:"compileNameIndex",value:function compileNameIndex(t){for(var r=new S,o=0,c=t.length;o<c;++o){for(var u=t[o],h=Math.min(u.length,127),d=new Array(h),m=0;m<h;m++){var g=u[m];(g<"!"||g>"~"||"["===g||"]"===g||"("===g||")"===g||"{"===g||"}"===g||"<"===g||">"===g||"/"===g||"%"===g)&&(g="_");d[m]=g}""===(d=d.join(""))&&(d="Bad_Font_Name");r.add((0,l.stringToBytes)(d))}return this.compileIndex(r)}},{key:"compileTopDicts",value:function compileTopDicts(t,r,o){for(var l=[],c=new S,u=0,h=t.length;u<h;++u){var d=t[u];if(o){d.removeByName("CIDFontVersion");d.removeByName("CIDFontRevision");d.removeByName("CIDFontType");d.removeByName("CIDCount");d.removeByName("UIDBase")}var m=new R,g=this.compileDict(d,m);l.push(m);c.add(g);m.offset(r)}return{trackers:l,output:c=this.compileIndex(c,l)}}},{key:"compilePrivateDicts",value:function compilePrivateDicts(t,r,o){for(var c=0,u=t.length;c<u;++c){var h=t[c],d=h.privateDict;if(!d||!h.hasName("Private"))throw new l.FormatError("There must be a private dictionary.");var m=new R,g=this.compileDict(d,m),y=o.length;m.offset(y);g.length||(y=0);r[c].setEntryLocation("Private",[g.length,y],o);o.add(g);if(d.subrsIndex&&d.hasName("Subrs")){var v=this.compileIndex(d.subrsIndex);m.setEntryLocation("Subrs",[g.length],o);o.add(v)}}}},{key:"compileDict",value:function compileDict(t,r){for(var o=[],c=t.order,u=0;u<c.length;++u){var h=c[u];if(h in t.values){var d=t.values[h],m=t.types[h];Array.isArray(m)||(m=[m]);Array.isArray(d)||(d=[d]);if(0!==d.length){for(var g=0,y=m.length;g<y;++g){var v=m[g],S=d[g];switch(v){case"num":case"sid":o=o.concat(this.encodeNumber(S));break;case"offset":var k=t.keyToNameMap[h];r.isTracking(k)||r.track(k,o.length);o=o.concat([29,0,0,0,0]);break;case"array":case"delta":o=o.concat(this.encodeNumber(S));for(var _=1,C=d.length;_<C;++_)o=o.concat(this.encodeNumber(d[_]));break;default:throw new l.FormatError("Unknown data type of ".concat(v))}}o=o.concat(t.opcodes[h])}}}return o}},{key:"compileStringIndex",value:function compileStringIndex(t){for(var r=new S,o=0,c=t.length;o<c;++o)r.add((0,l.stringToBytes)(t[o]));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 S,o=0;o<t.count;o++){var l=t.get(o);0!==l.length?r.add(l):r.add(new Uint8Array([139,14]))}return this.compileIndex(r)}},{key:"compileCharset",value:function compileCharset(t,r,o,c){var u,h=r-1;if(c)u=new Uint8Array([2,0,0,h>>8&255,255&h]);else{(u=new Uint8Array(1+2*h))[0]=0;for(var d=0,m=t.charset.length,g=!1,y=1;y<u.length;y+=2){var v=0;if(d<m){var S=t.charset[d++];if(-1===(v=o.getSID(S))){v=0;if(!g){g=!0;(0,l.warn)("Couldn't find ".concat(S," in CFF strings"))}}}u[y]=v>>8&255;u[y+1]=255&v}}return this.compileTypedArray(u)}},{key:"compileEncoding",value:function compileEncoding(t){return this.compileTypedArray(t.raw)}},{key:"compileFDSelect",value:function compileFDSelect(t){var r,o,l=t.format;switch(l){case 0:(r=new Uint8Array(1+t.fdSelect.length))[0]=l;for(o=0;o<t.fdSelect.length;o++)r[o+1]=t.fdSelect[o];break;case 3:var c=t.fdSelect[0],u=[l,0,0,0,0,c];for(o=1;o<t.fdSelect.length;o++){var h=t.fdSelect[o];if(h!==c){u.push(o>>8&255,255&o,h);c=h}}var d=(u.length-3)/3;u[1]=d>>8&255;u[2]=255&d;u.push(o>>8&255,255&o);r=new Uint8Array(u)}return this.compileTypedArray(r)}},{key:"compileTypedArray",value:function compileTypedArray(t){for(var r=[],o=0,l=t.length;o<l;++o)r[o]=t[o];return r}},{key:"compileIndex",value:function compileIndex(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=t.objects,l=o.length;if(0===l)return[0,0,0];var c,u,h=[l>>8&255,255&l],d=1;for(c=0;c<l;++c)d+=o[c].length;u=d<256?1:d<65536?2:d<16777216?3:4;h.push(u);var m=1;for(c=0;c<l+1;c++){1===u?h.push(255&m):2===u?h.push(m>>8&255,255&m):3===u?h.push(m>>16&255,m>>8&255,255&m):h.push(m>>>24&255,m>>16&255,m>>8&255,255&m);o[c]&&(m+=o[c].length)}for(c=0;c<l;c++){r[c]&&r[c].offset(h.length);for(var g=0,y=o[c].length;g<y;g++)h.push(o[c][g])}return h}}],[{key:"EncodeFloatRegExp",get:function get(){return(0,l.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]);return CFFCompiler}();r.CFFCompiler=E},(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 h;case"StandardEncoding":return u;case"MacRomanEncoding":return c;case"SymbolSetEncoding":return d;case"ZapfDingbatsEncoding":return m;case"ExpertEncoding":return o;case"MacExpertEncoding":return l;default:return null}};r.ZapfDingbatsEncoding=r.WinAnsiEncoding=r.SymbolSetEncoding=r.StandardEncoding=r.MacRomanEncoding=r.ExpertEncoding=void 0;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=o;var l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],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","","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=c;var u=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=u;var h=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=h;var d=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=d;var m=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=m},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getFontType=function getFontType(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t){case"Type1":return o?l.FontType.TYPE1STANDARD:"Type1C"===r?l.FontType.TYPE1C:l.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===r?l.FontType.CIDFONTTYPE0C:l.FontType.CIDFONTTYPE0;case"OpenType":return l.FontType.OPENTYPE;case"TrueType":return l.FontType.TRUETYPE;case"CIDFontType2":return l.FontType.CIDFONTTYPE2;case"MMType1":return l.FontType.MMTYPE1;case"Type0":return l.FontType.TYPE0;default:return l.FontType.UNKNOWN}};r.normalizeFontName=function normalizeFontName(t){return t.replace(/[,_]/g,"-").replace(/\s/g,"")};r.recoverGlyphName=recoverGlyphName;r.type1FontGlyphMapping=function type1FontGlyphMapping(t,r,o){var l,h,m,g=Object.create(null),y=!!(t.flags&d.Symbolic);if(t.isInternalFont){m=r;for(h=0;h<m.length;h++){l=o.indexOf(m[h]);g[h]=l>=0?l:0}}else if(t.baseEncodingName){m=(0,c.getEncoding)(t.baseEncodingName);for(h=0;h<m.length;h++){l=o.indexOf(m[h]);g[h]=l>=0?l:0}}else if(y)for(h in r)g[h]=r[h];else{m=c.StandardEncoding;for(h=0;h<m.length;h++){l=o.indexOf(m[h]);g[h]=l>=0?l:0}}var v,S=t.differences;if(S)for(h in S){var k=S[h];if(-1===(l=o.indexOf(k))){v||(v=(0,u.getGlyphsUnicode)());var _=recoverGlyphName(k,v);_!==k&&(l=o.indexOf(_))}g[h]=l>=0?l:0}return g};r.SEAC_ANALYSIS_ENABLED=r.MacStandardGlyphOrdering=r.FontFlags=void 0;var l=o(4),c=o(146),u=o(148),h=o(149);r.SEAC_ANALYSIS_ENABLED=!0;var d={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};r.FontFlags=d;r.MacStandardGlyphOrdering=[".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 recoverGlyphName(t,r){if(void 0!==r[t])return t;var o=(0,h.getUnicodeForGlyph)(t,r);if(-1!==o)for(var c in r)if(r[c]===o)return c;(0,l.info)("Unable to recover a standard glyph name for: "+t);return t}},(t,r,o)=>{"use strict";o.r(r);o.d(r,{getDingbatsGlyphsUnicode:()=>u,getGlyphsUnicode:()=>c});var l=o(118);const c=(0,l.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]})),u=(0,l.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,o)=>{"use strict";o.r(r);o.d(r,{getNormalizedUnicodes:()=>h,getUnicodeForGlyph:()=>getUnicodeForGlyph,getUnicodeRangeFor:()=>getUnicodeRangeFor,mapSpecialUnicodeValues:()=>mapSpecialUnicodeValues,reverseIfRtl:()=>reverseIfRtl});var l=o(118);const c=(0,l.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?c()[t]||t:173===t?45:t}function getUnicodeForGlyph(t,r){let o=r[t];if(void 0!==o)return o;if(!t)return-1;if("u"===t[0]){const r=t.length;let l;if(7===r&&"n"===t[1]&&"i"===t[2])l=t.substring(3);else{if(!(r>=5&&r<=7))return-1;l=t.substring(1)}if(l===l.toUpperCase()){o=parseInt(l,16);if(o>=0)return o}}return-1}const u=[{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(let r=0,o=u.length;r<o;r++){const o=u[r];if(t>=o.begin&&t<o.end)return r}return-1}const h=(0,l.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){const r=t.length;if(r<=1||!function isRTLRangeFor(t){let r=u[13];if(t>=r.begin&&t<r.end)return!0;r=u[11];return t>=r.begin&&t<r.end}(t.charCodeAt(0)))return t;const o=[];for(let l=r-1;l>=0;l--)o.push(t[l]);return o.join("")}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getStandardFontName=function getStandardFontName(t){var r=(0,c.normalizeFontName)(t);return u()[r]};r.getSymbolsFonts=r.getSupplementalGlyphMapForCalibri=r.getSupplementalGlyphMapForArialBlack=r.getStdFontMap=r.getSerifFonts=r.getNonStdFontMap=r.getGlyphMapForStandardFonts=r.getFontNameToFileMap=void 0;var l=o(118),c=o(147),u=(0,l.getLookupTableFactory)((function(t){t["Times-Roman"]="Times-Roman";t.Helvetica="Helvetica";t.Courier="Courier";t.Symbol="Symbol";t["Times-Bold"]="Times-Bold";t["Helvetica-Bold"]="Helvetica-Bold";t["Courier-Bold"]="Courier-Bold";t.ZapfDingbats="ZapfDingbats";t["Times-Italic"]="Times-Italic";t["Helvetica-Oblique"]="Helvetica-Oblique";t["Courier-Oblique"]="Courier-Oblique";t["Times-BoldItalic"]="Times-BoldItalic";t["Helvetica-BoldOblique"]="Helvetica-BoldOblique";t["Courier-BoldOblique"]="Courier-BoldOblique";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-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-BoldItalic"]="Helvetica-BoldOblique";t["Helvetica-Italic"]="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=u;var h=(0,l.getLookupTableFactory)((function(t){t.Courier="FoxitFixed.pfb";t["Courier-Bold"]="FoxitFixedBold.pfb";t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb";t["Courier-Oblique"]="FoxitFixedItalic.pfb";t.Helvetica="FoxitSans.pfb";t["Helvetica-Bold"]="FoxitSansBold.pfb";t["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb";t["Helvetica-Oblique"]="FoxitSansItalic.pfb";t["Times-Roman"]="FoxitSerif.pfb";t["Times-Bold"]="FoxitSerifBold.pfb";t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb";t["Times-Italic"]="FoxitSerifItalic.pfb";t.Symbol="FoxitSymbol.pfb";t.ZapfDingbats="FoxitDingbats.pfb";t["LiberationSans-Regular"]="LiberationSans-Regular.ttf";t["LiberationSans-Bold"]="LiberationSans-Bold.ttf";t["LiberationSans-Italic"]="LiberationSans-Italic.ttf";t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));r.getFontNameToFileMap=h;var d=(0,l.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=d;var m=(0,l.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=m;var g=(0,l.getLookupTableFactory)((function(t){t.Dingbats=!0;t.Symbol=!0;t.ZapfDingbats=!0}));r.getSymbolsFonts=g;var y=(0,l.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=y;var v=(0,l.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));r.getSupplementalGlyphMapForArialBlack=v;var S=(0,l.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=S},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ToUnicodeMap=r.IdentityToUnicodeMap=void 0;var l=o(4);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var c=function(){function ToUnicodeMap(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,ToUnicodeMap);this._map=t}_createClass(ToUnicodeMap,[{key:"length",get:function get(){return this._map.length}},{key:"forEach",value:function forEach(t){for(var r in this._map)t(r,this._map[r].charCodeAt(0))}},{key:"has",value:function has(t){return void 0!==this._map[t]}},{key:"get",value:function get(t){return this._map[t]}},{key:"charCodeOf",value:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var o in r)if(r[o]===t)return 0|o;return-1}},{key:"amend",value:function amend(t){for(var r in t)this._map[r]=t[r]}}]);return ToUnicodeMap}();r.ToUnicodeMap=c;var u=function(){function IdentityToUnicodeMap(t,r){_classCallCheck(this,IdentityToUnicodeMap);this.firstChar=t;this.lastChar=r}_createClass(IdentityToUnicodeMap,[{key:"length",get:function get(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function forEach(t){for(var r=this.firstChar,o=this.lastChar;r<=o;r++)t(r,r)}},{key:"has",value:function has(t){return this.firstChar<=t&&t<=this.lastChar}},{key:"get",value:function get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)}},{key:"charCodeOf",value:function charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}},{key:"amend",value:function amend(t){(0,l.unreachable)("Should not call amend()")}}]);return IdentityToUnicodeMap}();r.IdentityToUnicodeMap=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CFFFont=void 0;var l=o(144),c=o(147),u=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var h=function(){function CFFFont(t,r){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,CFFFont);this.properties=r;var o=new l.CFFParser(t,r,c.SEAC_ANALYSIS_ENABLED);this.cff=o.parse();this.cff.duplicateFirstGlyph();var h=new l.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=h.compile()}catch(o){(0,u.warn)("Failed to compile font "+r.loadedName);this.data=t}this._createBuiltInEncoding()}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(CFFFont,[{key:"numGlyphs",get:function get(){return this.cff.charStrings.count}},{key:"getCharset",value:function getCharset(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function getGlyphMapping(){var t,r,o=this.cff,l=this.properties,u=o.charset.charset;if(l.composite){t=Object.create(null);if(o.isCIDFont)for(r=0;r<u.length;r++){var h=u[r];t[l.cMap.charCodeOf(h)]=r}else for(r=0;r<o.charStrings.count;r++)t[l.cMap.charCodeOf(r)]=r;return t}var d=o.encoding?o.encoding.encoding:null;l.isInternalFont&&(d=l.defaultEncoding);return t=(0,c.type1FontGlyphMapping)(l,d,u)}},{key:"hasGlyphId",value:function hasGlyphId(t){return this.cff.hasGlyphId(t)}},{key:"_createBuiltInEncoding",value:function _createBuiltInEncoding(){var t=this.cff,r=t.charset,o=t.encoding;if(r&&o){var l=r.charset,c=o.encoding,u=[];for(var h in c){var d=c[h];if(d>=0){var m=l[d];m&&(u[h]=m)}}u.length>0&&(this.properties.builtInEncoding=u)}}}]);return CFFFont}();r.CFFFont=h},(t,r,o)=>{"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 l=o(4),c=o(144),u=o(148),h=o(146),d=o(119);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}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,o=32768;r<1240?o=107:r<33900&&(o=1131);return o}function parseCmap(t,r,o){var c,u,h,d=1===getUshort(t,r+2)?getLong(t,r+8):getLong(t,r+16),m=getUshort(t,r+d);if(4===m){getUshort(t,r+d+2);var g=getUshort(t,r+d+6)>>1;u=r+d+14;c=[];for(h=0;h<g;h++,u+=2)c[h]={end:getUshort(t,u)};u+=2;for(h=0;h<g;h++,u+=2)c[h].start=getUshort(t,u);for(h=0;h<g;h++,u+=2)c[h].idDelta=getUshort(t,u);for(h=0;h<g;h++,u+=2){var y=getUshort(t,u);if(0!==y){c[h].ids=[];for(var v=0,S=c[h].end-c[h].start+1;v<S;v++){c[h].ids[v]=getUshort(t,u+y);y+=2}}}return c}if(12===m){getLong(t,r+d+4);var k=getLong(t,r+d+12);u=r+d+16;c=[];for(h=0;h<k;h++){c.push({start:getLong(t,u),end:getLong(t,u+4),idDelta:getLong(t,u+8)-getLong(t,u)});u+=12}return c}throw new l.FormatError("unsupported cmap: ".concat(m))}function parseCff(t,r,o,l){var u=new c.CFFParser(new d.Stream(t,r,o-r),{},l).parse();return{glyphs:u.charStrings.objects,subrs:u.topDict.privateDict&&u.topDict.privateDict.subrsIndex&&u.topDict.privateDict.subrsIndex.objects,gsubrs:u.globalSubrIndex&&u.globalSubrIndex.objects,isCFFCIDFont:u.isCIDFont,fdSelect:u.fdSelect,fdArray:u.fdArray}}function lookupCmap(t,r){for(var o=r.codePointAt(0),l=0,c=0,u=t.length-1;c<u;){var h=c+u+1>>1;o<t[h].start?u=h-1:c=h}t[c].start<=o&&o<=t[c].end&&(l=t[c].idDelta+(t[c].ids?t[c].ids[o-t[c].start]:o)&65535);return{charCode:o,glyphId:l}}function compileGlyf(t,r,o){function moveTo(t,o){r.push({cmd:"moveTo",args:[t,o]})}function lineTo(t,o){r.push({cmd:"lineTo",args:[t,o]})}function quadraticCurveTo(t,o,l,c){r.push({cmd:"quadraticCurveTo",args:[t,o,l,c]})}var l,c=0,u=(t[c]<<24|t[c+1]<<16)>>16,h=0,d=0;c+=10;if(u<0)do{l=t[c]<<8|t[c+1];var m=t[c+2]<<8|t[c+3];c+=4;var g=void 0,y=void 0;if(1&l){g=(t[c]<<24|t[c+1]<<16)>>16;y=(t[c+2]<<24|t[c+3]<<16)>>16;c+=4}else{g=t[c++];y=t[c++]}if(2&l){h=g;d=y}else{h=0;d=0}var v=1,S=1,k=0,_=0;if(8&l){v=S=(t[c]<<24|t[c+1]<<16)/1073741824;c+=2}else if(64&l){v=(t[c]<<24|t[c+1]<<16)/1073741824;S=(t[c+2]<<24|t[c+3]<<16)/1073741824;c+=4}else if(128&l){v=(t[c]<<24|t[c+1]<<16)/1073741824;k=(t[c+2]<<24|t[c+3]<<16)/1073741824;_=(t[c+4]<<24|t[c+5]<<16)/1073741824;S=(t[c+6]<<24|t[c+7]<<16)/1073741824;c+=8}var C=o.glyphs[m];if(C){r.push({cmd:"save"},{cmd:"transform",args:[v,k,_,S,h,d]});compileGlyf(C,r,o);r.push({cmd:"restore"})}}while(32&l);else{var w,x,O=[];for(w=0;w<u;w++){O.push(t[c]<<8|t[c+1]);c+=2}c+=2+(t[c]<<8|t[c+1]);for(var T=O[O.length-1]+1,R=[];R.length<T;){var E=1;8&(l=t[c++])&&(E+=t[c++]);for(;E-- >0;)R.push({flags:l})}for(w=0;w<T;w++){switch(18&R[w].flags){case 0:h+=(t[c]<<24|t[c+1]<<16)>>16;c+=2;break;case 2:h-=t[c++];break;case 18:h+=t[c++]}R[w].x=h}for(w=0;w<T;w++){switch(36&R[w].flags){case 0:d+=(t[c]<<24|t[c+1]<<16)>>16;c+=2;break;case 4:d-=t[c++];break;case 36:d+=t[c++]}R[w].y=d}var M=0;for(c=0;c<u;c++){var D=O[c],j=R.slice(M,D+1);if(1&j[0].flags)j.push(j[0]);else if(1&j[j.length-1].flags)j.unshift(j[j.length-1]);else{var L={flags:1,x:(j[0].x+j[j.length-1].x)/2,y:(j[0].y+j[j.length-1].y)/2};j.unshift(L);j.push(L)}moveTo(j[0].x,j[0].y);for(w=1,x=j.length;w<x;w++)if(1&j[w].flags)lineTo(j[w].x,j[w].y);else if(1&j[w+1].flags){quadraticCurveTo(j[w].x,j[w].y,j[w+1].x,j[w+1].y);w++}else quadraticCurveTo(j[w].x,j[w].y,(j[w].x+j[w+1].x)/2,(j[w].y+j[w+1].y)/2);M=D+1}}}function compileCharString(t,r,o,c){function moveTo(t,o){r.push({cmd:"moveTo",args:[t,o]})}function lineTo(t,o){r.push({cmd:"lineTo",args:[t,o]})}function bezierCurveTo(t,o,l,c,u,h){r.push({cmd:"bezierCurveTo",args:[t,o,l,c,u,h]})}var u=[],d=0,m=0,g=0;!function parse(t){for(var y=0;y<t.length;){var v=!1,S=t[y++],k=void 0,_=void 0,C=void 0,w=void 0,x=void 0,O=void 0,T=void 0,R=void 0;switch(S){case 1:case 3:g+=u.length>>1;v=!0;break;case 4:m+=u.pop();moveTo(d,m);v=!0;break;case 5:for(;u.length>0;){d+=u.shift();m+=u.shift();lineTo(d,m)}break;case 6:for(;u.length>0;){lineTo(d+=u.shift(),m);if(0===u.length)break;m+=u.shift();lineTo(d,m)}break;case 7:for(;u.length>0;){m+=u.shift();lineTo(d,m);if(0===u.length)break;lineTo(d+=u.shift(),m)}break;case 8:for(;u.length>0;){k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d,m)}break;case 10:T=u.pop();R=null;if(o.isCFFCIDFont){var E=o.fdSelect.getFDIndex(c);if(E>=0&&E<o.fdArray.length){var M=o.fdArray[E],D=void 0;M.privateDict&&M.privateDict.subrsIndex&&(D=M.privateDict.subrsIndex.objects);D&&(R=D[T+=getSubroutineBias(D)])}else(0,l.warn)("Invalid fd index for glyph index.")}else R=o.subrs[T+o.subrsBias];R&&parse(R);break;case 11:return;case 12:switch(S=t[y++]){case 34:_=(k=d+u.shift())+u.shift();x=m+u.shift();d=_+u.shift();bezierCurveTo(k,m,_,x,d,x);_=(k=d+u.shift())+u.shift();d=_+u.shift();bezierCurveTo(k,x,_,m,d,m);break;case 35:k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d,m);k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d,m);u.pop();break;case 36:bezierCurveTo(k=d+u.shift(),x=m+u.shift(),_=k+u.shift(),O=x+u.shift(),d=_+u.shift(),O);bezierCurveTo(k=d+u.shift(),O,_=k+u.shift(),O+u.shift(),d=_+u.shift(),m);break;case 37:var j=d,L=m;k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d,m);k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_;m=w;Math.abs(d-j)>Math.abs(m-L)?d+=u.shift():m+=u.shift();bezierCurveTo(k,C,_,w,d,m);break;default:throw new l.FormatError("unknown operator: 12 ".concat(S))}break;case 14:if(u.length>=4){var N=u.pop(),U=u.pop();m=u.pop();d=u.pop();r.push({cmd:"save"},{cmd:"translate",args:[d,m]});var H=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[N]]));compileCharString(o.glyphs[H.glyphId],r,o,H.glyphId);r.push({cmd:"restore"});H=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[U]]));compileCharString(o.glyphs[H.glyphId],r,o,H.glyphId)}return;case 18:g+=u.length>>1;v=!0;break;case 19:case 20:y+=(g+=u.length>>1)+7>>3;v=!0;break;case 21:m+=u.pop();moveTo(d+=u.pop(),m);v=!0;break;case 22:moveTo(d+=u.pop(),m);v=!0;break;case 23:g+=u.length>>1;v=!0;break;case 24:for(;u.length>2;){k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d,m)}d+=u.shift();m+=u.shift();lineTo(d,m);break;case 25:for(;u.length>6;){d+=u.shift();m+=u.shift();lineTo(d,m)}k=d+u.shift();C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d,m);break;case 26:u.length%2&&(d+=u.shift());for(;u.length>0;){k=d;C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_;m=w+u.shift();bezierCurveTo(k,C,_,w,d,m)}break;case 27:u.length%2&&(m+=u.shift());for(;u.length>0;)bezierCurveTo(k=d+u.shift(),C=m,_=k+u.shift(),w=C+u.shift(),d=_+u.shift(),m=w);break;case 28:u.push((t[y]<<24|t[y+1]<<16)>>16);y+=2;break;case 29:T=u.pop()+o.gsubrsBias;(R=o.gsubrs[T])&&parse(R);break;case 30:for(;u.length>0;){k=d;C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+(1===u.length?u.shift():0);bezierCurveTo(k,C,_,w,d,m);if(0===u.length)break;k=d+u.shift();C=m;_=k+u.shift();w=C+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d=_+(1===u.length?u.shift():0),m)}break;case 31:for(;u.length>0;){k=d+u.shift();C=m;_=k+u.shift();w=C+u.shift();m=w+u.shift();bezierCurveTo(k,C,_,w,d=_+(1===u.length?u.shift():0),m);if(0===u.length)break;k=d;C=m+u.shift();_=k+u.shift();w=C+u.shift();d=_+u.shift();m=w+(1===u.length?u.shift():0);bezierCurveTo(k,C,_,w,d,m)}break;default:if(S<32)throw new l.FormatError("unknown operator: ".concat(S));if(S<247)u.push(S-139);else if(S<251)u.push(256*(S-247)+t[y++]+108);else if(S<255)u.push(256*-(S-251)-t[y++]-108);else{u.push((t[y]<<24|t[y+1]<<16|t[y+2]<<8|t[y+3])/65536);y+=4}}v&&(u.length=0)}}(t)}var m=[],g=function(){function CompiledFont(t){_classCallCheck(this,CompiledFont);this.constructor===CompiledFont&&(0,l.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),o=r.charCode,l=r.glyphId,c=this.compiledGlyphs[l];if(!c)try{c=this.compileGlyph(this.glyphs[l],l);this.compiledGlyphs[l]=c}catch(t){this.compiledGlyphs[l]=m;void 0===this.compiledCharCodeToGlyphId[o]&&(this.compiledCharCodeToGlyphId[o]=l);throw t}void 0===this.compiledCharCodeToGlyphId[o]&&(this.compiledCharCodeToGlyphId[o]=l);return c}},{key:"compileGlyph",value:function compileGlyph(t,r){if(!t||0===t.length||14===t[0])return m;var o=this.fontMatrix;if(this.isCFFCIDFont){var c=this.fdSelect.getFDIndex(r);if(c>=0&&c<this.fdArray.length){o=this.fdArray[c].getByName("FontMatrix")||l.FONT_IDENTITY_MATRIX}else(0,l.warn)("Invalid fd index for glyph index.")}var u=[{cmd:"save"},{cmd:"transform",args:o.slice()},{cmd:"scale",args:["size","-size"]}];this.compileGlyphImpl(t,u,r);u.push({cmd:"restore"});return u}},{key:"compileGlyphImpl",value:function compileGlyphImpl(){(0,l.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function hasBuiltPath(t){var r=lookupCmap(this.cmap,t),o=r.charCode,l=r.glyphId;return void 0!==this.compiledGlyphs[l]&&void 0!==this.compiledCharCodeToGlyphId[o]}}]);return CompiledFont}(),y=function(t){_inherits(TrueTypeCompiled,t);var r=_createSuper(TrueTypeCompiled);function TrueTypeCompiled(t,o,l){var c;_classCallCheck(this,TrueTypeCompiled);(c=r.call(this,l||[488e-6,0,0,488e-6,0,0])).glyphs=t;c.cmap=o;return c}_createClass(TrueTypeCompiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r){compileGlyf(t,r,this)}}]);return TrueTypeCompiled}(g),v=function(t){_inherits(Type2Compiled,t);var r=_createSuper(Type2Compiled);function Type2Compiled(t,o,l,c){var h;_classCallCheck(this,Type2Compiled);(h=r.call(this,l||[.001,0,0,.001,0,0])).glyphs=t.glyphs;h.gsubrs=t.gsubrs||[];h.subrs=t.subrs||[];h.cmap=o;h.glyphNameMap=c||(0,u.getGlyphsUnicode)();h.gsubrsBias=getSubroutineBias(h.gsubrs);h.subrsBias=getSubroutineBias(h.subrs);h.isCFFCIDFont=t.isCFFCIDFont;h.fdSelect=t.fdSelect;h.fdArray=t.fdArray;return h}_createClass(Type2Compiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r,o){compileCharString(t,r,this,o)}}]);return Type2Compiled}(g),S=function(){function FontRendererFactory(){_classCallCheck(this,FontRendererFactory)}_createClass(FontRendererFactory,null,[{key:"create",value:function create(t,r){for(var o,c,u,h,d,m,g=new Uint8Array(t.data),S=getUshort(g,4),k=0,_=12;k<S;k++,_+=16){var C=(0,l.bytesToString)(g.subarray(_,_+4)),w=getLong(g,_+8),x=getLong(g,_+12);switch(C){case"cmap":o=parseCmap(g,w);break;case"glyf":c=g.subarray(w,w+x);break;case"loca":u=g.subarray(w,w+x);break;case"head":m=getUshort(g,w+18);d=getUshort(g,w+50);break;case"CFF ":h=parseCff(g,w,w+x,r)}}if(c){var O=m?[1/m,0,0,1/m,0,0]:t.fontMatrix;return new y(function parseGlyfTable(t,r,o){var l,c;if(o){l=4;c=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}}else{l=2;c=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1}}for(var u=[],h=c(r,0),d=l;d<r.length;d+=l){var m=c(r,d);u.push(t.subarray(h,m));h=m}return u}(c,u,d),o,O)}return new v(h,o,t.fontMatrix,t.glyphNameMap)}}]);return FontRendererFactory}();r.FontRendererFactory=S},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.GlyfTable=void 0;function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var o=function(){function GlyfTable(t){var r=t.glyfTable,o=t.isGlyphLocationsLong,c=t.locaTable,u=t.numGlyphs;_classCallCheck(this,GlyfTable);this.glyphs=[];for(var h=new DataView(c.buffer,c.byteOffset,c.byteLength),d=new DataView(r.buffer,r.byteOffset,r.byteLength),m=o?4:2,g=o?h.getUint32(0):2*h.getUint16(0),y=0,v=0;v<u;v++){y+=m;var S=o?h.getUint32(y):2*h.getUint16(y);if(S!==g){var k=l.parse(g,d);this.glyphs.push(k);g=S}else this.glyphs.push(new l({}))}}_createClass(GlyfTable,[{key:"getSize",value:function getSize(){return this.glyphs.reduce((function(t,r){return t+(r.getSize()+3&-4)}),0)}},{key:"write",value:function write(){var t=this.getSize(),r=new DataView(new ArrayBuffer(t)),o=t>131070,l=o?4:2,c=new DataView(new ArrayBuffer((this.glyphs.length+1)*l));o?c.setUint32(0,0):c.setUint16(0,0);var u,h=0,d=0,m=_createForOfIteratorHelper(this.glyphs);try{for(m.s();!(u=m.n()).done;){h=(h+=u.value.write(h,r))+3&-4;d+=l;o?c.setUint32(d,h):c.setUint16(d,h>>1)}}catch(t){m.e(t)}finally{m.f()}return{isLocationLong:o,loca:new Uint8Array(c.buffer),glyf:new Uint8Array(r.buffer)}}},{key:"scale",value:function scale(t){for(var r=0,o=this.glyphs.length;r<o;r++)this.glyphs[r].scale(t[r])}}]);return GlyfTable}();r.GlyfTable=o;var l=function(){function Glyph(t){var r=t.header,o=void 0===r?null:r,l=t.simple,c=void 0===l?null:l,u=t.composites,h=void 0===u?null:u;_classCallCheck(this,Glyph);this.header=o;this.simple=c;this.composites=h}_createClass(Glyph,[{key:"getSize",value:function getSize(){if(!this.header)return 0;var t=this.simple?this.simple.getSize():this.composites.reduce((function(t,r){return t+r.getSize()}),0);return this.header.getSize()+t}},{key:"write",value:function write(t,r){if(!this.header)return 0;var o=t;t+=this.header.write(t,r);if(this.simple)t+=this.simple.write(t,r);else{var l,c=_createForOfIteratorHelper(this.composites);try{for(c.s();!(l=c.n()).done;){t+=l.value.write(t,r)}}catch(t){c.e(t)}finally{c.f()}}return t-o}},{key:"scale",value:function scale(t){if(this.header){var r=(this.header.xMin+this.header.xMax)/2;this.header.scale(r,t);if(this.simple)this.simple.scale(r,t);else{var o,l=_createForOfIteratorHelper(this.composites);try{for(l.s();!(o=l.n()).done;){o.value.scale(r,t)}}catch(t){l.e(t)}finally{l.f()}}}}}],[{key:"parse",value:function parse(t,r){var o=_slicedToArray(c.parse(t,r),2),l=o[0],u=o[1];t+=l;if(u.numberOfContours<0){for(var m=[];;){var g=_slicedToArray(d.parse(t,r),2),y=g[0],v=g[1];t+=y;m.push(v);if(!(32&v.flags))break}return new Glyph({header:u,composites:m})}return new Glyph({header:u,simple:h.parse(t,r,u.numberOfContours)})}}]);return Glyph}(),c=function(){function GlyphHeader(t){var r=t.numberOfContours,o=t.xMin,l=t.yMin,c=t.xMax,u=t.yMax;_classCallCheck(this,GlyphHeader);this.numberOfContours=r;this.xMin=o;this.yMin=l;this.xMax=c;this.yMax=u}_createClass(GlyphHeader,[{key:"getSize",value:function getSize(){return 10}},{key:"write",value:function write(t,r){r.setInt16(t,this.numberOfContours);r.setInt16(t+2,this.xMin);r.setInt16(t+4,this.yMin);r.setInt16(t+6,this.xMax);r.setInt16(t+8,this.yMax);return 10}},{key:"scale",value:function scale(t,r){this.xMin=Math.round(t+(this.xMin-t)*r);this.xMax=Math.round(t+(this.xMax-t)*r)}}],[{key:"parse",value:function parse(t,r){return[10,new GlyphHeader({numberOfContours:r.getInt16(t),xMin:r.getInt16(t+2),yMin:r.getInt16(t+4),xMax:r.getInt16(t+6),yMax:r.getInt16(t+8)})]}}]);return GlyphHeader}(),u=function Contour(t){var r=t.flags,o=t.xCoordinates,l=t.yCoordinates;_classCallCheck(this,Contour);this.xCoordinates=o;this.yCoordinates=l;this.flags=r},h=function(){function SimpleGlyph(t){var r=t.contours,o=t.instructions;_classCallCheck(this,SimpleGlyph);this.contours=r;this.instructions=o}_createClass(SimpleGlyph,[{key:"getSize",value:function getSize(){var t,r=2*this.contours.length+2+this.instructions.length,o=0,l=0,c=_createForOfIteratorHelper(this.contours);try{for(c.s();!(t=c.n()).done;){var u=t.value;r+=u.flags.length;for(var h=0,d=u.xCoordinates.length;h<d;h++){var m=u.xCoordinates[h],g=u.yCoordinates[h],y=Math.abs(m-o);y>255?r+=2:y>0&&(r+=1);o=m;(y=Math.abs(g-l))>255?r+=2:y>0&&(r+=1);l=g}}}catch(t){c.e(t)}finally{c.f()}return r}},{key:"write",value:function write(t,r){var o,l=t,c=[],u=[],h=[],d=0,m=0,g=_createForOfIteratorHelper(this.contours);try{for(g.s();!(o=g.n()).done;){for(var y=o.value,v=0,S=y.xCoordinates.length;v<S;v++){var k=y.flags[v],_=y.xCoordinates[v],C=_-d;if(0===C){k|=16;c.push(0)}else{var w=Math.abs(C);if(w<=255){k|=C>=0?18:2;c.push(w)}else c.push(C)}d=_;var x=y.yCoordinates[v];if(0===(C=x-m)){k|=32;u.push(0)}else{var O=Math.abs(C);if(O<=255){k|=C>=0?36:4;u.push(O)}else u.push(C)}m=x;h.push(k)}r.setUint16(t,c.length-1);t+=2}}catch(t){g.e(t)}finally{g.f()}r.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}for(var T=0,R=h;T<R.length;T++){var E=R[T];r.setUint8(t++,E)}for(var M=0,D=c.length;M<D;M++){var j=c[M],L=h[M];if(2&L)r.setUint8(t++,j);else if(!(16&L)){r.setInt16(t,j);t+=2}}for(var N=0,U=u.length;N<U;N++){var H=u[N],W=h[N];if(4&W)r.setUint8(t++,H);else if(!(32&W)){r.setInt16(t,H);t+=2}}return t-l}},{key:"scale",value:function scale(t,r){var o,l=_createForOfIteratorHelper(this.contours);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(0!==c.xCoordinates.length)for(var u=0,h=c.xCoordinates.length;u<h;u++)c.xCoordinates[u]=Math.round(t+(c.xCoordinates[u]-t)*r)}}catch(t){l.e(t)}finally{l.f()}}}],[{key:"parse",value:function parse(t,r,o){for(var l=[],c=0;c<o;c++){var h=r.getUint16(t);t+=2;l.push(h)}var d=l[o-1]+1,m=r.getUint16(t);t+=2;var g=new Uint8Array(r).slice(t,t+m);t+=m;for(var y=[],v=0;v<d;t++,v++){var S=r.getUint8(t);y.push(S);if(8&S){var k=r.getUint8(++t);S^=8;for(var _=0;_<k;_++)y.push(S);v+=k}}for(var C=[],w=[],x=[],O=[],T=[],R=0,E=0,M=0;M<d;M++){var D=y[M];if(2&D){var j=r.getUint8(t++);E+=16&D?j:-j;w.push(E)}else if(16&D)w.push(E);else{E+=r.getInt16(t);t+=2;w.push(E)}if(l[R]===M){R++;C.push(w);w=[]}}E=0;R=0;for(var L=0;L<d;L++){var N=y[L];if(4&N){var U=r.getUint8(t++);E+=32&N?U:-U;x.push(E)}else if(32&N)x.push(E);else{E+=r.getInt16(t);t+=2;x.push(E)}O.push(1&N|64&N);if(l[R]===L){w=C[R];R++;T.push(new u({flags:O,xCoordinates:w,yCoordinates:x}));x=[];O=[]}}return new SimpleGlyph({contours:T,instructions:g})}}]);return SimpleGlyph}(),d=function(){function CompositeGlyph(t){var r=t.flags,o=t.glyphIndex,l=t.argument1,c=t.argument2,u=t.transf,h=t.instructions;_classCallCheck(this,CompositeGlyph);this.flags=r;this.glyphIndex=o;this.argument1=l;this.argument2=c;this.transf=u;this.instructions=h}_createClass(CompositeGlyph,[{key:"getSize",value:function getSize(){var t=4+2*this.transf.length;256&this.flags&&(t+=2+this.instructions.length);t+=2;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(t+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(t+=2);return t}},{key:"write",value:function write(t,r){var o=t;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1);r.setUint16(t,this.flags);r.setUint16(t+2,this.glyphIndex);t+=4;if(1&this.flags){if(2&this.flags){r.setInt16(t,this.argument1);r.setInt16(t+2,this.argument2)}else{r.setUint16(t,this.argument1);r.setUint16(t+2,this.argument2)}t+=4}else{r.setUint8(t,this.argument1);r.setUint8(t+1,this.argument2);t+=2}if(256&this.flags){r.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}}return t-o}},{key:"scale",value:function scale(t,r){}}],[{key:"parse",value:function parse(t,r){var o,l,c=t,u=[],h=r.getUint16(t),d=r.getUint16(t+2);t+=4;if(1&h){if(2&h){o=r.getInt16(t);l=r.getInt16(t+2)}else{o=r.getUint16(t);l=r.getUint16(t+2)}t+=4;h^=1}else{o=r.getUint8(t);l=r.getUint8(t+1);if(2&h){var m=127&o;o=128&o?-m:m;var g=127&l;l=128&l?-g:g}t+=2}if(8&h){u.push(r.getUint16(t));t+=2}else if(64&h){u.push(r.getUint16(t),r.getUint16(t+2));t+=4}else if(128&h){u.push(r.getUint16(t),r.getUint16(t+2),r.getUint16(t+4),r.getUint16(t+6));t+=8}var y=null;if(256&h){var v=r.getUint16(t);t+=2;y=new Uint8Array(r).slice(t,t+v);t+=v}return[t-c,new CompositeGlyph({flags:h,glyphIndex:d,argument1:o,argument2:l,transf:u,instructions:y})]}}]);return CompositeGlyph}()},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.OpenTypeFileBuilder=void 0;var l=o(118),c=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function writeInt16(t,r,o){t[r]=o>>8&255;t[r+1]=255&o}function writeInt32(t,r,o){t[r]=o>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}function writeData(t,r,o){if(o instanceof Uint8Array)t.set(o,r);else if("string"==typeof o)for(var l=0,c=o.length;l<c;l++)t[r++]=255&o.charCodeAt(l);else for(var u=0,h=o.length;u<h;u++)t[r++]=255&o[u]}var u=function(){function OpenTypeFileBuilder(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,OpenTypeFileBuilder);this.sfnt=t;this.tables=Object.create(null)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(OpenTypeFileBuilder,[{key:"toArray",value:function toArray(){var t=this.sfnt,r=this.tables,o=Object.keys(r);o.sort();var u,h,d,m,g,y=o.length,v=12+16*y,S=[v];for(u=0;u<y;u++){v+=((m=r[o[u]]).length+3&-4)>>>0;S.push(v)}var k=new Uint8Array(v);for(u=0;u<y;u++){m=r[o[u]];writeData(k,S[u],m)}"true"===t&&(t=(0,c.string32)(65536));k[0]=255&t.charCodeAt(0);k[1]=255&t.charCodeAt(1);k[2]=255&t.charCodeAt(2);k[3]=255&t.charCodeAt(3);writeInt16(k,4,y);var _=OpenTypeFileBuilder.getSearchParams(y,16);writeInt16(k,6,_.range);writeInt16(k,8,_.entry);writeInt16(k,10,_.rangeShift);v=12;for(u=0;u<y;u++){g=o[u];k[v]=255&g.charCodeAt(0);k[v+1]=255&g.charCodeAt(1);k[v+2]=255&g.charCodeAt(2);k[v+3]=255&g.charCodeAt(3);var C=0;for(h=S[u],d=S[u+1];h<d;h+=4){C=C+(0,l.readUint32)(k,h)>>>0}writeInt32(k,v+4,C);writeInt32(k,v+8,S[u]);writeInt32(k,v+12,r[g].length);v+=16}return k}},{key:"addTable",value:function addTable(t,r){if(t in this.tables)throw new Error("Table "+t+" already exists");this.tables[t]=r}}],[{key:"getSearchParams",value:function getSearchParams(t,r){for(var o=1,l=0;(o^t)>o;){o<<=1;l++}var c=o*r;return{range:c,entry:l,rangeShift:r*t-c}}}]);return OpenTypeFileBuilder}();r.OpenTypeFileBuilder=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Type1Font=void 0;var l=o(144),c=o(147),u=o(118),h=o(119),d=o(157),m=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function findBlock(t,r,o){for(var l=t.length,c=r.length,h=l-c,d=o,m=!1;d<h;){for(var g=0;g<c&&t[d+g]===r[g];)g++;if(g>=c){d+=g;for(;d<l&&(0,u.isWhiteSpace)(t[d]);)d++;m=!0;break}d++}return{found:m,length:d}}var g=function(){function Type1Font(t,r,o){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Type1Font);var l=o.length1,u=(o.length2,r.peekBytes(6)),g=128===u[0]&&1===u[1];if(g){r.skip(6);l=u[5]<<24|u[4]<<16|u[3]<<8|u[2]}var y=function getHeaderBlock(t,r){var o,l,c,u,d=[101,101,120,101,99],g=t.pos;try{l=(o=t.getBytes(r)).length}catch(t){}if(l===r&&(c=findBlock(o,d,r-2*d.length)).found&&c.length===r)return{stream:new h.Stream(o),length:r};(0,m.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=g;for(;0!==(c=findBlock(t.peekBytes(2048),d,0)).length;){t.pos+=c.length;if(c.found){u=t.pos-g;break}}t.pos=g;if(u)return{stream:new h.Stream(t.getBytes(u)),length:u};(0,m.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new h.Stream(t.getBytes(r)),length:r}}(r,l);new d.Type1Parser(y.stream,!1,c.SEAC_ANALYSIS_ENABLED).extractFontHeader(o);g&&(u=r.getBytes(6))[5]<<24|u[4]<<16|u[3]<<8|u[2];var v=function getEexecBlock(t,r){var o=t.getBytes();return{stream:new h.Stream(o),length:o.length}}(r),S=new d.Type1Parser(v.stream,!0,c.SEAC_ANALYSIS_ENABLED).extractFontProgram(o);for(var k in S.properties)o[k]=S.properties[k];var _=S.charstrings,C=this.getType2Charstrings(_),w=this.getType2Subrs(S.subrs);this.charstrings=_;this.data=this.wrap(t,C,this.charstrings,w,o);this.seacs=this.getSeacs(S.charstrings)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Type1Font,[{key:"numGlyphs",get:function get(){return this.charstrings.length+1}},{key:"getCharset",value:function getCharset(){for(var t=[".notdef"],r=this.charstrings,o=0;o<r.length;o++)t.push(r[o].glyphName);return t}},{key:"getGlyphMapping",value:function getGlyphMapping(t){var r=this.charstrings;if(t.composite){for(var o=Object.create(null),l=0,u=r.length;l<u;l++){o[t.cMap.charCodeOf(l)]=l+1}return o}var h,d,m=[".notdef"];for(d=0;d<r.length;d++)m.push(r[d].glyphName);var g=t.builtInEncoding;if(g){h=Object.create(null);for(var y in g)(d=m.indexOf(g[y]))>=0&&(h[y]=d)}return(0,c.type1FontGlyphMapping)(t,h,m)}},{key:"hasGlyphId",value:function hasGlyphId(t){return!(t<0||t>=this.numGlyphs)&&(0===t||this.charstrings[t-1].charstring.length>0)}},{key:"getSeacs",value:function getSeacs(t){for(var r=[],o=0,l=t.length;o<l;o++){var c=t[o];c.seac&&(r[o+1]=c.seac)}return r}},{key:"getType2Charstrings",value:function getType2Charstrings(t){for(var r=[],o=0,l=t.length;o<l;o++)r.push(t[o].charstring);return r}},{key:"getType2Subrs",value:function getType2Subrs(t){var r=0,o=t.length;r=o<1133?107:o<33769?1131:32768;var l,c=[];for(l=0;l<r;l++)c.push([11]);for(l=0;l<o;l++)c.push(t[l]);return c}},{key:"wrap",value:function wrap(t,r,o,c,u){var h=new l.CFF;h.header=new l.CFFHeader(1,0,4,4);h.names=[t];var d=new l.CFFTopDict;d.setByName("version",391);d.setByName("Notice",392);d.setByName("FullName",393);d.setByName("FamilyName",394);d.setByName("Weight",395);d.setByName("Encoding",null);d.setByName("FontMatrix",u.fontMatrix);d.setByName("FontBBox",u.bbox);d.setByName("charset",null);d.setByName("CharStrings",null);d.setByName("Private",null);h.topDict=d;var m=new l.CFFStrings;m.add("Version 0.11");m.add("See original notice");m.add(t);m.add(t);m.add("Medium");h.strings=m;h.globalSubrIndex=new l.CFFIndex;var g,y,v=r.length,S=[".notdef"];for(g=0;g<v;g++){var k=o[g].glyphName;-1===l.CFFStandardStrings.indexOf(k)&&m.add(k);S.push(k)}h.charset=new l.CFFCharset(!1,0,S);var _=new l.CFFIndex;_.add([139,14]);for(g=0;g<v;g++)_.add(r[g]);h.charStrings=_;var C=new l.CFFPrivateDict;C.setByName("Subrs",null);var w=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(g=0,y=w.length;g<y;g++){var x=w[g];if(x in u.privateData){var O=u.privateData[x];if(Array.isArray(O))for(var T=O.length-1;T>0;T--)O[T]-=O[T-1];C.setByName(x,O)}}h.topDict.privateDict=C;var R=new l.CFFIndex;for(g=0,y=c.length;g<y;g++)R.add(c[g]);C.subrsIndex=R;return new l.CFFCompiler(h).compile()}}]);return Type1Font}();r.Type1Font=g},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Type1Parser=void 0;var l=o(146),c=o(118),u=o(119),h=o(4);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=function Type1CharStringClosure(){var t=[4],r=[5],o=[6],l=[7],c=[8],u=[12,35],d=[14],m=[21],g=[22],y=[30],v=[31];return function(){function Type1CharString(){_classCallCheck(this,Type1CharString);this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}_createClass(Type1CharString,[{key:"convert",value:function convert(S,k,_){for(var C,w,x,O=S.length,T=!1,R=0;R<O;R++){var E=S[R];if(E<32){12===E&&(E=(E<<8)+S[++R]);switch(E){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){T=!0;break}var M=this.stack.pop();this.stack.push(0,M);break}T=this.executeCommand(1,t);break;case 5:T=this.executeCommand(2,r);break;case 6:T=this.executeCommand(1,o);break;case 7:T=this.executeCommand(1,l);break;case 8:T=this.executeCommand(6,c);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){T=!0;break}if(!k[x=this.stack.pop()]){T=!0;break}T=this.convert(k[x],k,_);break;case 11:return T;case 13:if(this.stack.length<2){T=!0;break}C=this.stack.pop();w=this.stack.pop();this.lsb=w;this.width=C;this.stack.push(C,w);T=this.executeCommand(2,g);break;case 14:this.output.push(d[0]);break;case 21:if(this.flexing)break;T=this.executeCommand(2,m);break;case 22:if(this.flexing){this.stack.push(0);break}T=this.executeCommand(1,g);break;case 30:T=this.executeCommand(4,y);break;case 31:T=this.executeCommand(4,v);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:if(_){var D=this.stack[this.stack.length-5];this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-D;T=this.executeCommand(0,d)}else T=this.executeCommand(4,d);break;case 3079:if(this.stack.length<4){T=!0;break}this.stack.pop();C=this.stack.pop();var j=this.stack.pop();w=this.stack.pop();this.lsb=w;this.width=C;this.stack.push(C,w,j);T=this.executeCommand(3,m);break;case 3084:if(this.stack.length<2){T=!0;break}var L=this.stack.pop(),N=this.stack.pop();this.stack.push(N/L);break;case 3088:if(this.stack.length<2){T=!0;break}x=this.stack.pop();var U=this.stack.pop();if(0===x&&3===U){var H=this.stack.splice(this.stack.length-17,17);this.stack.push(H[2]+H[0],H[3]+H[1],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14]);T=this.executeCommand(13,u,!0);this.flexing=!1;this.stack.push(H[15],H[16])}else 1===x&&0===U&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,h.warn)('Unknown type 1 charstring command of "'+E+'"')}if(T)break}else{E<=246?E-=139:E=E<=250?256*(E-247)+S[++R]+108:E<=254?-256*(E-251)-S[++R]-108:(255&S[++R])<<24|(255&S[++R])<<16|(255&S[++R])<<8|(255&S[++R])<<0;this.stack.push(E)}}return T}},{key:"executeCommand",value:function executeCommand(t,r,o){var l=this.stack.length;if(t>l)return!0;for(var c=l-t,u=c;u<l;u++){var h=this.stack[u];if(Number.isInteger(h))this.output.push(28,h>>8&255,255&h);else{h=65536*h|0;this.output.push(255,h>>24&255,h>>16&255,h>>8&255,255&h)}}this.output.push.apply(this.output,r);o?this.stack.splice(c,t):this.stack.length=0;return!1}}]);return Type1CharString}()}(),m=function Type1ParserClosure(){function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function decrypt(t,r,o){if(o>=t.length)return new Uint8Array(0);var l,c,u=0|r;for(l=0;l<o;l++)u=52845*(t[l]+u)+22719&65535;var h=t.length-o,d=new Uint8Array(h);for(l=o,c=0;c<h;l++,c++){var m=t[l];d[c]=m^u>>8;u=52845*(m+u)+22719&65535}return d}function isSpecial(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}return function(){function Type1Parser(t,r,o){_classCallCheck(this,Type1Parser);if(r){var l=t.getBytes(),h=!((isHexDigit(l[0])||(0,c.isWhiteSpace)(l[0]))&&isHexDigit(l[1])&&isHexDigit(l[2])&&isHexDigit(l[3])&&isHexDigit(l[4])&&isHexDigit(l[5])&&isHexDigit(l[6])&&isHexDigit(l[7]));t=new u.Stream(h?decrypt(l,55665,4):function decryptAscii(t,r,o){var l,c,u=0|r,h=t.length,d=new Uint8Array(h>>>1);for(l=0,c=0;l<h;l++){var m=t[l];if(isHexDigit(m)){l++;for(var g=void 0;l<h&&!isHexDigit(g=t[l]);)l++;if(l<h){var y=parseInt(String.fromCharCode(m,g),16);d[c++]=y^u>>8;u=52845*(y+u)+22719&65535}}}return d.slice(o,c)}(l,55665,4))}this.seacAnalysisEnabled=!!o;this.stream=t;this.nextChar()}_createClass(Type1Parser,[{key:"readNumberArray",value:function readNumberArray(){this.getToken();for(var t=[];;){var r=this.getToken();if(null===r||"]"===r||"}"===r)break;t.push(parseFloat(r||0))}return t}},{key:"readNumber",value:function readNumber(){var t=this.getToken();return parseFloat(t||0)}},{key:"readInt",value:function readInt(){var t=this.getToken();return 0|parseInt(t||0,10)}},{key:"readBoolean",value:function readBoolean(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function 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,c.isWhiteSpace)(r))break;r=this.nextChar()}if(isSpecial(r)){this.nextChar();return String.fromCharCode(r)}var o="";do{o+=String.fromCharCode(r);r=this.nextChar()}while(r>=0&&!(0,c.isWhiteSpace)(r)&&!isSpecial(r));return o}},{key:"readCharStrings",value:function readCharStrings(t,r){return-1===r?t:decrypt(t,4330,r)}},{key:"extractFontProgram",value:function extractFontProgram(t){var r=this.stream,o=[],l=[],c=Object.create(null);c.lenIV=4;for(var u,h,m,g,y,v={subrs:[],charstrings:[],properties:{privateData:c}};null!==(u=this.getToken());)if("/"===u)switch(u=this.getToken()){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;null!==(u=this.getToken())&&"end"!==u;)if("/"===u){var S=this.getToken();h=this.readInt();this.getToken();m=h>0?r.getBytes(h):new Uint8Array(0);g=v.properties.privateData.lenIV;y=this.readCharStrings(m,g);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();l.push({glyph:S,encoded:y})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){var k=this.readInt();h=this.readInt();this.getToken();m=h>0?r.getBytes(h):new Uint8Array(0);g=v.properties.privateData.lenIV;y=this.readCharStrings(m,g);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();o[k]=y}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var _=this.readNumberArray();_.length>0&&_.length,0;break;case"StemSnapH":case"StemSnapV":v.properties.privateData[u]=this.readNumberArray();break;case"StdHW":case"StdVW":v.properties.privateData[u]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":v.properties.privateData[u]=this.readNumber();break;case"ForceBold":v.properties.privateData[u]=this.readBoolean()}for(var C=0;C<l.length;C++){var w=l[C].glyph;y=l[C].encoded;var x=new d,O=x.convert(y,o,this.seacAnalysisEnabled),T=x.output;O&&(T=[14]);var R={glyphName:w,charstring:T,width:x.width,lsb:x.lsb,seac:x.seac};".notdef"===w?v.charstrings.unshift(R):v.charstrings.push(R);if(t.builtInEncoding){var E=t.builtInEncoding.indexOf(w);E>-1&&void 0===t.widths[E]&&E>=t.firstChar&&E<=t.lastChar&&(t.widths[E]=x.width)}}return v}},{key:"extractFontHeader",value:function extractFontHeader(t){for(var r;null!==(r=this.getToken());)if("/"===r)switch(r=this.getToken()){case"FontMatrix":var o=this.readNumberArray();t.fontMatrix=o;break;case"Encoding":var c=this.getToken(),u=void 0;if(/^\d+$/.test(c)){u=[];var h=0|parseInt(c,10);this.getToken();for(var d=0;d<h;d++){r=this.getToken();for(;"dup"!==r&&"def"!==r;)if(null===(r=this.getToken()))return;if("def"===r)break;var m=this.readInt();this.getToken();var g=this.getToken();u[m]=g;this.getToken()}}else u=(0,l.getEncoding)(c);t.builtInEncoding=u;break;case"FontBBox":var y=this.readNumberArray();t.ascent=Math.max(y[3],y[1]);t.descent=Math.min(y[1],y[3]);t.ascentScaled=!0}}}]);return Type1Parser}()}();r.Type1Parser=m},(t,r,o)=>{"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.getTilingPatternIR=function getTilingPatternIR(t,r,o){var c=r.getArray("Matrix"),u=l.Util.normalizeRect(r.getArray("BBox")),h=r.get("XStep"),d=r.get("YStep"),m=r.get("PaintType"),g=r.get("TilingType");if(u[2]-u[0]==0||u[3]-u[1]==0)throw new l.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(u,"]."));return["TilingPattern",o,t,c,u,h,d,m,g]};r.Pattern=void 0;var l=o(4),c=o(123),u=o(114),h=o(118);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))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 o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=2,m=3,g=4,y=5,v=6,S=7,k=function(){function Pattern(){_classCallCheck(this,Pattern);(0,l.unreachable)("Cannot initialize Pattern.")}_createClass(Pattern,null,[{key:"parseShading",value:function parseShading(t,r,o,c,k,_,w){var x=(0,u.isStream)(t)?t.dict:t,R=x.get("ShadingType");try{switch(R){case d:case m:return new C(x,r,o,c,_,w);case g:case y:case v:case S:return new O(t,r,o,c,_,w);default:throw new l.FormatError("Unsupported ShadingType: "+R)}}catch(t){if(t instanceof h.MissingDataException)throw t;k.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.shadingPattern});(0,l.warn)(t);return new T}}}]);return Pattern}();r.Pattern=k;var _=function(){function BaseShading(){_classCallCheck(this,BaseShading);this.constructor===BaseShading&&(0,l.unreachable)("Cannot initialize BaseShading.")}_createClass(BaseShading,[{key:"getIR",value:function getIR(){(0,l.unreachable)("Abstract method `getIR` called.")}}],[{key:"SMALL_NUMBER",get:function get(){return(0,l.shadow)(this,"SMALL_NUMBER",1e-6)}}]);return BaseShading}(),C=function(t){_inherits(RadialAxialShading,t);var r=_createSuper(RadialAxialShading);function RadialAxialShading(t,o,u,h,d,g){var y;_classCallCheck(this,RadialAxialShading);(y=r.call(this)).matrix=o;y.coordsArr=t.getArray("Coords");y.shadingType=t.get("ShadingType");var v=c.ColorSpace.parse({cs:t.getRaw("ColorSpace")||t.getRaw("CS"),xref:u,resources:h,pdfFunctionFactory:d,localColorSpaceCache:g}),S=t.getArray("BBox");Array.isArray(S)&&4===S.length?y.bbox=l.Util.normalizeRect(S):y.bbox=null;var k=0,C=1;if(t.has("Domain")){var w=t.getArray("Domain");k=w[0];C=w[1]}var x=!1,O=!1;if(t.has("Extend")){var T=t.getArray("Extend");x=T[0];O=T[1]}if(!(y.shadingType!==m||x&&O)){var R=_slicedToArray(y.coordsArr,6),E=R[0],M=R[1],D=R[2],j=R[3],L=R[4],N=R[5],U=Math.hypot(E-j,M-L);D<=N+U&&N<=D+U&&(0,l.warn)("Unsupported radial gradient.")}y.extendStart=x;y.extendEnd=O;var H=t.getRaw("Function"),W=d.createFromArray(H),q=(C-k)/10,$=y.colorStops=[];if(k>=C||q<=0){(0,l.info)("Bad shading domain.");return _possibleConstructorReturn(y)}for(var X,z=new Float32Array(v.numComps),G=new Float32Array(1),V=0;V<=10;V++){G[0]=k+V*q;W(G,0,z,0);X=v.getRgb(z,0);var Y=l.Util.makeHexColor(X[0],X[1],X[2]);$.push([V/10,Y])}var K="transparent";if(t.has("Background")){X=v.getRgb(t.get("Background"),0);K=l.Util.makeHexColor(X[0],X[1],X[2])}if(!x){$.unshift([0,K]);$[1][0]+=_.SMALL_NUMBER}if(!O){$[$.length-1][0]-=_.SMALL_NUMBER;$.push([1,K])}y.colorStops=$;return y}_createClass(RadialAxialShading,[{key:"getIR",value:function getIR(){var t,r,o,c,u,h=this.coordsArr,g=this.shadingType;if(g===d){r=[h[0],h[1]];o=[h[2],h[3]];c=null;u=null;t="axial"}else if(g===m){r=[h[0],h[1]];o=[h[3],h[4]];c=h[2];u=h[5];t="radial"}else(0,l.unreachable)("getPattern type unknown: ".concat(g));return["RadialAxial",t,this.bbox,this.colorStops,r,o,c,u,this.matrix]}}]);return RadialAxialShading}(_),w=function(){function MeshStreamReader(t,r){_classCallCheck(this,MeshStreamReader);this.stream=t;this.context=r;this.buffer=0;this.bufferLength=0;var o=r.numComps;this.tmpCompsBuf=new Float32Array(o);var l=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(l):this.tmpCompsBuf}_createClass(MeshStreamReader,[{key:"hasData",get:function get(){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}},{key:"readBits",value:function readBits(t){var r=this.buffer,o=this.bufferLength;if(32===t){if(0===o)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 l=this.stream.getByte();this.buffer=l&(1<<o)-1;return(r<<8-o|(255&l)>>o)>>>0}if(8===t&&0===o)return this.stream.getByte();for(;o<t;){r=r<<8|this.stream.getByte();o+=8}o-=t;this.bufferLength=o;this.buffer=r&(1<<o)-1;return r>>o}},{key:"align",value:function align(){this.buffer=0;this.bufferLength=0}},{key:"readFlag",value:function readFlag(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function readCoordinate(){var t=this.context.bitsPerCoordinate,r=this.readBits(t),o=this.readBits(t),l=this.context.decode,c=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[r*c*(l[1]-l[0])+l[0],o*c*(l[3]-l[2])+l[2]]}},{key:"readComponents",value:function readComponents(){for(var t=this.context.numComps,r=this.context.bitsPerComponent,o=r<32?1/((1<<r)-1):2.3283064365386963e-10,l=this.context.decode,c=this.tmpCompsBuf,u=0,h=4;u<t;u++,h+=2){var d=this.readBits(r);c[u]=d*o*(l[h+1]-l[h])+l[h]}var m=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(c,0,m,0);return this.context.colorSpace.getRgb(m,0)}}]);return MeshStreamReader}(),x=function getBClosure(){var t=[];return function(r){t[r]||(t[r]=function buildB(t){for(var r=[],o=0;o<=t;o++){var l=o/t,c=1-l;r.push(new Float32Array([c*c*c,3*l*c*c,3*l*l*c,l*l*l]))}return r}(r));return t[r]}}(),O=function(t){_inherits(MeshShading,t);var r=_createSuper(MeshShading);function MeshShading(t,o,h,d,m,k){var _;_classCallCheck(this,MeshShading);_=r.call(this);if(!(0,u.isStream)(t))throw new l.FormatError("Mesh data is not a stream");var C=t.dict;_.matrix=o;_.shadingType=C.get("ShadingType");var x=C.getArray("BBox");Array.isArray(x)&&4===x.length?_.bbox=l.Util.normalizeRect(x):_.bbox=null;var O=c.ColorSpace.parse({cs:C.getRaw("ColorSpace")||C.getRaw("CS"),xref:h,resources:d,pdfFunctionFactory:m,localColorSpaceCache:k});_.background=C.has("Background")?O.getRgb(C.get("Background"),0):null;var T=C.getRaw("Function"),R=T?m.createFromArray(T):null;_.coords=[];_.colors=[];_.figures=[];var E={bitsPerCoordinate:C.get("BitsPerCoordinate"),bitsPerComponent:C.get("BitsPerComponent"),bitsPerFlag:C.get("BitsPerFlag"),decode:C.getArray("Decode"),colorFn:R,colorSpace:O,numComps:R?1:O.numComps},M=new w(t,E),D=!1;switch(_.shadingType){case g:_._decodeType4Shading(M);break;case y:var j=0|C.get("VerticesPerRow");if(j<2)throw new l.FormatError("Invalid VerticesPerRow");_._decodeType5Shading(M,j);break;case v:_._decodeType6Shading(M);D=!0;break;case S:_._decodeType7Shading(M);D=!0;break;default:(0,l.unreachable)("Unsupported mesh type.")}if(D){_._updateBounds();for(var L=0,N=_.figures.length;L<N;L++)_._buildFigureFromPatch(L)}_._updateBounds();_._packData();return _}_createClass(MeshShading,[{key:"_decodeType4Shading",value:function _decodeType4Shading(t){for(var r=this.coords,o=this.colors,c=[],u=[],h=0;t.hasData;){var d=t.readFlag(),m=t.readCoordinate(),g=t.readComponents();if(0===h){if(!(0<=d&&d<=2))throw new l.FormatError("Unknown type4 flag");switch(d){case 0:h=3;break;case 1:u.push(u[u.length-2],u[u.length-1]);h=1;break;case 2:u.push(u[u.length-3],u[u.length-1]);h=1}c.push(d)}u.push(r.length);r.push(m);o.push(g);h--;t.align()}this.figures.push({type:"triangles",coords:new Int32Array(u),colors:new Int32Array(u)})}},{key:"_decodeType5Shading",value:function _decodeType5Shading(t,r){for(var o=this.coords,l=this.colors,c=[];t.hasData;){var u=t.readCoordinate(),h=t.readComponents();c.push(o.length);o.push(u);l.push(h)}this.figures.push({type:"lattice",coords:new Int32Array(c),colors:new Int32Array(c),verticesPerRow:r})}},{key:"_decodeType6Shading",value:function _decodeType6Shading(t){for(var r=this.coords,o=this.colors,c=new Int32Array(16),u=new Int32Array(4);t.hasData;){var h=t.readFlag();if(!(0<=h&&h<=3))throw new l.FormatError("Unknown type6 flag");for(var d=r.length,m=0,g=0!==h?8:12;m<g;m++)r.push(t.readCoordinate());for(var y=o.length,v=0,S=0!==h?2:4;v<S;v++)o.push(t.readComponents());var k=void 0,_=void 0,C=void 0,w=void 0;switch(h){case 0:c[12]=d+3;c[13]=d+4;c[14]=d+5;c[15]=d+6;c[8]=d+2;c[11]=d+7;c[4]=d+1;c[7]=d+8;c[0]=d;c[1]=d+11;c[2]=d+10;c[3]=d+9;u[2]=y+1;u[3]=y+2;u[0]=y;u[1]=y+3;break;case 1:k=c[12];_=c[13];C=c[14];w=c[15];c[12]=w;c[13]=d+0;c[14]=d+1;c[15]=d+2;c[8]=C;c[11]=d+3;c[4]=_;c[7]=d+4;c[0]=k;c[1]=d+7;c[2]=d+6;c[3]=d+5;k=u[2];_=u[3];u[2]=_;u[3]=y;u[0]=k;u[1]=y+1;break;case 2:k=c[15];_=c[11];c[12]=c[3];c[13]=d+0;c[14]=d+1;c[15]=d+2;c[8]=c[7];c[11]=d+3;c[4]=_;c[7]=d+4;c[0]=k;c[1]=d+7;c[2]=d+6;c[3]=d+5;k=u[3];u[2]=u[1];u[3]=y;u[0]=k;u[1]=y+1;break;case 3:c[12]=c[0];c[13]=d+0;c[14]=d+1;c[15]=d+2;c[8]=c[1];c[11]=d+3;c[4]=c[2];c[7]=d+4;c[0]=c[3];c[1]=d+7;c[2]=d+6;c[3]=d+5;u[2]=u[0];u[3]=y;u[0]=u[1];u[1]=y+1}c[5]=r.length;r.push([(-4*r[c[0]][0]-r[c[15]][0]+6*(r[c[4]][0]+r[c[1]][0])-2*(r[c[12]][0]+r[c[3]][0])+3*(r[c[13]][0]+r[c[7]][0]))/9,(-4*r[c[0]][1]-r[c[15]][1]+6*(r[c[4]][1]+r[c[1]][1])-2*(r[c[12]][1]+r[c[3]][1])+3*(r[c[13]][1]+r[c[7]][1]))/9]);c[6]=r.length;r.push([(-4*r[c[3]][0]-r[c[12]][0]+6*(r[c[2]][0]+r[c[7]][0])-2*(r[c[0]][0]+r[c[15]][0])+3*(r[c[4]][0]+r[c[14]][0]))/9,(-4*r[c[3]][1]-r[c[12]][1]+6*(r[c[2]][1]+r[c[7]][1])-2*(r[c[0]][1]+r[c[15]][1])+3*(r[c[4]][1]+r[c[14]][1]))/9]);c[9]=r.length;r.push([(-4*r[c[12]][0]-r[c[3]][0]+6*(r[c[8]][0]+r[c[13]][0])-2*(r[c[0]][0]+r[c[15]][0])+3*(r[c[11]][0]+r[c[1]][0]))/9,(-4*r[c[12]][1]-r[c[3]][1]+6*(r[c[8]][1]+r[c[13]][1])-2*(r[c[0]][1]+r[c[15]][1])+3*(r[c[11]][1]+r[c[1]][1]))/9]);c[10]=r.length;r.push([(-4*r[c[15]][0]-r[c[0]][0]+6*(r[c[11]][0]+r[c[14]][0])-2*(r[c[12]][0]+r[c[3]][0])+3*(r[c[2]][0]+r[c[8]][0]))/9,(-4*r[c[15]][1]-r[c[0]][1]+6*(r[c[11]][1]+r[c[14]][1])-2*(r[c[12]][1]+r[c[3]][1])+3*(r[c[2]][1]+r[c[8]][1]))/9]);this.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(u)})}}},{key:"_decodeType7Shading",value:function _decodeType7Shading(t){for(var r=this.coords,o=this.colors,c=new Int32Array(16),u=new Int32Array(4);t.hasData;){var h=t.readFlag();if(!(0<=h&&h<=3))throw new l.FormatError("Unknown type7 flag");for(var d=r.length,m=0,g=0!==h?12:16;m<g;m++)r.push(t.readCoordinate());for(var y=o.length,v=0,S=0!==h?2:4;v<S;v++)o.push(t.readComponents());var k=void 0,_=void 0,C=void 0,w=void 0;switch(h){case 0:c[12]=d+3;c[13]=d+4;c[14]=d+5;c[15]=d+6;c[8]=d+2;c[9]=d+13;c[10]=d+14;c[11]=d+7;c[4]=d+1;c[5]=d+12;c[6]=d+15;c[7]=d+8;c[0]=d;c[1]=d+11;c[2]=d+10;c[3]=d+9;u[2]=y+1;u[3]=y+2;u[0]=y;u[1]=y+3;break;case 1:k=c[12];_=c[13];C=c[14];w=c[15];c[12]=w;c[13]=d+0;c[14]=d+1;c[15]=d+2;c[8]=C;c[9]=d+9;c[10]=d+10;c[11]=d+3;c[4]=_;c[5]=d+8;c[6]=d+11;c[7]=d+4;c[0]=k;c[1]=d+7;c[2]=d+6;c[3]=d+5;k=u[2];_=u[3];u[2]=_;u[3]=y;u[0]=k;u[1]=y+1;break;case 2:k=c[15];_=c[11];c[12]=c[3];c[13]=d+0;c[14]=d+1;c[15]=d+2;c[8]=c[7];c[9]=d+9;c[10]=d+10;c[11]=d+3;c[4]=_;c[5]=d+8;c[6]=d+11;c[7]=d+4;c[0]=k;c[1]=d+7;c[2]=d+6;c[3]=d+5;k=u[3];u[2]=u[1];u[3]=y;u[0]=k;u[1]=y+1;break;case 3:c[12]=c[0];c[13]=d+0;c[14]=d+1;c[15]=d+2;c[8]=c[1];c[9]=d+9;c[10]=d+10;c[11]=d+3;c[4]=c[2];c[5]=d+8;c[6]=d+11;c[7]=d+4;c[0]=c[3];c[1]=d+7;c[2]=d+6;c[3]=d+5;u[2]=u[0];u[3]=y;u[0]=u[1];u[1]=y+1}this.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(u)})}}},{key:"_buildFigureFromPatch",value:function _buildFigureFromPatch(t){var r=this.figures[t];(0,l.assert)("patch"===r.type,"Unexpected patch mesh figure");var o=this.coords,c=this.colors,u=r.coords,h=r.colors,d=Math.min(o[u[0]][0],o[u[3]][0],o[u[12]][0],o[u[15]][0]),m=Math.min(o[u[0]][1],o[u[3]][1],o[u[12]][1],o[u[15]][1]),g=Math.max(o[u[0]][0],o[u[3]][0],o[u[12]][0],o[u[15]][0]),y=Math.max(o[u[0]][1],o[u[3]][1],o[u[12]][1],o[u[15]][1]),v=Math.ceil((g-d)*MeshShading.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));v=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,v));var S=Math.ceil((y-m)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));S=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,S));for(var k=v+1,_=new Int32Array((S+1)*k),C=new Int32Array((S+1)*k),w=0,O=new Uint8Array(3),T=new Uint8Array(3),R=c[h[0]],E=c[h[1]],M=c[h[2]],D=c[h[3]],j=x(S),L=x(v),N=0;N<=S;N++){O[0]=(R[0]*(S-N)+M[0]*N)/S|0;O[1]=(R[1]*(S-N)+M[1]*N)/S|0;O[2]=(R[2]*(S-N)+M[2]*N)/S|0;T[0]=(E[0]*(S-N)+D[0]*N)/S|0;T[1]=(E[1]*(S-N)+D[1]*N)/S|0;T[2]=(E[2]*(S-N)+D[2]*N)/S|0;for(var U=0;U<=v;U++,w++)if(0!==N&&N!==S||0!==U&&U!==v){for(var H=0,W=0,q=0,$=0;$<=3;$++)for(var X=0;X<=3;X++,q++){var z=j[N][$]*L[U][X];H+=o[u[q]][0]*z;W+=o[u[q]][1]*z}_[w]=o.length;o.push([H,W]);C[w]=c.length;var G=new Uint8Array(3);G[0]=(O[0]*(v-U)+T[0]*U)/v|0;G[1]=(O[1]*(v-U)+T[1]*U)/v|0;G[2]=(O[2]*(v-U)+T[2]*U)/v|0;c.push(G)}}_[0]=u[0];C[0]=h[0];_[v]=u[3];C[v]=h[1];_[k*S]=u[12];C[k*S]=h[2];_[k*S+v]=u[15];C[k*S+v]=h[3];this.figures[t]={type:"lattice",coords:_,colors:C,verticesPerRow:k}}},{key:"_updateBounds",value:function _updateBounds(){for(var t=this.coords[0][0],r=this.coords[0][1],o=t,l=r,c=1,u=this.coords.length;c<u;c++){var h=this.coords[c][0],d=this.coords[c][1];t=t>h?h:t;r=r>d?d:r;o=o<h?h:o;l=l<d?d:l}this.bounds=[t,r,o,l]}},{key:"_packData",value:function _packData(){var t,r,o,l,c=this.coords,u=new Float32Array(2*c.length);for(t=0,o=0,r=c.length;t<r;t++){var h=c[t];u[o++]=h[0];u[o++]=h[1]}this.coords=u;var d=this.colors,m=new Uint8Array(3*d.length);for(t=0,o=0,r=d.length;t<r;t++){var g=d[t];m[o++]=g[0];m[o++]=g[1];m[o++]=g[2]}this.colors=m;var y=this.figures;for(t=0,r=y.length;t<r;t++){var v=y[t],S=v.coords,k=v.colors;for(o=0,l=S.length;o<l;o++){S[o]*=2;k[o]*=3}}}},{key:"getIR",value:function getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}}],[{key:"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",get:function get(){return(0,l.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}},{key:"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",get:function get(){return(0,l.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}},{key:"TRIANGLE_DENSITY",get:function get(){return(0,l.shadow)(this,"TRIANGLE_DENSITY",20)}}]);return MeshShading}(_),T=function(t){_inherits(DummyShading,t);var r=_createSuper(DummyShading);function DummyShading(){_classCallCheck(this,DummyShading);return r.apply(this,arguments)}_createClass(DummyShading,[{key:"getIR",value:function getIR(){return["Dummy"]}}]);return DummyShading}(_)},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isPDFFunction=function isPDFFunction(t){var r;if("object"!==_typeof(t))return!1;if((0,l.isDict)(t))r=t;else{if(!(0,l.isStream)(t))return!1;r=t.dict}return r.has("FunctionType")};r.PostScriptEvaluator=r.PostScriptCompiler=r.PDFFunctionFactory=void 0;var l=o(114),c=o(4),u=o(160),h=o(161);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 _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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=function(){function PDFFunctionFactory(t){var r=t.xref,o=t.isEvalSupported,l=void 0===o||o;_classCallCheck(this,PDFFunctionFactory);this.xref=r;this.isEvalSupported=!1!==l}_createClass(PDFFunctionFactory,[{key:"create",value:function create(t){var r=this.getCached(t);if(r)return r;var o=m.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:t instanceof l.Ref?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"createFromArray",value:function createFromArray(t){var r=this.getCached(t);if(r)return r;var o=m.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:t instanceof l.Ref?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"getCached",value:function getCached(t){var r;t instanceof l.Ref?r=t:t instanceof l.Dict?r=t.objId:(0,l.isStream)(t)&&(r=t.dict&&t.dict.objId);if(r){var o=this._localFunctionCache.getByRef(r);if(o)return o}return null}},{key:"_cache",value:function _cache(t,r){if(!r)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var o;t instanceof l.Ref?o=t:t instanceof l.Dict?o=t.objId:(0,l.isStream)(t)&&(o=t.dict&&t.dict.objId);o&&this._localFunctionCache.set(null,o,r)}},{key:"_localFunctionCache",get:function get(){return(0,c.shadow)(this,"_localFunctionCache",new h.LocalFunctionCache)}}]);return PDFFunctionFactory}();r.PDFFunctionFactory=d;function toNumberArray(t){if(!Array.isArray(t))return null;for(var r=t.length,o=0;o<r;o++)if("number"!=typeof t[o]){for(var l=new Array(r),c=0;c<r;c++)l[c]=+t[c];return l}return t}var m=function(){function PDFFunction(){_classCallCheck(this,PDFFunction)}_createClass(PDFFunction,null,[{key:"getSampleArray",value:function getSampleArray(t,r,o,l){var c,u,h=1;for(c=0,u=t.length;c<u;c++)h*=t[c];h*=r;var d=new Array(h),m=0,g=0,y=1/(Math.pow(2,o)-1),v=l.getBytes((h*o+7)/8),S=0;for(c=0;c<h;c++){for(;m<o;){g<<=8;g|=v[S++];m+=8}m-=o;d[c]=(g>>m)*y;g&=(1<<m)-1}return d}},{key:"parse",value:function parse(t){var r=t.xref,o=t.isEvalSupported,l=t.fn,u=l.dict||l;switch(u.get("FunctionType")){case 0:return this.constructSampled({xref:r,isEvalSupported:o,fn:l,dict:u});case 1:break;case 2:return this.constructInterpolated({xref:r,isEvalSupported:o,dict:u});case 3:return this.constructStiched({xref:r,isEvalSupported:o,dict:u});case 4:return this.constructPostScript({xref:r,isEvalSupported:o,fn:l,dict:u})}throw new c.FormatError("Unknown type of function")}},{key:"parseArray",value:function parseArray(t){var r=t.xref,o=t.isEvalSupported,l=t.fnObj;if(!Array.isArray(l))return this.parse({xref:r,isEvalSupported:o,fn:l});for(var c=[],u=0,h=l.length;u<h;u++)c.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(l[u])}));return function(t,r,o,l){for(var u=0,h=c.length;u<h;u++)c[u](t,r,o,l+u)}}},{key:"constructSampled",value:function constructSampled(t){t.xref,t.isEvalSupported;var r=t.fn,o=t.dict;function toMultiArray(t){for(var r=t.length,o=[],l=0,c=0;c<r;c+=2)o[l++]=[t[c],t[c+1]];return o}function interpolate(t,r,o,l,c){return l+(c-l)/(o-r)*(t-r)}var l=toNumberArray(o.getArray("Domain")),u=toNumberArray(o.getArray("Range"));if(!l||!u)throw new c.FormatError("No domain or range");var h=l.length/2,d=u.length/2;l=toMultiArray(l);u=toMultiArray(u);var m=toNumberArray(o.getArray("Size")),g=o.get("BitsPerSample"),y=o.get("Order")||1;1!==y&&(0,c.info)("No support for cubic spline interpolation: "+y);var v=toNumberArray(o.getArray("Encode"));if(v)v=toMultiArray(v);else{v=[];for(var S=0;S<h;++S)v.push([0,m[S]-1])}var k=toNumberArray(o.getArray("Decode"));k=k?toMultiArray(k):u;var _=this.getSampleArray(m,d,g,r);return function constructSampledFn(t,r,o,c){var g,y,S=1<<h,C=new Float64Array(S),w=new Uint32Array(S);for(y=0;y<S;y++)C[y]=1;var x=d,O=1;for(g=0;g<h;++g){var T=l[g][0],R=l[g][1],E=interpolate(Math.min(Math.max(t[r+g],T),R),T,R,v[g][0],v[g][1]),M=m[g],D=(E=Math.min(Math.max(E,0),M-1))<M-1?Math.floor(E):E-1,j=D+1-E,L=E-D,N=D*x,U=N+x;for(y=0;y<S;y++)if(y&O){C[y]*=L;w[y]+=U}else{C[y]*=j;w[y]+=N}x*=M;O<<=1}for(y=0;y<d;++y){var H=0;for(g=0;g<S;g++)H+=_[w[g]+y]*C[g];H=interpolate(H,0,1,k[y][0],k[y][1]);o[c+y]=Math.min(Math.max(H,u[y][0]),u[y][1])}}}},{key:"constructInterpolated",value:function constructInterpolated(t){t.xref,t.isEvalSupported;for(var r=t.dict,o=toNumberArray(r.getArray("C0"))||[0],l=toNumberArray(r.getArray("C1"))||[1],c=r.get("N"),u=[],h=0,d=o.length;h<d;++h)u.push(l[h]-o[h]);var m=u.length;return function constructInterpolatedFn(t,r,l,h){for(var d=1===c?t[r]:Math.pow(t[r],c),g=0;g<m;++g)l[h+g]=o[g]+d*u[g]}}},{key:"constructStiched",value:function constructStiched(t){var r=t.xref,o=t.isEvalSupported,l=t.dict,u=toNumberArray(l.getArray("Domain"));if(!u)throw new c.FormatError("No domain");if(1!==u.length/2)throw new c.FormatError("Bad domain for stiched function");for(var h=l.get("Functions"),d=[],m=0,g=h.length;m<g;++m)d.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(h[m])}));var y=toNumberArray(l.getArray("Bounds")),v=toNumberArray(l.getArray("Encode")),S=new Float32Array(1);return function constructStichedFn(t,r,o,l){var c,h=function constructStichedFromIRClip(t,r,o){t>o?t=o:t<r&&(t=r);return t}(t[r],u[0],u[1]),m=y.length;for(c=0;c<m&&!(h<y[c]);++c);var g=u[0];c>0&&(g=y[c-1]);var k=u[1];c<y.length&&(k=y[c]);var _=v[2*c],C=v[2*c+1];S[0]=g===k?_:_+(h-g)*(C-_)/(k-g);d[c](S,0,o,l)}}},{key:"constructPostScript",value:function constructPostScript(t){t.xref;var r=t.isEvalSupported,o=t.fn,l=t.dict,h=toNumberArray(l.getArray("Domain")),d=toNumberArray(l.getArray("Range"));if(!h)throw new c.FormatError("No domain.");if(!d)throw new c.FormatError("No range.");var m=new u.PostScriptLexer(o),g=new u.PostScriptParser(m).parse();if(r&&c.IsEvalSupportedCached.value){var S=(new v).compile(g,h,d);if(S)return new Function("src","srcOffset","dest","destOffset",S)}(0,c.info)("Unable to compile PS function");var k=d.length>>1,_=h.length>>1,C=new y(g),w=Object.create(null),x=8192,O=new Float32Array(_);return function constructPostScriptFn(t,r,o,l){var c,u,h="",m=O;for(c=0;c<_;c++){u=t[r+c];m[c]=u;h+=u+"_"}var g=w[h];if(void 0===g){var y=new Float32Array(k),v=C.execute(m),S=v.length-k;for(c=0;c<k;c++){u=v[S+c];var T=d[2*c];(u<T||u>(T=d[2*c+1]))&&(u=T);y[c]=u}if(x>0){x--;w[h]=y}o.set(y,l)}else o.set(g,l)}}}]);return PDFFunction}();var g=function(){function PostScriptStack(t){_classCallCheck(this,PostScriptStack);this.stack=t?Array.prototype.slice.call(t,0):[]}_createClass(PostScriptStack,[{key:"push",value:function push(t){if(this.stack.length>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function copy(t){if(this.stack.length+t>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");for(var r=this.stack,o=r.length-t,l=t-1;l>=0;l--,o++)r.push(r[o])}},{key:"index",value:function index(t){this.push(this.stack[this.stack.length-t-1])}},{key:"roll",value:function roll(t,r){for(var o=this.stack,l=o.length-t,c=o.length-1,u=l+(r-Math.floor(r/t)*t),h=l,d=c;h<d;h++,d--){var m=o[h];o[h]=o[d];o[d]=m}for(var g=l,y=u-1;g<y;g++,y--){var v=o[g];o[g]=o[y];o[y]=v}for(var S=u,k=c;S<k;S++,k--){var _=o[S];o[S]=o[k];o[k]=_}}}],[{key:"MAX_STACK_SIZE",get:function get(){return(0,c.shadow)(this,"MAX_STACK_SIZE",100)}}]);return PostScriptStack}(),y=function(){function PostScriptEvaluator(t){_classCallCheck(this,PostScriptEvaluator);this.operators=t}_createClass(PostScriptEvaluator,[{key:"execute",value:function execute(t){for(var r,o,l,u=new g(t),h=0,d=this.operators,m=d.length;h<m;)if("number"!=typeof(r=d[h++]))switch(r){case"jz":l=u.pop();(o=u.pop())||(h=l);break;case"j":h=o=u.pop();break;case"abs":o=u.pop();u.push(Math.abs(o));break;case"add":l=u.pop();o=u.pop();u.push(o+l);break;case"and":l=u.pop();o=u.pop();(0,c.isBool)(o)&&(0,c.isBool)(l)?u.push(o&&l):u.push(o&l);break;case"atan":o=u.pop();u.push(Math.atan(o));break;case"bitshift":l=u.pop();(o=u.pop())>0?u.push(o<<l):u.push(o>>l);break;case"ceiling":o=u.pop();u.push(Math.ceil(o));break;case"copy":o=u.pop();u.copy(o);break;case"cos":o=u.pop();u.push(Math.cos(o));break;case"cvi":o=0|u.pop();u.push(o);break;case"cvr":break;case"div":l=u.pop();o=u.pop();u.push(o/l);break;case"dup":u.copy(1);break;case"eq":l=u.pop();o=u.pop();u.push(o===l);break;case"exch":u.roll(2,1);break;case"exp":l=u.pop();o=u.pop();u.push(Math.pow(o,l));break;case"false":u.push(!1);break;case"floor":o=u.pop();u.push(Math.floor(o));break;case"ge":l=u.pop();o=u.pop();u.push(o>=l);break;case"gt":l=u.pop();o=u.pop();u.push(o>l);break;case"idiv":l=u.pop();o=u.pop();u.push(o/l|0);break;case"index":o=u.pop();u.index(o);break;case"le":l=u.pop();o=u.pop();u.push(o<=l);break;case"ln":o=u.pop();u.push(Math.log(o));break;case"log":o=u.pop();u.push(Math.log(o)/Math.LN10);break;case"lt":l=u.pop();o=u.pop();u.push(o<l);break;case"mod":l=u.pop();o=u.pop();u.push(o%l);break;case"mul":l=u.pop();o=u.pop();u.push(o*l);break;case"ne":l=u.pop();o=u.pop();u.push(o!==l);break;case"neg":o=u.pop();u.push(-o);break;case"not":o=u.pop();(0,c.isBool)(o)?u.push(!o):u.push(~o);break;case"or":l=u.pop();o=u.pop();(0,c.isBool)(o)&&(0,c.isBool)(l)?u.push(o||l):u.push(o|l);break;case"pop":u.pop();break;case"roll":l=u.pop();o=u.pop();u.roll(o,l);break;case"round":o=u.pop();u.push(Math.round(o));break;case"sin":o=u.pop();u.push(Math.sin(o));break;case"sqrt":o=u.pop();u.push(Math.sqrt(o));break;case"sub":l=u.pop();o=u.pop();u.push(o-l);break;case"true":u.push(!0);break;case"truncate":o=(o=u.pop())<0?Math.ceil(o):Math.floor(o);u.push(o);break;case"xor":l=u.pop();o=u.pop();(0,c.isBool)(o)&&(0,c.isBool)(l)?u.push(o!==l):u.push(o^l);break;default:throw new c.FormatError("Unknown operator ".concat(r))}else u.push(r);return u.stack}}]);return PostScriptEvaluator}();r.PostScriptEvaluator=y;var v=function PostScriptCompilerClosure(){var t=function(){function AstNode(t){_classCallCheck(this,AstNode);this.type=t}_createClass(AstNode,[{key:"visit",value:function visit(t){(0,c.unreachable)("abstract method")}}]);return AstNode}(),r=function(t){_inherits(AstArgument,t);var r=_createSuper(AstArgument);function AstArgument(t,o,l){var c;_classCallCheck(this,AstArgument);(c=r.call(this,"args")).index=t;c.min=o;c.max=l;return c}_createClass(AstArgument,[{key:"visit",value:function visit(t){t.visitArgument(this)}}]);return AstArgument}(t),o=function(t){_inherits(AstLiteral,t);var r=_createSuper(AstLiteral);function AstLiteral(t){var o;_classCallCheck(this,AstLiteral);(o=r.call(this,"literal")).number=t;o.min=t;o.max=t;return o}_createClass(AstLiteral,[{key:"visit",value:function visit(t){t.visitLiteral(this)}}]);return AstLiteral}(t),l=function(t){_inherits(AstBinaryOperation,t);var r=_createSuper(AstBinaryOperation);function AstBinaryOperation(t,o,l,c,u){var h;_classCallCheck(this,AstBinaryOperation);(h=r.call(this,"binary")).op=t;h.arg1=o;h.arg2=l;h.min=c;h.max=u;return h}_createClass(AstBinaryOperation,[{key:"visit",value:function visit(t){t.visitBinaryOperation(this)}}]);return AstBinaryOperation}(t),u=function(t){_inherits(AstMin,t);var r=_createSuper(AstMin);function AstMin(t,o){var l;_classCallCheck(this,AstMin);(l=r.call(this,"max")).arg=t;l.min=t.min;l.max=o;return l}_createClass(AstMin,[{key:"visit",value:function visit(t){t.visitMin(this)}}]);return AstMin}(t),h=function(t){_inherits(AstVariable,t);var r=_createSuper(AstVariable);function AstVariable(t,o,l){var c;_classCallCheck(this,AstVariable);(c=r.call(this,"var")).index=t;c.min=o;c.max=l;return c}_createClass(AstVariable,[{key:"visit",value:function visit(t){t.visitVariable(this)}}]);return AstVariable}(t),d=function(t){_inherits(AstVariableDefinition,t);var r=_createSuper(AstVariableDefinition);function AstVariableDefinition(t,o){var l;_classCallCheck(this,AstVariableDefinition);(l=r.call(this,"definition")).variable=t;l.arg=o;return l}_createClass(AstVariableDefinition,[{key:"visit",value:function visit(t){t.visitVariableDefinition(this)}}]);return AstVariableDefinition}(t),m=function(){function ExpressionBuilderVisitor(){_classCallCheck(this,ExpressionBuilderVisitor);this.parts=[]}_createClass(ExpressionBuilderVisitor,[{key:"visitArgument",value:function visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}},{key:"visitVariable",value:function visitVariable(t){this.parts.push("v",t.index)}},{key:"visitLiteral",value:function visitLiteral(t){this.parts.push(t.number)}},{key:"visitBinaryOperation",value:function visitBinaryOperation(t){this.parts.push("(");t.arg1.visit(this);this.parts.push(" ",t.op," ");t.arg2.visit(this);this.parts.push(")")}},{key:"visitVariableDefinition",value:function visitVariableDefinition(t){this.parts.push("var ");t.variable.visit(this);this.parts.push(" = ");t.arg.visit(this);this.parts.push(";")}},{key:"visitMin",value:function visitMin(t){this.parts.push("Math.min(");t.arg.visit(this);this.parts.push(", ",t.max,")")}},{key:"toString",value:function toString(){return this.parts.join("")}}]);return ExpressionBuilderVisitor}();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 o(t.number+r.number):new l("+",t,r,t.min+r.min,t.max+r.max)}function buildMulOperation(t,r){if("literal"===r.type){if(0===r.number)return new o(0);if(1===r.number)return t;if("literal"===t.type)return new o(t.number*r.number)}if("literal"===t.type){if(0===t.number)return new o(0);if(1===t.number)return r}var c=Math.min(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max),u=Math.max(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max);return new l("*",t,r,c,u)}function buildSubOperation(t,r){if("literal"===r.type){if(0===r.number)return t;if("literal"===t.type)return new o(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 l("-",t,r,t.min-r.max,t.max-r.min)}function buildMinOperation(t,r){return t.min>=r?new o(r):t.max<=r?t:new u(t,r)}return function(){function PostScriptCompiler(){_classCallCheck(this,PostScriptCompiler)}_createClass(PostScriptCompiler,[{key:"compile",value:function compile(t,l,c){for(var u,g,y,v,S,k,_,C,w=[],x=[],O=l.length>>1,T=c.length>>1,R=0,E=0;E<O;E++)w.push(new r(E,l[2*E],l[2*E+1]));for(var M=0,D=t.length;M<D;M++)if("number"!=typeof(C=t[M]))switch(C){case"add":if(w.length<2)return null;v=w.pop();y=w.pop();w.push(buildAddOperation(y,v));break;case"cvr":if(w.length<1)return null;break;case"mul":if(w.length<2)return null;v=w.pop();y=w.pop();w.push(buildMulOperation(y,v));break;case"sub":if(w.length<2)return null;v=w.pop();y=w.pop();w.push(buildSubOperation(y,v));break;case"exch":if(w.length<2)return null;S=w.pop();k=w.pop();w.push(S,k);break;case"pop":if(w.length<1)return null;w.pop();break;case"index":if(w.length<1)return null;if("literal"!==(y=w.pop()).type)return null;if((u=y.number)<0||!Number.isInteger(u)||w.length<u)return null;if("literal"===(S=w[w.length-u-1]).type||"var"===S.type){w.push(S);break}_=new h(R++,S.min,S.max);w[w.length-u-1]=_;w.push(_);x.push(new d(_,S));break;case"dup":if(w.length<1)return null;if("number"==typeof t[M+1]&&"gt"===t[M+2]&&t[M+3]===M+7&&"jz"===t[M+4]&&"pop"===t[M+5]&&t[M+6]===t[M+1]){y=w.pop();w.push(buildMinOperation(y,t[M+1]));M+=6;break}if("literal"===(S=w[w.length-1]).type||"var"===S.type){w.push(S);break}_=new h(R++,S.min,S.max);w[w.length-1]=_;w.push(_);x.push(new d(_,S));break;case"roll":if(w.length<2)return null;v=w.pop();y=w.pop();if("literal"!==v.type||"literal"!==y.type)return null;g=v.number;if((u=y.number)<=0||!Number.isInteger(u)||!Number.isInteger(g)||w.length<u)return null;if(0===(g=(g%u+u)%u))break;Array.prototype.push.apply(w,w.splice(w.length-u,u-g));break;default:return null}else w.push(new o(C));if(w.length!==T)return null;for(var j=[],L=0,N=x;L<N.length;L++){var U=N[L],H=new m;U.visit(H);j.push(H.toString())}for(var W=0,q=w.length;W<q;W++){var $=w[W],X=new m;$.visit(X);var z=c[2*W],G=c[2*W+1],V=[X.toString()];if(z>$.min){V.unshift("Math.max(",z,", ");V.push(")")}if(G<$.max){V.unshift("Math.min(",G,", ");V.push(")")}V.unshift("dest[destOffset + ",W,"] = ");V.push(";");j.push(V.join(""))}return j.join("\n")}}]);return PostScriptCompiler}()}();r.PostScriptCompiler=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptParser=r.PostScriptLexer=void 0;var l=o(4),c=o(114),u=o(118);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h=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 l.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(t,"."))}},{key:"parse",value:function parse(){this.nextToken();this.expect(d.LBRACE);this.parseBlock();this.expect(d.RBRACE);return this.operators}},{key:"parseBlock",value:function parseBlock(){for(;;)if(this.accept(d.NUMBER))this.operators.push(this.prev.value);else if(this.accept(d.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(d.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function parseCondition(){var t=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(d.RBRACE);if(this.accept(d.IF)){this.operators[t]=this.operators.length;this.operators[t+1]="jz"}else{if(!this.accept(d.LBRACE))throw new l.FormatError("PS Function: error parsing conditional.");var r=this.operators.length;this.operators.push(null,null);var o=this.operators.length;this.parseBlock();this.expect(d.RBRACE);this.expect(d.IFELSE);this.operators[r]=this.operators.length;this.operators[r+1]="j";this.operators[t]=o;this.operators[t+1]="jz"}}}]);return PostScriptParser}();r.PostScriptParser=h;var d={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},m=function(){function PostScriptToken(t,r){_classCallCheck(this,PostScriptToken);this.type=t;this.value=r}_createClass(PostScriptToken,null,[{key:"opCache",get:function get(){return(0,l.shadow)(this,"opCache",Object.create(null))}},{key:"getOperator",value:function getOperator(t){var r=PostScriptToken.opCache[t];return r||(PostScriptToken.opCache[t]=new PostScriptToken(d.OPERATOR,t))}},{key:"LBRACE",get:function get(){return(0,l.shadow)(this,"LBRACE",new PostScriptToken(d.LBRACE,"{"))}},{key:"RBRACE",get:function get(){return(0,l.shadow)(this,"RBRACE",new PostScriptToken(d.RBRACE,"}"))}},{key:"IF",get:function get(){return(0,l.shadow)(this,"IF",new PostScriptToken(d.IF,"IF"))}},{key:"IFELSE",get:function get(){return(0,l.shadow)(this,"IFELSE",new PostScriptToken(d.IFELSE,"IFELSE"))}}]);return PostScriptToken}(),g=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 c.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!(0,u.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 m(d.NUMBER,this.getNumber());case 123:this.nextChar();return m.LBRACE;case 125:this.nextChar();return m.RBRACE}var o=this.strBuf;o.length=0;o[0]=String.fromCharCode(r);for(;(r=this.nextChar())>=0&&(r>=65&&r<=90||r>=97&&r<=122);)o.push(String.fromCharCode(r));var l=o.join("");switch(l.toLowerCase()){case"if":return m.IF;case"ifelse":return m.IFELSE;default:return m.getOperator(l)}}},{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 o=parseFloat(r.join(""));if(isNaN(o))throw new l.FormatError("Invalid floating point number: ".concat(o));return o}}]);return PostScriptLexer}();r.PostScriptLexer=g},(t,r,o)=>{"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 l=o(4),c=o(114);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var u=function(){function BaseLocalCache(t){_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&(0,l.unreachable)("Cannot initialize BaseLocalCache.");if(!t||!t.onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new c.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,o){(0,l.unreachable)("Abstract method `set` called.")}}]);return BaseLocalCache}(),h=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,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof 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,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalImageCache}(u);r.LocalImageCache=h;var d=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,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof t&&!r)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(r){if(this._imageCache.has(r))return;null!==t&&this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalColorSpaceCache}(u);r.LocalColorSpaceCache=d;var m=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,l.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}(u);r.LocalFunctionCache=m;var g=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,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof 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,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalGStateCache}(u);r.LocalGStateCache=g;var y=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,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof 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,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalTilingPatternCache}(u);r.LocalTilingPatternCache=y;var v=function(){function GlobalImageCache(){_classCallCheck(this,GlobalImageCache);this._refCache=new c.RefSetCache;this._imageCache=new c.RefSetCache}_createClass(GlobalImageCache,[{key:"_byteSize",get:function get(){var t=0;this._imageCache.forEach((function(r){t+=r.byteSize}));return t}},{key:"_cacheLimitReached",get:function get(){return!(this._imageCache.size<GlobalImageCache.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<GlobalImageCache.MAX_BYTE_SIZE)}},{key:"shouldCache",value:function shouldCache(t,r){var o=this._refCache.get(t);return!((o?o.size+(o.has(r)?0:1):1)<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this._cacheLimitReached)}},{key:"addPageIndex",value:function addPageIndex(t,r){var o=this._refCache.get(t);if(!o){o=new Set;this._refCache.put(t,o)}o.add(r)}},{key:"addByteSize",value:function addByteSize(t,r){var o=this._imageCache.get(t);o&&(o.byteSize||(o.byteSize=r))}},{key:"getData",value:function getData(t,r){var o=this._refCache.get(t);if(!o)return null;if(o.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;var l=this._imageCache.get(t);if(!l)return null;o.add(r);return l}},{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._cacheLimitReached?(0,l.warn)("GlobalImageCache.setData - cache limit reached."):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()}}],[{key:"NUM_PAGES_THRESHOLD",get:function get(){return(0,l.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MIN_IMAGES_TO_CACHE",get:function get(){return(0,l.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}},{key:"MAX_BYTE_SIZE",get:function get(){return(0,l.shadow)(this,"MAX_BYTE_SIZE",4e7)}}]);return GlobalImageCache}();r.GlobalImageCache=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.bidi=function bidi(t,r,o){var m=!0,g=t.length;if(0===g||o)return createBidiText(t,m,o);h.length=g;d.length=g;var y,v,S=0;for(y=0;y<g;++y){h[y]=t.charAt(y);var k=t.charCodeAt(y),_="L";k<=255?_=c[k]:1424<=k&&k<=1524?_="R":1536<=k&&k<=1791?(_=u[255&k])||(0,l.warn)("Bidi: invalid Unicode character "+k.toString(16)):1792<=k&&k<=2220&&(_="AL");"R"!==_&&"AL"!==_&&"AN"!==_||S++;d[y]=_}if(0===S)return createBidiText(t,m=!0);if(-1===r)if(S/g<.3){m=!0;r=0}else{m=!1;r=1}var C=[];for(y=0;y<g;++y)C[y]=r;var w,x=isOdd(r)?"R":"L",O=x,T=O,R=O;for(y=0;y<g;++y)"NSM"===d[y]?d[y]=R:R=d[y];R=O;for(y=0;y<g;++y)"EN"===(w=d[y])?d[y]="AL"===R?"AN":"EN":"R"!==w&&"L"!==w&&"AL"!==w||(R=w);for(y=0;y<g;++y)"AL"===(w=d[y])&&(d[y]="R");for(y=1;y<g-1;++y){"ES"===d[y]&&"EN"===d[y-1]&&"EN"===d[y+1]&&(d[y]="EN");"CS"!==d[y]||"EN"!==d[y-1]&&"AN"!==d[y-1]||d[y+1]!==d[y-1]||(d[y]=d[y-1])}for(y=0;y<g;++y)if("EN"===d[y]){for(var E=y-1;E>=0&&"ET"===d[E];--E)d[E]="EN";for(var M=y+1;M<g&&"ET"===d[M];++M)d[M]="EN"}for(y=0;y<g;++y)"WS"!==(w=d[y])&&"ES"!==w&&"ET"!==w&&"CS"!==w||(d[y]="ON");R=O;for(y=0;y<g;++y)"EN"===(w=d[y])?d[y]="L"===R?"L":"EN":"R"!==w&&"L"!==w||(R=w);for(y=0;y<g;++y)if("ON"===d[y]){var D=findUnequal(d,y+1,"ON"),j=O;y>0&&(j=d[y-1]);var L=T;D+1<g&&(L=d[D+1]);"L"!==j&&(j="R");"L"!==L&&(L="R");j===L&&setValues(d,y,D,j);y=D-1}for(y=0;y<g;++y)"ON"===d[y]&&(d[y]=x);for(y=0;y<g;++y){w=d[y];isEven(C[y])?"R"===w?C[y]+=1:"AN"!==w&&"EN"!==w||(C[y]+=2):"L"!==w&&"AN"!==w&&"EN"!==w||(C[y]+=1)}var N,U=-1,H=99;for(y=0,v=C.length;y<v;++y){N=C[y];U<N&&(U=N);H>N&&isOdd(N)&&(H=N)}for(N=U;N>=H;--N){var W=-1;for(y=0,v=C.length;y<v;++y)if(C[y]<N){if(W>=0){reverseValues(h,W,y);W=-1}}else W<0&&(W=y);W>=0&&reverseValues(h,W,C.length)}for(y=0,v=h.length;y<v;++y){var q=h[y];"<"!==q&&">"!==q||(h[y]="")}return createBidiText(h.join(""),m)};var l=o(4),c=["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"],u=["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,o){var l,c;for(l=r,c=t.length;l<c;++l)if(t[l]!==o)return l;return l}function setValues(t,r,o,l){for(var c=r;c<o;++c)t[c]=l}function reverseValues(t,r,o){for(var l=r,c=o-1;l<c;++l,--c){var u=t[l];t[l]=t[c];t[c]=u}}function createBidiText(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l="ltr";o?l="ttb":r||(l="rtl");return{str:t,dir:l}}var h=[],d=[]},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getMetrics=void 0;var l=o(118),c=(0,l.getLookupTableFactory)((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=(0,l.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,l.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,l.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,l.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,l.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,l.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,l.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,l.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,l.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,l.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=c},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getXfaFontName=getXfaFontName;r.getXfaFontWidths=function getXfaFontWidths(t){var r=getXfaFontName(t);if(!r)return null;var o=r.baseWidths,l=r.factors;if(!l)return o;return o.map((function(t,r){return t*l[r]}))};var l=o(165),c=o(166),u=o(167),h=o(168),d=o(169),m=o(118),g=o(147),y=(0,m.getLookupTableFactory)((function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:h.MyriadProRegularFactors,baseWidths:u.LiberationSansRegularWidths,lineHeight:h.MyriadProRegularLineHeight};t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:h.MyriadProBoldFactors,baseWidths:u.LiberationSansBoldWidths,lineHeight:h.MyriadProBoldLineHeight};t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:h.MyriadProItalicFactors,baseWidths:u.LiberationSansItalicWidths,lineHeight:h.MyriadProItalicLineHeight};t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:h.MyriadProBoldItalicFactors,baseWidths:u.LiberationSansBoldItalicWidths,lineHeight:h.MyriadProBoldItalicLineHeight};t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:u.LiberationSansRegularWidths};t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:u.LiberationSansBoldWidths};t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:u.LiberationSansItalicWidths};t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:u.LiberationSansBoldItalicWidths};t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:l.CalibriRegularFactors,baseWidths:u.LiberationSansRegularWidths,lineHeight:l.CalibriRegularLineHeight};t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:l.CalibriBoldFactors,baseWidths:u.LiberationSansBoldWidths,lineHeight:l.CalibriBoldLineHeight};t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:l.CalibriItalicFactors,baseWidths:u.LiberationSansItalicWidths,lineHeight:l.CalibriItalicLineHeight};t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.CalibriBoldItalicFactors,baseWidths:u.LiberationSansBoldItalicWidths,lineHeight:l.CalibriBoldItalicLineHeight};t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:d.SegoeuiRegularFactors,baseWidths:u.LiberationSansRegularWidths,lineHeight:d.SegoeuiRegularLineHeight};t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:d.SegoeuiBoldFactors,baseWidths:u.LiberationSansBoldWidths,lineHeight:d.SegoeuiBoldLineHeight};t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:d.SegoeuiItalicFactors,baseWidths:u.LiberationSansItalicWidths,lineHeight:d.SegoeuiItalicLineHeight};t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:d.SegoeuiBoldItalicFactors,baseWidths:u.LiberationSansBoldItalicWidths,lineHeight:d.SegoeuiBoldItalicLineHeight};t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:c.HelveticaRegularFactors,baseWidths:u.LiberationSansRegularWidths,lineHeight:c.HelveticaRegularLineHeight};t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:c.HelveticaBoldFactors,baseWidths:u.LiberationSansBoldWidths,lineHeight:c.HelveticaBoldLineHeight};t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:c.HelveticaItalicFactors,baseWidths:u.LiberationSansItalicWidths,lineHeight:c.HelveticaItalicLineHeight};t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.HelveticaBoldItalicFactors,baseWidths:u.LiberationSansBoldItalicWidths,lineHeight:c.HelveticaBoldItalicLineHeight}}));function getXfaFontName(t){var r=(0,g.normalizeFontName)(t);return y()[r]}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CalibriRegularLineHeight=r.CalibriRegularFactors=r.CalibriItalicLineHeight=r.CalibriItalicFactors=r.CalibriBoldLineHeight=r.CalibriBoldItalicLineHeight=r.CalibriBoldItalicFactors=r.CalibriBoldFactors=void 0;r.CalibriBoldFactors=[1.3877,1,.83908,.77539,.77539,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.7762,.7762,.73293,.73293,.73293,.73293,.73293,.73293,.82577,.87289,.87289,.88506,.80367,.73133,.73133,.73133,.73133,.73133,.73133,.73133,.73133,.73133,.88656,.73133,.73133,.57184,.87356,.6965,.88506,.91133,.7514,.81921,.68156,.81921,.81921,1,.81921,.87356,1,.99862,.99862,1,.91075,.87356,.95958,.76229,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.56289,.95958,.59526,.59526,.75727,.75727,1,.69225,.69225,.89019,.70424,1,.91926,.70823,1.04924,1.04924,.9121,.9121,.9121,1,.9121,.9121,.86943,.87402,.86943,.86943,.86943,.86943,.86943,.86943,.86943,.84896,.81235,.86943,.82001,.87508,.87508,.86943,.79795,.9762,.87356,.99819,.88198,.77958,.77958,.77958,1,.79795,.70864,.70572,.70572,.70572,.70572,1,1,1,1,1,.70572,.8,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,.70864,.70864,.70864,.70864,1,.78275,.81055,.81055,.81055,.81055,1,.86943,.79795,.90399,.90399,.90399,.90399,.90399,.90399,.90399,.90399,.90399,.77892,.77892,.56029,.90399,.90399,.88653,.96017,.96017,.96017,.96017,.96017,.82577,.7648,.77892,.77892,.77892,.77892,.77892,.78257,.78257,.78257,.78257,.78257,.88762,.88762,.88762,.88762,.90323,1,.88762,.8715,.8715,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,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,.88762,.96108,.96108,.88762,.97566,.80352,.88762,.90747,.88762,.88762,1.31006,1.81055,.90527,.90527,1.81055,1.53711,.94434,.85284,.85284,1.2798,.92138,.88762,.8785,1.54657,1.69808,.8936,1,.88331,.88331,.97507,.97507,1.15543,1,1.7801,1.42259,.75241,.75241,1.20528,1,1,.75241,.75241,.75241,.75241,.91056,.89552,.78287,.91027,1.20528,1,1,.82845,.92794,1,1,1.13254,.89552,1,.8785,.89552,.89552,.83016,.93125,.85592,.87842,1,1.24487,1,1.06303,.90747,1,1,.91133,.70674,.88401,.90518,.90518,.90518,.90518,.90518,.90518,.90518,.90518,.91133,1,.71143,.90518,.90527,.89552,.8785,.90518,.96399,1.01407,.85284,.85356,1.23108,.89049,.89049,.8785,.97801,.97171,.97801,.95015,1,1,1,.91133,.88525,1,.56892,.91133,1,.83406,.77618,.84021,.77618,.77618,1,.77618,.90807,.90176,1,.85284,.90747,.96839,.96839,1.03372,1.03372,.8785,.89608,.8785,1,1.44947,1.45894,1,.88401,.88401,.88401,.88401,.88401,.88401,.90167,.88401,1.17534,1.37077,.8941,.8941,.9716,1,1,1,.88401,1.02988,1.02988,1.02988,1.02988,.88401,.91916,.91916,.86304,.86077,1,.86304,.88401,.88401,.87445,.79468,1,.88175,.85284,.90747,1,.91133,.85284,.9297,1.08004,.94903,1,.91488,.70645,1,1,.85284,1,.92099,.85284,1,1,.8785,.8785,.87802,.8785,1,.91133,1,.90747,.8785,.84723,.89552,.8801,.8801,.8801,.8801,.8801,.89291,.94721,.8801,.8801,.8801,.84971,.84971,.8801,.8801,.91133,.83489,.82845,.78864,.99862,1.12401,1.19118,.69825,.89049,.89049,.8801,.8785,1.07463,.93548,.93548,1.08696,.81988,.96134,1.06152,.84107,.97747,.75638,.85284,.90747,.95018,.97926,.8785,.75859,.75859,.92482,.87012,.87012,.87012,.92794,.92794,.92794,.92794,.98152,.91343,.91343,.90747,.91343,1,.68787,.85284,.85714,.98387,1,.7173,.7173,.7173,.7173,.7173,1,1,.89552,.91133,.81499,1,1,.79586,.78216,.91133,1.54657,1,1,.91133,.77192,1,1.04106,.87965,1.06452,.75841,1,1.00813,.8785,.91133,.88525,.84133,1.33431,1,.95161,.72021,1,1,1,1,.91133,.8785,.8785,.8785,.8785,.8785,.8785,.8785,.8785,.89552,.90363,1,1,1.01466,1.0088,1,.75806,.81055,1.04106,1,.82845,.73133,.90264,.90518,.90548,1,1,1.4956,.93835,1,1,2.2807,1,1,1,.90727,.90727,.8785,1,.94211,.94211,.94211,.94211,.8785,.8785,.85075,.95794,.95794,.95794,.95794,.95794,.82616,.86513,.85162,.85162,.85162,.85162,.91133,.85162,.79492,.79492,.79492,.79492,.91133,.79109];r.CalibriBoldLineHeight=1.2207;r.CalibriBoldItalicFactors=[1.3877,1,.83908,.77539,.77539,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.83908,.7762,.7762,.71805,.71805,.71805,.71805,.71805,.71805,.82577,.87289,.87289,.88506,.86036,.73133,.73133,.73133,.73133,.73133,.73133,.73133,.73133,.73133,.88116,.73133,.73133,.57118,.87356,.6965,.88506,.91133,.7514,.81921,.67174,.81921,.81921,1,.81921,.87356,1,.99862,.99862,1,.91075,.87356,.95958,.76467,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.95958,.56347,.95958,.59526,.59526,.75727,.75727,1,.69225,.69225,.89019,.70424,1,.91926,.70823,1.04924,1.04924,.90872,.90872,.90872,1,.90872,.90872,.85938,.87402,.85938,.85938,.85938,.85938,.85938,.85938,.85938,.87179,.80346,.85938,.79179,.87068,.87068,.85938,.79795,.97447,.87891,.97466,.87068,.77958,.77958,.77958,1,.79795,.69766,.70572,.70572,.70572,.70572,1,1,1,1,1,.70572,.8,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,.69766,.69766,.69766,.69766,1,.7957,.81055,.81055,.81055,.81055,1,.86441,.79795,.90399,.90399,.90399,.90399,.90399,.90399,.90399,.90399,.90399,.77892,.77892,.55853,.90399,.90399,.88653,.96068,.96068,.96068,.96068,.96068,.82577,.74889,.77892,.77892,.77892,.77892,.77892,.78257,.78257,.78257,.78257,.78257,.94908,.94908,.94908,.94908,.90323,1,.94908,.85887,.85887,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,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,.94908,.94252,.94252,.94908,.97566,.80352,.94908,.90747,.94908,.94908,1.3107,1.81055,.90616,.90527,1.81055,1.53711,.94434,.85284,.85284,1.2798,.92138,.94908,.86411,1.529,1.69808,.87411,1,.88331,.88331,.97507,.97507,1.15543,1,1.7801,1.42259,.74012,.74012,1.20528,1,1,.74012,.74012,.74012,.74012,.91056,.89552,.78022,.91027,1.20528,1,1,.82845,.92794,1,1,1.13254,.89552,1,.86411,.89552,.89552,.79538,.92726,.85592,.8728,1,1.24487,1,1.48387,.90747,1,1,.91133,.70088,.88401,.88323,.88323,.88323,.88323,.88323,.88323,.88323,.88323,.91133,1,.71094,.88323,.90527,.89552,.86331,.88323,.95612,.95612,.85284,.85356,1.23108,.8753,.8753,.8785,.97801,.97171,.97801,.95015,1,1,1,.91133,.88525,1,.56892,.91133,1,.83406,.86411,.84021,.86411,.86411,1,.86411,.90807,.90176,1,.85284,.90747,.96839,.96839,1.03372,1.03372,.86331,.8777,.86331,1,1.44947,1.45894,1,.88401,.88401,.88401,.88401,.88401,.88401,.90167,.88401,1.17534,1.37077,.8941,.8941,.9716,1,1,1,.88401,1.02988,1.02988,1.02988,1.02988,.88401,.91916,.91916,.86304,.84814,1,.86304,.88401,.88401,.87445,.77312,1,.88175,.85284,.90747,1,.91133,.85284,.9297,1.08004,.94903,1,.9039,.70645,1,1,.85284,1,.91822,.85284,1,1,.86331,.86331,.86906,.86331,1,.91133,1,.90747,.86331,.84723,.89552,.86331,.86331,.86331,.86331,.86331,.86549,.94721,.86331,.86331,.86331,.86015,.86015,.86331,.86331,.91133,.83489,.82845,.78864,.99862,1.19129,1.19118,.69825,.89049,.89049,.86331,.86411,1.07463,.93548,.93548,1.08696,.81988,.96134,1.06152,.83326,.99375,.81344,.85284,.90747,.95018,.95452,.86411,.75859,.75859,.92482,.87012,.87012,.87012,.92794,.89807,.92794,.92794,.98152,.90464,.90464,.90747,.90464,1,.68787,.85284,.87581,.98387,1,.70852,.70852,.70852,.70852,.70852,1,1,.89552,.91133,.81499,1,1,.82046,.76422,.91133,1.56239,1,1,.91133,.77192,1,1.04106,.96057,1.06452,.75841,1,1.02189,.86411,.91133,.88525,.84133,1.33431,1,.95161,.72021,1,1,1,1,.91133,.86331,.86331,.86331,.86331,.86331,.86331,.86331,.86331,.89552,.90363,1,1,1.01466,1.0088,1,.75806,.81055,1.04106,1,.82845,.73133,.90631,.88323,.85174,1,1,1.4956,.92972,1,1,2.2807,1,1,1,.90727,.90727,.86331,1,.92733,.92733,.92733,.92733,.86331,.86331,.84372,.95794,.95794,.95794,.95794,.95794,.82616,.85668,.84548,.84548,.84548,.84548,.91133,.84548,.79492,.79492,.79492,.79492,.91133,.74081];r.CalibriBoldItalicLineHeight=1.2207;r.CalibriItalicFactors=[1.3877,1,.8675,.76318,.76318,.8675,.8675,.8675,.8675,.8675,.8675,.8675,.8675,.8675,.8675,.8675,.8675,.81552,.81552,.72346,.72346,.72346,.72346,.72346,.72346,.77818,.85193,.85193,.86477,.84134,.73206,.73206,.73206,.73206,.73206,.73206,.73206,.73206,.73206,.86698,.73206,.73206,.6192,.86275,.7363,.86477,.91133,.7522,.81105,.7286,.81105,.81105,1,.81105,.86275,1,.99862,.99862,1,.90872,.86275,.90685,.77896,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.64824,.90685,.6377,.6377,.77892,.77892,1,.75593,.75593,.85871,.76032,1,.98156,.77261,1.02638,1.02638,.89249,.89249,.89249,1,.89249,.89249,.84118,.8667,.84118,.84118,.84118,.84118,.84118,.84118,.84118,.87291,.85696,.84118,.82411,.84557,.84557,.84118,.77452,.90782,.85984,.903,.85374,.75186,.75186,.75186,1,.77452,.67789,.70572,.70572,.70572,.70572,1,1,1,1,1,.70572,.8,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,.67789,.67789,.67789,.67789,1,.76466,.79776,.79776,.79776,.79776,1,.84369,.77452,.88844,.88844,.88844,.88844,.88844,.88844,.88844,.88844,.88844,.7306,.7306,.56321,.88844,.88844,.85066,.94309,.94309,.94309,.94309,.94309,.77818,.75828,.7306,.7306,.7306,.7306,.7306,.76659,.76659,.76659,.76659,.76659,.9245,.9245,.9245,.9245,.87683,1,.9245,.84843,.84843,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,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,.9245,.99058,.99058,.9245,1.02269,.90861,.9245,.90747,.9245,.9245,1.28809,1.81055,.90572,.90749,1.81055,1.55469,.94434,1.06139,.85284,1.2798,.88071,.9245,.9245,1.38313,1.77256,.92393,1,.94152,.94152,1.10369,1.10369,1.1437,1,1.91729,1.42259,.83203,.83203,1.18622,1,1,.83203,.83203,.83203,.83203,.92229,.89552,.78086,.91027,1.18622,1,1,.96309,.89807,1,1,1.13254,.89552,1,.9245,.89552,.89552,.8875,.99034,.84737,.942,1,1.17889,1,1.48387,.90747,1,1,.91133,.67009,.82601,.85865,.85865,.85865,.85865,.85865,.85865,.85865,.85865,.91133,1,.68994,.85865,.90527,.89552,.9245,.85865,1.03667,1.03667,.85284,.85284,1.23108,.94635,.94635,.94469,1.17223,1.11523,.97801,1.09842,1,1,1,.91133,.84426,1,.54873,.91133,1,.82616,.9245,.8916,.9245,.9245,1,.9245,.86331,.8739,1,.85284,.90747,.92098,.92098,1.0176,1.0176,.9245,.93591,.9245,1,1.44947,1.40909,1,1.03297,.82601,.82601,.82601,.82601,.82601,1.05611,.82601,1.19658,1.33512,.8941,.8941,.97622,1,1,1,1.03297,1.23516,1.23516,1.23516,1.23516,.82601,1.07692,1.07692,.90918,.90918,1,.90918,1.03297,1.03297,.94048,.9375,1,.93407,.85284,.90747,1,.91133,.85284,1.09231,1.0336,1.11429,1,.94959,.71353,1,1,.85284,1,.98217,.85284,1,1,.9245,.9245,.92534,.9245,1,.91133,1,.90747,.9245,.89746,.89552,.92274,.92274,.92274,.92274,.92274,.86291,.93695,.92274,.92274,.92274,.89404,.89404,.92274,.92274,.91133,.79801,.80504,.76288,.99862,1.16359,1.15642,.69825,.86651,.86651,.92274,.9245,1.09091,.91056,.91056,1.07806,.80395,.90861,1.03809,.83437,1.00225,.82507,.85284,.90747,.97094,.97248,.9245,.83319,.75859,1.1293,1.2566,1.2566,1.2566,1.12308,1.12308,1.12308,1.12308,1.15601,1.02933,1.02933,.90747,1.02933,1,.68787,.85284,.88832,.96334,1,.77832,.77832,.77832,.77832,.77832,1,1,.89552,.91133,.774,1,1,.88178,.84438,.91133,1.39543,1,1,.91133,.7589,1,1.20562,1.03525,1.23023,.97655,1,1.0297,.9245,.91133,.84426,.80972,1.35191,1,.95161,.70508,1,1,1,1,.91133,.9245,.9245,.9245,.9245,.9245,.9245,.9245,.9245,.89552,.90186,1,1,1.0088,1.0044,1,.739,.79776,1.20562,1,.96309,.73206,.89693,.85865,.90933,1,1,1.4956,.97858,1,1,2.01462,1,1,1,1.05859,1.05859,.9245,1,.9849,.9849,.9849,.9849,.9245,.9245,.8916,.98986,.98986,.98986,.98986,.98986,.86621,.84153,.89453,.89453,.89453,.89453,.91133,.89453,.79004,.79004,.79004,.79004,.91133,.75026];r.CalibriItalicLineHeight=1.2207;r.CalibriRegularFactors=[1.3877,1,.8675,.76318,.76318,.8675,.8675,.8675,.8675,.8675,.8675,.86686,.8675,.8675,.8675,.8675,.8675,.81552,.81552,.73834,.73834,.73834,.73834,.73834,.73834,.77818,.85193,.85193,.86477,.84503,.73206,.73206,.73206,.73206,.73206,.73206,.73206,.73206,.73206,.86901,.73206,.73206,.62267,.86275,.74359,.86477,.91133,.7522,.81105,.75443,.81105,.81105,1,.81105,.86275,1,.99862,.99862,1,.90872,.86275,.90685,.77741,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.90685,.65649,.90685,.6377,.6377,.77892,.77892,1,.75593,.75593,.85746,.76032,1,.98156,.77261,1.02638,1.02638,.89385,.89385,.89385,1,.89385,.89385,.85122,.8667,.85122,.85122,.85122,.85122,.85122,.85122,.85122,.88831,.88254,.85122,.85498,.85311,.85311,.85122,.77452,.95165,.86275,.89772,.86503,.75186,.75186,.75186,1,.77452,.68887,.70572,.70572,.70572,.70572,1,1,1,1,1,.70572,.8,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,.68887,.68887,.68887,.68887,1,.74171,.79776,.79776,.79776,.79776,1,.85122,.77452,.88844,.88844,.88844,.88844,.88844,.88844,.88844,.88844,.88844,.7306,.7306,.56963,.88844,.88844,.85066,.94258,.94258,.94258,.94258,.94258,.77818,.75657,.7306,.7306,.7306,.7306,.7306,.76659,.76659,.76659,.76659,.76659,.86128,.86128,.86128,.86128,.87683,.86128,.8693,.8693,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,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,.86128,.98142,.98142,.86128,1.02269,.90861,.86128,.90747,.86128,.86128,1.28809,1.81055,.90527,.90527,1.81055,1.55469,.94434,1.06139,.85284,1.2798,.88071,.86128,.94469,1.39016,1.77256,.9236,1,.94152,.94152,1.10369,1.10369,1.1437,1.91729,1.42259,.8457,.8457,1.18622,.8457,.8457,.8457,.8457,.92229,.89552,.81209,.91027,1.18622,1,.96309,.89807,1.13254,.89552,.94469,.89552,.89552,.92454,.9921,.84737,.94035,1,1.17889,1.48387,.90747,1,1,.91133,.67742,.82601,.89464,.89464,.89464,.89464,.89464,.89464,.89464,.89464,.91133,.69043,.89464,.90527,.89552,.94469,.89464,1.02191,1.02191,.85284,.85356,1.23108,.96576,.96576,.94469,1.17223,1.11523,.97801,1.09842,1,1,1,.91133,.84426,.54873,.91133,.82616,.84636,.89258,.84636,.84636,1,.84636,.86331,1,1,1,1,1,1,1,1,1,1,1,.8739,.85284,.90747,.92098,.92098,1.0176,1.0176,.94469,.95786,.94469,1,1.44947,1.40909,1.03297,.82601,.82601,.82601,.82601,.82601,1.05611,.82601,1.19658,1.33512,.8941,.8941,.97622,1,1,1,1.03297,1.23516,1.23516,1.23516,1.23516,.82601,1.07692,1.07692,.90918,.90918,1,.90918,1.03297,1.03297,.92578,.90452,1,1.11842,.85284,.90747,1,.91133,.85284,1.09231,1.0336,1.11429,1,.95897,.71353,1,1,.85284,1,.95424,.85284,1,1,.94469,.94469,.95877,.94469,1,.91133,1,.90747,.94469,.89746,.89552,.9482,.9482,.9482,.9482,.9482,.90016,.93695,.9482,.9482,.9482,.89181,.89181,.9482,.9482,.91133,.79801,.80504,.76288,.99862,1.08707,1.15642,.69825,.86651,.86651,.9482,.94469,1.09091,.91056,.91056,1.07806,.80395,.90861,1.03809,.84286,1.00452,.80113,.85284,.90747,.97094,.99247,.94469,.83319,.75859,1.1293,1.2566,1.2566,1.2566,1.12308,1.12308,1.12308,1.12308,1.15601,1.04692,1.04692,.90747,1.04692,1,.68787,.85284,.89442,.96334,1,.78223,.78223,.78223,.78223,.78223,1,1,.89552,.91133,.774,1,.86155,.85208,.91133,1.39016,1,1,.91133,.7589,1,1.20562,.98022,1.23023,.92188,1,.9561,.94469,.91133,.84426,.80972,1.35191,.95161,.70508,1,1,1,1,.91133,.94469,.94469,.94469,.94469,.94469,.94469,.94469,.94469,.89552,.90186,1,1,1.0088,1.0044,1,.739,.79776,1.20562,1,.96309,.73206,.88844,.89464,.96766,1,1,1.4956,1.07185,.99413,.96334,1.08065,.99331,1,1,2.01462,1,1,1,1,1.05859,1.05859,.94469,1,.99018,.99018,.99018,.99018,.94469,.94469,.90332,.98986,.98986,.98986,.98986,.98986,.86621,.83969,.90527,.90527,.90527,.90527,.91133,.90527,.79004,.79004,.79004,.79004,.91133,.78848];r.CalibriRegularLineHeight=1.2207},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.HelveticaRegularLineHeight=r.HelveticaRegularFactors=r.HelveticaItalicLineHeight=r.HelveticaItalicFactors=r.HelveticaBoldLineHeight=r.HelveticaBoldItalicLineHeight=r.HelveticaBoldItalicFactors=r.HelveticaBoldFactors=void 0;r.HelveticaBoldFactors=[.76116,1,.99977,1,1,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,.99977,.99977,.99977,.85148,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.9998,1.00001,1.00001,.99997,.99977,1.00026,.99977,.99973,1.00026,1.00022,.99988,1.00022,1.00022,1.00022,1.00022,.99977,.99999,.99861,.99861,1,.99977,.99977,1.0006,1.00042,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00078,1.0006,.99973,.99973,.99977,.99977,.99977,1.00026,1.00026,1.00001,1.00026,1.00026,1.00026,1.00026,.99999,.99999,.99977,.99977,.99977,.99977,.99977,.99977,1.00022,1,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1,1.00013,1.00022,1.00036,1.00022,1.00022,1.00022,1.00001,1.00024,.99977,.9999,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.00001,1.00001,1.00001,1.00001,1.00001,.99984,1.00026,1.00026,1.00026,1.00026,1.00026,1.00022,1.00001,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,1.00001,.99973,.99977,.99977,1.00001,1.00016,1.00016,1.00016,1.00016,1.00016,1.00001,1.00069,1.00001,1.00001,1.00001,1.00001,1.00001,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,.99973,.99973,.99973,.99998,1,.99973,.99982,.99982,1,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00008,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,1.00038,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99989,.99973,1.00052,1.00041,1.00119,1.00037,.99973,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,1.0005,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,.99973,1.00035,1,.99999,1,.99971,1.00047,1.00023,.99973,1.00041,1.00041,.99973,.99977,1,.99973,1.00031,.99973,.99973,1,1,1,1,1,1,1,1.00003,1.00003,.99959,.9999,.99973,1.00026,1.0006,1.00077,.99942,1.41144,.99959,.99959,.99998,.99998,.99998,1,1.00077,.99972,.99973,.99973,.99998,1,1,.99973,.99973,.99973,.99973,.99998,.99973,1.00055,.99999,.99998,1,.99962,.99998,1.0006,1,1,1.00025,.99973,1,1.00026,.99973,.99973,1.03374,1.00026,1.00024,.99927,.9995,.99998,1,1.00034,1.06409,1.36625,1.41144,.99973,.99998,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,.99973,1,.99973,1.00026,.99973,1.00082,.99962,1.00003,.99915,.99984,1.00026,1.00026,1.00026,.99998,.99999,.99998,.99998,1,.99999,1,.99973,1.00002,.99998,.99973,.99973,.99998,.99973,1.00026,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,.99998,1,1.00003,1.00031,.99973,.99973,.99998,.99998,1.00026,1.00026,1.00026,1.00042,.99999,.99998,1,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99973,1.0006,1.00015,1.00027,.99999,.99999,.99561,.99999,.99999,.99977,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99973,1.00069,.99973,.99973,1.0006,1.0006,.99973,1.03828,1.0006,.99999,1.00003,1.00031,1.41144,.99973,1.00003,1.0006,.99972,1.0006,1.40579,.99982,.60299,1,1,1.00003,1.00106,.99867,1.00003,1,1,1.00026,1.00026,.9993,1.00026,1.00026,.99973,1,1.00031,1.00026,.99973,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,1.00016,.99998,1.00026,1.00026,1.00026,1.00032,1.00032,1.00026,1.00026,.99973,1.00002,1.00002,1.00002,1.40483,.99968,.99936,1,1.00026,1.00026,1.00026,1.00026,.99973,.99998,.99998,.99972,.99982,1.0006,1,1.00023,.99954,1.00049,1.00003,1.06409,1.20985,.99945,1.00026,1.00026,1.00026,.99974,1,1,1,1.0006,1.0006,1.0006,1.0006,1.00087,.99959,.99959,1.00031,.99959,.99959,1.00025,1.00003,1.00056,.99998,1.41144,.99973,.99973,.99973,.99973,.99973,.99973,.99999,.99973,.99973,1.00002,.99998,1.40579,.99988,1,.99973,1.0006,1,.99953,.99973,1.39713,1.00054,.99998,.99935,.99998,.8121,.99998,1.00087,1.00026,.99973,1.00002,1.00002,.99998,1,.99998,1,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,.99955,1.0006,.99998,1,1,1,1,1.00026,.99998,.99998,1,1.00001,.99561,.99973,1.00041,1,1,.99998,1,.99991,1,1.66475,1.0006,1,1,1,1,1.00026,1.41144,.99995,.99995,.99995,.99995,1.00026,1.00026,.99973,1.00022,1.00022,1.00022,1.00022,1.00022,.99973,.9993,.99973,.99973,.99973,.99973,.99973,.99973,1,1,1,1,.99973,.99902];r.HelveticaBoldLineHeight=1.2;r.HelveticaBoldItalicFactors=[.76116,1,.99977,1,1,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,.99977,.99977,.99977,.91155,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.9998,1.00001,1.00001,1,.99977,1.00026,.99977,.99973,1.00026,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,.99977,.99999,.99861,.99861,1,.99977,.99977,1.0006,.99971,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99969,1.0006,.99973,.99973,.99977,.99977,.99977,1.00026,1.00026,1.00001,1.00026,1.00026,1.00026,1.00026,.99999,.99999,.99977,.99977,.99977,.99977,.99977,.99977,1.00022,1,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1,.9998,1.00022,.99972,1.00022,1.00022,1.00022,1.00001,.99968,1.00032,1.00047,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.00001,1.00001,1.00001,1.00001,1.00001,.99944,1.00026,1.00026,1.00026,1.00026,1.00026,1.00022,1.00001,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,1.00001,.99981,.99977,.99977,1.00001,1.00016,1.00016,1.00016,1.00016,1.00016,1.00001,.99966,1.00001,1.00001,1.00001,1.00001,1.00001,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,.99973,.99973,.99973,.99998,1,.99973,.99982,.99982,1,.99977,.99999,.99977,1.00038,.99977,1.00001,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99966,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99964,.99973,.99977,.99999,1.00058,.99973,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,1.00044,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.99973,.99967,1,1.00026,1,.99971,.99978,1,.99973,.99981,.99981,.99973,.99977,1,.99973,1.00031,.99973,.99973,1.00049,1,1.00098,1,1,1,1,1.00003,1.00003,.99959,.9999,.99973,1.00026,1.0006,1.00077,1.00064,1.41144,.99959,.99959,.99998,.99998,.99998,1,1.00077,.99972,.99973,.99973,.99998,1,1,.99973,.99973,.99973,.99973,.99998,.99973,1.00063,.99999,.99998,1,.99962,.99998,1.0006,1,1,1.00025,.99973,1,1.00026,.99973,.99973,1.0044,1.00026,1.00024,.99942,.9995,.99998,1,.99998,1.06409,1.36625,1.41144,.99973,.99998,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,.99973,1,.99973,1.00026,.99973,1.00101,1.00101,1.00003,.99915,.99984,1.00026,1.00026,1.00026,.99998,.99999,.99998,.99998,1,.99999,1,.99973,1.00002,.99998,.99973,.99973,.99998,.99973,1.00026,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,.99998,1,1.00003,1.00031,.99973,.99973,.99998,.99998,1.00026,1.00026,1.00026,1.00042,.99999,.99998,1,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99973,1.0006,1.00015,1.00027,.99999,.99999,.99561,.99999,.99999,.99977,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99973,1.00014,.99973,.99973,1.0006,1.0006,.99973,1.01011,1.0006,.99999,1.00003,1.00031,1.41144,.99973,1.00003,1.0006,.99972,1.0006,1.40579,.99982,.60299,1,1,1.00003,1.00106,1.01322,1.00003,1,1,1.00026,1.00026,.9993,1.00026,1.00026,.99973,1,1.00031,1.00026,.99973,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,1.00016,.99998,1.00026,1.00026,1.00026,.99943,.99943,1.00026,1.00026,.99973,1.00002,1.00002,1.00002,1.40483,.99968,.99936,1,1.00026,1.00026,1.00026,1.00026,.99973,.99998,.99998,.99972,.99982,1.0006,1,1,1.00055,1.00012,1.00003,1.06409,1.20985,1.00007,1.00026,1.00026,1.00026,.99974,1,1,1,1.0006,1.0006,1.0006,1.0006,1.00087,.99959,.99959,1.00031,.99959,.99959,1.00025,1.00003,.99923,.99998,1.41144,.99973,.99973,.99973,.99973,.99973,.99973,.99999,.99973,.99973,1.00002,.99998,1.40579,1.00064,1,.99973,1.0006,1,.99953,.99973,1.39713,1.00054,.99998,1.00076,.99998,.8121,.99998,1.00069,1.00026,.99973,1.00002,1.00002,.99998,1,.99998,1,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,.99955,1.0006,.99998,1,1,1,1,1.00026,.99998,.99998,1,1.00001,.99967,.99973,.98685,1,1,.99998,1,.99991,1,1.66475,1.0006,1,1,1,1,1.00026,1.41144,.99948,.99948,.99948,.99948,1.00026,1.00026,.99973,1.00022,1.00022,1.00022,1.00022,1.00022,.99973,1.00065,.99973,.99973,.99973,.99973,.99973,.99973,1,1,1,1,.99973,1.00061];r.HelveticaBoldItalicLineHeight=1.35;r.HelveticaItalicFactors=[.76116,1,1.00001,1,1,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,.99977,.99977,.99977,.91221,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.9998,1.00001,1.00001,1.00054,.99977,.99977,.99977,.99973,1.00026,1.00022,.99945,1.00022,1.00022,1.00022,1.00022,.99977,.99999,.99861,.99861,1,.99977,.99977,1.0006,.99946,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00084,1.0006,1,1,1.00001,1.00001,1.00001,.99973,.99973,1.00001,.99973,.99973,.99973,.99973,.99999,.99999,.99977,.99977,.99977,.99977,.99977,.99977,1.00022,1,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1,1.00013,1.00022,1.00007,1.00022,1.00022,1.00022,1.00001,1.0001,1.00054,1.00052,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.00001,1.00001,1.00001,1.00001,1.00001,1.00065,1.00026,1.00026,1.00026,1.00026,1.00026,1.00022,1.00001,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,1.00001,.99973,.99977,.99977,1.00001,1.00016,1.00016,1.00016,1.00016,1.00016,1.00001,.99933,1.00001,1.00001,1.00001,1.00001,1.00001,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,.99973,.99973,.99973,.99998,1,.99973,.99982,.99982,1,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99962,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99975,.99973,1.00089,1.00005,.99967,1.00048,.99973,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99895,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,1,1.00051,1,.99973,1,1.00423,.99925,.99999,.99973,.99945,.99945,.99973,1.00001,1,.99973,1.00031,.99973,.99973,1,1,1.00049,1.00245,1,1,1,.99949,1.00003,.99959,.99987,.99973,.99973,1.0006,1.0009,.99949,1.41144,1.00005,1.00005,1.0006,1.0006,.99998,1,1.0009,.99972,1,1,.99998,1,1,1,1,1,1,.99998,.99973,1.00019,.99999,.99998,1,.99962,1.0006,1.0006,1,1,1.00025,.99973,1,.99973,.99973,.99973,1.0288,.99973,1.00024,1.0006,.9995,.99998,1,.99998,1.06409,1.36625,1.41144,.99973,.99998,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,.99973,1,.99973,.99973,.99973,.99897,.99897,1.00003,1.00003,.99984,.99968,.99968,.99973,1.0006,1,.99998,1.0006,1,.99999,1,.99973,1.00002,.99998,.99973,.99973,.99998,.99973,.99973,1,.99973,.99973,.99973,.99973,1.00026,.99998,1,1.00003,1.00031,.99973,.99973,.99998,.99998,.99973,.99973,.99973,1.00042,.99999,.99998,1,.99924,1.0006,1.0006,1.0006,1.0006,1.0006,1.00034,1.0006,1.00015,1.00027,.99999,.99999,1.00035,.99999,.99999,.99977,.99924,.99924,.99924,.99924,.99924,1.0006,.99924,.99924,1,1,1,1,.99924,.99924,.99962,1.06311,.99924,1.00024,1.00003,1.00031,1.41144,.99973,1.00003,.99924,.95317,.99924,1.40579,.99999,.60299,1,1,1.00003,1.00267,1.01487,1.00003,1,1,.99973,.99973,1.00041,.99973,.99973,.99973,1,1.00031,.99973,1,.99973,.99973,.99973,.99973,.99973,.99973,1.00016,.99998,.99973,.99973,.99973,1.00025,1.00025,.99973,.99973,.99973,1.00002,1.00002,1.00002,1.40483,.99968,.99936,1,1.00026,1.00026,.99973,.99973,.9998,.99998,.99998,.96329,.99982,1.0006,1,1.00023,.99947,1.00012,1.00003,1.06409,1.20985,1.00063,.99973,.99973,1.00026,1.00006,.99998,.99998,.99998,.99924,.99924,.99924,.99924,1.00043,.99998,.99998,.8254,.99998,.99998,1.00025,1.00003,1.00043,.99998,1.41144,1,1,1,1,1,1,.99999,.99973,.99973,1.00002,.99998,1.40579,.99995,1,.99973,1.0006,1,.99953,.99973,1.39713,1.00054,1.0006,.99994,1.0006,.89547,1.0006,.99911,.99973,.99973,1.00002,1.00002,.99998,1,.99998,1,1.00026,1.00026,1.00026,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99955,1.0006,.99998,1,1,1,1,1.00026,1.0006,.99998,1,1.00001,.99954,.99973,.98332,1,1,.99998,1,.99991,1,1.66475,1.0006,1,1,1,1,.99973,1.41144,1.00036,1.00036,1.00036,1.00036,.99973,.99973,1,.99977,.99977,.99977,.99977,.99977,1,1.0005,1,1,1,1,.99973,1,1,1,1,1,.99973,.99918];r.HelveticaItalicLineHeight=1.35;r.HelveticaRegularFactors=[.76116,1,1.00001,1,1,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.99928,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,.99977,.99977,.99977,.91621,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,.9998,1.00001,1.00001,.99977,.99977,1.00013,.99977,.99973,1.00026,1.00022,1.0004,1.00022,1.00022,1.00022,1.00022,.99977,.99999,.99861,.99861,1,.99977,.99977,1.0006,1.00019,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00055,1.0006,1,1,1.00001,1.00001,1.00001,.99973,.99973,1.00005,.99973,.99973,.99973,.99973,.99999,.99999,.99977,.99977,.99977,.99977,.99977,.99977,1.00022,1,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1.00022,1,.99941,1.00022,.99947,1.00022,1.00022,1.00022,1.00001,1.00019,.99977,.99946,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.00001,1.00001,1.00001,1.00001,1.00001,.99973,1.00026,1.00026,1.00026,1.00026,1.00026,1.00022,1.00001,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,.99977,1.00001,1.00001,.99945,.99977,.99977,1.00001,1.00016,1.00016,1.00016,1.00016,1.00016,1.00001,1.00015,1.00001,1.00001,1.00001,1.00001,1.00001,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,.99973,.99973,.99973,.99998,.99973,.99982,.99982,1,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99928,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,1.00047,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.9996,.99973,1.00043,.99953,1.0007,.99915,.99973,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99968,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1,1.00035,1,.99955,1,.99971,.99925,1.00023,.99973,.99978,.99978,.99973,1.00001,1,.99973,1.00031,.99973,.99973,1,1,1,1,1,1,1,.99949,1.00003,.99959,.99987,.99973,.99973,1.0006,1.0009,.99966,1.41144,1.00005,1.00005,1.0006,1.0006,.99998,1.0009,.99972,1,1,.99998,1,1,1,1,.99998,.99973,1.00019,.99999,.99998,.99962,1.0006,1.0006,1.00025,.99973,.99973,.99973,.99973,1.04596,.99973,1.00024,1.00065,.9995,.99998,.99998,1.06409,1.36625,1.41144,.99973,.99998,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1,.99973,1,.99973,.99973,.99973,1.00045,1.00045,1.00003,.99915,.99984,.99973,.99973,.99973,1.0006,1,.99998,1.0006,1,.99999,1,.99973,1.00002,.99973,.99973,.99973,.99973,1,.99973,.99973,.99973,.99973,1.00026,1,1,1,1,1,1,1,1,1,1,1,.99998,1.00003,1.00031,.99973,.99973,.99998,.99998,.99973,.99973,.99973,1.00042,.99999,.99998,.99924,1.0006,1.0006,1.0006,1.0006,1.0006,1.00034,1.0006,1.00015,1.00027,.99999,.99999,1.00035,.99999,.99999,.99977,.99924,.99924,.99924,.99924,.99924,1.0006,.99924,.99924,1,1,1,1,.99924,.99924,1,1.02572,.99924,1.00005,1.00003,1.00031,1.41144,.99973,1.00003,.99924,.95317,.99924,1.40579,.99999,.60299,1,1,1.00003,1.00267,.96499,1.00003,1,1,.99973,.99973,.99999,.99973,.99973,.99973,1,1.00031,.99973,1,.99973,.99973,.99973,.99973,.99973,.99973,1.00016,.99998,.99973,.99973,.99973,1.00031,1.00031,.99973,.99973,.99973,1.00002,1.00002,1.00002,1.40483,.99968,.99936,1,1.00026,1.00026,.99973,.99973,.9998,.99998,.99998,.96329,.99982,1.0006,1,1.00023,.99933,1.00008,1.00003,1.06409,1.20985,1.00015,.99973,.99973,1.00026,1.00006,.99998,.99998,.99998,.99924,.99924,.99924,.99924,1.00043,.99998,.99998,.8254,.99998,.99998,1.00025,1.00003,1.00027,.99998,1.41144,1,1,1,1,1,1,.99999,.99973,.99973,1.00002,1.40579,.9997,1,.99973,1.0006,1,.99953,.99973,1.39713,1.00054,1.0006,.99995,1.0006,.84533,1.0006,.99973,.99973,.99973,1.00002,1.00002,.99998,.99998,1,1.00026,1.00026,1.00026,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99955,1.0006,.99998,1,1,1,1,1.00026,1.0006,.99998,1,1.00001,.99561,.99973,1.00073,1,1,.99998,1,1,1,1,1,.99991,1,1.66475,1.0006,1,1,1,1,1,.99973,1.41144,1.00023,1.00023,1.00023,1.00023,.99973,.99973,1,.99977,.99977,.99977,.99977,.99977,1,1.00055,1,1,1,1,.99973,1,1,1,1,1,.99973,1.00019];r.HelveticaRegularLineHeight=1.2},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.LiberationSansRegularWidths=r.LiberationSansItalicWidths=r.LiberationSansBoldWidths=r.LiberationSansBoldItalicWidths=void 0;r.LiberationSansBoldWidths=[365,0,722,1e3,1e3,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,667,722,722,722,719,667,667,667,667,667,667,667,667,667,723,667,667,853,722,906,722,556,611,778,601,778,778,778,778,722,604,354,354,604,722,722,278,785,278,278,278,278,278,278,278,278,278,278,474,278,556,556,722,722,722,611,611,667,611,611,611,611,833,833,722,722,722,722,722,722,778,1e3,778,778,778,778,778,778,778,802,838,778,825,778,778,778,667,821,722,809,778,722,722,722,722,667,667,708,708,708,708,708,708,708,708,708,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,667,667,667,667,667,600,611,611,611,611,611,778,667,722,722,722,722,722,722,722,722,722,667,667,927,722,722,667,944,944,944,944,944,667,644,667,667,667,667,667,611,611,611,611,611,556,556,556,556,333,333,556,889,889,1e3,722,719,722,567,712,667,669,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,487,885,567,711,667,278,276,556,1094,1062,875,610,622,556,618,615,417,635,556,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,447,611,417,552,556,278,281,278,969,906,611,500,556,719,778,604,611,885,489,1115,556,615,615,556,722,333,556,549,556,556,1e3,500,1e3,1e3,500,500,500,584,584,389,975,556,611,278,280,610,708,389,389,333,333,333,333,280,350,556,556,333,333,222,556,556,556,556,333,556,576,604,333,333,656,333,278,333,222,737,556,333,611,556,556,719,611,400,606,510,333,333,465,549,729,708,556,333,278,556,556,556,556,556,556,556,556,556,333,1e3,556,1e3,556,611,556,475,451,584,583,600,611,611,611,333,604,333,333,750,604,1e3,556,834,333,556,556,333,556,611,556,611,611,611,611,611,333,333,584,549,556,556,333,333,611,611,611,594,604,333,333,278,278,278,278,278,278,556,278,713,274,604,604,722,604,604,1052,278,278,278,278,278,278,278,278,556,558,556,556,278,278,556,385,278,479,584,549,708,556,584,278,494,278,708,889,552,750,333,584,240,612,584,500,750,611,611,708,611,611,556,333,549,611,556,556,611,611,611,611,611,944,333,611,611,611,845,845,611,611,556,834,834,834,354,370,365,979,611,611,611,611,556,333,333,494,889,278,1e3,1094,715,766,584,549,823,753,611,611,611,474,500,500,500,278,278,278,278,238,389,389,549,389,389,737,584,619,333,708,556,556,556,556,556,556,479,556,556,834,333,708,684,520,556,278,1021,531,556,713,917,333,446,333,479,333,541,611,556,834,834,333,333,333,1e3,990,990,990,990,556,611,611,611,611,611,611,611,611,556,552,278,333,333,333,576,333,611,333,333,333,667,722,556,615,333,333,333,396,768,612,167,278,750,333,611,611,611,708,582,582,582,582,611,611,556,778,778,778,778,778,556,445,556,556,556,556,556,556,500,500,500,500,556,460];r.LiberationSansBoldItalicWidths=[365,0,722,1e3,1e3,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,722,667,722,722,722,671,667,667,667,667,667,667,667,667,667,723,667,667,854,722,906,722,556,611,778,610,778,778,778,778,722,604,354,354,604,722,722,278,782,278,278,278,278,278,278,278,278,278,278,473,278,556,556,722,722,722,611,611,667,611,611,611,611,833,833,722,722,722,722,722,722,778,1e3,778,778,778,778,778,778,778,781,847,778,844,778,778,778,667,822,718,829,778,722,722,722,722,667,667,708,708,708,708,708,708,708,708,708,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,667,667,667,667,667,590,611,611,611,611,611,778,667,722,722,722,722,722,722,722,722,722,667,667,930,722,722,667,944,944,944,944,944,667,657,667,667,667,667,667,611,611,611,611,611,556,556,556,556,333,333,556,889,889,1e3,722,708,722,614,722,667,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,575,886,614,719,667,278,278,556,1094,1042,854,622,677,556,619,604,534,618,556,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,467,611,469,563,556,278,278,278,969,906,611,507,556,719,778,611,611,885,516,1146,556,620,620,556,722,333,556,549,556,556,1e3,500,999,1e3,500,500,500,584,584,389,975,556,611,278,280,621,708,389,389,333,333,333,333,280,350,556,556,333,333,222,556,556,556,556,333,556,578,604,333,333,656,333,278,333,222,737,556,333,611,556,556,740,611,400,610,510,333,333,333,549,729,708,556,333,278,556,556,556,556,556,556,556,556,556,333,1e3,556,1e3,556,611,556,479,479,584,583,600,611,611,611,333,604,333,333,750,604,1e3,556,834,333,556,556,333,556,611,556,611,611,611,611,611,333,333,584,549,556,556,333,333,611,611,611,594,604,333,333,278,278,278,278,278,278,556,278,713,274,604,604,722,604,604,1052,278,278,278,278,278,278,278,278,556,566,556,556,278,278,556,396,278,479,584,549,708,556,584,278,494,278,708,889,552,750,333,584,240,603,584,500,750,611,611,708,611,611,556,333,549,611,556,556,611,611,611,611,611,944,333,611,611,611,834,834,611,611,556,834,834,834,354,370,365,979,611,611,611,611,556,333,333,494,889,278,1e3,1104,704,712,584,549,823,773,611,611,611,474,500,500,500,278,278,278,278,238,389,389,549,389,389,737,584,605,333,708,556,556,556,556,556,556,479,556,556,834,333,708,664,532,556,278,1021,531,556,713,917,333,409,333,479,333,558,611,556,834,834,333,333,333,1e3,990,990,990,990,556,611,611,611,611,611,611,611,611,556,552,278,333,333,333,576,333,611,333,333,333,667,719,556,619,333,333,333,396,768,612,167,278,750,333,611,611,611,708,591,591,591,591,611,611,556,778,778,778,778,778,556,450,556,556,556,556,556,556,500,500,500,500,556,492];r.LiberationSansItalicWidths=[365,0,667,1e3,1e3,667,667,667,667,667,667,667,667,667,667,667,667,667,667,722,722,722,722,722,722,667,722,722,722,671,667,667,667,667,667,667,667,667,667,723,667,667,789,722,846,722,556,611,778,570,778,778,778,778,722,604,354,354,604,722,722,278,733,278,278,278,278,278,278,278,278,278,278,389,278,500,500,667,667,667,556,556,667,556,556,556,556,833,833,722,722,722,722,722,722,778,1e3,778,778,778,778,778,778,778,761,775,778,794,778,778,778,667,837,725,831,778,722,722,722,722,667,667,708,708,708,708,708,708,708,708,708,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,667,667,667,667,667,600,611,611,611,611,611,778,667,722,722,722,722,722,722,722,722,722,667,667,865,722,722,667,944,944,944,944,944,667,648,667,667,667,667,667,611,611,611,611,611,556,556,556,556,333,294,556,889,889,1e3,667,651,667,544,704,667,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,492,843,544,708,667,278,278,500,1066,982,844,589,639,556,562,522,493,553,556,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,339,556,378,496,500,222,222,222,910,828,556,472,500,724,778,556,556,885,323,1083,556,570,570,556,667,278,556,549,556,556,1e3,500,1e3,998,500,500,500,469,584,389,1015,556,556,278,260,571,708,334,334,278,278,333,285,260,350,500,500,333,324,222,500,500,500,500,333,556,546,604,333,324,656,278,278,333,222,737,556,333,556,556,556,625,556,400,556,510,333,316,333,549,729,708,556,333,278,556,556,556,556,556,556,556,556,556,333,1e3,556,1e3,556,556,556,439,439,584,584,600,555,555,556,278,500,333,278,750,604,1e3,556,834,333,556,556,333,556,556,500,556,556,556,556,611,333,294,584,549,556,556,333,333,556,556,556,594,604,333,398,222,278,278,278,278,278,444,278,713,274,604,604,719,604,604,1052,222,222,222,222,222,278,222,222,500,500,500,500,222,222,492,281,222,400,584,549,708,556,584,222,494,222,708,833,552,750,333,584,188,548,584,500,750,556,556,615,556,556,556,333,549,556,500,556,556,556,556,556,556,944,333,556,556,556,779,779,556,556,556,834,834,834,354,370,365,979,611,611,556,556,537,333,333,494,889,278,1e3,1094,652,670,584,549,823,728,556,556,611,355,333,333,333,222,222,222,222,191,333,333,549,333,333,737,584,573,333,708,500,500,500,500,500,500,354,556,556,834,333,708,603,486,556,278,1021,531,556,713,917,278,374,278,354,278,542,556,556,834,834,333,328,333,1e3,990,990,990,990,556,556,556,556,556,556,556,556,556,556,552,278,333,333,333,576,333,611,278,333,278,667,715,556,565,333,333,333,365,768,612,167,278,750,333,500,500,556,708,550,550,550,550,556,556,500,722,722,722,722,722,500,447,500,500,500,500,556,500,500,500,500,500,556,463];r.LiberationSansRegularWidths=[365,0,667,1e3,1e3,667,667,667,667,667,667,667,667,667,667,667,667,667,667,722,722,722,722,722,722,667,722,722,722,668,667,667,667,667,667,667,667,667,667,723,667,667,784,722,838,722,556,611,778,551,778,778,778,778,722,604,354,354,604,722,722,278,735,278,278,278,278,278,278,278,278,278,278,384,278,500,500,667,667,667,556,556,668,556,556,556,556,833,833,722,722,722,722,722,722,778,1e3,778,778,778,778,778,778,778,748,752,778,774,778,778,778,667,798,722,835,778,722,722,722,722,667,667,708,708,708,708,708,708,708,708,708,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,667,667,667,667,667,618,611,611,611,611,611,778,667,722,722,722,722,722,722,722,722,722,667,667,855,722,722,667,944,944,944,944,944,667,650,667,667,667,667,667,611,611,611,611,611,556,556,556,556,333,556,889,889,1e3,667,656,667,542,677,667,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,489,865,542,719,667,278,278,500,1057,1010,854,583,635,556,573,531,365,583,556,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,411,556,365,510,500,222,278,222,906,812,556,438,500,719,778,552,556,885,323,1073,556,578,578,556,667,278,556,549,556,556,1e3,500,1e3,1e3,500,500,500,469,584,389,1015,556,556,278,260,575,708,334,334,278,278,333,260,350,500,500,333,500,500,500,500,333,556,525,604,333,656,278,278,737,556,556,556,556,615,556,400,557,510,333,333,549,729,708,556,333,278,556,556,556,556,556,556,556,556,556,1e3,556,1e3,556,556,556,446,446,584,583,600,556,556,556,278,500,333,278,750,604,1e3,556,834,556,556,556,556,500,556,556,556,556,611,333,222,222,294,294,324,324,316,328,398,285,333,584,549,556,556,333,333,556,556,556,594,604,333,222,278,278,278,278,278,444,278,713,274,604,604,719,604,604,1052,222,222,222,222,222,278,222,222,500,500,500,500,222,222,500,292,222,334,584,549,708,556,584,222,494,222,708,833,552,750,333,584,188,576,584,500,750,556,556,604,556,556,556,333,549,556,500,556,556,556,556,556,556,944,333,556,556,556,781,781,556,556,556,834,834,834,354,370,365,979,611,611,556,556,537,333,333,494,889,278,1e3,1094,648,690,584,549,823,713,556,556,611,355,333,333,333,222,222,222,222,191,333,333,549,333,333,737,584,569,333,708,500,500,500,500,500,500,354,556,556,834,708,617,482,556,278,1021,531,556,713,917,278,395,278,375,278,556,556,556,834,834,333,333,1e3,990,990,990,990,556,556,556,556,556,556,556,556,556,556,552,278,333,333,333,576,333,611,278,333,278,667,722,556,559,333,333,333,333,333,333,333,365,768,612,167,278,750,333,333,500,500,556,708,547,547,547,547,556,556,500,722,722,722,722,722,500,448,500,500,500,500,556,500,500,500,500,500,556,441]},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MyriadProRegularLineHeight=r.MyriadProRegularFactors=r.MyriadProItalicLineHeight=r.MyriadProItalicFactors=r.MyriadProBoldLineHeight=r.MyriadProBoldItalicLineHeight=r.MyriadProBoldItalicFactors=r.MyriadProBoldFactors=void 0;r.MyriadProBoldFactors=[1.36898,1,.90838,.868,.868,.90838,.90838,.90838,.90838,.90838,.90838,.91945,.90838,.90838,.90838,.90838,.90838,.83637,.83637,.82391,.82391,.82391,.82391,.82391,.82391,.91905,.96376,.96376,.97484,.90157,.80061,.80061,.80061,.80061,.80061,.80061,.80061,.80061,.80061,.95417,.80061,.80061,.75261,.95407,.87992,.97484,.99793,.86275,.8768,.8019,.8768,.8768,1,.8768,.95407,1,1,1,1,.97069,.95407,1.0258,.887,1.0258,1.0258,1.0258,1.0258,1.0258,1.0258,1.0258,1.0258,1.0258,1.0258,.82976,1.0258,.73901,.73901,.85022,.85022,1,.83655,.83655,.97153,.83655,1,.83655,.84638,1.0156,1.0156,.95546,.95546,.95546,1,.95546,.95546,.92179,.936,.92179,.92179,.92179,.92179,.92179,.92179,.92179,.92796,.97268,.92179,.96034,.92179,.92179,.92179,.87107,.95638,.92361,.91709,.92179,.82114,.82114,.82114,1,.87107,.8096,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,.8096,.8096,1,.8096,1,.96318,.89713,.89713,.89713,.89713,1,.92436,.86958,.94438,.94438,.94438,.94438,.94438,.94438,.94438,.94438,.94438,.93704,.93704,.83689,.94438,.94438,.95353,.94083,.94083,.94083,.94083,.94083,.91905,.89192,.90406,.90406,.90406,.90406,.90406,.9446,.9446,.9446,.9446,.9446,.94938,.94938,.94938,.94938,.90088,1,.94938,.9031,.9031,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,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,.94938,.94836,.94836,.94938,.93884,.83181,.94938,1.08595,.94938,.94938,1,1,1,1,1,1,1,1.02058,1.02058,1.16661,.78966,.94938,.97898,1.18777,1.01149,.96174,1,.80687,.80687,.94292,.94292,.90088,1,1.01149,.96544,.81093,.81093,.90088,1,1,.81093,.81093,.81093,.81093,.90088,.99793,.87548,1,.90088,1,1,.78076,.93582,1,1,.91882,.99793,1,.97571,.94219,.94219,.84313,.97571,.89022,.9498,1,.90088,1,.9358,1.08595,1,1,.99793,.90088,.98621,.94938,.94938,.94938,.94938,.94938,.94938,.94938,.94938,.99793,1,1,.94938,1,.89903,.95933,.94938,.98607,1.0373,1.02058,1,1.36145,.95933,.95933,.93969,.80479,1,.80479,1.024,1,1,1,.99793,1,1,.99793,.99793,1,1,.9577,.92601,.9577,.9577,1,.9577,.98225,.90088,1,1.02058,1.08595,.8361,.8361,.81079,.81079,.95933,.95933,.95933,1,1,.90088,1,.98621,.98621,.98621,.98621,.98621,.98621,1.01591,.98621,1.05486,1.30692,1,1,1,1,1,1,.98621,1.0078,1.0078,1.0078,1.0078,.98621,1.0474,1.0474,.97455,.98275,1,.97455,.98981,.98981,.9314,.73977,1,.73903,1.02058,1.08595,1,1,1.02058,1,1.16161,1.033,1,.9672,.54324,1,1,1.02058,1,.95617,1.02058,1,1,.95933,.95933,.8271,.95933,1,.99793,1,1.08595,.95933,.91701,.98894,.9446,.9446,.9446,.9446,.9446,.91964,.90088,.9446,.9446,.9446,.86774,.86774,.9446,.9446,.99793,1,.99642,.99642,1,1.0213,1.05686,1,.9446,.9446,.9446,.97898,.97455,.94292,.94292,1.17173,.9897,.93582,1.285,1,.99394,.78367,1.02058,1.08595,.80535,.96361,.97407,.72851,.72851,.83734,.918,.908,.908,.93582,1,.93582,.93582,.86209,.97646,.97646,1.0732,.97646,1,.62295,1,.9553,.90088,1,.78036,.78036,.78036,1,.78036,1,1,1.00872,.99793,1,1,1,.86832,1,.99793,1.19137,1,1,.99793,.76169,1,1.10208,1.0128,1.10208,.77452,1,1.05453,.97898,.99793,1,.99642,.90088,1,.90989,.65,1,1,1,1,.99793,.95442,.95442,.95442,.95442,.95442,.95442,.95442,.95442,.89903,1,.72706,.96694,1,1,1,1,.89713,1.10208,.90088,.78076,1,1,1,1,.96694,1,1,1,1,1,.74854,.93582,1,1,1,1,.95442,1,.95871,.95871,.95871,.95871,.95442,.95442,.95298,.97579,.97579,.97579,.97579,.97579,.9332,1.05993,.94039,.94039,.94039,.94039,.99793,.94039,.938,.938,.938,.938,.99793,.95776];r.MyriadProBoldLineHeight=1.2;r.MyriadProBoldItalicFactors=[1.36898,1,.85576,.845,.845,.85576,.85576,.85576,.85576,.85576,.85576,.85576,.85576,.85576,.85576,.85576,.85576,.80591,.80591,.80729,.80729,.80729,.80729,.80729,.80729,.85308,.94299,.94299,.95961,.94729,.77512,.77512,.77512,.77512,.77512,.77512,.77512,.77512,.77512,.92098,.77512,.77512,.66862,.92222,.7927,.95961,.97276,.83655,.86523,.7805,.86523,.86523,1,.86523,.92222,1,1,1,1,.92222,.92222,.98621,.86036,.98621,.98621,.98621,.98621,.98621,.98621,.98621,.98621,.98621,.98621,.69323,.98621,.71743,.71743,.81698,.81698,1,.79726,.79726,.92655,.79726,1,.79726,.81691,.98558,.98558,.92222,.92222,.92222,1,.92222,.92222,.90637,.909,.90637,.90637,.90637,.90637,.90637,.90637,.90637,.92346,.89711,.90637,.88127,.90251,.90251,.90637,.83809,.93157,.90976,.83392,.90637,.80729,.80729,.80729,1,.83809,.76463,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,.76463,.76463,1,.76463,1,.94523,.86275,.86275,.86275,.86275,1,.90637,.83659,.90699,.90699,.90699,.90699,.90699,.90699,.90699,.90699,.90699,.83509,.83509,.72459,.90699,.90699,.91605,.9154,.9154,.9154,.9154,.9154,.85308,.85359,.85458,.85458,.85458,.85458,.85458,.90531,.90531,.90531,.90531,.90531,.99613,.99613,.99613,.99613,1.18616,1,.99613,.85811,.85811,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,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,.99613,.92886,.92886,.99613,.92222,.80178,.99613,1.08595,.99613,.99613,1,1,1,1,1,1,1,1.02058,1.02058,1.16148,.76813,.99613,.91677,1.21296,.8578,.90557,1,.80687,.80687,.94292,.94292,1.18616,1,.8578,.95973,.78216,.78216,1.18616,1,1,.78216,.78216,.78216,.78216,1.18616,.97276,.81539,1,1.18616,1,1,.78076,.93582,1,1,.91339,.97276,1,.91677,.9332,.9332,.76783,.91677,.89022,.90276,1,1.18616,1,1.30628,1.08595,1,1,.97276,1.18616,.95381,.90083,.90083,.90083,.90083,.90083,.90083,.90083,.90083,.97276,1,1,.90083,1,.89903,.92168,.90083,.91324,.91324,1.02058,1,1.36145,.92168,.92168,.9135,.80779,1,.80779,.98796,1,1,1,.97276,1,1,.97276,.97276,1,1,.9135,.86847,.9135,.9135,1,.9135,.94951,1.18616,1,1.02058,1.08595,.82891,.82711,.80479,.80178,.92168,.92168,.92168,1,1,1.18616,1,.95381,.95381,.95381,.95381,.95381,.95381,.97096,.95381,1.05486,1.23026,1,1,1,1,1,1,.95381,.95381,.95381,.95381,.95381,.95381,.98981,.98981,.95298,.9224,1,.95298,.95381,.95381,.85408,.6894,1,.74321,1.02058,1.08595,1,1,1.02058,1,1.20006,1.0006,1,.93459,.71526,1,1,1.02058,1,.92699,1.02058,1,1,.92168,.92168,.79464,.92168,1,.97276,1,1.08595,.92168,.86847,.97276,.91513,.91513,.91513,.91513,.91513,.87514,1.18616,.91513,.91513,.91513,.85923,.85923,.91513,.91513,.97276,1,.99043,.99043,1,1.08074,1.04864,1,.91677,.91677,.91513,.92004,.96736,.94292,.94292,1.14542,.97733,.93582,1.26,1,.97355,.80487,1.02058,1.08595,.79199,.89398,.91677,.71541,.71541,.81625,.896,.896,.896,.91782,1,.91782,.91782,.83266,.95077,.95077,1.03493,.95077,1,.55509,1,.93481,1.18616,1,.748,.748,.748,1,.748,1,1,.99973,.97276,1,1,1,.88159,1,.97276,1.17337,1,1,.97276,.78694,1,1.04502,1.05214,1.04502,.72651,1,.99531,.92332,.97276,1,.99043,1.18616,1,1.00899,.698,1,1,1,1,.97276,.91677,.91677,.91677,.91677,.91677,.91677,.91677,.91677,.89903,1,.66227,.96694,1,1,1,1,.86275,1.04502,1.18616,.78076,1,1,1,1,.96694,1,1,1,1,1,.85633,.93582,1,1,1,1,.91677,1,.90646,.90646,.90646,.90646,.91677,.91677,.92061,.94236,.94236,.94236,.94236,.94236,.89544,1.0051,.89364,.89364,.89364,.89364,.97276,.89364,.9,.9,.9,.9,.97276,.86842];r.MyriadProBoldItalicLineHeight=1.2;r.MyriadProItalicFactors=[1.36898,1,.85158,.773,.773,.85158,.85158,.85158,.85158,.85158,.85158,.85158,.85158,.85158,.85158,.85158,.85158,.77812,.77812,.76852,.76852,.76852,.76852,.76852,.76852,.78112,.89591,.89591,.90561,.88836,.70466,.70466,.70466,.70466,.70466,.70466,.70466,.70466,.70466,.87396,.70466,.70466,.62264,.86822,.7646,.90561,.88465,.76125,.80094,.76449,.80094,.80094,1,.80094,.86822,1,1,1,1,.86822,.86822,.83864,.81402,.83864,.83864,.83864,.83864,.83864,.83864,.83864,.83864,.83864,.83864,.65351,.83864,.728,.728,.77212,.77212,1,.79475,.79475,.85308,.79475,1,.79475,.80553,.93637,.93637,.87514,.87514,.87514,1,.87514,.87514,.8588,.867,.8588,.8588,.8588,.8588,.8588,.8588,.8588,.89386,.89947,.8588,.86026,.85751,.85751,.8588,.76013,.82565,.85701,.77899,.8588,.72421,.72421,.72421,1,.76013,.69866,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,.69866,.69866,1,.69866,1,.89058,.77598,.77598,.77598,.77598,1,.8588,.76013,.85991,.85991,.85991,.85991,.85991,.85991,.85991,.85991,.85991,.8156,.8156,.69461,.85991,.85991,.80811,.87832,.87832,.87832,.87832,.87832,.78112,.82352,.77512,.77512,.77512,.77512,.77512,.8562,.8562,.8562,.8562,.8562,.93859,.93859,.93859,.93859,1.15012,1,.93859,.8075,.8075,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,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,.93859,.9486,.9486,.93859,.88307,.77025,.93859,1.08595,.93859,.93859,1,1,1,1,1,1,1,1.27014,1.02058,1.06383,.70926,.93859,.94399,1.18417,.83537,.93298,1,.85034,.85034,1.0222,1.0222,1.15012,1,.83537,.79121,.846,.846,1.15012,1,1,.846,.846,.846,.846,1.15012,.88465,.77487,1,1.15012,1,1,.75945,.75945,1,1,.9161,.88465,1,.94399,.86847,.86847,.8544,.94399,.79519,.93942,1,1.15012,1,1.03901,1.08595,1,1,.88465,1.15012,.82424,.81453,.81453,.81453,.81453,.81453,.81453,.81453,.81453,.88465,1,1,.81453,1,.89903,.96017,.81453,.92388,.92388,1.02058,1,1.36145,.96186,.96186,.9278,.84943,1,.70869,1.0186,1,1,1,.88465,1,1,.88465,.88465,1,1,.94219,.878,.94219,.94219,1,.94219,.88075,1.15012,1,1.02058,1.08595,.73541,.73361,.73572,.73572,.96017,.96017,.96017,1,1,1.15012,1,1.03075,.82424,.82424,.82424,.82424,.82424,1.02738,.82424,1.02119,1.06233,1,1,1,1,1,1,1.03075,1.03075,1.03075,1.03075,1.03075,.82424,1.02175,1.02175,.912,.922,1,.912,1.03075,1.03075,.88787,.83911,1,.66266,1.02058,1.08595,1,1,1.02058,1,1.05233,1.06676,1,.96998,.69353,1,1,1.02058,1,.95829,1.02058,1,1,.96017,.96017,.86865,.96017,1,.88465,1,1.08595,.96017,.88,.88465,.93859,.93859,.93859,.93859,.93859,.84759,1.15012,.93859,.93859,.93859,.86799,.86799,.93859,.93859,.88465,1,.9005,.9005,1,.94565,.9446,1,.8562,.8562,.93859,.94399,.91974,.85283,.85283,1.04828,.86936,.75945,1.124,1,.93969,.78815,1.02058,1.08595,.74948,.85769,.94399,.69046,.62864,.85639,1.027,1.027,1.027,.87321,1,.87321,.87321,.86948,.95493,.95493,.98391,.95493,1,.53609,1,.93758,1.15313,1,.746,.746,.746,1,.746,1,1,.90083,.88465,1,1,1,.89217,1,.88465,1.17337,1,1,.88465,.75187,1,1.12658,1.03737,1.12658,.88417,1,.95119,.94578,.88465,1,.9005,1.15012,1,1.08106,.669,1,1,1,1,.88465,.94578,.94578,.94578,.94578,.94578,.94578,.94578,.94578,.89903,1,.65507,.9219,1,1,1,1,.77598,1.12658,1.15012,.75945,1,1,1,1,.9219,1,1,1,1,1,.85034,.75945,1,1,1,1,.94578,1,.91123,.91123,.91123,.91123,.94578,.94578,.91,.979,.979,.979,.979,.979,.882,.93559,.882,.882,.882,.882,.88465,.882,.83,.83,.83,.83,.88465,.84596];r.MyriadProItalicLineHeight=1.2;r.MyriadProRegularFactors=[1.36898,1,.91755,.788,.788,.91755,.91755,.91755,.91755,.91755,.91755,.92138,.91755,.91755,.91755,.91755,.91755,.8126,.8126,.80314,.80314,.80314,.80314,.80314,.80314,.85608,.92222,.92222,.92915,.92819,.73764,.73764,.73764,.73764,.73764,.73764,.73764,.73764,.73764,.90991,.73764,.73764,.7154,.90284,.86169,.92915,.92241,.79726,.83051,.81884,.83051,.83051,1,.83051,.90284,1,1,1,1,.90976,.90284,.86023,.82873,.86023,.86023,.86023,.86023,.86023,.86023,.86023,.86023,.86023,.86023,.80513,.86023,.74,.74,.8126,.8126,1,.84869,.84869,.91172,.84869,1,.84869,.85588,.96518,.96518,.91115,.91115,.91115,1,.91115,.91115,.8858,.894,.8858,.8858,.8858,.8858,.8858,.8858,.8858,.94307,.98612,.8858,.94007,.8858,.8858,.8858,.79761,.89992,.87791,.81992,.8858,.74498,.74498,.74498,1,.79761,.73914,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,.73914,.73914,1,.73914,1,.89297,.81363,.81363,.81363,.81363,1,.8858,.79611,.89591,.89591,.89591,.89591,.89591,.89591,.89591,.89591,.89591,.88157,.88157,.82528,.89591,.89591,.83659,.89633,.89633,.89633,.89633,.89633,.85608,.83089,.8111,.8111,.8111,.8111,.8111,.90531,.90531,.90531,.90531,.90531,.86667,.86667,.86667,.86667,.90088,.86667,.86936,.86936,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,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,.86667,.95308,.95308,.86667,.90706,.78105,.86667,1.08595,.86667,.86667,1,1,1,1,1,1,1,1.27014,1.02058,1.0664,.72601,.86667,1.0231,1.22736,.92006,.97358,1,.85034,.85034,1.0222,1.0222,.90088,.92006,.80549,.896,.896,.90088,.896,.896,.896,.896,.90088,.92241,.87064,1,.90088,1,.74505,.74505,.91882,.92241,1.01411,.89903,.89903,.93372,1.01411,.79519,.98088,1,.90088,1.03901,1.08595,1,1,.92241,.90088,.84224,.90083,.90083,.90083,.90083,.90083,.90083,.90083,.90083,.92241,1,.90083,1,.89903,.99793,.90083,.98699,.98699,1.02058,1,1.36145,.99793,.99793,.97276,.82784,1,.69067,1.05099,1,1,1,.92241,1,.92241,.92241,1,1.00512,.928,1.00512,1.00512,1,1.00512,.89713,1,1,1,1,1,1,1,1,1,1,1,.90088,1.02058,1.08595,.75339,.75339,.76575,.76575,.99793,.99793,.99793,1,1,.90088,1.05326,.84224,.84224,.84224,.84224,.84224,1.07469,.84224,1.02119,1.1536,1,1,1,1,1,1,1.05326,1.06226,1.06226,1.06226,1.06226,.84224,1.09377,1.09377,.938,.986,1,.938,1.06226,1.06226,.944,.83704,1,.81441,1.02058,1.08595,1,1,1.02058,1,1.05638,1.08927,1,1.00119,.54324,1,1,1.02058,1,.95978,1.02058,1,1,.99793,.99793,.91887,.99793,1,.92241,1,1.08595,.99793,.938,.89364,.98714,.98714,.98714,.98714,.98714,.91434,.90088,.98714,.98714,.98714,.88888,.88888,.98714,.98714,.92241,1,.91009,.91009,1,.93484,.97198,1,.89876,.89876,.98714,1.0231,.95325,.85283,.85283,1.07257,.89073,.74505,1.156,1,.99007,.80442,1.02058,1.08595,.74705,.91879,1.01231,.73002,.66466,.94935,1.06904,1.06304,1.06304,.93173,1,.93173,.93173,.98472,.98196,.98196,1.024,.98196,1,.56866,1,.98972,.90088,1,.792,.792,.792,1,.792,1,1,.9332,.92241,1,1,.89762,1,.92241,1.23456,1,1,.92241,.71119,1,1.19137,1.04552,1.19137,.904,1,.96017,1.0231,.92241,1,.91009,.90088,.90388,.619,1,1,1,1,.92241,.99074,.99074,.99074,.99074,.99074,.99074,.99074,.99074,.89903,1,.76305,.9219,1,1,1,1,.81363,1.19137,.90088,.74505,1,1,1,1,.9219,1,1,1,1,1,1,1,1,1,.72458,.74505,1,1,1,1,1,.99074,1,.95817,.95817,.95817,.95817,.99074,.99074,.962,1.01915,1.01915,1.01915,1.01915,1.01915,.926,.96705,.942,.942,.942,.942,.92241,.942,.856,.856,.856,.856,.92241,.92761];r.MyriadProRegularLineHeight=1.2},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.SegoeuiRegularLineHeight=r.SegoeuiRegularFactors=r.SegoeuiItalicLineHeight=r.SegoeuiItalicFactors=r.SegoeuiBoldLineHeight=r.SegoeuiBoldItalicLineHeight=r.SegoeuiBoldItalicFactors=r.SegoeuiBoldFactors=void 0;r.SegoeuiBoldFactors=[1.76738,1,.97363,.93506,.93506,.97363,.97363,.97363,.97363,.97363,.97363,1.01149,.97363,.97363,.97363,.97363,.97363,.88776,.88776,.8641,.8641,.8641,.8641,.8641,.8641,.98243,1.02096,1.02096,1.02096,.97826,.79795,.79795,.79795,.79795,.79795,.79795,.79795,.79795,.79795,1.09251,.79795,.79795,.7676,1.06085,.98167,1.02096,1.03424,.85132,.914,.85134,.914,.914,1,.914,1.06085,1,.99862,.99862,1,1.06085,1.06085,1.1406,.97138,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.01134,1.1406,.8007,.8007,.89858,.89858,1,.83693,.83693,1.0388,.83693,1,.83693,.83693,1.14889,1.14889,1.09398,1.09398,1.09398,1,1.09398,1.09398,.97489,.93994,.97426,.97489,.97426,.97426,.97426,.97489,.97489,.95493,1.03089,.97489,1.02546,.97489,.97489,.97426,.92094,.99346,1.0595,1.02112,.97489,.90399,.90399,.90399,1,.92094,.84041,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,.84041,.84041,.84041,.84041,1,.94793,.95923,.95923,.95923,.95923,1,.97489,.92094,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,.90996,.90996,.84097,1.00135,1.00135,1,1.06467,1.06467,1.06467,1.06467,1.06467,.98243,.86039,.90996,.90996,.90996,.90996,.90996,.99361,.99361,.99361,.99361,.99361,.96752,.96752,.96752,.96752,.91056,1,.96752,.93136,.93136,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,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,.96752,1.03574,1.03574,.96752,1.17647,.81525,.96752,1.29004,.96752,.96752,.86182,.94434,.86279,.86279,.94434,1,1,1.2107,1.2107,1.16939,.97847,.96752,1.01519,1.56942,1.16579,1.0192,1,.94856,.94856,1.1085,1.1085,1.03959,1,1.16579,1.20642,.86304,.86304,1.15103,1,1,.86304,.86304,.86304,.86304,.64663,1.03424,.96268,1.42603,1.15103,1,1.04315,.81378,.9754,1,1,1.18622,1,1,1.01359,.73047,.73047,1.03057,1.03517,.94994,1.00886,1.34163,1.3871,1,.87815,1.28826,1,1,1.03424,.75953,1.02285,.97278,.97278,.97278,.97278,.97278,.97278,.97278,.97278,1.03424,1,.91211,.97278,1,.89903,.99041,.97278,.97531,1.02597,1.2107,1.21172,1,1.0008,1.0008,.97122,.9824,.96039,.9824,1.15103,1,1.42603,1,1.03424,1.15749,1,1.03424,1.03424,1,.93503,1.01359,1.01932,1.01359,1.01359,1,1.01359,1.02798,.94282,1,1.2107,1.29004,1.04478,1.04478,1.03372,1.03372,.98561,1.00879,.98561,1.15296,1,1.21994,1,1.02285,1.02285,1.02285,1.02285,1.02285,1.02285,1.08692,1.02285,1.13973,2.10339,1,1,.9716,1.42603,1.42603,1,1.02285,1.18102,1.18102,1.18102,1.18102,1.02285,1.02285,1.02285,1.00527,1.02277,1,1.00527,1.02285,1.02285,.98683,.9455,1,.90418,1.2107,1.29004,1,1.03424,1.2107,1.07733,1.18874,1.13005,1,1.0302,.75155,1,1,1.2107,1.222,1.0016,1.2107,1,1,.99041,.99041,.96692,.99041,1,1.03424,1,1.29004,.99041,.99561,1.06497,1.0008,1,1.0008,1,1,.97931,.79912,1,1.0008,1.0008,.98439,.98439,1.0008,1.0008,1.03424,1.15749,1.15749,1.14169,.99862,1.10818,1.24866,.69825,1.0008,1.0008,1,1.01519,.91572,1.1085,1.1085,1.16897,.97529,.9754,1.25635,1.19687,1.04983,.90434,1.2107,1.28826,.96085,1.0499,1.01359,.71703,.71703,1.04016,.98633,.98633,.98633,1.04394,1.04394,1.04394,1.04394,1.23203,1.02258,1.02258,1.18416,1.02258,1,1.18622,1,.99921,.81378,1,.79104,.79104,.79104,.79104,.79104,1,1.02956,.8727,1.03424,1.10948,1,1,.8965,.93803,1.03424,1.59578,1,1.2886,1.03424,.90137,1,1.16862,1.23085,1.16862,1.07034,1,1.13189,1.01519,1.03424,1.15749,1.17389,1.15103,1,.95161,.771,.87025,.87025,.87025,.87025,1.03424,.99041,.99041,.99041,.99041,.99041,.99041,.99041,.99041,.74627,.75155,.99297,1.21408,1.21408,1.21408,1,1.18328,.95923,1.16862,1.01173,.81378,.79795,1.09466,.97278,1.02065,1,1.21408,1.24633,1.12454,1,1,1,.9754,1,1,1.09193,1.09193,.99041,1,1.06628,1.06628,1.06628,1.06628,.99041,.99041,.97454,1.02511,1.02511,1.02511,1.02511,1.02511,.99298,1.07237,.96752,.96752,.96752,.96752,1.03424,.96752,.95801,.95801,.95801,.95801,1.03424,1.0106];r.SegoeuiBoldLineHeight=1.33008;r.SegoeuiBoldItalicFactors=[1.76738,1,.97363,.94385,.94385,.97363,.97363,.97363,.97363,.97363,.97363,1.00811,.97363,.97363,.97363,.97363,.97363,.89723,.89723,.87897,.87897,.87897,.87897,.87897,.87897,.9817,1.0426,1.0426,1.0426,1.09818,.79429,.79429,.79429,.79429,.79429,.79429,.79429,.79429,.79429,1.10466,.79429,.79429,.77702,1.05815,.99137,1.0426,1.036,.85292,.91149,.86869,.91149,.91149,1,.91149,1.05815,1,.99862,.99862,1,1.05815,1.05815,1.1406,.97441,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,1.1406,.95253,1.1406,.79631,.79631,.90128,.90128,1,.83853,.83853,1.06662,.83853,1,.83853,.83853,1.04396,1.04396,1.10615,1.10615,1.10615,1,1.10615,1.10615,.97552,.91602,.97552,.97552,.97552,.97552,.97552,.97552,.97552,.98999,1.07205,.97552,1.0347,.97552,.97552,.97552,.94436,1.00356,1.04694,1.01945,.97552,.88641,.88641,.88641,1,.94436,.80527,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,.80527,.80527,.80527,.80527,1,.98015,.96083,.96083,.95923,.96083,1,.97552,.94436,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,1.00135,.91142,.91142,.86142,1.00135,1.00135,1,1.06777,1.06777,1.06777,1.06777,1.06777,.9817,.84918,.91142,.91142,.91142,.91142,.91142,.99361,.99361,.99361,.99361,.99361,1.06585,1.06585,1.06585,1.06585,1.31818,1,1.06585,.96705,.96705,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,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.06585,1.04961,1.04961,1.06585,1.10953,.83284,1.06585,1.29004,1.06585,1.06585,.86224,.94434,.86364,.86279,.94434,1,1,1.21237,1.21237,1.16939,.97847,1.06585,.97042,1.57293,1.16579,.99607,1,.95107,.95107,1.11144,1.11144,1.31818,1,1.16579,1.20502,.83055,.83055,1.31818,1,1,.83055,.83055,.83055,.83055,1.31818,1.036,.93491,1.42603,1.31818,1,1.04315,.81378,.9754,1,1,1.18754,1,1,.97042,.72959,.72959,1.0033,.97042,.94994,1.008,1.34163,1.31818,1,1.27126,1.29004,1,1,1.036,1.31818,1.14236,.93503,.93503,.93503,.93503,.93503,.93503,.93503,.93503,1.036,1,.91406,.93503,1,.89903,.97922,.93503,.9898,.9898,1.21237,1.21339,1,1.00639,1.00639,.93125,1.03959,.96039,1.03959,1.1261,1,1.42603,1,1.036,1.15574,1,1.036,1.036,1,.93327,.97042,1.02897,.97042,.97042,1,.97042,.98721,1.31818,1,1.21237,1.29004,1.05356,1.05356,1.03372,1.03372,.97922,.97922,.97922,1.15296,1,1.31818,1,1.14236,1.14236,1.14236,1.14236,1.14236,1.14236,1.04302,1.14236,1.13904,2.10339,1,1,.9716,1.42603,1.42603,1,1.14236,1.14236,1.14236,1.14236,1.14236,1.14236,.94552,1.01582,1.01054,1.00518,1,1.01054,1.14236,1.14236,.97981,1.09125,1,.90418,1.21237,1.29004,1,1.03336,1.21237,1.23199,1.18775,1.19508,1,1.02471,.79487,1,1,1.21237,1.222,1.02186,1.21237,1,1,.97922,.97922,1.01034,.97922,1,1.036,1,1.29004,.97922,1,1.02809,.94165,.94165,.94165,.94165,.94165,.91981,1.31818,.94165,.94165,.94165,1.00351,1.00351,.94165,.94165,1.036,1.15574,1.15574,1.13934,.99862,1.26781,1.24866,.69825,.94165,.94165,.94165,.97042,.91484,1.11144,1.11144,1.16798,.97639,.9754,1.26514,1.16541,1.10687,.99314,1.21237,1.29004,.96085,1.04232,.97042,.73541,.73541,1.04016,.98633,.98633,.98633,1.04745,1.04394,1.04745,1.04745,1.23203,1.0276,1.0276,1.18416,1.0276,1,1.18622,1,.98387,1.31818,1,.78929,.78929,.78929,.78929,.78929,1,1.02956,.87357,1.036,1.15574,1,1,.93377,.93028,1.036,1.59754,1,1.2886,1.036,.90068,1,1.1261,1.35125,1.16862,1.05403,1,1.11121,.97042,1.036,1.15574,1.17389,1.31818,1,.95161,.771,.87025,.87025,.87025,.87025,1.036,.97922,.97922,.97922,.97922,.97922,.97922,.97922,.97922,.74627,.75155,.98946,1.21261,1.24047,1.24047,1,1.1349,.96083,1.1261,1.31818,.81378,.79429,1.09097,.93503,.96609,1,1.21261,1.24633,1.09125,1,1,1,.9754,1,1,1.13269,1.13269,.97922,1,1.07514,1.07514,1.07514,1.07514,.97922,.97922,.95874,1.02197,1.02197,1.02197,1.02197,1.02197,.98507,1.08578,.96752,.96752,.96752,.96752,1.036,.96752,.97168,.97168,.97168,.97168,1.036,.95134];r.SegoeuiBoldItalicLineHeight=1.33008;r.SegoeuiItalicFactors=[1.76738,1,.94729,.85498,.85498,.94729,.94729,.94729,.94729,.94729,.94729,.94729,.94729,.94729,.94729,.94729,.94729,.85944,.85944,.88506,.88506,.88506,.88506,.88506,.88506,.8858,.9858,.9858,.9858,.9607,.74817,.74817,.74817,.74817,.74817,.74817,.74817,.74817,.74817,1.03849,.74817,.74817,.71022,.98039,.90883,.9858,.96927,.80016,.88449,.82791,.88449,.88449,1,.88449,.98039,1,.99862,.99862,1,.98039,.98039,.95782,.84421,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.84171,.95782,.69238,.69238,.89898,.89898,1,.83231,.83231,.98316,.84723,1,.84723,.83231,.98183,.98183,1.03989,1.03989,1.03989,1,1.03989,1.03989,.96924,.92383,.96924,.96924,.96924,.96924,.96924,.96924,.96924,1.01284,1.05734,.96924,.99877,.96924,.96924,.96924,.86237,.90082,.97642,.97296,.96924,.80595,.80595,.80595,1,.86237,.74524,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,.74524,.74524,.74524,.74524,1,.86075,.86091,.86091,.85771,.86091,1,.96924,.86237,.95402,.95402,.95402,.95402,.95402,.95402,.95402,.95402,.95402,.83089,.83089,.77596,.95402,.95402,.94143,.98448,.98448,.98448,.98448,.98448,.8858,.78614,.83089,.83089,.83089,.83089,.83089,.93285,.93285,.93285,.93285,.93285,.97454,.97454,.97454,.97454,1.04839,1,.97454,.92916,.92916,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,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,.97454,1.0976,1.0976,.97454,1.15373,.78032,.97454,1.24822,.97454,.97454,.86182,.94434,.86321,.8649,.94434,1,1,1.45994,1.17308,1.07403,.94565,.97454,.97454,1.39016,.92481,.98205,1,.91082,.91082,1.0949,1.0949,1.04839,1,.92481,1.15621,.87207,.87207,1.04839,1,1,.87207,.87207,.87207,.87207,1.04839,.96927,.99821,1.42603,1.04839,1,1.04315,.78383,.78383,1,1,1.23393,1,1,.97454,.67603,.67603,.95391,.97454,.94261,1.05097,1.34163,1.04839,1,.81965,1.24822,1,1,.96927,1.04839,.93146,.87533,.87533,.87533,.87533,.87533,.87533,.87533,.87533,.96927,1,.73584,.87533,1,.89903,1.01054,.87533,1.04,1.04,1.17308,1.17308,1,1.03342,1.03342,.93854,1.14763,.95996,.95748,1.06151,1,1.42603,1,.96927,1.09836,1,.96927,.96927,1,.87709,.97454,1.03809,.97454,.97454,1,.97454,.88409,1.04839,1,1.17308,1.24822,.9245,.9245,.94868,.94868,1.00176,1.00176,1.00176,1.15296,1,1.04839,1,1.16484,.93146,.93146,.93146,.93146,.93146,1.12761,.93146,1.14589,1.96791,1,1,.97622,1.42603,1.42603,1,1.16484,1.2,1.2,1.2,1.2,.93146,1.08132,1.08132,.98047,1.02148,1,.98047,1.16484,1.16484,1.0119,1.04861,1,.78755,1.17308,1.24822,1,.96927,1.17308,1.31868,1.17984,1.23736,1,1.02989,.63218,1,1,1.17308,1.22135,1.04724,1.17308,1,1,1.01054,1.01054,.9857,1.01054,1,.96927,1,1.24822,1.01054,1.0127,1.06234,.96225,.96225,.96225,.96225,.96225,.90171,1.04839,.96225,.96225,.96225,1.0326,1.0326,.96225,.96225,.96927,1.09836,1.13525,1.09836,.99862,1.1781,1.22326,.69825,.8761,.8761,.96225,.97454,.85273,.91349,.91349,1.083,.92586,.78383,1.21191,1.01473,1.11826,.8965,1.17308,1.24822,.91578,1.0557,.97454,.77349,.70424,1.05365,1.12317,1.12317,1.12317,.94945,.94945,.94945,.94945,1.18414,1.06598,1.06598,1.18416,1.06598,1,1.20808,1,.97783,1.04839,1,.79004,.79004,.79004,.79004,.79004,1,1.06483,.80597,.96927,1.01522,1,1,.94818,.93574,.96927,1.42531,1,1.2886,.96927,.86438,1,1.16344,1.30679,1.16344,1.02759,1,1.05401,.97454,.96927,1.09836,1.15222,1.04839,1,.81965,.77295,.87025,.87025,.87025,.87025,.96927,1.00351,1.00351,1.00351,1.00351,1.00351,1.00351,1.00351,1.00351,.74627,.75155,.98946,1.20088,1.09971,1.09971,1,1.09971,.86091,1.16344,1.04839,.78383,.74817,1.03754,.87533,.98705,1,1.20088,1.24633,1.07497,1,1,1,.78032,1,1,1.10742,1.10742,1.00351,1,1.0675,1.0675,1.0675,1.0675,1.00351,1.00351,.94629,.9973,.9973,.9973,.9973,.9973,.91016,1.02732,.96777,.96777,.96777,.96777,.96927,.96777,.9043,.9043,.9043,.9043,.96927,.95364];r.SegoeuiItalicLineHeight=1.33008;r.SegoeuiRegularFactors=[1.76738,1,.96706,.86035,.86035,.96706,.96706,.96706,.96706,.96706,.96706,.96635,.96706,.96706,.96706,.96706,.96706,.85944,.85944,.85734,.85734,.85734,.85734,.85734,.85734,.88433,.97093,.97093,.97093,.96491,.75842,.75842,.75842,.75842,.75842,.75842,.75842,.75842,.75842,1.03444,.75842,.75842,.72727,.9831,.92366,.97093,.96927,.79936,.88198,.85638,.88198,.88198,1,.88198,.9831,1,.99862,.99862,1,.9831,.9831,.95782,.84784,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.95782,.98601,.95782,.71387,.71387,.86969,.86969,1,.84636,.84636,.94152,.84636,1,.84636,.84636,1.07796,1.07796,1.03584,1.03584,1.03584,1,1.03584,1.03584,.96924,.93066,.96924,.96924,.96924,.96924,.96924,.96924,.96924,1.0098,1.09799,.96924,1.03405,.96924,.96924,.96924,.83968,.94492,.98715,.9287,.96924,.82826,.82826,.82826,1,.83968,.79649,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,.79649,.79649,.79649,.79649,1,.83491,.85771,.85771,.85771,.85771,1,.96924,.83968,.95132,.95132,.95132,.95132,.95132,.95132,.95132,.95132,.95132,.8287,.8287,.77968,.95132,.95132,.93119,.98965,.98965,.98965,.98965,.98965,.88433,.78437,.8287,.8287,.8287,.8287,.8287,.93365,.93365,.93365,.93365,.93365,.91484,.91484,.91484,.91484,.84751,.91484,.93575,.93575,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,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,.91484,1.0625,1.0625,.91484,1.19985,.78032,.91484,1.24822,.91484,.91484,.86182,.94434,.86279,.86279,.94434,1,1,1.45786,1.1714,1.07152,.94084,.91484,1.05707,1.3638,.92105,.95246,1,.90351,.90351,1.08612,1.08612,.91202,.92105,1.16039,.92383,.92383,1.11437,.92383,.92383,.92383,.92383,.61584,.96927,1.02512,1.42603,1.11437,1.04315,.78032,.78032,1.20808,.99912,1.05882,.67428,.67428,1.0969,1.05882,.94261,1.04912,1.34163,1.2434,.81818,1.24644,1,1,.96927,.60411,.8717,.9403,.9403,.9403,.9403,.9403,.9403,.9403,.9403,.96927,.73291,.9403,1,.89903,1.01756,.9403,.98248,.98248,1.1714,1.17238,1,1.03424,1.03424,1.00527,1.02285,.95996,.85337,1.12654,1,1.42603,1,.96927,1.11358,.96927,.96927,.87796,1.05882,1.03809,1.05882,1.05882,1,1.05882,.89049,1,1,1,1,1,1,1,1,1,1,1,.80499,1.1714,1.24822,.90957,.90957,.94868,.94868,1.01756,1.01756,1.01756,1.15296,1,.97361,1.09011,.8717,.8717,.8717,.8717,.8717,1.11551,.8717,1.14589,1.9697,1,1,.97622,1.42603,1.42603,1,1.09011,1.2,1.2,1.2,1.2,.8717,1.09011,1.09011,.99414,1.04785,1,.99414,1.09011,1.09011,.99609,1.0536,1,.94298,1.1714,1.24822,1,.96927,1.1714,1.08571,1.18083,1.23297,1,1.034,.75155,1,1,1.1714,1.22135,1.00169,1.1714,1,1,1.01756,1.01756,1.00323,1.01756,1,.96927,1,1.24822,1.01756,1.05176,1.06234,1.05356,1.05356,1.05356,1.05356,1.05356,.98293,.55572,1.05356,1.05356,1.05356,1.03502,1.03502,1.05356,1.05356,.96927,1.10539,1.11593,1.08665,.99862,1.05937,1.17914,.69825,.95923,.95923,1.05356,1.05707,.85273,.90616,.90616,1.083,.92037,.78032,1.20996,1.01518,1.07831,.9087,1.1714,1.24644,.91578,1.05205,1.05882,.80597,.73381,1.10454,1.13196,1.13196,1.13196,1.03077,1.03077,1.03077,1.03077,1.2046,1.04399,1.04399,1.18416,1.04399,1,1.20808,1,1.03004,.84164,1,.84863,.84863,.84863,.84863,.84863,1,1.06483,.80597,.96927,1.06967,1,.93117,.95542,.96927,1.40246,1,1.2886,.96927,.86507,1,1.21968,1.23362,1.21968,1.17318,1,1.05443,1.05707,.96927,1.10539,1.14169,1.01173,.81818,.77295,.87025,.87025,.87025,.87025,.96927,1.01756,1.01756,1.01756,1.01756,1.01756,1.01756,1.01756,1.01756,.74627,.75155,.98594,1.20088,1.09971,1.09971,1,1.05425,.85771,1.21968,.93109,.78032,.75842,1.03719,.9403,1.04021,1,1.20088,1.24633,1.05425,1.09971,1.09971,1.09971,1.07497,1,1,1,.78032,1,1,1,1.10938,1.10938,1.01756,1,1.01071,1.01071,1.01071,1.01071,1.01756,1.01756,.95801,1.00068,1.00068,1.00068,1.00068,1.00068,.91797,.99346,.96777,.96777,.96777,.96777,.96927,.96777,.9043,.9043,.9043,.9043,.96927,1.00221];r.SegoeuiRegularLineHeight=1.33008},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MurmurHash3_64=void 0;var l=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=3285377520,u=4294901760,h=65535,d=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:c;this.h2=t?4294967295&t:c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(MurmurHash3_64,[{key:"update",value:function update(t){var r,o;if((0,l.isString)(t)){r=new Uint8Array(2*t.length);o=0;for(var c=0,d=t.length;c<d;c++){var m=t.charCodeAt(c);if(m<=255)r[o++]=m;else{r[o++]=m>>>8;r[o++]=255&m}}}else{if(!(0,l.isArrayBuffer)(t))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");o=(r=t.slice()).byteLength}for(var g=o>>2,y=o-4*g,v=new Uint32Array(r.buffer,0,g),S=0,k=0,_=this.h1,C=this.h2,w=3432918353,x=461845907,O=11601,T=13715,R=0;R<g;R++)1&R?_=5*(_=(_^=S=(S=(S=(S=v[R])*w&u|S*O&h)<<15|S>>>17)*x&u|S*T&h)<<13|_>>>19)+3864292196:C=5*(C=(C^=k=(k=(k=(k=v[R])*w&u|k*O&h)<<15|k>>>17)*x&u|k*T&h)<<13|C>>>19)+3864292196;S=0;switch(y){case 3:S^=r[4*g+2]<<16;case 2:S^=r[4*g+1]<<8;case 1:S=(S=(S=(S^=r[4*g])*w&u|S*O&h)<<15|S>>>17)*x&u|S*T&h;1&g?_^=S:C^=S}this.h1=_;this.h2=C}},{key:"hexdigest",value:function hexdigest(){var t=this.h1,r=this.h2;t=3981806797*(t^=r>>>1)&u|36045*t&h;t=444984403*(t^=(r=4283543511*r&u|(2950163797*(r<<16|t>>>16)&u)>>>16)>>>1)&u|60499*t&h;var o=((t^=(r=3301882366*r&u|(3120437893*(r<<16|t>>>16)&u)>>>16)>>>1)>>>0).toString(16),l=(r>>>0).toString(16);return o.padStart(8,"0")+l.padStart(8,"0")}}]);return MurmurHash3_64}();r.MurmurHash3_64=d},(t,r,o)=>{"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.OperatorList=void 0;var l=o(4);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function addState(t,r,o,l,c){for(var u=t,h=0,d=r.length-1;h<d;h++){var m=r[h];u=u[m]||(u[m]=[])}u[r[r.length-1]]={checkFn:o,iterateFn:l,processFn:c}}var c=[];addState(c,[l.OPS.save,l.OPS.transform,l.OPS.paintInlineImageXObject,l.OPS.restore],null,(function iterateInlineImageGroup(t,r){var o=t.fnArray,c=(r-(t.iCurr-3))%4;switch(c){case 0:return o[r]===l.OPS.save;case 1:return o[r]===l.OPS.transform;case 2:return o[r]===l.OPS.paintInlineImageXObject;case 3:return o[r]===l.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(c))}),(function foundInlineImageGroup(t,r){var o=t.fnArray,c=t.argsArray,u=t.iCurr,h=u-3,d=u-2,m=u-1,g=Math.min(Math.floor((r-h)/4),200);if(g<10)return r-(r-h)%4;for(var y=0,v=[],S=0,k=1,_=1,C=0;C<g;C++){var w=c[d+(C<<2)],x=c[m+(C<<2)][0];if(k+x.width>1e3){y=Math.max(y,k);_+=S+2;k=0;S=0}v.push({transform:w,x:k,y:_,w:x.width,h:x.height});k+=x.width+2;S=Math.max(S,x.height)}for(var O=Math.max(y,k)+1,T=_+S+1,R=new Uint8ClampedArray(O*T*4),E=O<<2,M=0;M<g;M++){var D=c[m+(M<<2)][0].data,j=v[M].w<<2,L=0,N=v[M].x+v[M].y*O<<2;R.set(D.subarray(0,j),N-E);for(var U=0,H=v[M].h;U<H;U++){R.set(D.subarray(L,L+j),N);L+=j;N+=E}R.set(D.subarray(L-j,L),N);for(;N>=0;){D[N-4]=D[N];D[N-3]=D[N+1];D[N-2]=D[N+2];D[N-1]=D[N+3];D[N+j]=D[N+j-4];D[N+j+1]=D[N+j-3];D[N+j+2]=D[N+j-2];D[N+j+3]=D[N+j-1];N-=E}}o.splice(h,4*g,l.OPS.paintInlineImageXObjectGroup);c.splice(h,4*g,[{width:O,height:T,kind:l.ImageKind.RGBA_32BPP,data:R},v]);return h+1}));addState(c,[l.OPS.save,l.OPS.transform,l.OPS.paintImageMaskXObject,l.OPS.restore],null,(function iterateImageMaskGroup(t,r){var o=t.fnArray,c=(r-(t.iCurr-3))%4;switch(c){case 0:return o[r]===l.OPS.save;case 1:return o[r]===l.OPS.transform;case 2:return o[r]===l.OPS.paintImageMaskXObject;case 3:return o[r]===l.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(c))}),(function foundImageMaskGroup(t,r){var o=t.fnArray,c=t.argsArray,u=t.iCurr,h=u-3,d=u-2,m=u-1,g=Math.floor((r-h)/4);if((g=function handlePaintSolidColorImageMask(t,r,o,c){var u,h=t+2;for(u=0;u<r;u++){var d=c[h+4*u],m=1===d.length&&d[0];if(!m||1!==m.width||1!==m.height||m.data.length&&(1!==m.data.length||0!==m.data[0]))break;o[h+4*u]=l.OPS.paintSolidColorImageMask}return r-u}(h,g,o,c))<10)return r-(r-h)%4;var y,v,S=!1,k=c[m][0],_=c[d][0],C=c[d][1],w=c[d][2],x=c[d][3];if(C===w){S=!0;y=d+4;for(var O=m+4,T=1;T<g;T++,y+=4,O+=4){v=c[y];if(c[O][0]!==k||v[0]!==_||v[1]!==C||v[2]!==w||v[3]!==x){T<10?S=!1:g=T;break}}}if(S){g=Math.min(g,1e3);var R=new Float32Array(2*g);y=d;for(var E=0;E<g;E++,y+=4){v=c[y];R[E<<1]=v[4];R[1+(E<<1)]=v[5]}o.splice(h,4*g,l.OPS.paintImageMaskXObjectRepeat);c.splice(h,4*g,[k,_,C,w,x,R])}else{g=Math.min(g,100);for(var M=[],D=0;D<g;D++){v=c[d+(D<<2)];var j=c[m+(D<<2)][0];M.push({data:j.data,width:j.width,height:j.height,transform:v})}o.splice(h,4*g,l.OPS.paintImageMaskXObjectGroup);c.splice(h,4*g,[M])}return h+1}));addState(c,[l.OPS.save,l.OPS.transform,l.OPS.paintImageXObject,l.OPS.restore],(function(t){var r=t.argsArray,o=t.iCurr-2;return 0===r[o][1]&&0===r[o][2]}),(function iterateImageGroup(t,r){var o=t.fnArray,c=t.argsArray,u=(r-(t.iCurr-3))%4;switch(u){case 0:return o[r]===l.OPS.save;case 1:if(o[r]!==l.OPS.transform)return!1;var h=t.iCurr-2,d=c[h][0],m=c[h][3];return c[r][0]===d&&0===c[r][1]&&0===c[r][2]&&c[r][3]===m;case 2:if(o[r]!==l.OPS.paintImageXObject)return!1;var g=c[t.iCurr-1][0];return c[r][0]===g;case 3:return o[r]===l.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(u))}),(function(t,r){var o=t.fnArray,c=t.argsArray,u=t.iCurr,h=u-3,d=u-2,m=c[u-1][0],g=c[d][0],y=c[d][3],v=Math.min(Math.floor((r-h)/4),1e3);if(v<3)return r-(r-h)%4;for(var S=new Float32Array(2*v),k=d,_=0;_<v;_++,k+=4){var C=c[k];S[_<<1]=C[4];S[1+(_<<1)]=C[5]}var w=[m,g,y,S];o.splice(h,4*v,l.OPS.paintImageXObjectRepeat);c.splice(h,4*v,w);return h+1}));addState(c,[l.OPS.beginText,l.OPS.setFont,l.OPS.setTextMatrix,l.OPS.showText,l.OPS.endText],null,(function iterateShowTextGroup(t,r){var o=t.fnArray,c=t.argsArray,u=(r-(t.iCurr-4))%5;switch(u){case 0:return o[r]===l.OPS.beginText;case 1:return o[r]===l.OPS.setFont;case 2:return o[r]===l.OPS.setTextMatrix;case 3:if(o[r]!==l.OPS.showText)return!1;var h=t.iCurr-3,d=c[h][0],m=c[h][1];return c[r][0]===d&&c[r][1]===m;case 4:return o[r]===l.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(u))}),(function(t,r){var o=t.fnArray,l=t.argsArray,c=t.iCurr,u=c-4,h=c-3,d=c-2,m=c-1,g=c,y=l[h][0],v=l[h][1],S=Math.min(Math.floor((r-u)/5),1e3);if(S<3)return r-(r-u)%5;var k=u;if(u>=4&&o[u-4]===o[h]&&o[u-3]===o[d]&&o[u-2]===o[m]&&o[u-1]===o[g]&&l[u-4][0]===y&&l[u-4][1]===v){S++;k-=5}for(var _=k+4,C=1;C<S;C++){o.splice(_,3);l.splice(_,3);_+=2}return _+1}));var u=function(){function NullOptimizer(t){_classCallCheck(this,NullOptimizer);this.queue=t}_createClass(NullOptimizer,[{key:"_optimize",value:function _optimize(){}},{key:"push",value:function push(t,r){this.queue.fnArray.push(t);this.queue.argsArray.push(r);this._optimize()}},{key:"flush",value:function flush(){}},{key:"reset",value:function reset(){}}]);return NullOptimizer}(),h=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)}(QueueOptimizer,t);var r=_createSuper(QueueOptimizer);function QueueOptimizer(t){var o;_classCallCheck(this,QueueOptimizer);(o=r.call(this,t)).state=null;o.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray};o.match=null;o.lastProcessed=0;return o}_createClass(QueueOptimizer,[{key:"_optimize",value:function _optimize(){var t=this.queue.fnArray,r=this.lastProcessed,o=t.length,l=this.state,u=this.match;if(l||u||r+1!==o||c[t[r]]){for(var h=this.context;r<o;){if(u){if((0,u.iterateFn)(h,r)){r++;continue}r=(0,u.processFn)(h,r+1);u=null;l=null;if(r>=(o=t.length))break}if((l=(l||c)[t[r]])&&!Array.isArray(l)){h.iCurr=r;r++;if(!l.checkFn||(0,l.checkFn)(h)){u=l;l=null}else l=null}else r++}this.state=l;this.match=u;this.lastProcessed=r}else this.lastProcessed=o}},{key:"flush",value: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()}}},{key:"reset",value:function reset(){this.state=null;this.match=null;this.lastProcessed=0}}]);return QueueOptimizer}(u),d=function(){function OperatorList(t,r){_classCallCheck(this,OperatorList);this._streamSink=r;this.fnArray=[];this.argsArray=[];!r||t&&t.startsWith("oplist-")?this.optimizer=new u(this):this.optimizer=new h(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=r?null:Promise.resolve()}_createClass(OperatorList,[{key:"length",get:function get(){return this.argsArray.length}},{key:"ready",get:function get(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function get(){return this._totalLength+this.length}},{key:"addOp",value:function addOp(t,r){this.optimizer.push(t,r);this.weight++;this._streamSink&&(this.weight>=OperatorList.CHUNK_SIZE||this.weight>=OperatorList.CHUNK_SIZE_ABOUT&&(t===l.OPS.restore||t===l.OPS.endText))&&this.flush()}},{key:"addDependency",value:function addDependency(t){if(!this.dependencies.has(t)){this.dependencies.add(t);this.addOp(l.OPS.dependency,[t])}}},{key:"addDependencies",value:function addDependencies(t){var r,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var l=r.value;this.addDependency(l)}}catch(t){o.e(t)}finally{o.f()}}},{key:"addOpList",value:function addOpList(t){if(t instanceof OperatorList){var r,o=_createForOfIteratorHelper(t.dependencies);try{for(o.s();!(r=o.n()).done;){var c=r.value;this.dependencies.add(c)}}catch(t){o.e(t)}finally{o.f()}for(var u=0,h=t.length;u<h;u++)this.addOp(t.fnArray[u],t.argsArray[u])}else(0,l.warn)('addOpList - ignoring invalid "opList" parameter.')}},{key:"getIR",value:function getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}},{key:"_transfers",get:function get(){for(var t=[],r=this.fnArray,o=this.argsArray,c=this.length,u=0;u<c;u++)switch(r[u]){case l.OPS.paintInlineImageXObject:case l.OPS.paintInlineImageXObjectGroup:case l.OPS.paintImageMaskXObject:var h=o[u][0];h.cached||t.push(h.data.buffer)}return t}},{key:"flush",value: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()}}],[{key:"CHUNK_SIZE",get:function get(){return(0,l.shadow)(this,"CHUNK_SIZE",1e3)}},{key:"CHUNK_SIZE_ABOUT",get:function get(){return(0,l.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}}]);return OperatorList}();r.OperatorList=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFImage=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(114),h=o(123),d=o(128),m=o(136),g=o(139);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function decodeAndClamp(t,r,o,l){(t=r+t*o)<0?t=0:t>l&&(t=l);return t}function resizeImageMask(t,r,o,l,c,u){var h,d=c*u;h=r<=8?new Uint8Array(d):r<=16?new Uint16Array(d):new Uint32Array(d);var m,g,y,v,S=o/c,k=l/u,_=0,C=new Uint16Array(c),w=o;for(m=0;m<c;m++)C[m]=Math.floor(m*S);for(m=0;m<u;m++){y=Math.floor(m*k)*w;for(g=0;g<c;g++){v=y+C[g];h[_++]=t[v]}}return h}var y=function(){function PDFImage(t){var r=t.xref,o=t.res,l=t.image,d=t.isInline,m=void 0!==d&&d,y=t.smask,v=void 0===y?null:y,S=t.mask,k=void 0===S?null:S,_=t.isMask,C=void 0!==_&&_,w=t.pdfFunctionFactory,x=t.localColorSpaceCache;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PDFImage);this.image=l;var O=l.dict,T=O.get("Filter");if((0,u.isName)(T))switch(T.name){case"JPXDecode":var R=new g.JpxImage;R.parseImageProperties(l.stream);l.stream.reset();l.width=R.width;l.height=R.height;l.bitsPerComponent=R.bitsPerComponent;l.numComps=R.componentsCount;break;case"JBIG2Decode":l.bitsPerComponent=1;l.numComps=1}var E=O.get("Width","W"),M=O.get("Height","H");if(Number.isInteger(l.width)&&l.width>0&&Number.isInteger(l.height)&&l.height>0&&(l.width!==E||l.height!==M)){(0,c.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");E=l.width;M=l.height}if(E<1||M<1)throw new c.FormatError("Invalid image width: ".concat(E," or height: ").concat(M));this.width=E;this.height=M;this.interpolate=O.get("Interpolate","I")||!1;this.imageMask=O.get("ImageMask","IM")||!1;this.matte=O.get("Matte")||!1;var D=l.bitsPerComponent;if(!D&&!(D=O.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new c.FormatError("Bits per component missing in image: ".concat(this.imageMask));D=1}this.bpc=D;if(!this.imageMask){var j=O.getRaw("ColorSpace")||O.getRaw("CS");if(!j){(0,c.info)("JPX images (which do not require color spaces)");switch(l.numComps){case 1:j=u.Name.get("DeviceGray");break;case 3:j=u.Name.get("DeviceRGB");break;case 4:j=u.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(l.numComps," ")+"color components not supported.")}}this.colorSpace=h.ColorSpace.parse({cs:j,xref:r,resources:m?o:null,pdfFunctionFactory:w,localColorSpaceCache:x});this.numComps=this.colorSpace.numComps}this.decode=O.getArray("Decode","D");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,D)||C&&!h.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var L=(1<<D)-1;this.decodeCoefficients=[];this.decodeAddends=[];for(var N=this.colorSpace&&"Indexed"===this.colorSpace.name,U=0,H=0;U<this.decode.length;U+=2,++H){var W=this.decode[U],q=this.decode[U+1];this.decodeCoefficients[H]=N?(q-W)/L:q-W;this.decodeAddends[H]=N?W:L*W}}if(v)this.smask=new PDFImage({xref:r,res:o,image:v,isInline:m,pdfFunctionFactory:w,localColorSpaceCache:x});else if(k)if((0,u.isStream)(k)){k.dict.get("ImageMask","IM")?this.mask=new PDFImage({xref:r,res:o,image:k,isInline:m,isMask:!0,pdfFunctionFactory:w,localColorSpaceCache:x}):(0,c.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=k}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(PDFImage,[{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:"decodeBuffer",value:function decodeBuffer(t){var r,o,l=this.bpc,c=this.numComps,u=this.decodeAddends,h=this.decodeCoefficients,d=(1<<l)-1;if(1!==l){var m=0;for(r=0,o=this.width*this.height;r<o;r++)for(var g=0;g<c;g++){t[m]=decodeAndClamp(t[m],u[g],h[g],d);m++}}else for(r=0,o=t.length;r<o;r++)t[r]=+!t[r]}},{key:"getComponents",value:function getComponents(t){var r=this.bpc;if(8===r)return t;var o,l=this.width,c=this.height,u=this.numComps,h=l*c*u,d=0;o=r<=8?new Uint8Array(h):r<=16?new Uint16Array(h):new Uint32Array(h);var m,g,y=l*u,v=(1<<r)-1,S=0;if(1===r)for(var k,_,C,w=0;w<c;w++){_=S+(-8&y);C=S+y;for(;S<_;){g=t[d++];o[S]=g>>7&1;o[S+1]=g>>6&1;o[S+2]=g>>5&1;o[S+3]=g>>4&1;o[S+4]=g>>3&1;o[S+5]=g>>2&1;o[S+6]=g>>1&1;o[S+7]=1&g;S+=8}if(S<C){g=t[d++];k=128;for(;S<C;){o[S++]=+!!(g&k);k>>=1}}}else{var x=0;g=0;for(S=0,m=h;S<m;++S){if(S%y==0){g=0;x=0}for(;x<r;){g=g<<8|t[d++];x+=8}var O=x-r,T=g>>O;T<0?T=0:T>v&&(T=v);o[S]=T;g&=(1<<O)-1;x=O}}return o}},{key:"fillOpacity",value:function fillOpacity(t,r,o,l,u){var h,d,m,g,y,v,S=this.smask,k=this.mask;if(S){d=S.width;m=S.height;h=new Uint8ClampedArray(d*m);S.fillGrayBuffer(h);d===r&&m===o||(h=resizeImageMask(h,S.bpc,d,m,r,o))}else if(k)if(k instanceof PDFImage){d=k.width;m=k.height;h=new Uint8ClampedArray(d*m);k.numComps=1;k.fillGrayBuffer(h);for(g=0,y=d*m;g<y;++g)h[g]=255-h[g];d===r&&m===o||(h=resizeImageMask(h,k.bpc,d,m,r,o))}else{if(!Array.isArray(k))throw new c.FormatError("Unknown mask format.");h=new Uint8ClampedArray(r*o);var _=this.numComps;for(g=0,y=r*o;g<y;++g){var C=0,w=g*_;for(v=0;v<_;++v){var x=u[w+v],O=2*v;if(x<k[O]||x>k[O+1]){C=255;break}}h[g]=C}}if(h)for(g=0,v=3,y=r*l;g<y;++g,v+=4)t[v]=h[g];else for(g=0,v=3,y=r*l;g<y;++g,v+=4)t[v]=255}},{key:"undoPreblend",value:function undoPreblend(t,r,o){var l=this.smask&&this.smask.matte;if(l)for(var c=this.colorSpace.getRgb(l,0),u=c[0],h=c[1],d=c[2],m=r*o*4,g=0;g<m;g+=4){var y=t[g+3];if(0!==y){var v=255/y;t[g]=(t[g]-u)*v+u;t[g+1]=(t[g+1]-h)*v+h;t[g+2]=(t[g+2]-d)*v+d}else{t[g]=255;t[g+1]=255;t[g+2]=255}}}},{key:"createImageData",value:function createImageData(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.drawWidth,l=this.drawHeight,u={width:o,height:l,kind:0,data:null},h=this.numComps,g=this.width,y=this.height,v=this.bpc,S=g*h*v+7>>3;if(!r){var k;"DeviceGray"===this.colorSpace.name&&1===v?k=c.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==v||this.needsDecode||(k=c.ImageKind.RGB_24BPP);if(k&&!this.smask&&!this.mask&&o===g&&l===y){u.kind=k;t=this.getImageBytes(y*S);if(this.image instanceof d.DecodeStream)u.data=t;else{var _=new Uint8ClampedArray(t.length);_.set(t);u.data=_}if(this.needsDecode){(0,c.assert)(k===c.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var C=u.data,w=0,x=C.length;w<x;w++)C[w]^=255}return u}if(this.image instanceof m.JpegStream&&!this.smask&&!this.mask){var O=y*S;switch(this.colorSpace.name){case"DeviceGray":O*=3;case"DeviceRGB":case"DeviceCMYK":u.kind=c.ImageKind.RGB_24BPP;u.data=this.getImageBytes(O,o,l,!0);return u}}}var T,R,E=0|(t=this.getImageBytes(y*S)).length/S*l/y,M=this.getComponents(t);if(r||this.smask||this.mask){u.kind=c.ImageKind.RGBA_32BPP;u.data=new Uint8ClampedArray(o*l*4);T=1;R=!0;this.fillOpacity(u.data,o,l,E,M)}else{u.kind=c.ImageKind.RGB_24BPP;u.data=new Uint8ClampedArray(o*l*3);T=0;R=!1}this.needsDecode&&this.decodeBuffer(M);this.colorSpace.fillRgb(u.data,g,y,o,l,E,v,M,T);R&&this.undoPreblend(u.data,o,E);return u}},{key:"fillGrayBuffer",value:function fillGrayBuffer(t){var r=this.numComps;if(1!==r)throw new c.FormatError("Reading gray scale from a color image: ".concat(r));var o,l,u=this.width,h=this.height,d=this.bpc,m=u*r*d+7>>3,g=this.getImageBytes(h*m),y=this.getComponents(g);if(1!==d){this.needsDecode&&this.decodeBuffer(y);l=u*h;var v=255/((1<<d)-1);for(o=0;o<l;++o)t[o]=v*y[o]}else{l=u*h;if(this.needsDecode)for(o=0;o<l;++o)t[o]=y[o]-1&255;else for(o=0;o<l;++o)t[o]=255&-y[o]}}},{key:"getImageBytes",value:function getImageBytes(t,r,o){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.image.reset();this.image.drawWidth=r||this.width;this.image.drawHeight=o||this.height;this.image.forceRGB=!!l;return this.image.getBytes(t,!0)}}],[{key:"buildImage",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t){var r,o,h,d,m,g,y,v,S,k,_,C;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:r=t.xref,o=t.res,h=t.image,d=t.isInline,m=void 0!==d&&d,g=t.pdfFunctionFactory,y=t.localColorSpaceCache;v=h;S=null;k=null;_=h.dict.get("SMask");C=h.dict.get("Mask");_?S=_:C&&((0,u.isStream)(C)||Array.isArray(C)?k=C:(0,c.warn)("Unsupported mask format."));return l.abrupt("return",new PDFImage({xref:r,res:o,image:v,isInline:m,smask:S,mask:k,pdfFunctionFactory:g,localColorSpaceCache:y}));case 8:case"end":return l.stop()}}),_callee)}))),function buildImage(r){return t.apply(this,arguments)})},{key:"createMask",value:function createMask(t){var r,o,l=t.imgArray,c=t.width,u=t.height,h=t.imageIsFromDecodeStream,d=t.inverseDecode,m=(c+7>>3)*u,g=l.byteLength;if(!h||d&&!(m===g))if(d){(r=new Uint8ClampedArray(m)).set(l);for(o=g;o<m;o++)r[o]=255}else(r=new Uint8ClampedArray(g)).set(l);else r=l;if(d)for(o=0;o<g;o++)r[o]^=255;return{data:r,width:c,height:u}}}]);var t;return PDFImage}();r.PDFImage=y},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Catalog=void 0;var l=o(114),c=o(118),u=o(4),h=o(174),d=o(123),m=o(175),g=o(161),y=o(176),v=o(178);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 _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function fetchDestination(t){t instanceof l.Dict&&(t=t.get("D"));return Array.isArray(t)?t:null}var S=function(){function Catalog(t,r){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Catalog);this.pdfManager=t;this.xref=r;this._catDict=r.getCatalogObj();if(!(0,l.isDict)(this._catDict))throw new u.FormatError("Catalog object is not a dictionary.");this.fontCache=new l.RefSetCache;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new g.GlobalImageCache;this.pageKidsCountCache=new l.RefSetCache;this.pageIndexCache=new l.RefSetCache;this.nonBlendModesSet=new l.RefSet}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Catalog,[{key:"version",get:function get(){var t=this._catDict.get("Version");return(0,l.isName)(t)?(0,u.shadow)(this,"version",t.name):(0,u.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,u.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,u.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,u.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,u.shadow)(this,"acroForm",t)}},{key:"metadata",get:function get(){var t=this._catDict.getRaw("Metadata");if(!(0,l.isRef)(t))return(0,u.shadow)(this,"metadata",null);var r=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),o=this.xref.fetch(t,r),h=null;if((0,l.isStream)(o)&&(0,l.isDict)(o.dict)){var d=o.dict.get("Type"),m=o.dict.get("Subtype");if((0,l.isName)(d,"Metadata")&&(0,l.isName)(m,"XML"))try{var g=(0,u.stringToUTF8String)(o.getString());g&&(h=new y.MetadataParser(g).serializable)}catch(t){if(t instanceof c.MissingDataException)throw t;(0,u.info)("Skipping invalid metadata.")}}return(0,u.shadow)(this,"metadata",h)}},{key:"markInfo",get:function get(){var t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,u.warn)("Unable to read mark info.")}return(0,u.shadow)(this,"markInfo",t)}},{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 o in r)if(t.has(o)){var c=t.get(o);(0,u.isBool)(c)&&(r[o]=c)}return r}},{key:"structTreeRoot",get:function get(){var t=null;try{t=this._readStructTreeRoot()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,u.warn)("Unable read to structTreeRoot info.")}return(0,u.shadow)(this,"structTreeRoot",t)}},{key:"_readStructTreeRoot",value:function _readStructTreeRoot(){var t=this._catDict.get("StructTreeRoot");if(!(0,l.isDict)(t))return null;var r=new v.StructTreeRoot(t);r.init();return r}},{key:"toplevelPagesDict",get:function get(){var t=this._catDict.get("Pages");if(!(0,l.isDict)(t))throw new u.FormatError("Invalid top-level pages dictionary.");return(0,u.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,u.warn)("Unable to read document outline.")}return(0,u.shadow)(this,"documentOutline",t)}},{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:[]},o=[{obj:t,parent:r}],c=new l.RefSet;c.put(t);for(var h=this.xref,m=new Uint8ClampedArray(3);o.length>0;){var g=o.shift(),y=h.fetchIfRef(g.obj);if(null!==y){if(!y.has("Title"))throw new u.FormatError("Invalid outline item encountered.");var v={url:null,dest:null};Catalog.parseDestDictionary({destDict:y,resultObj:v,docBaseUrl:this.pdfManager.docBaseUrl});var S=y.get("Title"),k=y.get("F")||0,_=y.getArray("C"),C=y.get("Count"),w=m;!Array.isArray(_)||3!==_.length||0===_[0]&&0===_[1]&&0===_[2]||(w=d.ColorSpace.singletons.rgb.getRgb(_,0));var x={dest:v.dest,url:v.url,unsafeUrl:v.unsafeUrl,newWindow:v.newWindow,title:(0,u.stringToPDFString)(S),color:w,count:Number.isInteger(C)?C:void 0,bold:!!(2&k),italic:!!(1&k),items:[]};g.parent.items.push(x);t=y.getRaw("First");if((0,l.isRef)(t)&&!c.has(t)){o.push({obj:t,parent:x});c.put(t)}t=y.getRaw("Next");if((0,l.isRef)(t)&&!c.has(t)){o.push({obj:t,parent:g.parent});c.put(t)}}}return r.items.length>0?r.items:null}},{key:"permissions",get:function get(){var t=null;try{t=this._readPermissions()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,u.warn)("Unable to read permissions.")}return(0,u.shadow)(this,"permissions",t)}},{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,u.isNum)(r))return null;r+=Math.pow(2,32);var o=[];for(var c in u.PermissionFlag){var h=u.PermissionFlag[c];r&h&&o.push(h)}return o}},{key:"optionalContentConfig",get:function get(){var t=null;try{var r=this._catDict.get("OCProperties");if(!r)return(0,u.shadow)(this,"optionalContentConfig",null);var o=r.get("D");if(!o)return(0,u.shadow)(this,"optionalContentConfig",null);var h=r.get("OCGs");if(!Array.isArray(h))return(0,u.shadow)(this,"optionalContentConfig",null);var d,m=[],g=[],y=_createForOfIteratorHelper(h);try{for(y.s();!(d=y.n()).done;){var v=d.value;if((0,l.isRef)(v)){g.push(v);var S=this.xref.fetchIfRef(v);m.push({id:v.toString(),name:(0,u.isString)(S.get("Name"))?(0,u.stringToPDFString)(S.get("Name")):null,intent:(0,u.isString)(S.get("Intent"))?(0,u.stringToPDFString)(S.get("Intent")):null})}}}catch(t){y.e(t)}finally{y.f()}(t=this._readOptionalContentConfig(o,g)).groups=m}catch(t){if(t instanceof c.MissingDataException)throw t;(0,u.warn)("Unable to read optional content config: ".concat(t))}return(0,u.shadow)(this,"optionalContentConfig",t)}},{key:"_readOptionalContentConfig",value:function _readOptionalContentConfig(t,r){function parseOnOff(t){var o=[];if(Array.isArray(t)){var c,u=_createForOfIteratorHelper(t);try{for(u.s();!(c=u.n()).done;){var h=c.value;(0,l.isRef)(h)&&(r.includes(h)&&o.push(h.toString()))}}catch(t){u.e(t)}finally{u.f()}}return o}function parseOrder(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(t))return null;var u,h=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var m=u.value;if((0,l.isRef)(m)&&r.includes(m)){c.put(m);h.push(m.toString())}else{var g=parseNestedOrder(m,o);g&&h.push(g)}}}catch(t){d.e(t)}finally{d.f()}if(o>0)return h;var y,v=[],S=_createForOfIteratorHelper(r);try{for(S.s();!(y=S.n()).done;){var k=y.value;c.has(k)||v.push(k.toString())}}catch(t){S.e(t)}finally{S.f()}v.length&&h.push({name:null,order:v});return h}function parseNestedOrder(t,r){if(++r>h){(0,u.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}var l=o.fetchIfRef(t);if(!Array.isArray(l))return null;var c=o.fetchIfRef(l[0]);if("string"!=typeof c)return null;var d=parseOrder(l.slice(1),r);return d&&d.length?{name:(0,u.stringToPDFString)(c),order:d}:null}var o=this.xref,c=new l.RefSet,h=10;return{name:(0,u.isString)(t.get("Name"))?(0,u.stringToPDFString)(t.get("Name")):null,creator:(0,u.isString)(t.get("Creator"))?(0,u.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:"numPages",get:function get(){var t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new u.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,u.shadow)(this,"numPages",t)}},{key:"destinations",get:function get(){var t=this._readDests(),r=Object.create(null);if(t instanceof h.NameTree){var o,c=_createForOfIteratorHelper(t.getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2),m=d[0],g=fetchDestination(d[1]);g&&(r[m]=g)}}catch(t){c.e(t)}finally{c.f()}}else t instanceof l.Dict&&t.forEach((function(t,o){var l=fetchDestination(o);l&&(r[t]=l)}));return(0,u.shadow)(this,"destinations",r)}},{key:"getDestination",value:function getDestination(t){var r=this._readDests();if(r instanceof h.NameTree){var o=fetchDestination(r.get(t));if(o)return o;var c=this.destinations[t];if(c){(0,u.warn)('Found "'.concat(t,'" at an incorrect position in the NameTree.'));return c}}else if(r instanceof l.Dict){var d=fetchDestination(r.get(t));if(d)return d}return null}},{key:"_readDests",value:function _readDests(){var t=this._catDict.get("Names");return t&&t.has("Dests")?new h.NameTree(t.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function get(){var t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,u.warn)("Unable to read page labels.")}return(0,u.shadow)(this,"pageLabels",t)}},{key:"_readPageLabels",value:function _readPageLabels(){var t=this._catDict.getRaw("PageLabels");if(!t)return null;for(var r=new Array(this.numPages),o=null,d="",m=new h.NumberTree(t,this.xref).getAll(),g="",y=1,v=0,S=this.numPages;v<S;v++){var k=m.get(v);if(void 0!==k){if(!(0,l.isDict)(k))throw new u.FormatError("PageLabel is not a dictionary.");if(k.has("Type")&&!(0,l.isName)(k.get("Type"),"PageLabel"))throw new u.FormatError("Invalid type in PageLabel dictionary.");if(k.has("S")){var _=k.get("S");if(!(0,l.isName)(_))throw new u.FormatError("Invalid style in PageLabel dictionary.");o=_.name}else o=null;if(k.has("P")){var C=k.get("P");if(!(0,u.isString)(C))throw new u.FormatError("Invalid prefix in PageLabel dictionary.");d=(0,u.stringToPDFString)(C)}else d="";if(k.has("St")){var w=k.get("St");if(!(Number.isInteger(w)&&w>=1))throw new u.FormatError("Invalid start in PageLabel dictionary.");y=w}else y=1}switch(o){case"D":g=y;break;case"R":case"r":g=(0,c.toRomanNumerals)(y,"r"===o);break;case"A":case"a":for(var x="a"===o?97:65,O=y-1,T=String.fromCharCode(x+O%26),R=[],E=0,M=O/26|0;E<=M;E++)R.push(T);g=R.join("");break;default:if(o)throw new u.FormatError('Invalid style "'.concat(o,'" in PageLabel dictionary.'));g=""}r[v]=d+g;y++}return r}},{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,u.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,u.shadow)(this,"pageMode",r)}},{key:"viewerPreferences",get:function get(){var t=this,r={HideToolbar:u.isBool,HideMenubar:u.isBool,HideWindowUI:u.isBool,FitWindow:u.isBool,CenterWindow:u.isBool,DisplayDocTitle:u.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:u.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},o=this._catDict.get("ViewerPreferences"),c=null;if((0,l.isDict)(o))for(var h in r)if(o.has(h)){var d=o.get(h);if(r[h](d)){var m=void 0;switch(h){case"NonFullScreenPageMode":switch(d.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":m=d.name;break;default:m="UseNone"}break;case"Direction":switch(d.name){case"L2R":case"R2L":m=d.name;break;default:m="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(d.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":m=d.name;break;default:m="CropBox"}break;case"PrintScaling":switch(d.name){case"None":case"AppDefault":m=d.name;break;default:m="AppDefault"}break;case"Duplex":switch(d.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":m=d.name;break;default:m="None"}break;case"PrintPageRange":if(d.length%2!=0)break;d.every((function(r,o,l){return Number.isInteger(r)&&r>0&&(0===o||r>=l[o-1])&&r<=t.numPages}))&&(m=d);break;case"NumCopies":d>0&&(m=d);break;default:if("boolean"!=typeof d)throw new u.FormatError("viewerPreferences - expected a boolean value for: ".concat(h));m=d}if(void 0!==m){c||(c=Object.create(null));c[h]=m}else(0,u.info)('Bad value in ViewerPreferences for "'.concat(h,'".'))}else(0,u.info)('Bad value in ViewerPreferences for "'.concat(h,'".'))}return(0,u.shadow)(this,"viewerPreferences",c)}},{key:"openAction",get:function get(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if((0,l.isDict)(t)){var o=new l.Dict(this.xref);o.set("A",t);var c={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:o,resultObj:c});Array.isArray(c.dest)?r.dest=c.dest:c.action&&(r.action=c.action)}else Array.isArray(t)&&(r.dest=t);return(0,u.shadow)(this,"openAction",(0,u.objectSize)(r)>0?r:null)}},{key:"attachments",get:function get(){var t=this._catDict.get("Names"),r=null;if(t instanceof l.Dict&&t.has("EmbeddedFiles")){var o,c=_createForOfIteratorHelper(new h.NameTree(t.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2),g=d[0],y=d[1],v=new m.FileSpec(y,this.xref);r||(r=Object.create(null));r[(0,u.stringToPDFString)(g)]=v.serializable}}catch(t){c.e(t)}finally{c.f()}}return(0,u.shadow)(this,"attachments",r)}},{key:"xfaImages",get:function get(){var t=this._catDict.get("Names"),r=null;if(t instanceof l.Dict&&t.has("XFAImages")){var o,c=_createForOfIteratorHelper(new h.NameTree(t.getRaw("XFAImages"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2),m=d[0],g=d[1];r||(r=new l.Dict(this.xref));r.set(m,g)}}catch(t){c.e(t)}finally{c.f()}}return(0,u.shadow)(this,"xfaImages",r)}},{key:"_collectJavaScript",value:function _collectJavaScript(){var t=this._catDict.get("Names"),r=null;function appendIfJavaScriptDict(t,o){if(o instanceof l.Dict&&(0,l.isName)(o.get("S"),"JavaScript")){var c=o.get("JS");if((0,l.isStream)(c))c=c.getString();else if("string"!=typeof c)return;null===r&&(r=new Map);r.set(t,(0,u.stringToPDFString)(c))}}if(t instanceof l.Dict&&t.has("JavaScript")){var o,c=_createForOfIteratorHelper(new h.NameTree(t.getRaw("JavaScript"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2);appendIfJavaScriptDict(d[0],d[1])}}catch(t){c.e(t)}finally{c.f()}}var m=this._catDict.get("OpenAction");m&&appendIfJavaScriptDict("OpenAction",m);return r}},{key:"javaScript",get:function get(){var t=this._collectJavaScript();return(0,u.shadow)(this,"javaScript",t?_toConsumableArray(t.values()):null)}},{key:"jsActions",get:function get(){var t=this._collectJavaScript(),r=(0,c.collectActions)(this.xref,this._catDict,u.DocumentActionEventType);if(t){r||(r=Object.create(null));var o,l=_createForOfIteratorHelper(t);try{for(l.s();!(o=l.n()).done;){var h=_slicedToArray(o.value,2),d=h[0],m=h[1];d in r?r[d].push(m):r[d]=[m]}}catch(t){l.e(t)}finally{l.f()}}return(0,u.shadow)(this,"jsActions",r)}},{key:"fontFallback",value:function fontFallback(t,r){var o=[];this.fontCache.forEach((function(t){o.push(t)}));return Promise.all(o).then((function(o){var l,c=_createForOfIteratorHelper(o);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u.loadedName===t){u.fallback(r);return}}}catch(t){c.e(t)}finally{c.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.pageIndexCache.clear();this.nonBlendModesSet.clear();var o=[];this.fontCache.forEach((function(t){o.push(t)}));return Promise.all(o).then((function(r){var o,l=_createForOfIteratorHelper(r);try{for(l.s();!(o=l.n()).done;){delete o.value.dict.cacheKey}}catch(t){l.e(t)}finally{l.f()}t.fontCache.clear();t.builtInCMapCache.clear();t.standardFontDataCache.clear()}))}},{key:"getPageDict",value:function getPageDict(t){var r,o=(0,u.createPromiseCapability)(),c=[this._catDict.getRaw("Pages")],h=new l.RefSet,d=this.xref,m=this.pageKidsCountCache,g=0;!function next(){for(var y=function _loop(){var y=c.pop();if((0,l.isRef)(y)){if((r=m.get(y))>0&&g+r<t){g+=r;return"continue"}if(h.has(y)){o.reject(new u.FormatError("Pages tree contains circular reference."));return{v:void 0}}h.put(y);d.fetchAsync(y).then((function(r){if((0,l.isDict)(r,"Page")||(0,l.isDict)(r)&&!r.has("Kids"))if(t===g){y&&!m.has(y)&&m.put(y,1);o.resolve([r,y])}else{g++;next()}else{c.push(r);next()}}),o.reject);return{v:void 0}}if(!(0,l.isDict)(y)){o.reject(new u.FormatError("Page dictionary kid reference points to wrong type of object."));return{v:void 0}}r=y.get("Count");if(Number.isInteger(r)&&r>=0){var v=y.objId;v&&!m.has(v)&&m.put(v,r);if(g+r<=t){g+=r;return"continue"}}var S=y.get("Kids");if(!Array.isArray(S)){if((0,l.isName)(y.get("Type"),"Page")||!y.has("Type")&&y.has("Contents")){if(g===t){o.resolve([y,null]);return{v:void 0}}g++;return"continue"}o.reject(new u.FormatError("Page dictionary kids object is not an array."));return{v:void 0}}for(var k=S.length-1;k>=0;k--)c.push(S[k])};c.length;){var v=y();if("continue"!==v&&"object"===_typeof(v))return v.v}o.reject(new Error("Page index ".concat(t," not found.")))}();return o.promise}},{key:"getPageIndex",value:function getPageIndex(t){var r=this,o=this.pageIndexCache.get(t);if(void 0!==o)return Promise.resolve(o);var c=this.xref;var h=0;return function next(o){return function pagesBeforeRef(r){var o,h=0;return c.fetchAsync(r).then((function(c){if((0,l.isRefsEqual)(r,t)&&!(0,l.isDict)(c,"Page")&&(!(0,l.isDict)(c)||c.has("Type")||!c.has("Contents")))throw new u.FormatError("The reference does not point to a /Page dictionary.");if(!c)return null;if(!(0,l.isDict)(c))throw new u.FormatError("Node must be a dictionary.");o=c.getRaw("Parent");return c.getAsync("Parent")})).then((function(t){if(!t)return null;if(!(0,l.isDict)(t))throw new u.FormatError("Parent must be a dictionary.");return t.getAsync("Kids")})).then((function(t){if(!t)return null;for(var d=[],m=!1,g=0,y=t.length;g<y;g++){var v=t[g];if(!(0,l.isRef)(v))throw new u.FormatError("Kid must be a reference.");if((0,l.isRefsEqual)(v,r)){m=!0;break}d.push(c.fetchAsync(v).then((function(t){if(!(0,l.isDict)(t))throw new u.FormatError("Kid node must be a dictionary.");t.has("Count")?h+=t.get("Count"):h++})))}if(!m)throw new u.FormatError("Kid reference not found in parent's kids.");return Promise.all(d).then((function(){return[h,o]}))}))}(o).then((function(o){if(!o){r.pageIndexCache.put(t,h);return h}var l=_slicedToArray(o,2),c=l[0],u=l[1];h+=c;return next(u)}))}(t)}}],[{key:"parseDestDictionary",value:function parseDestDictionary(t){var r=t.destDict;if((0,l.isDict)(r)){var o=t.resultObj;if("object"===_typeof(o)){var c,h,d=t.docBaseUrl||null,m=r.get("A");if(!(0,l.isDict)(m))if(r.has("Dest"))m=r.get("Dest");else{m=r.get("AA");(0,l.isDict)(m)&&(m.has("D")?m=m.get("D"):m.has("U")&&(m=m.get("U")))}if((0,l.isDict)(m)){var g=m.get("S");if(!(0,l.isName)(g)){(0,u.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}var y=g.name;switch(y){case"URI":c=m.get("URI");(0,l.isName)(c)?c="/"+c.name:(0,u.isString)(c)&&(c=function addDefaultProtocolToUrl(t){return t.startsWith("www.")?"http://".concat(t):t}(c));break;case"GoTo":h=m.get("D");break;case"Launch":case"GoToR":var v=m.get("F");(0,l.isDict)(v)?c=v.get("F")||null:(0,u.isString)(v)&&(c=v);var S=m.get("D");if(S){(0,l.isName)(S)&&(S=S.name);if((0,u.isString)(c)){var k=c.split("#")[0];(0,u.isString)(S)?c=k+"#"+S:Array.isArray(S)&&(c=k+"#"+JSON.stringify(S))}}var _=m.get("NewWindow");(0,u.isBool)(_)&&(o.newWindow=_);break;case"Named":var C=m.get("N");(0,l.isName)(C)&&(o.action=C.name);break;case"JavaScript":var w,x=m.get("JS");(0,l.isStream)(x)?w=x.getString():(0,u.isString)(x)&&(w=x);if(w){var O=new RegExp("^\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,u.stringToPDFString)(w));if(O&&O[2]){c=O[2];"true"===O[3]&&"app.launchURL"===O[1]&&(o.newWindow=!0);break}}default:if("JavaScript"===y||"ResetForm"===y||"SubmitForm"===y)break;(0,u.warn)('parseDestDictionary - unsupported action: "'.concat(y,'".'))}}else r.has("Dest")&&(h=r.get("Dest"));if((0,u.isString)(c)){c=function tryConvertUrlEncoding(t){try{return(0,u.stringToUTF8String)(t)}catch(r){return t}}(c);var T=(0,u.createValidAbsoluteUrl)(c,d);T&&(o.url=T.href);o.unsafeUrl=c}if(h){(0,l.isName)(h)&&(h=h.name);((0,u.isString)(h)||Array.isArray(h))&&(o.dest=h)}}else(0,u.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,u.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]);return Catalog}();r.Catalog=S},(t,r,o)=>{"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.NumberTree=r.NameTree=void 0;var l=o(4),c=o(114);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var u=function(){function NameOrNumberTree(t,r,o){_classCallCheck(this,NameOrNumberTree);this.constructor===NameOrNumberTree&&(0,l.unreachable)("Cannot initialize NameOrNumberTree.");this.root=t;this.xref=r;this._type=o}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(NameOrNumberTree,[{key:"getAll",value:function getAll(){var t=new Map;if(!this.root)return t;var r=this.xref,o=new c.RefSet;o.put(this.root);for(var u=[this.root];u.length>0;){var h=r.fetchIfRef(u.shift());if((0,c.isDict)(h))if(h.has("Kids"))for(var d=h.get("Kids"),m=0,g=d.length;m<g;m++){var y=d[m];if(o.has(y))throw new l.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));u.push(y);o.put(y)}else{var v=h.get(this._type);if(Array.isArray(v))for(var S=0,k=v.length;S<k;S+=2)t.set(r.fetchIfRef(v[S]),r.fetchIfRef(v[S+1]))}}return t}},{key:"get",value:function get(t){if(!this.root)return null;for(var r=this.xref,o=r.fetchIfRef(this.root),c=0;o.has("Kids");){if(++c>10){(0,l.warn)('Search depth limit reached for "'.concat(this._type,'" tree.'));return null}var u=o.get("Kids");if(!Array.isArray(u))return null;for(var h=0,d=u.length-1;h<=d;){var m=h+d>>1,g=r.fetchIfRef(u[m]).get("Limits");if(t<r.fetchIfRef(g[0]))d=m-1;else{if(!(t>r.fetchIfRef(g[1]))){o=r.fetchIfRef(u[m]);break}h=m+1}}if(h>d)return null}var y=o.get(this._type);if(Array.isArray(y))for(var v=0,S=y.length-2;v<=S;){var k=v+S>>1,_=k+(1&k),C=r.fetchIfRef(y[_]);if(t<C)S=_-2;else{if(!(t>C))return r.fetchIfRef(y[_+1]);v=_+2}}return null}}]);return NameOrNumberTree}(),h=function(t){_inherits(NameTree,t);var r=_createSuper(NameTree);function NameTree(t,o){_classCallCheck(this,NameTree);return r.call(this,t,o,"Names")}return NameTree}(u);r.NameTree=h;var d=function(t){_inherits(NumberTree,t);var r=_createSuper(NumberTree);function NumberTree(t,o){_classCallCheck(this,NumberTree);return r.call(this,t,o,"Nums")}return NumberTree}(u);r.NumberTree=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.FileSpec=void 0;var l=o(114),c=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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}var u=function(){function FileSpec(t,r){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FileSpec);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,c.stringToPDFString)(t.get("Desc")):"";t.has("RF")&&(0,c.warn)("Related file specifications are not supported");this.contentAvailable=!0;if(!t.has("EF")){this.contentAvailable=!1;(0,c.warn)("Non-embedded file specifications are not supported")}}}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(FileSpec,[{key:"filename",get:function get(){if(!this._filename&&this.root){var t=pickPlatformItem(this.root)||"unnamed";this._filename=(0,c.stringToPDFString)(t).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}},{key:"content",get:function get(){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,c.warn)("Embedded file specification points to non-existing/invalid content")}else(0,c.warn)("Embedded file specification does not have a content");return t}},{key:"serializable",get:function get(){return{filename:this.filename,content:this.content}}}]);return FileSpec}();r.FileSpec=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MetadataParser=void 0;var l=o(177);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=function(){function MetadataParser(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MetadataParser);t=this._repair(t);var r=new l.SimpleXMLParser({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map;this._data=t;r&&this._parse(r)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(MetadataParser,[{key:"_repair",value:function _repair(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(t,r){for(var o=r.replace(/\\([0-3])([0-7])([0-7])/g,(function(t,r,o,l){return String.fromCharCode(64*r+8*o+1*l)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(t,r){switch(r){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(r," isn't defined."))})),l=[],c=0,u=o.length;c<u;c+=2){var h=256*o.charCodeAt(c)+o.charCodeAt(c+1);h>=32&&h<127&&60!==h&&62!==h&&38!==h?l.push(String.fromCharCode(h)):l.push("&#x"+(65536+h).toString(16).substring(1)+";")}return">"+l.join("")}))}},{key:"_getSequence",value:function _getSequence(t){var r=t.nodeName;return"rdf:bag"!==r&&"rdf:seq"!==r&&"rdf:alt"!==r?null:t.childNodes.filter((function(t){return"rdf:li"===t.nodeName}))}},{key:"_parseArray",value:function _parseArray(t){if(t.hasChildNodes()){var r=_slicedToArray(t.childNodes,1)[0],o=this._getSequence(r)||[];this._metadataMap.set(t.nodeName,o.map((function(t){return t.textContent.trim()})))}}},{key:"_parse",value:function _parse(t){var r=t.documentElement;if("rdf:rdf"!==r.nodeName){r=r.firstChild;for(;r&&"rdf:rdf"!==r.nodeName;)r=r.nextSibling}if(r&&"rdf:rdf"===r.nodeName&&r.hasChildNodes()){var o,l=_createForOfIteratorHelper(r.childNodes);try{for(l.s();!(o=l.n()).done;){var c=o.value;if("rdf:description"===c.nodeName){var u,h=_createForOfIteratorHelper(c.childNodes);try{for(h.s();!(u=h.n()).done;){var d=u.value,m=d.nodeName;switch(m){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(d);continue}this._metadataMap.set(m,d.textContent.trim())}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){l.e(t)}finally{l.f()}}}},{key:"serializable",get:function get(){return{parsedData:this._metadataMap,rawData:this._data}}}]);return MetadataParser}();r.MetadataParser=c},(t,r,o)=>{"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.XMLParserErrorCode=r.XMLParserBase=r.SimpleXMLParser=r.SimpleDOMNode=void 0;var l=o(118);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var c={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};r.XMLParserErrorCode=c;function isWhitespace(t,r){var o=t[r];return" "===o||"\n"===o||"\r"===o||"\t"===o}var u=function(){function XMLParserBase(){_classCallCheck(this,XMLParserBase)}_createClass(XMLParserBase,[{key:"_resolveEntities",value:function _resolveEntities(t){var r=this;return t.replace(/&([^;]+);/g,(function(t,o){if("#x"===o.substring(0,2))return String.fromCodePoint(parseInt(o.substring(2),16));if("#"===o.substring(0,1))return String.fromCodePoint(parseInt(o.substring(1),10));switch(o){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return r.onResolveEntity(o)}))}},{key:"_parseContent",value:function _parseContent(t,r){var o=[],l=r;function skipWs(){for(;l<t.length&&isWhitespace(t,l);)++l}for(;l<t.length&&!isWhitespace(t,l)&&">"!==t[l]&&"/"!==t[l];)++l;var c=t.substring(r,l);skipWs();for(;l<t.length&&">"!==t[l]&&"/"!==t[l]&&"?"!==t[l];){skipWs();for(var u,h="";l<t.length&&!isWhitespace(t,l)&&"="!==t[l];){h+=t[l];++l}skipWs();if("="!==t[l])return null;++l;skipWs();var d=t[l];if('"'!==d&&"'"!==d)return null;var m=t.indexOf(d,++l);if(m<0)return null;u=t.substring(l,m);o.push({name:h,value:this._resolveEntities(u)});l=m+1;skipWs()}return{name:c,attributes:o,parsed:l-r}}},{key:"_parseProcessingInstruction",value:function _parseProcessingInstruction(t,r){var o=r;for(;o<t.length&&!isWhitespace(t,o)&&">"!==t[o]&&"?"!==t[o]&&"/"!==t[o];)++o;var l=t.substring(r,o);!function skipWs(){for(;o<t.length&&isWhitespace(t,o);)++o}();for(var c=o;o<t.length&&("?"!==t[o]||">"!==t[o+1]);)++o;return{name:l,value:t.substring(c,o),parsed:o-r}}},{key:"parseXml",value:function parseXml(t){for(var r=0;r<t.length;){var o=r;if("<"===t[r]){var l=void 0;switch(t[++o]){case"/":++o;if((l=t.indexOf(">",o))<0){this.onError(c.UnterminatedElement);return}this.onEndElement(t.substring(o,l));o=l+1;break;case"?":++o;var u=this._parseProcessingInstruction(t,o);if("?>"!==t.substring(o+u.parsed,o+u.parsed+2)){this.onError(c.UnterminatedXmlDeclaration);return}this.onPi(u.name,u.value);o+=u.parsed+2;break;case"!":if("--"===t.substring(o+1,o+3)){if((l=t.indexOf("--\x3e",o+3))<0){this.onError(c.UnterminatedComment);return}this.onComment(t.substring(o+3,l));o=l+3}else if("[CDATA["===t.substring(o+1,o+8)){if((l=t.indexOf("]]>",o+8))<0){this.onError(c.UnterminatedCdat);return}this.onCdata(t.substring(o+8,l));o=l+3}else{if("DOCTYPE"!==t.substring(o+1,o+8)){this.onError(c.MalformedElement);return}var h=t.indexOf("[",o+8),d=!1;if((l=t.indexOf(">",o+8))<0){this.onError(c.UnterminatedDoctypeDeclaration);return}if(h>0&&l>h){if((l=t.indexOf("]>",o+8))<0){this.onError(c.UnterminatedDoctypeDeclaration);return}d=!0}var m=t.substring(o+8,l+(d?1:0));this.onDoctype(m);o=l+(d?2:1)}break;default:var g=this._parseContent(t,o);if(null===g){this.onError(c.MalformedElement);return}var y=!1;if("/>"===t.substring(o+g.parsed,o+g.parsed+2))y=!0;else if(">"!==t.substring(o+g.parsed,o+g.parsed+1)){this.onError(c.UnterminatedElement);return}this.onBeginElement(g.name,g.attributes,y);o+=g.parsed+(y?2:1)}}else{for(;o<t.length&&"<"!==t[o];)o++;var v=t.substring(r,o);this.onText(this._resolveEntities(v))}r=o}}},{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,o){}},{key:"onEndElement",value:function onEndElement(t){}},{key:"onError",value:function onError(t){}}]);return XMLParserBase}();r.XMLParserBase=u;var h=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:"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||""}},{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 o=t[r],l=[],c=this;;){if(o.name===c.nodeName){if(0!==o.pos){if(0===l.length)return null;var u,h=0,d=_createForOfIteratorHelper(_slicedToArray(l.pop(),1)[0].childNodes);try{for(d.s();!(u=d.n()).done;){var m=u.value;if(o.name===m.nodeName){if(h===o.pos)return m.searchNode(t,r+1);h++}}}catch(t){d.e(t)}finally{d.f()}return c.searchNode(t,r+1)}var g=c.searchNode(t,r+1);if(null!==g)return g}if(c.childNodes&&0!==c.childNodes.length){l.push([c,0]);c=c.childNodes[0]}else{if(0===l.length)return null;for(;0!==l.length;){var y=_slicedToArray(l.pop(),2),v=y[0],S=y[1]+1;if(S<v.childNodes.length){l.push([v,S]);c=v.childNodes[S];break}}if(0===l.length)return null}}}},{key:"dump",value:function dump(t){if("#text"!==this.nodeName){t.push("<".concat(this.nodeName));if(this.attributes){var r,o=_createForOfIteratorHelper(this.attributes);try{for(o.s();!(r=o.n()).done;){var c=r.value;t.push(" ".concat(c.name,'="').concat((0,l.encodeToXmlString)(c.value),'"'))}}catch(t){o.e(t)}finally{o.f()}}if(this.hasChildNodes()){t.push(">");var u,h=_createForOfIteratorHelper(this.childNodes);try{for(h.s();!(u=h.n()).done;){u.value.dump(t)}}catch(t){h.e(t)}finally{h.f()}t.push("</".concat(this.nodeName,">"))}else this.nodeValue?t.push(">".concat((0,l.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):t.push("/>")}else t.push((0,l.encodeToXmlString)(this.nodeValue))}}]);return SimpleDOMNode}();r.SimpleDOMNode=h;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)}(SimpleXMLParser,t);var r=_createSuper(SimpleXMLParser);function SimpleXMLParser(t){var o,l=t.hasAttributes,u=void 0!==l&&l,h=t.lowerCaseName,d=void 0!==h&&h;_classCallCheck(this,SimpleXMLParser);(o=r.call(this))._currentFragment=null;o._stack=null;o._errorCode=c.NoError;o._hasAttributes=u;o._lowerCaseName=d;return o}_createClass(SimpleXMLParser,[{key:"parseFromString",value:function parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=c.NoError;this.parseXml(t);if(this._errorCode===c.NoError){var r=_slicedToArray(this._currentFragment,1)[0];if(r)return{documentElement:r}}}},{key:"onText",value:function onText(t){if(!function isWhitespaceString(t){for(var r=0,o=t.length;r<o;r++)if(!isWhitespace(t,r))return!1;return!0}(t)){var r=new h("#text",t);this._currentFragment.push(r)}}},{key:"onCdata",value:function onCdata(t){var r=new h("#text",t);this._currentFragment.push(r)}},{key:"onBeginElement",value:function onBeginElement(t,r,o){this._lowerCaseName&&(t=t.toLowerCase());var l=new h(t);l.childNodes=[];this._hasAttributes&&(l.attributes=r);this._currentFragment.push(l);if(!o){this._stack.push(this._currentFragment);this._currentFragment=l.childNodes}}},{key:"onEndElement",value:function onEndElement(t){this._currentFragment=this._stack.pop()||[];var r=this._currentFragment[this._currentFragment.length-1];if(r)for(var o=0,l=r.childNodes.length;o<l;o++)r.childNodes[o].parentNode=r}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return SimpleXMLParser}(u);r.SimpleXMLParser=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.StructTreeRoot=r.StructTreePage=void 0;var l=o(114),c=o(4),u=o(174);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h="PAGE_CONTENT",d="STREAM_CONTENT",m="OBJECT",g="ELEMENT",y=function(){function StructTreeRoot(t){_classCallCheck(this,StructTreeRoot);this.dict=t;this.roleMap=new Map}_createClass(StructTreeRoot,[{key:"init",value:function init(){this.readRoleMap()}},{key:"readRoleMap",value:function readRoleMap(){var t=this,r=this.dict.get("RoleMap");(0,l.isDict)(r)&&r.forEach((function(r,o){(0,l.isName)(o)&&t.roleMap.set(r,o.name)}))}}]);return StructTreeRoot}();r.StructTreeRoot=y;var v=function(){function StructElementNode(t,r){_classCallCheck(this,StructElementNode);this.tree=t;this.dict=r;this.kids=[];this.parseKids()}_createClass(StructElementNode,[{key:"role",get:function get(){var t=this.dict.get("S"),r=(0,l.isName)(t)?t.name:"",o=this.tree.root;return o.roleMap.has(r)?o.roleMap.get(r):r}},{key:"parseKids",value:function parseKids(){var t=null,r=this.dict.getRaw("Pg");(0,l.isRef)(r)&&(t=r.toString());var o=this.dict.get("K");if(Array.isArray(o)){var c,u=_createForOfIteratorHelper(o);try{for(u.s();!(c=u.n()).done;){var h=c.value,d=this.parseKid(t,h);d&&this.kids.push(d)}}catch(t){u.e(t)}finally{u.f()}}else{var m=this.parseKid(t,o);m&&this.kids.push(m)}}},{key:"parseKid",value:function parseKid(t,r){if(Number.isInteger(r))return this.tree.pageDict.objId!==t?null:new S({type:h,mcid:r,pageObjId:t});var o=null;(0,l.isRef)(r)?o=this.dict.xref.fetch(r):(0,l.isDict)(r)&&(o=r);if(!o)return null;var c=o.getRaw("Pg");(0,l.isRef)(c)&&(t=c.toString());var u=(0,l.isName)(o.get("Type"))?o.get("Type").name:null;return"MCR"===u?this.tree.pageDict.objId!==t?null:new S({type:d,refObjId:(0,l.isRef)(o.getRaw("Stm"))?o.getRaw("Stm").toString():null,pageObjId:t,mcid:o.get("MCID")}):"OBJR"===u?this.tree.pageDict.objId!==t?null:new S({type:m,refObjId:(0,l.isRef)(o.getRaw("Obj"))?o.getRaw("Obj").toString():null,pageObjId:t}):new S({type:g,dict:o})}}]);return StructElementNode}(),S=function StructElement(t){var r=t.type,o=t.dict,l=void 0===o?null:o,c=t.mcid,u=void 0===c?null:c,h=t.pageObjId,d=void 0===h?null:h,m=t.refObjId,g=void 0===m?null:m;_classCallCheck(this,StructElement);this.type=r;this.dict=l;this.mcid=u;this.pageObjId=d;this.refObjId=g;this.parentNode=null},k=function(){function StructTreePage(t,r){_classCallCheck(this,StructTreePage);this.root=t;this.rootDict=t?t.dict:null;this.pageDict=r;this.nodes=[]}_createClass(StructTreePage,[{key:"parse",value:function parse(){if(this.root&&this.rootDict){var t=this.rootDict.get("ParentTree");if(t){var r=this.pageDict.get("StructParents");if(Number.isInteger(r)){var o=new u.NumberTree(t,this.rootDict.xref).get(r);if(Array.isArray(o)){var c,h=new Map,d=_createForOfIteratorHelper(o);try{for(d.s();!(c=d.n()).done;){var m=c.value;(0,l.isRef)(m)&&this.addNode(this.rootDict.xref.fetch(m),h)}}catch(t){d.e(t)}finally{d.f()}}}}}}},{key:"addNode",value:function addNode(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(o>40){(0,c.warn)("StructTree MAX_DEPTH reached.");return null}if(r.has(t))return r.get(t);var u=new v(this,t);r.set(t,u);var h=t.get("P");if(!h||(0,l.isName)(h.get("Type"),"StructTreeRoot")){this.addTopLevelNode(t,u)||r.delete(t);return u}var d=this.addNode(h,r,o+1);if(!d)return u;var m,y=!1,S=_createForOfIteratorHelper(d.kids);try{for(S.s();!(m=S.n()).done;){var k=m.value;if(k.type===g&&k.dict===t){k.parentNode=u;y=!0}}}catch(t){S.e(t)}finally{S.f()}y||r.delete(t);return u}},{key:"addTopLevelNode",value:function addTopLevelNode(t,r){var o=this.rootDict.get("K");if(!o)return!1;if((0,l.isDict)(o)){if(o.objId!==t.objId)return!1;this.nodes[0]=r;return!0}if(!Array.isArray(o))return!0;for(var c=!1,u=0;u<o.length;u++){var h=o[u];if(h&&h.toString()===t.objId){this.nodes[u]=r;c=!0}}return c}},{key:"serializable",get:function get(){function nodeToSerializable(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(o>40)(0,c.warn)("StructTree too deep to be fully serialized.");else{var l=Object.create(null);l.role=t.role;l.children=[];r.children.push(l);var u=t.dict.get("Alt");(0,c.isString)(u)&&(l.alt=(0,c.stringToPDFString)(u));var y,v=_createForOfIteratorHelper(t.kids);try{for(v.s();!(y=v.n()).done;){var S=y.value,k=S.type===g?S.parentNode:null;k?nodeToSerializable(k,l,o+1):S.type===h||S.type===d?l.children.push({type:"content",id:"page".concat(S.pageObjId,"_mcid").concat(S.mcid)}):S.type===m&&l.children.push({type:"object",id:S.refObjId})}}catch(t){v.e(t)}finally{v.f()}}}var t=Object.create(null);t.children=[];t.role="Root";var r,o=_createForOfIteratorHelper(this.nodes);try{for(o.s();!(r=o.n()).done;){var l=r.value;l&&nodeToSerializable(l,t)}}catch(t){o.e(t)}finally{o.f()}return t}}]);return StructTreePage}();r.StructTreePage=k},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ObjectLoader=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(114),u=o(118),h=o(4);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function addChildren(t,r){if(t instanceof c.Dict)t=t.getRawValues();else if((0,c.isStream)(t))t=t.dict.getRawValues();else if(!Array.isArray(t))return;var o,l,u=_createForOfIteratorHelper(t);try{for(u.s();!(o=u.n()).done;){var h=o.value;((l=h)instanceof c.Ref||l instanceof c.Dict||Array.isArray(l)||(0,c.isStream)(l))&&r.push(h)}}catch(t){u.e(t)}finally{u.f()}}var d=function(){function ObjectLoader(t,r,o){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ObjectLoader);this.dict=t;this.keys=r;this.xref=o;this.refSet=null}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(ObjectLoader,[{key:"load",value:(r=_asyncToGenerator(l.default.mark((function _callee(){var t,r,o,u,h,d;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:if(!this.xref.stream.isDataLoaded){l.next=2;break}return l.abrupt("return",void 0);case 2:t=this.keys,r=this.dict;this.refSet=new c.RefSet;o=[];for(u=0,h=t.length;u<h;u++)void 0!==(d=r.getRaw(t[u]))&&o.push(d);return l.abrupt("return",this._walk(o));case 7:case"end":return l.stop()}}),_callee,this)}))),function load(){return r.apply(this,arguments)})},{key:"_walk",value:(t=_asyncToGenerator(l.default.mark((function _callee2(t){var r,o,d,m,g,y,v,S,k,_,C,w;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:r=[];o=[];case 2:if(!t.length){l.next=48;break}if(!((d=t.pop())instanceof c.Ref)){l.next=21;break}if(!this.refSet.has(d)){l.next=7;break}return l.abrupt("continue",2);case 7:l.prev=7;this.refSet.put(d);d=this.xref.fetch(d);l.next=21;break;case 12:l.prev=12;l.t0=l.catch(7);if(l.t0 instanceof u.MissingDataException){l.next=19;break}(0,h.warn)('ObjectLoader._walk - requesting all data: "'.concat(l.t0,'".'));this.refSet=null;m=this.xref.stream.manager;return l.abrupt("return",m.requestAllChunks());case 19:r.push(d);o.push({begin:l.t0.begin,end:l.t0.end});case 21:if(!(0,c.isStream)(d)){l.next=45;break}if(!(g=d.getBaseStreams())){l.next=45;break}y=!1;v=_createForOfIteratorHelper(g);l.prev=26;v.s();case 28:if((S=v.n()).done){l.next=36;break}if(!(k=S.value).isDataLoaded){l.next=32;break}return l.abrupt("continue",34);case 32:y=!0;o.push({begin:k.start,end:k.end});case 34:l.next=28;break;case 36:l.next=41;break;case 38:l.prev=38;l.t1=l.catch(26);v.e(l.t1);case 41:l.prev=41;v.f();return l.finish(41);case 44:y&&r.push(d);case 45:addChildren(d,t);l.next=2;break;case 48:if(!o.length){l.next=54;break}l.next=51;return this.xref.stream.manager.requestRanges(o);case 51:_=_createForOfIteratorHelper(r);try{for(_.s();!(C=_.n()).done;)(w=C.value)instanceof c.Ref&&this.refSet.remove(w)}catch(t){_.e(t)}finally{_.f()}return l.abrupt("return",this._walk(r));case 54:this.refSet=null;return l.abrupt("return",void 0);case 56:case"end":return l.stop()}}),_callee2,this,[[7,12],[26,38,41,44]])}))),function _walk(r){return t.apply(this,arguments)})}]);var t,r;return ObjectLoader}();r.ObjectLoader=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.incrementalUpdate=function incrementalUpdate(t){var r=t.originalData,o=t.xrefInfo,m=t.newRefs,g=t.xref,y=void 0===g?null:g,v=t.datasetsRef,S=void 0===v?null:v,k=t.xfaData;!function updateXFA(t,r,o,c){if(null===r||null===c)return;if(null===t){t=function writeXFADataForAcroform(t,r){var o,c=new h.SimpleXMLParser({hasAttributes:!0}).parseFromString(t),d=_createForOfIteratorHelper(r);try{for(d.s();!(o=d.n()).done;){var m=o.value.xfa;if(m){var g=m.path,y=m.value;if(g){var v=c.documentElement.searchNode((0,u.parseXFAPath)(g),0);v?v.childNodes=[new h.SimpleDOMNode("#text",y)]:(0,l.warn)("Node not found for path: ".concat(g))}}}}catch(t){d.e(t)}finally{d.f()}var S=[];c.documentElement.dump(S);return S.join("")}(c.fetchIfRef(r).getString(),o)}var d=c.encrypt;if(d){t=d.createCipherTransform(r.num,r.gen).encryptString(t)}var m="".concat(r.num," ").concat(r.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\nstream\n")+t+"\nendstream\nendobj\n";o.push({ref:r,data:m})}(void 0===k?null:k,S,m,y);var _,C,w=new c.Dict(null),x=o.newRef,O=r[r.length-1];if(10===O||13===O){_=[];C=r.length}else{_=["\n"];C=r.length+1}w.set("Size",x.num+1);w.set("Prev",o.startXRef);w.set("Type",c.Name.get("XRef"));null!==o.rootRef&&w.set("Root",o.rootRef);null!==o.infoRef&&w.set("Info",o.infoRef);null!==o.encryptRef&&w.set("Encrypt",o.encryptRef);m.push({ref:x,data:""});m=m.sort((function(t,r){return t.ref.num-r.ref.num}));var T,R=[[0,1,65535]],E=[0,1],M=0,D=_createForOfIteratorHelper(m);try{for(D.s();!(T=D.n()).done;){var j=T.value,L=j.ref,N=j.data;M=Math.max(M,C);R.push([1,C,Math.min(L.gen,65535)]);C+=N.length;E.push(L.num,1);_.push(N)}}catch(t){D.e(t)}finally{D.f()}w.set("Index",E);if(Array.isArray(o.fileIds)&&o.fileIds.length>0){var U=function computeMD5(t,r){for(var o=Math.floor(Date.now()/1e3),c=r.filename||"",u=[o.toString(),c,t.toString()],h=u.reduce((function(t,r){return t+r.length}),0),m=0,g=Object.values(r.info);m<g.length;m++){var y=g[m];u.push(y);h+=y.length}for(var v=new Uint8Array(h),S=0,k=0,_=u;k<_.length;k++){var C=_[k];writeString(C,S,v);S+=C.length}return(0,l.bytesToString)((0,d.calculateMD5)(v))}(C,o);w.set("ID",[o.fileIds[0],U])}var H=[1,Math.ceil(Math.log2(M)/8),2],W=(H[0]+H[1]+H[2])*R.length;w.set("W",H);w.set("Length",W);_.push("".concat(x.num," ").concat(x.gen," obj\n"));writeDict(w,_,null);_.push(" stream\n");var q=_.reduce((function(t,r){return t+r.length}),0),$="\nendstream\nendobj\nstartxref\n".concat(C,"\n%%EOF\n"),X=new Uint8Array(r.length+q+W+$.length);X.set(r);var z,G=r.length,V=_createForOfIteratorHelper(_);try{for(V.s();!(z=V.n()).done;){var Y=z.value;writeString(Y,G,X);G+=Y.length}}catch(t){V.e(t)}finally{V.f()}for(var K=0,J=R;K<J.length;K++){var Q=(re=J[K],ae=3,function _arrayWithHoles(t){if(Array.isArray(t))return t}(re)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(re,ae)||_unsupportedIterableToArray(re,ae)||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=Q[0],ee=Q[1],te=Q[2];G=writeInt(Z,H[0],G,X);G=writeInt(ee,H[1],G,X);G=writeInt(te,H[2],G,X)}var re,ae;writeString($,G,X);return X};r.writeDict=writeDict;var l=o(4),c=o(114),u=o(118),h=o(177),d=o(181);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function writeDict(t,r,o){r.push("<<");var l,c=_createForOfIteratorHelper(t.getKeys());try{for(c.s();!(l=c.n()).done;){var h=l.value;r.push(" /".concat((0,u.escapePDFName)(h)," "));writeValue(t.getRaw(h),r,o)}}catch(t){c.e(t)}finally{c.f()}r.push(">>")}function writeValue(t,r,o){if((0,c.isName)(t))r.push("/".concat((0,u.escapePDFName)(t.name)));else if((0,c.isRef)(t))r.push("".concat(t.num," ").concat(t.gen," R"));else if(Array.isArray(t))!function writeArray(t,r,o){r.push("[");var l,c=!0,u=_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var h=l.value;c?c=!1:r.push(" ");writeValue(h,r,o)}}catch(t){u.e(t)}finally{u.f()}r.push("]")}(t,r,o);else if("string"==typeof t){null!==o&&(t=o.encryptString(t));r.push("(".concat((0,l.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,c.isDict)(t)?writeDict(t,r,o):(0,c.isStream)(t)&&function writeStream(t,r,o){writeDict(t.dict,r,o);r.push(" stream\n");var l=t.getString();null!==o&&(l=o.encryptString(l));r.push(l,"\nendstream\n")}(t,r,o)}function writeInt(t,r,o,l){for(var c=r+o-1;c>o-1;c--){l[c]=255&t;t>>=8}return o+r}function writeString(t,r,o){for(var l=0,c=t.length;l<c;l++)o[r+l]=255&t.charCodeAt(l)}},(t,r,o)=>{"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.calculateSHA384=calculateSHA384;r.PDF20=r.PDF17=r.CipherTransformFactory=r.calculateSHA512=r.calculateSHA256=r.calculateMD5=r.ARCFourCipher=r.AES256Cipher=r.AES128Cipher=void 0;var l=o(4),c=o(114),u=o(182);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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h=function(){function ARCFourCipher(t){_classCallCheck(this,ARCFourCipher);this.a=0;this.b=0;for(var r=new Uint8Array(256),o=t.length,l=0;l<256;++l)r[l]=l;for(var c=0,u=0;c<256;++c){var h=r[c];u=u+h+t[c%o]&255;r[c]=r[u];r[u]=h}this.s=r}_createClass(ARCFourCipher,[{key:"encryptBlock",value:function encryptBlock(t){for(var r=this.a,o=this.b,l=this.s,c=t.length,u=new Uint8Array(c),h=0;h<c;++h){var d=l[r=r+1&255],m=l[o=o+d&255];l[r]=m;l[o]=d;u[h]=t[h]^l[d+m&255]}this.a=r;this.b=o;return u}},{key:"decryptBlock",value:function decryptBlock(t){return this.encryptBlock(t)}},{key:"encrypt",value:function encrypt(t){return this.encryptBlock(t)}}]);return ARCFourCipher}();r.ARCFourCipher=h;var d=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(o,l,c){var u,h,d=1732584193,m=-271733879,g=-1732584194,y=271733878,v=c+72&-64,S=new Uint8Array(v);for(u=0;u<c;++u)S[u]=o[l++];S[u++]=128;for(var k=v-8;u<k;)S[u++]=0;S[u++]=c<<3&255;S[u++]=c>>5&255;S[u++]=c>>13&255;S[u++]=c>>21&255;S[u++]=c>>>29&255;S[u++]=0;S[u++]=0;S[u++]=0;var _=new Int32Array(16);for(u=0;u<v;){for(h=0;h<16;++h,u+=4)_[h]=S[u]|S[u+1]<<8|S[u+2]<<16|S[u+3]<<24;var C=d,w=m,x=g,O=y,T=void 0,R=void 0;for(h=0;h<64;++h){if(h<16){T=w&x|~w&O;R=h}else if(h<32){T=O&w|~O&x;R=5*h+1&15}else if(h<48){T=w^x^O;R=3*h+5&15}else{T=x^(w|~O);R=7*h&15}var E=O,M=C+T+r[h]+_[R]|0,D=t[h];O=x;x=w;w=w+(M<<D|M>>>32-D)|0;C=E}d=d+C|0;m=m+w|0;g=g+x|0;y=y+O|0}return new Uint8Array([255&d,d>>8&255,d>>16&255,d>>>24&255,255&m,m>>8&255,m>>16&255,m>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255,255&y,y>>8&255,y>>16&255,y>>>24&255])}}();r.calculateMD5=d;var m=function(){function Word64(t,r){_classCallCheck(this,Word64);this.high=0|t;this.low=0|r}_createClass(Word64,[{key:"and",value:function and(t){this.high&=t.high;this.low&=t.low}},{key:"xor",value:function xor(t){this.high^=t.high;this.low^=t.low}},{key:"or",value:function or(t){this.high|=t.high;this.low|=t.low}},{key:"shiftRight",value:function 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}}},{key:"shiftLeft",value:function 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<<=t}}},{key:"rotateRight",value:function rotateRight(t){var r,o;if(32&t){o=this.low;r=this.high}else{r=this.low;o=this.high}t&=31;this.low=r>>>t|o<<32-t;this.high=o>>>t|r<<32-t}},{key:"not",value:function not(){this.high=~this.high;this.low=~this.low}},{key:"add",value:function add(t){var r=(this.low>>>0)+(t.low>>>0),o=(this.high>>>0)+(t.high>>>0);r>4294967295&&(o+=1);this.low=0|r;this.high=0|o}},{key:"copyTo",value:function 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}},{key:"assign",value:function assign(t){this.high=t.high;this.low=t.low}}]);return Word64}(),g=function calculateSHA256Closure(){function rotr(t,r){return t>>>r|t<<32-r}function ch(t,r,o){return t&r^~t&o}function maj(t,r,o){return t&r^t&o^r&o}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,o,l){var c,u,h=1779033703,d=3144134277,m=1013904242,g=2773480762,y=1359893119,v=2600822924,S=528734635,k=1541459225,_=64*Math.ceil((l+9)/64),C=new Uint8Array(_);for(c=0;c<l;++c)C[c]=r[o++];C[c++]=128;for(var w=_-8;c<w;)C[c++]=0;C[c++]=0;C[c++]=0;C[c++]=0;C[c++]=l>>>29&255;C[c++]=l>>21&255;C[c++]=l>>13&255;C[c++]=l>>5&255;C[c++]=l<<3&255;var x,O=new Uint32Array(64);for(c=0;c<_;){for(u=0;u<16;++u){O[u]=C[c]<<24|C[c+1]<<16|C[c+2]<<8|C[c+3];c+=4}for(u=16;u<64;++u)O[u]=(rotr(x=O[u-2],17)^rotr(x,19)^x>>>10)+O[u-7]+littleSigma(O[u-15])+O[u-16]|0;var T=h,R=d,E=m,M=g,D=y,j=v,L=S,N=k,U=void 0,H=void 0;for(u=0;u<64;++u){U=N+sigmaPrime(D)+ch(D,j,L)+t[u]+O[u];H=sigma(T)+maj(T,R,E);N=L;L=j;j=D;D=M+U|0;M=E;E=R;R=T;T=U+H|0}h=h+T|0;d=d+R|0;m=m+E|0;g=g+M|0;y=y+D|0;v=v+j|0;S=S+L|0;k=k+N|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,m>>24&255,m>>16&255,m>>8&255,255&m,g>>24&255,g>>16&255,g>>8&255,255&g,y>>24&255,y>>16&255,y>>8&255,255&y,v>>24&255,v>>16&255,v>>8&255,255&v,S>>24&255,S>>16&255,S>>8&255,255&S,k>>24&255,k>>16&255,k>>8&255,255&k])}}();r.calculateSHA256=g;var y=function calculateSHA512Closure(){function ch(t,r,o,l,c){t.assign(r);t.and(o);c.assign(r);c.not();c.and(l);t.xor(c)}function maj(t,r,o,l,c){t.assign(r);t.and(o);c.assign(r);c.and(l);t.xor(c);c.assign(o);c.and(l);t.xor(c)}function sigma(t,r,o){t.assign(r);t.rotateRight(28);o.assign(r);o.rotateRight(34);t.xor(o);o.assign(r);o.rotateRight(39);t.xor(o)}function sigmaPrime(t,r,o){t.assign(r);t.rotateRight(14);o.assign(r);o.rotateRight(18);t.xor(o);o.assign(r);o.rotateRight(41);t.xor(o)}function littleSigma(t,r,o){t.assign(r);t.rotateRight(1);o.assign(r);o.rotateRight(8);t.xor(o);o.assign(r);o.shiftRight(7);t.xor(o)}function littleSigmaPrime(t,r,o){t.assign(r);t.rotateRight(19);o.assign(r);o.rotateRight(61);t.xor(o);o.assign(r);o.shiftRight(6);t.xor(o)}var t=[new m(1116352408,3609767458),new m(1899447441,602891725),new m(3049323471,3964484399),new m(3921009573,2173295548),new m(961987163,4081628472),new m(1508970993,3053834265),new m(2453635748,2937671579),new m(2870763221,3664609560),new m(3624381080,2734883394),new m(310598401,1164996542),new m(607225278,1323610764),new m(1426881987,3590304994),new m(1925078388,4068182383),new m(2162078206,991336113),new m(2614888103,633803317),new m(3248222580,3479774868),new m(3835390401,2666613458),new m(4022224774,944711139),new m(264347078,2341262773),new m(604807628,2007800933),new m(770255983,1495990901),new m(1249150122,1856431235),new m(1555081692,3175218132),new m(1996064986,2198950837),new m(2554220882,3999719339),new m(2821834349,766784016),new m(2952996808,2566594879),new m(3210313671,3203337956),new m(3336571891,1034457026),new m(3584528711,2466948901),new m(113926993,3758326383),new m(338241895,168717936),new m(666307205,1188179964),new m(773529912,1546045734),new m(1294757372,1522805485),new m(1396182291,2643833823),new m(1695183700,2343527390),new m(1986661051,1014477480),new m(2177026350,1206759142),new m(2456956037,344077627),new m(2730485921,1290863460),new m(2820302411,3158454273),new m(3259730800,3505952657),new m(3345764771,106217008),new m(3516065817,3606008344),new m(3600352804,1432725776),new m(4094571909,1467031594),new m(275423344,851169720),new m(430227734,3100823752),new m(506948616,1363258195),new m(659060556,3750685593),new m(883997877,3785050280),new m(958139571,3318307427),new m(1322822218,3812723403),new m(1537002063,2003034995),new m(1747873779,3602036899),new m(1955562222,1575990012),new m(2024104815,1125592928),new m(2227730452,2716904306),new m(2361852424,442776044),new m(2428436474,593698344),new m(2756734187,3733110249),new m(3204031479,2999351573),new m(3329325298,3815920427),new m(3391569614,3928383900),new m(3515267271,566280711),new m(3940187606,3454069534),new m(4118630271,4000239992),new m(116418474,1914138554),new m(174292421,2731055270),new m(289380356,3203993006),new m(460393269,320620315),new m(685471733,587496836),new m(852142971,1086792851),new m(1017036298,365543100),new m(1126000580,2618297676),new m(1288033470,3409855158),new m(1501505948,4234509866),new m(1607167915,987167468),new m(1816402316,1246189591)];return function hash(r,o,l){var c,u,h,d,g,y,v,S,k=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(k){c=new m(3418070365,3238371032);u=new m(1654270250,914150663);h=new m(2438529370,812702999);d=new m(355462360,4144912697);g=new m(1731405415,4290775857);y=new m(2394180231,1750603025);v=new m(3675008525,1694076839);S=new m(1203062813,3204075428)}else{c=new m(1779033703,4089235720);u=new m(3144134277,2227873595);h=new m(1013904242,4271175723);d=new m(2773480762,1595750129);g=new m(1359893119,2917565137);y=new m(2600822924,725511199);v=new m(528734635,4215389547);S=new m(1541459225,327033209)}var _,C,w=128*Math.ceil((l+17)/128),x=new Uint8Array(w);for(_=0;_<l;++_)x[_]=r[o++];x[_++]=128;for(var O=w-16;_<O;)x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=0;x[_++]=l>>>29&255;x[_++]=l>>21&255;x[_++]=l>>13&255;x[_++]=l>>5&255;x[_++]=l<<3&255;var T=new Array(80);for(_=0;_<80;_++)T[_]=new m(0,0);var R,E,M=new m(0,0),D=new m(0,0),j=new m(0,0),L=new m(0,0),N=new m(0,0),U=new m(0,0),H=new m(0,0),W=new m(0,0),q=new m(0,0),$=new m(0,0),X=new m(0,0),z=new m(0,0);for(_=0;_<w;){for(C=0;C<16;++C){T[C].high=x[_]<<24|x[_+1]<<16|x[_+2]<<8|x[_+3];T[C].low=x[_+4]<<24|x[_+5]<<16|x[_+6]<<8|x[_+7];_+=8}for(C=16;C<80;++C){littleSigmaPrime(R=T[C],T[C-2],z);R.add(T[C-7]);littleSigma(X,T[C-15],z);R.add(X);R.add(T[C-16])}M.assign(c);D.assign(u);j.assign(h);L.assign(d);N.assign(g);U.assign(y);H.assign(v);W.assign(S);for(C=0;C<80;++C){q.assign(W);sigmaPrime(X,N,z);q.add(X);ch(X,N,U,H,z);q.add(X);q.add(t[C]);q.add(T[C]);sigma($,M,z);maj(X,M,D,j,z);$.add(X);R=W;W=H;H=U;U=N;L.add(q);N=L;L=j;j=D;D=M;R.assign(q);R.add($);M=R}c.add(M);u.add(D);h.add(j);d.add(L);g.add(N);y.add(U);v.add(H);S.add(W)}if(k){E=new Uint8Array(48);c.copyTo(E,0);u.copyTo(E,8);h.copyTo(E,16);d.copyTo(E,24);g.copyTo(E,32);y.copyTo(E,40)}else{E=new Uint8Array(64);c.copyTo(E,0);u.copyTo(E,8);h.copyTo(E,16);d.copyTo(E,24);g.copyTo(E,32);y.copyTo(E,40);v.copyTo(E,48);S.copyTo(E,56)}return E}}();r.calculateSHA512=y;function calculateSHA384(t,r,o){return y(t,r,o,!0)}var v=function(){function NullCipher(){_classCallCheck(this,NullCipher)}_createClass(NullCipher,[{key:"decryptBlock",value:function decryptBlock(t){return t}},{key:"encrypt",value:function encrypt(t){return t}}]);return NullCipher}(),S=function(){function AESBaseCipher(){_classCallCheck(this,AESBaseCipher);this.constructor===AESBaseCipher&&(0,l.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,l.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function _decrypt(t,r){var o,l,c,u=new Uint8Array(16);u.set(t);for(var h=0,d=this._keySize;h<16;++h,++d)u[h]^=r[d];for(var m=this._cyclesOfRepetition-1;m>=1;--m){o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];l=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=l;o=u[15];l=u[11];c=u[7];u[15]=u[3];u[11]=o;u[7]=l;u[3]=c;for(var g=0;g<16;++g)u[g]=this._inv_s[u[g]];for(var y=0,v=16*m;y<16;++y,++v)u[y]^=r[v];for(var S=0;S<16;S+=4){var k=this._mix[u[S]],_=this._mix[u[S+1]],C=this._mix[u[S+2]],w=this._mix[u[S+3]];o=k^_>>>8^_<<24^C>>>16^C<<16^w>>>24^w<<8;u[S]=o>>>24&255;u[S+1]=o>>16&255;u[S+2]=o>>8&255;u[S+3]=255&o}}o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];l=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=l;o=u[15];l=u[11];c=u[7];u[15]=u[3];u[11]=o;u[7]=l;u[3]=c;for(var x=0;x<16;++x){u[x]=this._inv_s[u[x]];u[x]^=r[x]}return u}},{key:"_encrypt",value:function _encrypt(t,r){var o,l,c,u=this._s,h=new Uint8Array(16);h.set(t);for(var d=0;d<16;++d)h[d]^=r[d];for(var m=1;m<this._cyclesOfRepetition;m++){for(var g=0;g<16;++g)h[g]=u[h[g]];c=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=c;c=h[2];l=h[6];h[2]=h[10];h[6]=h[14];h[10]=c;h[14]=l;c=h[3];l=h[7];o=h[11];h[3]=h[15];h[7]=c;h[11]=l;h[15]=o;for(var y=0;y<16;y+=4){var v=h[y+0],S=h[y+1],k=h[y+2],_=h[y+3];o=v^S^k^_;h[y+0]^=o^this._mixCol[v^S];h[y+1]^=o^this._mixCol[S^k];h[y+2]^=o^this._mixCol[k^_];h[y+3]^=o^this._mixCol[_^v]}for(var C=0,w=16*m;C<16;++C,++w)h[C]^=r[w]}for(var x=0;x<16;++x)h[x]=u[h[x]];c=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=c;c=h[2];l=h[6];h[2]=h[10];h[6]=h[14];h[10]=c;h[14]=l;c=h[3];l=h[7];o=h[11];h[3]=h[15];h[7]=c;h[11]=l;h[15]=o;for(var O=0,T=this._keySize;O<16;++O,++T)h[O]^=r[T];return h}},{key:"_decryptBlock2",value:function _decryptBlock2(t,r){for(var o=t.length,l=this.buffer,c=this.bufferPosition,u=[],h=this.iv,d=0;d<o;++d){l[c]=t[d];if(!(++c<16)){for(var m=this._decrypt(l,this._key),g=0;g<16;++g)m[g]^=h[g];h=l;u.push(m);l=new Uint8Array(16);c=0}}this.buffer=l;this.bufferLength=c;this.iv=h;if(0===u.length)return new Uint8Array(0);var y=16*u.length;if(r){var v=u[u.length-1],S=v[15];if(S<=16){for(var k=15,_=16-S;k>=_;--k)if(v[k]!==S){S=0;break}y-=S;u[u.length-1]=v.subarray(0,16-S)}}for(var C=new Uint8Array(y),w=0,x=0,O=u.length;w<O;++w,x+=16)C.set(u[w],x);return C}},{key:"decryptBlock",value:function decryptBlock(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=t.length,c=this.buffer,u=this.bufferPosition;if(o)this.iv=o;else{for(var h=0;u<16&&h<l;++h,++u)c[u]=t[h];if(u<16){this.bufferLength=u;return new Uint8Array(0)}this.iv=c;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 o=t.length,l=this.buffer,c=this.bufferPosition,u=[];r||(r=new Uint8Array(16));for(var h=0;h<o;++h){l[c]=t[h];if(!(++c<16)){for(var d=0;d<16;++d)l[d]^=r[d];var m=this._encrypt(l,this._key);r=m;u.push(m);l=new Uint8Array(16);c=0}}this.buffer=l;this.bufferLength=c;this.iv=r;if(0===u.length)return new Uint8Array(0);for(var g=16*u.length,y=new Uint8Array(g),v=0,S=0,k=u.length;v<k;++v,S+=16)y.set(u[v],S);return y}}]);return AESBaseCipher}(),k=function(t){_inherits(AES128Cipher,t);var r=_createSuper(AES128Cipher);function AES128Cipher(t){var o;_classCallCheck(this,AES128Cipher);(o=r.call(this))._cyclesOfRepetition=10;o._keySize=160;o._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]);o._key=o._expandKey(t);return o}_createClass(AES128Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,o=this._rcon,l=new Uint8Array(176);l.set(t);for(var c=16,u=1;c<176;++u){var h=l[c-3],d=l[c-2],m=l[c-1],g=l[c-4];h=r[h];d=r[d];m=r[m];g=r[g];h^=o[u];for(var y=0;y<4;++y){l[c]=h^=l[c-16];l[++c]=d^=l[c-16];l[++c]=m^=l[c-16];l[++c]=g^=l[c-16];c++}}return l}}]);return AES128Cipher}(S);r.AES128Cipher=k;var _=function(t){_inherits(AES256Cipher,t);var r=_createSuper(AES256Cipher);function AES256Cipher(t){var o;_classCallCheck(this,AES256Cipher);(o=r.call(this))._cyclesOfRepetition=14;o._keySize=224;o._key=o._expandKey(t);return o}_createClass(AES256Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,o=new Uint8Array(240);o.set(t);for(var l,c,u,h,d=1,m=32,g=1;m<240;++g){if(m%32==16){l=r[l];c=r[c];u=r[u];h=r[h]}else if(m%32==0){l=o[m-3];c=o[m-2];u=o[m-1];h=o[m-4];l=r[l];c=r[c];u=r[u];h=r[h];l^=d;(d<<=1)>=256&&(d=255&(27^d))}for(var y=0;y<4;++y){o[m]=l^=o[m-32];o[++m]=c^=o[m-32];o[++m]=u^=o[m-32];o[++m]=h^=o[m-32];m++}}return o}}]);return AES256Cipher}(S);r.AES256Cipher=_;var C=function(){function PDF17(){_classCallCheck(this,PDF17)}_createClass(PDF17,[{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,c){var u=new Uint8Array(t.length+56);u.set(t,0);u.set(r,t.length);u.set(o,t.length+r.length);var h=g(u,0,u.length);return(0,l.isArrayEqual)(h,c)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var u=g(c,0,c.length);return(0,l.isArrayEqual)(u,o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,l){var c=new Uint8Array(t.length+56);c.set(t,0);c.set(r,t.length);c.set(o,t.length+r.length);var u=g(c,0,c.length);return new _(u).decryptBlock(l,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var l=new Uint8Array(t.length+8);l.set(t,0);l.set(r,t.length);var c=g(l,0,l.length);return new _(c).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF17}();r.PDF17=C;var w=function PDF20Closure(){function calculatePDF20Hash(t,r,o){for(var l=g(r,0,r.length).subarray(0,32),c=[0],u=0;u<64||c[c.length-1]>u-32;){var h=t.length+l.length+o.length,d=new Uint8Array(h),m=0;d.set(t,m);m+=t.length;d.set(l,m);m+=l.length;d.set(o,m);for(var v=new Uint8Array(64*h),S=0,_=0;S<64;S++,_+=h)v.set(d,_);c=new k(l.subarray(0,16)).encrypt(v,l.subarray(16,32));for(var C=0,w=0;w<16;w++){C*=1;C%=3;C+=(c[w]>>>0)%3;C%=3}0===C?l=g(c,0,c.length):1===C?l=calculateSHA384(c,0,c.length):2===C&&(l=y(c,0,c.length));u++}return l.subarray(0,32)}return function(){function PDF20(){_classCallCheck(this,PDF20)}_createClass(PDF20,[{key:"hash",value:function hash(t,r,o){return calculatePDF20Hash(t,r,o)}},{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,c){var u=new Uint8Array(t.length+56);u.set(t,0);u.set(r,t.length);u.set(o,t.length+r.length);var h=calculatePDF20Hash(t,u,o);return(0,l.isArrayEqual)(h,c)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var u=calculatePDF20Hash(t,c,[]);return(0,l.isArrayEqual)(u,o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,l){var c=new Uint8Array(t.length+56);c.set(t,0);c.set(r,t.length);c.set(o,t.length+r.length);var u=calculatePDF20Hash(t,c,o);return new _(u).decryptBlock(l,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var l=new Uint8Array(t.length+8);l.set(t,0);l.set(r,t.length);var c=calculatePDF20Hash(t,l,[]);return new _(c).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF20}()}();r.PDF20=w;var x=function(){function CipherTransform(t,r){_classCallCheck(this,CipherTransform);this.StringCipherConstructor=t;this.StreamCipherConstructor=r}_createClass(CipherTransform,[{key:"createStream",value:function createStream(t,r){var o=new this.StreamCipherConstructor;return new u.DecryptStream(t,r,(function cipherTransformDecryptStream(t,r){return o.decryptBlock(t,r)}))}},{key:"decryptString",value:function decryptString(t){var r=new this.StringCipherConstructor,o=(0,l.stringToBytes)(t);o=r.decryptBlock(o,!0);return(0,l.bytesToString)(o)}},{key:"encryptString",value:function encryptString(t){var r=new this.StringCipherConstructor;if(r instanceof S){var o=t.length,c=16-o%16;16!==c&&(t=t.padEnd(16*Math.ceil(o/16),String.fromCharCode(c)));var u=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(u);else for(var h=0;h<16;h++)u[h]=Math.floor(256*Math.random());var d=(0,l.stringToBytes)(t);d=r.encrypt(d,u);var m=new Uint8Array(16+d.length);m.set(u);m.set(d,16);return(0,l.bytesToString)(m)}var g=(0,l.stringToBytes)(t);g=r.encrypt(g);return(0,l.bytesToString)(g)}}]);return CipherTransform}(),O=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,o,l,c,u,m,g,y){var v,S,k=40+l.length+r.length,_=new Uint8Array(k),C=0;if(o){S=Math.min(32,o.length);for(;C<S;++C)_[C]=o[C]}v=0;for(;C<32;)_[C++]=t[v++];for(v=0,S=l.length;v<S;++v)_[C++]=l[v];_[C++]=255&u;_[C++]=u>>8&255;_[C++]=u>>16&255;_[C++]=u>>>24&255;for(v=0,S=r.length;v<S;++v)_[C++]=r[v];if(m>=4&&!y){_[C++]=255;_[C++]=255;_[C++]=255;_[C++]=255}var w=d(_,0,C),x=g>>3;if(m>=3)for(v=0;v<50;++v)w=d(w,0,x);var O,T=w.subarray(0,x);if(m>=3){for(C=0;C<32;++C)_[C]=t[C];for(v=0,S=r.length;v<S;++v)_[C++]=r[v];O=new h(T).encryptBlock(d(_,0,C));S=T.length;var R=new Uint8Array(S);for(v=1;v<=19;++v){for(var E=0;E<S;++E)R[E]=T[E]^v;O=new h(R).encryptBlock(O)}for(v=0,S=O.length;v<S;++v)if(c[v]!==O[v])return null}else for(v=0,S=(O=new h(T).encryptBlock(t)).length;v<S;++v)if(c[v]!==O[v])return null;return T}var r=c.Name.get("Identity");function buildObjectKey(t,r,o){var l,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=new Uint8Array(o.length+9),h=o.length;for(l=0;l<h;++l)u[l]=o[l];u[l++]=255&t;u[l++]=t>>8&255;u[l++]=t>>16&255;u[l++]=255&r;u[l++]=r>>8&255;if(c){u[l++]=115;u[l++]=65;u[l++]=108;u[l++]=84}var m=d(u,0,l);return m.subarray(0,Math.min(o.length+5,16))}function buildCipherConstructor(t,r,o,u,d){if(!(0,c.isName)(r))throw new l.FormatError("Invalid crypt filter name.");var m,g=t.get(r.name);null!=g&&(m=g.get("CFM"));if(!m||"None"===m.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new v};if("V2"===m.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new h(buildObjectKey(o,u,d,!1))};if("AESV2"===m.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new k(buildObjectKey(o,u,d,!0))};if("AESV3"===m.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new _(d)};throw new l.FormatError("Unknown crypto method")}return function(){function CipherTransformFactory(o,u,m){_classCallCheck(this,CipherTransformFactory);var g=o.get("Filter");if(!(0,c.isName)(g,"Standard"))throw new l.FormatError("unknown encryption method");this.dict=o;var y=o.get("V");if(!Number.isInteger(y)||1!==y&&2!==y&&4!==y&&5!==y)throw new l.FormatError("unsupported encryption algorithm");this.algorithm=y;var v=o.get("Length");if(!v)if(y<=3)v=40;else{var S=o.get("CF"),k=o.get("StmF");if((0,c.isDict)(S)&&(0,c.isName)(k)){S.suppressEncryption=!0;var _=S.get(k.name);(v=_&&_.get("Length")||128)<40&&(v<<=3)}}if(!Number.isInteger(v)||v<40||v%8!=0)throw new l.FormatError("invalid key length");var x=(0,l.stringToBytes)(o.get("O")).subarray(0,32),O=(0,l.stringToBytes)(o.get("U")).subarray(0,32),T=o.get("P"),R=o.get("R"),E=(4===y||5===y)&&!1!==o.get("EncryptMetadata");this.encryptMetadata=E;var M,D,j=(0,l.stringToBytes)(u);if(m){if(6===R)try{m=(0,l.utf8StringToString)(m)}catch(t){(0,l.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}M=(0,l.stringToBytes)(m)}if(5!==y)D=prepareKeyData(j,M,x,O,T,R,v,E);else{var L=(0,l.stringToBytes)(o.get("O")).subarray(32,40),N=(0,l.stringToBytes)(o.get("O")).subarray(40,48),U=(0,l.stringToBytes)(o.get("U")).subarray(0,48),H=(0,l.stringToBytes)(o.get("U")).subarray(32,40),W=(0,l.stringToBytes)(o.get("U")).subarray(40,48),q=(0,l.stringToBytes)(o.get("OE")),$=(0,l.stringToBytes)(o.get("UE"));(0,l.stringToBytes)(o.get("Perms"));D=function createEncryptionKey20(t,r,o,l,c,u,h,d,m,g,y,v){if(r){var S=Math.min(127,r.length);r=r.subarray(0,S)}else r=[];var k;return(k=6===t?new w:new C).checkUserPassword(r,d,h)?k.getUserKey(r,m,y):r.length&&k.checkOwnerPassword(r,l,u,o)?k.getOwnerKey(r,c,u,g):null}(R,M,x,L,N,U,O,H,W,q,$)}if(!D&&!m)throw new l.PasswordException("No password given",l.PasswordResponses.NEED_PASSWORD);if(!D&&m){D=prepareKeyData(j,function decodeUserPassword(r,o,l,c){for(var u=new Uint8Array(32),m=0,g=Math.min(32,r.length);m<g;++m)u[m]=r[m];for(var y=0;m<32;)u[m++]=t[y++];var v,S=d(u,0,m),k=c>>3;if(l>=3)for(y=0;y<50;++y)S=d(S,0,S.length);if(l>=3){v=o;var _=new Uint8Array(k);for(y=19;y>=0;y--){for(var C=0;C<k;++C)_[C]=S[C]^y;v=new h(_).encryptBlock(v)}}else v=new h(S.subarray(0,k)).encryptBlock(o);return v}(M,x,R,v),x,O,T,R,v,E)}if(!D)throw new l.PasswordException("Incorrect Password",l.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=D;if(y>=4){var X=o.get("CF");(0,c.isDict)(X)&&(X.suppressEncryption=!0);this.cf=X;this.stmf=o.get("StmF")||r;this.strf=o.get("StrF")||r;this.eff=o.get("EFF")||this.stmf}}_createClass(CipherTransformFactory,[{key:"createCipherTransform",value:function createCipherTransform(t,r){if(4===this.algorithm||5===this.algorithm)return new x(buildCipherConstructor(this.cf,this.stmf,t,r,this.encryptionKey),buildCipherConstructor(this.cf,this.strf,t,r,this.encryptionKey));var o=buildObjectKey(t,r,this.encryptionKey,!1),l=function buildCipherCipherConstructor(){return new h(o)};return new x(l,l)}}]);return CipherTransformFactory}()}();r.CipherTransformFactory=O},(t,r,o)=>{"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.DecryptStream=void 0;var l=o(128);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(DecryptStream,t);var r=_createSuper(DecryptStream);function DecryptStream(t,o,l){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DecryptStream);(c=r.call(this,o)).str=t;c.dict=t.dict;c.decrypt=l;c.nextChunk=null;c.initialized=!1;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(DecryptStream,[{key:"readBlock",value:function 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);for(var o=this.bufferLength,l=t.length,c=this.ensureBuffer(o+l),u=0;u<l;u++)c[o++]=t[u];this.bufferLength=o}else this.eof=!0}}]);return DecryptStream}(l.DecodeStream);r.DecryptStream=c},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XFAFactory=void 0;var l=o(184),c=o(188),u=o(194),h=o(192),d=o(185),m=o(4),g=o(195);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var y=function(){function XFAFactory(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAFactory);try{this.root=(new g.XFAParser).parse(XFAFactory._createDocument(t));var r=new c.Binder(this.root);this.form=r.bind();this.dataHandler=new u.DataHandler(this.root,r.getData());this.form[l.$globalData].template=this.form}catch(t){(0,m.warn)("XFA - an error occurred during parsing and binding: ".concat(t))}}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(XFAFactory,[{key:"isValid",value:function isValid(){return this.root&&this.form}},{key:"_createPages",value:function _createPages(){try{this.pages=this.form[l.$toHTML]();this.dims=this.pages.children.map((function(t){var r=t.attributes.style,o=r.width,l=r.height;return[0,0,parseInt(o),parseInt(l)]}))}catch(t){(0,m.warn)("XFA - an error occurred during layout: ".concat(t))}}},{key:"getBoundingBox",value:function getBoundingBox(t){return this.dims[t]}},{key:"numberPages",get:function get(){this.pages||this._createPages();return this.dims.length}},{key:"setImages",value:function setImages(t){this.form[l.$globalData].images=t}},{key:"setFonts",value:function setFonts(t){this.form[l.$globalData].fontFinder=new h.FontFinder(t);var r,o=[],c=_createForOfIteratorHelper(this.form[l.$globalData].usedTypefaces);try{for(c.s();!(r=c.n()).done;){var u=r.value;u=(0,d.stripQuotes)(u);this.form[l.$globalData].fontFinder.find(u)||o.push(u)}}catch(t){c.e(t)}finally{c.f()}return o.length>0?o:null}},{key:"appendFonts",value:function appendFonts(t,r){this.form[l.$globalData].fontFinder.add(t,r)}},{key:"getPages",value:function getPages(){this.pages||this._createPages();var t=this.pages;this.pages=null;return t}},{key:"serializeData",value:function serializeData(t){return this.dataHandler.serialize(t)}}],[{key:"_createDocument",value:function _createDocument(t){return t["/xdp:xdp"]?Object.values(t).join(""):t["xdp:xdp"]}}]);return XFAFactory}();r.XFAFactory=y},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XmlObject=r.XFAObjectArray=r.XFAObject=r.XFAAttribute=r.StringObject=r.OptionObject=r.Option10=r.Option01=r.IntegerObject=r.ContentObject=r.$uid=r.$toStyle=r.$toString=r.$toHTML=r.$text=r.$tabIndex=r.$setValue=r.$setSetAttributes=r.$setId=r.$searchNode=r.$root=r.$resolvePrototypes=r.$removeChild=r.$pushGlyphs=r.$onText=r.$onChildCheck=r.$onChild=r.$nsAttributes=r.$nodeName=r.$namespaceId=r.$isUsable=r.$isTransparent=r.$isThereMoreWidth=r.$isSplittable=r.$isNsAgnostic=r.$isDescendent=r.$isDataValue=r.$isCDATAXml=r.$isBindable=r.$insertAt=r.$indexOf=r.$ids=r.$hasSettableValue=r.$globalData=r.$getTemplateRoot=r.$getSubformParent=r.$getRealChildrenByNameIt=r.$getParent=r.$getNextPage=r.$getExtra=r.$getDataValue=r.$getContainedChildren=r.$getChildrenByNameIt=r.$getChildrenByName=r.$getChildrenByClass=r.$getChildren=r.$getAvailableSpace=r.$getAttributes=r.$getAttributeIt=r.$flushHTML=r.$finalize=r.$extra=r.$dump=r.$data=r.$content=r.$consumed=r.$clone=r.$cleanup=r.$cleanPage=r.$clean=r.$childrenToHTML=r.$appendChild=r.$addHTML=r.$acceptWhitespace=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(185),u=o(4),h=o(118),d=o(186),m=o(187);function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||t)}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 _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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 _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 _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(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 _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var g=Symbol();r.$acceptWhitespace=g;var y=Symbol();r.$addHTML=y;var v=Symbol();r.$appendChild=v;var S=Symbol();r.$childrenToHTML=S;var k=Symbol();r.$clean=k;var _=Symbol();r.$cleanPage=_;var C=Symbol();r.$cleanup=C;var w=Symbol();r.$clone=w;var x=Symbol();r.$consumed=x;var O=Symbol("content");r.$content=O;var T=Symbol("data");r.$data=T;var R=Symbol();r.$dump=R;var E=Symbol("extra");r.$extra=E;var M=Symbol();r.$finalize=M;var D=Symbol();r.$flushHTML=D;var j=Symbol();r.$getAttributeIt=j;var L=Symbol();r.$getAttributes=L;var N=Symbol();r.$getAvailableSpace=N;var U=Symbol();r.$getChildrenByClass=U;var H=Symbol();r.$getChildrenByName=H;var W=Symbol();r.$getChildrenByNameIt=W;var q=Symbol();r.$getDataValue=q;var $=Symbol();r.$getExtra=$;var X=Symbol();r.$getRealChildrenByNameIt=X;var z=Symbol();r.$getChildren=z;var G=Symbol();r.$getContainedChildren=G;var V=Symbol();r.$getNextPage=V;var Y=Symbol();r.$getSubformParent=Y;var K=Symbol();r.$getParent=K;var J=Symbol();r.$getTemplateRoot=J;var Q=Symbol();r.$globalData=Q;var Z=Symbol();r.$hasSettableValue=Z;var ee=Symbol();r.$ids=ee;var te=Symbol();r.$indexOf=te;var re=Symbol();r.$insertAt=re;var ae=Symbol();r.$isCDATAXml=ae;var ne=Symbol();r.$isBindable=ne;var ie=Symbol();r.$isDataValue=ie;var oe=Symbol();r.$isDescendent=oe;var se=Symbol();r.$isNsAgnostic=se;var le=Symbol();r.$isSplittable=le;var ce=Symbol();r.$isThereMoreWidth=ce;var ue=Symbol();r.$isTransparent=ue;var fe=Symbol();r.$isUsable=fe;var he=Symbol(),de=Symbol("namespaceId");r.$namespaceId=de;var pe=Symbol("nodeName");r.$nodeName=pe;var me=Symbol();r.$nsAttributes=me;var ge=Symbol();r.$onChild=ge;var ye=Symbol();r.$onChildCheck=ye;var ve=Symbol();r.$onText=ve;var be=Symbol();r.$pushGlyphs=be;var Se=Symbol();r.$removeChild=Se;var ke=Symbol("root");r.$root=ke;var _e=Symbol();r.$resolvePrototypes=_e;var Ce=Symbol();r.$searchNode=Ce;var we=Symbol();r.$setId=we;var Ae=Symbol();r.$setSetAttributes=Ae;var xe=Symbol();r.$setValue=xe;var Oe=Symbol();r.$tabIndex=Oe;var Pe=Symbol();r.$text=Pe;var Te=Symbol();r.$toHTML=Te;var Ie=Symbol();r.$toString=Ie;var Fe=Symbol();r.$toStyle=Fe;var Re=Symbol("uid");r.$uid=Re;var Ee=Symbol(),Be=Symbol(),Me=Symbol(),De=Symbol("_children"),je=Symbol(),Le=Symbol(),Ne=Symbol(),Ue=Symbol(),He=Symbol(),We=Symbol(),qe=Symbol(),$e=Symbol(),Xe=Symbol(),ze=Symbol("parent"),Ge=Symbol(),Ve=Symbol(),Ye=Symbol(),Ke=0,Je=d.NamespaceIds.datasets.id,Qe=function(){function XFAObject(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,XFAObject);this[de]=t;this[pe]=r;this[qe]=o;this[ze]=null;this[De]=[];this[Re]="".concat(r).concat(Ke++);this[Q]=null}_createClass(XFAObject,[{key:ge,value:function value(t){if(!this[qe]||!this[ye](t))return!1;var r=t[pe],o=this[r];if(!(o instanceof Ze)){null!==o&&this[Se](o);this[r]=t;this[v](t);return!0}if(o.push(t)){this[v](t);return!0}var l="";this.id?l=" (id: ".concat(this.id,")"):this.name&&(l=" (name: ".concat(this.name," ").concat(this.h.value,")"));(0,u.warn)('XFA - node "'.concat(this[pe],'"').concat(l,' has already enough "').concat(r,'"!'));return!1}},{key:ye,value:function value(t){return this.hasOwnProperty(t[pe])&&t[de]===this[de]}},{key:se,value:function value(){return!1}},{key:g,value:function value(){return!1}},{key:ae,value:function value(){return!1}},{key:ne,value:function value(){return!1}},{key:we,value:function value(t){this.id&&this[de]===d.NamespaceIds.template.id&&t.set(this.id,this)}},{key:J,value:function value(){return this[Q].template}},{key:le,value:function value(){return!1}},{key:ce,value:function value(){return!1}},{key:v,value:function value(t){t[ze]=this;this[De].push(t)}},{key:Se,value:function value(t){var r=this[De].indexOf(t);this[De].splice(r,1)}},{key:Z,value:function value(){return this.hasOwnProperty("value")}},{key:xe,value:function value(t){}},{key:ve,value:function value(t){}},{key:M,value:function value(){}},{key:k,value:function value(t){delete this[qe];if(this[C]){t.clean(this[C]);delete this[C]}}},{key:te,value:function value(t){return this[De].indexOf(t)}},{key:re,value:function value(t,r){r[ze]=this;this[De].splice(t,0,r)}},{key:ue,value:function value(){return!this.name}},{key:he,value:function value(){return""}},{key:Pe,value:function value(){return 0===this[De].length?this[O]:this[De].map((function(t){return t[Pe]()})).join("")}},{key:Me,get:function get(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,o=t._attributes=new Set,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(l.s();!(r=l.n()).done;){var c=r.value;if(null===this[c]||this[c]instanceof XFAObject||this[c]instanceof Ze)break;o.add(c)}}catch(t){l.e(t)}finally{l.f()}}return(0,u.shadow)(this,Me,t._attributes)}},{key:oe,value:function value(t){for(var r=this;r;){if(r===t)return!0;r=r[K]()}return!1}},{key:K,value:function value(){return this[ze]}},{key:Y,value:function value(){return this[K]()}},{key:z,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[t]:this[De]}},{key:R,value:function value(){var t=Object.create(null);this[O]&&(t.$content=this[O]);var r,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var l=r.value,value=this[l];null!==value&&(value instanceof XFAObject?t[l]=value[R]():value instanceof Ze?value.isEmpty()||(t[l]=value.dump()):t[l]=value)}}catch(t){o.e(t)}finally{o.f()}return t}},{key:Fe,value:function value(){return null}},{key:Te,value:function value(){return c.HTMLResult.EMPTY}},{key:G,value:l.default.mark((function value(){var t,r,o;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:t=_createForOfIteratorHelper(this[z]());l.prev=1;t.s();case 3:if((r=t.n()).done){l.next=9;break}o=r.value;l.next=7;return o;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11;l.t0=l.catch(1);t.e(l.t0);case 14:l.prev=14;t.f();return l.finish(14);case 17:case"end":return l.stop()}}),value,this,[[1,11,14,17]])}))},{key:Ue,value:l.default.mark((function value(t,r){var o,c,u,h,d;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:o=_createForOfIteratorHelper(this[G]());l.prev=1;o.s();case 3:if((c=o.n()).done){l.next=13;break}u=c.value;if(t&&r!==t.has(u[pe])){l.next=11;break}h=this[N]();(d=u[Te](h)).success||(this[E].failingNode=u);l.next=11;return d;case 11:l.next=3;break;case 13:l.next=18;break;case 15:l.prev=15;l.t0=l.catch(1);o.e(l.t0);case 18:l.prev=18;o.f();return l.finish(18);case 21:case"end":return l.stop()}}),value,this,[[1,15,18,21]])}))},{key:D,value:function value(){return null}},{key:y,value:function value(t,r){this[E].children.push(t)}},{key:N,value:function value(){}},{key:S,value:function value(t){var r=t.filter,o=void 0===r?null:r,l=t.include,u=void 0===l||l;if(this[E].generator){var h=this[N](),d=this[E].failingNode[Te](h);if(!d.success)return d;d.html&&this[y](d.html,d.bbox);delete this[E].failingNode}else this[E].generator=this[Ue](o,u);for(;;){var m=this[E].generator.next();if(m.done)break;var g=m.value;if(!g.success)return g;g.html&&this[y](g.html,g.bbox)}this[E].generator=null;return c.HTMLResult.EMPTY}},{key:Ae,value:function value(t){this[Ve]=new Set(Object.keys(t))}},{key:We,value:function value(t){var r=this[Me],o=this[Ve];return _toConsumableArray(t).filter((function(t){return r.has(t)&&!o.has(t)}))}},{key:_e,value:function value(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,l=_createForOfIteratorHelper(this[De]);try{for(l.s();!(r=l.n()).done;){var c=r.value;c[Ge](t,o)}}catch(t){l.e(t)}finally{l.f()}}},{key:Ge,value:function value(t,r){var o=this[He](t,r);o?this[Ee](o,t,r):this[_e](t,r)}},{key:He,value:function value(t,r){var o=this.use,l=this.usehref;if(!o&&!l)return null;var c=null,h=null,d=null,g=o;if(l){g=l;l.startsWith("#som(")&&l.endsWith(")")?h=l.slice("#som(".length,l.length-1):l.startsWith(".#som(")&&l.endsWith(")")?h=l.slice(".#som(".length,l.length-1):l.startsWith("#")?d=l.slice(1):l.startsWith(".#")&&(d=l.slice(2))}else o.startsWith("#")?d=o.slice(1):h=o;this.use=this.usehref="";d?c=t.get(d):(c=(0,m.searchNode)(t.get(ke),this,h,!0,!1))&&(c=c[0]);if(!c){(0,u.warn)("XFA - Invalid prototype reference: ".concat(g,"."));return null}if(c[pe]!==this[pe]){(0,u.warn)("XFA - Incompatible prototype: ".concat(c[pe]," !== ").concat(this[pe],"."));return null}if(r.has(c)){(0,u.warn)("XFA - Cycle detected in prototypes use.");return null}r.add(c);var y=c[He](t,r);y&&c[Ee](y,t,r);c[_e](t,r);r.delete(c);return c}},{key:Ee,value:function value(t,r,o){if(o.has(t))(0,u.warn)("XFA - Cycle detected in prototypes use.");else{!this[O]&&t[O]&&(this[O]=t[O]);new Set(o).add(t);var l,c=_createForOfIteratorHelper(this[We](t[Ve]));try{for(c.s();!(l=c.n()).done;){var h=l.value;this[h]=t[h];this[Ve]&&this[Ve].add(h)}}catch(t){c.e(t)}finally{c.f()}var d,m=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(m.s();!(d=m.n()).done;){var g=d.value;if(!this[Me].has(g)){var y=this[g],v=t[g];if(y instanceof Ze){var S,k=_createForOfIteratorHelper(y[De]);try{for(k.s();!(S=k.n()).done;){S.value[Ge](r,o)}}catch(t){k.e(t)}finally{k.f()}for(var _=y[De].length,C=v[De].length;_<C;_++){var x=t[De][_][w]();if(!y.push(x))break;x[ze]=this;this[De].push(x);x[Ge](r,o)}}else if(null===y){if(null!==v){var T=v[w]();T[ze]=this;this[g]=T;this[De].push(T);T[Ge](r,o)}}else{y[_e](r,o);v&&y[Ee](v,r,o)}}}}catch(t){m.e(t)}finally{m.f()}}}},{key:w,value:function value(){var t,r=Object.create(Object.getPrototypeOf(this)),o=_createForOfIteratorHelper(Object.getOwnPropertySymbols(this));try{for(o.s();!(t=o.n()).done;){var l=t.value;try{r[l]=this[l]}catch(t){(0,u.shadow)(r,l,this[l])}}}catch(t){o.e(t)}finally{o.f()}r[Re]="".concat(r[pe]).concat(Ke++);r[De]=[];var c,h=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(h.s();!(c=h.n()).done;){var d=c.value;if(this[Me].has(d))r[d]=XFAObject[je](this[d]);else{var m=this[d];r[d]=m instanceof Ze?new Ze(m[$e]):null}}}catch(t){h.e(t)}finally{h.f()}var g,y=_createForOfIteratorHelper(this[De]);try{for(y.s();!(g=y.n()).done;){var v=g.value,S=v[pe],k=v[w]();r[De].push(k);k[ze]=r;null===r[S]?r[S]=k:r[S][De].push(k)}}catch(t){y.e(t)}finally{y.f()}return r}},{key:z,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[De].filter((function(r){return r[pe]===t})):this[De]}},{key:U,value:function value(t){return this[t]}},{key:H,value:function value(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[W](t,r,o))}},{key:W,value:l.default.mark((function value(t,r){var o,c,u,h,d=arguments;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:o=!(d.length>2&&void 0!==d[2])||d[2];if("parent"!==t){l.next=5;break}l.next=4;return this[ze];case 4:return l.abrupt("return");case 5:c=_createForOfIteratorHelper(this[De]);l.prev=6;c.s();case 8:if((u=c.n()).done){l.next=20;break}if((h=u.value)[pe]!==t){l.next=13;break}l.next=13;return h;case 13:if(h.name!==t){l.next=16;break}l.next=16;return h;case 16:if(!r&&!h[ue]()){l.next=18;break}return l.delegateYield(h[W](t,r,!1),"t0",18);case 18:l.next=8;break;case 20:l.next=25;break;case 22:l.prev=22;l.t1=l.catch(6);c.e(l.t1);case 25:l.prev=25;c.f();return l.finish(25);case 28:if(!o||!this[Me].has(t)){l.next=31;break}l.next=31;return new et(this,t,this[t]);case 31:case"end":return l.stop()}}),value,this,[[6,22,25,28]])}))}],[{key:je,value:function value(t){return Array.isArray(t)?t.map((function(t){return XFAObject[je](t)})):"object"===_typeof(t)&&null!==t?Object.assign({},t):t}}]);return XFAObject}();r.XFAObject=Qe;var Ze=function(){function XFAObjectArray(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;_classCallCheck(this,XFAObjectArray);this[$e]=t;this[De]=[]}_createClass(XFAObjectArray,[{key:"push",value:function push(t){if(this[De].length<=this[$e]){this[De].push(t);return!0}(0,u.warn)('XFA - node "'.concat(t[pe],'" accepts no more than ').concat(this[$e]," children"));return!1}},{key:"isEmpty",value:function isEmpty(){return 0===this[De].length}},{key:"dump",value:function dump(){return 1===this[De].length?this[De][0][R]():this[De].map((function(t){return t[R]()}))}},{key:w,value:function value(){var t=new XFAObjectArray(this[$e]);t[De]=this[De].map((function(t){return t[w]()}));return t}},{key:"children",get:function get(){return this[De]}},{key:"clear",value:function clear(){this[De].length=0}}]);return XFAObjectArray}();r.XFAObjectArray=Ze;var et=function(){function XFAAttribute(t,r,o){_classCallCheck(this,XFAAttribute);this[ze]=t;this[pe]=r;this[O]=o;this[x]=!1;this[Re]="attribute".concat(Ke++)}_createClass(XFAAttribute,[{key:K,value:function value(){return this[ze]}},{key:ie,value:function value(){return!0}},{key:q,value:function value(){return this[O].trim()}},{key:xe,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){t=t.value||"";this[O]=t.toString()}))},{key:Pe,value:function value(){return this[O]}},{key:oe,value:function value(t){return this[ze]===t||this[ze][oe](t)}}]);return XFAAttribute}();r.XFAAttribute=et;var tt=function(t){_inherits(XmlObject,t);var r=_createSuper(XmlObject);function XmlObject(t,o){var l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,XmlObject);(l=r.call(this,t,o))[O]="";l[Le]=null;if("#text"!==o){var u=new Map;l[Be]=u;for(var h=0,d=Object.entries(c);h<d.length;h++){var m=_slicedToArray(d[h],2),g=m[0],y=m[1];u.set(g,new et(_assertThisInitialized(l),g,y))}if(c.hasOwnProperty(me)){var v=c[me].xfa.dataNode;void 0!==v&&("dataGroup"===v?l[Le]=!1:"dataValue"===v&&(l[Le]=!0))}}l[x]=!1;return l}_createClass(XmlObject,[{key:Ie,value:function value(t){var r=this[pe];if("#text"!==r){var o=this[de]===Je?"xfa:":"";t.push("<".concat(o).concat(r));var l,c=_createForOfIteratorHelper(this[Be].entries());try{for(c.s();!(l=c.n()).done;){var u=_slicedToArray(l.value,2),d=u[0],m=u[1];t.push(" ".concat(d,'="').concat((0,h.encodeToXmlString)(m[O]),'"'))}}catch(t){c.e(t)}finally{c.f()}null!==this[Le]&&(this[Le]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"'));if(this[O]||0!==this[De].length){t.push(">");if(this[O])"string"==typeof this[O]?t.push((0,h.encodeToXmlString)(this[O])):this[O][Ie](t);else{var g,y=_createForOfIteratorHelper(this[De]);try{for(y.s();!(g=y.n()).done;){g.value[Ie](t)}}catch(t){y.e(t)}finally{y.f()}}t.push("</".concat(o).concat(r,">"))}else t.push("/>")}else t.push((0,h.encodeToXmlString)(this[O]))}},{key:ge,value:function value(t){if(this[O]){var r=new XmlObject(this[de],"#text");this[v](r);r[O]=this[O];this[O]=""}this[v](t);return!0}},{key:ve,value:function value(t){this[O]+=t}},{key:M,value:function value(){if(this[O]&&this[De].length>0){var t=new XmlObject(this[de],"#text");this[v](t);t[O]=this[O];delete this[O]}}},{key:Te,value:function value(){return"#text"===this[pe]?c.HTMLResult.success({name:"#text",value:this[O]}):c.HTMLResult.EMPTY}},{key:z,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[De].filter((function(r){return r[pe]===t})):this[De]}},{key:L,value:function value(){return this[Be]}},{key:U,value:function value(t){var value=this[Be].get(t);return void 0!==value?value:this[z](t)}},{key:W,value:l.default.mark((function value(t,r){var value,o,c,u;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:value=this[Be].get(t);if(!value){l.next=4;break}l.next=4;return value;case 4:o=_createForOfIteratorHelper(this[De]);l.prev=5;o.s();case 7:if((c=o.n()).done){l.next=16;break}if((u=c.value)[pe]!==t){l.next=12;break}l.next=12;return u;case 12:if(!r){l.next=14;break}return l.delegateYield(u[W](t,r),"t0",14);case 14:l.next=7;break;case 16:l.next=21;break;case 18:l.prev=18;l.t1=l.catch(5);o.e(l.t1);case 21:l.prev=21;o.f();return l.finish(21);case 24:case"end":return l.stop()}}),value,this,[[5,18,21,24]])}))},{key:j,value:l.default.mark((function value(t,r){var value,o,c,u;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:value=this[Be].get(t);if(!value||r&&value[x]){l.next=4;break}l.next=4;return value;case 4:o=_createForOfIteratorHelper(this[De]);l.prev=5;o.s();case 7:if((c=o.n()).done){l.next=12;break}u=c.value;return l.delegateYield(u[j](t,r),"t0",10);case 10:l.next=7;break;case 12:l.next=17;break;case 14:l.prev=14;l.t1=l.catch(5);o.e(l.t1);case 17:l.prev=17;o.f();return l.finish(17);case 20:case"end":return l.stop()}}),value,this,[[5,14,17,20]])}))},{key:X,value:l.default.mark((function value(t,r,o){var c,u,h;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:c=_createForOfIteratorHelper(this[De]);l.prev=1;c.s();case 3:if((u=c.n()).done){l.next=12;break}if((h=u.value)[pe]!==t||o&&h[x]){l.next=8;break}l.next=8;return h;case 8:if(!r){l.next=10;break}return l.delegateYield(h[X](t,r,o),"t0",10);case 10:l.next=3;break;case 12:l.next=17;break;case 14:l.prev=14;l.t1=l.catch(1);c.e(l.t1);case 17:l.prev=17;c.f();return l.finish(17);case 20:case"end":return l.stop()}}),value,this,[[1,14,17,20]])}))},{key:ie,value:function value(){return null===this[Le]?0===this[De].length||this[De][0][de]===d.NamespaceIds.xhtml.id:this[Le]}},{key:q,value:function value(){return null===this[Le]?0===this[De].length?this[O].trim():this[De][0][de]===d.NamespaceIds.xhtml.id?this[De][0][Pe]().trim():null:this[O].trim()}},{key:xe,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){t=t.value||"";this[O]=t.toString()}))},{key:R,value:function value(){var t=Object.create(null);this[O]&&(t.$content=this[O]);t.$name=this[pe];t.children=[];var r,o=_createForOfIteratorHelper(this[De]);try{for(o.s();!(r=o.n()).done;){var l=r.value;t.children.push(l[R]())}}catch(t){o.e(t)}finally{o.f()}t.attributes=Object.create(null);var c,u=_createForOfIteratorHelper(this[Be]);try{for(u.s();!(c=u.n()).done;){var h=_slicedToArray(c.value,2),d=h[0],m=h[1];t.attributes[d]=m[O]}}catch(t){u.e(t)}finally{u.f()}return t}}]);return XmlObject}(Qe);r.XmlObject=tt;var rt=function(t){_inherits(ContentObject,t);var r=_createSuper(ContentObject);function ContentObject(t,o){var l;_classCallCheck(this,ContentObject);(l=r.call(this,t,o))[O]="";return l}_createClass(ContentObject,[{key:ve,value:function value(t){this[O]+=t}},{key:M,value:function value(){}}]);return ContentObject}(Qe);r.ContentObject=rt;var at=function(t){_inherits(OptionObject,t);var r=_createSuper(OptionObject);function OptionObject(t,o,l){var c;_classCallCheck(this,OptionObject);(c=r.call(this,t,o))[Xe]=l;return c}_createClass(OptionObject,[{key:M,value:function value(){var t=this;this[O]=(0,c.getKeyword)({data:this[O],defaultValue:this[Xe][0],validate:function validate(r){return t[Xe].includes(r)}})}},{key:k,value:function value(t){_get(_getPrototypeOf(OptionObject.prototype),k,this).call(this,t);delete this[Xe]}}]);return OptionObject}(rt);r.OptionObject=at;var nt=function(t){_inherits(StringObject,t);var r=_createSuper(StringObject);function StringObject(){_classCallCheck(this,StringObject);return r.apply(this,arguments)}_createClass(StringObject,[{key:M,value:function value(){this[O]=this[O].trim()}}]);return StringObject}(rt);r.StringObject=nt;var it=function(t){_inherits(IntegerObject,t);var r=_createSuper(IntegerObject);function IntegerObject(t,o,l,c){var u;_classCallCheck(this,IntegerObject);(u=r.call(this,t,o))[Ne]=l;u[Ye]=c;return u}_createClass(IntegerObject,[{key:M,value:function value(){this[O]=(0,c.getInteger)({data:this[O],defaultValue:this[Ne],validate:this[Ye]})}},{key:k,value:function value(t){_get(_getPrototypeOf(IntegerObject.prototype),k,this).call(this,t);delete this[Ne];delete this[Ye]}}]);return IntegerObject}(rt);r.IntegerObject=it;var ot=function(t){_inherits(Option01,t);var r=_createSuper(Option01);function Option01(t,o){_classCallCheck(this,Option01);return r.call(this,t,o,0,(function(t){return 1===t}))}return Option01}(it);r.Option01=ot;var st=function(t){_inherits(Option10,t);var r=_createSuper(Option10);function Option10(t,o){_classCallCheck(this,Option10);return r.call(this,t,o,1,(function(t){return 0===t}))}return Option10}(it);r.Option10=st},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getBBox=function getBBox(t){var r=-1;if(!t)return{x:r,y:r,width:r,height:r};var o=t.trim().split(/\s*,\s*/).map((function(t){return getMeasurement(t,"-1")}));if(o.length<4||o[2]<0||o[3]<0)return{x:r,y:r,width:r,height:r};var l=_slicedToArray(o,4),c=l[0],u=l[1],h=l[2],d=l[3];return{x:c,y:u,width:h,height:d}};r.getColor=function getColor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],o=_slicedToArray(r,3),l=o[0],c=o[1],u=o[2];if(!t)return{r:l,g:c,b:u};var h=t.trim().split(/\s*,\s*/).map((function(t){return Math.min(Math.max(0,parseInt(t.trim(),10)),255)})).map((function(t){return isNaN(t)?0:t}));if(h.length<3)return{r:l,g:c,b:u};var d=_slicedToArray(h,3);l=d[0];c=d[1];u=d[2];return{r:l,g:c,b:u}};r.getFloat=function getFloat(t){var r=t.data,o=t.defaultValue,l=t.validate;if(!r)return o;r=r.trim();var c=parseFloat(r);if(!isNaN(c)&&l(c))return c;return o};r.getInteger=function getInteger(t){var r=t.data,o=t.defaultValue,l=t.validate;if(!r)return o;r=r.trim();var c=parseInt(r,10);if(!isNaN(c)&&l(c))return c;return o};r.getKeyword=getKeyword;r.getMeasurement=getMeasurement;r.getRatio=function getRatio(t){if(!t)return{num:1,den:1};var r=t.trim().split(/\s*:\s*/).map((function(t){return parseFloat(t)})).filter((function(t){return!isNaN(t)}));1===r.length&&r.push(1);if(0===r.length)return{num:1,den:1};var o=_slicedToArray(r,2),l=o[0],c=o[1];return{num:l,den:c}};r.getRelevant=function getRelevant(t){if(!t)return[];return t.trim().split(/\s+/).map((function(t){return{excluded:"-"===t[0],viewname:t.substring(1)}}))};r.getStringOption=function getStringOption(t,r){return getKeyword({data:t,defaultValue:r[0],validate:function validate(t){return r.includes(t)}})};r.stripQuotes=function stripQuotes(t){if(t.startsWith("'")||t.startsWith('"'))return t.slice(1,t.length-1);return t};r.HTMLResult=void 0;var l=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))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 o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var c={pt:function pt(t){return t},cm:function cm(t){return t/2.54*72},mm:function mm(t){return t/25.4*72},in:function _in(t){return 72*t},px:function px(t){return t}},u=/([+-]?[0-9]+\.?[0-9]*)(.*)/;function getKeyword(t){var r=t.data,o=t.defaultValue,l=t.validate;return r&&l(r=r.trim())?r:o}function getMeasurement(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";r=r||"0";if(!t)return getMeasurement(r);var o=t.trim().match(u);if(!o)return getMeasurement(r);var l=_slicedToArray(o,3),h=l[1],d=l[2],m=parseFloat(h);if(isNaN(m))return getMeasurement(r);if(0===m)return 0;var g=c[d];return g?g(m):m}var h=function(){function HTMLResult(t,r,o,l){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,HTMLResult);this.success=t;this.html=r;this.bbox=o;this.breakNode=l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(HTMLResult,[{key:"isBreak",value:function isBreak(){return!!this.breakNode}}],[{key:"FAILURE",get:function get(){return(0,l.shadow)(this,"FAILURE",new HTMLResult(!1,null,null,null))}},{key:"EMPTY",get:function get(){return(0,l.shadow)(this,"EMPTY",new HTMLResult(!0,null,null,null))}},{key:"breakNode",value:function breakNode(t){return new HTMLResult(!1,null,null,t)}},{key:"success",value:function success(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new HTMLResult(!0,t,r,null)}}]);return HTMLResult}();r.HTMLResult=h},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceIds=r.$buildXFAObject=void 0;var o=Symbol();r.$buildXFAObject=o;r.NamespaceIds={config:{id:0,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function check(t){return"http://ns.adobe.com/xdp/pdf/"===t}},signature:{id:6,check:function check(t){return"http://www.w3.org/2000/09/xmldsig#"===t}},sourceSet:{id:7,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function check(t){return"http://www.w3.org/1999/XSL/Transform"===t}},template:{id:9,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function check(t){return"http://ns.adobe.com/xdp/"===t}},xfdf:{id:12,check:function check(t){return"http://ns.adobe.com/xfdf/"===t}},xhtml:{id:13,check:function check(t){return"http://www.w3.org/1999/xhtml"===t}},xmpmeta:{id:14,check:function check(t){return"http://ns.adobe.com/xmpmeta/"===t}}}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.createDataNode=function createDataNode(t,r,o){var u=parseExpression(o);if(!u)return null;if(u.some((function(t){return t.operator===m})))return null;var h=S.get(u[0].name),y=0;if(h){t=h(t,r);y=1}else t=r||t;for(var v=u.length;y<v;y++){var k=u[y],_=k.name,C=k.operator,w=k.index;if(!isFinite(w)){u[y].index=0;return createNodes(t,u.slice(y))}var x=void 0;switch(C){case d:x=t[l.$getChildrenByName](_,!1);break;case m:x=t[l.$getChildrenByName](_,!0);break;case g:x=(x=t[l.$getChildrenByClass](_))instanceof l.XFAObjectArray?x.children:[x]}if(0===x.length)return createNodes(t,u.slice(y));if(!(w<x.length)){u[y].index=w-x.length;return createNodes(t,u.slice(y))}var O=x[w];if(!(O instanceof l.XFAObject)){(0,c.warn)("XFA - Cannot create a node.");return null}t=O}return null};r.searchNode=function searchNode(t,r,o){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],h=parseExpression(o,c);if(!h)return null;var y,v=S.get(h[0].name),_=0;if(v){y=!0;t=[v(t,r)];_=1}else{y=null===r;t=[r||t]}for(var C=function _loop(o){var c,v=h[_],S=v.name,C=v.cacheName,w=v.operator,x=v.index,O=[],T=_createForOfIteratorHelper(t);try{for(T.s();!(c=T.n()).done;){var R=c.value;if(R instanceof l.XFAObject){var E=void 0,M=void 0;if(u){if(!(M=k.get(R))){M=new Map;k.set(R,M)}E=M.get(C)}if(!E){switch(w){case d:E=R[l.$getChildrenByName](S,!1);break;case m:E=R[l.$getChildrenByName](S,!0);break;case g:E=(E=R[l.$getChildrenByClass](S))instanceof l.XFAObjectArray?E.children:[E]}u&&M.set(C,E)}E.length>0&&O.push(E)}}}catch(t){T.e(t)}finally{T.f()}if(0===O.length&&!y&&0===_){var D=r[l.$getParent]();if(!(r=D))return{v:null};_=-1;t=[r];return"continue"}t=isFinite(x)?O.filter((function(t){return x<t.length})).map((function(t){return t[x]})):O.reduce((function(t,r){return t.concat(r)}),[])},w=h.length;_<w;_++){var x=C(w);if("continue"!==x&&"object"===_typeof(x))return x.v}if(0===t.length)return null;return t};var l=o(184),c=o(4);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var u=/^[^.[]+/,h=/^[^\]]+/,d=0,m=1,g=2,y=3,v=4,S=new Map([["$data",function(t,r){return t.datasets.data}],["$template",function(t,r){return t.template}],["$connectionSet",function(t,r){return t.connectionSet}],["$form",function(t,r){return t.form}],["$layout",function(t,r){return t.layout}],["$host",function(t,r){return t.host}],["$dataWindow",function(t,r){return t.dataWindow}],["$event",function(t,r){return t.event}],["!",function(t,r){return t.datasets}],["$xfa",function(t,r){return t}],["xfa",function(t,r){return t}],["$",function(t,r){return r}]]),k=new WeakMap;function parseIndex(t){return"*"===(t=t.trim())?1/0:parseInt(t,10)||0}function parseExpression(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=t.match(u);if(!l)return null;for(var S=l,k=_slicedToArray(S,1),_=k[0],C=[{name:_,cacheName:"."+_,index:0,js:null,formCalc:null,operator:d}],w=_.length;w<t.length;){var x=w,O=t.charAt(w++);if("["!==O){var T=void 0;switch(t.charAt(w)){case".":if(!r)return null;w++;T=m;break;case"#":w++;T=g;break;case"[":if(o){(0,c.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}T=y;break;case"(":if(o){(0,c.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}T=v;break;default:T=d}if(!(l=t.slice(w).match(u)))break;var R=l,E=_slicedToArray(R,1);w+=(_=E[0]).length;C.push({name:_,cacheName:t.slice(x,w),operator:T,index:0,js:null,formCalc:null})}else{if(!(l=t.slice(w).match(h))){(0,c.warn)("XFA - Invalid index in SOM expression");return null}C[C.length-1].index=parseIndex(l[0]);w+=l[0].length+1}}return C}function createNodes(t,r){var o,c=null,u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){for(var h=o.value,d=h.name,m=h.index,g=0,y=isFinite(m)?m:0;g<=y;g++){c=new l.XmlObject(t[l.$namespaceId],d);t[l.$appendChild](c)}t=c}}catch(t){u.e(t)}finally{u.f()}return c}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Binder=void 0;var l=o(184),c=o(189),u=o(187),h=o(186),d=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function createText(t){var r=new c.Text({});r[l.$content]=t;return r}var m=function(){function Binder(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Binder);this.root=t;this.datasets=t.datasets;t.datasets&&t.datasets.data?this.data=t.datasets.data:this.data=new l.XmlObject(h.NamespaceIds.datasets.id,"data");this.emptyMerge=0===this.data[l.$getChildren]().length;this.root.form=this.form=t.template[l.$clone]()}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Binder,[{key:"_isConsumeData",value:function _isConsumeData(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function _isMatchTemplate(){return!this._isConsumeData()}},{key:"bind",value:function bind(){this._bindElement(this.form,this.data);return this.form}},{key:"getData",value:function getData(){return this.data}},{key:"_bindValue",value:function _bindValue(t,r,o){t[l.$data]=r;if(t[l.$hasSettableValue]())if(r[l.$isDataValue]()){var u=r[l.$getDataValue]();t[l.$setValue](createText(u))}else if(t instanceof c.Field&&t.ui&&t.ui.choiceList&&"multiSelect"===t.ui.choiceList.open){var h=r[l.$getChildren]().map((function(t){return t[l.$content].trim()})).join("\n");t[l.$setValue](createText(h))}else this._isConsumeData()&&(0,d.warn)("XFA - Nodes haven't the same type.");else!r[l.$isDataValue]()||this._isMatchTemplate()?this._bindElement(t,r):(0,d.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function _findDataByNameToConsume(t,r,o,c){if(!t)return null;for(var u,d,m=0;m<3;m++){u=o[l.$getRealChildrenByNameIt](t,!1,!0);for(;d=u.next().value;)if(r===d[l.$isDataValue]())return d;if(o[l.$namespaceId]===h.NamespaceIds.datasets.id&&"data"===o[l.$nodeName])break;o=o[l.$getParent]()}return c&&((d=(u=this.data[l.$getRealChildrenByNameIt](t,!0,!1)).next().value)||(d=(u=this.data[l.$getAttributeIt](t,!0)).next().value)&&d[l.$isDataValue]())?d:null}},{key:"_setProperties",value:function _setProperties(t,r){if(t.hasOwnProperty("setProperty")){var o,h=_createForOfIteratorHelper(t.setProperty.children);try{for(h.s();!(o=h.n()).done;){var m=o.value,g=m.ref,y=m.target;if(!m.connection&&g){var v=(0,u.searchNode)(this.root,r,g,!1,!1);if(v){var S=_slicedToArray(v,1)[0];if(S[l.$isDescendent](this.data)){var k=(0,u.searchNode)(this.root,t,y,!1,!1);if(k){var _=_slicedToArray(k,1)[0];if(_[l.$isDescendent](t)){var C=_[l.$getParent]();if(_ instanceof c.SetProperty||C instanceof c.SetProperty)(0,d.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(_ instanceof c.BindItems||C instanceof c.BindItems)(0,d.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var w=S[l.$text](),x=_[l.$nodeName];if(_ instanceof l.XFAAttribute){var O=Object.create(null);O[x]=w;var T=Reflect.construct(Object.getPrototypeOf(C).constructor,[O]);C[x]=T[x]}else if(_.hasOwnProperty(l.$content)){_[l.$data]=S;_[l.$content]=w;_[l.$finalize]()}else(0,d.warn)("XFA - Invalid node to use in setProperty")}}else(0,d.warn)("XFA - Invalid target: must be a property or subproperty.")}else(0,d.warn)("XFA - Invalid target: ".concat(y,"."))}else(0,d.warn)("XFA - Invalid node: must be a data node.")}else(0,d.warn)("XFA - Invalid reference: ".concat(g,"."))}}}catch(t){h.e(t)}finally{h.f()}}}},{key:"_bindItems",value:function _bindItems(t,r){if(t.hasOwnProperty("items")&&t.hasOwnProperty("bindItems")&&!t.bindItems.isEmpty()){var o,h=_createForOfIteratorHelper(t.items.children);try{for(h.s();!(o=h.n()).done;){var m=o.value;t[l.$removeChild](m)}}catch(t){h.e(t)}finally{h.f()}t.items.clear();var g=new c.Items({}),y=new c.Items({});t[l.$appendChild](g);t.items.push(g);t[l.$appendChild](y);t.items.push(y);var v,S=_createForOfIteratorHelper(t.bindItems.children);try{for(S.s();!(v=S.n()).done;){var k=v.value,_=k.ref,C=k.labelRef,w=k.valueRef;if(!k.connection&&_){var x=(0,u.searchNode)(this.root,r,_,!1,!1);if(x){var O,T=_createForOfIteratorHelper(x);try{for(T.s();!(O=T.n()).done;){var R=O.value;if(R[l.$isDescendent](this.datasets)){var E=(0,u.searchNode)(this.root,R,C,!0,!1);if(E){var M=_slicedToArray(E,1)[0];if(M[l.$isDescendent](this.datasets)){var D=(0,u.searchNode)(this.root,R,w,!0,!1);if(D){var j=_slicedToArray(D,1)[0];if(j[l.$isDescendent](this.datasets)){var L=createText(M[l.$text]()),N=createText(j[l.$text]());g[l.$appendChild](L);g.text.push(L);y[l.$appendChild](N);y.text.push(N)}else(0,d.warn)("XFA - Invalid value: must be a datasets child.")}else(0,d.warn)("XFA - Invalid value: ".concat(w,"."))}else(0,d.warn)("XFA - Invalid label: must be a datasets child.")}else(0,d.warn)("XFA - Invalid label: ".concat(C,"."))}else(0,d.warn)("XFA - Invalid ref (".concat(_,"): must be a datasets child."))}}catch(t){T.e(t)}finally{T.f()}}else(0,d.warn)("XFA - Invalid reference: ".concat(_,"."))}}}catch(t){S.e(t)}finally{S.f()}}}},{key:"_bindOccurrences",value:function _bindOccurrences(t,r,o){var c;r.length>1&&(c=t[l.$clone]());this._bindValue(t,r[0],o);this._setProperties(t,r[0]);this._bindItems(t,r[0]);if(1!==r.length)for(var u=t[l.$getParent](),h=t[l.$nodeName],d=u[l.$indexOf](t),m=1,g=r.length;m<g;m++){var y=r[m],v=c[l.$clone]();v.occur.min=1;v.occur.max=1;v.occur.initial=1;u[h].push(v);u[l.$insertAt](d+m,v);this._bindValue(v,y,o);this._setProperties(v,y);this._bindItems(v,y)}}},{key:"_createOccurrences",value:function _createOccurrences(t){if(this.emptyMerge){var r=t.occur;if(r&&!(r.initial<=1))for(var o=t[l.$getParent](),c=t[l.$nodeName],u=0,h=r.initial;u<h;u++){var d=t[l.$clone]();d.occur.min=1;d.occur.max=1;d.occur.initial=1;o[c].push(d);o[l.$appendChild](d)}}}},{key:"_getOccurInfo",value:function _getOccurInfo(t){var r=t.occur,o=t.name;if(!r||!o)return[1,1];var l=-1===r.max?1/0:r.max;return[r.min,l]}},{key:"_bindElement",value:function _bindElement(t,r){var o=[];this._createOccurrences(t);var c,h=_createForOfIteratorHelper(t[l.$getChildren]());try{for(h.s();!(c=h.n()).done;){var m=c.value;if(!m[l.$data])if(void 0!==this._mergeMode||"subform"!==m[l.$nodeName]){if(m[l.$isBindable]()){var g=!1,y=null,v=null,S=null;if(m.bind){switch(m.bind.match){case"none":this._bindElement(m,r);continue;case"global":g=!0;break;case"dataRef":if(!m.bind.ref){(0,d.warn)("XFA - ref is empty in node ".concat(m[l.$nodeName],"."));this._bindElement(m,r);continue}v=m.bind.ref}m.bind.picture&&(y=m.bind.picture[l.$content])}var k=_slicedToArray(this._getOccurInfo(m),2),_=k[0],C=k[1];if(v){if(null===(S=(0,u.searchNode)(this.root,r,v,!0,!1))){if(!(S=(0,u.createDataNode)(this.data,r,v)))continue;this._isConsumeData()&&(S[l.$consumed]=!0);this._bindElement(m,S);continue}this._isConsumeData()&&(S=S.filter((function(t){return!t[l.$consumed]})));S.length>C?S=S.slice(0,C):0===S.length&&(S=null);S&&this._isConsumeData()&&S.forEach((function(t){t[l.$consumed]=!0}))}else{if(!m.name){this._bindElement(m,r);continue}if(this._isConsumeData()){for(var w=[];w.length<C;){var x=this._findDataByNameToConsume(m.name,m[l.$hasSettableValue](),r,g);if(!x)break;x[l.$consumed]=!0;w.push(x)}S=w.length>0?w:null}else{if(!(S=r[l.$getRealChildrenByNameIt](m.name,!1,this.emptyMerge).next().value)){S=m[l.$data]=new l.XmlObject(r[l.$namespaceId],m.name);this.emptyMerge&&(S[l.$consumed]=!0);r[l.$appendChild](S);this._setProperties(m,S);this._bindItems(m,S);this._bindElement(m,S);continue}this.emptyMerge&&(S[l.$consumed]=!0);S=[S]}}if(S){if(S.length<_){(0,d.warn)("XFA - Must have at least ".concat(_," occurrences: ").concat(t[l.$nodeName],"."));continue}this._bindOccurrences(m,S,y)}else if(_>0){this._setProperties(m,r);this._bindItems(m,r);this._bindElement(m,r)}else o.push(m)}}else{this._mergeMode="consumeData"===m.mergeMode;var O=r[l.$getChildren]();if(O.length>0)this._bindOccurrences(m,[O[0]],null);else if(this.emptyMerge){var T=m[l.$data]=new l.XmlObject(r[l.$namespaceId],m.name||"root");r[l.$appendChild](T);this._bindElement(m,T)}}}}catch(t){h.e(t)}finally{h.f()}o.forEach((function(t){return t[l.$getParent]()[l.$removeChild](t)}))}}]);return Binder}();r.Binder=m},(t,r,o)=>{"use strict";var l=o(2);Object.defineProperty(r,"__esModule",{value:!0});r.Value=r.Text=r.TemplateNamespace=r.Template=r.SetProperty=r.Items=r.Field=r.BindItems=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),u=o(184),h=o(186),d=o(190),m=o(191),g=o(185),y=o(4),v=o(187);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 _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||t)}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 S=l.mark(getContainedChildren);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var k=h.NamespaceIds.template.id,_="http://www.w3.org/2000/svg";function hasMargin(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function _setValue(t,r){if(!t.value){var o=new Rt({});t[u.$appendChild](o);t.value=o}t.value[u.$setValue](r)}function getContainedChildren(t){var r,o,l;return c.default.wrap((function getContainedChildren$(c){for(;;)switch(c.prev=c.next){case 0:r=_createForOfIteratorHelper(t[u.$getChildren]());c.prev=1;r.s();case 3:if((o=r.n()).done){c.next=12;break}if(!((l=o.value)instanceof vt)){c.next=8;break}return c.delegateYield(l[u.$getContainedChildren](),"t0",7);case 7:return c.abrupt("continue",10);case 8:c.next=10;return l;case 10:c.next=3;break;case 12:c.next=17;break;case 14:c.prev=14;c.t1=c.catch(1);r.e(c.t1);case 17:c.prev=17;r.f();return c.finish(17);case 20:case"end":return c.stop()}}),S,null,[[1,14,17,20]])}function valueToHtml(t){return g.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function setFirstUnsplittable(t){var r=t[u.$getTemplateRoot]();if(null===r[u.$extra].firstUnsplittable){r[u.$extra].firstUnsplittable=t;r[u.$extra].noLayoutFailure=!0}}function unsetFirstUnsplittable(t){var r=t[u.$getTemplateRoot]();r[u.$extra].firstUnsplittable===t&&(r[u.$extra].noLayoutFailure=!1)}function handleBreak(t){if(t[u.$extra])return!1;t[u.$extra]=Object.create(null);if("auto"===t.targetType)return!1;var r=t[u.$getTemplateRoot](),o=null;if(t.target){if(!(o=r[u.$searchNode](t.target,t[u.$getParent]())))return!1;o=o[0]}var l=r[u.$extra],c=l.currentPageArea,h=l.currentContentArea;if("pageArea"===t.targetType){o instanceof Ke||(o=null);if(t.startNew){t[u.$extra].target=o||c;return!0}if(o&&o!==c){t[u.$extra].target=o;return!0}return!1}o instanceof J||(o=null);var d,m=o&&o[u.$getParent]();if(t.startNew)if(o){d=m.contentArea.children.findIndex((function(t){return t===o}))-1}else d=c.contentArea.children.findIndex((function(t){return t===h}));else{if(!o||o===h)return!1;d=m.contentArea.children.findIndex((function(t){return t===o}))-1}t[u.$extra].target=m===c?null:m;t[u.$extra].index=d;return!0}function handleOverflow(t,r,o){var l=t[u.$getTemplateRoot](),c=l[u.$extra].noLayoutFailure,h=r[u.$getSubformParent];r[u.$getSubformParent]=function(){return t};l[u.$extra].noLayoutFailure=!0;var d=r[u.$toHTML](o);t[u.$addHTML](d.html,d.bbox);l[u.$extra].noLayoutFailure=c;r[u.$getSubformParent]=h}var C=function(t){_inherits(AppearanceFilter,t);var r=_createSuper(AppearanceFilter);function AppearanceFilter(t){var o;_classCallCheck(this,AppearanceFilter);(o=r.call(this,k,"appearanceFilter")).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return AppearanceFilter}(u.StringObject),w=function(t){_inherits(Arc,t);var r=_createSuper(Arc);function Arc(t){var o;_classCallCheck(this,Arc);(o=r.call(this,k,"arc",!0)).circular=(0,g.getInteger)({data:t.circular,defaultValue:0,validate:function validate(t){return 1===t}});o.hand=(0,g.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.startAngle=(0,g.getFloat)({data:t.startAngle,defaultValue:0,validate:function validate(t){return!0}});o.sweepAngle=(0,g.getFloat)({data:t.sweepAngle,defaultValue:360,validate:function validate(t){return!0}});o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;o.fill=null;return o}_createClass(Arc,[{key:u.$toHTML,value:function value(){var t,r=this.edge?this.edge:new le({}),o=r[u.$toStyle](),l=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(l,this.fill[u.$toStyle]()):l.fill="transparent";l.strokeWidth=(0,m.measureToString)("visible"===r.presence?r.thickness:0);l.stroke=o.color;var c={xmlns:_,style:{width:"100%",height:"100%",overflow:"visible"}};if(0===this.startAngle&&360===this.sweepAngle)t={name:"ellipse",attributes:{xmlns:_,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:l}};else{var h=this.startAngle*Math.PI/180,d=this.sweepAngle*Math.PI/180,y=this.sweepAngle-this.startAngle>180?1:0,v=50*(1+Math.cos(h)),S=50*(1-Math.sin(h)),k=50*(1+Math.cos(d)),C=50*(1-Math.sin(d));t={name:"path",attributes:{xmlns:_,d:"M ".concat(v," ").concat(S," A 50 50 0 ").concat(y," 0 ").concat(k," ").concat(C),vectorEffect:"non-scaling-stroke",style:l}};Object.assign(c,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var w={name:"svg",children:[t],attributes:c};if(hasMargin(this[u.$getParent]()[u.$getParent]()))return g.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[w]});w.attributes.style.position="absolute";return g.HTMLResult.success(w)}}]);return Arc}(u.XFAObject),x=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,k,"area",!0)).colSpan=(0,g.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.id=t.id||"";o.name=t.name||"";o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.x=(0,g.getMeasurement)(t.x,"0pt");o.y=(0,g.getMeasurement)(t.y,"0pt");o.desc=null;o.extras=null;o.area=new u.XFAObjectArray;o.draw=new u.XFAObjectArray;o.exObject=new u.XFAObjectArray;o.exclGroup=new u.XFAObjectArray;o.field=new u.XFAObjectArray;o.subform=new u.XFAObjectArray;o.subformSet=new u.XFAObjectArray;return o}_createClass(Area,[{key:u.$getContainedChildren,value:c.default.mark((function value(){return c.default.wrap((function value$(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(getContainedChildren(this),"t0",1);case 1:case"end":return t.stop()}}),value,this)}))},{key:u.$isTransparent,value:function value(){return!0}},{key:u.$addHTML,value:function value(t,r){var o=_slicedToArray(r,4),l=o[0],c=o[1],h=o[2],d=o[3];this[u.$extra].width=Math.max(this[u.$extra].width,l+h);this[u.$extra].height=Math.max(this[u.$extra].height,c+d);this[u.$extra].children.push(t)}},{key:u.$getAvailableSpace,value:function value(){return this[u.$extra].availableSpace}},{key:u.$toHTML,value:function value(t){var r=(0,m.toStyle)(this,"position"),o={style:r,id:this[u.$uid],class:["xfaArea"]};(0,m.isPrintOnly)(this)&&o.class.push("xfaPrintOnly");this.name&&(o.xfaName=this.name);var l=[];this[u.$extra]={children:l,width:0,height:0,availableSpace:t};var c=this[u.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!c.success){if(c.isBreak())return c;delete this[u.$extra];return g.HTMLResult.FAILURE}r.width=(0,m.measureToString)(this[u.$extra].width);r.height=(0,m.measureToString)(this[u.$extra].height);var h={name:"div",attributes:o,children:l},d=[this.x,this.y,this[u.$extra].width,this[u.$extra].height];delete this[u.$extra];return g.HTMLResult.success(h,d)}}]);return Area}(u.XFAObject),O=function(t){_inherits(Assist,t);var r=_createSuper(Assist);function Assist(t){var o;_classCallCheck(this,Assist);(o=r.call(this,k,"assist",!0)).id=t.id||"";o.role=t.role||"";o.use=t.use||"";o.usehref=t.usehref||"";o.speak=null;o.toolTip=null;return o}_createClass(Assist,[{key:u.$toHTML,value:function value(){return this.toolTip&&this.toolTip[u.$content]?this.toolTip[u.$content]:null}}]);return Assist}(u.XFAObject),T=function(t){_inherits(Barcode,t);var r=_createSuper(Barcode);function Barcode(t){var o;_classCallCheck(this,Barcode);(o=r.call(this,k,"barcode",!0)).charEncoding=(0,g.getKeyword)({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:function validate(t){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-[0-9]{2}/)}});o.checksum=(0,g.getStringOption)(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);o.dataColumnCount=(0,g.getInteger)({data:t.dataColumnCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataLength=(0,g.getInteger)({data:t.dataLength,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataPrep=(0,g.getStringOption)(t.dataPrep,["none","flateCompress"]);o.dataRowCount=(0,g.getInteger)({data:t.dataRowCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.endChar=t.endChar||"";o.errorCorrectionLevel=(0,g.getInteger)({data:t.errorCorrectionLevel,defaultValue:-1,validate:function validate(t){return t>=0&&t<=8}});o.id=t.id||"";o.moduleHeight=(0,g.getMeasurement)(t.moduleHeight,"5mm");o.moduleWidth=(0,g.getMeasurement)(t.moduleWidth,"0.25mm");o.printCheckDigit=(0,g.getInteger)({data:t.printCheckDigit,defaultValue:0,validate:function validate(t){return 1===t}});o.rowColumnRatio=(0,g.getRatio)(t.rowColumnRatio);o.startChar=t.startChar||"";o.textLocation=(0,g.getStringOption)(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);o.truncate=(0,g.getInteger)({data:t.truncate,defaultValue:0,validate:function validate(t){return 1===t}});o.type=(0,g.getStringOption)(t.type?t.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);o.upsMode=(0,g.getStringOption)(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);o.use=t.use||"";o.usehref=t.usehref||"";o.wideNarrowRatio=(0,g.getRatio)(t.wideNarrowRatio);o.encrypt=null;o.extras=null;return o}return Barcode}(u.XFAObject),R=function(t){_inherits(Bind,t);var r=_createSuper(Bind);function Bind(t){var o;_classCallCheck(this,Bind);(o=r.call(this,k,"bind",!0)).match=(0,g.getStringOption)(t.match,["once","dataRef","global","none"]);o.ref=t.ref||"";o.picture=null;return o}return Bind}(u.XFAObject),E=function(t){_inherits(BindItems,t);var r=_createSuper(BindItems);function BindItems(t){var o;_classCallCheck(this,BindItems);(o=r.call(this,k,"bindItems")).connection=t.connection||"";o.labelRef=t.labelRef||"";o.ref=t.ref||"";o.valueRef=t.valueRef||"";return o}return BindItems}(u.XFAObject);r.BindItems=E;var M=function(t){_inherits(Bookend,t);var r=_createSuper(Bookend);function Bookend(t){var o;_classCallCheck(this,Bookend);(o=r.call(this,k,"bookend")).id=t.id||"";o.leader=t.leader||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Bookend}(u.XFAObject),D=function(t){_inherits(BooleanElement,t);var r=_createSuper(BooleanElement);function BooleanElement(t){var o;_classCallCheck(this,BooleanElement);(o=r.call(this,k,"boolean")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(BooleanElement,[{key:u.$toHTML,value:function value(t){return valueToHtml(1===this[u.$content]?"1":"0")}}]);return BooleanElement}(u.Option01),j=function(t){_inherits(Border,t);var r=_createSuper(Border);function Border(t){var o;_classCallCheck(this,Border);(o=r.call(this,k,"border",!0)).break=(0,g.getStringOption)(t.break,["close","open"]);o.hand=(0,g.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new u.XFAObjectArray(4);o.edge=new u.XFAObjectArray(4);o.extras=null;o.fill=null;o.margin=null;return o}_createClass(Border,[{key:u.$toStyle,value:function value(){var t=this.edge.children.slice();if(t.length<4)for(var r=t[t.length-1]||new le({}),o=t.length;o<4;o++)t.push(r);var l=t.map((function(t){var r=t[u.$toStyle]();r.color=r.color||"#000000";return r})),c=t.map((function(t){return t.thickness})),h=[0,0,0,0];if(this.margin){h[0]=this.margin.topInset;h[1]=this.margin.rightInset;h[2]=this.margin.bottomInset;h[3]=this.margin.leftInset}this[u.$extra]={widths:c,insets:h};var d=Object.create(null);this.margin&&Object.assign(d,this.margin[u.$toStyle]());this.fill&&"visible"===this.fill.presence&&Object.assign(d,this.fill[u.$toStyle]());if(this.corner.children.some((function(t){return 0!==t.radius}))){var m=this.corner.children.map((function(t){return t[u.$toStyle]()}));if(2===m.length||3===m.length)for(var g=m[m.length-1],y=m.length;y<4;y++)m.push(g);d.borderRadius=m.map((function(t){return t.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":d.borderStyle="";break;case"inactive":d.borderStyle="none";break;default:d.borderStyle=l.map((function(t){return t.style})).join(" ")}d.borderWidth=l.map((function(t){return t.width})).join(" ");d.borderColor=l.map((function(t){return t.color})).join(" ");return d}}]);return Border}(u.XFAObject),L=function(t){_inherits(Break,t);var r=_createSuper(Break);function Break(t){var o;_classCallCheck(this,Break);(o=r.call(this,k,"break",!0)).after=(0,g.getStringOption)(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.afterTarget=t.afterTarget||"";o.before=(0,g.getStringOption)(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.beforeTarget=t.beforeTarget||"";o.bookendLeader=t.bookendLeader||"";o.bookendTrailer=t.bookendTrailer||"";o.id=t.id||"";o.overflowLeader=t.overflowLeader||"";o.overflowTarget=t.overflowTarget||"";o.overflowTrailer=t.overflowTrailer||"";o.startNew=(0,g.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return Break}(u.XFAObject),N=function(t){_inherits(BreakAfter,t);var r=_createSuper(BreakAfter);function BreakAfter(t){var o;_classCallCheck(this,BreakAfter);(o=r.call(this,k,"breakAfter",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,g.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,g.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}return BreakAfter}(u.XFAObject),U=function(t){_inherits(BreakBefore,t);var r=_createSuper(BreakBefore);function BreakBefore(t){var o;_classCallCheck(this,BreakBefore);(o=r.call(this,k,"breakBefore",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,g.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,g.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}_createClass(BreakBefore,[{key:u.$toHTML,value:function value(t){this[u.$extra]={};return g.HTMLResult.FAILURE}}]);return BreakBefore}(u.XFAObject),H=function(t){_inherits(Button,t);var r=_createSuper(Button);function Button(t){var o;_classCallCheck(this,Button);(o=r.call(this,k,"button",!0)).highlight=(0,g.getStringOption)(t.highlight,["inverted","none","outline","push"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Button,[{key:u.$toHTML,value:function value(t){return g.HTMLResult.success({name:"button",attributes:{id:this[u.$uid],class:["xfaButton"],style:{}},children:[]})}}]);return Button}(u.XFAObject),W=function(t){_inherits(Calculate,t);var r=_createSuper(Calculate);function Calculate(t){var o;_classCallCheck(this,Calculate);(o=r.call(this,k,"calculate",!0)).id=t.id||"";o.override=(0,g.getStringOption)(t.override,["disabled","error","ignore","warning"]);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.message=null;o.script=null;return o}return Calculate}(u.XFAObject),q=function(t){_inherits(Caption,t);var r=_createSuper(Caption);function Caption(t){var o;_classCallCheck(this,Caption);(o=r.call(this,k,"caption",!0)).id=t.id||"";o.placement=(0,g.getStringOption)(t.placement,["left","bottom","inline","right","top"]);o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.reserve=Math.ceil((0,g.getMeasurement)(t.reserve));o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.font=null;o.margin=null;o.para=null;o.value=null;return o}_createClass(Caption,[{key:u.$setValue,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){_setValue(this,t)}))},{key:u.$getExtra,value:function value(t){if(!this[u.$extra]){var r=t.width,o=t.height;switch(this.placement){case"left":case"right":case"inline":r=this.reserve<=0?r:this.reserve;break;case"top":case"bottom":o=this.reserve<=0?o:this.reserve}this[u.$extra]=(0,m.layoutNode)(this,{width:r,height:o})}return this[u.$extra]}},{key:u.$toHTML,value:function value(t){if(!this.value)return g.HTMLResult.EMPTY;var value=this.value[u.$toHTML](t).html;if(!value)return g.HTMLResult.EMPTY;var r=this.reserve;if(this.reserve<=0){var o=this[u.$getExtra](t),l=o.w,c=o.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=l;break;case"top":case"bottom":this.reserve=c}}var h=[];"string"==typeof value?h.push({name:"#text",value:value}):h.push(value);var d=(0,m.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(d.width=(0,m.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(d.height=(0,m.measureToString)(this.reserve))}(0,m.setPara)(this,null,value);this.reserve=r;return g.HTMLResult.success({name:"div",attributes:{style:d,class:["xfaCaption"]},children:h})}}]);return Caption}(u.XFAObject),$=function(t){_inherits(Certificate,t);var r=_createSuper(Certificate);function Certificate(t){var o;_classCallCheck(this,Certificate);(o=r.call(this,k,"certificate")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Certificate}(u.StringObject),X=function(t){_inherits(Certificates,t);var r=_createSuper(Certificates);function Certificates(t){var o;_classCallCheck(this,Certificates);(o=r.call(this,k,"certificates",!0)).credentialServerPolicy=(0,g.getStringOption)(t.credentialServerPolicy,["optional","required"]);o.id=t.id||"";o.url=t.url||"";o.urlPolicy=t.urlPolicy||"";o.use=t.use||"";o.usehref=t.usehref||"";o.encryption=null;o.issuers=null;o.keyUsage=null;o.oids=null;o.signing=null;o.subjectDNs=null;return o}return Certificates}(u.XFAObject),z=function(t){_inherits(CheckButton,t);var r=_createSuper(CheckButton);function CheckButton(t){var o;_classCallCheck(this,CheckButton);(o=r.call(this,k,"checkButton",!0)).id=t.id||"";o.mark=(0,g.getStringOption)(t.mark,["default","check","circle","cross","diamond","square","star"]);o.shape=(0,g.getStringOption)(t.shape,["square","round"]);o.size=(0,g.getMeasurement)(t.size,"10pt");o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}_createClass(CheckButton,[{key:u.$toHTML,value:function value(t){var r,o,l,c=(0,m.toStyle)("margin"),h=(0,m.measureToString)(this.size);c.width=c.height=h;var d,y=this[u.$getParent]()[u.$getParent](),v=y.items.children.length&&y.items.children[0][u.$toHTML]().html||[],S={on:(v[0]||"on").toString(),off:(v[1]||"off").toString()},value=y.value&&y.value[u.$text]()||"off",k=value===S.on||void 0,_=y[u.$getSubformParent](),C=y[u.$uid];if(_ instanceof be){l=_[u.$uid];r="radio";o="xfaRadio";d=_[u.$data]&&_[u.$data][u.$uid]||_[u.$uid]}else{r="checkbox";o="xfaCheckbox";d=y[u.$data]&&y[u.$data][u.$uid]||y[u.$uid]}var w={name:"input",attributes:{class:[o],style:c,fieldId:C,dataId:d,type:r,checked:k,xfaOn:S.on}};l&&(w.attributes.name=l);return g.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[w]})}}]);return CheckButton}(u.XFAObject),G=function(t){_inherits(ChoiceList,t);var r=_createSuper(ChoiceList);function ChoiceList(t){var o;_classCallCheck(this,ChoiceList);(o=r.call(this,k,"choiceList",!0)).commitOn=(0,g.getStringOption)(t.commitOn,["select","exit"]);o.id=t.id||"";o.open=(0,g.getStringOption)(t.open,["userControl","always","multiSelect","onEntry"]);o.textEntry=(0,g.getInteger)({data:t.textEntry,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}_createClass(ChoiceList,[{key:u.$toHTML,value:function value(t){var r=(0,m.toStyle)(this,"border","margin"),o=this[u.$getParent]()[u.$getParent](),l=[];if(o.items.children.length>0){var c=o.items,h=0,d=0;2===c.children.length&&(d=1-(h=c.children[0].save));for(var y=c.children[h][u.$toHTML]().html,v=c.children[d][u.$toHTML]().html,S=!1,k=o.value&&o.value[u.$text]()||"",_=0,C=y.length;_<C;_++){var w={name:"option",attributes:{value:v[_]||y[_]},value:y[_]};v[_]===k&&(w.attributes.selected=S=!0);l.push(w)}S||l.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var x={class:["xfaSelect"],fieldId:o[u.$uid],dataId:o[u.$data]&&o[u.$data][u.$uid]||o[u.$uid],style:r};"multiSelect"===this.open&&(x.multiple=!0);return g.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:l,attributes:x}]})}}]);return ChoiceList}(u.XFAObject),V=function(t){_inherits(Color,t);var r=_createSuper(Color);function Color(t){var o;_classCallCheck(this,Color);(o=r.call(this,k,"color",!0)).cSpace=(0,g.getStringOption)(t.cSpace,["SRGB"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.value=t.value?(0,g.getColor)(t.value):"";o.extras=null;return o}_createClass(Color,[{key:u.$hasSettableValue,value:function value(){return!1}},{key:u.$toStyle,value:function value(){return this.value?y.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}]);return Color}(u.XFAObject),Y=function(t){_inherits(Comb,t);var r=_createSuper(Comb);function Comb(t){var o;_classCallCheck(this,Comb);(o=r.call(this,k,"comb")).id=t.id||"";o.numberOfCells=(0,g.getInteger)({data:t.numberOfCells,defaultValue:0,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";return o}return Comb}(u.XFAObject),K=function(t){_inherits(Connect,t);var r=_createSuper(Connect);function Connect(t){var o;_classCallCheck(this,Connect);(o=r.call(this,k,"connect",!0)).connection=t.connection||"";o.id=t.id||"";o.ref=t.ref||"";o.usage=(0,g.getStringOption)(t.usage,["exportAndImport","exportOnly","importOnly"]);o.use=t.use||"";o.usehref=t.usehref||"";o.picture=null;return o}return Connect}(u.XFAObject),J=function(t){_inherits(ContentArea,t);var r=_createSuper(ContentArea);function ContentArea(t){var o;_classCallCheck(this,ContentArea);(o=r.call(this,k,"contentArea",!0)).h=(0,g.getMeasurement)(t.h);o.id=t.id||"";o.name=t.name||"";o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=(0,g.getMeasurement)(t.w);o.x=(0,g.getMeasurement)(t.x,"0pt");o.y=(0,g.getMeasurement)(t.y,"0pt");o.desc=null;o.extras=null;return o}_createClass(ContentArea,[{key:u.$toHTML,value:function value(t){var r={left:(0,m.measureToString)(this.x),top:(0,m.measureToString)(this.y),width:(0,m.measureToString)(this.w),height:(0,m.measureToString)(this.h)},o=["xfaContentarea"];(0,m.isPrintOnly)(this)&&o.push("xfaPrintOnly");return g.HTMLResult.success({name:"div",children:[],attributes:{style:r,class:o,id:this[u.$uid]}})}}]);return ContentArea}(u.XFAObject),Q=function(t){_inherits(Corner,t);var r=_createSuper(Corner);function Corner(t){var o;_classCallCheck(this,Corner);(o=r.call(this,k,"corner",!0)).id=t.id||"";o.inverted=(0,g.getInteger)({data:t.inverted,defaultValue:0,validate:function validate(t){return 1===t}});o.join=(0,g.getStringOption)(t.join,["square","round"]);o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.radius=(0,g.getMeasurement)(t.radius);o.stroke=(0,g.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,g.getMeasurement)(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Corner,[{key:u.$toStyle,value:function value(){var t=(0,m.toStyle)(this,"visibility");t.radius=(0,m.measureToString)("square"===this.join?0:this.radius);return t}}]);return Corner}(u.XFAObject),Z=function(t){_inherits(DateElement,t);var r=_createSuper(DateElement);function DateElement(t){var o;_classCallCheck(this,DateElement);(o=r.call(this,k,"date")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(DateElement,[{key:u.$finalize,value:function value(){var t=this[u.$content].trim();this[u.$content]=t?new Date(t):null}},{key:u.$toHTML,value:function value(t){return valueToHtml(this[u.$content]?this[u.$content].toString():"")}}]);return DateElement}(u.ContentObject),ee=function(t){_inherits(DateTime,t);var r=_createSuper(DateTime);function DateTime(t){var o;_classCallCheck(this,DateTime);(o=r.call(this,k,"dateTime")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(DateTime,[{key:u.$finalize,value:function value(){var t=this[u.$content].trim();this[u.$content]=t?new Date(t):null}},{key:u.$toHTML,value:function value(t){return valueToHtml(this[u.$content]?this[u.$content].toString():"")}}]);return DateTime}(u.ContentObject),te=function(t){_inherits(DateTimeEdit,t);var r=_createSuper(DateTimeEdit);function DateTimeEdit(t){var o;_classCallCheck(this,DateTimeEdit);(o=r.call(this,k,"dateTimeEdit",!0)).hScrollPolicy=(0,g.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.picker=(0,g.getStringOption)(t.picker,["host","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(DateTimeEdit,[{key:u.$toHTML,value:function value(t){var r=(0,m.toStyle)(this,"border","font","margin"),o=this[u.$getParent]()[u.$getParent](),l={name:"input",attributes:{type:"text",fieldId:o[u.$uid],dataId:o[u.$data]&&o[u.$data][u.$uid]||o[u.$uid],class:["xfaTextfield"],style:r}};return g.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[l]})}}]);return DateTimeEdit}(u.XFAObject),re=function(t){_inherits(Decimal,t);var r=_createSuper(Decimal);function Decimal(t){var o;_classCallCheck(this,Decimal);(o=r.call(this,k,"decimal")).fracDigits=(0,g.getInteger)({data:t.fracDigits,defaultValue:2,validate:function validate(t){return!0}});o.id=t.id||"";o.leadDigits=(0,g.getInteger)({data:t.leadDigits,defaultValue:-1,validate:function validate(t){return!0}});o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Decimal,[{key:u.$finalize,value:function value(){var t=parseFloat(this[u.$content].trim());this[u.$content]=isNaN(t)?null:t}},{key:u.$toHTML,value:function value(t){return valueToHtml(null!==this[u.$content]?this[u.$content].toString():"")}}]);return Decimal}(u.ContentObject),ae=function(t){_inherits(DefaultUi,t);var r=_createSuper(DefaultUi);function DefaultUi(t){var o;_classCallCheck(this,DefaultUi);(o=r.call(this,k,"defaultUi",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return DefaultUi}(u.XFAObject),ne=function(t){_inherits(Desc,t);var r=_createSuper(Desc);function Desc(t){var o;_classCallCheck(this,Desc);(o=r.call(this,k,"desc",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new u.XFAObjectArray;o.date=new u.XFAObjectArray;o.dateTime=new u.XFAObjectArray;o.decimal=new u.XFAObjectArray;o.exData=new u.XFAObjectArray;o.float=new u.XFAObjectArray;o.image=new u.XFAObjectArray;o.integer=new u.XFAObjectArray;o.text=new u.XFAObjectArray;o.time=new u.XFAObjectArray;return o}return Desc}(u.XFAObject),ie=function(t){_inherits(DigestMethod,t);var r=_createSuper(DigestMethod);function DigestMethod(t){var o;_classCallCheck(this,DigestMethod);(o=r.call(this,k,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return DigestMethod}(u.OptionObject),oe=function(t){_inherits(DigestMethods,t);var r=_createSuper(DigestMethods);function DigestMethods(t){var o;_classCallCheck(this,DigestMethods);(o=r.call(this,k,"digestMethods",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.digestMethod=new u.XFAObjectArray;return o}return DigestMethods}(u.XFAObject),se=function(t){_inherits(Draw,t);var r=_createSuper(Draw);function Draw(t){var o;_classCallCheck(this,Draw);(o=r.call(this,k,"draw",!0)).anchorType=(0,g.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,g.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,g.getMeasurement)(t.h):"";o.hAlign=(0,g.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,g.getMeasurement)(t.maxH,"0pt");o.maxW=(0,g.getMeasurement)(t.maxW,"0pt");o.minH=(0,g.getMeasurement)(t.minH,"0pt");o.minW=(0,g.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,g.getRelevant)(t.relevant);o.rotate=(0,g.getInteger)({data:t.rotate,defaultValue:0,validate:function validate(t){return t%90==0}});o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,g.getMeasurement)(t.w):"";o.x=(0,g.getMeasurement)(t.x,"0pt");o.y=(0,g.getMeasurement)(t.y,"0pt");o.assist=null;o.border=null;o.caption=null;o.desc=null;o.extras=null;o.font=null;o.keep=null;o.margin=null;o.para=null;o.traversal=null;o.ui=null;o.value=null;o.setProperty=new u.XFAObjectArray;return o}_createClass(Draw,[{key:u.$setValue,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){_setValue(this,t)}))},{key:u.$toHTML,value:function value(t){if("hidden"===this.presence||"inactive"===this.presence)return g.HTMLResult.EMPTY;(0,m.fixDimensions)(this);var r=this.w,o=this.h,l=(0,m.layoutNode)(this,t),c=l.w,h=l.h,y=l.isBroken;if(c&&""===this.w){if(y&&this[u.$getSubformParent]()[u.$isThereMoreWidth]())return g.HTMLResult.FAILURE;this.w=c}h&&""===this.h&&(this.h=h);setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t)){this.w=r;this.h=o;return g.HTMLResult.FAILURE}unsetFirstUnsplittable(this);var v=(0,m.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,m.setMinMaxDimensions)(this,v);if(v.margin){v.padding=v.margin;delete v.margin}var S=["xfaDraw"];this.font&&S.push("xfaFont");(0,m.isPrintOnly)(this)&&S.push("xfaPrintOnly");var k={style:v,id:this[u.$uid],class:S};this.name&&(k.xfaName=this.name);var _={name:"div",attributes:k,children:[]},C=this.assist?this.assist[u.$toHTML]():null;C&&(_.attributes.title=C);var w=(0,m.computeBbox)(this,_,t),value=this.value?this.value[u.$toHTML](t).html:null;if(null===value){this.w=r;this.h=o;return g.HTMLResult.success((0,m.createWrapper)(this,_),w)}_.children.push(value);(0,m.setPara)(this,v,value);this.w=r;this.h=o;return g.HTMLResult.success((0,m.createWrapper)(this,_),w)}}]);return Draw}(u.XFAObject),le=function(t){_inherits(Edge,t);var r=_createSuper(Edge);function Edge(t){var o;_classCallCheck(this,Edge);(o=r.call(this,k,"edge",!0)).cap=(0,g.getStringOption)(t.cap,["square","butt","round"]);o.id=t.id||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.stroke=(0,g.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,g.getMeasurement)(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Edge,[{key:u.$toStyle,value:function value(){var t=(0,m.toStyle)(this,"visibility");Object.assign(t,{linecap:this.cap,width:(0,m.measureToString)(this.thickness),color:this.color?this.color[u.$toStyle]():"#000000",style:""});if("visible"!==this.presence)t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}}]);return Edge}(u.XFAObject),ce=function(t){_inherits(Encoding,t);var r=_createSuper(Encoding);function Encoding(t){var o;_classCallCheck(this,Encoding);(o=r.call(this,k,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Encoding}(u.OptionObject),ue=function(t){_inherits(Encodings,t);var r=_createSuper(Encodings);function Encodings(t){var o;_classCallCheck(this,Encodings);(o=r.call(this,k,"encodings",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encoding=new u.XFAObjectArray;return o}return Encodings}(u.XFAObject),fe=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){var o;_classCallCheck(this,Encrypt);(o=r.call(this,k,"encrypt",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=null;return o}return Encrypt}(u.XFAObject),he=function(t){_inherits(EncryptData,t);var r=_createSuper(EncryptData);function EncryptData(t){var o;_classCallCheck(this,EncryptData);(o=r.call(this,k,"encryptData",!0)).id=t.id||"";o.operation=(0,g.getStringOption)(t.operation,["encrypt","decrypt"]);o.target=t.target||"";o.use=t.use||"";o.usehref=t.usehref||"";o.filter=null;o.manifest=null;return o}return EncryptData}(u.XFAObject),de=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,k,"encryption",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new u.XFAObjectArray;return o}return Encryption}(u.XFAObject),pe=function(t){_inherits(EncryptionMethod,t);var r=_createSuper(EncryptionMethod);function EncryptionMethod(t){var o;_classCallCheck(this,EncryptionMethod);(o=r.call(this,k,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return EncryptionMethod}(u.OptionObject),me=function(t){_inherits(EncryptionMethods,t);var r=_createSuper(EncryptionMethods);function EncryptionMethods(t){var o;_classCallCheck(this,EncryptionMethods);(o=r.call(this,k,"encryptionMethods",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encryptionMethod=new u.XFAObjectArray;return o}return EncryptionMethods}(u.XFAObject),ge=function(t){_inherits(Event,t);var r=_createSuper(Event);function Event(t){var o;_classCallCheck(this,Event);(o=r.call(this,k,"event",!0)).activity=(0,g.getStringOption)(t.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);o.id=t.id||"";o.listen=(0,g.getStringOption)(t.listen,["refOnly","refAndDescendents"]);o.name=t.name||"";o.ref=t.ref||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.encryptData=null;o.execute=null;o.script=null;o.signData=null;o.submit=null;return o}return Event}(u.XFAObject),ye=function(t){_inherits(ExData,t);var r=_createSuper(ExData);function ExData(t){var o;_classCallCheck(this,ExData);(o=r.call(this,k,"exData")).contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.maxLength=(0,g.getInteger)({data:t.maxLength,defaultValue:-1,validate:function validate(t){return t>=-1}});o.name=t.name||"";o.rid=t.rid||"";o.transferEncoding=(0,g.getStringOption)(t.transferEncoding,["none","base64","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(ExData,[{key:u.$isCDATAXml,value:function value(){return"text/html"===this.contentType}},{key:u.$onChild,value:function value(t){if("text/html"===this.contentType&&t[u.$namespaceId]===h.NamespaceIds.xhtml.id){this[u.$content]=t;return!0}if("text/xml"===this.contentType){this[u.$content]=t;return!0}return!1}},{key:u.$toHTML,value:function value(t){return"text/html"===this.contentType&&this[u.$content]?this[u.$content][u.$toHTML](t):g.HTMLResult.EMPTY}}]);return ExData}(u.ContentObject),ve=function(t){_inherits(ExObject,t);var r=_createSuper(ExObject);function ExObject(t){var o;_classCallCheck(this,ExObject);(o=r.call(this,k,"exObject",!0)).archive=t.archive||"";o.classId=t.classId||"";o.codeBase=t.codeBase||"";o.codeType=t.codeType||"";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.boolean=new u.XFAObjectArray;o.date=new u.XFAObjectArray;o.dateTime=new u.XFAObjectArray;o.decimal=new u.XFAObjectArray;o.exData=new u.XFAObjectArray;o.exObject=new u.XFAObjectArray;o.float=new u.XFAObjectArray;o.image=new u.XFAObjectArray;o.integer=new u.XFAObjectArray;o.text=new u.XFAObjectArray;o.time=new u.XFAObjectArray;return o}return ExObject}(u.XFAObject),be=function(t){_inherits(ExclGroup,t);var r=_createSuper(ExclGroup);function ExclGroup(t){var o;_classCallCheck(this,ExclGroup);(o=r.call(this,k,"exclGroup",!0)).access=(0,g.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,g.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,g.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,g.getMeasurement)(t.h):"";o.hAlign=(0,g.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,g.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.maxH=(0,g.getMeasurement)(t.maxH,"0pt");o.maxW=(0,g.getMeasurement)(t.maxW,"0pt");o.minH=(0,g.getMeasurement)(t.minH,"0pt");o.minW=(0,g.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,g.getMeasurement)(t.w):"";o.x=(0,g.getMeasurement)(t.x,"0pt");o.y=(0,g.getMeasurement)(t.y,"0pt");o.assist=null;o.bind=null;o.border=null;o.calculate=null;o.caption=null;o.desc=null;o.extras=null;o.margin=null;o.para=null;o.traversal=null;o.validate=null;o.connect=new u.XFAObjectArray;o.event=new u.XFAObjectArray;o.field=new u.XFAObjectArray;o.setProperty=new u.XFAObjectArray;return o}_createClass(ExclGroup,[{key:u.$isBindable,value:function value(){return!0}},{key:u.$hasSettableValue,value:function value(){return!0}},{key:u.$setValue,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){var r,o=_createForOfIteratorHelper(this.field.children);try{for(o.s();!(r=o.n()).done;){var l=r.value;if(!l.value){var c=new Rt({});l[u.$appendChild](c);l.value=c}l.value[u.$setValue](t)}}catch(t){o.e(t)}finally{o.f()}}))},{key:u.$isThereMoreWidth,value:function value(){return this.layout.endsWith("-tb")&&0===this[u.$extra].attempt&&this[u.$extra].numberInLine>0||this[u.$getParent]()[u.$isThereMoreWidth]()}},{key:u.$isSplittable,value:function value(){var t=this[u.$getSubformParent]();if(!t[u.$isSplittable]())return!1;if(void 0!==this[u.$extra]._isSplittable)return this[u.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[u.$extra]._isSplittable=!1;return!1}if(t.layout&&t.layout.endsWith("-tb")&&0!==t[u.$extra].numberInLine)return!1;this[u.$extra]._isSplittable=!0;return!0}},{key:u.$flushHTML,value:function value(){return(0,d.flushHTML)(this)}},{key:u.$addHTML,value:function value(t,r){(0,d.addHTML)(this,t,r)}},{key:u.$getAvailableSpace,value:function value(){return(0,d.getAvailableSpace)(this)}},{key:u.$toHTML,value:function value(t){if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return g.HTMLResult.EMPTY;(0,m.fixDimensions)(this);var r=[],o={id:this[u.$uid],class:[]};(0,m.setAccess)(this,o.class);this[u.$extra]||(this[u.$extra]=Object.create(null));Object.assign(this[u.$extra],{children:r,attributes:o,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});var l=this[u.$isSplittable]();l||setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t))return g.HTMLResult.FAILURE;t={width:""===this.w?t.width:this.w,height:""===this.h?t.height:this.h};var c=new Set(["field"]);if(this.layout.includes("row")){var h=this[u.$getSubformParent]().columnWidths;if(Array.isArray(h)&&h.length>0){this[u.$extra].columnWidths=h;this[u.$extra].currentColumn=0}}var y=(0,m.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),v=["xfaExclgroup"],S=(0,m.layoutClass)(this);S&&v.push(S);(0,m.isPrintOnly)(this)&&v.push("xfaPrintOnly");o.style=y;o.class=v;this.name&&(o.xfaName=this.name);for(var k="lr-tb"===this.layout||"rl-tb"===this.layout,_=k?2:1;this[u.$extra].attempt<_;this[u.$extra].attempt++){k&&1===this[u.$extra].attempt&&(this[u.$extra].numberInLine=0);var C=this[u.$childrenToHTML]({filter:c,include:!0});if(C.success)break;if(C.isBreak())return C;if(k&&0===this[u.$extra].attempt&&0===this[u.$extra].numberInLine&&!this[u.$getTemplateRoot]()[u.$extra].noLayoutFailure){this[u.$extra].attempt=_;break}}l||unsetFirstUnsplittable(this);if(this[u.$extra].attempt===_){l||delete this[u.$extra];return g.HTMLResult.FAILURE}var w=0,x=0;if(this.margin){w=this.margin.leftInset+this.margin.rightInset;x=this.margin.topInset+this.margin.bottomInset}var O=Math.max(this[u.$extra].width+w,this.w||0),T=Math.max(this[u.$extra].height+x,this.h||0),R=[this.x,this.y,O,T];""===this.w&&(y.width=(0,m.measureToString)(O));""===this.h&&(y.height=(0,m.measureToString)(T));var E={name:"div",attributes:o,children:r},M=this.assist?this.assist[u.$toHTML]():null;M&&(E.attributes.title=M);delete this[u.$extra];return g.HTMLResult.success((0,m.createWrapper)(this,E),R)}}]);return ExclGroup}(u.XFAObject),Se=function(t){_inherits(Execute,t);var r=_createSuper(Execute);function Execute(t){var o;_classCallCheck(this,Execute);(o=r.call(this,k,"execute")).connection=t.connection||"";o.executeType=(0,g.getStringOption)(t.executeType,["import","remerge"]);o.id=t.id||"";o.runAt=(0,g.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Execute}(u.XFAObject),ke=function(t){_inherits(Extras,t);var r=_createSuper(Extras);function Extras(t){var o;_classCallCheck(this,Extras);(o=r.call(this,k,"extras",!0)).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new u.XFAObjectArray;o.date=new u.XFAObjectArray;o.dateTime=new u.XFAObjectArray;o.decimal=new u.XFAObjectArray;o.exData=new u.XFAObjectArray;o.extras=new u.XFAObjectArray;o.float=new u.XFAObjectArray;o.image=new u.XFAObjectArray;o.integer=new u.XFAObjectArray;o.text=new u.XFAObjectArray;o.time=new u.XFAObjectArray;return o}return Extras}(u.XFAObject),_e=function(t){_inherits(Field,t);var r=_createSuper(Field);function Field(t){var o;_classCallCheck(this,Field);(o=r.call(this,k,"field",!0)).access=(0,g.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,g.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,g.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,g.getMeasurement)(t.h):"";o.hAlign=(0,g.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,g.getMeasurement)(t.maxH,"0pt");o.maxW=(0,g.getMeasurement)(t.maxW,"0pt");o.minH=(0,g.getMeasurement)(t.minH,"0pt");o.minW=(0,g.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,g.getRelevant)(t.relevant);o.rotate=(0,g.getInteger)({data:t.rotate,defaultValue:0,validate:function validate(t){return t%90==0}});o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,g.getMeasurement)(t.w):"";o.x=(0,g.getMeasurement)(t.x,"0pt");o.y=(0,g.getMeasurement)(t.y,"0pt");o.assist=null;o.bind=null;o.border=null;o.calculate=null;o.caption=null;o.desc=null;o.extras=null;o.font=null;o.format=null;o.items=new u.XFAObjectArray(2);o.keep=null;o.margin=null;o.para=null;o.traversal=null;o.ui=null;o.validate=null;o.value=null;o.bindItems=new u.XFAObjectArray;o.connect=new u.XFAObjectArray;o.event=new u.XFAObjectArray;o.setProperty=new u.XFAObjectArray;return o}_createClass(Field,[{key:u.$isBindable,value:function value(){return!0}},{key:u.$setValue,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){_setValue(this,t)}))},{key:u.$toHTML,value:function value(t){if(!this.ui){this.ui=new It({});this.ui[u.$globalData]=this[u.$globalData];this[u.$appendChild](this.ui);var r;switch(this.items.children.length){case 0:r=new wt({});this.ui.textEdit=r;break;case 1:r=new z({});this.ui.checkButton=r;break;case 2:r=new G({});this.ui.choiceList=r}this.ui[u.$appendChild](r)}!function setTabIndex(t){for(;t;){if(!t.traversal||t[u.$tabIndex])return;var r,o=null,l=_createForOfIteratorHelper(t.traversal[u.$getChildren]());try{for(l.s();!(r=l.n()).done;){var c=r.value;if("next"===c.operation){o=c;break}}}catch(t){l.e(t)}finally{l.f()}if(!o||!o.ref)return;var h=t[u.$getTemplateRoot]();t[u.$tabIndex]=++h[u.$tabIndex];var d=h[u.$searchNode](o.ref,t);if(!d)return;t=d[0]}}(this);if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return g.HTMLResult.EMPTY;this.caption&&delete this.caption[u.$extra];var o=this.caption?this.caption[u.$toHTML](t).html:null,l=this.w,c=this.h;if(""===this.w||""===this.h){var h=0,y=0;if(this.margin){h=this.margin.leftInset+this.margin.rightInset;y=this.margin.topInset+this.margin.bottomInset}var v=null,S=null;if(this.caption){var k=this.caption[u.$getExtra](t),_=k.w,C=k.h;if(k.isBroken&&this[u.$getSubformParent]()[u.$isThereMoreWidth]())return g.HTMLResult.FAILURE;v=_;S=C;if(this.ui.checkButton)switch(this.caption.placement){case"left":case"right":case"inline":v+=this.ui.checkButton.size;break;case"top":case"bottom":S+=this.ui.checkButton.size}}v&&""===this.w&&(this.w=Math.min(this.maxW<=0?1/0:this.maxW,Math.max(this.minW,v+h)));S&&""===this.h&&(this.h=Math.min(this.maxH<=0?1/0:this.maxH,Math.max(this.minH,S+y)))}(0,m.fixDimensions)(this);setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t)){this.w=l;this.h=c;return g.HTMLResult.FAILURE}unsetFirstUnsplittable(this);var w=(0,m.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,m.setMinMaxDimensions)(this,w);var x=["xfaField"];this.font&&x.push("xfaFont");(0,m.isPrintOnly)(this)&&x.push("xfaPrintOnly");var O={style:w,id:this[u.$uid],class:x};if(w.margin){w.padding=w.margin;delete w.margin}(0,m.setAccess)(this,x);this.name&&(O.xfaName=this.name);var T=[],R={name:"div",attributes:O,children:T},E=this.assist?this.assist[u.$toHTML]():null;E&&(R.attributes.title=E);var M=this.border?this.border[u.$toStyle]():null,D=(0,m.computeBbox)(this,R,t),j=this.ui[u.$toHTML]().html;if(!j){Object.assign(w,M);return g.HTMLResult.success((0,m.createWrapper)(this,R),D)}this[u.$tabIndex]&&(j.children&&j.children[0]?j.children[0].attributes.tabindex=this[u.$tabIndex]:j.attributes.tabindex=this[u.$tabIndex]);j.attributes.style||(j.attributes.style=Object.create(null));this.ui.button?Object.assign(j.attributes.style,M):Object.assign(w,M);T.push(j);if(this.value)if(this.ui.imageEdit)j.children.push(this.value[u.$toHTML]().html);else if(!this.ui.button){var L="";if(this.value.exData)L=this.value.exData[u.$text]();else{var N=this.value[u.$toHTML]().html;null!==N&&(L=N.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(j.children[0].attributes.maxLength=this.value.text.maxChars);L&&("textarea"===j.children[0].name?j.children[0].attributes.textContent=L:j.children[0].attributes.value=L)}if(!o){j.attributes.class&&j.attributes.class.push("xfaLeft");this.w=l;this.h=c;return g.HTMLResult.success((0,m.createWrapper)(this,R),D)}if(this.ui.button){w.padding&&delete w.padding;"div"===o.name&&(o.name="span");j.children.push(o);return g.HTMLResult.success(R,D)}this.ui.checkButton&&(o.attributes.class[0]="xfaCaptionForCheckButton");j.attributes.class||(j.attributes.class=[]);switch(this.caption.placement){case"left":j.children.splice(0,0,o);j.attributes.class.push("xfaLeft");break;case"right":j.children.push(o);j.attributes.class.push("xfaLeft");break;case"top":j.children.splice(0,0,o);j.attributes.class.push("xfaTop");break;case"bottom":j.children.push(o);j.attributes.class.push("xfaTop");break;case"inline":j.attributes.class.push("xfaLeft")}this.w=l;this.h=c;return g.HTMLResult.success((0,m.createWrapper)(this,R),D)}}]);return Field}(u.XFAObject);r.Field=_e;var Ce=function(t){_inherits(Fill,t);var r=_createSuper(Fill);function Fill(t){var o;_classCallCheck(this,Fill);(o=r.call(this,k,"fill",!0)).id=t.id||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;o.linear=null;o.pattern=null;o.radial=null;o.solid=null;o.stipple=null;return o}_createClass(Fill,[{key:u.$toStyle,value:function value(){var t=this[u.$getParent](),r=Object.create(null),o="color";t instanceof j&&(o="background");if(t instanceof ot||t instanceof w){o="fill";r.fill="white"}var l,c=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(c.s();!(l=c.n()).done;){var h=l.value;if("extras"!==h&&"color"!==h){var d=this[h];if(d instanceof u.XFAObject){r[o]=d[u.$toStyle](this.color);return r}}}}catch(t){c.e(t)}finally{c.f()}this.color&&(r[o]=this.color[u.$toStyle]());return r}}]);return Fill}(u.XFAObject),we=function(t){_inherits(Filter,t);var r=_createSuper(Filter);function Filter(t){var o;_classCallCheck(this,Filter);(o=r.call(this,k,"filter",!0)).addRevocationInfo=(0,g.getStringOption)(t.addRevocationInfo,["","required","optional","none"]);o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.version=(0,g.getInteger)({data:o.version,defaultValue:5,validate:function validate(t){return t>=1&&t<=5}});o.appearanceFilter=null;o.certificates=null;o.digestMethods=null;o.encodings=null;o.encryptionMethods=null;o.handler=null;o.lockDocument=null;o.mdp=null;o.reasons=null;o.timeStamp=null;return o}return Filter}(u.XFAObject),Ae=function(t){_inherits(Float,t);var r=_createSuper(Float);function Float(t){var o;_classCallCheck(this,Float);(o=r.call(this,k,"float")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Float,[{key:u.$finalize,value:function value(){var t=parseFloat(this[u.$content].trim());this[u.$content]=isNaN(t)?null:t}},{key:u.$toHTML,value:function value(t){return valueToHtml(null!==this[u.$content]?this[u.$content].toString():"")}}]);return Float}(u.ContentObject),xe=function(t){_inherits(Font,t);var r=_createSuper(Font);function Font(t){var o;_classCallCheck(this,Font);(o=r.call(this,k,"font",!0)).baselineShift=(0,g.getMeasurement)(t.baselineShift);o.fontHorizontalScale=(0,g.getFloat)({data:t.fontHorizontalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.fontVerticalScale=(0,g.getFloat)({data:t.fontVerticalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.id=t.id||"";o.kerningMode=(0,g.getStringOption)(t.kerningMode,["none","pair"]);o.letterSpacing=(0,g.getMeasurement)(t.letterSpacing,"0");o.lineThrough=(0,g.getInteger)({data:t.lineThrough,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.lineThroughPeriod=(0,g.getStringOption)(t.lineThroughPeriod,["all","word"]);o.overline=(0,g.getInteger)({data:t.overline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.overlinePeriod=(0,g.getStringOption)(t.overlinePeriod,["all","word"]);o.posture=(0,g.getStringOption)(t.posture,["normal","italic"]);o.size=(0,g.getMeasurement)(t.size,"10pt");o.typeface=t.typeface||"Courier";o.underline=(0,g.getInteger)({data:t.underline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.underlinePeriod=(0,g.getStringOption)(t.underlinePeriod,["all","word"]);o.use=t.use||"";o.usehref=t.usehref||"";o.weight=(0,g.getStringOption)(t.weight,["normal","bold"]);o.extras=null;o.fill=null;return o}_createClass(Font,[{key:u.$clean,value:function value(t){_get(_getPrototypeOf(Font.prototype),u.$clean,this).call(this,t);this[u.$globalData].usedTypefaces.add(this.typeface)}},{key:u.$toStyle,value:function value(){var t=(0,m.toStyle)(this,"fill"),r=t.color;if(r)if("#000000"===r)delete t.color;else if(!r.startsWith("#")){t.background=r;t.backgroundClip="text";t.color="transparent"}this.baselineShift&&(t.verticalAlign=(0,m.measureToString)(this.baselineShift));t.fontKerning="none"===this.kerningMode?"none":"normal";t.letterSpacing=(0,m.measureToString)(this.letterSpacing);if(0!==this.lineThrough){t.textDecoration="line-through";2===this.lineThrough&&(t.textDecorationStyle="double")}if(0!==this.overline){t.textDecoration="overline";2===this.overline&&(t.textDecorationStyle="double")}t.fontStyle=this.posture;t.fontSize=(0,m.measureToString)(.99*this.size);(0,m.setFontFamily)(this,this[u.$globalData].fontFinder,t);if(0!==this.underline){t.textDecoration="underline";2===this.underline&&(t.textDecorationStyle="double")}t.fontWeight=this.weight;return t}}]);return Font}(u.XFAObject),Oe=function(t){_inherits(Format,t);var r=_createSuper(Format);function Format(t){var o;_classCallCheck(this,Format);(o=r.call(this,k,"format",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;return o}return Format}(u.XFAObject),Pe=function(t){_inherits(Handler,t);var r=_createSuper(Handler);function Handler(t){var o;_classCallCheck(this,Handler);(o=r.call(this,k,"handler")).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Handler}(u.StringObject),Te=function(t){_inherits(Hyphenation,t);var r=_createSuper(Hyphenation);function Hyphenation(t){var o;_classCallCheck(this,Hyphenation);(o=r.call(this,k,"hyphenation")).excludeAllCaps=(0,g.getInteger)({data:t.excludeAllCaps,defaultValue:0,validate:function validate(t){return 1===t}});o.excludeInitialCap=(0,g.getInteger)({data:t.excludeInitialCap,defaultValue:0,validate:function validate(t){return 1===t}});o.hyphenate=(0,g.getInteger)({data:t.hyphenate,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.pushCharacterCount=(0,g.getInteger)({data:t.pushCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.remainCharacterCount=(0,g.getInteger)({data:t.remainCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";o.wordCharacterCount=(0,g.getInteger)({data:t.wordCharacterCount,defaultValue:7,validate:function validate(t){return t>=0}});return o}return Hyphenation}(u.XFAObject),Ie=function(t){_inherits(Image,t);var r=_createSuper(Image);function Image(t){var o;_classCallCheck(this,Image);(o=r.call(this,k,"image")).aspect=(0,g.getStringOption)(t.aspect,["fit","actual","height","none","width"]);o.contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.name=t.name||"";o.transferEncoding=(0,g.getStringOption)(t.transferEncoding,["base64","none","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Image,[{key:u.$toHTML,value:function value(){var t=this[u.$globalData].images&&this[u.$globalData].images.get(this.href);if(!t&&(this.href||!this[u.$content]))return g.HTMLResult.EMPTY;t||"base64"!==this.transferEncoding||(t=(0,y.stringToBytes)(atob(this[u.$content])));if(!t)return g.HTMLResult.EMPTY;var r,o=new Blob([t],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":r={height:"100%",objectFit:"fill"};break;case"none":r={width:"100%",height:"100%",objectFit:"fill"};break;case"width":r={width:"100%",objectFit:"fill"}}return g.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:r,src:URL.createObjectURL(o)}})}}]);return Image}(u.StringObject),Fe=function(t){_inherits(ImageEdit,t);var r=_createSuper(ImageEdit);function ImageEdit(t){var o;_classCallCheck(this,ImageEdit);(o=r.call(this,k,"imageEdit",!0)).data=(0,g.getStringOption)(t.data,["link","embed"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}_createClass(ImageEdit,[{key:u.$toHTML,value:function value(t){return"embed"===this.data?g.HTMLResult.success({name:"div",children:[],attributes:{}}):g.HTMLResult.EMPTY}}]);return ImageEdit}(u.XFAObject),Re=function(t){_inherits(Integer,t);var r=_createSuper(Integer);function Integer(t){var o;_classCallCheck(this,Integer);(o=r.call(this,k,"integer")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Integer,[{key:u.$finalize,value:function value(){var t=parseInt(this[u.$content].trim(),10);this[u.$content]=isNaN(t)?null:t}},{key:u.$toHTML,value:function value(t){return valueToHtml(null!==this[u.$content]?this[u.$content].toString():"")}}]);return Integer}(u.ContentObject),Ee=function(t){_inherits(Issuers,t);var r=_createSuper(Issuers);function Issuers(t){var o;_classCallCheck(this,Issuers);(o=r.call(this,k,"issuers",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new u.XFAObjectArray;return o}return Issuers}(u.XFAObject),Be=function(t){_inherits(Items,t);var r=_createSuper(Items);function Items(t){var o;_classCallCheck(this,Items);(o=r.call(this,k,"items",!0)).id=t.id||"";o.name=t.name||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.ref=t.ref||"";o.save=(0,g.getInteger)({data:t.save,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new u.XFAObjectArray;o.date=new u.XFAObjectArray;o.dateTime=new u.XFAObjectArray;o.decimal=new u.XFAObjectArray;o.exData=new u.XFAObjectArray;o.float=new u.XFAObjectArray;o.image=new u.XFAObjectArray;o.integer=new u.XFAObjectArray;o.text=new u.XFAObjectArray;o.time=new u.XFAObjectArray;return o}_createClass(Items,[{key:u.$toHTML,value:function value(){var t,r=[],o=_createForOfIteratorHelper(this[u.$getChildren]());try{for(o.s();!(t=o.n()).done;){var l=t.value;r.push(l[u.$text]())}}catch(t){o.e(t)}finally{o.f()}return g.HTMLResult.success(r)}}]);return Items}(u.XFAObject);r.Items=Be;var Me=function(t){_inherits(Keep,t);var r=_createSuper(Keep);function Keep(t){var o;_classCallCheck(this,Keep);(o=r.call(this,k,"keep",!0)).id=t.id||"";var l=["none","contentArea","pageArea"];o.intact=(0,g.getStringOption)(t.intact,l);o.next=(0,g.getStringOption)(t.next,l);o.previous=(0,g.getStringOption)(t.previous,l);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return Keep}(u.XFAObject),De=function(t){_inherits(KeyUsage,t);var r=_createSuper(KeyUsage);function KeyUsage(t){var o;_classCallCheck(this,KeyUsage);var l=["","yes","no"];(o=r.call(this,k,"keyUsage")).crlSign=(0,g.getStringOption)(t.crlSign,l);o.dataEncipherment=(0,g.getStringOption)(t.dataEncipherment,l);o.decipherOnly=(0,g.getStringOption)(t.decipherOnly,l);o.digitalSignature=(0,g.getStringOption)(t.digitalSignature,l);o.encipherOnly=(0,g.getStringOption)(t.encipherOnly,l);o.id=t.id||"";o.keyAgreement=(0,g.getStringOption)(t.keyAgreement,l);o.keyCertSign=(0,g.getStringOption)(t.keyCertSign,l);o.keyEncipherment=(0,g.getStringOption)(t.keyEncipherment,l);o.nonRepudiation=(0,g.getStringOption)(t.nonRepudiation,l);o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return KeyUsage}(u.XFAObject),je=function(t){_inherits(Line,t);var r=_createSuper(Line);function Line(t){var o;_classCallCheck(this,Line);(o=r.call(this,k,"line",!0)).hand=(0,g.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.slope=(0,g.getStringOption)(t.slope,["\\","/"]);o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;return o}_createClass(Line,[{key:u.$toHTML,value:function value(){var t,r,o,l,c=this[u.$getParent]()[u.$getParent](),h=this.edge?this.edge:new le({}),d=h[u.$toStyle](),y=Object.create(null),v="visible"===h.presence?h.thickness:0;y.strokeWidth=(0,m.measureToString)(v);y.stroke=d.color;var S="100%",k="100%";if(c.w<=v){t="50%";r=0;o="50%";l="100%";S=y.strokeWidth}else if(c.h<=v){t=0;r="50%";o="100%";l="50%";k=y.strokeWidth}else if("\\"===this.slope){t=0;r=0;o="100%";l="100%"}else{t=0;r="100%";o="100%";l=0}var C={name:"svg",children:[{name:"line",attributes:{xmlns:_,x1:t,y1:r,x2:o,y2:l,style:y}}],attributes:{xmlns:_,width:S,height:k,style:{overflow:"visible"}}};if(hasMargin(c))return g.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[C]});C.attributes.style.position="absolute";return g.HTMLResult.success(C)}}]);return Line}(u.XFAObject),Le=function(t){_inherits(Linear,t);var r=_createSuper(Linear);function Linear(t){var o;_classCallCheck(this,Linear);(o=r.call(this,k,"linear",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["toRight","toBottom","toLeft","toTop"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Linear,[{key:u.$toStyle,value:function value(t){t=t?t[u.$toStyle]():"#FFFFFF";var r=this.type.replace(/([RBLT])/," $1").toLowerCase(),o=this.color?this.color[u.$toStyle]():"#000000";return"linear-gradient(".concat(r,", ").concat(t,", ").concat(o,")")}}]);return Linear}(u.XFAObject),Ne=function(t){_inherits(LockDocument,t);var r=_createSuper(LockDocument);function LockDocument(t){var o;_classCallCheck(this,LockDocument);(o=r.call(this,k,"lockDocument")).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(LockDocument,[{key:u.$finalize,value:function value(){this[u.$content]=(0,g.getStringOption)(this[u.$content],["auto","0","1"])}}]);return LockDocument}(u.ContentObject),Ue=function(t){_inherits(Manifest,t);var r=_createSuper(Manifest);function Manifest(t){var o;_classCallCheck(this,Manifest);(o=r.call(this,k,"manifest",!0)).action=(0,g.getStringOption)(t.action,["include","all","exclude"]);o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.ref=new u.XFAObjectArray;return o}return Manifest}(u.XFAObject),He=function(t){_inherits(Margin,t);var r=_createSuper(Margin);function Margin(t){var o;_classCallCheck(this,Margin);(o=r.call(this,k,"margin",!0)).bottomInset=(0,g.getMeasurement)(t.bottomInset,"0");o.id=t.id||"";o.leftInset=(0,g.getMeasurement)(t.leftInset,"0");o.rightInset=(0,g.getMeasurement)(t.rightInset,"0");o.topInset=(0,g.getMeasurement)(t.topInset,"0");o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Margin,[{key:u.$toStyle,value:function value(){return{margin:(0,m.measureToString)(this.topInset)+" "+(0,m.measureToString)(this.rightInset)+" "+(0,m.measureToString)(this.bottomInset)+" "+(0,m.measureToString)(this.leftInset)}}}]);return Margin}(u.XFAObject),We=function(t){_inherits(Mdp,t);var r=_createSuper(Mdp);function Mdp(t){var o;_classCallCheck(this,Mdp);(o=r.call(this,k,"mdp")).id=t.id||"";o.permissions=(0,g.getInteger)({data:t.permissions,defaultValue:2,validate:function validate(t){return 1===t||3===t}});o.signatureType=(0,g.getStringOption)(t.signatureType,["filler","author"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Mdp}(u.XFAObject),qe=function(t){_inherits(Medium,t);var r=_createSuper(Medium);function Medium(t){var o;_classCallCheck(this,Medium);(o=r.call(this,k,"medium")).id=t.id||"";o.imagingBBox=(0,g.getBBox)(t.imagingBBox);o.long=(0,g.getMeasurement)(t.long);o.orientation=(0,g.getStringOption)(t.orientation,["portrait","landscape"]);o.short=(0,g.getMeasurement)(t.short);o.stock=t.stock||"";o.trayIn=(0,g.getStringOption)(t.trayIn,["auto","delegate","pageFront"]);o.trayOut=(0,g.getStringOption)(t.trayOut,["auto","delegate"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Medium}(u.XFAObject),$e=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,k,"message",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.text=new u.XFAObjectArray;return o}return Message}(u.XFAObject),Xe=function(t){_inherits(NumericEdit,t);var r=_createSuper(NumericEdit);function NumericEdit(t){var o;_classCallCheck(this,NumericEdit);(o=r.call(this,k,"numericEdit",!0)).hScrollPolicy=(0,g.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(NumericEdit,[{key:u.$toHTML,value:function value(t){var r=(0,m.toStyle)(this,"border","font","margin"),o=this[u.$getParent]()[u.$getParent](),l={name:"input",attributes:{type:"text",fieldId:o[u.$uid],dataId:o[u.$data]&&o[u.$data][u.$uid]||o[u.$uid],class:["xfaTextfield"],style:r}};return g.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[l]})}}]);return NumericEdit}(u.XFAObject),ze=function(t){_inherits(Occur,t);var r=_createSuper(Occur);function Occur(t){var o;_classCallCheck(this,Occur);(o=r.call(this,k,"occur",!0)).id=t.id||"";o.initial=(0,g.getInteger)({data:t.initial,defaultValue:1,validate:function validate(t){return!0}});o.max=(0,g.getInteger)({data:t.max,defaultValue:1,validate:function validate(t){return!0}});o.min=(0,g.getInteger)({data:t.min,defaultValue:1,validate:function validate(t){return!0}});o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return Occur}(u.XFAObject),Ge=function(t){_inherits(Oid,t);var r=_createSuper(Oid);function Oid(t){var o;_classCallCheck(this,Oid);(o=r.call(this,k,"oid")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Oid}(u.StringObject),Ve=function(t){_inherits(Oids,t);var r=_createSuper(Oids);function Oids(t){var o;_classCallCheck(this,Oids);(o=r.call(this,k,"oids",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.oid=new u.XFAObjectArray;return o}return Oids}(u.XFAObject),Ye=function(t){_inherits(Overflow,t);var r=_createSuper(Overflow);function Overflow(t){var o;_classCallCheck(this,Overflow);(o=r.call(this,k,"overflow")).id=t.id||"";o.leader=t.leader||"";o.target=t.target||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Overflow,[{key:u.$getExtra,value:function value(){if(!this[u.$extra]){var t=this[u.$getParent](),r=this[u.$getTemplateRoot](),o=r[u.$searchNode](this.target,t),l=r[u.$searchNode](this.leader,t),c=r[u.$searchNode](this.trailer,t);this[u.$extra]={target:o&&o[0]||null,leader:l&&l[0]||null,trailer:c&&c[0]||null,addLeader:!1,addTrailer:!1}}return this[u.$extra]}}]);return Overflow}(u.XFAObject),Ke=function(t){_inherits(PageArea,t);var r=_createSuper(PageArea);function PageArea(t){var o;_classCallCheck(this,PageArea);(o=r.call(this,k,"pageArea",!0)).blankOrNotBlank=(0,g.getStringOption)(t.blankOrNotBlank,["any","blank","notBlank"]);o.id=t.id||"";o.initialNumber=(0,g.getInteger)({data:t.initialNumber,defaultValue:1,validate:function validate(t){return!0}});o.name=t.name||"";o.numbered=(0,g.getInteger)({data:t.numbered,defaultValue:1,validate:function validate(t){return!0}});o.oddOrEven=(0,g.getStringOption)(t.oddOrEven,["any","even","odd"]);o.pagePosition=(0,g.getStringOption)(t.pagePosition,["any","first","last","only","rest"]);o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.desc=null;o.extras=null;o.medium=null;o.occur=null;o.area=new u.XFAObjectArray;o.contentArea=new u.XFAObjectArray;o.draw=new u.XFAObjectArray;o.exclGroup=new u.XFAObjectArray;o.field=new u.XFAObjectArray;o.subform=new u.XFAObjectArray;return o}_createClass(PageArea,[{key:u.$isUsable,value:function value(){if(!this[u.$extra]){this[u.$extra]={numberOfUse:0};return!0}return!this.occur||-1===this.occur.max||this[u.$extra].numberOfUse<this.occur.max}},{key:u.$cleanPage,value:function value(){delete this[u.$extra]}},{key:u.$getNextPage,value:function value(){this[u.$extra]||(this[u.$extra]={numberOfUse:0});var t=this[u.$getParent]();if("orderedOccurrence"===t.relation&&this[u.$isUsable]()){this[u.$extra].numberOfUse+=1;return this}return t[u.$getNextPage]()}},{key:u.$getAvailableSpace,value:function value(){return this[u.$extra].space||{width:0,height:0}}},{key:u.$toHTML,value:function value(){this[u.$extra]||(this[u.$extra]={numberOfUse:1});var t=[];this[u.$extra].children=t;var r=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){r.width=(0,m.measureToString)(this.medium.short);r.height=(0,m.measureToString)(this.medium.long);this[u.$extra].space={width:this.medium.short,height:this.medium.long};if("landscape"===this.medium.orientation){var o=r.width;r.width=r.height;r.height=o;this[u.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,y.warn)("XFA - No medium specified in pageArea: please file a bug.");this[u.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0});this[u.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0});return g.HTMLResult.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[u.$uid],style:r,xfaName:this.name}})}}]);return PageArea}(u.XFAObject),Je=function(t){_inherits(PageSet,t);var r=_createSuper(PageSet);function PageSet(t){var o;_classCallCheck(this,PageSet);(o=r.call(this,k,"pageSet",!0)).duplexImposition=(0,g.getStringOption)(t.duplexImposition,["longEdge","shortEdge"]);o.id=t.id||"";o.name=t.name||"";o.relation=(0,g.getStringOption)(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.occur=null;o.pageArea=new u.XFAObjectArray;o.pageSet=new u.XFAObjectArray;return o}_createClass(PageSet,[{key:u.$cleanPage,value:function value(){var t,r=_createForOfIteratorHelper(this.pageArea.children);try{for(r.s();!(t=r.n()).done;){t.value[u.$cleanPage]()}}catch(t){r.e(t)}finally{r.f()}var o,l=_createForOfIteratorHelper(this.pageSet.children);try{for(l.s();!(o=l.n()).done;){o.value[u.$cleanPage]()}}catch(t){l.e(t)}finally{l.f()}}},{key:u.$isUsable,value:function value(){return!this.occur||-1===this.occur.max||this[u.$extra].numberOfUse<this.occur.max}},{key:u.$getNextPage,value:function value(){this[u.$extra]||(this[u.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1});if("orderedOccurrence"===this.relation){if(this[u.$extra].pageIndex+1<this.pageArea.children.length){this[u.$extra].pageIndex+=1;return this.pageArea.children[this[u.$extra].pageIndex][u.$getNextPage]()}if(this[u.$extra].pageSetIndex+1<this.pageSet.children.length){this[u.$extra].pageSetIndex+=1;return this.pageSet.children[this[u.$extra].pageSetIndex][u.$getNextPage]()}if(this[u.$isUsable]()){this[u.$extra].numberOfUse+=1;this[u.$extra].pageIndex=-1;this[u.$extra].pageSetIndex=-1;return this[u.$getNextPage]()}var t=this[u.$getParent]();if(t instanceof PageSet)return t[u.$getNextPage]();this[u.$cleanPage]();return this[u.$getNextPage]()}var r=this[u.$getTemplateRoot]()[u.$extra].pageNumber,o=r%2==0?"even":"odd",l=0===r?"first":"rest",c=this.pageArea.children.find((function(t){return t.oddOrEven===o&&t.pagePosition===l}));return c||((c=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&t.pagePosition===l})))?c:(c=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&"any"===t.pagePosition})))||this.pageArea.children[0])}}]);return PageSet}(u.XFAObject),Qe=function(t){_inherits(Para,t);var r=_createSuper(Para);function Para(t){var o;_classCallCheck(this,Para);(o=r.call(this,k,"para",!0)).hAlign=(0,g.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.lineHeight=t.lineHeight?(0,g.getMeasurement)(t.lineHeight,"0pt"):"";o.marginLeft=t.marginLeft?(0,g.getMeasurement)(t.marginLeft,"0pt"):"";o.marginRight=t.marginRight?(0,g.getMeasurement)(t.marginRight,"0pt"):"";o.orphans=(0,g.getInteger)({data:t.orphans,defaultValue:0,validate:function validate(t){return t>=0}});o.preserve=t.preserve||"";o.radixOffset=t.radixOffset?(0,g.getMeasurement)(t.radixOffset,"0pt"):"";o.spaceAbove=t.spaceAbove?(0,g.getMeasurement)(t.spaceAbove,"0pt"):"";o.spaceBelow=t.spaceBelow?(0,g.getMeasurement)(t.spaceBelow,"0pt"):"";o.tabDefault=t.tabDefault?(0,g.getMeasurement)(o.tabDefault):"";o.tabStops=(t.tabStops||"").trim().split(/\s+/).map((function(t,r){return r%2==1?(0,g.getMeasurement)(t):t}));o.textIndent=t.textIndent?(0,g.getMeasurement)(t.textIndent,"0pt"):"";o.use=t.use||"";o.usehref=t.usehref||"";o.vAlign=(0,g.getStringOption)(t.vAlign,["top","bottom","middle"]);o.widows=(0,g.getInteger)({data:t.widows,defaultValue:0,validate:function validate(t){return t>=0}});o.hyphenation=null;return o}_createClass(Para,[{key:u.$toStyle,value:function value(){var t=(0,m.toStyle)(this,"hAlign");""!==this.marginLeft&&(t.paddingLeft=(0,m.measureToString)(this.marginLeft));""!==this.marginRight&&(t.paddingight=(0,m.measureToString)(this.marginRight));""!==this.spaceAbove&&(t.paddingTop=(0,m.measureToString)(this.spaceAbove));""!==this.spaceBelow&&(t.paddingBottom=(0,m.measureToString)(this.spaceBelow));if(""!==this.textIndent){t.textIndent=(0,m.measureToString)(this.textIndent);(0,m.fixTextIndent)(t)}this.lineHeight>0&&(t.lineHeight=(0,m.measureToString)(this.lineHeight));""!==this.tabDefault&&(t.tabSize=(0,m.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(t,this.hyphenatation[u.$toStyle]());return t}}]);return Para}(u.XFAObject),Ze=function(t){_inherits(PasswordEdit,t);var r=_createSuper(PasswordEdit);function PasswordEdit(t){var o;_classCallCheck(this,PasswordEdit);(o=r.call(this,k,"passwordEdit",!0)).hScrollPolicy=(0,g.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.passwordChar=t.passwordChar||"*";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}return PasswordEdit}(u.XFAObject),et=function(t){_inherits(Pattern,t);var r=_createSuper(Pattern);function Pattern(t){var o;_classCallCheck(this,Pattern);(o=r.call(this,k,"pattern",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Pattern,[{key:u.$toStyle,value:function value(t){t=t?t[u.$toStyle]():"#FFFFFF";var r=this.color?this.color[u.$toStyle]():"#000000",o="repeating-linear-gradient",l="".concat(t,",").concat(t," ").concat(5,"px,").concat(r," ").concat(5,"px,").concat(r," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(o,"(to top,").concat(l,") ").concat(o,"(to right,").concat(l,")");case"crossDiagonal":return"".concat(o,"(45deg,").concat(l,") ").concat(o,"(-45deg,").concat(l,")");case"diagonalLeft":return"".concat(o,"(45deg,").concat(l,")");case"diagonalRight":return"".concat(o,"(-45deg,").concat(l,")");case"horizontal":return"".concat(o,"(to top,").concat(l,")");case"vertical":return"".concat(o,"(to right,").concat(l,")")}return""}}]);return Pattern}(u.XFAObject),tt=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){var o;_classCallCheck(this,Picture);(o=r.call(this,k,"picture")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Picture}(u.StringObject),rt=function(t){_inherits(Proto,t);var r=_createSuper(Proto);function Proto(t){var o;_classCallCheck(this,Proto);(o=r.call(this,k,"proto",!0)).appearanceFilter=new u.XFAObjectArray;o.arc=new u.XFAObjectArray;o.area=new u.XFAObjectArray;o.assist=new u.XFAObjectArray;o.barcode=new u.XFAObjectArray;o.bindItems=new u.XFAObjectArray;o.bookend=new u.XFAObjectArray;o.boolean=new u.XFAObjectArray;o.border=new u.XFAObjectArray;o.break=new u.XFAObjectArray;o.breakAfter=new u.XFAObjectArray;o.breakBefore=new u.XFAObjectArray;o.button=new u.XFAObjectArray;o.calculate=new u.XFAObjectArray;o.caption=new u.XFAObjectArray;o.certificate=new u.XFAObjectArray;o.certificates=new u.XFAObjectArray;o.checkButton=new u.XFAObjectArray;o.choiceList=new u.XFAObjectArray;o.color=new u.XFAObjectArray;o.comb=new u.XFAObjectArray;o.connect=new u.XFAObjectArray;o.contentArea=new u.XFAObjectArray;o.corner=new u.XFAObjectArray;o.date=new u.XFAObjectArray;o.dateTime=new u.XFAObjectArray;o.dateTimeEdit=new u.XFAObjectArray;o.decimal=new u.XFAObjectArray;o.defaultUi=new u.XFAObjectArray;o.desc=new u.XFAObjectArray;o.digestMethod=new u.XFAObjectArray;o.digestMethods=new u.XFAObjectArray;o.draw=new u.XFAObjectArray;o.edge=new u.XFAObjectArray;o.encoding=new u.XFAObjectArray;o.encodings=new u.XFAObjectArray;o.encrypt=new u.XFAObjectArray;o.encryptData=new u.XFAObjectArray;o.encryption=new u.XFAObjectArray;o.encryptionMethod=new u.XFAObjectArray;o.encryptionMethods=new u.XFAObjectArray;o.event=new u.XFAObjectArray;o.exData=new u.XFAObjectArray;o.exObject=new u.XFAObjectArray;o.exclGroup=new u.XFAObjectArray;o.execute=new u.XFAObjectArray;o.extras=new u.XFAObjectArray;o.field=new u.XFAObjectArray;o.fill=new u.XFAObjectArray;o.filter=new u.XFAObjectArray;o.float=new u.XFAObjectArray;o.font=new u.XFAObjectArray;o.format=new u.XFAObjectArray;o.handler=new u.XFAObjectArray;o.hyphenation=new u.XFAObjectArray;o.image=new u.XFAObjectArray;o.imageEdit=new u.XFAObjectArray;o.integer=new u.XFAObjectArray;o.issuers=new u.XFAObjectArray;o.items=new u.XFAObjectArray;o.keep=new u.XFAObjectArray;o.keyUsage=new u.XFAObjectArray;o.line=new u.XFAObjectArray;o.linear=new u.XFAObjectArray;o.lockDocument=new u.XFAObjectArray;o.manifest=new u.XFAObjectArray;o.margin=new u.XFAObjectArray;o.mdp=new u.XFAObjectArray;o.medium=new u.XFAObjectArray;o.message=new u.XFAObjectArray;o.numericEdit=new u.XFAObjectArray;o.occur=new u.XFAObjectArray;o.oid=new u.XFAObjectArray;o.oids=new u.XFAObjectArray;o.overflow=new u.XFAObjectArray;o.pageArea=new u.XFAObjectArray;o.pageSet=new u.XFAObjectArray;o.para=new u.XFAObjectArray;o.passwordEdit=new u.XFAObjectArray;o.pattern=new u.XFAObjectArray;o.picture=new u.XFAObjectArray;o.radial=new u.XFAObjectArray;o.reason=new u.XFAObjectArray;o.reasons=new u.XFAObjectArray;o.rectangle=new u.XFAObjectArray;o.ref=new u.XFAObjectArray;o.script=new u.XFAObjectArray;o.setProperty=new u.XFAObjectArray;o.signData=new u.XFAObjectArray;o.signature=new u.XFAObjectArray;o.signing=new u.XFAObjectArray;o.solid=new u.XFAObjectArray;o.speak=new u.XFAObjectArray;o.stipple=new u.XFAObjectArray;o.subform=new u.XFAObjectArray;o.subformSet=new u.XFAObjectArray;o.subjectDN=new u.XFAObjectArray;o.subjectDNs=new u.XFAObjectArray;o.submit=new u.XFAObjectArray;o.text=new u.XFAObjectArray;o.textEdit=new u.XFAObjectArray;o.time=new u.XFAObjectArray;o.timeStamp=new u.XFAObjectArray;o.toolTip=new u.XFAObjectArray;o.traversal=new u.XFAObjectArray;o.traverse=new u.XFAObjectArray;o.ui=new u.XFAObjectArray;o.validate=new u.XFAObjectArray;o.value=new u.XFAObjectArray;o.variables=new u.XFAObjectArray;return o}return Proto}(u.XFAObject),at=function(t){_inherits(Radial,t);var r=_createSuper(Radial);function Radial(t){var o;_classCallCheck(this,Radial);(o=r.call(this,k,"radial",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["toEdge","toCenter"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Radial,[{key:u.$toStyle,value:function value(t){t=t?t[u.$toStyle]():"#FFFFFF";var r=this.color?this.color[u.$toStyle]():"#000000",o="toEdge"===this.type?"".concat(t,",").concat(r):"".concat(r,",").concat(t);return"radial-gradient(circle at center, ".concat(o,")")}}]);return Radial}(u.XFAObject),nt=function(t){_inherits(Reason,t);var r=_createSuper(Reason);function Reason(t){var o;_classCallCheck(this,Reason);(o=r.call(this,k,"reason")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Reason}(u.StringObject),it=function(t){_inherits(Reasons,t);var r=_createSuper(Reasons);function Reasons(t){var o;_classCallCheck(this,Reasons);(o=r.call(this,k,"reasons",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.reason=new u.XFAObjectArray;return o}return Reasons}(u.XFAObject),ot=function(t){_inherits(Rectangle,t);var r=_createSuper(Rectangle);function Rectangle(t){var o;_classCallCheck(this,Rectangle);(o=r.call(this,k,"rectangle",!0)).hand=(0,g.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new u.XFAObjectArray(4);o.edge=new u.XFAObjectArray(4);o.fill=null;return o}_createClass(Rectangle,[{key:u.$toHTML,value:function value(){var t=this.edge.children.length?this.edge.children[0]:new le({}),r=t[u.$toStyle](),o=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(o,this.fill[u.$toStyle]()):o.fill="transparent";o.strokeWidth=(0,m.measureToString)("visible"===t.presence?t.thickness:0);o.stroke=r.color;var l=(this.corner.children.length?this.corner.children[0]:new Q({}))[u.$toStyle](),c={name:"svg",children:[{name:"rect",attributes:{xmlns:_,width:"100%",height:"100%",x:0,y:0,rx:l.radius,ry:l.radius,style:o}}],attributes:{xmlns:_,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[u.$getParent]()[u.$getParent]()))return g.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[c]});c.attributes.style.position="absolute";return g.HTMLResult.success(c)}}]);return Rectangle}(u.XFAObject),st=function(t){_inherits(RefElement,t);var r=_createSuper(RefElement);function RefElement(t){var o;_classCallCheck(this,RefElement);(o=r.call(this,k,"ref")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return RefElement}(u.StringObject),lt=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,k,"script")).binding=t.binding||"";o.contentType=t.contentType||"";o.id=t.id||"";o.name=t.name||"";o.runAt=(0,g.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Script}(u.StringObject),ct=function(t){_inherits(SetProperty,t);var r=_createSuper(SetProperty);function SetProperty(t){var o;_classCallCheck(this,SetProperty);(o=r.call(this,k,"setProperty")).connection=t.connection||"";o.ref=t.ref||"";o.target=t.target||"";return o}return SetProperty}(u.XFAObject);r.SetProperty=ct;var ut=function(t){_inherits(SignData,t);var r=_createSuper(SignData);function SignData(t){var o;_classCallCheck(this,SignData);(o=r.call(this,k,"signData",!0)).id=t.id||"";o.operation=(0,g.getStringOption)(t.operation,["sign","clear","verify"]);o.ref=t.ref||"";o.target=t.target||"";o.use=t.use||"";o.usehref=t.usehref||"";o.filter=null;o.manifest=null;return o}return SignData}(u.XFAObject),ft=function(t){_inherits(Signature,t);var r=_createSuper(Signature);function Signature(t){var o;_classCallCheck(this,Signature);(o=r.call(this,k,"signature",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["PDF1.3","PDF1.6"]);o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.filter=null;o.manifest=null;o.margin=null;return o}return Signature}(u.XFAObject),ht=function(t){_inherits(Signing,t);var r=_createSuper(Signing);function Signing(t){var o;_classCallCheck(this,Signing);(o=r.call(this,k,"signing",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new u.XFAObjectArray;return o}return Signing}(u.XFAObject),dt=function(t){_inherits(Solid,t);var r=_createSuper(Solid);function Solid(t){var o;_classCallCheck(this,Solid);(o=r.call(this,k,"solid",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Solid,[{key:u.$toStyle,value:function value(t){return t?t[u.$toStyle]():"#FFFFFF"}}]);return Solid}(u.XFAObject),mt=function(t){_inherits(Speak,t);var r=_createSuper(Speak);function Speak(t){var o;_classCallCheck(this,Speak);(o=r.call(this,k,"speak")).disable=(0,g.getInteger)({data:t.disable,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.priority=(0,g.getStringOption)(t.priority,["custom","caption","name","toolTip"]);o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Speak}(u.StringObject),gt=function(t){_inherits(Stipple,t);var r=_createSuper(Stipple);function Stipple(t){var o;_classCallCheck(this,Stipple);(o=r.call(this,k,"stipple",!0)).id=t.id||"";o.rate=(0,g.getInteger)({data:t.rate,defaultValue:50,validate:function validate(t){return t>=0&&t<=100}});o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Stipple,[{key:u.$toStyle,value:function value(t){var r=this.rate/100;return y.Util.makeHexColor(Math.round(t.value.r*(1-r)+this.value.r*r),Math.round(t.value.g*(1-r)+this.value.g*r),Math.round(t.value.b*(1-r)+this.value.b*r))}}]);return Stipple}(u.XFAObject),yt=function(t){_inherits(Subform,t);var r=_createSuper(Subform);function Subform(t){var o;_classCallCheck(this,Subform);(o=r.call(this,k,"subform",!0)).access=(0,g.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.allowMacro=(0,g.getInteger)({data:t.allowMacro,defaultValue:0,validate:function validate(t){return 1===t}});o.anchorType=(0,g.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,g.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map((function(t){return"-1"===t?-1:(0,g.getMeasurement)(t)}));o.h=t.h?(0,g.getMeasurement)(t.h):"";o.hAlign=(0,g.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,g.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.locale=t.locale||"";o.maxH=(0,g.getMeasurement)(t.maxH,"0pt");o.maxW=(0,g.getMeasurement)(t.maxW,"0pt");o.mergeMode=(0,g.getStringOption)(t.mergeMode,["consumeData","matchTemplate"]);o.minH=(0,g.getMeasurement)(t.minH,"0pt");o.minW=(0,g.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,g.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,g.getRelevant)(t.relevant);o.restoreState=(0,g.getStringOption)(t.restoreState,["manual","auto"]);o.scope=(0,g.getStringOption)(t.scope,["name","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,g.getMeasurement)(t.w):"";o.x=(0,g.getMeasurement)(t.x,"0pt");o.y=(0,g.getMeasurement)(t.y,"0pt");o.assist=null;o.bind=null;o.bookend=null;o.border=null;o.break=null;o.calculate=null;o.desc=null;o.extras=null;o.keep=null;o.margin=null;o.occur=null;o.overflow=null;o.pageSet=null;o.para=null;o.traversal=null;o.validate=null;o.variables=null;o.area=new u.XFAObjectArray;o.breakAfter=new u.XFAObjectArray;o.breakBefore=new u.XFAObjectArray;o.connect=new u.XFAObjectArray;o.draw=new u.XFAObjectArray;o.event=new u.XFAObjectArray;o.exObject=new u.XFAObjectArray;o.exclGroup=new u.XFAObjectArray;o.field=new u.XFAObjectArray;o.proto=new u.XFAObjectArray;o.setProperty=new u.XFAObjectArray;o.subform=new u.XFAObjectArray;o.subformSet=new u.XFAObjectArray;return o}_createClass(Subform,[{key:u.$getSubformParent,value:function value(){var t=this[u.$getParent]();return t instanceof vt?t[u.$getSubformParent]():t}},{key:u.$isBindable,value:function value(){return!0}},{key:u.$isThereMoreWidth,value:function value(){return this.layout.endsWith("-tb")&&0===this[u.$extra].attempt&&this[u.$extra].numberInLine>0||this[u.$getParent]()[u.$isThereMoreWidth]()}},{key:u.$getContainedChildren,value:c.default.mark((function value(){return c.default.wrap((function value$(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(getContainedChildren(this),"t0",1);case 1:case"end":return t.stop()}}),value,this)}))},{key:u.$flushHTML,value:function value(){return(0,d.flushHTML)(this)}},{key:u.$addHTML,value:function value(t,r){(0,d.addHTML)(this,t,r)}},{key:u.$getAvailableSpace,value:function value(){return(0,d.getAvailableSpace)(this)}},{key:u.$isSplittable,value:function value(){var t=this[u.$getSubformParent]();if(!t[u.$isSplittable]())return!1;var r=this[u.$getTemplateRoot]()[u.$extra].currentContentArea;if(this.overflow&&this.overflow[u.$getExtra]().target===r)return!1;if(void 0!==this[u.$extra]._isSplittable)return this[u.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[u.$extra]._isSplittable=!1;return!1}if(this.keep&&"none"!==this.keep.intact){this[u.$extra]._isSplittable=!1;return!1}if(t.layout&&t.layout.endsWith("-tb")&&0!==t[u.$extra].numberInLine)return!1;this[u.$extra]._isSplittable=!0;return!0}},{key:u.$toHTML,value:function value(t){if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var r=new N({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});r[u.$globalData]=this[u.$globalData];this[u.$appendChild](r);this.breakAfter.push(r)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var o=new U({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});o[u.$globalData]=this[u.$globalData];this[u.$appendChild](o);this.breakBefore.push(o)}if(""!==this.break.overflowTarget){var l=new Ye({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});l[u.$globalData]=this[u.$globalData];this[u.$appendChild](l);this.overflow.push(l)}this[u.$removeChild](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return g.HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,y.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");if(this.breakBefore.children.length>=1){var c=this.breakBefore.children[0];if(handleBreak(c))return g.HTMLResult.breakNode(c)}if(this[u.$extra]&&this[u.$extra].afterBreakAfter)return g.HTMLResult.EMPTY;(0,m.fixDimensions)(this);var h=[],v={id:this[u.$uid],class:[]};(0,m.setAccess)(this,v.class);this[u.$extra]||(this[u.$extra]=Object.create(null));Object.assign(this[u.$extra],{children:h,line:null,attributes:v,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});var S=this[u.$getTemplateRoot](),k=S[u.$extra].currentContentArea,_=S[u.$extra].noLayoutFailure;this.overflow&&(S[u.$extra].noLayoutFailure=S[u.$extra].noLayoutFailure||this.overflow[u.$getExtra]().target===k);var C=this[u.$isSplittable]();C||setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t))return g.HTMLResult.FAILURE;var w=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var x=this[u.$getSubformParent]().columnWidths;if(Array.isArray(x)&&x.length>0){this[u.$extra].columnWidths=x;this[u.$extra].currentColumn=0}}var O=(0,m.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),T=["xfaSubform"],R=(0,m.layoutClass)(this);R&&T.push(R);v.style=O;v.class=T;this.name&&(v.xfaName=this.name);if(this.overflow){var E=this.overflow[u.$getExtra]();if(E.addLeader){E.addLeader=!1;handleOverflow(this,E.leader,t)}}for(var M="lr-tb"===this.layout||"rl-tb"===this.layout,D=M?2:1;this[u.$extra].attempt<D;this[u.$extra].attempt++){M&&1===this[u.$extra].attempt&&(this[u.$extra].numberInLine=0);var j=this[u.$childrenToHTML]({filter:w,include:!0});if(j.success)break;if(j.isBreak())return j;if(M&&0===this[u.$extra].attempt&&0===this[u.$extra].numberInLine&&!S[u.$extra].noLayoutFailure){this[u.$extra].attempt=D;break}}C||unsetFirstUnsplittable(this);S[u.$extra].noLayoutFailure=_;if(this[u.$extra].attempt===D){this.overflow&&(this[u.$getTemplateRoot]()[u.$extra].overflowNode=this.overflow);C||delete this[u.$extra];return g.HTMLResult.FAILURE}if(this.overflow){var L=this.overflow[u.$getExtra]();if(L.addTrailer){L.addTrailer=!1;handleOverflow(this,L.trailer,t)}}var H=0,W=0;if(this.margin){H=this.margin.leftInset+this.margin.rightInset;W=this.margin.topInset+this.margin.bottomInset}var q=Math.max(this[u.$extra].width+H,this.w||0),$=Math.max(this[u.$extra].height+W,this.h||0),X=[this.x,this.y,q,$];""===this.w&&(O.width=(0,m.measureToString)(q));""===this.h&&(O.height=(0,m.measureToString)($));var z={name:"div",attributes:v,children:h},G=this.assist?this.assist[u.$toHTML]():null;G&&(z.attributes.title=G);var V=g.HTMLResult.success((0,m.createWrapper)(this,z),X);if(this.breakAfter.children.length>=1){var Y=this.breakAfter.children[0];if(handleBreak(Y)){this[u.$extra].afterBreakAfter=V;return g.HTMLResult.breakNode(Y)}}delete this[u.$extra];return V}}]);return Subform}(u.XFAObject),vt=function(t){_inherits(SubformSet,t);var r=_createSuper(SubformSet);function SubformSet(t){var o;_classCallCheck(this,SubformSet);(o=r.call(this,k,"subformSet",!0)).id=t.id||"";o.name=t.name||"";o.relation=(0,g.getStringOption)(t.relation,["ordered","choice","unordered"]);o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.bookend=null;o.break=null;o.desc=null;o.extras=null;o.occur=null;o.overflow=null;o.breakAfter=new u.XFAObjectArray;o.breakBefore=new u.XFAObjectArray;o.subform=new u.XFAObjectArray;o.subformSet=new u.XFAObjectArray;return o}_createClass(SubformSet,[{key:u.$getContainedChildren,value:c.default.mark((function value(){return c.default.wrap((function value$(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(getContainedChildren(this),"t0",1);case 1:case"end":return t.stop()}}),value,this)}))},{key:u.$getSubformParent,value:function value(){for(var t=this[u.$getParent]();!(t instanceof yt);)t=t[u.$getParent]();return t}}]);return SubformSet}(u.XFAObject),bt=function(t){_inherits(SubjectDN,t);var r=_createSuper(SubjectDN);function SubjectDN(t){var o;_classCallCheck(this,SubjectDN);(o=r.call(this,k,"subjectDN")).delimiter=t.delimiter||",";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(SubjectDN,[{key:u.$finalize,value:function value(){this[u.$content]=new Map(this[u.$content].split(this.delimiter).map((function(t){(t=t.split("=",2))[0]=t[0].trim();return t})))}}]);return SubjectDN}(u.ContentObject),St=function(t){_inherits(SubjectDNs,t);var r=_createSuper(SubjectDNs);function SubjectDNs(t){var o;_classCallCheck(this,SubjectDNs);(o=r.call(this,k,"subjectDNs",!0)).id=t.id||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.subjectDN=new u.XFAObjectArray;return o}return SubjectDNs}(u.XFAObject),kt=function(t){_inherits(Submit,t);var r=_createSuper(Submit);function Submit(t){var o;_classCallCheck(this,Submit);(o=r.call(this,k,"submit",!0)).embedPDF=(0,g.getInteger)({data:t.embedPDF,defaultValue:0,validate:function validate(t){return 1===t}});o.format=(0,g.getStringOption)(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);o.id=t.id||"";o.target=t.target||"";o.textEncoding=(0,g.getKeyword)({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:function validate(t){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-[0-9]{2}/)}});o.use=t.use||"";o.usehref=t.usehref||"";o.xdpContent=t.xdpContent||"";o.encrypt=null;o.encryptData=new u.XFAObjectArray;o.signData=new u.XFAObjectArray;return o}return Submit}(u.XFAObject),_t=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,k,"template",!0)).baseProfile=(0,g.getStringOption)(t.baseProfile,["full","interactiveForms"]);o.extras=null;o.subform=new u.XFAObjectArray;return o}_createClass(Template,[{key:u.$finalize,value:function value(){0===this.subform.children.length&&(0,y.warn)("XFA - No subforms in template node.");this.subform.children.length>=2&&(0,y.warn)("XFA - Several subforms in template node: please file a bug.");this[u.$tabIndex]=1e3}},{key:u.$isSplittable,value:function value(){return!0}},{key:u.$searchNode,value:function value(t,r){return t.startsWith("#")?[this[u.$ids].get(t.slice(1))]:(0,v.searchNode)(this,r,t,!0,!0)}},{key:u.$toHTML,value:function value(){var t=this;if(!this.subform.children.length)return g.HTMLResult.success({name:"div",children:[]});this[u.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank"};var r=this.subform.children[0];r.pageSet[u.$cleanPage]();var o=r.pageSet.pageArea.children,l={name:"div",children:[]},c=null,h=null,d=null;r.breakBefore.children.length>=1?d=(h=r.breakBefore.children[0]).target:r.subform.children.length>=1&&r.subform.children[0].breakBefore.children.length>=1?d=(h=r.subform.children[0].breakBefore.children[0]).target:r.break&&r.break.beforeTarget?d=(h=r.break).beforeTarget:r.subform.children.length>=1&&r.subform.children[0].break&&r.subform.children[0].break.beforeTarget&&(d=(h=r.subform.children[0].break).beforeTarget);if(h){var m=this[u.$searchNode](d,h[u.$getParent]());if(m instanceof Ke){c=m;h[u.$extra]={}}}c||(c=o[0]);c[u.$extra]={numberOfUse:1};var v,S=c[u.$getParent]();S[u.$extra]={numberOfUse:1,pageIndex:S.pageArea.children.indexOf(c),pageSetIndex:0};for(var k=null,_=null,C=!0,w=0,x=0,O=function _loop(){if(C)w=0;else{l.children.pop();if(3==++w){(0,y.warn)("XFA - Something goes wrong: please file a bug.");return{v:l}}}v=null;t[u.$extra].currentPageArea=c;var o=c[u.$toHTML]().html;l.children.push(o);if(k){t[u.$extra].noLayoutFailure=!0;o.children.push(k[u.$toHTML](c[u.$extra].space).html);k=null}if(_){t[u.$extra].noLayoutFailure=!0;o.children.push(_[u.$toHTML](c[u.$extra].space).html);_=null}var h=c.contentArea.children,d=o.children.filter((function(t){return t.attributes.class.includes("xfaContentarea")}));C=!1;t[u.$extra].firstUnsplittable=null;t[u.$extra].noLayoutFailure=!1;for(var m=function flush(t){var o=r[u.$flushHTML]();if(o){C=C||o.children&&0!==o.children.length;d[t].children.push(o)}},g=x,S=h.length;g<S;g++){var O=t[u.$extra].currentContentArea=h[g],T={width:O.w,height:O.h};x=0;if(k){d[g].children.push(k[u.$toHTML](T).html);k=null}if(_){d[g].children.push(_[u.$toHTML](T).html);_=null}var R=r[u.$toHTML](T);if(R.success){if(R.html){C=C||R.html.children&&0!==R.html.children.length;d[g].children.push(R.html)}else C||l.children.pop();return{v:l}}if(R.isBreak()){var E=R.breakNode;m(g);if("auto"===E.targetType)continue;E.leader&&(k=(k=t[u.$searchNode](E.leader,E[u.$getParent]()))?k[0]:null);E.trailer&&(_=(_=t[u.$searchNode](E.trailer,E[u.$getParent]()))?_[0]:null);if("pageArea"===E.targetType){v=E[u.$extra].target;g=1/0}else if(E[u.$extra].target){v=E[u.$extra].target;x=E[u.$extra].index+1;g=1/0}else g=E[u.$extra].index}else{if(t[u.$extra].overflowNode){if("continue"===function(){var r=t[u.$extra].overflowNode;t[u.$extra].overflowNode=null;var o=r[u.$getExtra](),l=o.target;o.addLeader=null!==o.leader;o.addTrailer=null!==o.trailer;m(g);g=1/0;if(l instanceof Ke)v=l;else if(l instanceof J){var c=h.findIndex((function(t){return t===l}));if(-1!==c)g=c-1;else{v=l[u.$getParent]();x=v.contentArea.children.findIndex((function(t){return t===l}))}}return"continue"}())continue}m(g)}}t[u.$extra].pageNumber+=1;v&&(v[u.$isUsable]()?v[u.$extra].numberOfUse+=1:v=null);c=v||c[u.$getNextPage]()};;){var T=O();if("object"===_typeof(T))return T.v}}}]);return Template}(u.XFAObject);r.Template=_t;var Ct=function(t){_inherits(Text,t);var r=_createSuper(Text);function Text(t){var o;_classCallCheck(this,Text);(o=r.call(this,k,"text")).id=t.id||"";o.maxChars=(0,g.getInteger)({data:t.maxChars,defaultValue:0,validate:function validate(t){return t>=0}});o.name=t.name||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Text,[{key:u.$acceptWhitespace,value:function value(){return!0}},{key:u.$onChild,value:function value(t){if(t[u.$namespaceId]===h.NamespaceIds.xhtml.id){this[u.$content]=t;return!0}(0,y.warn)("XFA - Invalid content in Text: ".concat(t[u.$nodeName],"."));return!1}},{key:u.$onText,value:function value(t){this[u.$content]instanceof u.XFAObject||_get(_getPrototypeOf(Text.prototype),u.$onText,this).call(this,t)}},{key:u.$toHTML,value:function value(t){if("string"==typeof this[u.$content]){var r=valueToHtml(this[u.$content]).html;if(this[u.$content].includes("\u2029")){r.name="div";r.children=[];this[u.$content].split("\u2029").map((function(t){return t.split(/[\u2028\n]/).reduce((function(t,r){t.push({name:"span",value:r},{name:"br"});return t}),[])})).forEach((function(t){r.children.push({name:"p",children:t})}))}else if(/[\u2028\n]/.test(this[u.$content])){r.name="div";r.children=[];this[u.$content].split(/[\u2028\n]/).forEach((function(t){r.children.push({name:"span",value:t},{name:"br"})}))}return g.HTMLResult.success(r)}return this[u.$content][u.$toHTML](t)}}]);return Text}(u.ContentObject);r.Text=Ct;var wt=function(t){_inherits(TextEdit,t);var r=_createSuper(TextEdit);function TextEdit(t){var o;_classCallCheck(this,TextEdit);(o=r.call(this,k,"textEdit",!0)).allowRichText=(0,g.getInteger)({data:t.allowRichText,defaultValue:0,validate:function validate(t){return 1===t}});o.hScrollPolicy=(0,g.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.multiLine=t.multiLine||"";o.use=t.use||"";o.usehref=t.usehref||"";o.vScrollPolicy=(0,g.getStringOption)(t.vScrollPolicy,["auto","off","on"]);o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(TextEdit,[{key:u.$clean,value:function value(t){_get(_getPrototypeOf(TextEdit.prototype),u.$clean,this).call(this,t);var r=this[u.$getParent]()instanceof se?1:0;this.multiLine=(0,g.getInteger)({data:this.multiLine,defaultValue:r,validate:function validate(t){return 0===t||1===t}})}},{key:u.$toHTML,value:function value(t){var r,o=(0,m.toStyle)(this,"border","font","margin"),l=this[u.$getParent]()[u.$getParent]();r=1===this.multiLine?{name:"textarea",attributes:{dataId:l[u.$data]&&l[u.$data][u.$uid]||l[u.$uid],fieldId:l[u.$uid],class:["xfaTextfield"],style:o}}:{name:"input",attributes:{type:"text",dataId:l[u.$data]&&l[u.$data][u.$uid]||l[u.$uid],fieldId:l[u.$uid],class:["xfaTextfield"],style:o}};return g.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}]);return TextEdit}(u.XFAObject),At=function(t){_inherits(Time,t);var r=_createSuper(Time);function Time(t){var o;_classCallCheck(this,Time);(o=r.call(this,k,"time")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Time,[{key:u.$finalize,value:function value(){var t=this[u.$content].trim();this[u.$content]=t?new Date(t):null}},{key:u.$toHTML,value:function value(t){return valueToHtml(this[u.$content]?this[u.$content].toString():"")}}]);return Time}(u.StringObject),xt=function(t){_inherits(TimeStamp,t);var r=_createSuper(TimeStamp);function TimeStamp(t){var o;_classCallCheck(this,TimeStamp);(o=r.call(this,k,"timeStamp")).id=t.id||"";o.server=t.server||"";o.type=(0,g.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return TimeStamp}(u.XFAObject),Ot=function(t){_inherits(ToolTip,t);var r=_createSuper(ToolTip);function ToolTip(t){var o;_classCallCheck(this,ToolTip);(o=r.call(this,k,"toolTip")).id=t.id||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return ToolTip}(u.StringObject),Pt=function(t){_inherits(Traversal,t);var r=_createSuper(Traversal);function Traversal(t){var o;_classCallCheck(this,Traversal);(o=r.call(this,k,"traversal",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.traverse=new u.XFAObjectArray;return o}return Traversal}(u.XFAObject),Tt=function(t){_inherits(Traverse,t);var r=_createSuper(Traverse);function Traverse(t){var o;_classCallCheck(this,Traverse);(o=r.call(this,k,"traverse",!0)).id=t.id||"";o.operation=(0,g.getStringOption)(t.operation,["next","back","down","first","left","right","up"]);o.ref=t.ref||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.script=null;return o}_createClass(Traverse,[{key:"name",get:function get(){return this.operation}},{key:u.$isTransparent,value:function value(){return!1}}]);return Traverse}(u.XFAObject),It=function(t){_inherits(Ui,t);var r=_createSuper(Ui);function Ui(t){var o;_classCallCheck(this,Ui);(o=r.call(this,k,"ui",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;o.barcode=null;o.button=null;o.checkButton=null;o.choiceList=null;o.dateTimeEdit=null;o.defaultUi=null;o.imageEdit=null;o.numericEdit=null;o.passwordEdit=null;o.signature=null;o.textEdit=null;return o}_createClass(Ui,[{key:u.$toHTML,value:function value(t){var r,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var l=r.value;if("extras"!==l&&"picture"!==l){var c=this[l];if(c instanceof u.XFAObject)return c[u.$toHTML](t)}}}catch(t){o.e(t)}finally{o.f()}return g.HTMLResult.EMPTY}}]);return Ui}(u.XFAObject),Ft=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){var o;_classCallCheck(this,Validate);(o=r.call(this,k,"validate",!0)).formatTest=(0,g.getStringOption)(t.formatTest,["warning","disabled","error"]);o.id=t.id||"";o.nullTest=(0,g.getStringOption)(t.nullTest,["disabled","error","warning"]);o.scriptTest=(0,g.getStringOption)(t.scriptTest,["error","disabled","warning"]);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.message=null;o.picture=null;o.script=null;return o}return Validate}(u.XFAObject),Rt=function(t){_inherits(Value,t);var r=_createSuper(Value);function Value(t){var o;_classCallCheck(this,Value);(o=r.call(this,k,"value",!0)).id=t.id||"";o.override=(0,g.getInteger)({data:t.override,defaultValue:0,validate:function validate(t){return 1===t}});o.relevant=(0,g.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.arc=null;o.boolean=null;o.date=null;o.dateTime=null;o.decimal=null;o.exData=null;o.float=null;o.image=null;o.integer=null;o.line=null;o.rectangle=null;o.text=null;o.time=null;return o}_createClass(Value,[{key:u.$setValue,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){var r=this[u.$getParent]();if(r instanceof _e&&r.ui&&r.ui.imageEdit){this.image||(this.image=new Ie({}));this.image[u.$content]=t[u.$content]}else{var o=t[u.$nodeName];if(null===this[o]){var l,c=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(c.s();!(l=c.n()).done;){var h=l.value,d=this[h];if(d instanceof u.XFAObject){this[h]=null;this[u.$removeChild](d)}}}catch(t){c.e(t)}finally{c.f()}this[t[u.$nodeName]]=t;this[u.$appendChild](t)}else this[o][u.$content]=t[u.$content]}}))},{key:u.$text,value:function value(){if(this.exData)return this.exData[u.$content][u.$text]().trim();var t,r=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("image"!==o){var l=this[o];if(l instanceof u.XFAObject)return(l[u.$content]||"").toString().trim()}}}catch(t){r.e(t)}finally{r.f()}return null}},{key:u.$toHTML,value:function value(t){var r,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var l=this[r.value];if(l instanceof u.XFAObject)return l[u.$toHTML](t)}}catch(t){o.e(t)}finally{o.f()}return g.HTMLResult.EMPTY}}]);return Value}(u.XFAObject);r.Value=Rt;var Et=function(t){_inherits(Variables,t);var r=_createSuper(Variables);function Variables(t){var o;_classCallCheck(this,Variables);(o=r.call(this,k,"variables",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new u.XFAObjectArray;o.date=new u.XFAObjectArray;o.dateTime=new u.XFAObjectArray;o.decimal=new u.XFAObjectArray;o.exData=new u.XFAObjectArray;o.float=new u.XFAObjectArray;o.image=new u.XFAObjectArray;o.integer=new u.XFAObjectArray;o.manifest=new u.XFAObjectArray;o.script=new u.XFAObjectArray;o.text=new u.XFAObjectArray;o.time=new u.XFAObjectArray;return o}_createClass(Variables,[{key:u.$isTransparent,value:function value(){return!0}}]);return Variables}(u.XFAObject),Bt=function(){function TemplateNamespace(){_classCallCheck(this,TemplateNamespace)}_createClass(TemplateNamespace,null,[{key:h.$buildXFAObject,value:function value(t,r){if(TemplateNamespace.hasOwnProperty(t)){var o=TemplateNamespace[t](r);o[u.$setSetAttributes](r);return o}}},{key:"appearanceFilter",value:function appearanceFilter(t){return new C(t)}},{key:"arc",value:function arc(t){return new w(t)}},{key:"area",value:function area(t){return new x(t)}},{key:"assist",value:function assist(t){return new O(t)}},{key:"barcode",value:function barcode(t){return new T(t)}},{key:"bind",value:function bind(t){return new R(t)}},{key:"bindItems",value:function bindItems(t){return new E(t)}},{key:"bookend",value:function bookend(t){return new M(t)}},{key:"boolean",value:function boolean(t){return new D(t)}},{key:"border",value:function border(t){return new j(t)}},{key:"break",value:function _break(t){return new L(t)}},{key:"breakAfter",value:function breakAfter(t){return new N(t)}},{key:"breakBefore",value:function breakBefore(t){return new U(t)}},{key:"button",value:function button(t){return new H(t)}},{key:"calculate",value:function calculate(t){return new W(t)}},{key:"caption",value:function caption(t){return new q(t)}},{key:"certificate",value:function certificate(t){return new $(t)}},{key:"certificates",value:function certificates(t){return new X(t)}},{key:"checkButton",value:function checkButton(t){return new z(t)}},{key:"choiceList",value:function choiceList(t){return new G(t)}},{key:"color",value:function color(t){return new V(t)}},{key:"comb",value:function comb(t){return new Y(t)}},{key:"connect",value:function connect(t){return new K(t)}},{key:"contentArea",value:function contentArea(t){return new J(t)}},{key:"corner",value:function corner(t){return new Q(t)}},{key:"date",value:function date(t){return new Z(t)}},{key:"dateTime",value:function dateTime(t){return new ee(t)}},{key:"dateTimeEdit",value:function dateTimeEdit(t){return new te(t)}},{key:"decimal",value:function decimal(t){return new re(t)}},{key:"defaultUi",value:function defaultUi(t){return new ae(t)}},{key:"desc",value:function desc(t){return new ne(t)}},{key:"digestMethod",value:function digestMethod(t){return new ie(t)}},{key:"digestMethods",value:function digestMethods(t){return new oe(t)}},{key:"draw",value:function draw(t){return new se(t)}},{key:"edge",value:function edge(t){return new le(t)}},{key:"encoding",value:function encoding(t){return new ce(t)}},{key:"encodings",value:function encodings(t){return new ue(t)}},{key:"encrypt",value:function encrypt(t){return new fe(t)}},{key:"encryptData",value:function encryptData(t){return new he(t)}},{key:"encryption",value:function encryption(t){return new de(t)}},{key:"encryptionMethod",value:function encryptionMethod(t){return new pe(t)}},{key:"encryptionMethods",value:function encryptionMethods(t){return new me(t)}},{key:"event",value:function event(t){return new ge(t)}},{key:"exData",value:function exData(t){return new ye(t)}},{key:"exObject",value:function exObject(t){return new ve(t)}},{key:"exclGroup",value:function exclGroup(t){return new be(t)}},{key:"execute",value:function execute(t){return new Se(t)}},{key:"extras",value:function extras(t){return new ke(t)}},{key:"field",value:function field(t){return new _e(t)}},{key:"fill",value:function fill(t){return new Ce(t)}},{key:"filter",value:function filter(t){return new we(t)}},{key:"float",value:function float(t){return new Ae(t)}},{key:"font",value:function font(t){return new xe(t)}},{key:"format",value:function format(t){return new Oe(t)}},{key:"handler",value:function handler(t){return new Pe(t)}},{key:"hyphenation",value:function hyphenation(t){return new Te(t)}},{key:"image",value:function image(t){return new Ie(t)}},{key:"imageEdit",value:function imageEdit(t){return new Fe(t)}},{key:"integer",value:function integer(t){return new Re(t)}},{key:"issuers",value:function issuers(t){return new Ee(t)}},{key:"items",value:function items(t){return new Be(t)}},{key:"keep",value:function keep(t){return new Me(t)}},{key:"keyUsage",value:function keyUsage(t){return new De(t)}},{key:"line",value:function line(t){return new je(t)}},{key:"linear",value:function linear(t){return new Le(t)}},{key:"lockDocument",value:function lockDocument(t){return new Ne(t)}},{key:"manifest",value:function manifest(t){return new Ue(t)}},{key:"margin",value:function margin(t){return new He(t)}},{key:"mdp",value:function mdp(t){return new We(t)}},{key:"medium",value:function medium(t){return new qe(t)}},{key:"message",value:function message(t){return new $e(t)}},{key:"numericEdit",value:function numericEdit(t){return new Xe(t)}},{key:"occur",value:function occur(t){return new ze(t)}},{key:"oid",value:function oid(t){return new Ge(t)}},{key:"oids",value:function oids(t){return new Ve(t)}},{key:"overflow",value:function overflow(t){return new Ye(t)}},{key:"pageArea",value:function pageArea(t){return new Ke(t)}},{key:"pageSet",value:function pageSet(t){return new Je(t)}},{key:"para",value:function para(t){return new Qe(t)}},{key:"passwordEdit",value:function passwordEdit(t){return new Ze(t)}},{key:"pattern",value:function pattern(t){return new et(t)}},{key:"picture",value:function picture(t){return new tt(t)}},{key:"proto",value:function proto(t){return new rt(t)}},{key:"radial",value:function radial(t){return new at(t)}},{key:"reason",value:function reason(t){return new nt(t)}},{key:"reasons",value:function reasons(t){return new it(t)}},{key:"rectangle",value:function rectangle(t){return new ot(t)}},{key:"ref",value:function ref(t){return new st(t)}},{key:"script",value:function script(t){return new lt(t)}},{key:"setProperty",value:function setProperty(t){return new ct(t)}},{key:"signData",value:function signData(t){return new ut(t)}},{key:"signature",value:function signature(t){return new ft(t)}},{key:"signing",value:function signing(t){return new ht(t)}},{key:"solid",value:function solid(t){return new dt(t)}},{key:"speak",value:function speak(t){return new mt(t)}},{key:"stipple",value:function stipple(t){return new gt(t)}},{key:"subform",value:function subform(t){return new yt(t)}},{key:"subformSet",value:function subformSet(t){return new vt(t)}},{key:"subjectDN",value:function subjectDN(t){return new bt(t)}},{key:"subjectDNs",value:function subjectDNs(t){return new St(t)}},{key:"submit",value:function submit(t){return new kt(t)}},{key:"template",value:function template(t){return new _t(t)}},{key:"text",value:function text(t){return new Ct(t)}},{key:"textEdit",value:function textEdit(t){return new wt(t)}},{key:"time",value:function time(t){return new At(t)}},{key:"timeStamp",value:function timeStamp(t){return new xt(t)}},{key:"toolTip",value:function toolTip(t){return new Ot(t)}},{key:"traversal",value:function traversal(t){return new Pt(t)}},{key:"traverse",value:function traverse(t){return new Tt(t)}},{key:"ui",value:function ui(t){return new It(t)}},{key:"validate",value:function validate(t){return new Ft(t)}},{key:"value",value:function value(t){return new Rt(t)}},{key:"variables",value:function variables(t){return new Et(t)}}]);return TemplateNamespace}();r.TemplateNamespace=Bt},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.addHTML=function addHTML(t,r,o){var u=t[l.$extra],h=u.availableSpace,d=_slicedToArray(o,4),m=d[0],g=d[1],y=d[2],v=d[3];switch(t.layout){case"position":u.width=Math.max(u.width,m+y);u.height=Math.max(u.height,g+v);u.children.push(r);break;case"lr-tb":case"rl-tb":if(!u.line||1===u.attempt){u.line=createLine(t,[]);u.children.push(u.line);u.numberInLine=0}u.numberInLine+=1;u.line.children.push(r);if(0===u.attempt){u.currentWidth+=y;u.height=Math.max(u.height,u.prevHeight+v)}else{u.currentWidth=y;u.prevHeight=u.height;u.height+=v;u.attempt=0}u.width=Math.max(u.width,u.currentWidth);break;case"rl-row":case"row":u.children.push(r);u.width+=y;u.height=Math.max(u.height,v);var S,k=(0,c.measureToString)(u.height),_=function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(u.children);try{for(_.s();!(S=_.n()).done;){S.value.attributes.style.height=k}}catch(t){_.e(t)}finally{_.f()}break;case"table":u.width=Math.min(h.width,Math.max(u.width,y));u.height+=v;u.children.push(r);break;case"tb":u.width=h.width;u.height+=v;u.children.push(r)}};r.checkDimensions=function checkDimensions(t,r){if(null===t[l.$getTemplateRoot]()[l.$extra].firstUnsplittable)return!0;if(0===t.w||0===t.h)return!0;var o=t[l.$getSubformParent](),c=o[l.$extra]&&o[l.$extra].attempt||0,u=_slicedToArray(function getTransformedBBox(t){var r,o,l=""===t.w?NaN:t.w,c=""===t.h?NaN:t.h,u=0,h=0;switch(t.anchorType||""){case"bottomCenter":u=l/2;h=c;break;case"bottomLeft":u=0;h=c;break;case"bottomRight":u=l;h=c;break;case"middleCenter":u=l/2;h=c/2;break;case"middleLeft":u=0;h=c/2;break;case"middleRight":u=l;h=c/2;break;case"topCenter":u=l/2;h=0;break;case"topRight":u=l;h=0}switch(t.rotate||0){case 0:r=-u;o=-h;break;case 90:r=-h;o=u;var d=[c,-l];l=d[0];c=d[1];break;case 180:r=u;o=h;var m=[-l,-c];l=m[0];c=m[1];break;case 270:r=h;o=-u;var g=[-c,l];l=g[0];c=g[1]}return[t.x+r+Math.min(0,l),t.y+o+Math.min(0,c),Math.abs(l),Math.abs(c)]}(t),4),h=u[1],d=u[2],m=u[3];switch(o.layout){case"lr-tb":case"rl-tb":return 0===c?t[l.$getTemplateRoot]()[l.$extra].noLayoutFailure?""!==t.w?Math.round(d-r.width)<=2:r.width>0:!(""!==t.h&&Math.round(m-r.height)>2)&&(""!==t.w?Math.round(d-r.width)<=2||0===o[l.$extra].numberInLine&&r.height>0:r.width>0):!!t[l.$getTemplateRoot]()[l.$extra].noLayoutFailure||!(""!==t.h&&Math.round(m-r.height)>2)&&((""===t.w||Math.round(d-r.width)<=2||!o[l.$isThereMoreWidth]())&&r.height>0);case"table":case"tb":return!!t[l.$getTemplateRoot]()[l.$extra].noLayoutFailure||(""===t.h||t[l.$isSplittable]()?(""===t.w||Math.round(d-r.width)<=2||!o[l.$isThereMoreWidth]())&&r.height>0:Math.round(m-r.height)<=2);case"position":if(t[l.$getTemplateRoot]()[l.$extra].noLayoutFailure)return!0;if(""===t.h||Math.round(m+h-r.height)<=2)return!0;var g=t[l.$getTemplateRoot]()[l.$extra].currentContentArea;return m+h>g.h;case"rl-row":case"row":return!!t[l.$getTemplateRoot]()[l.$extra].noLayoutFailure||(""===t.h||Math.round(m-r.height)<=2);default:return!0}};r.flushHTML=function flushHTML(t){if(!t[l.$extra])return null;var r={name:"div",attributes:t[l.$extra].attributes,children:t[l.$extra].children};if(t[l.$extra].failingNode){var o=t[l.$extra].failingNode[l.$flushHTML]();o&&(t.layout.endsWith("-tb")?r.children.push(createLine(t,[o])):r.children.push(o))}if(0===r.children.length)return null;return r};r.getAvailableSpace=function getAvailableSpace(t){var r=t[l.$extra].availableSpace,o=t.margin?t.margin.topInset+t.margin.bottomInset:0,c=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return 0===t[l.$extra].attempt?{width:r.width-c-t[l.$extra].currentWidth,height:r.height-o-t[l.$extra].prevHeight}:{width:r.width-c,height:r.height-o-t[l.$extra].height};case"rl-row":case"row":return{width:t[l.$extra].columnWidths.slice(t[l.$extra].currentColumn).reduce((function(t,r){return t+r})),height:r.height-c};case"table":case"tb":return{width:r.width-c,height:r.height-o-t[l.$extra].height};case"position":default:return r}};var l=o(184),c=o(191);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function createLine(t,r){return{name:"div",attributes:{class:["lr-tb"===t.layout?"xfaLr":"xfaRl"]},children:r}}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.computeBbox=function computeBbox(t,r,o){var c;if(""!==t.w&&""!==t.h)c=[t.x,t.y,t.w,t.h];else{if(!o)return null;var u=t.w;if(""===u){if(0===t.maxW){var h=t[l.$getSubformParent]();u="position"===h.layout&&""!==h.w?0:t.minW}else u=Math.min(t.maxW,o.width);r.attributes.style.width=measureToString(u)}var d=t.h;if(""===d){if(0===t.maxH){var m=t[l.$getSubformParent]();d="position"===m.layout&&""!==m.h?0:t.minH}else d=Math.min(t.maxH,o.height);r.attributes.style.height=measureToString(d)}c=[t.x,t.y,u,d]}return c};r.createWrapper=function createWrapper(t,r){var o=r.attributes,c=o.style,u={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};o.class.push("xfaWrapped");if(t.border){var h,d,m=t.border[l.$extra],g=m.widths,y=m.insets,v=y[0],S=y[3],k=y[0]+y[2],_=y[1]+y[3];switch(t.border.hand){case"even":v-=g[0]/2;S-=g[3]/2;h="calc(100% + ".concat((g[1]+g[3])/2-_,"px)");d="calc(100% + ".concat((g[0]+g[2])/2-k,"px)");break;case"left":v-=g[0];S-=g[3];h="calc(100% + ".concat(g[1]+g[3]-_,"px)");d="calc(100% + ".concat(g[0]+g[2]-k,"px)");break;case"right":h=_?"calc(100% - ".concat(_,"px)"):"100%";d=k?"calc(100% - ".concat(k,"px)"):"100%"}var C=["xfaBorder"];isPrintOnly(t.border)&&C.push("xfaPrintOnly");for(var w={name:"div",attributes:{class:C,style:{top:"".concat(v,"px"),left:"".concat(S,"px"),width:h,height:d}},children:[]},x=0,O=["border","borderWidth","borderColor","borderRadius","borderStyle"];x<O.length;x++){var T=O[x];if(void 0!==c[T]){w.attributes.style[T]=c[T];delete c[T]}}u.children.push(w,r)}else u.children.push(r);for(var R=0,E=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];R<E.length;R++){var M=E[R];if(void 0!==c[M]){u.attributes.style[M]=c[M];delete c[M]}}"absolute"===c.position?u.attributes.style.position="absolute":u.attributes.style.position="relative";delete c.position;if(c.alignSelf){u.attributes.style.alignSelf=c.alignSelf;delete c.alignSelf}return u};r.fixDimensions=function fixDimensions(t){var r=t[l.$getSubformParent]();if(r.layout&&r.layout.includes("row")){var o,c=r[l.$extra],u=t.colSpan;o=-1===u?c.columnWidths.slice(c.currentColumn).reduce((function(t,r){return t+r}),0):c.columnWidths.slice(c.currentColumn,c.currentColumn+u).reduce((function(t,r){return t+r}),0);isNaN(o)||(t.w=o)}r.layout&&"position"!==r.layout&&(t.x=t.y=0);"table"===t.layout&&""===t.w&&Array.isArray(t.columnWidths)&&(t.w=t.columnWidths.reduce((function(t,r){return t+r}),0))};r.fixTextIndent=function fixTextIndent(t){var r=(0,c.getMeasurement)(t.textIndent,"0px");if(r>=0)return;var o="padding"+("left"==("right"===t.textAlign?"right":"left")?"Left":"Right"),l=(0,c.getMeasurement)(t[o],"0px");t[o]="".concat(l-r,"px")};r.isPrintOnly=isPrintOnly;r.layoutClass=function layoutClass(t){switch(t.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}};r.layoutNode=function layoutNode(t,r){var o=null,c=null,u=!1;if((!t.w||!t.h)&&t.value){var h=0,d=0;if(t.margin){h=t.margin.leftInset+t.margin.rightInset;d=t.margin.topInset+t.margin.bottomInset}var m=null,g=null;if(t.para){g=Object.create(null);m=""===t.para.lineHeight?null:t.para.lineHeight;g.top=""===t.para.spaceAbove?0:t.para.spaceAbove;g.bottom=""===t.para.spaceBelow?0:t.para.spaceBelow;g.left=""===t.para.marginLeft?0:t.para.marginLeft;g.right=""===t.para.marginRight?0:t.para.marginRight}var y=t.font;if(!y)for(var v=t[l.$getTemplateRoot](),S=t[l.$getParent]();S!==v;){if(S.font){y=S.font;break}S=S[l.$getParent]()}var k=t.w?t.w:r.width,_=t[l.$globalData].fontFinder;if(t.value.exData&&t.value.exData[l.$content]&&"text/html"===t.value.exData.contentType){var C=layoutText(t.value.exData[l.$content],y,g,m,_,k);c=C.width;o=C.height;u=C.isBroken}else{var w=t.value[l.$text]();if(w){var x=layoutText(w,y,g,m,_,k);c=x.width;o=x.height;u=x.isBroken}}null===c||t.w||(c+=h);null===o||t.h||(o+=d)}return{w:c,h:o,isBroken:u}};r.measureToString=measureToString;r.setAccess=function setAccess(t,r){switch(t.access){case"nonInteractive":r.push("xfaNonInteractive");break;case"readOnly":r.push("xfaReadOnly");break;case"protected":r.push("xfaDisabled")}};r.setFontFamily=function setFontFamily(t,r,o){var l=(0,c.stripQuotes)(t.typeface),h=r.find(l);o.fontFamily='"'.concat(l,'"');if(h){var d=h.regular.cssFontInfo.fontFamily;d!==l&&(o.fontFamily='"'.concat(d,'"'));if(o.lineHeight)return;var m=(0,u.selectFont)(t,h);m&&m.lineHeight>0?o.lineHeight=Math.max(1.2,m.lineHeight):o.lineHeight=1.2}};r.setMinMaxDimensions=function setMinMaxDimensions(t,r){if("position"===t[l.$getSubformParent]().layout){t.minW>0&&(r.minWidth=measureToString(t.minW));t.maxW>0&&(r.maxWidth=measureToString(t.maxW));t.minH>0&&(r.minHeight=measureToString(t.minH));t.maxH>0&&(r.maxHeight=measureToString(t.maxH))}};r.setPara=function setPara(t,r,o){if(o.attributes.class&&o.attributes.class.includes("xfaRich")){if(r){""===t.h&&(r.height="auto");""===t.w&&(r.width="auto")}if(t.para){var c=o.attributes.style;c.display="flex";c.flexDirection="column";switch(t.para.vAlign){case"top":c.justifyContent="start";break;case"bottom":c.justifyContent="end";break;case"middle":c.justifyContent="center"}for(var u=t.para[l.$toStyle](),h=0,d=Object.entries(u);h<d.length;h++){var m=(v=d[h],S=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(v)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(v,S)||function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(v,S)||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.")}()),g=m[0],y=m[1];g in c||(c[g]=y)}}}var v,S};r.toStyle=function toStyle(t){for(var r=Object.create(null),o=arguments.length,c=new Array(o>1?o-1:0),u=1;u<o;u++)c[u-1]=arguments[u];for(var h=0,g=c;h<g.length;h++){var y=g[h],v=t[y];if(null!==v)if(m.hasOwnProperty(y))m[y](t,r);else if(v instanceof l.XFAObject){var S=v[l.$toStyle]();S?Object.assign(r,S):(0,d.warn)("(DEBUG) - XFA - style for ".concat(y," not implemented yet"))}}return r};var l=o(184),c=o(185),u=o(192),h=o(193),d=o(4);function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function measureToString(t){return"string"==typeof t?"0px":Number.isInteger(t)?"".concat(t,"px"):"".concat(t.toFixed(2),"px")}var m={anchorType:function anchorType(t,r){var o=t[l.$getSubformParent]();if(o&&(!o.layout||"position"===o.layout)){"transform"in r||(r.transform="");switch(t.anchorType){case"bottomCenter":r.transform+="translate(-50%, -100%)";break;case"bottomLeft":r.transform+="translate(0,-100%)";break;case"bottomRight":r.transform+="translate(-100%,-100%)";break;case"middleCenter":r.transform+="translate(-50%,-50%)";break;case"middleLeft":r.transform+="translate(0,-50%)";break;case"middleRight":r.transform+="translate(-100%,-50%)";break;case"topCenter":r.transform+="translate(-50%,0)";break;case"topRight":r.transform+="translate(-100%,0)"}}},dimensions:function dimensions(t,r){var o=t[l.$getSubformParent](),c=t.w,u=t.h;if(o.layout&&o.layout.includes("row")){var h,d=o[l.$extra],m=t.colSpan;if(-1===m){h=d.columnWidths.slice(d.currentColumn).reduce((function(t,r){return t+r}),0);d.currentColumn=0}else{h=d.columnWidths.slice(d.currentColumn,d.currentColumn+m).reduce((function(t,r){return t+r}),0);d.currentColumn=(d.currentColumn+t.colSpan)%d.columnWidths.length}isNaN(h)||(c=t.w=h)}r.width=""!==c?measureToString(c):"auto";r.height=""!==u?measureToString(u):"auto"},position:function position(t,r){var o=t[l.$getSubformParent]();if(!o||!o.layout||"position"===o.layout){r.position="absolute";r.left=measureToString(t.x);r.top=measureToString(t.y)}},rotate:function rotate(t,r){if(t.rotate){"transform"in r||(r.transform="");r.transform+="rotate(-".concat(t.rotate,"deg)");r.transformOrigin="top left"}},presence:function presence(t,r){switch(t.presence){case"invisible":r.visibility="hidden";break;case"hidden":case"inactive":r.display="none"}},hAlign:function hAlign(t,r){if("para"===t[l.$nodeName])switch(t.hAlign){case"justifyAll":r.textAlign="justify-all";break;case"radix":r.textAlign="left";break;default:r.textAlign=t.hAlign}else switch(t.hAlign){case"left":r.alignSelf="start";break;case"center":r.alignSelf="center";break;case"right":r.alignSelf="end"}},margin:function margin(t,r){t.margin&&(r.margin=t.margin[l.$toStyle]().margin)}};function layoutText(t,r,o,c,u,d){var m=new h.TextMeasure(r,o,c,u);"string"==typeof t?m.addString(t):t[l.$pushGlyphs](m);return m.compute(d)}function isPrintOnly(t){return t.relevant.length>0&&!t.relevant[0].excluded&&"print"===t.relevant[0].viewname}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.selectFont=function selectFont(t,r){if("italic"===t.posture)return"bold"===t.weight?r.bolditalic:r.italic;if("bold"===t.weight)return r.bold;return r.regular};r.FontFinder=void 0;var l=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=function(){function FontFinder(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FontFinder);this.fonts=new Map;this.cache=new Map;this.warned=new Set;this.defaultFont=null;this.add(t)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(FontFinder,[{key:"add",value:function add(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var c=r.value;this.addPdfFont(c)}}catch(t){l.e(t)}finally{l.f()}var u,h=_createForOfIteratorHelper(this.fonts.values());try{for(h.s();!(u=h.n()).done;){var d=u.value;d.regular||(d.regular=d.italic||d.bold||d.bolditalic)}}catch(t){h.e(t)}finally{h.f()}if(o&&0!==o.size){var m,g=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),y=_createForOfIteratorHelper(o);try{for(y.s();!(m=y.n()).done;){var v=m.value;this.fonts.set(v,g)}}catch(t){y.e(t)}finally{y.f()}}}},{key:"addPdfFont",value:function addPdfFont(t){var r=t.cssFontInfo,o=r.fontFamily,l=this.fonts.get(o);if(!l){l=Object.create(null);this.fonts.set(o,l);this.defaultFont||(this.defaultFont=l)}var c="",u=parseFloat(r.fontWeight);0!==parseFloat(r.italicAngle)?c=u>=700?"bolditalic":"italic":u>=700&&(c="bold");if(!c){(t.name.includes("Bold")||t.psName&&t.psName.includes("Bold"))&&(c="bold");(t.name.includes("Italic")||t.name.endsWith("It")||t.psName&&(t.psName.includes("Italic")||t.psName.endsWith("It")))&&(c+="italic")}c||(c="regular");l[c]=t}},{key:"getDefault",value:function getDefault(){return this.defaultFont}},{key:"find",value:function find(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.fonts.get(t)||this.cache.get(t);if(o)return o;var c=/,|-|_| |bolditalic|bold|italic|regular|it/gi,u=t.replace(c,"");if(o=this.fonts.get(u)){this.cache.set(t,o);return o}u=u.toLowerCase();var h,d=[],m=_createForOfIteratorHelper(this.fonts.entries());try{for(m.s();!(h=m.n()).done;){var g=_slicedToArray(h.value,2),y=g[0],v=g[1];y.replace(c,"").toLowerCase().startsWith(u)&&d.push(v)}}catch(t){m.e(t)}finally{m.f()}if(0===d.length){var S,k=_createForOfIteratorHelper(this.fonts.entries());try{for(k.s();!(S=k.n()).done;){var _=_slicedToArray(S.value,2),C=_[1];C.regular.name&&C.regular.name.replace(c,"").toLowerCase().startsWith(u)&&d.push(C)}}catch(t){k.e(t)}finally{k.f()}}if(0===d.length){u=u.replace(/psmt|mt/gi,"");var w,x=_createForOfIteratorHelper(this.fonts.entries());try{for(x.s();!(w=x.n()).done;){var O=_slicedToArray(w.value,2),T=O[0],R=O[1];T.replace(c,"").toLowerCase().startsWith(u)&&d.push(R)}}catch(t){x.e(t)}finally{x.f()}}if(0===d.length){var E,M=_createForOfIteratorHelper(this.fonts.values());try{for(M.s();!(E=M.n()).done;){var D=E.value;D.regular.name&&D.regular.name.replace(c,"").toLowerCase().startsWith(u)&&d.push(D)}}catch(t){M.e(t)}finally{M.f()}}if(d.length>=1){1!==d.length&&r&&(0,l.warn)("XFA - Too many choices to guess the correct font: ".concat(t));this.cache.set(t,d[0]);return d[0]}if(r&&!this.warned.has(t)){this.warned.add(t);(0,l.warn)("XFA - Cannot find the font: ".concat(t))}return null}}]);return FontFinder}();r.FontFinder=c},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.TextMeasure=void 0;var l=o(192);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var c=function(){function FontInfo(t,r,o,c){_classCallCheck(this,FontInfo);this.lineHeight=o;this.paraMargin=r||{top:0,bottom:0,left:0,right:0};if(t){this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};var u=c.find(t.typeface);if(u){this.pdfFont=(0,l.selectFont)(t,u);if(!this.pdfFont){var h=_slicedToArray(this.defaultFont(c),2);this.pdfFont=h[0];this.xfaFont=h[1]}}else{var d=_slicedToArray(this.defaultFont(c),2);this.pdfFont=d[0];this.xfaFont=d[1]}}else{var m=_slicedToArray(this.defaultFont(c),2);this.pdfFont=m[0];this.xfaFont=m[1]}}_createClass(FontInfo,[{key:"defaultFont",value:function defaultFont(t){var r=t.find("Helvetica",!1)||t.find("Myriad Pro",!1)||t.find("Arial",!1)||t.getDefault();if(r&&r.regular){var o=r.regular;return[o,{typeface:o.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}]);return FontInfo}(),u=function(){function FontSelector(t,r,o,l){_classCallCheck(this,FontSelector);this.fontFinder=l;this.stack=[new c(t,r,o,l)]}_createClass(FontSelector,[{key:"pushData",value:function pushData(t,r,o){for(var l=this.stack[this.stack.length-1],u=0,h=["typeface","posture","weight","size","letterSpacing"];u<h.length;u++){var d=h[u];t[d]||(t[d]=l.xfaFont[d])}for(var m=0,g=["top","bottom","left","right"];m<g.length;m++){var y=g[m];isNaN(r[y])&&(r[y]=l.paraMargin[y])}var v=new c(t,r,o||l.lineHeight,this.fontFinder);v.pdfFont||(v.pdfFont=l.pdfFont);this.stack.push(v)}},{key:"popFont",value:function popFont(){this.stack.pop()}},{key:"topFont",value:function topFont(){return this.stack[this.stack.length-1]}}]);return FontSelector}(),h=function(){function TextMeasure(t,r,o,l){_classCallCheck(this,TextMeasure);this.glyphs=[];this.fontSelector=new u(t,r,o,l);this.extraHeight=0}_createClass(TextMeasure,[{key:"pushData",value:function pushData(t,r,o){this.fontSelector.pushData(t,r,o)}},{key:"popFont",value:function popFont(t){return this.fontSelector.popFont()}},{key:"addPara",value:function addPara(){var t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}},{key:"addString",value:function addString(t){if(t){var r=this.fontSelector.topFont(),o=r.xfaFont.size;if(r.pdfFont){var l,c=r.xfaFont.letterSpacing,u=r.pdfFont,h=r.lineHeight||Math.ceil(Math.max(1.2,u.lineHeight)*o),d=o/1e3,m=_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(m.s();!(l=m.n()).done;){var g,y=l.value,v=u.encodeString(y).join(""),S=_createForOfIteratorHelper(u.charsToGlyphs(v));try{for(S.s();!(g=S.n()).done;){var k=g.value;this.glyphs.push([k.width*d+c,h," "===k.unicode,!1])}}catch(t){S.e(t)}finally{S.f()}this.glyphs.push([0,0,!1,!0])}}catch(t){m.e(t)}finally{m.f()}this.glyphs.pop()}else{var _,C=_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(C.s();!(_=C.n()).done;){var w,x=_createForOfIteratorHelper(_.value.split(""));try{for(x.s();!(w=x.n()).done;){var O=w.value;this.glyphs.push([o,o," "===O,!1])}}catch(t){x.e(t)}finally{x.f()}this.glyphs.push([0,0,!1,!0])}}catch(t){C.e(t)}finally{C.f()}this.glyphs.pop()}}}},{key:"compute",value:function compute(t){for(var r=-1,o=0,l=0,c=0,u=0,h=0,d=!1,m=0,g=this.glyphs.length;m<g;m++){var y=_slicedToArray(this.glyphs[m],4),v=y[0],S=y[1],k=y[2];if(y[3]){l=Math.max(l,u);u=0;c+=h;h=S;r=-1;o=0}else if(k)if(u+v>t){l=Math.max(l,u);u=0;c+=h;h=S;r=-1;o=0;d=!0}else{h=Math.max(S,h);o=u;u+=v;r=m}else if(u+v>t){c+=h;h=S;if(-1!==r){m=r;l=Math.max(l,o);u=0;r=-1;o=0}else{l=Math.max(l,u);u=v}d=!0}else{u+=v;h=Math.max(S,h)}}return{width:1.01*(l=Math.max(l,u)),height:c+=h+this.extraHeight,isBroken:d}}}]);return TextMeasure}();r.TextMeasure=h},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.DataHandler=void 0;var l=o(184);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=function(){function DataHandler(t,r){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DataHandler);this.data=r;this.dataset=t.datasets||null}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(DataHandler,[{key:"serialize",value:function serialize(t){for(var r=[[-1,this.data[l.$getChildren]()]];r.length>0;){var o=r[r.length-1],c=_slicedToArray(o,2),u=c[0],h=c[1];if(u+1!==h.length){var d=h[++o[0]],m=t.get(d[l.$uid]);if(m)d[l.$setValue](m);else{var g,y=_createForOfIteratorHelper(d[l.$getAttributes]().values());try{for(y.s();!(g=y.n()).done;){var v=g.value,S=t.get(v[l.$uid]);if(S){v[l.$setValue](S);break}}}catch(t){y.e(t)}finally{y.f()}}var k=d[l.$getChildren]();k.length>0&&r.push([-1,k])}else r.pop()}var _=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset){var C,w=_createForOfIteratorHelper(this.dataset[l.$getChildren]());try{for(w.s();!(C=w.n()).done;){var x=C.value;"data"!==x[l.$nodeName]&&x[l.$toString](_)}}catch(t){w.e(t)}finally{w.f()}}this.data[l.$toString](_);_.push("</xfa:datasets>");return _.join("")}}]);return DataHandler}();r.DataHandler=c},(t,r,o)=>{"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.XFAParser=void 0;var l=o(184),c=o(177),u=o(196),h=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}(XFAParser,t);var r=_createSuper(XFAParser);function XFAParser(){var t;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAParser);(t=r.call(this))._builder=new u.Builder;t._stack=[];t._globalData={usedTypefaces:new Set};t._ids=new Map;t._current=t._builder.buildRoot(t._ids);t._errorCode=c.XMLParserErrorCode.NoError;t._whiteRegex=/^\s+$/;t._nbsps=/\xa0+/g;return t}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(XFAParser,[{key:"parse",value:function parse(t){this.parseXml(t);if(this._errorCode===c.XMLParserErrorCode.NoError){this._current[l.$finalize]();return this._current.element}}},{key:"onText",value:function onText(t){t=t.replace(this._nbsps,(function(t){return t.slice(1)+" "}));this._current[l.$acceptWhitespace]()?this._current[l.$onText](t):this._whiteRegex.test(t)||this._current[l.$onText](t.trim())}},{key:"onCdata",value:function onCdata(t){this._current[l.$onText](t)}},{key:"_mkAttributes",value:function _mkAttributes(t,r){var o,c=null,u=null,d=Object.create({}),m=function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(m.s();!(o=m.n()).done;){var g=o.value,y=g.name,v=g.value;if("xmlns"===y)c?(0,h.warn)("XFA - multiple namespace definition in <".concat(r,">")):c=v;else if(y.startsWith("xmlns:")){var S=y.substring("xmlns:".length);u||(u=[]);u.push({prefix:S,value:v})}else{var k=y.indexOf(":");if(-1===k)d[y]=v;else{var _=d[l.$nsAttributes];_||(_=d[l.$nsAttributes]=Object.create(null));var C=[y.slice(0,k),y.slice(k+1)],w=C[0],x=C[1],O=_[w];O||(O=_[w]=Object.create(null));O[x]=v}}}}catch(t){m.e(t)}finally{m.f()}return[c,u,d]}},{key:"_getNameAndPrefix",value:function _getNameAndPrefix(t,r){var o=t.indexOf(":");return-1===o?[t,null]:[t.substring(o+1),r?"":t.substring(0,o)]}},{key:"onBeginElement",value:function onBeginElement(t,r,o){var c=_slicedToArray(this._mkAttributes(r,t),3),u=c[0],h=c[1],d=c[2],m=_slicedToArray(this._getNameAndPrefix(t,this._builder.isNsAgnostic()),2),g=m[0],y=m[1],v=this._builder.build({nsPrefix:y,name:g,attributes:d,namespace:u,prefixes:h});v[l.$globalData]=this._globalData;if(o){v[l.$finalize]();this._current[l.$onChild](v)&&v[l.$setId](this._ids);v[l.$clean](this._builder)}else{this._stack.push(this._current);this._current=v}}},{key:"onEndElement",value:function onEndElement(t){var r=this._current;if(r[l.$isCDATAXml]()&&"string"==typeof r[l.$content]){var o=new XFAParser;o._globalData=this._globalData;var c=o.parse(r[l.$content]);r[l.$content]=null;r[l.$onChild](c)}r[l.$finalize]();this._current=this._stack.pop();this._current[l.$onChild](r)&&r[l.$setId](this._ids);r[l.$clean](this._builder)}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return XFAParser}(c.XMLParserBase);r.XFAParser=d},(t,r,o)=>{"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.Builder=void 0;var l=o(186),c=o(184),u=o(197),h=o(189),d=o(206),m=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(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 _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 g=function(t){_inherits(Root,t);var r=_createSuper(Root);function Root(t){var o;_classCallCheck(this,Root);(o=r.call(this,-1,"root",Object.create(null))).element=null;o[c.$ids]=t;return o}_createClass(Root,[{key:c.$onChild,value:function value(t){this.element=t;return!0}},{key:c.$finalize,value:function value(){_get(_getPrototypeOf(Root.prototype),c.$finalize,this).call(this);if(this.element.template instanceof h.Template){this[c.$ids].set(c.$root,this.element);this.element.template[c.$resolvePrototypes](this[c.$ids]);this.element.template[c.$ids]=this[c.$ids]}}}]);return Root}(c.XFAObject),y=function(t){_inherits(Empty,t);var r=_createSuper(Empty);function Empty(){_classCallCheck(this,Empty);return r.call(this,-1,"",Object.create(null))}_createClass(Empty,[{key:c.$onChild,value:function value(t){return!1}}]);return Empty}(c.XFAObject),v=function(){function Builder(){_classCallCheck(this,Builder);this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max.apply(Math,_toConsumableArray(Object.values(l.NamespaceIds).map((function(t){return t.id}))));this._currentNamespace=new d.UnknownNamespace(++this._nextNsId)}_createClass(Builder,[{key:"buildRoot",value:function buildRoot(t){return new g(t)}},{key:"build",value:function build(t){var r=t.nsPrefix,o=t.name,h=t.attributes,d=t.namespace,m=t.prefixes,g=null!==d;if(g){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(d)}m&&this._addNamespacePrefix(m);if(h.hasOwnProperty(c.$nsAttributes)){for(var v=u.NamespaceSetUp.datasets,S=h[c.$nsAttributes],k=null,_=0,C=Object.entries(S);_<C.length;_++){var w=_slicedToArray(C[_],2),x=w[0],O=w[1];if(this._getNamespaceToUse(x)===v){k={xfa:O};break}}k?h[c.$nsAttributes]=k:delete h[c.$nsAttributes]}var T=this._getNamespaceToUse(r),R=T&&T[l.$buildXFAObject](o,h)||new y;R[c.$isNsAgnostic]()&&this._nsAgnosticLevel++;(g||m||R[c.$isNsAgnostic]())&&(R[c.$cleanup]={hasNamespace:g,prefixes:m,nsAgnostic:R[c.$isNsAgnostic]()});return R}},{key:"isNsAgnostic",value:function isNsAgnostic(){return this._nsAgnosticLevel>0}},{key:"_searchNamespace",value:function _searchNamespace(t){var r=this._namespaces.get(t);if(r)return r;for(var o=0,c=Object.entries(l.NamespaceIds);o<c.length;o++){var h=_slicedToArray(c[o],2),m=h[0];if((0,h[1].check)(t)){if(r=u.NamespaceSetUp[m]){this._namespaces.set(t,r);return r}break}}r=new d.UnknownNamespace(++this._nextNsId);this._namespaces.set(t,r);return r}},{key:"_addNamespacePrefix",value:function _addNamespacePrefix(t){var r,o=function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(o.s();!(r=o.n()).done;){var l=r.value,c=l.prefix,u=l.value,h=this._searchNamespace(u),d=this._namespacePrefixes.get(c);if(!d){d=[];this._namespacePrefixes.set(c,d)}d.push(h)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_getNamespaceToUse",value:function _getNamespaceToUse(t){if(!t)return this._currentNamespace;var r=this._namespacePrefixes.get(t);if(r&&r.length>0)return r[r.length-1];(0,m.warn)("Unknown namespace prefix: ".concat(t,"."));return null}},{key:"clean",value:function clean(t){var r=this,o=t.hasNamespace,l=t.prefixes,c=t.nsAgnostic;o&&(this._currentNamespace=this._namespaceStack.pop());l&&l.forEach((function(t){var o=t.prefix;r._namespacePrefixes.get(o).pop()}));c&&this._nsAgnosticLevel--}}]);return Builder}();r.Builder=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceSetUp=void 0;var l=o(198),c=o(199),u=o(200),h=o(201),d=o(202),m=o(203),g=o(189),y=o(204),v=o(205),S={config:l.ConfigNamespace,connection:c.ConnectionSetNamespace,datasets:u.DatasetsNamespace,localeSet:h.LocaleSetNamespace,signature:d.SignatureNamespace,stylesheet:m.StylesheetNamespace,template:g.TemplateNamespace,xdp:y.XdpNamespace,xhtml:v.XhtmlNamespace};r.NamespaceSetUp=S},(t,r,o)=>{"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.ConfigNamespace=void 0;var l=o(186),c=o(184),u=o(185),h=o(4);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.config.id,m=function(t){_inherits(Acrobat,t);var r=_createSuper(Acrobat);function Acrobat(t){var o;_classCallCheck(this,Acrobat);(o=r.call(this,d,"acrobat",!0)).acrobat7=null;o.autoSave=null;o.common=null;o.validate=null;o.validateApprovalSignatures=null;o.submitUrl=new c.XFAObjectArray;return o}return Acrobat}(c.XFAObject),g=function(t){_inherits(Acrobat7,t);var r=_createSuper(Acrobat7);function Acrobat7(t){var o;_classCallCheck(this,Acrobat7);(o=r.call(this,d,"acrobat7",!0)).dynamicRender=null;return o}return Acrobat7}(c.XFAObject),y=function(t){_inherits(ADBE_JSConsole,t);var r=_createSuper(ADBE_JSConsole);function ADBE_JSConsole(t){_classCallCheck(this,ADBE_JSConsole);return r.call(this,d,"ADBE_JSConsole",["delegate","Enable","Disable"])}return ADBE_JSConsole}(c.OptionObject),v=function(t){_inherits(ADBE_JSDebugger,t);var r=_createSuper(ADBE_JSDebugger);function ADBE_JSDebugger(t){_classCallCheck(this,ADBE_JSDebugger);return r.call(this,d,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return ADBE_JSDebugger}(c.OptionObject),S=function(t){_inherits(AddSilentPrint,t);var r=_createSuper(AddSilentPrint);function AddSilentPrint(t){_classCallCheck(this,AddSilentPrint);return r.call(this,d,"addSilentPrint")}return AddSilentPrint}(c.Option01),k=function(t){_inherits(AddViewerPreferences,t);var r=_createSuper(AddViewerPreferences);function AddViewerPreferences(t){_classCallCheck(this,AddViewerPreferences);return r.call(this,d,"addViewerPreferences")}return AddViewerPreferences}(c.Option01),_=function(t){_inherits(AdjustData,t);var r=_createSuper(AdjustData);function AdjustData(t){_classCallCheck(this,AdjustData);return r.call(this,d,"adjustData")}return AdjustData}(c.Option10),C=function(t){_inherits(AdobeExtensionLevel,t);var r=_createSuper(AdobeExtensionLevel);function AdobeExtensionLevel(t){_classCallCheck(this,AdobeExtensionLevel);return r.call(this,d,"adobeExtensionLevel",0,(function(t){return t>=1&&t<=8}))}return AdobeExtensionLevel}(c.IntegerObject),w=function(t){_inherits(Agent,t);var r=_createSuper(Agent);function Agent(t){var o;_classCallCheck(this,Agent);(o=r.call(this,d,"agent",!0)).name=t.name?t.name.trim():"";o.common=new c.XFAObjectArray;return o}return Agent}(c.XFAObject),x=function(t){_inherits(AlwaysEmbed,t);var r=_createSuper(AlwaysEmbed);function AlwaysEmbed(t){_classCallCheck(this,AlwaysEmbed);return r.call(this,d,"alwaysEmbed")}return AlwaysEmbed}(c.ContentObject),O=function(t){_inherits(Amd,t);var r=_createSuper(Amd);function Amd(t){_classCallCheck(this,Amd);return r.call(this,d,"amd")}return Amd}(c.StringObject),T=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,d,"area")).level=(0,u.getInteger)({data:t.level,defaultValue:0,validate:function validate(t){return t>=1&&t<=3}});o.name=(0,u.getStringOption)(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]);return o}return Area}(c.XFAObject),R=function(t){_inherits(Attributes,t);var r=_createSuper(Attributes);function Attributes(t){_classCallCheck(this,Attributes);return r.call(this,d,"attributes",["preserve","delegate","ignore"])}return Attributes}(c.OptionObject),E=function(t){_inherits(AutoSave,t);var r=_createSuper(AutoSave);function AutoSave(t){_classCallCheck(this,AutoSave);return r.call(this,d,"autoSave",["disabled","enabled"])}return AutoSave}(c.OptionObject),M=function(t){_inherits(Base,t);var r=_createSuper(Base);function Base(t){_classCallCheck(this,Base);return r.call(this,d,"base")}return Base}(c.StringObject),D=function(t){_inherits(BatchOutput,t);var r=_createSuper(BatchOutput);function BatchOutput(t){var o;_classCallCheck(this,BatchOutput);(o=r.call(this,d,"batchOutput")).format=(0,u.getStringOption)(t.format,["none","concat","zip","zipCompress"]);return o}return BatchOutput}(c.XFAObject),j=function(t){_inherits(BehaviorOverride,t);var r=_createSuper(BehaviorOverride);function BehaviorOverride(t){_classCallCheck(this,BehaviorOverride);return r.call(this,d,"behaviorOverride")}_createClass(BehaviorOverride,[{key:c.$finalize,value:function value(){this[c.$content]=new Map(this[c.$content].trim().split(/\s+/).filter((function(t){return t.includes(":")})).map((function(t){return t.split(":",2)})))}}]);return BehaviorOverride}(c.ContentObject),L=function(t){_inherits(Cache,t);var r=_createSuper(Cache);function Cache(t){var o;_classCallCheck(this,Cache);(o=r.call(this,d,"cache",!0)).templateCache=null;return o}return Cache}(c.XFAObject),N=function(t){_inherits(Change,t);var r=_createSuper(Change);function Change(t){_classCallCheck(this,Change);return r.call(this,d,"change")}return Change}(c.Option01),U=function(t){_inherits(Common,t);var r=_createSuper(Common);function Common(t){var o;_classCallCheck(this,Common);(o=r.call(this,d,"common",!0)).data=null;o.locale=null;o.localeSet=null;o.messaging=null;o.suppressBanner=null;o.template=null;o.validationMessaging=null;o.versionControl=null;o.log=new c.XFAObjectArray;return o}return Common}(c.XFAObject),H=function(t){_inherits(Compress,t);var r=_createSuper(Compress);function Compress(t){var o;_classCallCheck(this,Compress);(o=r.call(this,d,"compress")).scope=(0,u.getStringOption)(t.scope,["imageOnly","document"]);return o}return Compress}(c.XFAObject),W=function(t){_inherits(CompressLogicalStructure,t);var r=_createSuper(CompressLogicalStructure);function CompressLogicalStructure(t){_classCallCheck(this,CompressLogicalStructure);return r.call(this,d,"compressLogicalStructure")}return CompressLogicalStructure}(c.Option01),q=function(t){_inherits(CompressObjectStream,t);var r=_createSuper(CompressObjectStream);function CompressObjectStream(t){_classCallCheck(this,CompressObjectStream);return r.call(this,d,"compressObjectStream")}return CompressObjectStream}(c.Option10),$=function(t){_inherits(Compression,t);var r=_createSuper(Compression);function Compression(t){var o;_classCallCheck(this,Compression);(o=r.call(this,d,"compression",!0)).compressLogicalStructure=null;o.compressObjectStream=null;o.level=null;o.type=null;return o}return Compression}(c.XFAObject),X=function(t){_inherits(Config,t);var r=_createSuper(Config);function Config(t){var o;_classCallCheck(this,Config);(o=r.call(this,d,"config",!0)).acrobat=null;o.present=null;o.trace=null;o.agent=new c.XFAObjectArray;return o}return Config}(c.XFAObject),z=function(t){_inherits(Conformance,t);var r=_createSuper(Conformance);function Conformance(t){_classCallCheck(this,Conformance);return r.call(this,d,"conformance",["A","B"])}return Conformance}(c.OptionObject),G=function(t){_inherits(ContentCopy,t);var r=_createSuper(ContentCopy);function ContentCopy(t){_classCallCheck(this,ContentCopy);return r.call(this,d,"contentCopy")}return ContentCopy}(c.Option01),V=function(t){_inherits(Copies,t);var r=_createSuper(Copies);function Copies(t){_classCallCheck(this,Copies);return r.call(this,d,"copies",1,(function(t){return t>=1}))}return Copies}(c.IntegerObject),Y=function(t){_inherits(Creator,t);var r=_createSuper(Creator);function Creator(t){_classCallCheck(this,Creator);return r.call(this,d,"creator")}return Creator}(c.StringObject),K=function(t){_inherits(CurrentPage,t);var r=_createSuper(CurrentPage);function CurrentPage(t){_classCallCheck(this,CurrentPage);return r.call(this,d,"currentPage",0,(function(t){return t>=0}))}return CurrentPage}(c.IntegerObject),J=function(t){_inherits(Data,t);var r=_createSuper(Data);function Data(t){var o;_classCallCheck(this,Data);(o=r.call(this,d,"data",!0)).adjustData=null;o.attributes=null;o.incrementalLoad=null;o.outputXSL=null;o.range=null;o.record=null;o.startNode=null;o.uri=null;o.window=null;o.xsl=null;o.excludeNS=new c.XFAObjectArray;o.transform=new c.XFAObjectArray;return o}return Data}(c.XFAObject),Q=function(t){_inherits(Debug,t);var r=_createSuper(Debug);function Debug(t){var o;_classCallCheck(this,Debug);(o=r.call(this,d,"debug",!0)).uri=null;return o}return Debug}(c.XFAObject),Z=function(t){_inherits(DefaultTypeface,t);var r=_createSuper(DefaultTypeface);function DefaultTypeface(t){var o;_classCallCheck(this,DefaultTypeface);(o=r.call(this,d,"defaultTypeface")).writingScript=(0,u.getStringOption)(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]);return o}return DefaultTypeface}(c.ContentObject),ee=function(t){_inherits(Destination,t);var r=_createSuper(Destination);function Destination(t){_classCallCheck(this,Destination);return r.call(this,d,"destination",["pdf","pcl","ps","webClient","zpl"])}return Destination}(c.OptionObject),te=function(t){_inherits(DocumentAssembly,t);var r=_createSuper(DocumentAssembly);function DocumentAssembly(t){_classCallCheck(this,DocumentAssembly);return r.call(this,d,"documentAssembly")}return DocumentAssembly}(c.Option01),re=function(t){_inherits(Driver,t);var r=_createSuper(Driver);function Driver(t){var o;_classCallCheck(this,Driver);(o=r.call(this,d,"driver",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return Driver}(c.XFAObject),ae=function(t){_inherits(DuplexOption,t);var r=_createSuper(DuplexOption);function DuplexOption(t){_classCallCheck(this,DuplexOption);return r.call(this,d,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return DuplexOption}(c.OptionObject),ne=function(t){_inherits(DynamicRender,t);var r=_createSuper(DynamicRender);function DynamicRender(t){_classCallCheck(this,DynamicRender);return r.call(this,d,"dynamicRender",["forbidden","required"])}return DynamicRender}(c.OptionObject),ie=function(t){_inherits(Embed,t);var r=_createSuper(Embed);function Embed(t){_classCallCheck(this,Embed);return r.call(this,d,"embed")}return Embed}(c.Option01),oe=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){_classCallCheck(this,Encrypt);return r.call(this,d,"encrypt")}return Encrypt}(c.Option01),se=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,d,"encryption",!0)).encrypt=null;o.encryptionLevel=null;o.permissions=null;return o}return Encryption}(c.XFAObject),le=function(t){_inherits(EncryptionLevel,t);var r=_createSuper(EncryptionLevel);function EncryptionLevel(t){_classCallCheck(this,EncryptionLevel);return r.call(this,d,"encryptionLevel",["40bit","128bit"])}return EncryptionLevel}(c.OptionObject),ce=function(t){_inherits(Enforce,t);var r=_createSuper(Enforce);function Enforce(t){_classCallCheck(this,Enforce);return r.call(this,d,"enforce")}return Enforce}(c.StringObject),ue=function(t){_inherits(Equate,t);var r=_createSuper(Equate);function Equate(t){var o;_classCallCheck(this,Equate);(o=r.call(this,d,"equate")).force=(0,u.getInteger)({data:t.force,defaultValue:1,validate:function validate(t){return 0===t}});o.from=t.from||"";o.to=t.to||"";return o}return Equate}(c.XFAObject),fe=function(t){_inherits(EquateRange,t);var r=_createSuper(EquateRange);function EquateRange(t){var o;_classCallCheck(this,EquateRange);(o=r.call(this,d,"equateRange")).from=t.from||"";o.to=t.to||"";o._unicodeRange=t.unicodeRange||"";return o}_createClass(EquateRange,[{key:"unicodeRange",get:function get(){var t,r=[],o=/U\+([0-9a-fA-F]+)/,l=_createForOfIteratorHelper(this._unicodeRange.split(",").map((function(t){return t.trim()})).filter((function(t){return!!t})));try{for(l.s();!(t=l.n()).done;){var c=t.value;1===(c=c.split("-",2).map((function(t){var r=t.match(o);return r?parseInt(r[1],16):0}))).length&&c.push(c[0]);r.push(c)}}catch(t){l.e(t)}finally{l.f()}return(0,h.shadow)(this,"unicodeRange",r)}}]);return EquateRange}(c.XFAObject),he=function(t){_inherits(Exclude,t);var r=_createSuper(Exclude);function Exclude(t){_classCallCheck(this,Exclude);return r.call(this,d,"exclude")}_createClass(Exclude,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s+/).filter((function(t){return t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t)}))}}]);return Exclude}(c.ContentObject),de=function(t){_inherits(ExcludeNS,t);var r=_createSuper(ExcludeNS);function ExcludeNS(t){_classCallCheck(this,ExcludeNS);return r.call(this,d,"excludeNS")}return ExcludeNS}(c.StringObject),pe=function(t){_inherits(FlipLabel,t);var r=_createSuper(FlipLabel);function FlipLabel(t){_classCallCheck(this,FlipLabel);return r.call(this,d,"flipLabel",["usePrinterSetting","on","off"])}return FlipLabel}(c.OptionObject),me=function(t){_inherits(FontInfo,t);var r=_createSuper(FontInfo);function FontInfo(t){var o;_classCallCheck(this,FontInfo);(o=r.call(this,d,"fontInfo",!0)).embed=null;o.map=null;o.subsetBelow=null;o.alwaysEmbed=new c.XFAObjectArray;o.defaultTypeface=new c.XFAObjectArray;o.neverEmbed=new c.XFAObjectArray;return o}return FontInfo}(c.XFAObject),ge=function(t){_inherits(FormFieldFilling,t);var r=_createSuper(FormFieldFilling);function FormFieldFilling(t){_classCallCheck(this,FormFieldFilling);return r.call(this,d,"formFieldFilling")}return FormFieldFilling}(c.Option01),ye=function(t){_inherits(GroupParent,t);var r=_createSuper(GroupParent);function GroupParent(t){_classCallCheck(this,GroupParent);return r.call(this,d,"groupParent")}return GroupParent}(c.StringObject),ve=function(t){_inherits(IfEmpty,t);var r=_createSuper(IfEmpty);function IfEmpty(t){_classCallCheck(this,IfEmpty);return r.call(this,d,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return IfEmpty}(c.OptionObject),be=function(t){_inherits(IncludeXDPContent,t);var r=_createSuper(IncludeXDPContent);function IncludeXDPContent(t){_classCallCheck(this,IncludeXDPContent);return r.call(this,d,"includeXDPContent")}return IncludeXDPContent}(c.StringObject),Se=function(t){_inherits(IncrementalLoad,t);var r=_createSuper(IncrementalLoad);function IncrementalLoad(t){_classCallCheck(this,IncrementalLoad);return r.call(this,d,"incrementalLoad",["none","forwardOnly"])}return IncrementalLoad}(c.OptionObject),ke=function(t){_inherits(IncrementalMerge,t);var r=_createSuper(IncrementalMerge);function IncrementalMerge(t){_classCallCheck(this,IncrementalMerge);return r.call(this,d,"incrementalMerge")}return IncrementalMerge}(c.Option01),_e=function(t){_inherits(Interactive,t);var r=_createSuper(Interactive);function Interactive(t){_classCallCheck(this,Interactive);return r.call(this,d,"interactive")}return Interactive}(c.Option01),Ce=function(t){_inherits(Jog,t);var r=_createSuper(Jog);function Jog(t){_classCallCheck(this,Jog);return r.call(this,d,"jog",["usePrinterSetting","none","pageSet"])}return Jog}(c.OptionObject),we=function(t){_inherits(LabelPrinter,t);var r=_createSuper(LabelPrinter);function LabelPrinter(t){var o;_classCallCheck(this,LabelPrinter);(o=r.call(this,d,"labelPrinter",!0)).name=(0,u.getStringOption)(t.name,["zpl","dpl","ipl","tcpl"]);o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return LabelPrinter}(c.XFAObject),Ae=function(t){_inherits(Layout,t);var r=_createSuper(Layout);function Layout(t){_classCallCheck(this,Layout);return r.call(this,d,"layout",["paginate","panel"])}return Layout}(c.OptionObject),xe=function(t){_inherits(Level,t);var r=_createSuper(Level);function Level(t){_classCallCheck(this,Level);return r.call(this,d,"level",0,(function(t){return t>0}))}return Level}(c.IntegerObject),Oe=function(t){_inherits(Linearized,t);var r=_createSuper(Linearized);function Linearized(t){_classCallCheck(this,Linearized);return r.call(this,d,"linearized")}return Linearized}(c.Option01),Pe=function(t){_inherits(Locale,t);var r=_createSuper(Locale);function Locale(t){_classCallCheck(this,Locale);return r.call(this,d,"locale")}return Locale}(c.StringObject),Te=function(t){_inherits(LocaleSet,t);var r=_createSuper(LocaleSet);function LocaleSet(t){_classCallCheck(this,LocaleSet);return r.call(this,d,"localeSet")}return LocaleSet}(c.StringObject),Ie=function(t){_inherits(Log,t);var r=_createSuper(Log);function Log(t){var o;_classCallCheck(this,Log);(o=r.call(this,d,"log",!0)).mode=null;o.threshold=null;o.to=null;o.uri=null;return o}return Log}(c.XFAObject),Fe=function(t){_inherits(MapElement,t);var r=_createSuper(MapElement);function MapElement(t){var o;_classCallCheck(this,MapElement);(o=r.call(this,d,"map",!0)).equate=new c.XFAObjectArray;o.equateRange=new c.XFAObjectArray;return o}return MapElement}(c.XFAObject),Re=function(t){_inherits(MediumInfo,t);var r=_createSuper(MediumInfo);function MediumInfo(t){var o;_classCallCheck(this,MediumInfo);(o=r.call(this,d,"mediumInfo",!0)).map=null;return o}return MediumInfo}(c.XFAObject),Ee=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,d,"message",!0)).msgId=null;o.severity=null;return o}return Message}(c.XFAObject),Be=function(t){_inherits(Messaging,t);var r=_createSuper(Messaging);function Messaging(t){var o;_classCallCheck(this,Messaging);(o=r.call(this,d,"messaging",!0)).message=new c.XFAObjectArray;return o}return Messaging}(c.XFAObject),Me=function(t){_inherits(Mode,t);var r=_createSuper(Mode);function Mode(t){_classCallCheck(this,Mode);return r.call(this,d,"mode",["append","overwrite"])}return Mode}(c.OptionObject),De=function(t){_inherits(ModifyAnnots,t);var r=_createSuper(ModifyAnnots);function ModifyAnnots(t){_classCallCheck(this,ModifyAnnots);return r.call(this,d,"modifyAnnots")}return ModifyAnnots}(c.Option01),je=function(t){_inherits(MsgId,t);var r=_createSuper(MsgId);function MsgId(t){_classCallCheck(this,MsgId);return r.call(this,d,"msgId",1,(function(t){return t>=1}))}return MsgId}(c.IntegerObject),Le=function(t){_inherits(NameAttr,t);var r=_createSuper(NameAttr);function NameAttr(t){_classCallCheck(this,NameAttr);return r.call(this,d,"nameAttr")}return NameAttr}(c.StringObject),Ne=function(t){_inherits(NeverEmbed,t);var r=_createSuper(NeverEmbed);function NeverEmbed(t){_classCallCheck(this,NeverEmbed);return r.call(this,d,"neverEmbed")}return NeverEmbed}(c.ContentObject),Ue=function(t){_inherits(NumberOfCopies,t);var r=_createSuper(NumberOfCopies);function NumberOfCopies(t){_classCallCheck(this,NumberOfCopies);return r.call(this,d,"numberOfCopies",null,(function(t){return t>=2&&t<=5}))}return NumberOfCopies}(c.IntegerObject),He=function(t){_inherits(OpenAction,t);var r=_createSuper(OpenAction);function OpenAction(t){var o;_classCallCheck(this,OpenAction);(o=r.call(this,d,"openAction",!0)).destination=null;return o}return OpenAction}(c.XFAObject),We=function(t){_inherits(Output,t);var r=_createSuper(Output);function Output(t){var o;_classCallCheck(this,Output);(o=r.call(this,d,"output",!0)).to=null;o.type=null;o.uri=null;return o}return Output}(c.XFAObject),qe=function(t){_inherits(OutputBin,t);var r=_createSuper(OutputBin);function OutputBin(t){_classCallCheck(this,OutputBin);return r.call(this,d,"outputBin")}return OutputBin}(c.StringObject),$e=function(t){_inherits(OutputXSL,t);var r=_createSuper(OutputXSL);function OutputXSL(t){var o;_classCallCheck(this,OutputXSL);(o=r.call(this,d,"outputXSL",!0)).uri=null;return o}return OutputXSL}(c.XFAObject),Xe=function(t){_inherits(Overprint,t);var r=_createSuper(Overprint);function Overprint(t){_classCallCheck(this,Overprint);return r.call(this,d,"overprint",["none","both","draw","field"])}return Overprint}(c.OptionObject),ze=function(t){_inherits(Packets,t);var r=_createSuper(Packets);function Packets(t){_classCallCheck(this,Packets);return r.call(this,d,"packets")}_createClass(Packets,[{key:c.$finalize,value:function value(){"*"!==this[c.$content]&&(this[c.$content]=this[c.$content].trim().split(/\s+/).filter((function(t){return["config","datasets","template","xfdf","xslt"].includes(t)})))}}]);return Packets}(c.StringObject),Ge=function(t){_inherits(PageOffset,t);var r=_createSuper(PageOffset);function PageOffset(t){var o;_classCallCheck(this,PageOffset);(o=r.call(this,d,"pageOffset")).x=(0,u.getInteger)({data:t.x,defaultValue:"useXDCSetting",validate:function validate(t){return!0}});o.y=(0,u.getInteger)({data:t.y,defaultValue:"useXDCSetting",validate:function validate(t){return!0}});return o}return PageOffset}(c.XFAObject),Ve=function(t){_inherits(PageRange,t);var r=_createSuper(PageRange);function PageRange(t){_classCallCheck(this,PageRange);return r.call(this,d,"pageRange")}_createClass(PageRange,[{key:c.$finalize,value:function value(){for(var t=this[c.$content].trim().split(/\s+/).map((function(t){return parseInt(t,10)})),r=[],o=0,l=t.length;o<l;o+=2)r.push(t.slice(o,o+2));this[c.$content]=r}}]);return PageRange}(c.StringObject),Ye=function(t){_inherits(Pagination,t);var r=_createSuper(Pagination);function Pagination(t){_classCallCheck(this,Pagination);return r.call(this,d,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return Pagination}(c.OptionObject),Ke=function(t){_inherits(PaginationOverride,t);var r=_createSuper(PaginationOverride);function PaginationOverride(t){_classCallCheck(this,PaginationOverride);return r.call(this,d,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return PaginationOverride}(c.OptionObject),Je=function(t){_inherits(Part,t);var r=_createSuper(Part);function Part(t){_classCallCheck(this,Part);return r.call(this,d,"part",1,(function(t){return!1}))}return Part}(c.IntegerObject),Qe=function(t){_inherits(Pcl,t);var r=_createSuper(Pcl);function Pcl(t){var o;_classCallCheck(this,Pcl);(o=r.call(this,d,"pcl",!0)).name=t.name||"";o.batchOutput=null;o.fontInfo=null;o.jog=null;o.mediumInfo=null;o.outputBin=null;o.pageOffset=null;o.staple=null;o.xdc=null;return o}return Pcl}(c.XFAObject),Ze=function(t){_inherits(Pdf,t);var r=_createSuper(Pdf);function Pdf(t){var o;_classCallCheck(this,Pdf);(o=r.call(this,d,"pdf",!0)).name=t.name||"";o.adobeExtensionLevel=null;o.batchOutput=null;o.compression=null;o.creator=null;o.encryption=null;o.fontInfo=null;o.interactive=null;o.linearized=null;o.openAction=null;o.pdfa=null;o.producer=null;o.renderPolicy=null;o.scriptModel=null;o.silentPrint=null;o.submitFormat=null;o.tagged=null;o.version=null;o.viewerPreferences=null;o.xdc=null;return o}return Pdf}(c.XFAObject),et=function(t){_inherits(Pdfa,t);var r=_createSuper(Pdfa);function Pdfa(t){var o;_classCallCheck(this,Pdfa);(o=r.call(this,d,"pdfa",!0)).amd=null;o.conformance=null;o.includeXDPContent=null;o.part=null;return o}return Pdfa}(c.XFAObject),tt=function(t){_inherits(Permissions,t);var r=_createSuper(Permissions);function Permissions(t){var o;_classCallCheck(this,Permissions);(o=r.call(this,d,"permissions",!0)).accessibleContent=null;o.change=null;o.contentCopy=null;o.documentAssembly=null;o.formFieldFilling=null;o.modifyAnnots=null;o.plaintextMetadata=null;o.print=null;o.printHighQuality=null;return o}return Permissions}(c.XFAObject),rt=function(t){_inherits(PickTrayByPDFSize,t);var r=_createSuper(PickTrayByPDFSize);function PickTrayByPDFSize(t){_classCallCheck(this,PickTrayByPDFSize);return r.call(this,d,"pickTrayByPDFSize")}return PickTrayByPDFSize}(c.Option01),at=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){_classCallCheck(this,Picture);return r.call(this,d,"picture")}return Picture}(c.StringObject),nt=function(t){_inherits(PlaintextMetadata,t);var r=_createSuper(PlaintextMetadata);function PlaintextMetadata(t){_classCallCheck(this,PlaintextMetadata);return r.call(this,d,"plaintextMetadata")}return PlaintextMetadata}(c.Option01),it=function(t){_inherits(Presence,t);var r=_createSuper(Presence);function Presence(t){_classCallCheck(this,Presence);return r.call(this,d,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return Presence}(c.OptionObject),ot=function(t){_inherits(Present,t);var r=_createSuper(Present);function Present(t){var o;_classCallCheck(this,Present);(o=r.call(this,d,"present",!0)).behaviorOverride=null;o.cache=null;o.common=null;o.copies=null;o.destination=null;o.incrementalMerge=null;o.layout=null;o.output=null;o.overprint=null;o.pagination=null;o.paginationOverride=null;o.script=null;o.validate=null;o.xdp=null;o.driver=new c.XFAObjectArray;o.labelPrinter=new c.XFAObjectArray;o.pcl=new c.XFAObjectArray;o.pdf=new c.XFAObjectArray;o.ps=new c.XFAObjectArray;o.submitUrl=new c.XFAObjectArray;o.webClient=new c.XFAObjectArray;o.zpl=new c.XFAObjectArray;return o}return Present}(c.XFAObject),st=function(t){_inherits(Print,t);var r=_createSuper(Print);function Print(t){_classCallCheck(this,Print);return r.call(this,d,"print")}return Print}(c.Option01),lt=function(t){_inherits(PrintHighQuality,t);var r=_createSuper(PrintHighQuality);function PrintHighQuality(t){_classCallCheck(this,PrintHighQuality);return r.call(this,d,"printHighQuality")}return PrintHighQuality}(c.Option01),ct=function(t){_inherits(PrintScaling,t);var r=_createSuper(PrintScaling);function PrintScaling(t){_classCallCheck(this,PrintScaling);return r.call(this,d,"printScaling",["appdefault","noScaling"])}return PrintScaling}(c.OptionObject),ut=function(t){_inherits(PrinterName,t);var r=_createSuper(PrinterName);function PrinterName(t){_classCallCheck(this,PrinterName);return r.call(this,d,"printerName")}return PrinterName}(c.StringObject),ft=function(t){_inherits(Producer,t);var r=_createSuper(Producer);function Producer(t){_classCallCheck(this,Producer);return r.call(this,d,"producer")}return Producer}(c.StringObject),ht=function(t){_inherits(Ps,t);var r=_createSuper(Ps);function Ps(t){var o;_classCallCheck(this,Ps);(o=r.call(this,d,"ps",!0)).name=t.name||"";o.batchOutput=null;o.fontInfo=null;o.jog=null;o.mediumInfo=null;o.outputBin=null;o.staple=null;o.xdc=null;return o}return Ps}(c.XFAObject),dt=function(t){_inherits(Range,t);var r=_createSuper(Range);function Range(t){_classCallCheck(this,Range);return r.call(this,d,"range")}_createClass(Range,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s*,\s*/,2).map((function(t){return t.split("-").map((function(t){return parseInt(t.trim(),10)}))})).filter((function(t){return t.every((function(t){return!isNaN(t)}))})).map((function(t){1===t.length&&t.push(t[0]);return t}))}}]);return Range}(c.ContentObject),mt=function(t){_inherits(Record,t);var r=_createSuper(Record);function Record(t){_classCallCheck(this,Record);return r.call(this,d,"record")}_createClass(Record,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim();var t=parseInt(this[c.$content],10);!isNaN(t)&&t>=0&&(this[c.$content]=t)}}]);return Record}(c.ContentObject),gt=function(t){_inherits(Relevant,t);var r=_createSuper(Relevant);function Relevant(t){_classCallCheck(this,Relevant);return r.call(this,d,"relevant")}_createClass(Relevant,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s+/)}}]);return Relevant}(c.ContentObject),yt=function(t){_inherits(Rename,t);var r=_createSuper(Rename);function Rename(t){_classCallCheck(this,Rename);return r.call(this,d,"rename")}_createClass(Rename,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim();(this[c.$content].toLowerCase().startsWith("xml")||this[c.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,h.warn)("XFA - Rename: invalid XFA name")}}]);return Rename}(c.ContentObject),vt=function(t){_inherits(RenderPolicy,t);var r=_createSuper(RenderPolicy);function RenderPolicy(t){_classCallCheck(this,RenderPolicy);return r.call(this,d,"renderPolicy",["server","client"])}return RenderPolicy}(c.OptionObject),bt=function(t){_inherits(RunScripts,t);var r=_createSuper(RunScripts);function RunScripts(t){_classCallCheck(this,RunScripts);return r.call(this,d,"runScripts",["both","client","none","server"])}return RunScripts}(c.OptionObject),St=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,d,"script",!0)).currentPage=null;o.exclude=null;o.runScripts=null;return o}return Script}(c.XFAObject),kt=function(t){_inherits(ScriptModel,t);var r=_createSuper(ScriptModel);function ScriptModel(t){_classCallCheck(this,ScriptModel);return r.call(this,d,"scriptModel",["XFA","none"])}return ScriptModel}(c.OptionObject),_t=function(t){_inherits(Severity,t);var r=_createSuper(Severity);function Severity(t){_classCallCheck(this,Severity);return r.call(this,d,"severity",["ignore","error","information","trace","warning"])}return Severity}(c.OptionObject),Ct=function(t){_inherits(SilentPrint,t);var r=_createSuper(SilentPrint);function SilentPrint(t){var o;_classCallCheck(this,SilentPrint);(o=r.call(this,d,"silentPrint",!0)).addSilentPrint=null;o.printerName=null;return o}return SilentPrint}(c.XFAObject),wt=function(t){_inherits(Staple,t);var r=_createSuper(Staple);function Staple(t){var o;_classCallCheck(this,Staple);(o=r.call(this,d,"staple")).mode=(0,u.getStringOption)(t.mode,["usePrinterSetting","on","off"]);return o}return Staple}(c.XFAObject),At=function(t){_inherits(StartNode,t);var r=_createSuper(StartNode);function StartNode(t){_classCallCheck(this,StartNode);return r.call(this,d,"startNode")}return StartNode}(c.StringObject),xt=function(t){_inherits(StartPage,t);var r=_createSuper(StartPage);function StartPage(t){_classCallCheck(this,StartPage);return r.call(this,d,"startPage",0,(function(t){return!0}))}return StartPage}(c.IntegerObject),Ot=function(t){_inherits(SubmitFormat,t);var r=_createSuper(SubmitFormat);function SubmitFormat(t){_classCallCheck(this,SubmitFormat);return r.call(this,d,"submitFormat",["html","delegate","fdf","xml","pdf"])}return SubmitFormat}(c.OptionObject),Pt=function(t){_inherits(SubmitUrl,t);var r=_createSuper(SubmitUrl);function SubmitUrl(t){_classCallCheck(this,SubmitUrl);return r.call(this,d,"submitUrl")}return SubmitUrl}(c.StringObject),Tt=function(t){_inherits(SubsetBelow,t);var r=_createSuper(SubsetBelow);function SubsetBelow(t){_classCallCheck(this,SubsetBelow);return r.call(this,d,"subsetBelow",100,(function(t){return t>=0&&t<=100}))}return SubsetBelow}(c.IntegerObject),It=function(t){_inherits(SuppressBanner,t);var r=_createSuper(SuppressBanner);function SuppressBanner(t){_classCallCheck(this,SuppressBanner);return r.call(this,d,"suppressBanner")}return SuppressBanner}(c.Option01),Ft=function(t){_inherits(Tagged,t);var r=_createSuper(Tagged);function Tagged(t){_classCallCheck(this,Tagged);return r.call(this,d,"tagged")}return Tagged}(c.Option01),Rt=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,d,"template",!0)).base=null;o.relevant=null;o.startPage=null;o.uri=null;o.xsl=null;return o}return Template}(c.XFAObject),Et=function(t){_inherits(Threshold,t);var r=_createSuper(Threshold);function Threshold(t){_classCallCheck(this,Threshold);return r.call(this,d,"threshold",["trace","error","information","warning"])}return Threshold}(c.OptionObject),Bt=function(t){_inherits(To,t);var r=_createSuper(To);function To(t){_classCallCheck(this,To);return r.call(this,d,"to",["null","memory","stderr","stdout","system","uri"])}return To}(c.OptionObject),Mt=function(t){_inherits(TemplateCache,t);var r=_createSuper(TemplateCache);function TemplateCache(t){var o;_classCallCheck(this,TemplateCache);(o=r.call(this,d,"templateCache")).maxEntries=(0,u.getInteger)({data:t.maxEntries,defaultValue:5,validate:function validate(t){return t>=0}});return o}return TemplateCache}(c.XFAObject),Dt=function(t){_inherits(Trace,t);var r=_createSuper(Trace);function Trace(t){var o;_classCallCheck(this,Trace);(o=r.call(this,d,"trace",!0)).area=new c.XFAObjectArray;return o}return Trace}(c.XFAObject),jt=function(t){_inherits(Transform,t);var r=_createSuper(Transform);function Transform(t){var o;_classCallCheck(this,Transform);(o=r.call(this,d,"transform",!0)).groupParent=null;o.ifEmpty=null;o.nameAttr=null;o.picture=null;o.presence=null;o.rename=null;o.whitespace=null;return o}return Transform}(c.XFAObject),Lt=function(t){_inherits(Type,t);var r=_createSuper(Type);function Type(t){_classCallCheck(this,Type);return r.call(this,d,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return Type}(c.OptionObject),Nt=function(t){_inherits(Uri,t);var r=_createSuper(Uri);function Uri(t){_classCallCheck(this,Uri);return r.call(this,d,"uri")}return Uri}(c.StringObject),Ut=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){_classCallCheck(this,Validate);return r.call(this,d,"validate",["preSubmit","prePrint","preExecute","preSave"])}return Validate}(c.OptionObject),Ht=function(t){_inherits(ValidateApprovalSignatures,t);var r=_createSuper(ValidateApprovalSignatures);function ValidateApprovalSignatures(t){_classCallCheck(this,ValidateApprovalSignatures);return r.call(this,d,"validateApprovalSignatures")}_createClass(ValidateApprovalSignatures,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s+/).filter((function(t){return["docReady","postSign"].includes(t)}))}}]);return ValidateApprovalSignatures}(c.ContentObject),Wt=function(t){_inherits(ValidationMessaging,t);var r=_createSuper(ValidationMessaging);function ValidationMessaging(t){_classCallCheck(this,ValidationMessaging);return r.call(this,d,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return ValidationMessaging}(c.OptionObject),qt=function(t){_inherits(Version,t);var r=_createSuper(Version);function Version(t){_classCallCheck(this,Version);return r.call(this,d,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return Version}(c.OptionObject),$t=function(t){_inherits(VersionControl,t);var r=_createSuper(VersionControl);function VersionControl(t){var o;_classCallCheck(this,VersionControl);(o=r.call(this,d,"VersionControl")).outputBelow=(0,u.getStringOption)(t.outputBelow,["warn","error","update"]);o.sourceAbove=(0,u.getStringOption)(t.sourceAbove,["warn","error"]);o.sourceBelow=(0,u.getStringOption)(t.sourceBelow,["update","maintain"]);return o}return VersionControl}(c.XFAObject),Xt=function(t){_inherits(ViewerPreferences,t);var r=_createSuper(ViewerPreferences);function ViewerPreferences(t){var o;_classCallCheck(this,ViewerPreferences);(o=r.call(this,d,"viewerPreferences",!0)).ADBE_JSConsole=null;o.ADBE_JSDebugger=null;o.addViewerPreferences=null;o.duplexOption=null;o.enforce=null;o.numberOfCopies=null;o.pageRange=null;o.pickTrayByPDFSize=null;o.printScaling=null;return o}return ViewerPreferences}(c.XFAObject),zt=function(t){_inherits(WebClient,t);var r=_createSuper(WebClient);function WebClient(t){var o;_classCallCheck(this,WebClient);(o=r.call(this,d,"webClient",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return WebClient}(c.XFAObject),Gt=function(t){_inherits(Whitespace,t);var r=_createSuper(Whitespace);function Whitespace(t){_classCallCheck(this,Whitespace);return r.call(this,d,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return Whitespace}(c.OptionObject),Vt=function(t){_inherits(Window,t);var r=_createSuper(Window);function Window(t){_classCallCheck(this,Window);return r.call(this,d,"window")}_createClass(Window,[{key:c.$finalize,value:function value(){var t=this[c.$content].trim().split(/\s*,\s*/,2).map((function(t){return parseInt(t,10)}));if(t.some((function(t){return isNaN(t)})))this[c.$content]=[0,0];else{1===t.length&&t.push(t[0]);this[c.$content]=t}}}]);return Window}(c.ContentObject),Yt=function(t){_inherits(Xdc,t);var r=_createSuper(Xdc);function Xdc(t){var o;_classCallCheck(this,Xdc);(o=r.call(this,d,"xdc",!0)).uri=new c.XFAObjectArray;o.xsl=new c.XFAObjectArray;return o}return Xdc}(c.XFAObject),Kt=function(t){_inherits(Xdp,t);var r=_createSuper(Xdp);function Xdp(t){var o;_classCallCheck(this,Xdp);(o=r.call(this,d,"xdp",!0)).packets=null;return o}return Xdp}(c.XFAObject),Jt=function(t){_inherits(Xsl,t);var r=_createSuper(Xsl);function Xsl(t){var o;_classCallCheck(this,Xsl);(o=r.call(this,d,"xsl",!0)).debug=null;o.uri=null;return o}return Xsl}(c.XFAObject),Qt=function(t){_inherits(Zpl,t);var r=_createSuper(Zpl);function Zpl(t){var o;_classCallCheck(this,Zpl);(o=r.call(this,d,"zpl",!0)).name=t.name?t.name.trim():"";o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return Zpl}(c.XFAObject),Zt=function(){function ConfigNamespace(){_classCallCheck(this,ConfigNamespace)}_createClass(ConfigNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(ConfigNamespace.hasOwnProperty(t))return ConfigNamespace[t](r)}},{key:"acrobat",value:function acrobat(t){return new m(t)}},{key:"acrobat7",value:function acrobat7(t){return new g(t)}},{key:"ADBE_JSConsole",value:function ADBE_JSConsole(t){return new y(t)}},{key:"ADBE_JSDebugger",value:function ADBE_JSDebugger(t){return new v(t)}},{key:"addSilentPrint",value:function addSilentPrint(t){return new S(t)}},{key:"addViewerPreferences",value:function addViewerPreferences(t){return new k(t)}},{key:"adjustData",value:function adjustData(t){return new _(t)}},{key:"adobeExtensionLevel",value:function adobeExtensionLevel(t){return new C(t)}},{key:"agent",value:function agent(t){return new w(t)}},{key:"alwaysEmbed",value:function alwaysEmbed(t){return new x(t)}},{key:"amd",value:function amd(t){return new O(t)}},{key:"area",value:function area(t){return new T(t)}},{key:"attributes",value:function attributes(t){return new R(t)}},{key:"autoSave",value:function autoSave(t){return new E(t)}},{key:"base",value:function base(t){return new M(t)}},{key:"batchOutput",value:function batchOutput(t){return new D(t)}},{key:"behaviorOverride",value:function behaviorOverride(t){return new j(t)}},{key:"cache",value:function cache(t){return new L(t)}},{key:"change",value:function change(t){return new N(t)}},{key:"common",value:function common(t){return new U(t)}},{key:"compress",value:function compress(t){return new H(t)}},{key:"compressLogicalStructure",value:function compressLogicalStructure(t){return new W(t)}},{key:"compressObjectStream",value:function compressObjectStream(t){return new q(t)}},{key:"compression",value:function compression(t){return new $(t)}},{key:"config",value:function config(t){return new X(t)}},{key:"conformance",value:function conformance(t){return new z(t)}},{key:"contentCopy",value:function contentCopy(t){return new G(t)}},{key:"copies",value:function copies(t){return new V(t)}},{key:"creator",value:function creator(t){return new Y(t)}},{key:"currentPage",value:function currentPage(t){return new K(t)}},{key:"data",value:function data(t){return new J(t)}},{key:"debug",value:function debug(t){return new Q(t)}},{key:"defaultTypeface",value:function defaultTypeface(t){return new Z(t)}},{key:"destination",value:function destination(t){return new ee(t)}},{key:"documentAssembly",value:function documentAssembly(t){return new te(t)}},{key:"driver",value:function driver(t){return new re(t)}},{key:"duplexOption",value:function duplexOption(t){return new ae(t)}},{key:"dynamicRender",value:function dynamicRender(t){return new ne(t)}},{key:"embed",value:function embed(t){return new ie(t)}},{key:"encrypt",value:function encrypt(t){return new oe(t)}},{key:"encryption",value:function encryption(t){return new se(t)}},{key:"encryptionLevel",value:function encryptionLevel(t){return new le(t)}},{key:"enforce",value:function enforce(t){return new ce(t)}},{key:"equate",value:function equate(t){return new ue(t)}},{key:"equateRange",value:function equateRange(t){return new fe(t)}},{key:"exclude",value:function exclude(t){return new he(t)}},{key:"excludeNS",value:function excludeNS(t){return new de(t)}},{key:"flipLabel",value:function flipLabel(t){return new pe(t)}},{key:"fontInfo",value:function fontInfo(t){return new me(t)}},{key:"formFieldFilling",value:function formFieldFilling(t){return new ge(t)}},{key:"groupParent",value:function groupParent(t){return new ye(t)}},{key:"ifEmpty",value:function ifEmpty(t){return new ve(t)}},{key:"includeXDPContent",value:function includeXDPContent(t){return new be(t)}},{key:"incrementalLoad",value:function incrementalLoad(t){return new Se(t)}},{key:"incrementalMerge",value:function incrementalMerge(t){return new ke(t)}},{key:"interactive",value:function interactive(t){return new _e(t)}},{key:"jog",value:function jog(t){return new Ce(t)}},{key:"labelPrinter",value:function labelPrinter(t){return new we(t)}},{key:"layout",value:function layout(t){return new Ae(t)}},{key:"level",value:function level(t){return new xe(t)}},{key:"linearized",value:function linearized(t){return new Oe(t)}},{key:"locale",value:function locale(t){return new Pe(t)}},{key:"localeSet",value:function localeSet(t){return new Te(t)}},{key:"log",value:function log(t){return new Ie(t)}},{key:"map",value:function map(t){return new Fe(t)}},{key:"mediumInfo",value:function mediumInfo(t){return new Re(t)}},{key:"message",value:function message(t){return new Ee(t)}},{key:"messaging",value:function messaging(t){return new Be(t)}},{key:"mode",value:function mode(t){return new Me(t)}},{key:"modifyAnnots",value:function modifyAnnots(t){return new De(t)}},{key:"msgId",value:function msgId(t){return new je(t)}},{key:"nameAttr",value:function nameAttr(t){return new Le(t)}},{key:"neverEmbed",value:function neverEmbed(t){return new Ne(t)}},{key:"numberOfCopies",value:function numberOfCopies(t){return new Ue(t)}},{key:"openAction",value:function openAction(t){return new He(t)}},{key:"output",value:function output(t){return new We(t)}},{key:"outputBin",value:function outputBin(t){return new qe(t)}},{key:"outputXSL",value:function outputXSL(t){return new $e(t)}},{key:"overprint",value:function overprint(t){return new Xe(t)}},{key:"packets",value:function packets(t){return new ze(t)}},{key:"pageOffset",value:function pageOffset(t){return new Ge(t)}},{key:"pageRange",value:function pageRange(t){return new Ve(t)}},{key:"pagination",value:function pagination(t){return new Ye(t)}},{key:"paginationOverride",value:function paginationOverride(t){return new Ke(t)}},{key:"part",value:function part(t){return new Je(t)}},{key:"pcl",value:function pcl(t){return new Qe(t)}},{key:"pdf",value:function pdf(t){return new Ze(t)}},{key:"pdfa",value:function pdfa(t){return new et(t)}},{key:"permissions",value:function permissions(t){return new tt(t)}},{key:"pickTrayByPDFSize",value:function pickTrayByPDFSize(t){return new rt(t)}},{key:"picture",value:function picture(t){return new at(t)}},{key:"plaintextMetadata",value:function plaintextMetadata(t){return new nt(t)}},{key:"presence",value:function presence(t){return new it(t)}},{key:"present",value:function present(t){return new ot(t)}},{key:"print",value:function print(t){return new st(t)}},{key:"printHighQuality",value:function printHighQuality(t){return new lt(t)}},{key:"printScaling",value:function printScaling(t){return new ct(t)}},{key:"printerName",value:function printerName(t){return new ut(t)}},{key:"producer",value:function producer(t){return new ft(t)}},{key:"ps",value:function ps(t){return new ht(t)}},{key:"range",value:function range(t){return new dt(t)}},{key:"record",value:function record(t){return new mt(t)}},{key:"relevant",value:function relevant(t){return new gt(t)}},{key:"rename",value:function rename(t){return new yt(t)}},{key:"renderPolicy",value:function renderPolicy(t){return new vt(t)}},{key:"runScripts",value:function runScripts(t){return new bt(t)}},{key:"script",value:function script(t){return new St(t)}},{key:"scriptModel",value:function scriptModel(t){return new kt(t)}},{key:"severity",value:function severity(t){return new _t(t)}},{key:"silentPrint",value:function silentPrint(t){return new Ct(t)}},{key:"staple",value:function staple(t){return new wt(t)}},{key:"startNode",value:function startNode(t){return new At(t)}},{key:"startPage",value:function startPage(t){return new xt(t)}},{key:"submitFormat",value:function submitFormat(t){return new Ot(t)}},{key:"submitUrl",value:function submitUrl(t){return new Pt(t)}},{key:"subsetBelow",value:function subsetBelow(t){return new Tt(t)}},{key:"suppressBanner",value:function suppressBanner(t){return new It(t)}},{key:"tagged",value:function tagged(t){return new Ft(t)}},{key:"template",value:function template(t){return new Rt(t)}},{key:"templateCache",value:function templateCache(t){return new Mt(t)}},{key:"threshold",value:function threshold(t){return new Et(t)}},{key:"to",value:function to(t){return new Bt(t)}},{key:"trace",value:function trace(t){return new Dt(t)}},{key:"transform",value:function transform(t){return new jt(t)}},{key:"type",value:function type(t){return new Lt(t)}},{key:"uri",value:function uri(t){return new Nt(t)}},{key:"validate",value:function validate(t){return new Ut(t)}},{key:"validateApprovalSignatures",value:function validateApprovalSignatures(t){return new Ht(t)}},{key:"validationMessaging",value:function validationMessaging(t){return new Wt(t)}},{key:"version",value:function version(t){return new qt(t)}},{key:"versionControl",value:function versionControl(t){return new $t(t)}},{key:"viewerPreferences",value:function viewerPreferences(t){return new Xt(t)}},{key:"webClient",value:function webClient(t){return new zt(t)}},{key:"whitespace",value:function whitespace(t){return new Gt(t)}},{key:"window",value:function window(t){return new Vt(t)}},{key:"xdc",value:function xdc(t){return new Yt(t)}},{key:"xdp",value:function xdp(t){return new Kt(t)}},{key:"xsl",value:function xsl(t){return new Jt(t)}},{key:"zpl",value:function zpl(t){return new Qt(t)}}]);return ConfigNamespace}();r.ConfigNamespace=Zt},(t,r,o)=>{"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.ConnectionSetNamespace=void 0;var l=o(186),c=o(184);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.connectionSet.id,h=function(t){_inherits(ConnectionSet,t);var r=_createSuper(ConnectionSet);function ConnectionSet(t){var o;_classCallCheck(this,ConnectionSet);(o=r.call(this,u,"connectionSet",!0)).wsdlConnection=new c.XFAObjectArray;o.xmlConnection=new c.XFAObjectArray;o.xsdConnection=new c.XFAObjectArray;return o}return ConnectionSet}(c.XFAObject),d=function(t){_inherits(EffectiveInputPolicy,t);var r=_createSuper(EffectiveInputPolicy);function EffectiveInputPolicy(t){var o;_classCallCheck(this,EffectiveInputPolicy);(o=r.call(this,u,"effectiveInputPolicy")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return EffectiveInputPolicy}(c.XFAObject),m=function(t){_inherits(EffectiveOutputPolicy,t);var r=_createSuper(EffectiveOutputPolicy);function EffectiveOutputPolicy(t){var o;_classCallCheck(this,EffectiveOutputPolicy);(o=r.call(this,u,"effectiveOutputPolicy")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return EffectiveOutputPolicy}(c.XFAObject),g=function(t){_inherits(Operation,t);var r=_createSuper(Operation);function Operation(t){var o;_classCallCheck(this,Operation);(o=r.call(this,u,"operation")).id=t.id||"";o.input=t.input||"";o.name=t.name||"";o.output=t.output||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Operation}(c.StringObject),y=function(t){_inherits(RootElement,t);var r=_createSuper(RootElement);function RootElement(t){var o;_classCallCheck(this,RootElement);(o=r.call(this,u,"rootElement")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return RootElement}(c.StringObject),v=function(t){_inherits(SoapAction,t);var r=_createSuper(SoapAction);function SoapAction(t){var o;_classCallCheck(this,SoapAction);(o=r.call(this,u,"soapAction")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return SoapAction}(c.StringObject),S=function(t){_inherits(SoapAddress,t);var r=_createSuper(SoapAddress);function SoapAddress(t){var o;_classCallCheck(this,SoapAddress);(o=r.call(this,u,"soapAddress")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return SoapAddress}(c.StringObject),k=function(t){_inherits(Uri,t);var r=_createSuper(Uri);function Uri(t){var o;_classCallCheck(this,Uri);(o=r.call(this,u,"uri")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Uri}(c.StringObject),_=function(t){_inherits(WsdlAddress,t);var r=_createSuper(WsdlAddress);function WsdlAddress(t){var o;_classCallCheck(this,WsdlAddress);(o=r.call(this,u,"wsdlAddress")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return WsdlAddress}(c.StringObject),C=function(t){_inherits(WsdlConnection,t);var r=_createSuper(WsdlConnection);function WsdlConnection(t){var o;_classCallCheck(this,WsdlConnection);(o=r.call(this,u,"wsdlConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.effectiveInputPolicy=null;o.effectiveOutputPolicy=null;o.operation=null;o.soapAction=null;o.soapAddress=null;o.wsdlAddress=null;return o}return WsdlConnection}(c.XFAObject),w=function(t){_inherits(XmlConnection,t);var r=_createSuper(XmlConnection);function XmlConnection(t){var o;_classCallCheck(this,XmlConnection);(o=r.call(this,u,"xmlConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.uri=null;return o}return XmlConnection}(c.XFAObject),x=function(t){_inherits(XsdConnection,t);var r=_createSuper(XsdConnection);function XsdConnection(t){var o;_classCallCheck(this,XsdConnection);(o=r.call(this,u,"xsdConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.rootElement=null;o.uri=null;return o}return XsdConnection}(c.XFAObject),O=function(){function ConnectionSetNamespace(){_classCallCheck(this,ConnectionSetNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(ConnectionSetNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(ConnectionSetNamespace.hasOwnProperty(t))return ConnectionSetNamespace[t](r)}},{key:"connectionSet",value:function connectionSet(t){return new h(t)}},{key:"effectiveInputPolicy",value:function effectiveInputPolicy(t){return new d(t)}},{key:"effectiveOutputPolicy",value:function effectiveOutputPolicy(t){return new m(t)}},{key:"operation",value:function operation(t){return new g(t)}},{key:"rootElement",value:function rootElement(t){return new y(t)}},{key:"soapAction",value:function soapAction(t){return new v(t)}},{key:"soapAddress",value:function soapAddress(t){return new S(t)}},{key:"uri",value:function uri(t){return new k(t)}},{key:"wsdlAddress",value:function wsdlAddress(t){return new _(t)}},{key:"wsdlConnection",value:function wsdlConnection(t){return new C(t)}},{key:"xmlConnection",value:function xmlConnection(t){return new w(t)}},{key:"xsdConnection",value:function xsdConnection(t){return new x(t)}}]);return ConnectionSetNamespace}();r.ConnectionSetNamespace=O},(t,r,o)=>{"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.DatasetsNamespace=void 0;var l=o(184),c=o(186);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=c.NamespaceIds.datasets.id,h=function(t){_inherits(Data,t);var r=_createSuper(Data);function Data(t){_classCallCheck(this,Data);return r.call(this,u,"data",t)}_createClass(Data,[{key:l.$isNsAgnostic,value:function value(){return!0}}]);return Data}(l.XmlObject),d=function(t){_inherits(Datasets,t);var r=_createSuper(Datasets);function Datasets(t){var o;_classCallCheck(this,Datasets);(o=r.call(this,u,"datasets",!0)).data=null;o.Signature=null;return o}_createClass(Datasets,[{key:l.$onChild,value:function value(t){var r=t[l.$nodeName];("data"===r&&t[l.$namespaceId]===u||"Signature"===r&&t[l.$namespaceId]===c.NamespaceIds.signature.id)&&(this[r]=t);this[l.$appendChild](t)}}]);return Datasets}(l.XFAObject),m=function(){function DatasetsNamespace(){_classCallCheck(this,DatasetsNamespace)}_createClass(DatasetsNamespace,null,[{key:c.$buildXFAObject,value:function value(t,r){if(DatasetsNamespace.hasOwnProperty(t))return DatasetsNamespace[t](r)}},{key:"datasets",value:function datasets(t){return new d(t)}},{key:"data",value:function data(t){return new h(t)}}]);return DatasetsNamespace}();r.DatasetsNamespace=m},(t,r,o)=>{"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.LocaleSetNamespace=void 0;var l=o(186),c=o(184),u=o(185);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 h=l.NamespaceIds.localeSet.id,d=function(t){_inherits(CalendarSymbols,t);var r=_createSuper(CalendarSymbols);function CalendarSymbols(t){var o;_classCallCheck(this,CalendarSymbols);(o=r.call(this,h,"calendarSymbols",!0)).name="gregorian";o.dayNames=new c.XFAObjectArray(2);o.eraNames=null;o.meridiemNames=null;o.monthNames=new c.XFAObjectArray(2);return o}return CalendarSymbols}(c.XFAObject),m=function(t){_inherits(CurrencySymbol,t);var r=_createSuper(CurrencySymbol);function CurrencySymbol(t){var o;_classCallCheck(this,CurrencySymbol);(o=r.call(this,h,"currencySymbol")).name=(0,u.getStringOption)(t.name,["symbol","isoname","decimal"]);return o}return CurrencySymbol}(c.StringObject),g=function(t){_inherits(CurrencySymbols,t);var r=_createSuper(CurrencySymbols);function CurrencySymbols(t){var o;_classCallCheck(this,CurrencySymbols);(o=r.call(this,h,"currencySymbols",!0)).currencySymbol=new c.XFAObjectArray(3);return o}return CurrencySymbols}(c.XFAObject),y=function(t){_inherits(DatePattern,t);var r=_createSuper(DatePattern);function DatePattern(t){var o;_classCallCheck(this,DatePattern);(o=r.call(this,h,"datePattern")).name=(0,u.getStringOption)(t.name,["full","long","med","short"]);return o}return DatePattern}(c.StringObject),v=function(t){_inherits(DatePatterns,t);var r=_createSuper(DatePatterns);function DatePatterns(t){var o;_classCallCheck(this,DatePatterns);(o=r.call(this,h,"datePatterns",!0)).datePattern=new c.XFAObjectArray(4);return o}return DatePatterns}(c.XFAObject),S=function(t){_inherits(DateTimeSymbols,t);var r=_createSuper(DateTimeSymbols);function DateTimeSymbols(t){_classCallCheck(this,DateTimeSymbols);return r.call(this,h,"dateTimeSymbols")}return DateTimeSymbols}(c.ContentObject),k=function(t){_inherits(Day,t);var r=_createSuper(Day);function Day(t){_classCallCheck(this,Day);return r.call(this,h,"day")}return Day}(c.StringObject),_=function(t){_inherits(DayNames,t);var r=_createSuper(DayNames);function DayNames(t){var o;_classCallCheck(this,DayNames);(o=r.call(this,h,"dayNames",!0)).abbr=(0,u.getInteger)({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.day=new c.XFAObjectArray(7);return o}return DayNames}(c.XFAObject),C=function(t){_inherits(Era,t);var r=_createSuper(Era);function Era(t){_classCallCheck(this,Era);return r.call(this,h,"era")}return Era}(c.StringObject),w=function(t){_inherits(EraNames,t);var r=_createSuper(EraNames);function EraNames(t){var o;_classCallCheck(this,EraNames);(o=r.call(this,h,"eraNames",!0)).era=new c.XFAObjectArray(2);return o}return EraNames}(c.XFAObject),x=function(t){_inherits(Locale,t);var r=_createSuper(Locale);function Locale(t){var o;_classCallCheck(this,Locale);(o=r.call(this,h,"locale",!0)).desc=t.desc||"";o.name="isoname";o.calendarSymbols=null;o.currencySymbols=null;o.datePatterns=null;o.dateTimeSymbols=null;o.numberPatterns=null;o.numberSymbols=null;o.timePatterns=null;o.typeFaces=null;return o}return Locale}(c.XFAObject),O=function(t){_inherits(LocaleSet,t);var r=_createSuper(LocaleSet);function LocaleSet(t){var o;_classCallCheck(this,LocaleSet);(o=r.call(this,h,"localeSet",!0)).locale=new c.XFAObjectArray;return o}return LocaleSet}(c.XFAObject),T=function(t){_inherits(Meridiem,t);var r=_createSuper(Meridiem);function Meridiem(t){_classCallCheck(this,Meridiem);return r.call(this,h,"meridiem")}return Meridiem}(c.StringObject),R=function(t){_inherits(MeridiemNames,t);var r=_createSuper(MeridiemNames);function MeridiemNames(t){var o;_classCallCheck(this,MeridiemNames);(o=r.call(this,h,"meridiemNames",!0)).meridiem=new c.XFAObjectArray(2);return o}return MeridiemNames}(c.XFAObject),E=function(t){_inherits(Month,t);var r=_createSuper(Month);function Month(t){_classCallCheck(this,Month);return r.call(this,h,"month")}return Month}(c.StringObject),M=function(t){_inherits(MonthNames,t);var r=_createSuper(MonthNames);function MonthNames(t){var o;_classCallCheck(this,MonthNames);(o=r.call(this,h,"monthNames",!0)).abbr=(0,u.getInteger)({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.month=new c.XFAObjectArray(12);return o}return MonthNames}(c.XFAObject),D=function(t){_inherits(NumberPattern,t);var r=_createSuper(NumberPattern);function NumberPattern(t){var o;_classCallCheck(this,NumberPattern);(o=r.call(this,h,"numberPattern")).name=(0,u.getStringOption)(t.name,["full","long","med","short"]);return o}return NumberPattern}(c.StringObject),j=function(t){_inherits(NumberPatterns,t);var r=_createSuper(NumberPatterns);function NumberPatterns(t){var o;_classCallCheck(this,NumberPatterns);(o=r.call(this,h,"numberPatterns",!0)).numberPattern=new c.XFAObjectArray(4);return o}return NumberPatterns}(c.XFAObject),L=function(t){_inherits(NumberSymbol,t);var r=_createSuper(NumberSymbol);function NumberSymbol(t){var o;_classCallCheck(this,NumberSymbol);(o=r.call(this,h,"numberSymbol")).name=(0,u.getStringOption)(t.name,["decimal","grouping","percent","minus","zero"]);return o}return NumberSymbol}(c.StringObject),N=function(t){_inherits(NumberSymbols,t);var r=_createSuper(NumberSymbols);function NumberSymbols(t){var o;_classCallCheck(this,NumberSymbols);(o=r.call(this,h,"numberSymbols",!0)).numberSymbol=new c.XFAObjectArray(5);return o}return NumberSymbols}(c.XFAObject),U=function(t){_inherits(TimePattern,t);var r=_createSuper(TimePattern);function TimePattern(t){var o;_classCallCheck(this,TimePattern);(o=r.call(this,h,"timePattern")).name=(0,u.getStringOption)(t.name,["full","long","med","short"]);return o}return TimePattern}(c.StringObject),H=function(t){_inherits(TimePatterns,t);var r=_createSuper(TimePatterns);function TimePatterns(t){var o;_classCallCheck(this,TimePatterns);(o=r.call(this,h,"timePatterns",!0)).timePattern=new c.XFAObjectArray(4);return o}return TimePatterns}(c.XFAObject),W=function(t){_inherits(TypeFace,t);var r=_createSuper(TypeFace);function TypeFace(t){var o;_classCallCheck(this,TypeFace);(o=r.call(this,h,"typeFace",!0)).name=""|t.name;return o}return TypeFace}(c.XFAObject),q=function(t){_inherits(TypeFaces,t);var r=_createSuper(TypeFaces);function TypeFaces(t){var o;_classCallCheck(this,TypeFaces);(o=r.call(this,h,"typeFaces",!0)).typeFace=new c.XFAObjectArray;return o}return TypeFaces}(c.XFAObject),$=function(){function LocaleSetNamespace(){_classCallCheck(this,LocaleSetNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(LocaleSetNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(LocaleSetNamespace.hasOwnProperty(t))return LocaleSetNamespace[t](r)}},{key:"calendarSymbols",value:function calendarSymbols(t){return new d(t)}},{key:"currencySymbol",value:function currencySymbol(t){return new m(t)}},{key:"currencySymbols",value:function currencySymbols(t){return new g(t)}},{key:"datePattern",value:function datePattern(t){return new y(t)}},{key:"datePatterns",value:function datePatterns(t){return new v(t)}},{key:"dateTimeSymbols",value:function dateTimeSymbols(t){return new S(t)}},{key:"day",value:function day(t){return new k(t)}},{key:"dayNames",value:function dayNames(t){return new _(t)}},{key:"era",value:function era(t){return new C(t)}},{key:"eraNames",value:function eraNames(t){return new w(t)}},{key:"locale",value:function locale(t){return new x(t)}},{key:"localeSet",value:function localeSet(t){return new O(t)}},{key:"meridiem",value:function meridiem(t){return new T(t)}},{key:"meridiemNames",value:function meridiemNames(t){return new R(t)}},{key:"month",value:function month(t){return new E(t)}},{key:"monthNames",value:function monthNames(t){return new M(t)}},{key:"numberPattern",value:function numberPattern(t){return new D(t)}},{key:"numberPatterns",value:function numberPatterns(t){return new j(t)}},{key:"numberSymbol",value:function numberSymbol(t){return new L(t)}},{key:"numberSymbols",value:function numberSymbols(t){return new N(t)}},{key:"timePattern",value:function timePattern(t){return new U(t)}},{key:"timePatterns",value:function timePatterns(t){return new H(t)}},{key:"typeFace",value:function typeFace(t){return new W(t)}},{key:"typeFaces",value:function typeFaces(t){return new q(t)}}]);return LocaleSetNamespace}();r.LocaleSetNamespace=$},(t,r,o)=>{"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.SignatureNamespace=void 0;var l=o(186),c=o(184);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.signature.id,h=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)}(Signature,t);var r=_createSuper(Signature);function Signature(t){_classCallCheck(this,Signature);return r.call(this,u,"signature",!0)}return Signature}(c.XFAObject),d=function(){function SignatureNamespace(){_classCallCheck(this,SignatureNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(SignatureNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(SignatureNamespace.hasOwnProperty(t))return SignatureNamespace[t](r)}},{key:"signature",value:function signature(t){return new h(t)}}]);return SignatureNamespace}();r.SignatureNamespace=d},(t,r,o)=>{"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.StylesheetNamespace=void 0;var l=o(186),c=o(184);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.stylesheet.id,h=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)}(Stylesheet,t);var r=_createSuper(Stylesheet);function Stylesheet(t){_classCallCheck(this,Stylesheet);return r.call(this,u,"stylesheet",!0)}return Stylesheet}(c.XFAObject),d=function(){function StylesheetNamespace(){_classCallCheck(this,StylesheetNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(StylesheetNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(StylesheetNamespace.hasOwnProperty(t))return StylesheetNamespace[t](r)}},{key:"stylesheet",value:function stylesheet(t){return new h(t)}}]);return StylesheetNamespace}();r.StylesheetNamespace=d},(t,r,o)=>{"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.XdpNamespace=void 0;var l=o(186),c=o(184);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.xdp.id,h=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)}(Xdp,t);var r=_createSuper(Xdp);function Xdp(t){var o;_classCallCheck(this,Xdp);(o=r.call(this,u,"xdp",!0)).uuid=t.uuid||"";o.timeStamp=t.timeStamp||"";o.config=null;o.connectionSet=null;o.datasets=null;o.localeSet=null;o.stylesheet=new c.XFAObjectArray;o.template=null;return o}_createClass(Xdp,[{key:c.$onChildCheck,value:function value(t){var r=l.NamespaceIds[t[c.$nodeName]];return r&&t[c.$namespaceId]===r.id}}]);return Xdp}(c.XFAObject),d=function(){function XdpNamespace(){_classCallCheck(this,XdpNamespace)}_createClass(XdpNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(XdpNamespace.hasOwnProperty(t))return XdpNamespace[t](r)}},{key:"xdp",value:function xdp(t){return new h(t)}}]);return XdpNamespace}();r.XdpNamespace=d},(t,r,o)=>{"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.XhtmlNamespace=void 0;var l=o(184),c=o(186),u=o(191),h=o(185);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||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{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var l,c,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(l=o.next()).done);h=!0){u.push(l.value);if(r&&u.length===r)break}}catch(t){d=!0;c=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw c}}return u}(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 o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var d=c.NamespaceIds.xhtml.id,m=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),g=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(t){return"none"===t?"none":"normal"}],["xfa-font-horizontal-scale",function(t){return"scaleX(".concat(Math.max(0,Math.min(parseInt(t)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(t){return"scaleY(".concat(Math.max(0,Math.min(parseInt(t)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(t,r){t=r.fontSize=(0,h.getMeasurement)(t);return(0,u.measureToString)(.99*t)}],["letter-spacing",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["line-height",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["margin",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["margin-bottom",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["margin-left",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["margin-right",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["margin-top",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["text-indent",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}],["font-family",function(t){return t}]]),y=/\s+/g,v=/[\r\n]+/g;function mapStyle(t,r){var o=Object.create(null);if(!t)return o;var l,c=Object.create(null),h=_createForOfIteratorHelper(t.split(";").map((function(t){return t.split(":",2)})));try{for(h.s();!(l=h.n()).done;){var d=_slicedToArray(l.value,2),m=d[0],y=d[1],v=g.get(m);if(""!==v){var S=y;v&&(S="string"==typeof v?v:v(y,c));m.endsWith("scale")?o.transform?o.transform="".concat(o[m]," ").concat(S):o.transform=S:o[m.replaceAll(/-([a-zA-Z])/g,(function(t,r){return r.toUpperCase()}))]=S}}}catch(t){h.e(t)}finally{h.f()}o.fontFamily&&(0,u.setFontFamily)({typeface:o.fontFamily,weight:o.fontWeight||"normal",posture:o.fontStyle||"normal",size:c.fontSize||0},r,o);(0,u.fixTextIndent)(o);return o}var S=new Set(["body","html"]),k=function(t){_inherits(XhtmlObject,t);var r=_createSuper(XhtmlObject);function XhtmlObject(t,o){var l;_classCallCheck(this,XhtmlObject);(l=r.call(this,d,o)).style=t.style||"";return l}_createClass(XhtmlObject,[{key:l.$clean,value:function value(t){_get(_getPrototypeOf(XhtmlObject.prototype),l.$clean,this).call(this,t);this.style=function checkStyle(t){return t.style?t.style.trim().split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/,2)})).filter((function(r){var o=_slicedToArray(r,2),c=o[0],u=o[1];"font-family"===c&&t[l.$globalData].usedTypefaces.add(u);return m.has(c)})).map((function(t){return t.join(":")})).join(";"):""}(this)}},{key:l.$acceptWhitespace,value:function value(){return!S.has(this[l.$nodeName])}},{key:l.$onText,value:function value(t){t=t.replace(v,"");this.style.includes("xfa-spacerun:yes")||(t=t.replace(y," "));t&&(this[l.$content]+=t)}},{key:l.$pushGlyphs,value:function value(t){var r,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=Object.create(null),u={top:NaN,bottom:NaN,left:NaN,right:NaN},d=null,m=_createForOfIteratorHelper(this.style.split(";").map((function(t){return t.split(":",2)})));try{for(m.s();!(r=m.n()).done;){var g=_slicedToArray(r.value,2),y=g[0],value=g[1];switch(y){case"font-family":c.typeface=(0,h.stripQuotes)(value);break;case"font-size":c.size=(0,h.getMeasurement)(value);break;case"font-weight":c.weight=value;break;case"font-style":c.posture=value;break;case"letter-spacing":c.letterSpacing=(0,h.getMeasurement)(value);break;case"margin":var v=value.split(/ \t/).map((function(t){return(0,h.getMeasurement)(t)}));switch(v.length){case 1:u.top=u.bottom=u.left=u.right=v[0];break;case 2:u.top=u.bottom=v[0];u.left=u.right=v[1];break;case 3:u.top=v[0];u.bottom=v[2];u.left=u.right=v[1];break;case 4:u.top=v[0];u.left=v[1];u.bottom=v[2];u.right=v[3]}break;case"margin-top":u.top=(0,h.getMeasurement)(value);break;case"margin-bottom":u.bottom=(0,h.getMeasurement)(value);break;case"margin-left":u.left=(0,h.getMeasurement)(value);break;case"margin-right":u.right=(0,h.getMeasurement)(value);break;case"line-height":d=(0,h.getMeasurement)(value)}}}catch(t){m.e(t)}finally{m.f()}t.pushData(c,u,d);if(this[l.$content])t.addString(this[l.$content]);else{var S,k=_createForOfIteratorHelper(this[l.$getChildren]());try{for(k.s();!(S=k.n()).done;){var _=S.value;"#text"!==_[l.$nodeName]?_[l.$pushGlyphs](t):t.addString(_[l.$content])}}catch(t){k.e(t)}finally{k.f()}}o&&t.popFont()}},{key:l.$toHTML,value:function value(t){var r=[];this[l.$extra]={children:r};this[l.$childrenToHTML]({});return 0!==r.length||this[l.$content]?h.HTMLResult.success({name:this[l.$nodeName],attributes:{href:this.href,style:mapStyle(this.style,this[l.$globalData].fontFinder)},children:r,value:this[l.$content]||""}):h.HTMLResult.EMPTY}}]);return XhtmlObject}(l.XmlObject),_=function(t){_inherits(A,t);var r=_createSuper(A);function A(t){var o;_classCallCheck(this,A);(o=r.call(this,t,"a")).href=t.href||"";return o}return A}(k),C=function(t){_inherits(B,t);var r=_createSuper(B);function B(t){_classCallCheck(this,B);return r.call(this,t,"b")}_createClass(B,[{key:l.$pushGlyphs,value:function value(t){t.pushFont({weight:"bold"});_get(_getPrototypeOf(B.prototype),l.$pushGlyphs,this).call(this,t);t.popFont()}}]);return B}(k),w=function(t){_inherits(Body,t);var r=_createSuper(Body);function Body(t){_classCallCheck(this,Body);return r.call(this,t,"body")}_createClass(Body,[{key:l.$toHTML,value:function value(t){var r=_get(_getPrototypeOf(Body.prototype),l.$toHTML,this).call(this,t),o=r.html;if(!o)return h.HTMLResult.EMPTY;o.name="div";o.attributes.class=["xfaRich"];return r}}]);return Body}(k),x=function(t){_inherits(Br,t);var r=_createSuper(Br);function Br(t){_classCallCheck(this,Br);return r.call(this,t,"br")}_createClass(Br,[{key:l.$text,value:function value(){return"\n"}},{key:l.$pushGlyphs,value:function value(t){t.addString("\n")}},{key:l.$toHTML,value:function value(t){return h.HTMLResult.success({name:"br"})}}]);return Br}(k),O=function(t){_inherits(Html,t);var r=_createSuper(Html);function Html(t){_classCallCheck(this,Html);return r.call(this,t,"html")}_createClass(Html,[{key:l.$toHTML,value:function value(t){var r=[];this[l.$extra]={children:r};this[l.$childrenToHTML]({});if(0===r.length)return h.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[l.$content]||""});if(1===r.length){var o=r[0];if(o.attributes&&o.attributes.class.includes("xfaRich"))return h.HTMLResult.success(o)}return h.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:r})}}]);return Html}(k),T=function(t){_inherits(I,t);var r=_createSuper(I);function I(t){_classCallCheck(this,I);return r.call(this,t,"i")}_createClass(I,[{key:l.$pushGlyphs,value:function value(t){t.pushFont({posture:"italic"});_get(_getPrototypeOf(I.prototype),l.$pushGlyphs,this).call(this,t);t.popFont()}}]);return I}(k),R=function(t){_inherits(Li,t);var r=_createSuper(Li);function Li(t){_classCallCheck(this,Li);return r.call(this,t,"li")}return Li}(k),E=function(t){_inherits(Ol,t);var r=_createSuper(Ol);function Ol(t){_classCallCheck(this,Ol);return r.call(this,t,"ol")}return Ol}(k),M=function(t){_inherits(P,t);var r=_createSuper(P);function P(t){_classCallCheck(this,P);return r.call(this,t,"p")}_createClass(P,[{key:l.$pushGlyphs,value:function value(t){_get(_getPrototypeOf(P.prototype),l.$pushGlyphs,this).call(this,t,!1);t.addString("\n");t.addPara();t.popFont()}},{key:l.$text,value:function value(){return _get(_getPrototypeOf(P.prototype),l.$text,this).call(this)+"\n"}}]);return P}(k),D=function(t){_inherits(Span,t);var r=_createSuper(Span);function Span(t){_classCallCheck(this,Span);return r.call(this,t,"span")}return Span}(k),j=function(t){_inherits(Sub,t);var r=_createSuper(Sub);function Sub(t){_classCallCheck(this,Sub);return r.call(this,t,"sub")}return Sub}(k),L=function(t){_inherits(Sup,t);var r=_createSuper(Sup);function Sup(t){_classCallCheck(this,Sup);return r.call(this,t,"sup")}return Sup}(k),N=function(t){_inherits(Ul,t);var r=_createSuper(Ul);function Ul(t){_classCallCheck(this,Ul);return r.call(this,t,"ul")}return Ul}(k),U=function(){function XhtmlNamespace(){_classCallCheck(this,XhtmlNamespace)}_createClass(XhtmlNamespace,null,[{key:c.$buildXFAObject,value:function value(t,r){if(XhtmlNamespace.hasOwnProperty(t))return XhtmlNamespace[t](r)}},{key:"a",value:function a(t){return new _(t)}},{key:"b",value:function b(t){return new C(t)}},{key:"body",value:function body(t){return new w(t)}},{key:"br",value:function br(t){return new x(t)}},{key:"html",value:function html(t){return new O(t)}},{key:"i",value:function i(t){return new T(t)}},{key:"li",value:function li(t){return new R(t)}},{key:"ol",value:function ol(t){return new E(t)}},{key:"p",value:function p(t){return new M(t)}},{key:"span",value:function span(t){return new D(t)}},{key:"sub",value:function sub(t){return new j(t)}},{key:"sup",value:function sup(t){return new L(t)}},{key:"ul",value:function ul(t){return new N(t)}}]);return XhtmlNamespace}();r.XhtmlNamespace=U},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.UnknownNamespace=void 0;var l=o(186),c=o(184);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var u=function(){function UnknownNamespace(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,UnknownNamespace);this.namespaceId=t}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(UnknownNamespace,[{key:l.$buildXFAObject,value:function value(t,r){return new c.XmlObject(this.namespaceId,t,r)}}]);return UnknownNamespace}();r.UnknownNamespace=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XRef=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(114),h=o(126),d=o(118),m=o(181);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var g=function(){function XRef(t,r){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XRef);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}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(XRef,[{key:"getNewRef",value:function getNewRef(){null===this._newRefNum&&(this._newRefNum=this.entries.length);return u.Ref.get(this._newRefNum++,0)}},{key:"resetNewRef",value:function resetNewRef(){this._newRefNum=null}},{key:"setStartXRef",value:function setStartXRef(t){this.startXRefQueue=[t]}},{key:"parse",value:function parse(){var t,r,o,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(l){(0,c.warn)("Indexing all PDF objects");t=this.indexObjects()}else t=this.readXRef();t.assignXref(this);this.trailer=t;try{r=t.get("Encrypt")}catch(t){if(t instanceof d.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(t,'".'))}if((0,u.isDict)(r)){var h=t.get("ID"),g=h&&h.length?h[0]:"";r.suppressEncryption=!0;this.encrypt=new m.CipherTransformFactory(r,g,this.pdfManager.password)}try{o=t.get("Root")}catch(t){if(t instanceof d.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Root" reference: "'.concat(t,'".'))}if(!(0,u.isDict)(o)||!o.has("Pages")){if(!l)throw new d.XRefParseException;throw new c.FormatError("Invalid root reference")}this.root=o}},{key:"processXRefTable",value:function 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,u.isCmd)(r,"trailer"))throw new c.FormatError("Invalid XRef table: could not find trailer dictionary");var o=t.getObj();!(0,u.isDict)(o)&&o.dict&&(o=o.dict);if(!(0,u.isDict)(o))throw new c.FormatError("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return o}},{key:"readXRefTable",value:function readXRefTable(t){var r,o=t.lexer.stream,l=this.tableState;o.pos=l.streamPos;t.buf1=l.parserBuf1;t.buf2=l.parserBuf2;for(;;){if(!("firstEntryNum"in l)||!("entryCount"in l)){if((0,u.isCmd)(r=t.getObj(),"trailer"))break;l.firstEntryNum=r;l.entryCount=t.getObj()}var h=l.firstEntryNum,d=l.entryCount;if(!Number.isInteger(h)||!Number.isInteger(d))throw new c.FormatError("Invalid XRef table: wrong types in subsection header");for(var m=l.entryNum;m<d;m++){l.streamPos=o.pos;l.entryNum=m;l.parserBuf1=t.buf1;l.parserBuf2=t.buf2;var g={};g.offset=t.getObj();g.gen=t.getObj();var y=t.getObj();if(y instanceof u.Cmd)switch(y.cmd){case"f":g.free=!0;break;case"n":g.uncompressed=!0}if(!Number.isInteger(g.offset)||!Number.isInteger(g.gen)||!g.free&&!g.uncompressed)throw new c.FormatError("Invalid entry in XRef subsection: ".concat(h,", ").concat(d));0===m&&g.free&&1===h&&(h=0);this.entries[m+h]||(this.entries[m+h]=g)}l.entryNum=0;l.streamPos=o.pos;l.parserBuf1=t.buf1;l.parserBuf2=t.buf2;delete l.firstEntryNum;delete l.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new c.FormatError("Invalid XRef table: unexpected first object");return r}},{key:"processXRefStream",value:function processXRefStream(t){if(!("streamState"in this)){var r=t.dict,o=r.get("W"),l=r.get("Index");l||(l=[0,r.get("Size")]);this.streamState={entryRanges:l,byteWidths:o,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict}},{key:"readXRefStream",value:function readXRefStream(t){var r,o,l=this.streamState;t.pos=l.streamPos;for(var u=l.byteWidths,h=u[0],d=u[1],m=u[2],g=l.entryRanges;g.length>0;){var y=g[0],v=g[1];if(!Number.isInteger(y)||!Number.isInteger(v))throw new c.FormatError("Invalid XRef range fields: ".concat(y,", ").concat(v));if(!Number.isInteger(h)||!Number.isInteger(d)||!Number.isInteger(m))throw new c.FormatError("Invalid XRef entry fields length: ".concat(y,", ").concat(v));for(r=l.entryNum;r<v;++r){l.entryNum=r;l.streamPos=t.pos;var S=0,k=0,_=0;for(o=0;o<h;++o)S=S<<8|t.getByte();0===h&&(S=1);for(o=0;o<d;++o)k=k<<8|t.getByte();for(o=0;o<m;++o)_=_<<8|t.getByte();var C={};C.offset=k;C.gen=_;switch(S){case 0:C.free=!0;break;case 1:C.uncompressed=!0;break;case 2:break;default:throw new c.FormatError("Invalid XRef entry type: ".concat(S))}this.entries[y+r]||(this.entries[y+r]=C)}l.entryNum=0;l.streamPos=t.pos;g.splice(0,2)}}},{key:"indexObjects",value:function indexObjects(){function readToken(t,r){for(var o="",l=t[r];10!==l&&13!==l&&60!==l&&!(++r>=t.length);){o+=String.fromCharCode(l);l=t[r]}return o}function skipUntil(t,r,o){for(var l=o.length,c=t.length,u=0;r<c;){for(var h=0;h<l&&t[r+h]===o[h];)++h;if(h>=l)break;r++;u++}return u}var t=/^(\d+)\s+(\d+)\s+obj\b/,r=/\bendobj[\b\s]$/,o=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,l=new Uint8Array([116,114,97,105,108,101,114]),m=new Uint8Array([115,116,97,114,116,120,114,101,102]),g=new Uint8Array([111,98,106]),y=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var v=this.stream;v.pos=0;for(var S,k=v.getBytes(),_=k.length,C=v.start,w=[],x=[];C<_;){var O=k[C];if(9!==O&&10!==O&&13!==O&&32!==O)if(37!==O){var T=readToken(k,C),R=void 0;if(T.startsWith("xref")&&(4===T.length||/\s/.test(T[4]))){C+=skipUntil(k,C,l);w.push(C);C+=skipUntil(k,C,m)}else if(R=t.exec(T)){var E=0|R[1],M=0|R[2],D=void 0,j=C+T.length,L=!1;if(this.entries[E]){if(this.entries[E].gen===M)try{new h.Parser({lexer:new h.Lexer(v.makeSubStream(j))}).getObj();L=!0}catch(t){t instanceof d.ParserEOFException?(0,c.warn)("indexObjects -- checking object (".concat(T,'): "').concat(t,'".')):L=!0}}else L=!0;L&&(this.entries[E]={offset:C-v.start,gen:M,uncompressed:!0});for(;j<k.length;){var N=j+skipUntil(k,j,g)+4;D=N-C;var U=Math.max(N-25,j),H=(0,c.bytesToString)(k.subarray(U,N));if(r.test(H))break;var W=o.exec(H);if(W&&W[1]){(0,c.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.');D-=W[1].length;break}j=N}var q=k.subarray(C,C+D),$=skipUntil(q,0,y);if($<D&&q[$+5]<64){x.push(C-v.start);this.xrefstms[C-v.start]=1}C+=D}else if(T.startsWith("trailer")&&(7===T.length||/\s/.test(T[7]))){w.push(C);C+=skipUntil(k,C,m)}else C+=T.length+1}else do{if(++C>=_)break;O=k[C]}while(10!==O&&13!==O);else++C}for(var X=0,z=x.length;X<z;++X){this.startXRefQueue.push(x[X]);this.readXRef(!0)}for(var G=0,V=w.length;G<V;++G){v.pos=w[G];var Y=new h.Parser({lexer:new h.Lexer(v),xref:this,allowStreams:!0,recoveryMode:!0}),K=Y.getObj();if((0,u.isCmd)(K,"trailer")){var J=Y.getObj();if((0,u.isDict)(J)){try{var Q=J.get("Root");if(!(Q instanceof u.Dict))continue;var Z=Q.get("Pages");if(!(Z instanceof u.Dict))continue;var ee=Z.get("Count");if(!Number.isInteger(ee))continue}catch(t){continue}if(J.has("ID"))return J;S=J}}}if(S)return S;throw new c.InvalidPDFException("Invalid PDF structure.")}},{key:"readXRef",value:function readXRef(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.stream,o=new Set;try{for(;this.startXRefQueue.length;){var l=this.startXRefQueue[0];if(o.has(l)){(0,c.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift()}else{o.add(l);r.pos=l+r.start;var m=new h.Parser({lexer:new h.Lexer(r),xref:this,allowStreams:!0}),g=m.getObj(),y=void 0;if((0,u.isCmd)(g,"xref")){y=this.processXRefTable(m);this.topDict||(this.topDict=y);g=y.get("XRefStm");if(Number.isInteger(g)){var v=g;if(!(v in this.xrefstms)){this.xrefstms[v]=1;this.startXRefQueue.push(v)}}}else{if(!Number.isInteger(g))throw new c.FormatError("Invalid XRef stream header");if(!Number.isInteger(m.getObj())||!(0,u.isCmd)(m.getObj(),"obj")||!(0,u.isStream)(g=m.getObj()))throw new c.FormatError("Invalid XRef stream");y=this.processXRefStream(g);this.topDict||(this.topDict=y);if(!y)throw new c.FormatError("Failed to read XRef stream")}g=y.get("Prev");Number.isInteger(g)?this.startXRefQueue.push(g):(0,u.isRef)(g)&&this.startXRefQueue.push(g.num);this.startXRefQueue.shift()}}return this.topDict}catch(t){if(t instanceof d.MissingDataException)throw t;(0,c.info)("(while reading XRef): "+t)}if(!t)throw new d.XRefParseException}},{key:"getEntry",value:function getEntry(t){var r=this.entries[t];return r&&!r.free&&r.offset?r:null}},{key:"fetchIfRef",value:function fetchIfRef(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t instanceof u.Ref?this.fetch(t,r):t}},{key:"fetch",value:function fetch(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t instanceof u.Ref))throw new Error("ref object is not a reference");var o=t.num,l=this._cacheMap.get(o);if(void 0!==l){l instanceof u.Dict&&!l.objId&&(l.objId=t.toString());return l}var c=this.getEntry(o);if(null===c){this._cacheMap.set(o,c);return c}c=c.uncompressed?this.fetchUncompressed(t,c,r):this.fetchCompressed(t,c,r);(0,u.isDict)(c)?c.objId=t.toString():(0,u.isStream)(c)&&(c.dict.objId=t.toString());return c}},{key:"fetchUncompressed",value:function fetchUncompressed(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=t.gen,c=t.num;if(r.gen!==l)throw new d.XRefEntryException("Inconsistent generation in XRef: ".concat(t));var m=this.stream.makeSubStream(r.offset+this.stream.start),g=new h.Parser({lexer:new h.Lexer(m),xref:this,allowStreams:!0}),y=g.getObj(),v=g.getObj(),S=g.getObj();if(y!==c||v!==l||!(S instanceof u.Cmd))throw new d.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t));if("obj"!==S.cmd){if(S.cmd.startsWith("obj")){c=parseInt(S.cmd.substring(3),10);if(!Number.isNaN(c))return c}throw new d.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t))}r=this.encrypt&&!o?g.getObj(this.encrypt.createCipherTransform(c,l)):g.getObj();(0,u.isStream)(r)||this._cacheMap.set(c,r);return r}},{key:"fetchCompressed",value:function fetchCompressed(t,r){var o=r.offset,l=this.fetch(u.Ref.get(o,0));if(!(0,u.isStream)(l))throw new c.FormatError("bad ObjStm stream");var m=l.dict.get("First"),g=l.dict.get("N");if(!Number.isInteger(m)||!Number.isInteger(g))throw new c.FormatError("invalid first and n parameters for ObjStm stream");for(var y=new h.Parser({lexer:new h.Lexer(l),xref:this,allowStreams:!0}),v=new Array(g),S=new Array(g),k=0;k<g;++k){var _=y.getObj();if(!Number.isInteger(_))throw new c.FormatError("invalid object number in the ObjStm stream: ".concat(_));var C=y.getObj();if(!Number.isInteger(C))throw new c.FormatError("invalid object offset in the ObjStm stream: ".concat(C));v[k]=_;S[k]=C}for(var w=(l.start||0)+m,x=new Array(g),O=0;O<g;++O){var T=O<g-1?S[O+1]-S[O]:void 0;if(T<0)throw new c.FormatError("Invalid offset in the ObjStm stream.");var R=(y=new h.Parser({lexer:new h.Lexer(l.makeSubStream(w+S[O],T,l.dict)),xref:this,allowStreams:!0})).getObj();x[O]=R;if(!(0,u.isStream)(R)){var E=v[O],M=this.entries[E];M&&M.offset===o&&M.gen===O&&this._cacheMap.set(E,R)}}if(void 0===(r=x[r.gen]))throw new d.XRefEntryException("Bad (compressed) XRef entry: ".concat(t));return r}},{key:"fetchIfRefAsync",value:(r=_asyncToGenerator(l.default.mark((function _callee(t,r){return l.default.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(!(t instanceof u.Ref)){o.next=2;break}return o.abrupt("return",this.fetchAsync(t,r));case 2:return o.abrupt("return",t);case 3:case"end":return o.stop()}}),_callee,this)}))),function fetchIfRefAsync(t,o){return r.apply(this,arguments)})},{key:"fetchAsync",value:(t=_asyncToGenerator(l.default.mark((function _callee2(t,r){return l.default.wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:o.prev=0;return o.abrupt("return",this.fetch(t,r));case 4:o.prev=4;o.t0=o.catch(0);if(o.t0 instanceof d.MissingDataException){o.next=8;break}throw o.t0;case 8:o.next=10;return this.pdfManager.requestRange(o.t0.begin,o.t0.end);case 10:return o.abrupt("return",this.fetchAsync(t,r));case 11:case"end":return o.stop()}}),_callee2,this,[[0,4]])}))),function fetchAsync(r,o){return t.apply(this,arguments)})},{key:"getCatalogObj",value:function getCatalogObj(){return this.root}}]);var t,r;return XRef}();r.XRef=g},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MessageHandler=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 u=1,h=2,d=1,m=2,g=3,y=4,v=5,S=6,k=7,_=8;function wrapReason(t){if("object"!==_typeof(t)||null===t)return t;switch(t.name){case"AbortException":return new c.AbortException(t.message);case"MissingPDFException":return new c.MissingPDFException(t.message);case"UnexpectedResponseException":return new c.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new c.UnknownErrorException(t.message,t.details);default:return new c.UnknownErrorException(t.message,t.toString())}}var C=function(){function MessageHandler(t,r,o){var l=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=o;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===l.sourceName)if(r.stream)l._processStreamMessage(r);else if(r.callback){var c=r.callbackId,d=l.callbackCapabilities[c];if(!d)throw new Error("Cannot resolve callback ".concat(c));delete l.callbackCapabilities[c];if(r.callback===u)d.resolve(r.data);else{if(r.callback!==h)throw new Error("Unexpected callback case");d.reject(wrapReason(r.reason))}}else{var m=l.actionHandler[r.action];if(!m)throw new Error("Unknown action from worker: ".concat(r.action));if(r.callbackId){var g=l.sourceName,y=r.sourceName;new Promise((function(t){t(m(r.data))})).then((function(t){o.postMessage({sourceName:g,targetName:y,callback:u,callbackId:r.callbackId,data:t})}),(function(t){o.postMessage({sourceName:g,targetName:y,callback:h,callbackId:r.callbackId,reason:wrapReason(t)})}))}else r.streamId?l._createStreamSink(r):m(r.data)}};o.addEventListener("message",this._onComObjOnMessage)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(MessageHandler,[{key:"on",value:function on(t,r){var o=this.actionHandler;if(o[t])throw new Error('There is already an actionName called "'.concat(t,'"'));o[t]=r}},{key:"send",value:function send(t,r,o){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},o)}},{key:"sendWithPromise",value:function sendWithPromise(t,r,o){var l=this.callbackId++,u=(0,c.createPromiseCapability)();this.callbackCapabilities[l]=u;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:l,data:r},o)}catch(t){u.reject(t)}return u.promise}},{key:"sendWithStream",value:function sendWithStream(t,r,o,l){var u=this,h=this.streamId++,m=this.sourceName,g=this.targetName,y=this.comObj;return new ReadableStream({start:function start(o){var d=(0,c.createPromiseCapability)();u.streamControllers[h]={controller:o,startCall:d,pullCall:null,cancelCall:null,isClosed:!1};u._postMessage({sourceName:m,targetName:g,action:t,streamId:h,data:r,desiredSize:o.desiredSize},l);return d.promise},pull:function pull(t){var r=(0,c.createPromiseCapability)();u.streamControllers[h].pullCall=r;y.postMessage({sourceName:m,targetName:g,stream:S,streamId:h,desiredSize:t.desiredSize});return r.promise},cancel:function cancel(t){(0,c.assert)(t instanceof Error,"cancel must have a valid reason");var r=(0,c.createPromiseCapability)();u.streamControllers[h].cancelCall=r;u.streamControllers[h].isClosed=!0;y.postMessage({sourceName:m,targetName:g,stream:d,streamId:h,reason:wrapReason(t)});return r.promise}},o)}},{key:"_createStreamSink",value:function _createStreamSink(t){var r=this,o=this.actionHandler[t.action],l=t.streamId,u=this.sourceName,h=t.sourceName,d=this.comObj,m={enqueue:function enqueue(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,d=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var m=this.desiredSize;this.desiredSize-=o;if(m>0&&this.desiredSize<=0){this.sinkCapability=(0,c.createPromiseCapability)();this.ready=this.sinkCapability.promise}r._postMessage({sourceName:u,targetName:h,stream:y,streamId:l,chunk:t},d)}},close:function close(){if(!this.isCancelled){this.isCancelled=!0;d.postMessage({sourceName:u,targetName:h,stream:g,streamId:l});delete r.streamSinks[l]}},error:function error(t){(0,c.assert)(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;d.postMessage({sourceName:u,targetName:h,stream:v,streamId:l,reason:wrapReason(t)})}},sinkCapability:(0,c.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};m.sinkCapability.resolve();m.ready=m.sinkCapability.promise;this.streamSinks[l]=m;new Promise((function(r){r(o(t.data,m))})).then((function(){d.postMessage({sourceName:u,targetName:h,stream:_,streamId:l,success:!0})}),(function(t){d.postMessage({sourceName:u,targetName:h,stream:_,streamId:l,reason:wrapReason(t)})}))}},{key:"_processStreamMessage",value:function _processStreamMessage(t){var r=t.streamId,o=this.sourceName,l=t.sourceName,u=this.comObj;switch(t.stream){case _:t.success?this.streamControllers[r].startCall.resolve():this.streamControllers[r].startCall.reject(wrapReason(t.reason));break;case k:t.success?this.streamControllers[r].pullCall.resolve():this.streamControllers[r].pullCall.reject(wrapReason(t.reason));break;case S:if(!this.streamSinks[r]){u.postMessage({sourceName:o,targetName:l,stream:k,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 h=this.streamSinks[t.streamId].onPull;new Promise((function(t){t(h&&h())})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:k,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:k,streamId:r,reason:wrapReason(t)})}));break;case y:(0,c.assert)(this.streamControllers[r],"enqueue should have stream controller");if(this.streamControllers[r].isClosed)break;this.streamControllers[r].controller.enqueue(t.chunk);break;case g:(0,c.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 v:(0,c.assert)(this.streamControllers[r],"error should have stream controller");this.streamControllers[r].controller.error(wrapReason(t.reason));this._deleteStreamController(r);break;case m:t.success?this.streamControllers[r].cancelCall.resolve():this.streamControllers[r].cancelCall.reject(wrapReason(t.reason));this._deleteStreamController(r);break;case d:if(!this.streamSinks[r])break;var C=this.streamSinks[t.streamId].onCancel;new Promise((function(r){r(C&&C(wrapReason(t.reason)))})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:m,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:m,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,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t){return l.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=C},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFWorkerStream=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var u=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,c.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new h(this._msgHandler);return this._fullRequestReader}},{key:"getRangeReader",value:function getRangeReader(t,r){var o=new d(t,r,this._msgHandler);this._rangeRequestReaders.push(o);return o}},{key:"cancelAllRequests",value:function cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t);var r,o=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(o.s();!(r=o.n()).done;){r.value.cancel(t)}}catch(t){o.e(t)}finally{o.f()}}}]);return PDFWorkerStream}();r.PDFWorkerStream=u;var h=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 o=this._msgHandler.sendWithStream("GetReader");this._reader=o.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:"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}},{key:"read",value:(t=_asyncToGenerator(l.default.mark((function _callee(){var t,r;return l.default.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this._reader.read();case 2:t=o.sent;r=t.value;if(!t.done){o.next=7;break}return o.abrupt("return",{value:void 0,done:!0});case 7:return o.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return o.stop()}}),_callee,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}}]);var t;return PDFWorkerStreamReader}(),d=function(){function PDFWorkerStreamRangeReader(t,r,o){_classCallCheck(this,PDFWorkerStreamRangeReader);this._msgHandler=o;this.onProgress=null;var l=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=l.getReader()}_createClass(PDFWorkerStreamRangeReader,[{key:"isStreamingSupported",get:function get(){return!1}},{key:"read",value:(t=_asyncToGenerator(l.default.mark((function _callee2(){var t,r;return l.default.wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this._reader.read();case 2:t=o.sent;r=t.value;if(!t.done){o.next=7;break}return o.abrupt("return",{value:void 0,done:!0});case 7:return o.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return o.stop()}}),_callee2,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}}]);var t;return PDFWorkerStreamRangeReader}()}],r={};function __w_pdfjs_require__(o){var l=r[o];if(void 0!==l)return l.exports;var c=r[o]={id:o,loaded:!1,exports:{}};t[o].call(c.exports,c,c.exports,__w_pdfjs_require__);c.loaded=!0;return c.exports}__w_pdfjs_require__.d=(t,r)=>{for(var o in r)__w_pdfjs_require__.o(r,o)&&!__w_pdfjs_require__.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})};__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};var o={};(()=>{"use strict";var t=o;Object.defineProperty(t,"__esModule",{value:!0});Object.defineProperty(t,"WorkerMessageHandler",{enumerable:!0,get:function get(){return r.WorkerMessageHandler}});var r=__w_pdfjs_require__(1)})();return o})()}));