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 2022 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 c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(147),h=o(148),d=o(208),g=o(214),m=o(6),y=o(242),v=o(243),k=o(150);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _arrayWithHoles(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var _=function(){function WorkerTask(t){_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=(0,l.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=_;var w=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;t.send("test",r instanceof Uint8Array&&255===r[0])}}));t.on("configure",(function wphConfigure(t){(0,l.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function wphSetupDoc(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var o,w=!1,S=null,C=[],x=(0,l.getVerbosityLevel)(),O=t.apiVersion,T="2.13.216";if(O!==T)throw new Error('The API version "'.concat(O,'" does not match ')+'the Worker version "'.concat(T,'".'));var E=[];for(var M in[])E.push(M);if(E.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+E.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof ReadableStream){var R="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(m.isNodeJS)throw new Error(R+"please use a `legacy`-build instead.");throw new Error(R+"please update to a supported browser.")}var j=t.docId,D=t.docBaseUrl,N=t.docId+"_worker",L=new y.MessageHandler(N,j,r);function ensureNotTerminated(){if(w)throw new Error("Worker was terminated")}function startWorkerTask(t){C.push(t)}function finishWorkerTask(t){t.finish();var r=C.indexOf(t);C.splice(r,1)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=_asyncToGenerator(c.default.mark((function _callee(t){var r,l,u,h,d,g,m;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:c.next=2;return o.ensureDoc("checkHeader");case 2:c.next=4;return o.ensureDoc("parseStartXRef");case 4:c.next=6;return o.ensureDoc("parse",[t]);case 6:c.next=8;return o.ensureDoc("checkFirstPage",[t]);case 8:c.next=10;return o.ensureDoc("checkLastPage",[t]);case 10:c.next=12;return o.ensureDoc("isPureXfa");case 12:if(!(r=c.sent)){c.next=18;break}startWorkerTask(l=new _("loadXfaFonts"));c.next=18;return Promise.all([o.loadXfaFonts(L,l).catch((function(t){})).then((function(){return finishWorkerTask(l)})),o.loadXfaImages()]);case 18:c.next=20;return Promise.all([o.ensureDoc("numPages"),o.ensureDoc("fingerprints")]);case 20:u=c.sent;h=_slicedToArray(u,2);d=h[0];g=h[1];if(!r){c.next=30;break}c.next=27;return o.ensureDoc("htmlForXfa");case 27:c.t0=c.sent;c.next=31;break;case 30:c.t0=null;case 31:m=c.t0;return c.abrupt("return",{numPages:d,fingerprints:g,htmlForXfa:m});case 33:case"end":return c.stop()}}),_callee)})))).apply(this,arguments)}function getPdfManager(t,r,o){var c,u=(0,l.createPromiseCapability)(),d=t.source;if(d.data){try{c=new h.LocalPdfManager(j,d.data,d.password,L,r,o,D);u.resolve(c)}catch(t){u.reject(t)}return u.promise}var g,m=[];try{g=new v.PDFWorkerStream(L)}catch(t){u.reject(t);return u.promise}var y=g.getFullReader();y.headersReady.then((function(){if(y.isRangeSupported){var t=d.disableAutoFetch||y.isStreamingSupported;c=new h.NetworkPdfManager(j,g,{msgHandler:L,password:d.password,length:y.contentLength,disableAutoFetch:t,rangeChunkSize:d.rangeChunkSize},r,o,D);for(var l=0;l<m.length;l++)c.sendProgressiveData(m[l]);m=[];u.resolve(c);S=null}})).catch((function(t){u.reject(t);S=null}));var k=0;new Promise((function(t,g){y.read().then((function readChunk(t){var v=t.value,_=t.done;try{ensureNotTerminated();if(_){c||function flushChunks(){var t=(0,l.arraysToBytes)(m);d.length&&t.length!==d.length&&(0,l.warn)("reported HTTP length is different from actual");try{c=new h.LocalPdfManager(j,t,d.password,L,r,o,D);u.resolve(c)}catch(t){u.reject(t)}m=[]}();S=null;return}k+=(0,l.arrayByteLength)(v);y.isStreamingSupported||L.send("DocProgress",{loaded:k,total:Math.max(k,y.contentLength||0)});c?c.sendProgressiveData(v):m.push(v);y.read().then(readChunk,g)}catch(t){g(t)}}),g)})).catch((function(t){u.reject(t);S=null}));S=function cancelXHRs(t){g.cancelAllRequests(t)};return u.promise}L.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]}}))}))}));L.on("GetPageIndex",(function wphSetupGetPageIndex(t){var r=u.Ref.get(t.num,t.gen);return o.ensureCatalog("getPageIndex",[r])}));L.on("GetDestinations",(function wphSetupGetDestinations(t){return o.ensureCatalog("destinations")}));L.on("GetDestination",(function wphSetupGetDestination(t){return o.ensureCatalog("getDestination",[t.id])}));L.on("GetPageLabels",(function wphSetupGetPageLabels(t){return o.ensureCatalog("pageLabels")}));L.on("GetPageLayout",(function wphSetupGetPageLayout(t){return o.ensureCatalog("pageLayout")}));L.on("GetPageMode",(function wphSetupGetPageMode(t){return o.ensureCatalog("pageMode")}));L.on("GetViewerPreferences",(function(t){return o.ensureCatalog("viewerPreferences")}));L.on("GetOpenAction",(function(t){return o.ensureCatalog("openAction")}));L.on("GetAttachments",(function wphSetupGetAttachments(t){return o.ensureCatalog("attachments")}));L.on("GetJavaScript",(function wphSetupGetJavaScript(t){return o.ensureCatalog("javaScript")}));L.on("GetDocJSActions",(function wphSetupGetDocJSActions(t){return o.ensureCatalog("jsActions")}));L.on("GetPageJSActions",(function(t){var r=t.pageIndex;return o.getPage(r).then((function(t){return o.ensure(t,"jsActions")}))}));L.on("GetOutline",(function wphSetupGetOutline(t){return o.ensureCatalog("documentOutline")}));L.on("GetOptionalContentConfig",(function(t){return o.ensureCatalog("optionalContentConfig")}));L.on("GetPermissions",(function(t){return o.ensureCatalog("permissions")}));L.on("GetMetadata",(function wphSetupGetMetadata(t){return Promise.all([o.ensureDoc("documentInfo"),o.ensureCatalog("metadata")])}));L.on("GetMarkInfo",(function wphSetupGetMarkInfo(t){return o.ensureCatalog("markInfo")}));L.on("GetData",(function wphSetupGetData(t){o.requestLoadedStream();return o.onLoadedStream().then((function(t){return t.bytes}))}));L.on("GetAnnotations",(function(t){var r=t.pageIndex,c=t.intent;return o.getPage(r).then((function(t){return t.getAnnotationsData(c)}))}));L.on("GetFieldObjects",(function(t){return o.ensureDoc("fieldObjects")}));L.on("HasJSActions",(function(t){return o.ensureDoc("hasJSActions")}));L.on("GetCalculationOrderIds",(function(t){return o.ensureDoc("calculationOrderIds")}));L.on("SaveDocument",(function(t){var r=t.isPureXfa,c=t.numPages,h=t.annotationStorage,d=t.filename;o.requestLoadedStream();var m=[o.onLoadedStream(),o.ensureCatalog("acroForm"),o.ensureCatalog("acroFormRef"),o.ensureDoc("xref"),o.ensureDoc("startXRef")];if(r)m.push(o.serializeXfaData(h));else for(var y=function _loop(t){m.push(o.getPage(t).then((function(r){var o=new _("Save: page ".concat(t));return r.save(L,o,h).finally((function(){finishWorkerTask(o)}))})))},v=0;v<c;v++)y(v);return Promise.all(m).then((function(t){var o=_toArray(t),c=o[0],h=o[1],m=o[2],y=o[3],v=o[4],k=o.slice(5),_=[],w=null;if(r){if(!(w=k[0]))return c.bytes}else{var S,C=_createForOfIteratorHelper(k);try{for(C.s();!(S=C.n()).done;){_=S.value.filter((function(t){return null!==t})).reduce((function(t,r){return t.concat(r)}),_)}}catch(t){C.e(t)}finally{C.f()}if(0===_.length)return c.bytes}var x=h instanceof u.Dict&&h.get("XFA")||null,O=null,T=!1;if(Array.isArray(x)){for(var E=0,M=x.length;E<M;E+=2)if("datasets"===x[E]){O=x[E+1];m=null;T=!0}null===O&&(O=y.getNewRef())}else if(x){m=null;(0,l.warn)("Unsupported XFA type.")}var R=Object.create(null);if(y.trailer){var j=Object.create(null),D=y.trailer.get("Info")||null;D instanceof u.Dict&&D.forEach((function(t,r){"string"==typeof r&&(j[t]=(0,l.stringToPDFString)(r))}));R={rootRef:y.trailer.getRaw("Root")||null,encryptRef:y.trailer.getRaw("Encrypt")||null,newRef:y.getNewRef(),infoRef:y.trailer.getRaw("Info")||null,info:j,fileIds:y.trailer.get("ID")||null,startXRef:v,filename:d}}y.resetNewRef();return(0,g.incrementalUpdate)({originalData:c.bytes,xrefInfo:R,newRefs:_,xref:y,hasXfa:!!x,xfaDatasetsRef:O,hasXfaDatasetsEntry:T,acroFormRef:m,acroForm:h,xfaData:w})}))}));L.on("GetOperatorList",(function wphSetupRenderPage(t,r){var c=t.pageIndex;o.getPage(c).then((function(o){var u=new _("GetOperatorList: page ".concat(c));startWorkerTask(u);var h=x>=l.VerbosityLevel.INFOS?Date.now():0;o.getOperatorList({handler:L,sink:r,task:u,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(u);h&&(0,l.info)("page=".concat(c+1," - getOperatorList: time=")+"".concat(Date.now()-h,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(u);if(!u.terminated){L.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));L.on("GetTextContent",(function wphExtractText(t,r){var c=t.pageIndex;o.getPage(c).then((function(o){var u=new _("GetTextContent: page "+c);startWorkerTask(u);var h=x>=l.VerbosityLevel.INFOS?Date.now():0;o.extractTextContent({handler:L,task:u,sink:r,includeMarkedContent:t.includeMarkedContent,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(u);h&&(0,l.info)("page=".concat(c+1," - getTextContent: time=")+"".concat(Date.now()-h,"ms"));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));L.on("GetStructTree",(function wphGetStructTree(t){return o.getPage(t.pageIndex).then((function(t){return o.ensure(t,"getStructTree")}))}));L.on("FontFallback",(function(t){return o.fontFallback(t.id,L)}));L.on("Cleanup",(function wphCleanup(t){return o.cleanup(!0)}));L.on("Terminate",(function wphTerminate(t){w=!0;var r=[];if(o){o.terminate(new l.AbortException("Worker was terminated."));var c=o.cleanup();r.push(c);o=null}else(0,d.clearGlobalCaches)();S&&S(new l.AbortException("Worker was terminated."));var u,h=_createForOfIteratorHelper(C);try{for(h.s();!(u=h.n()).done;){var g=u.value;r.push(g.finished);g.terminate()}}catch(t){h.e(t)}finally{h.f()}return Promise.all(r).then((function(){L.destroy();L=null}))}));L.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();L.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof l.PasswordException){var r=new _("PasswordException: response ".concat(t.code));startWorkerTask(r);L.sendWithPromise("PasswordRequest",t).then((function(t){var c=t.password;finishWorkerTask(r);o.updatePassword(c);pdfManagerReady()})).catch((function(){finishWorkerTask(r);L.send("DocException",t)}))}else t instanceof l.InvalidPDFException||t instanceof l.MissingPDFException||t instanceof l.UnexpectedResponseException||t instanceof l.UnknownErrorException?L.send("DocException",t):L.send("DocException",new l.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof k.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(w){t.terminate(new l.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).onLoadedStream().then((function(t){L.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return N}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new y.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=w;"undefined"==typeof window&&!m.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&w.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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var c=function(t){var r,o=Object.prototype,c=o.hasOwnProperty,l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.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,c){var l=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(l.prototype),h=new Context(c||[]);u._invoke=function makeInvokeMethod(t,r,o){var c=g;return function invoke(l,u){if(c===y)throw new Error("Generator is already running");if(c===v){if("throw"===l)throw u;return doneResult()}o.method=l;o.arg=u;for(;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===k)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(c===g){c=v;throw o.arg}o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c=y;var _=tryCatch(t,r,o);if("normal"===_.type){c=o.done?v:m;if(_.arg===k)continue;return{value:_.arg,done:o.done}}if("throw"===_.type){c=v;o.method="throw";o.arg=_.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 g="suspendedStart",m="suspendedYield",y="executing",v="completed",k={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var _={};define(_,u,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(values([])));S&&S!==o&&c.call(S,u)&&(_=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(_);GeneratorFunction.prototype=GeneratorFunctionPrototype;define(C,"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(C);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,m=g.value;return m&&"object"===_typeof(m)&&c.call(m,"__await")?r.resolve(m.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(m).then((function(t){g.value=t;u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;this._invoke=function enqueue(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,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,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(r,o,c,l),u);return t.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))};function maybeInvokeDelegate(t,o){var c=t.iterator[o.method];if(c===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 k}o.method="throw";o.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var l=tryCatch(c,t.iterator,o.arg);if("throw"===l.type){o.method="throw";o.arg=l.arg;o.delegate=null;return k}var u=l.arg;if(!u){o.method="throw";o.arg=new TypeError("iterator result is not an object");o.delegate=null;return k}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 k}defineIteratorMethods(C);define(C,d,"Generator");define(C,u,(function(){return this}));define(C,"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 l=-1,h=function next(){for(;++l<t.length;)if(c.call(t,l)){next.value=t[l];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)&&c.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(c,l){h.type="throw";h.arg=t;o.next=c;if(l){o.method="next";o.arg=r}return!!l}for(var l=this.tryEntries.length-1;l>=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){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(!g)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 l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var u=l;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 k}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 k},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 k}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,o,c){this.delegate={iterator:values(t),resultName:o,nextLoc:c};"next"===this.method&&(this.arg=r);return k}};return t}("object"===_typeof(t=o.nmd(t))?t.exports:{});try{regeneratorRuntime=c}catch(t){"object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=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.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 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,c=0;c<r;c++)o+=arrayByteLength(t[c]);for(var l=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 g=d.byteLength;u.set(d,l);l+=g}return u};r.assert=function assert(t,r){t||unreachable(r)};r.bytesToString=function bytesToString(t){"object"===_typeof(t)&&null!==t&&void 0!==t.length||unreachable("Invalid argument for bytesToString");var r=t.length,o=8192;if(r<o)return String.fromCharCode.apply(null,t);for(var c=[],l=0;l<r;l+=o){var u=Math.min(l+o,r),h=t.subarray(l,u);c.push(String.fromCharCode.apply(null,h))}return c.join("")};r.createPromiseCapability=function createPromiseCapability(){var t=Object.create(null),r=!1;Object.defineProperty(t,"settled",{get:function get(){return r}});t.promise=new Promise((function(o,c){t.resolve=function(t){r=!0;o(t)};t.reject=function(t){r=!0;c(t)}}));return t};r.createValidAbsoluteUrl=function createValidAbsoluteUrl(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(o&&"string"==typeof t){if(o.addDefaultProtocol&&t.startsWith("www.")){var c=t.match(/\./g);c&&c.length>=2&&(t="http://".concat(t))}if(o.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}var l=r?new URL(t,r):new URL(t);if(_isValidProtocol(l))return l}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 l};r.info=function info(t){l>=c.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,c=t.length;o<c;o++)if(t[o]!==r[o])return!1;return!0};r.isAscii=function isAscii(t){return/^[\x00-\x7F]*$/.test(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 c=new URL(r,o);return o.origin===c.origin};r.objectFromMap=function objectFromMap(t){var r,o=Object.create(null),c=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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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(c.s();!(r=c.n()).done;){var l=(d=r.value,g=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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(d,g)||_unsupportedIterableToArray(d,g)||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=l[0],h=l[1];o[u]=h}}catch(t){c.e(t)}finally{c.f()}var d,g;return o};r.objectSize=function objectSize(t){return Object.keys(t).length};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(l=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){if(t[0]>="ï"){var r;"þ"===t[0]&&"ÿ"===t[1]?r="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?r="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(r="utf-8");if(r)try{var o=new TextDecoder(r,{fatal:!0}),c=stringToBytes(t);return o.decode(c)}catch(t){warn('stringToPDFString: "'.concat(t,'".'))}}for(var l=[],u=0,h=t.length;u<h;u++){var d=x[t.charCodeAt(u)];l.push(d?String.fromCharCode(d):t.charAt(u))}return l.join("")};r.stringToUTF16BEString=function stringToUTF16BEString(t){for(var r=["þÿ"],o=0,c=t.length;o<c;o++){var l=t.charCodeAt(o);r.push(String.fromCharCode(l>>8&255),String.fromCharCode(255&l))}return r.join("")};r.stringToUTF8String=stringToUTF8String;r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;o(5);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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}r.IDENTITY_MATRIX=[1,0,0,1,0,0];r.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];r.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};r.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};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 c={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=c;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",errorContentSubStream:"errorContentSubStream"};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var l=c.WARNINGS;function warn(t){l>=c.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}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}}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,r){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=r}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 c;_classCallCheck(this,PasswordException);(c=r.call(this,t,"PasswordException")).code=o;return c}return _createClass(PasswordException)}(u);r.PasswordException=h;var d=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var c;_classCallCheck(this,UnknownErrorException);(c=r.call(this,t,"UnknownErrorException")).details=o;return c}return _createClass(UnknownErrorException)}(u);r.UnknownErrorException=d;var g=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(t){_classCallCheck(this,InvalidPDFException);return r.call(this,t,"InvalidPDFException")}return _createClass(InvalidPDFException)}(u);r.InvalidPDFException=g;var m=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return _createClass(MissingPDFException)}(u);r.MissingPDFException=m;var y=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,o){var c;_classCallCheck(this,UnexpectedResponseException);(c=r.call(this,t,"UnexpectedResponseException")).status=o;return c}return _createClass(UnexpectedResponseException)}(u);r.UnexpectedResponseException=y;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return _createClass(FormatError)}(u);r.FormatError=v;var k=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(t){_classCallCheck(this,AbortException);return r.call(this,t,"AbortException")}return _createClass(AbortException)}(u);r.AbortException=k;function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),c=0;c<r;++c)o[c]=255&t.charCodeAt(c);return o}function arrayByteLength(t){if(void 0!==t.length)return t.length;if(void 0!==t.byteLength)return t.byteLength;unreachable("Invalid argument for arrayByteLength")}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 w={get value(){return shadow(this,"value",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}};r.IsEvalSupportedCached=w;var S=_toConsumableArray(Array(256).keys()).map((function(t){return t.toString(16).padStart(2,"0")})),C=function(){function Util(){_classCallCheck(this,Util)}_createClass(Util,null,[{key:"makeHexColor",value:function makeHexColor(t,r,o){return"#".concat(S[t]).concat(S[r]).concat(S[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),c=Util.applyTransform(t.slice(2,4),r),l=Util.applyTransform([t[0],t[3]],r),u=Util.applyTransform([t[2],t[1]],r);return[Math.min(o[0],c[0],l[0],u[0]),Math.min(o[1],c[1],l[1],u[1]),Math.max(o[0],c[0],l[0],u[0]),Math.max(o[1],c[1],l[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],c=t[0]*r[1]+t[1]*r[3],l=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-l*c))/2,g=h+d||1,m=h-d||1;return[Math.sqrt(g),Math.sqrt(m)]}},{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),c=[t[1],t[3],r[1],r[3]].sort(compare),l=[];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;l[0]=o[1];l[2]=o[2];if(!(c[0]===t[1]&&c[1]===r[1]||c[0]===r[1]&&c[1]===t[1]))return null;l[1]=c[1];l[3]=c[2];return l}},{key:"bezierBoundingBox",value:function bezierBoundingBox(t,r,o,c,l,u,h,d){for(var g,m,y,v,k,_,w,S,C=[],x=[[],[]],O=0;O<2;++O){if(0===O){m=6*t-12*o+6*l;g=-3*t+9*o-9*l+3*h;y=3*o-3*t}else{m=6*r-12*c+6*u;g=-3*r+9*c-9*u+3*d;y=3*c-3*r}if(Math.abs(g)<1e-12){if(Math.abs(m)<1e-12)continue;0<(v=-y/m)&&v<1&&C.push(v)}else{w=m*m-4*y*g;S=Math.sqrt(w);if(!(w<0)){0<(k=(-m+S)/(2*g))&&k<1&&C.push(k);0<(_=(-m-S)/(2*g))&&_<1&&C.push(_)}}}for(var T,E=C.length,M=E;E--;){T=1-(v=C[E]);x[0][E]=T*T*T*t+3*T*T*v*o+3*T*v*v*l+v*v*v*h;x[1][E]=T*T*T*r+3*T*T*v*c+3*T*v*v*u+v*v*v*d}x[0][M]=t;x[1][M]=r;x[0][M+1]=h;x[1][M+1]=d;x[0].length=x[1].length=M+2;return[Math.min.apply(Math,_toConsumableArray(x[0])),Math.min.apply(Math,_toConsumableArray(x[1])),Math.max.apply(Math,_toConsumableArray(x[0])),Math.max.apply(Math,_toConsumableArray(x[1]))]}}]);return Util}();r.Util=C;var x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(t){return decodeURIComponent(escape(t))}},(t,r,o)=>{"use strict";var c=o(6);if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&c.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&c.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&c.isNodeJS&&(globalThis.DOMMatrix=o(7))}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=o(8))}();!function checkReadableStream(){!globalThis.ReadableStream&&c.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream)}();!function checkStructuredClone(){globalThis.structuredClone||o(132)}()}},(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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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)=>{"use strict";var c,l,u;function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}u=function(){function fromArray(r){var o=new t,c=Array.from(r);if(!c.every((function(t){return!Number.isNaN(t)})))throw TypeError('CSSMatrix: "'+r+'" must only have numbers.');if(16===c.length){var l=c[0],u=c[1],h=c[2],d=c[3],g=c[4],m=c[5],y=c[6],v=c[7],k=c[8],_=c[9],w=c[10],S=c[11],C=c[12],x=c[13],O=c[14],T=c[15];o.m11=l;o.a=l;o.m21=g;o.c=g;o.m31=k;o.m41=C;o.e=C;o.m12=u;o.b=u;o.m22=m;o.d=m;o.m32=_;o.m42=x;o.f=x;o.m13=h;o.m23=y;o.m33=w;o.m43=O;o.m14=d;o.m24=v;o.m34=S;o.m44=T}else{if(6!==c.length)throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");var E=c[0],M=c[1],R=c[2],j=c[3],D=c[4],N=c[5];o.m11=E;o.a=E;o.m12=M;o.b=M;o.m21=R;o.c=R;o.m22=j;o.d=j;o.m41=D;o.e=D;o.m42=N;o.f=N}return o}function fromMatrix(r){var o=Object.keys(new t);if("object"===_typeof(r)&&o.every((function(t){return t in r})))return fromArray([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]);throw TypeError('CSSMatrix: "'+r+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function fromString(r){if("string"!=typeof r)throw TypeError('CSSMatrix: "'+r+'" is not a string.');var o=String(r).replace(/\s/g,""),c=new t,l='CSSMatrix: invalid transform string "'+r+'"';o.split(")").filter((function(t){return t})).forEach((function(t){var r=t.split("("),o=r[0],u=r[1];if(!u)throw TypeError(l);var h=u.split(",").map((function(t){return t.includes("rad")?parseFloat(t)*(180/Math.PI):parseFloat(t)})),d=h[0],g=h[1],m=h[2],y=h[3],v=[d,g,m],k=[d,g,m,y];if("perspective"===o&&d&&[g,m].every((function(t){return void 0===t})))c.m34=-1/d;else if(o.includes("matrix")&&[6,16].includes(h.length)&&h.every((function(t){return!Number.isNaN(+t)}))){var _=h.map((function(t){return Math.abs(t)<1e-6?0:t}));c=c.multiply(fromArray(_))}else if("translate3d"===o&&v.every((function(t){return!Number.isNaN(+t)})))c=c.translate(d,g,m);else if("translate"===o&&d&&void 0===m)c=c.translate(d,g||0,0);else if("rotate3d"===o&&k.every((function(t){return!Number.isNaN(+t)}))&&y)c=c.rotateAxisAngle(d,g,m,y);else if("rotate"===o&&d&&[g,m].every((function(t){return void 0===t})))c=c.rotate(0,0,d);else if("scale3d"===o&&v.every((function(t){return!Number.isNaN(+t)}))&&v.some((function(t){return 1!==t})))c=c.scale(d,g,m);else if("scale"!==o||Number.isNaN(d)||1===d||void 0!==m)if("skew"===o&&d&&void 0===m){c=c.skewX(d);c=g?c.skewY(g):c}else{if(!(/[XYZ]/.test(o)&&d&&[g,m].every((function(t){return void 0===t}))&&["translate","rotate","scale","skew"].some((function(t){return o.includes(t)}))))throw TypeError(l);if(["skewX","skewY"].includes(o))c=c[o](d);else{var w=o.replace(/[XYZ]/,""),S=o.replace(w,""),C=["X","Y","Z"].indexOf(S),x=[0===C?d:0,1===C?d:0,2===C?d:0];c=c[w].apply(c,x)}}else{var O=Number.isNaN(+g)?d:g;c=c.scale(d,O,1)}}));return c}function Translate(r,o,c){var l=new t;l.m41=r;l.e=r;l.m42=o;l.f=o;l.m43=c;return l}function Rotate(r,o,c){var l=new t,u=Math.PI/180,h=r*u,d=o*u,g=c*u,m=Math.cos(h),y=-Math.sin(h),v=Math.cos(d),k=-Math.sin(d),_=Math.cos(g),w=-Math.sin(g),S=v*_,C=-v*w;l.m11=S;l.a=S;l.m12=C;l.b=C;l.m13=k;var x=y*k*_+m*w;l.m21=x;l.c=x;var O=m*_-y*k*w;l.m22=O;l.d=O;l.m23=-y*v;l.m31=y*w-m*k*_;l.m32=y*_+m*k*w;l.m33=m*v;return l}function RotateAxisAngle(r,o,c,l){var u=new t,h=l*(Math.PI/360),d=Math.sin(h),g=Math.cos(h),m=d*d,y=Math.sqrt(r*r+o*o+c*c),v=r,k=o,_=c;if(0===y){v=0;k=0;_=1}else{v/=y;k/=y;_/=y}var w=v*v,S=k*k,C=_*_,x=1-2*(S+C)*m;u.m11=x;u.a=x;var O=2*(v*k*m+_*d*g);u.m12=O;u.b=O;u.m13=2*(v*_*m-k*d*g);var T=2*(k*v*m-_*d*g);u.m21=T;u.c=T;var E=1-2*(C+w)*m;u.m22=E;u.d=E;u.m23=2*(k*_*m+v*d*g);u.m31=2*(_*v*m+k*d*g);u.m32=2*(_*k*m-v*d*g);u.m33=1-2*(w+S)*m;return u}function Scale(r,o,c){var l=new t;l.m11=r;l.a=r;l.m22=o;l.d=o;l.m33=c;return l}function SkewX(r){var o=new t,c=r*Math.PI/180,l=Math.tan(c);o.m21=l;o.c=l;return o}function SkewY(r){var o=new t,c=r*Math.PI/180,l=Math.tan(c);o.m12=l;o.b=l;return o}function Multiply(t,r){return fromArray([r.m11*t.m11+r.m12*t.m21+r.m13*t.m31+r.m14*t.m41,r.m11*t.m12+r.m12*t.m22+r.m13*t.m32+r.m14*t.m42,r.m11*t.m13+r.m12*t.m23+r.m13*t.m33+r.m14*t.m43,r.m11*t.m14+r.m12*t.m24+r.m13*t.m34+r.m14*t.m44,r.m21*t.m11+r.m22*t.m21+r.m23*t.m31+r.m24*t.m41,r.m21*t.m12+r.m22*t.m22+r.m23*t.m32+r.m24*t.m42,r.m21*t.m13+r.m22*t.m23+r.m23*t.m33+r.m24*t.m43,r.m21*t.m14+r.m22*t.m24+r.m23*t.m34+r.m24*t.m44,r.m31*t.m11+r.m32*t.m21+r.m33*t.m31+r.m34*t.m41,r.m31*t.m12+r.m32*t.m22+r.m33*t.m32+r.m34*t.m42,r.m31*t.m13+r.m32*t.m23+r.m33*t.m33+r.m34*t.m43,r.m31*t.m14+r.m32*t.m24+r.m33*t.m34+r.m34*t.m44,r.m41*t.m11+r.m42*t.m21+r.m43*t.m31+r.m44*t.m41,r.m41*t.m12+r.m42*t.m22+r.m43*t.m32+r.m44*t.m42,r.m41*t.m13+r.m42*t.m23+r.m43*t.m33+r.m44*t.m43,r.m41*t.m14+r.m42*t.m24+r.m43*t.m34+r.m44*t.m44])}var t=function CSSMatrix(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var o=this;o.a=1;o.b=0;o.c=0;o.d=1;o.e=0;o.f=0;o.m11=1;o.m12=0;o.m13=0;o.m14=0;o.m21=0;o.m22=1;o.m23=0;o.m24=0;o.m31=0;o.m32=0;o.m33=1;o.m34=0;o.m41=0;o.m42=0;o.m43=0;o.m44=1;if(t&&t.length){var c=[16,6].some((function(r){return r===t.length}))?t:t[0];return o.setMatrixValue(c)}return o},r={isIdentity:{configurable:!0},is2D:{configurable:!0}};r.isIdentity.set=function(t){this.isIdentity=t};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.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};t.prototype.setMatrixValue=function setMatrixValue(t){return[Array,Float64Array,Float32Array].some((function(r){return t instanceof r}))?fromArray(t):"string"==typeof t&&t.length&&"none"!==t?fromString(t):"object"===_typeof(t)?fromMatrix(t):this};t.prototype.toArray=function toArray(){var t=this,r=Math.pow(10,6);return(t.is2D?[t.a,t.b,t.c,t.d,t.e,t.f]:[t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]).map((function(t){return Math.abs(t)<1e-6?0:(t*r>>0)/r}))};t.prototype.toString=function toString(){var t=this.toArray();return(this.is2D?"matrix":"matrix3d")+"("+t+")"};t.prototype.toJSON=function toJSON(){var t=this,r=t.is2D,o=t.isIdentity;return Object.assign({},t,{is2D:r,isIdentity:o})};t.prototype.multiply=function multiply(t){return Multiply(this,t)};t.prototype.translate=function translate(t,r,o){var c=r,l=o;void 0===l&&(l=0);void 0===c&&(c=0);return Multiply(this,Translate(t,c,l))};t.prototype.scale=function scale(t,r,o){var c=r,l=o;void 0===c&&(c=t);void 0===l&&(l=1);return Multiply(this,Scale(t,c,l))};t.prototype.rotate=function rotate(t,r,o){var c=t,l=r,u=o;void 0===l&&(l=0);if(void 0===u){u=c;c=0}return Multiply(this,Rotate(c,l,u))};t.prototype.rotateAxisAngle=function rotateAxisAngle(t,r,o,c){if([t,r,o,c].some((function(t){return Number.isNaN(t)})))throw new TypeError("CSSMatrix: expecting 4 values");return Multiply(this,RotateAxisAngle(t,r,o,c))};t.prototype.skewX=function skewX(t){return Multiply(this,SkewX(t))};t.prototype.skewY=function skewY(t){return Multiply(this,SkewY(t))};t.prototype.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}};t.prototype.transform=function transform(t){var r=this,o=r.m11*t.x+r.m12*t.y+r.m13*t.z+r.m14*t.w,c=r.m21*t.x+r.m22*t.y+r.m23*t.z+r.m24*t.w,l=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:c/u,z:l/u,w:u}};Object.defineProperties(t.prototype,r);Object.assign(t,{Translate:Translate,Rotate:Rotate,RotateAxisAngle:RotateAxisAngle,Scale:Scale,SkewX:SkewX,SkewY:SkewY,Multiply:Multiply,fromArray:fromArray,fromMatrix:fromMatrix,fromString:fromString});Object.assign(t,{Version:"0.0.24"});return t},"object"===_typeof(r)?t.exports=u():void 0!==(l="function"==typeof(c=u)?c.call(r,o,r,t):c)&&(t.exports=l)},(t,r,o)=>{o(9);o(94);o(100);o(102);o(126);o(127);o(128);o(129);var c=o(131);t.exports=c.Promise},(t,r,o)=>{"use strict";var c=o(10),l=o(11),u=o(30),h=o(72),d=o(74),g=o(60),m=o(76),y=o(49),v=o(18),k=o(80),_=o(81),w=o(82),S=o(91),C=o(39),x=o(93),O=C("toStringTag"),T=l.Error,E=[].push,M=function AggregateError(t,r){var o,c=arguments.length>2?arguments[2]:void 0,l=u(R,this);if(d)o=d(new T,l?h(this):R);else{o=l?this:m(R);y(o,O,"Error")}void 0!==r&&y(o,"message",S(r));x&&y(o,"stack",k(o.stack,1));_(o,c);var g=[];w(t,E,{that:g});y(o,"errors",g);return o};d?d(M,T):g(M,T,{name:!0});var R=M.prototype=m(T.prototype,{constructor:v(1,M),message:v(1,""),name:v(1,"AggregateError")});c({global:!0},{AggregateError:M})},(t,r,o)=>{var c=o(11),l=o(12).f,u=o(49),h=o(53),d=o(43),g=o(60),m=o(71);t.exports=function(t,r){var o,y,v,k,_,w=t.target,S=t.global,C=t.stat;if(o=S?c:C?c[w]||d(w,{}):(c[w]||{}).prototype)for(y in r){k=r[y];v=t.noTargetGet?(_=l(o,y))&&_.value:o[y];if(!m(S?y:w+(C?".":"#")+y,t.forced)&&void 0!==v){if(typeof k==typeof v)continue;g(k,v)}(t.sham||v&&v.sham)&&u(k,"sham",!0);h(o,y,k,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 c=o(13),l=o(15),u=o(17),h=o(18),d=o(19),g=o(24),m=o(44),y=o(47),v=Object.getOwnPropertyDescriptor;r.f=c?v:function getOwnPropertyDescriptor(t,r){t=d(t);r=g(r);if(y)try{return v(t,r)}catch(t){}if(m(t,r))return h(!l(u.f,t,r),t[r])}},(t,r,o)=>{var c=o(14);t.exports=!c((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,o)=>{var c=o(16),l=Function.prototype.call;t.exports=c?l.bind(l):function(){return l.apply(l,arguments)}},(t,r,o)=>{var c=o(14);t.exports=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,r)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,l=c&&!o.call({1:2},1);r.f=l?function propertyIsEnumerable(t){var r=c(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 c=o(20),l=o(23);t.exports=function(t){return c(l(t))}},(t,r,o)=>{var c=o(11),l=o(21),u=o(14),h=o(22),d=c.Object,g=l("".split);t.exports=u((function(){return!d("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?g(t,""):d(t)}:d},(t,r,o)=>{var c=o(16),l=Function.prototype,u=l.bind,h=l.call,d=c&&u.bind(h,h);t.exports=c?function(t){return t&&d(t)}:function(t){return t&&function(){return h.apply(t,arguments)}}},(t,r,o)=>{var c=o(21),l=c({}.toString),u=c("".slice);t.exports=function(t){return u(l(t),8,-1)}},(t,r,o)=>{var c=o(11).TypeError;t.exports=function(t){if(null==t)throw c("Can't call method on "+t);return t}},(t,r,o)=>{var c=o(25),l=o(28);t.exports=function(t){var r=c(t,"string");return l(r)?r:r+""}},(t,r,o)=>{var c=o(11),l=o(15),u=o(26),h=o(28),d=o(35),g=o(38),m=o(39),y=c.TypeError,v=m("toPrimitive");t.exports=function(t,r){if(!u(t)||h(t))return t;var o,c=d(t,v);if(c){void 0===r&&(r="default");o=l(c,t,r);if(!u(o)||h(o))return o;throw y("Can't convert object to primitive value")}void 0===r&&(r="number");return g(t,r)}},(t,r,o)=>{var c=o(27);t.exports=function(t){return"object"==typeof t?null!==t:c(t)}},t=>{t.exports=function(t){return"function"==typeof t}},(t,r,o)=>{var c=o(11),l=o(29),u=o(27),h=o(30),d=o(31),g=c.Object;t.exports=d?function(t){return"symbol"==typeof t}:function(t){var r=l("Symbol");return u(r)&&h(r.prototype,g(t))}},(t,r,o)=>{var c=o(11),l=o(27),aFunction=function(t){return l(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(c[t]):c[t]&&c[t][r]}},(t,r,o)=>{var c=o(21);t.exports=c({}.isPrototypeOf)},(t,r,o)=>{var c=o(32);t.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var c=o(33),l=o(14);t.exports=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&c&&c<41}))},(t,r,o)=>{var c,l,u=o(11),h=o(34),d=u.process,g=u.Deno,m=d&&d.versions||g&&g.version,y=m&&m.v8;y&&(l=(c=y.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1]));!l&&h&&(!(c=h.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=h.match(/Chrome\/(\d+)/))&&(l=+c[1]);t.exports=l},(t,r,o)=>{var c=o(29);t.exports=c("navigator","userAgent")||""},(t,r,o)=>{var c=o(36);t.exports=function(t,r){var o=t[r];return null==o?void 0:c(o)}},(t,r,o)=>{var c=o(11),l=o(27),u=o(37),h=c.TypeError;t.exports=function(t){if(l(t))return t;throw h(u(t)+" is not a function")}},(t,r,o)=>{var c=o(11).String;t.exports=function(t){try{return c(t)}catch(t){return"Object"}}},(t,r,o)=>{var c=o(11),l=o(15),u=o(27),h=o(26),d=c.TypeError;t.exports=function(t,r){var o,c;if("string"===r&&u(o=t.toString)&&!h(c=l(o,t)))return c;if(u(o=t.valueOf)&&!h(c=l(o,t)))return c;if("string"!==r&&u(o=t.toString)&&!h(c=l(o,t)))return c;throw d("Can't convert object to primitive value")}},(t,r,o)=>{var c=o(11),l=o(40),u=o(44),h=o(46),d=o(32),g=o(31),m=l("wks"),y=c.Symbol,v=y&&y.for,k=g?y:y&&y.withoutSetter||h;t.exports=function(t){if(!u(m,t)||!d&&"string"!=typeof m[t]){var r="Symbol."+t;d&&u(y,t)?m[t]=y[t]:m[t]=g&&v?v(r):k(r)}return m[t]}},(t,r,o)=>{var c=o(41),l=o(42);(t.exports=function(t,r){return l[t]||(l[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.21.1",mode:c?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,r,o)=>{var c=o(11),l=o(43),u="__core-js_shared__",h=c[u]||l(u,{});t.exports=h},(t,r,o)=>{var c=o(11),l=Object.defineProperty;t.exports=function(t,r){try{l(c,t,{value:r,configurable:!0,writable:!0})}catch(o){c[t]=r}return r}},(t,r,o)=>{var c=o(21),l=o(45),u=c({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return u(l(t),r)}},(t,r,o)=>{var c=o(11),l=o(23),u=c.Object;t.exports=function(t){return u(l(t))}},(t,r,o)=>{var c=o(21),l=0,u=Math.random(),h=c(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+h(++l+u,36)}},(t,r,o)=>{var c=o(13),l=o(14),u=o(48);t.exports=!c&&!l((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var c=o(11),l=o(26),u=c.document,h=l(u)&&l(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var c=o(13),l=o(50),u=o(18);t.exports=c?function(t,r,o){return l.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},(t,r,o)=>{var c=o(11),l=o(13),u=o(47),h=o(51),d=o(52),g=o(24),m=c.TypeError,y=Object.defineProperty,v=Object.getOwnPropertyDescriptor,k="enumerable",_="configurable",w="writable";r.f=l?h?function defineProperty(t,r,o){d(t);r=g(r);d(o);if("function"==typeof t&&"prototype"===r&&"value"in o&&w in o&&!o.writable){var c=v(t,r);if(c&&c.writable){t[r]=o.value;o={configurable:_ in o?o.configurable:c.configurable,enumerable:k in o?o.enumerable:c.enumerable,writable:!1}}}return y(t,r,o)}:y:function defineProperty(t,r,o){d(t);r=g(r);d(o);if(u)try{return y(t,r,o)}catch(t){}if("get"in o||"set"in o)throw m("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var c=o(13),l=o(14);t.exports=c&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,r,o)=>{var c=o(11),l=o(26),u=c.String,h=c.TypeError;t.exports=function(t){if(l(t))return t;throw h(u(t)+" is not an object")}},(t,r,o)=>{var c=o(11),l=o(27),u=o(44),h=o(49),d=o(43),g=o(54),m=o(55),y=o(59).CONFIGURABLE,v=m.get,k=m.enforce,_=String(String).split("String");(t.exports=function(t,r,o,g){var m,v=!!g&&!!g.unsafe,w=!!g&&!!g.enumerable,S=!!g&&!!g.noTargetGet,C=g&&void 0!==g.name?g.name:r;if(l(o)){"Symbol("===String(C).slice(0,7)&&(C="["+String(C).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");(!u(o,"name")||y&&o.name!==C)&&h(o,"name",C);(m=k(o)).source||(m.source=_.join("string"==typeof C?C:""))}if(t!==c){v?!S&&t[r]&&(w=!0):delete t[r];w?t[r]=o:h(t,r,o)}else w?t[r]=o:d(r,o)})(Function.prototype,"toString",(function toString(){return l(this)&&v(this).source||g(this)}))},(t,r,o)=>{var c=o(21),l=o(27),u=o(42),h=c(Function.toString);l(u.inspectSource)||(u.inspectSource=function(t){return h(t)});t.exports=u.inspectSource},(t,r,o)=>{var c,l,u,h=o(56),d=o(11),g=o(21),m=o(26),y=o(49),v=o(44),k=o(42),_=o(57),w=o(58),S="Object already initialized",C=d.TypeError,x=d.WeakMap;if(h||k.state){var O=k.state||(k.state=new x),T=g(O.get),E=g(O.has),M=g(O.set);c=function(t,r){if(E(O,t))throw new C(S);r.facade=t;M(O,t,r);return r};l=function(t){return T(O,t)||{}};u=function(t){return E(O,t)}}else{var R=_("state");w[R]=!0;c=function(t,r){if(v(t,R))throw new C(S);r.facade=t;y(t,R,r);return r};l=function(t){return v(t,R)?t[R]:{}};u=function(t){return v(t,R)}}t.exports={set:c,get:l,has:u,enforce:function(t){return u(t)?l(t):c(t,{})},getterFor:function(t){return function(r){var o;if(!m(r)||(o=l(r)).type!==t)throw C("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var c=o(11),l=o(27),u=o(54),h=c.WeakMap;t.exports=l(h)&&/native code/.test(u(h))},(t,r,o)=>{var c=o(40),l=o(46),u=c("keys");t.exports=function(t){return u[t]||(u[t]=l(t))}},t=>{t.exports={}},(t,r,o)=>{var c=o(13),l=o(44),u=Function.prototype,h=c&&Object.getOwnPropertyDescriptor,d=l(u,"name"),g=d&&"something"===function something(){}.name,m=d&&(!c||c&&h(u,"name").configurable);t.exports={EXISTS:d,PROPER:g,CONFIGURABLE:m}},(t,r,o)=>{var c=o(44),l=o(61),u=o(12),h=o(50);t.exports=function(t,r,o){for(var d=l(r),g=h.f,m=u.f,y=0;y<d.length;y++){var v=d[y];c(t,v)||o&&c(o,v)||g(t,v,m(r,v))}}},(t,r,o)=>{var c=o(29),l=o(21),u=o(62),h=o(70),d=o(52),g=l([].concat);t.exports=c("Reflect","ownKeys")||function ownKeys(t){var r=u.f(d(t)),o=h.f;return o?g(r,o(t)):r}},(t,r,o)=>{var c=o(63),l=o(69).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return c(t,l)}},(t,r,o)=>{var c=o(21),l=o(44),u=o(19),h=o(64).indexOf,d=o(58),g=c([].push);t.exports=function(t,r){var o,c=u(t),m=0,y=[];for(o in c)!l(d,o)&&l(c,o)&&g(y,o);for(;r.length>m;)l(c,o=r[m++])&&(~h(y,o)||g(y,o));return y}},(t,r,o)=>{var c=o(19),l=o(65),u=o(67),createMethod=function(t){return function(r,o,h){var d,g=c(r),m=u(g),y=l(h,m);if(t&&o!=o){for(;m>y;)if((d=g[y++])!=d)return!0}else for(;m>y;y++)if((t||y in g)&&g[y]===o)return t||y||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var c=o(66),l=Math.max,u=Math.min;t.exports=function(t,r){var o=c(t);return o<0?l(o+r,0):u(o,r)}},t=>{var r=Math.ceil,o=Math.floor;t.exports=function(t){var c=+t;return c!=c||0===c?0:(c>0?o:r)(c)}},(t,r,o)=>{var c=o(68);t.exports=function(t){return c(t.length)}},(t,r,o)=>{var c=o(66),l=Math.min;t.exports=function(t){return t>0?l(c(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,o)=>{var c=o(14),l=o(27),u=/#|\.prototype\./,isForced=function(t,r){var o=d[h(t)];return o==m||o!=g&&(l(r)?c(r):!!r)},h=isForced.normalize=function(t){return String(t).replace(u,".").toLowerCase()},d=isForced.data={},g=isForced.NATIVE="N",m=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{var c=o(11),l=o(44),u=o(27),h=o(45),d=o(57),g=o(73),m=d("IE_PROTO"),y=c.Object,v=y.prototype;t.exports=g?y.getPrototypeOf:function(t){var r=h(t);if(l(r,m))return r[m];var o=r.constructor;return u(o)&&r instanceof o?o.prototype:r instanceof y?v:null}},(t,r,o)=>{var c=o(14);t.exports=!c((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,o)=>{var c=o(21),l=o(52),u=o(75);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,o={};try{(t=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(o,[]);r=o instanceof Array}catch(t){}return function setPrototypeOf(o,c){l(o);u(c);r?t(o,c):o.__proto__=c;return o}}():void 0)},(t,r,o)=>{var c=o(11),l=o(27),u=c.String,h=c.TypeError;t.exports=function(t){if("object"==typeof t||l(t))return t;throw h("Can't set "+u(t)+" as a prototype")}},(t,r,o)=>{var c,l=o(52),u=o(77),h=o(69),d=o(58),g=o(79),m=o(48),y=o(57),v=y("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag(""));t.close();var r=t.parentWindow.Object;t=null;return r},NullProtoObject=function(){try{c=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&c?NullProtoObjectViaActiveX(c):function(){var t,r=m("iframe");r.style.display="none";g.appendChild(r);r.src=String("javascript:");(t=r.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}():NullProtoObjectViaActiveX(c);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=l(t);o=new EmptyConstructor;EmptyConstructor.prototype=null;o[v]=t}else o=NullProtoObject();return void 0===r?o:u.f(o,r)}},(t,r,o)=>{var c=o(13),l=o(51),u=o(50),h=o(52),d=o(19),g=o(78);r.f=c&&!l?Object.defineProperties:function defineProperties(t,r){h(t);for(var o,c=d(r),l=g(r),m=l.length,y=0;m>y;)u.f(t,o=l[y++],c[o]);return t}},(t,r,o)=>{var c=o(63),l=o(69);t.exports=Object.keys||function keys(t){return c(t,l)}},(t,r,o)=>{var c=o(29);t.exports=c("document","documentElement")},(t,r,o)=>{var c=o(21)("".replace),l=String(Error("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,h=u.test(l);t.exports=function(t,r){if(h&&"string"==typeof t)for(;r--;)t=c(t,u,"");return t}},(t,r,o)=>{var c=o(26),l=o(49);t.exports=function(t,r){c(r)&&"cause"in r&&l(t,"cause",r.cause)}},(t,r,o)=>{var c=o(11),l=o(83),u=o(15),h=o(52),d=o(37),g=o(84),m=o(67),y=o(30),v=o(86),k=o(87),_=o(90),w=c.TypeError,Result=function(t,r){this.stopped=t;this.result=r},S=Result.prototype;t.exports=function(t,r,o){var c,C,x,O,T,E,M,R=o&&o.that,j=!(!o||!o.AS_ENTRIES),D=!(!o||!o.IS_ITERATOR),N=!(!o||!o.INTERRUPTED),L=l(r,R),stop=function(t){c&&_(c,"normal",t);return new Result(!0,t)},callFn=function(t){if(j){h(t);return N?L(t[0],t[1],stop):L(t[0],t[1])}return N?L(t,stop):L(t)};if(D)c=t;else{if(!(C=k(t)))throw w(d(t)+" is not iterable");if(g(C)){for(x=0,O=m(t);O>x;x++)if((T=callFn(t[x]))&&y(S,T))return T;return new Result(!1)}c=v(t,C)}E=c.next;for(;!(M=u(E,c)).done;){try{T=callFn(M.value)}catch(t){_(c,"throw",t)}if("object"==typeof T&&T&&y(S,T))return T}return new Result(!1)}},(t,r,o)=>{var c=o(21),l=o(36),u=o(16),h=c(c.bind);t.exports=function(t,r){l(t);return void 0===r?t:u?h(t,r):function(){return t.apply(r,arguments)}}},(t,r,o)=>{var c=o(39),l=o(85),u=c("iterator"),h=Array.prototype;t.exports=function(t){return void 0!==t&&(l.Array===t||h[u]===t)}},t=>{t.exports={}},(t,r,o)=>{var c=o(11),l=o(15),u=o(36),h=o(52),d=o(37),g=o(87),m=c.TypeError;t.exports=function(t,r){var o=arguments.length<2?g(t):r;if(u(o))return h(l(o,t));throw m(d(t)+" is not iterable")}},(t,r,o)=>{var c=o(88),l=o(35),u=o(85),h=o(39)("iterator");t.exports=function(t){if(null!=t)return l(t,h)||l(t,"@@iterator")||u[c(t)]}},(t,r,o)=>{var c=o(11),l=o(89),u=o(27),h=o(22),d=o(39)("toStringTag"),g=c.Object,m="Arguments"==h(function(){return arguments}());t.exports=l?h:function(t){var r,o,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,r){try{return t[r]}catch(t){}}(r=g(t),d))?o:m?h(r):"Object"==(c=h(r))&&u(r.callee)?"Arguments":c}},(t,r,o)=>{var c={};c[o(39)("toStringTag")]="z";t.exports="[object z]"===String(c)},(t,r,o)=>{var c=o(15),l=o(52),u=o(35);t.exports=function(t,r,o){var h,d;l(t);try{if(!(h=u(t,"return"))){if("throw"===r)throw o;return o}h=c(h,t)}catch(t){d=!0;h=t}if("throw"===r)throw o;if(d)throw h;l(h);return o}},(t,r,o)=>{var c=o(92);t.exports=function(t,r){return void 0===t?arguments.length<2?"":r:c(t)}},(t,r,o)=>{var c=o(11),l=o(88),u=c.String;t.exports=function(t){if("Symbol"===l(t))throw TypeError("Cannot convert a Symbol value to a string");return u(t)}},(t,r,o)=>{var c=o(14),l=o(18);t.exports=!c((function(){var t=Error("a");if(!("stack"in t))return!0;Object.defineProperty(t,"stack",l(1,7));return 7!==t.stack}))},(t,r,o)=>{"use strict";var c=o(19),l=o(95),u=o(85),h=o(55),d=o(50).f,g=o(96),m=o(41),y=o(13),v="Array Iterator",k=h.set,_=h.getterFor(v);t.exports=g(Array,"Array",(function(t,r){k(this,{type:v,target:c(t),index:0,kind:r})}),(function(){var t=_(this),r=t.target,o=t.kind,c=t.index++;if(!r||c>=r.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==o?{value:c,done:!1}:"values"==o?{value:r[c],done:!1}:{value:[c,r[c]],done:!1}}),"values");var w=u.Arguments=u.Array;l("keys");l("values");l("entries");if(!m&&y&&"values"!==w.name)try{d(w,"name",{value:"values"})}catch(t){}},(t,r,o)=>{var c=o(39),l=o(76),u=o(50),h=c("unscopables"),d=Array.prototype;null==d[h]&&u.f(d,h,{configurable:!0,value:l(null)});t.exports=function(t){d[h][t]=!0}},(t,r,o)=>{"use strict";var c=o(10),l=o(15),u=o(41),h=o(59),d=o(27),g=o(97),m=o(72),y=o(74),v=o(99),k=o(49),_=o(53),w=o(39),S=o(85),C=o(98),x=h.PROPER,O=h.CONFIGURABLE,T=C.IteratorPrototype,E=C.BUGGY_SAFARI_ITERATORS,M=w("iterator"),R="keys",j="values",D="entries",returnThis=function(){return this};t.exports=function(t,r,o,h,w,C,N){g(o,r,h);var L,U,H,getIterationMethod=function(t){if(t===w&&z)return z;if(!E&&t in q)return q[t];switch(t){case R:return function keys(){return new o(this,t)};case j:return function values(){return new o(this,t)};case D:return function entries(){return new o(this,t)}}return function(){return new o(this)}},$=r+" Iterator",X=!1,q=t.prototype,G=q[M]||q["@@iterator"]||w&&q[w],z=!E&&G||getIterationMethod(w),W="Array"==r&&q.entries||G;if(W&&(L=m(W.call(new t)))!==Object.prototype&&L.next){u||m(L)===T||(y?y(L,T):d(L[M])||_(L,M,returnThis));v(L,$,!0,!0);u&&(S[$]=returnThis)}if(x&&w==j&&G&&G.name!==j)if(!u&&O)k(q,"name",j);else{X=!0;z=function values(){return l(G,this)}}if(w){U={values:getIterationMethod(j),keys:C?z:getIterationMethod(R),entries:getIterationMethod(D)};if(N)for(H in U)(E||X||!(H in q))&&_(q,H,U[H]);else c({target:r,proto:!0,forced:E||X},U)}u&&!N||q[M]===z||_(q,M,z,{name:w});S[r]=z;return U}},(t,r,o)=>{"use strict";var c=o(98).IteratorPrototype,l=o(76),u=o(18),h=o(99),d=o(85),returnThis=function(){return this};t.exports=function(t,r,o,g){var m=r+" Iterator";t.prototype=l(c,{next:u(+!g,o)});h(t,m,!1,!0);d[m]=returnThis;return t}},(t,r,o)=>{"use strict";var c,l,u,h=o(14),d=o(27),g=o(76),m=o(72),y=o(53),v=o(39),k=o(41),_=v("iterator"),w=!1;[].keys&&("next"in(u=[].keys())?(l=m(m(u)))!==Object.prototype&&(c=l):w=!0);null==c||h((function(){var t={};return c[_].call(t)!==t}))?c={}:k&&(c=g(c));d(c[_])||y(c,_,(function(){return this}));t.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:w}},(t,r,o)=>{var c=o(50).f,l=o(44),u=o(39)("toStringTag");t.exports=function(t,r,o){t&&!o&&(t=t.prototype);t&&!l(t,u)&&c(t,u,{configurable:!0,value:r})}},(t,r,o)=>{var c=o(89),l=o(53),u=o(101);c||l(Object.prototype,"toString",u,{unsafe:!0})},(t,r,o)=>{"use strict";var c=o(89),l=o(88);t.exports=c?{}.toString:function toString(){return"[object "+l(this)+"]"}},(t,r,o)=>{"use strict";var c,l,u,h,d=o(10),g=o(41),m=o(11),y=o(29),v=o(15),k=o(103),_=o(53),w=o(104),S=o(74),C=o(99),x=o(105),O=o(36),T=o(27),E=o(26),M=o(106),R=o(54),j=o(82),D=o(107),N=o(108),L=o(111).set,U=o(117),H=o(120),$=o(122),X=o(121),q=o(123),G=o(124),z=o(55),W=o(71),V=o(39),K=o(125),Y=o(116),J=o(33),Z=V("species"),Q="Promise",ee=z.getterFor(Q),te=z.set,re=z.getterFor(Q),ae=k&&k.prototype,ne=k,ie=ae,oe=m.TypeError,se=m.document,ce=m.process,le=X.f,ue=le,fe=!!(se&&se.createEvent&&m.dispatchEvent),he=T(m.PromiseRejectionEvent),de="unhandledrejection",pe=!1,ge=W(Q,(function(){var t=R(ne),r=t!==String(ne);if(!r&&66===J)return!0;if(g&&!ie.finally)return!0;if(J>=51&&/native code/.test(t))return!1;var o=new ne((function(t){t(1)})),FakePromise=function(t){t((function(){}),(function(){}))};(o.constructor={})[Z]=FakePromise;return!(pe=o.then((function(){}))instanceof FakePromise)||!r&&K&&!he})),me=ge||!D((function(t){ne.all(t).catch((function(){}))})),isThenable=function(t){var r;return!(!E(t)||!T(r=t.then))&&r},callReaction=function(t,r){var o,c,l,u=r.value,h=1==r.state,d=h?t.ok:t.fail,g=t.resolve,m=t.reject,y=t.domain;try{if(d){if(!h){2===r.rejection&&onHandleUnhandled(r);r.rejection=1}if(!0===d)o=u;else{y&&y.enter();o=d(u);if(y){y.exit();l=!0}}o===t.promise?m(oe("Promise-chain cycle")):(c=isThenable(o))?v(c,o,g,m):g(o)}else m(u)}catch(t){y&&!l&&y.exit();m(t)}},notify=function(t,r){if(!t.notified){t.notified=!0;U((function(){for(var o,c=t.reactions;o=c.get();)callReaction(o,t);t.notified=!1;r&&!t.rejection&&onUnhandled(t)}))}},dispatchEvent=function(t,r,o){var c,l;if(fe){(c=se.createEvent("Event")).promise=r;c.reason=o;c.initEvent(t,!1,!0);m.dispatchEvent(c)}else c={promise:r,reason:o};!he&&(l=m["on"+t])?l(c):t===de&&$("Unhandled promise rejection",o)},onUnhandled=function(t){v(L,m,(function(){var r,o=t.facade,c=t.value;if(isUnhandled(t)){r=q((function(){Y?ce.emit("unhandledRejection",c,o):dispatchEvent(de,o,c)}));t.rejection=Y||isUnhandled(t)?2:1;if(r.error)throw r.value}}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){v(L,m,(function(){var r=t.facade;Y?ce.emit("rejectionHandled",r):dispatchEvent("rejectionhandled",r,t.value)}))},bind=function(t,r,o){return function(c){t(r,c,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 oe("Promise can't be resolved itself");var c=isThenable(r);if(c)U((function(){var o={done:!1};try{v(c,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(ge){ie=(ne=function Promise(t){M(this,ie);O(t);v(c,this);var r=ee(this);try{t(bind(internalResolve,r),bind(internalReject,r))}catch(t){internalReject(r,t)}}).prototype;(c=function Promise(t){te(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:new G,rejection:!1,state:0,value:void 0})}).prototype=w(ie,{then:function then(t,r){var o=re(this),c=le(N(this,ne));o.parent=!0;c.ok=!T(t)||t;c.fail=T(r)&&r;c.domain=Y?ce.domain:void 0;0==o.state?o.reactions.add(c):U((function(){callReaction(c,o)}));return c.promise},catch:function(t){return this.then(void 0,t)}});l=function(){var t=new c,r=ee(t);this.promise=t;this.resolve=bind(internalResolve,r);this.reject=bind(internalReject,r)};X.f=le=function(t){return t===ne||t===u?new l(t):ue(t)};if(!g&&T(k)&&ae!==Object.prototype){h=ae.then;if(!pe){_(ae,"then",(function then(t,r){var o=this;return new ne((function(t,r){v(h,o,t,r)})).then(t,r)}),{unsafe:!0});_(ae,"catch",ie.catch,{unsafe:!0})}try{delete ae.constructor}catch(t){}S&&S(ae,ie)}}d({global:!0,wrap:!0,forced:ge},{Promise:ne});C(ne,Q,!1,!0);x(Q);u=y(Q);d({target:Q,stat:!0,forced:ge},{reject:function reject(t){var r=le(this);v(r.reject,void 0,t);return r.promise}});d({target:Q,stat:!0,forced:g||ge},{resolve:function resolve(t){return H(g&&this===u?ne:this,t)}});d({target:Q,stat:!0,forced:me},{all:function all(t){var r=this,o=le(r),c=o.resolve,l=o.reject,u=q((function(){var o=O(r.resolve),u=[],h=0,d=1;j(t,(function(t){var g=h++,m=!1;d++;v(o,r,t).then((function(t){if(!m){m=!0;u[g]=t;--d||c(u)}}),l)}));--d||c(u)}));u.error&&l(u.value);return o.promise},race:function race(t){var r=this,o=le(r),c=o.reject,l=q((function(){var l=O(r.resolve);j(t,(function(t){v(l,r,t).then(o.resolve,c)}))}));l.error&&c(l.value);return o.promise}})},(t,r,o)=>{var c=o(11);t.exports=c.Promise},(t,r,o)=>{var c=o(53);t.exports=function(t,r,o){for(var l in r)c(t,l,r[l],o);return t}},(t,r,o)=>{"use strict";var c=o(29),l=o(50),u=o(39),h=o(13),d=u("species");t.exports=function(t){var r=c(t),o=l.f;h&&r&&!r[d]&&o(r,d,{configurable:!0,get:function(){return this}})}},(t,r,o)=>{var c=o(11),l=o(30),u=c.TypeError;t.exports=function(t,r){if(l(r,t))return t;throw u("Incorrect invocation")}},(t,r,o)=>{var c=o(39)("iterator"),l=!1;try{var u=0,h={next:function(){return{done:!!u++}},return:function(){l=!0}};h[c]=function(){return this};Array.from(h,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!l)return!1;var o=!1;try{var u={};u[c]=function(){return{next:function(){return{done:o=!0}}}};t(u)}catch(t){}return o}},(t,r,o)=>{var c=o(52),l=o(109),u=o(39)("species");t.exports=function(t,r){var o,h=c(t).constructor;return void 0===h||null==(o=c(h)[u])?r:l(o)}},(t,r,o)=>{var c=o(11),l=o(110),u=o(37),h=c.TypeError;t.exports=function(t){if(l(t))return t;throw h(u(t)+" is not a constructor")}},(t,r,o)=>{var c=o(21),l=o(14),u=o(27),h=o(88),d=o(29),g=o(54),noop=function(){},m=[],y=d("Reflect","construct"),v=/^\s*(?:class|function)\b/,k=c(v.exec),_=!v.exec(noop),w=function isConstructor(t){if(!u(t))return!1;try{y(noop,m,t);return!0}catch(t){return!1}},S=function isConstructor(t){if(!u(t))return!1;switch(h(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _||!!k(v,g(t))}catch(t){return!0}};S.sham=!0;t.exports=!y||l((function(){var t;return w(w.call)||!w(Object)||!w((function(){t=!0}))||t}))?S:w},(t,r,o)=>{var c,l,u,h,d=o(11),g=o(112),m=o(83),y=o(27),v=o(44),k=o(14),_=o(79),w=o(113),S=o(48),C=o(114),x=o(115),O=o(116),T=d.setImmediate,E=d.clearImmediate,M=d.process,R=d.Dispatch,j=d.Function,D=d.MessageChannel,N=d.String,L=0,U={},H="onreadystatechange";try{c=d.location}catch(t){}var run=function(t){if(v(U,t)){var r=U[t];delete U[t];r()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){d.postMessage(N(t),c.protocol+"//"+c.host)};if(!T||!E){T=function setImmediate(t){C(arguments.length,1);var r=y(t)?t:j(t),o=w(arguments,1);U[++L]=function(){g(r,void 0,o)};l(L);return L};E=function clearImmediate(t){delete U[t]};if(O)l=function(t){M.nextTick(runner(t))};else if(R&&R.now)l=function(t){R.now(runner(t))};else if(D&&!x){h=(u=new D).port2;u.port1.onmessage=listener;l=m(h.postMessage,h)}else if(d.addEventListener&&y(d.postMessage)&&!d.importScripts&&c&&"file:"!==c.protocol&&!k(post)){l=post;d.addEventListener("message",listener,!1)}else l=H in S("script")?function(t){_.appendChild(S("script")).onreadystatechange=function(){_.removeChild(this);run(t)}}:function(t){setTimeout(runner(t),0)}}t.exports={set:T,clear:E}},(t,r,o)=>{var c=o(16),l=Function.prototype,u=l.apply,h=l.call;t.exports="object"==typeof Reflect&&Reflect.apply||(c?h.bind(u):function(){return h.apply(u,arguments)})},(t,r,o)=>{var c=o(21);t.exports=c([].slice)},(t,r,o)=>{var c=o(11).TypeError;t.exports=function(t,r){if(t<r)throw c("Not enough arguments");return t}},(t,r,o)=>{var c=o(34);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},(t,r,o)=>{var c=o(22),l=o(11);t.exports="process"==c(l.process)},(t,r,o)=>{var c,l,u,h,d,g,m,y,v=o(11),k=o(83),_=o(12).f,w=o(111).set,S=o(115),C=o(118),x=o(119),O=o(116),T=v.MutationObserver||v.WebKitMutationObserver,E=v.document,M=v.process,R=v.Promise,j=_(v,"queueMicrotask"),D=j&&j.value;if(!D){c=function(){var t,r;O&&(t=M.domain)&&t.exit();for(;l;){r=l.fn;l=l.next;try{r()}catch(t){l?h():u=void 0;throw t}}u=void 0;t&&t.enter()};if(S||O||x||!T||!E)if(!C&&R&&R.resolve){(m=R.resolve(void 0)).constructor=R;y=k(m.then,m);h=function(){y(c)}}else if(O)h=function(){M.nextTick(c)};else{w=k(w,v);h=function(){w(c)}}else{d=!0;g=E.createTextNode("");new T(c).observe(g,{characterData:!0});h=function(){g.data=d=!d}}}t.exports=D||function(t){var r={fn:t,next:void 0};u&&(u.next=r);if(!l){l=r;h()}u=r}},(t,r,o)=>{var c=o(34),l=o(11);t.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==l.Pebble},(t,r,o)=>{var c=o(34);t.exports=/web0s(?!.*chrome)/i.test(c)},(t,r,o)=>{var c=o(52),l=o(26),u=o(121);t.exports=function(t,r){c(t);if(l(r)&&r.constructor===t)return r;var o=u.f(t);(0,o.resolve)(r);return o.promise}},(t,r,o)=>{"use strict";var c=o(36),PromiseCapability=function(t){var r,o;this.promise=new t((function(t,c){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=t;o=c}));this.resolve=c(r);this.reject=c(o)};t.exports.f=function(t){return new PromiseCapability(t)}},(t,r,o)=>{var c=o(11);t.exports=function(t,r){var o=c.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=>{var Queue=function(){this.head=null;this.tail=null};Queue.prototype={add:function(t){var r={item:t,next:null};this.head?this.tail.next=r:this.head=r;this.tail=r},get:function(){var t=this.head;if(t){this.head=t.next;this.tail===t&&(this.tail=null);return t.item}}};t.exports=Queue},t=>{t.exports="object"==typeof window},(t,r,o)=>{"use strict";var c=o(10),l=o(15),u=o(36),h=o(121),d=o(123),g=o(82);c({target:"Promise",stat:!0},{allSettled:function allSettled(t){var r=this,o=h.f(r),c=o.resolve,m=o.reject,y=d((function(){var o=u(r.resolve),h=[],d=0,m=1;g(t,(function(t){var u=d++,g=!1;m++;l(o,r,t).then((function(t){if(!g){g=!0;h[u]={status:"fulfilled",value:t};--m||c(h)}}),(function(t){if(!g){g=!0;h[u]={status:"rejected",reason:t};--m||c(h)}}))}));--m||c(h)}));y.error&&m(y.value);return o.promise}})},(t,r,o)=>{"use strict";var c=o(10),l=o(36),u=o(29),h=o(15),d=o(121),g=o(123),m=o(82),y="No one promise resolved";c({target:"Promise",stat:!0},{any:function any(t){var r=this,o=u("AggregateError"),c=d.f(r),v=c.resolve,k=c.reject,_=g((function(){var c=l(r.resolve),u=[],d=0,g=1,_=!1;m(t,(function(t){var l=d++,m=!1;g++;h(c,r,t).then((function(t){if(!m&&!_){_=!0;v(t)}}),(function(t){if(!m&&!_){m=!0;u[l]=t;--g||k(new o(u,y))}}))}));--g||k(new o(u,y))}));_.error&&k(_.value);return c.promise}})},(t,r,o)=>{"use strict";var c=o(10),l=o(41),u=o(103),h=o(14),d=o(29),g=o(27),m=o(108),y=o(120),v=o(53);c({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=g(t);return this.then(o?function(o){return y(r,t()).then((function(){return o}))}:t,o?function(o){return y(r,t()).then((function(){throw o}))}:t)}});if(!l&&g(u)){var k=d("Promise").prototype.finally;u.prototype.finally!==k&&v(u.prototype,"finally",k,{unsafe:!0})}},(t,r,o)=>{"use strict";var c=o(130).charAt,l=o(92),u=o(55),h=o(96),d="String Iterator",g=u.set,m=u.getterFor(d);h(String,"String",(function(t){g(this,{type:d,string:l(t),index:0})}),(function next(){var t,r=m(this),o=r.string,l=r.index;if(l>=o.length)return{value:void 0,done:!0};t=c(o,l);r.index+=t.length;return{value:t,done:!1}}))},(t,r,o)=>{var c=o(21),l=o(66),u=o(92),h=o(23),d=c("".charAt),g=c("".charCodeAt),m=c("".slice),createMethod=function(t){return function(r,o){var c,y,v=u(h(r)),k=l(o),_=v.length;return k<0||k>=_?t?"":void 0:(c=g(v,k))<55296||c>56319||k+1===_||(y=g(v,k+1))<56320||y>57343?t?d(v,k):c:t?m(v,k,k+2):y-56320+(c-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},(t,r,o)=>{var c=o(11);t.exports=c},(t,r,o)=>{o(94);o(100);o(133);o(144);o(145);var c=o(131);t.exports=c.structuredClone},(t,r,o)=>{"use strict";o(134)("Map",(function(t){return function Map(){return t(this,arguments.length?arguments[0]:void 0)}}),o(143))},(t,r,o)=>{"use strict";var c=o(10),l=o(11),u=o(21),h=o(71),d=o(53),g=o(135),m=o(82),y=o(106),v=o(27),k=o(26),_=o(14),w=o(107),S=o(99),C=o(142);t.exports=function(t,r,o){var x=-1!==t.indexOf("Map"),O=-1!==t.indexOf("Weak"),T=x?"set":"add",E=l[t],M=E&&E.prototype,R=E,j={},fixMethod=function(t){var r=u(M[t]);d(M,t,"add"==t?function add(t){r(this,0===t?0:t);return this}:"delete"==t?function(t){return!(O&&!k(t))&&r(this,0===t?0:t)}:"get"==t?function get(t){return O&&!k(t)?void 0:r(this,0===t?0:t)}:"has"==t?function has(t){return!(O&&!k(t))&&r(this,0===t?0:t)}:function set(t,o){r(this,0===t?0:t,o);return this})};if(h(t,!v(E)||!(O||M.forEach&&!_((function(){(new E).entries().next()}))))){R=o.getConstructor(r,t,x,T);g.enable()}else if(h(t,!0)){var D=new R,N=D[T](O?{}:-0,1)!=D,L=_((function(){D.has(1)})),U=w((function(t){new E(t)})),H=!O&&_((function(){for(var t=new E,r=5;r--;)t[T](r,r);return!t.has(-0)}));if(!U){(R=r((function(t,r){y(t,M);var o=C(new E,t,R);null!=r&&m(r,o[T],{that:o,AS_ENTRIES:x});return o}))).prototype=M;M.constructor=R}if(L||H){fixMethod("delete");fixMethod("has");x&&fixMethod("get")}(H||N)&&fixMethod(T);O&&M.clear&&delete M.clear}j[t]=R;c({global:!0,forced:R!=E},j);S(R,t);O||o.setStrong(R,t,x);return R}},(t,r,o)=>{var c=o(10),l=o(21),u=o(58),h=o(26),d=o(44),g=o(50).f,m=o(62),y=o(136),v=o(139),k=o(46),_=o(141),w=!1,S=k("meta"),C=0,setMetadata=function(t){g(t,S,{value:{objectID:"O"+C++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){};w=!0;var t=m.f,r=l([].splice),o={};o[S]=1;if(t(o).length){m.f=function(o){for(var c=t(o),l=0,u=c.length;l<u;l++)if(c[l]===S){r(c,l,1);break}return c};c({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:y.f})}},fastKey:function(t,r){if(!h(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!d(t,S)){if(!v(t))return"F";if(!r)return"E";setMetadata(t)}return t[S].objectID},getWeakData:function(t,r){if(!d(t,S)){if(!v(t))return!0;if(!r)return!1;setMetadata(t)}return t[S].weakData},onFreeze:function(t){_&&w&&v(t)&&!d(t,S)&&setMetadata(t);return t}};u[S]=!0},(t,r,o)=>{var c=o(22),l=o(19),u=o(62).f,h=o(137),d="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function getOwnPropertyNames(t){return d&&"Window"==c(t)?function(t){try{return u(t)}catch(t){return h(d)}}(t):u(l(t))}},(t,r,o)=>{var c=o(11),l=o(65),u=o(67),h=o(138),d=c.Array,g=Math.max;t.exports=function(t,r,o){for(var c=u(t),m=l(r,c),y=l(void 0===o?c:o,c),v=d(g(y-m,0)),k=0;m<y;m++,k++)h(v,k,t[m]);v.length=k;return v}},(t,r,o)=>{"use strict";var c=o(24),l=o(50),u=o(18);t.exports=function(t,r,o){var h=c(r);h in t?l.f(t,h,u(0,o)):t[h]=o}},(t,r,o)=>{var c=o(14),l=o(26),u=o(22),h=o(140),d=Object.isExtensible,g=c((function(){d(1)}));t.exports=g||h?function isExtensible(t){return!!l(t)&&((!h||"ArrayBuffer"!=u(t))&&(!d||d(t)))}:d},(t,r,o)=>{var c=o(14);t.exports=c((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},(t,r,o)=>{var c=o(14);t.exports=!c((function(){return Object.isExtensible(Object.preventExtensions({}))}))},(t,r,o)=>{var c=o(27),l=o(26),u=o(74);t.exports=function(t,r,o){var h,d;u&&c(h=r.constructor)&&h!==o&&l(d=h.prototype)&&d!==o.prototype&&u(t,d);return t}},(t,r,o)=>{"use strict";var c=o(50).f,l=o(76),u=o(104),h=o(83),d=o(106),g=o(82),m=o(96),y=o(105),v=o(13),k=o(135).fastKey,_=o(55),w=_.set,S=_.getterFor;t.exports={getConstructor:function(t,r,o,m){var y=t((function(t,c){d(t,_);w(t,{type:r,index:l(null),first:void 0,last:void 0,size:0});v||(t.size=0);null!=c&&g(c,t[m],{that:t,AS_ENTRIES:o})})),_=y.prototype,C=S(r),define=function(t,r,o){var c,l,u=C(t),h=getEntry(t,r);if(h)h.value=o;else{u.last=h={index:l=k(r,!0),key:r,value:o,previous:c=u.last,next:void 0,removed:!1};u.first||(u.first=h);c&&(c.next=h);v?u.size++:t.size++;"F"!==l&&(u.index[l]=h)}return t},getEntry=function(t,r){var o,c=C(t),l=k(r);if("F"!==l)return c.index[l];for(o=c.first;o;o=o.next)if(o.key==r)return o};u(_,{clear:function clear(){for(var t=C(this),r=t.index,o=t.first;o;){o.removed=!0;o.previous&&(o.previous=o.previous.next=void 0);delete r[o.index];o=o.next}t.first=t.last=void 0;v?t.size=0:this.size=0},delete:function(t){var r=this,o=C(r),c=getEntry(r,t);if(c){var l=c.next,u=c.previous;delete o.index[c.index];c.removed=!0;u&&(u.next=l);l&&(l.previous=u);o.first==c&&(o.first=l);o.last==c&&(o.last=u);v?o.size--:r.size--}return!!c},forEach:function forEach(t){for(var r,o=C(this),c=h(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:o.first;){c(r.value,r.key,this);for(;r&&r.removed;)r=r.previous}},has:function has(t){return!!getEntry(this,t)}});u(_,o?{get:function get(t){var r=getEntry(this,t);return r&&r.value},set:function set(t,r){return define(this,0===t?0:t,r)}}:{add:function add(t){return define(this,t=0===t?0:t,t)}});v&&c(_,"size",{get:function(){return C(this).size}});return y},setStrong:function(t,r,o){var c=r+" Iterator",l=S(r),u=S(c);m(t,r,(function(t,r){w(this,{type:c,target:t,state:l(t),kind:r,last:void 0})}),(function(){for(var t=u(this),r=t.kind,o=t.last;o&&o.removed;)o=o.previous;if(!t.target||!(t.last=o=o?o.next:t.state.first)){t.target=void 0;return{value:void 0,done:!0}}return"keys"==r?{value:o.key,done:!1}:"values"==r?{value:o.value,done:!1}:{value:[o.key,o.value],done:!1}}),o?"entries":"values",!o,!0);y(r)}}},(t,r,o)=>{"use strict";o(134)("Set",(function(t){return function Set(){return t(this,arguments.length?arguments[0]:void 0)}}),o(143))},(t,r,o)=>{var c,l=o(41),u=o(10),h=o(11),d=o(29),g=o(21),m=o(14),y=o(46),v=o(27),k=o(110),_=o(26),w=o(28),S=o(82),C=o(52),x=o(88),O=o(44),T=o(138),E=o(49),M=o(67),R=o(114),j=o(146),D=o(93),N=h.Object,L=h.Date,U=h.Error,H=h.EvalError,$=h.RangeError,X=h.ReferenceError,q=h.SyntaxError,G=h.TypeError,z=h.URIError,W=h.PerformanceMark,V=h.WebAssembly,K=V&&V.CompileError||U,Y=V&&V.LinkError||U,J=V&&V.RuntimeError||U,Z=d("DOMException"),Q=d("Set"),ee=d("Map"),te=ee.prototype,re=g(te.has),ae=g(te.get),ne=g(te.set),ie=g(Q.prototype.add),oe=d("Object","keys"),se=g([].push),ce=g((!0).valueOf),le=g(1..valueOf),ue=g("".valueOf),fe=g(j),he=g(L.prototype.getTime),de=y("structuredClone"),pe="DataCloneError",ge="Transferring",checkBasicSemantic=function(t){return!m((function(){var r=new h.Set([7]),o=t(r),c=t(N(7));return o==r||!o.has(7)||"object"!=typeof c||7!=c}))&&t},me=h.structuredClone,ye=l||!(c=me,!m((function(){var t=c(new h.AggregateError([1],de,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=de||3!=t.cause}))&&c),ve=!me&&checkBasicSemantic((function(t){return new W(de,{detail:t}).detail})),be=checkBasicSemantic(me)||ve,throwUncloneable=function(t){throw new Z("Uncloneable type: "+t,pe)},throwUnpolyfillable=function(t,r){throw new Z((r||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",pe)},structuredCloneInternal=function(t,r){w(t)&&throwUncloneable("Symbol");if(!_(t))return t;if(r){if(re(r,t))return ae(r,t)}else r=new ee;var o,c,l,u,g,m,y,S,C,R,j=x(t),W=!1;switch(j){case"Array":l=[];W=!0;break;case"Object":l={};W=!0;break;case"Map":l=new ee;W=!0;break;case"Set":l=new Q;W=!0;break;case"RegExp":l=new RegExp(t.source,"flags"in t?t.flags:fe(t));break;case"Error":switch(c=t.name){case"AggregateError":l=d("AggregateError")([]);break;case"EvalError":l=H();break;case"RangeError":l=$();break;case"ReferenceError":l=X();break;case"SyntaxError":l=q();break;case"TypeError":l=G();break;case"URIError":l=z();break;case"CompileError":l=K();break;case"LinkError":l=Y();break;case"RuntimeError":l=J();break;default:l=U()}W=!0;break;case"DOMException":l=new Z(t.message,t.name);W=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":o=h[j];_(o)||throwUnpolyfillable(j);l=new o(structuredCloneInternal(t.buffer,r),t.byteOffset,"DataView"===j?t.byteLength:t.length);break;case"DOMQuad":try{l=new DOMQuad(structuredCloneInternal(t.p1,r),structuredCloneInternal(t.p2,r),structuredCloneInternal(t.p3,r),structuredCloneInternal(t.p4,r))}catch(r){be?l=be(t):throwUnpolyfillable(j)}break;case"FileList":o=h.DataTransfer;if(k(o)){u=new o;for(g=0,m=M(t);g<m;g++)u.items.add(structuredCloneInternal(t[g],r));l=u.files}else be?l=be(t):throwUnpolyfillable(j);break;case"ImageData":try{l=new ImageData(structuredCloneInternal(t.data,r),t.width,t.height,{colorSpace:t.colorSpace})}catch(r){be?l=be(t):throwUnpolyfillable(j)}break;default:if(be)l=be(t);else switch(j){case"BigInt":l=N(t.valueOf());break;case"Boolean":l=N(ce(t));break;case"Number":l=N(le(t));break;case"String":l=N(ue(t));break;case"Date":l=new L(he(t));break;case"ArrayBuffer":(o=h.DataView)||"function"==typeof t.slice||throwUnpolyfillable(j);try{if("function"==typeof t.slice)l=t.slice(0);else{m=t.byteLength;l=new ArrayBuffer(m);C=new o(t);R=new o(l);for(g=0;g<m;g++)R.setUint8(g,C.getUint8(g))}}catch(t){throw new Z("ArrayBuffer is detached",pe)}break;case"SharedArrayBuffer":l=t;break;case"Blob":try{l=t.slice(0,t.size,t.type)}catch(t){throwUnpolyfillable(j)}break;case"DOMPoint":case"DOMPointReadOnly":o=h[j];try{l=o.fromPoint?o.fromPoint(t):new o(t.x,t.y,t.z,t.w)}catch(t){throwUnpolyfillable(j)}break;case"DOMRect":case"DOMRectReadOnly":o=h[j];try{l=o.fromRect?o.fromRect(t):new o(t.x,t.y,t.width,t.height)}catch(t){throwUnpolyfillable(j)}break;case"DOMMatrix":case"DOMMatrixReadOnly":o=h[j];try{l=o.fromMatrix?o.fromMatrix(t):new o(t)}catch(t){throwUnpolyfillable(j)}break;case"AudioData":case"VideoFrame":v(t.clone)||throwUnpolyfillable(j);try{l=t.clone()}catch(t){throwUncloneable(j)}break;case"File":try{l=new File([t],t.name,t)}catch(t){throwUnpolyfillable(j)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":throwUnpolyfillable(j);default:throwUncloneable(j)}}ne(r,t,l);if(W)switch(j){case"Array":case"Object":y=oe(t);for(g=0,m=M(y);g<m;g++){S=y[g];T(l,S,structuredCloneInternal(t[S],r))}break;case"Map":t.forEach((function(t,o){ne(l,structuredCloneInternal(o,r),structuredCloneInternal(t,r))}));break;case"Set":t.forEach((function(t){ie(l,structuredCloneInternal(t,r))}));break;case"Error":E(l,"message",structuredCloneInternal(t.message,r));O(t,"cause")&&E(l,"cause",structuredCloneInternal(t.cause,r));"AggregateError"==c&&(l.errors=structuredCloneInternal(t.errors,r));case"DOMException":D&&E(l,"stack",structuredCloneInternal(t.stack,r))}return l},ke=me&&!m((function(){var t=new ArrayBuffer(8),r=me(t,{transfer:[t]});return 0!=t.byteLength||8!=r.byteLength})),tryToTransfer=function(t,r){if(!_(t))throw G("Transfer option cannot be converted to a sequence");var o=[];S(t,(function(t){se(o,C(t))}));var c,l,u,d,g,m,y=0,w=M(o);if(ke){d=me(o,{transfer:o});for(;y<w;)ne(r,o[y],d[y++])}else for(;y<w;){c=o[y++];if(re(r,c))throw new Z("Duplicate transferable",pe);switch(l=x(c)){case"ImageBitmap":u=h.OffscreenCanvas;k(u)||throwUnpolyfillable(l,ge);try{(m=new u(c.width,c.height)).getContext("bitmaprenderer").transferFromImageBitmap(c);g=m.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":v(c.clone)&&v(c.close)||throwUnpolyfillable(l,ge);try{g=c.clone();c.close()}catch(t){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":throwUnpolyfillable(l,ge)}if(void 0===g)throw new Z("This object cannot be transferred: "+l,pe);ne(r,c,g)}};u({global:!0,enumerable:!0,sham:!ke,forced:ye},{structuredClone:function structuredClone(t){var r,o=R(arguments.length,1)>1?C(arguments[1]):void 0,c=o?o.transfer:void 0;if(void 0!==c){r=new ee;tryToTransfer(c,r)}return structuredCloneInternal(t,r)}})},(t,r,o)=>{"use strict";var c=o(52);t.exports=function(){var t=c(this),r="";t.global&&(r+="g");t.ignoreCase&&(r+="i");t.multiline&&(r+="m");t.dotAll&&(r+="s");t.unicode&&(r+="u");t.sticky&&(r+="y");return r}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.RefSetCache=r.RefSet=r.Ref=r.Name=r.EOF=r.Dict=r.Cmd=r.CIRCULAR_REF=void 0;r.clearPrimitiveCaches=function clearPrimitiveCaches(){g._clearCache();d._clearCache();v._clearCache()};r.isCmd=function isCmd(t,r){return t instanceof g&&(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.isName=isName;r.isRefsEqual=function isRefsEqual(t,r){return t.num===r.num&&t.gen===r.gen};var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var u=Symbol("CIRCULAR_REF");r.CIRCULAR_REF=u;var h=Symbol("EOF");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 g=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=g;var m=function nonSerializableClosure(){return m},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__=m}_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 c=this._map[t];void 0===c&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);return c instanceof v&&this.xref?this.xref.fetch(c,this.suppressEncryption):c}},{key:"getAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(c.default.mark((function _callee(t,r,o){var l;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:void 0===(l=this._map[t])&&void 0!==r&&void 0===(l=this._map[r])&&void 0!==o&&(l=this._map[o]);if(!(l instanceof v&&this.xref)){c.next=4;break}return c.abrupt("return",this.xref.fetchAsync(l,this.suppressEncryption));case 4:return c.abrupt("return",l);case 5:case"end":return c.stop()}}),_callee,this)}))),function getAsync(r,o,c){return t.apply(this,arguments)})},{key:"getArray",value:function getArray(t,r,o){var c=this._map[t];void 0===c&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);c instanceof v&&this.xref&&(c=this.xref.fetch(c,this.suppressEncryption));if(Array.isArray(c))for(var l=0,u=(c=c.slice()).length;l<u;l++)c[l]instanceof v&&this.xref&&(c[l]=this.xref.fetch(c[l],this.suppressEncryption));return c}},{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,l.unreachable)("Should not call `set` on the empty dictionary.")};return(0,l.shadow)(this,"empty",t)}},{key:"merge",value:function merge(t){var r,o=t.xref,c=t.dictArray,l=t.mergeSubDicts,u=void 0!==l&&l,h=new Dict(o),d=new Map,g=_createForOfIteratorHelper(c);try{for(g.s();!(r=g.n()).done;){var m=r.value;if(m instanceof Dict)for(var y=0,v=Object.entries(m._map);y<v.length;y++){var k=_slicedToArray(v[y],2),_=k[0],w=k[1],S=d.get(_);if(void 0===S){S=[];d.set(_,S)}else if(!(u&&w instanceof Dict))continue;S.push(w)}}}catch(t){g.e(t)}finally{g.f()}var C,x=_createForOfIteratorHelper(d);try{for(x.s();!(C=x.n()).done;){var O=_slicedToArray(C.value,2),T=O[0],E=O[1];if(1!==E.length&&E[0]instanceof Dict){var M,R=new Dict(o),j=_createForOfIteratorHelper(E);try{for(j.s();!(M=j.n()).done;)for(var D=M.value,N=0,L=Object.entries(D._map);N<L.length;N++){var U=_slicedToArray(L[N],2),H=U[0],$=U[1];void 0===R._map[H]&&(R._map[H]=$)}}catch(t){j.e(t)}finally{j.f()}R.size>0&&(h._map[T]=R)}else h._map[T]=E[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 c=0===o?"".concat(r,"R"):"".concat(r,"R").concat(o),l=t[c];return l||(t[c]=new Ref(r,o))}},{key:"_clearCache",value:function _clearCache(){t=Object.create(null)}}]);return Ref}()}();r.Ref=v;var k=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=k;var _=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=_;function isName(t,r){return t instanceof d&&(void 0===r||t.name===r)}},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.NetworkPdfManager=r.LocalPdfManager=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(149),h=o(150),d=o(153),g=o(152);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}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){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function parseDocBaseUrl(t){if(t){var r=(0,l.createValidAbsoluteUrl)(t);if(r)return r.href;(0,l.warn)('Invalid absolute docBaseUrl: "'.concat(t,'".'))}return null}var m=function(){function BasePdfManager(){_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&(0,l.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,l.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(c.default.mark((function _callee(t,r,o){return c.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:(0,l.unreachable)("Abstract method `ensure` called");case 1:case"end":return t.stop()}}),_callee)}))),function ensure(r,o,c){return t.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){(0,l.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function requestLoadedStream(){(0,l.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function sendProgressiveData(t){(0,l.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function updatePassword(t){this._password=t}},{key:"terminate",value:function terminate(t){(0,l.unreachable)("Abstract method `terminate` called")}}]);var t;return BasePdfManager}(),y=function(t){_inherits(LocalPdfManager,t);var r,o=_createSuper(LocalPdfManager);function LocalPdfManager(t,r,c,l,u,h,m){var y;_classCallCheck(this,LocalPdfManager);(y=o.call(this))._docId=t;y._password=c;y._docBaseUrl=parseDocBaseUrl(m);y.msgHandler=l;y.evaluatorOptions=u;y.enableXfa=h;var v=new g.Stream(r);y.pdfDocument=new d.PDFDocument(_assertThisInitialized(y),v);y._loadedStreamPromise=Promise.resolve(v);return y}_createClass(LocalPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(c.default.mark((function _callee2(t,r,o){var l;return c.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:if("function"!=typeof(l=t[r])){c.next=3;break}return c.abrupt("return",l.apply(t,o));case 3:return c.abrupt("return",l);case 4:case"end":return c.stop()}}),_callee2)}))),function ensure(t,o,c){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}(m);r.LocalPdfManager=y;var v=function(t){_inherits(NetworkPdfManager,t);var r,o=_createSuper(NetworkPdfManager);function NetworkPdfManager(t,r,c,l,h,g){var m;_classCallCheck(this,NetworkPdfManager);(m=o.call(this))._docId=t;m._password=c.password;m._docBaseUrl=parseDocBaseUrl(g);m.msgHandler=c.msgHandler;m.evaluatorOptions=l;m.enableXfa=h;m.streamManager=new u.ChunkedStreamManager(r,{msgHandler:c.msgHandler,length:c.length,disableAutoFetch:c.disableAutoFetch,rangeChunkSize:c.rangeChunkSize});m.pdfDocument=new d.PDFDocument(_assertThisInitialized(m),m.streamManager.getStream());return m}_createClass(NetworkPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(c.default.mark((function _callee3(t,r,o){var l;return c.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:c.prev=0;if("function"!=typeof(l=t[r])){c.next=4;break}return c.abrupt("return",l.apply(t,o));case 4:return c.abrupt("return",l);case 7:c.prev=7;c.t0=c.catch(0);if(c.t0 instanceof h.MissingDataException){c.next=11;break}throw c.t0;case 11:c.next=13;return this.requestRange(c.t0.begin,c.t0.end);case 13:return c.abrupt("return",this.ensure(t,r,o));case 14:case"end":return c.stop()}}),_callee3,this,[[0,7]])}))),function ensure(t,o,c){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}(m);r.NetworkPdfManager=v},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.ChunkedStreamManager=r.ChunkedStream=void 0;var c=o(4),l=o(150);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(ChunkedStream,t);var r=_createSuper(ChunkedStream);function ChunkedStream(t,o,c){var l;_classCallCheck(this,ChunkedStream);(l=r.call(this,new Uint8Array(t),0,t,null)).chunkSize=o;l._loadedChunks=new Set;l.numChunks=Math.ceil(t/o);l.manager=c;l.progressiveDataLength=0;l.lastSuccessfulEnsureByteChunk=-1;return l}_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 c=t+r.byteLength;if(c%o!=0&&c!==this.bytes.length)throw new Error("Bad end offset: ".concat(c));this.bytes.set(new Uint8Array(r),t);for(var l=Math.floor(t/o),u=Math.floor((c-1)/o)+1,h=l;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 c=r>=this.end?this.numChunks:Math.floor(r/this.chunkSize),l=o;l<c;++l)this._loadedChunks.add(l)}},{key:"ensureByte",value:function ensureByte(t){if(!(t<this.progressiveDataLength)){var r=Math.floor(t/this.chunkSize);if(!(r>this.numChunks)&&r!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(r))throw new l.MissingDataException(t,t+1);this.lastSuccessfulEnsureByteChunk=r}}}},{key:"ensureRange",value:function ensureRange(t,r){if(!(t>=r||r<=this.progressiveDataLength)){var o=Math.floor(t/this.chunkSize);if(!(o>this.numChunks))for(var c=Math.min(Math.floor((r-1)/this.chunkSize)+1,this.numChunks),u=o;u<c;++u)if(!this._loadedChunks.has(u))throw new l.MissingDataException(t,r)}}},{key:"nextEmptyChunk",value:function nextEmptyChunk(t){for(var r=this.numChunks,o=0;o<r;++o){var c=(t+o)%r;if(!this._loadedChunks.has(c))return c}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,c=this.pos,l=this.end;if(!t){l>this.progressiveDataLength&&this.ensureRange(c,l);var u=o.subarray(c,l);return r?new Uint8ClampedArray(u):u}var h=c+t;h>l&&(h=l);h>this.progressiveDataLength&&this.ensureRange(c,h);this.pos=h;var d=o.subarray(c,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,c=[],l=r;l<o;++l)this._loadedChunks.has(l)||c.push(l);return c};Object.defineProperty(ChunkedStreamSubstream.prototype,"isDataLoaded",{get:function get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var c=new ChunkedStreamSubstream;c.pos=c.start=t;c.end=t+r||this.end;c.dict=o;return c}},{key:"getBaseStreams",value:function getBaseStreams(){return[this]}}]);return ChunkedStream}(o(152).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,c.createPromiseCapability)()}_createClass(ChunkedStreamManager,[{key:"onLoadedStream",value:function onLoadedStream(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function sendRequest(t,r){var o=this,l=this.pdfNetworkStream.getRangeReader(t,r);l.isStreamingSupported||(l.onProgress=this.onProgress.bind(this));var u=[],h=0;return new Promise((function(t,r){l.read().then((function readChunk(d){try{if(!d.done){var g=d.value;u.push(g);h+=(0,c.arrayByteLength)(g);l.isStreamingSupported&&o.onProgress({loaded:h});l.read().then(readChunk,r);return}var m=(0,c.arraysToBytes)(u);u=null;t(m)}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++,l=new Set;this._chunksNeededByRequest.set(o,l);var u,h=_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){var d=u.value;this.stream.hasChunk(d)||l.add(d)}}catch(t){h.e(t)}finally{h.f()}if(0===l.size)return Promise.resolve();var g=(0,c.createPromiseCapability)();this._promisesByRequest.set(o,g);var m,y=[],v=_createForOfIteratorHelper(l);try{for(v.s();!(m=v.n()).done;){var k=m.value,_=this._requestsByChunk.get(k);if(!_){_=[];this._requestsByChunk.set(k,_);y.push(k)}_.push(o)}}catch(t){v.e(t)}finally{v.f()}if(y.length>0){var w,S=_createForOfIteratorHelper(this.groupChunks(y));try{for(S.s();!(w=S.n()).done;){var C=w.value,x=C.beginChunk*this.chunkSize,O=Math.min(C.endChunk*this.chunkSize,this.length);this.sendRequest(x,O).catch(g.reject)}}catch(t){S.e(t)}finally{S.f()}}return g.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),c=this.getEndChunk(r),l=[],u=o;u<c;++u)l.push(u);return this._requestChunks(l)}},{key:"requestRanges",value:function requestRanges(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=[],c=_createForOfIteratorHelper(r);try{for(c.s();!(t=c.n()).done;)for(var l=t.value,u=this.getBeginChunk(l.begin),h=this.getEndChunk(l.end),d=u;d<h;++d)o.includes(d)||o.push(d)}catch(t){c.e(t)}finally{c.f()}o.sort((function(t,r){return t-r}));return this._requestChunks(o)}},{key:"groupChunks",value:function groupChunks(t){for(var r=[],o=-1,c=-1,l=0,u=t.length;l<u;++l){var h=t[l];o<0&&(o=h);if(c>=0&&c+1!==h){r.push({beginChunk:o,endChunk:c+1});o=h}l+1===t.length&&r.push({beginChunk:o,endChunk:h+1});c=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,c=o?this.progressiveDataLength:t.begin,l=c+r.byteLength,u=Math.floor(c/this.chunkSize),h=l<this.length?Math.floor(l/this.chunkSize):Math.ceil(l/this.chunkSize);if(o){this.stream.onReceiveProgressiveData(r);this.progressiveDataLength=l}else this.stream.onReceiveData(c,r);this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var d=[],g=u;g<h;++g){var m=this._requestsByChunk.get(g);if(m){this._requestsByChunk.delete(g);var y,v=_createForOfIteratorHelper(m);try{for(v.s();!(y=v.n()).done;){var k=y.value,_=this._chunksNeededByRequest.get(k);_.has(g)&&_.delete(g);_.size>0||d.push(k)}}catch(t){v.e(t)}finally{v.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var w;if(1===this.stream.numChunksLoaded){var S=this.stream.numChunks-1;this.stream.hasChunk(S)||(w=S)}else w=this.stream.nextEmptyChunk(h);Number.isInteger(w)&&this._requestChunks([w])}for(var C=0,x=d;C<x.length;C++){var O=x[C],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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.XRefParseException=r.XRefEntryException=r.ParserEOFException=r.MissingDataException=r.DocStats=void 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 g=h[d];if(g instanceof l.Dict){var m,y=_createForOfIteratorHelper(g.getKeys());try{for(y.s();!(m=y.n()).done;){var v=m.value,k=o[v];if(k){var _=g.getRaw(v),w=new l.RefSet,S=[];_collectJS(_,t,S,w);S.length>0&&(u[k]=S)}}}catch(t){y.e(t)}finally{y.f()}}}if(r.has("A")){var C=r.get("A"),x=new l.RefSet,O=[];_collectJS(C,t,O,x);O.length>0&&(u.Action=O)}return(0,c.objectSize)(u)>0?u:null};r.encodeToXmlString=function encodeToXmlString(t){for(var r=[],o=0,c=0,l=t.length;c<l;c++){var u=t.codePointAt(c);if(32<=u&&u<=126){var h=k[u];if(h){o<c&&r.push(t.substring(o,c));r.push(h);o=c+1}}else{o<c&&r.push(t.substring(o,c));r.push("&#x".concat(u.toString(16).toUpperCase(),";"));u>55295&&(u<57344||u>65533)&&c++;o=c+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,c=0,l=t.length;c<l;c++){var u=t.charCodeAt(c);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<c&&r.push(t.substring(o,c));r.push("#".concat(u.toString(16)));o=c+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 c=0,l=o.length;c<l;c+=2)r[o[c]]=o[c+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=/(.+)\[(\d+)\]$/;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.recoverJsURL=function recoverJsURL(t){var r=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(t);if(r&&r[2]){var o=r[2],c=!1;"true"===r[3]&&"app.launchURL"===r[1]&&(c=!0);return{url:o,newWindow:c}}return null};r.toRomanNumerals=function toRomanNumerals(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.assert)(Number.isInteger(t)&&t>0,"The number should be a positive integer.");var o,l=[];for(;t>=1e3;){t-=1e3;l.push("M")}o=t/100|0;t%=100;l.push(v[o]);o=t/10|0;t%=10;l.push(v[10+o]);l.push(v[20+t]);var u=l.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,l=t.fontWeight,u=t.italicAngle;if(/^".*"$/.test(o)){if(/[^\\]"/.test(o.slice(1,o.length-1))){(0,c.warn)('XFA - FontFamily contains some unescaped ": '.concat(o,"."));return!1}}else if(/^'.*'$/.test(o)){if(/[^\\]'/.test(o.slice(1,o.length-1))){(0,c.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 g=h.value;if(/^(\d|(-(\d|-)))/.test(g)||!/^[\w-\\]+$/.test(g)){(0,c.warn)("XFA - FontFamily contains some invalid <custom-ident>: ".concat(o,"."));return!1}}}catch(t){d.e(t)}finally{d.f()}}var m=l?l.toString():"";t.fontWeight=r.has(m)?m:"400";var y=parseFloat(u);t.italicAngle=isNaN(y)||y<-90||y>90?"14":u.toString();return!0};var c=o(4),l=o(147),u=o(151);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var h=function(t){_inherits(MissingDataException,t);var r=_createSuper(MissingDataException);function MissingDataException(t,o){var c;_classCallCheck(this,MissingDataException);(c=r.call(this,"Missing data [".concat(t,", ").concat(o,")"),"MissingDataException")).begin=t;c.end=o;return c}return _createClass(MissingDataException)}(c.BaseException);r.MissingDataException=h;var d=function(t){_inherits(ParserEOFException,t);var r=_createSuper(ParserEOFException);function ParserEOFException(t){_classCallCheck(this,ParserEOFException);return r.call(this,t,"ParserEOFException")}return _createClass(ParserEOFException)}(c.BaseException);r.ParserEOFException=d;var g=function(t){_inherits(XRefEntryException,t);var r=_createSuper(XRefEntryException);function XRefEntryException(t){_classCallCheck(this,XRefEntryException);return r.call(this,t,"XRefEntryException")}return _createClass(XRefEntryException)}(c.BaseException);r.XRefEntryException=g;var m=function(t){_inherits(XRefParseException,t);var r=_createSuper(XRefParseException);function XRefParseException(t){_classCallCheck(this,XRefParseException);return r.call(this,t,"XRefParseException")}return _createClass(XRefParseException)}(c.BaseException);r.XRefParseException=m;var y=function(){function DocStats(t){_classCallCheck(this,DocStats);this._handler=t;this._streamTypes=new Set;this._fontTypes=new Set}_createClass(DocStats,[{key:"_send",value:function _send(){var t,r=Object.create(null),o=Object.create(null),c=_createForOfIteratorHelper(this._streamTypes);try{for(c.s();!(t=c.n()).done;){r[t.value]=!0}}catch(t){c.e(t)}finally{c.f()}var l,u=_createForOfIteratorHelper(this._fontTypes);try{for(u.s();!(l=u.n()).done;){o[l.value]=!0}}catch(t){u.e(t)}finally{u.f()}this._handler.send("DocStats",{streamTypes:r,fontTypes:o})}},{key:"addStreamType",value:function addStreamType(t){if(!this._streamTypes.has(t)){this._streamTypes.add(t);this._send()}}},{key:"addFontType",value:function addFontType(t){if(!this._fontTypes.has(t)){this._fontTypes.add(t);this._send()}}}]);return DocStats}();r.DocStats=y;function getInheritableProperty(t){for(var r,o=t.dict,c=t.key,u=t.getArray,h=void 0!==u&&u,d=t.stopWhenFound,g=void 0===d||d,m=new l.RefSet;o instanceof l.Dict&&(!o.objId||!m.has(o.objId));){o.objId&&m.put(o.objId);var y=h?o.getArray(c):o.get(c);if(void 0!==y){if(g)return y;r||(r=[]);r.push(y)}o=o.get("Parent")}return r}var v=["","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,h){if(t){var d=null;if(t instanceof l.Ref){if(h.has(t))return;d=t;h.put(d);t=r.fetch(t)}if(Array.isArray(t)){var g,m=_createForOfIteratorHelper(t);try{for(m.s();!(g=m.n()).done;){_collectJS(g.value,r,o,h)}}catch(t){m.e(t)}finally{m.f()}}else if(t instanceof l.Dict){if((0,l.isName)(t.get("S"),"JavaScript")){var y,v=t.get("JS");v instanceof u.BaseStream?y=v.getString():"string"==typeof v&&(y=v);(y=y&&(0,c.stringToPDFString)(y))&&o.push(y)}_collectJS(t.getRaw("Next"),r,o,h)}d&&h.remove(d)}}var k={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.BaseStream=void 0;var c=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var l=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,c.unreachable)("Cannot initialize BaseStream.")}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(BaseStream,[{key:"length",get:function get(){(0,c.unreachable)("Abstract getter `length` accessed")}},{key:"isEmpty",get:function get(){(0,c.unreachable)("Abstract getter `isEmpty` accessed")}},{key:"isDataLoaded",get:function get(){return(0,c.shadow)(this,"isDataLoaded",!0)}},{key:"getByte",value:function getByte(){(0,c.unreachable)("Abstract method `getByte` called")}},{key:"getBytes",value:function getBytes(t){(0,c.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,c.unreachable)("Abstract method `getByteRange` called")}},{key:"getString",value:function getString(t){return(0,c.bytesToString)(this.getBytes(t,!1))}},{key:"skip",value:function skip(t){this.pos+=t||1}},{key:"reset",value:function reset(){(0,c.unreachable)("Abstract method `reset` called")}},{key:"moveStart",value:function moveStart(){(0,c.unreachable)("Abstract method `moveStart` called")}},{key:"makeSubStream",value:function makeSubStream(t,r){(0,c.unreachable)("Abstract method `makeSubStream` called")}},{key:"getBaseStreams",value:function getBaseStreams(){return null}}]);return BaseStream}();r.BaseStream=l},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.StringStream=r.Stream=r.NullStream=void 0;var c=o(151),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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var u=function(t){_inherits(Stream,t);var r=_createSuper(Stream);function Stream(t,o,c,l){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+c||u.bytes.length;u.dict=l;return u}_createClass(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,c=this.pos,l=this.end;if(!t){var u=o.subarray(c,l);return r?new Uint8ClampedArray(u):u}var h=c+t;h>l&&(h=l);this.pos=h;var d=o.subarray(c,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}(c.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,l.stringToBytes)(t))}return _createClass(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 _createClass(NullStream)}(u);r.NullStream=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Page=r.PDFDocument=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(150),h=o(147),d=o(154),g=o(152),m=o(164),y=o(151),v=o(215),k=o(206),_=o(208),w=o(169),S=o(213),C=o(204),x=o(167),O=o(171),T=o(212),E=o(217),M=o(241);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var R=[0,0,612,792],j=function(){function Page(t){var r=t.pdfManager,o=t.xref,c=t.pageIndex,l=t.pageDict,u=t.ref,h=t.globalIdFactory,d=t.fontCache,g=t.builtInCMapCache,m=t.standardFontDataCache,y=t.globalImageCache,v=t.nonBlendModesSet,k=t.xfaFactory;_classCallCheck(this,Page);this.pdfManager=r;this.pageIndex=c;this.pageDict=l;this.xref=o;this.ref=u;this.fontCache=d;this.builtInCMapCache=g;this.standardFontDataCache=m;this.globalImageCache=y;this.nonBlendModesSet=v;this.evaluatorOptions=r.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=k;var _={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}});Object.defineProperty(t,"prototype",{writable:!1});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(c,"_").concat(++_.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,u.getInheritableProperty)({dict:this.pageDict,key:t,getArray:r,stopWhenFound:!1});return Array.isArray(o)?1!==o.length&&o[0]instanceof h.Dict?h.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,l.shadow)(this,"resources",this._getInheritableProperty("Resources")||h.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,l.warn)("Empty /".concat(t," entry."))}return null}},{key:"mediaBox",get:function get(){return(0,l.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||R)}},{key:"cropBox",get:function get(){return(0,l.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function get(){var t=this.pageDict.get("UserUnit");("number"!=typeof t||t<=0)&&(t=1);return(0,l.shadow)(this,"userUnit",t)}},{key:"view",get:function get(){var t,r=this.cropBox,o=this.mediaBox;if(r===o||(0,l.isArrayEqual)(r,o))t=o;else{var c=l.Util.intersect(r,o);c&&c[2]-c[0]!=0&&c[3]-c[1]!=0?t=c:(0,l.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,l.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,l.shadow)(this,"rotate",t)}},{key:"_onSubStreamError",value:function _onSubStreamError(t,r,o){if(!this.evaluatorOptions.ignoreErrors)throw r;t.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorContentSubStream});(0,l.warn)("getContentStream - ignoring sub-stream (".concat(o,'): "').concat(r,'".'))}},{key:"getContentStream",value:function getContentStream(t){var r=this;return this.pdfManager.ensure(this,"content").then((function(o){return o instanceof y.BaseStream?o:Array.isArray(o)?new O.StreamsSequenceStream(o,r._onSubStreamError.bind(r,t)):new g.NullStream}))}},{key:"xfaData",get:function get(){return(0,l.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"save",value:function save(t,r,o){var c=new x.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 g=u.value;g.mustBePrinted(o)&&h.push(g.save(c,r,o).catch((function(t){(0,l.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 S.ObjectLoader(r.resources,t,r.xref).load()}))}},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.handler,c=t.sink,u=t.task,h=t.intent,d=t.cacheKey,g=t.annotationStorage,m=void 0===g?null:g,y=this.getContentStream(o),v=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),k=new x.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}),_=Promise.all([y,v]).then((function(t){var l=_slicedToArray(t,1)[0],g=new C.OperatorList(h,c);o.send("StartRenderPage",{transparency:k.hasBlendModes(r.resources,r.nonBlendModesSet),pageIndex:r.pageIndex,cacheKey:d});return k.getOperatorList({stream:l,task:u,resources:r.resources,operatorList:g}).then((function(){return g}))}));return Promise.all([_,this._parsedAnnotations]).then((function(t){var r=_slicedToArray(t,2),o=r[0],c=r[1];if(0===c.length||h&l.RenderingIntentFlag.ANNOTATIONS_DISABLE){o.flush(!0);return{length:o.totalLength}}var d,g=!!(h&l.RenderingIntentFlag.ANNOTATIONS_FORMS),y=!!(h&l.RenderingIntentFlag.ANY),v=!!(h&l.RenderingIntentFlag.DISPLAY),_=!!(h&l.RenderingIntentFlag.PRINT),w=[],S=_createForOfIteratorHelper(c);try{for(S.s();!(d=S.n()).done;){var C=d.value;(y||v&&C.mustBeViewed(m)||_&&C.mustBePrinted(m))&&w.push(C.getOperatorList(k,u,h,g,m).catch((function(t){(0,l.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(u.name,'" task: "').concat(t,'".'));return null})))}}catch(t){S.e(t)}finally{S.f()}return Promise.all(w).then((function(t){o.addOp(l.OPS.beginAnnotations,[]);var r,c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var u=r.value;o.addOpList(u)}}catch(t){c.e(t)}finally{c.f()}o.addOp(l.OPS.endAnnotations,[]);o.flush(!0);return{length:o.totalLength}}))}))}},{key:"extractTextContent",value:function extractTextContent(t){var r=this,o=t.handler,c=t.task,l=t.includeMarkedContent,u=t.sink,h=t.combineTextItems,d=this.getContentStream(o),g=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([d,g]).then((function(t){var d=_slicedToArray(t,1)[0];return new x.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:d,task:c,resources:r.resources,includeMarkedContent:l,combineTextItems:h,sink:u,viewBox:r.view})}))}},{key:"getStructTree",value:(t=_asyncToGenerator(c.default.mark((function _callee(){var t,r;return c.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 T.StructTreePage(t,this.pageDict);r.parse();return r}},{key:"getAnnotationsData",value:function getAnnotationsData(t){return this._parsedAnnotations.then((function(r){var o=[];if(0===r.length)return o;var c,u=!!(t&l.RenderingIntentFlag.ANY),h=!!(t&l.RenderingIntentFlag.DISPLAY),d=!!(t&l.RenderingIntentFlag.PRINT),g=_createForOfIteratorHelper(r);try{for(g.s();!(c=g.n()).done;){var m=c.value;(u||h&&m.viewable||d&&m.printable)&&o.push(m.data)}}catch(t){g.e(t)}finally{g.f()}return o}))}},{key:"annotations",get:function get(){var t=this._getInheritableProperty("Annots");return(0,l.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=[],c=_createForOfIteratorHelper(t.annotations);try{for(c.s();!(r=c.n()).done;){var u=r.value;o.push(m.AnnotationFactory.create(t.xref,u,t.pdfManager,t._localIdFactory,!1).catch((function(t){(0,l.warn)('_parsedAnnotations: "'.concat(t,'".'));return null})))}}catch(t){c.e(t)}finally{c.f()}return Promise.all(o).then((function(t){return t.filter((function(t){return!!t}))}))}));return(0,l.shadow)(this,"_parsedAnnotations",r)}},{key:"jsActions",get:function get(){var t=(0,u.collectActions)(this.xref,this.pageDict,l.PageActionEventType);return(0,l.shadow)(this,"jsActions",t)}}]);var t;return Page}();r.Page=j;var D=new Uint8Array([37,80,68,70,45]),N=new Uint8Array([115,116,97,114,116,120,114,101,102]),L=new Uint8Array([101,110,100,111,98,106]),U=/^[1-9]\.\d$/;function find(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=r.length,u=t.peekBytes(o),h=u.length-l;if(h<=0)return!1;if(c)for(var d=l-1,g=u.length-1;g>=d;){for(var m=0;m<l&&u[g-m]===r[d-m];)m++;if(m>=l){t.pos+=g-d;return!0}g--}else for(var y=0;y<=h;){for(var v=0;v<l&&u[y+v]===r[v];)v++;if(v>=l){t.pos+=y;return!0}y++}return!1}var H=function(){function PDFDocument(t,r){_classCallCheck(this,PDFDocument);var o;if(r instanceof y.BaseStream)o=r;else{if(!(0,l.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");o=new g.Stream(r)}if(o.length<=0)throw new l.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t;this.stream=o;this.xref=new M.XRef(o,t);this._pagePromises=new Map;this._version=null;var c={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(++c.font)}},{key:"createObjId",value:function createObjId(){(0,l.unreachable)("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function getPageObjId(){(0,l.unreachable)("Abstract method `getPageObjId` called.")}}]);return _class2}()}_createClass(PDFDocument,[{key:"parse",value:function parse(t){this.xref.parse(t);this.catalog=new k.Catalog(this.pdfManager,this.xref);this.catalog.version&&(this._version=this.catalog.version)}},{key:"linearization",get:function get(){var t=null;try{t=w.Linearization.create(this.stream)}catch(t){if(t instanceof u.MissingDataException)throw t;(0,l.info)(t)}return(0,l.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=N.length,c=!1,h=t.end;!c&&h>0;){(h-=1024-o)<0&&(h=0);t.pos=h;c=find(t,N,1024,!0)}if(c){t.skip(9);var d;do{d=t.getByte()}while((0,u.isWhiteSpace)(d));for(var g="";d>=32&&d<=57;){g+=String.fromCharCode(d);d=t.getByte()}r=parseInt(g,10);isNaN(r)&&(r=0)}}return(0,l.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(){var t=0;t=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages;return(0,l.shadow)(this,"numPages",t)}},{key:"_hasOnlyDocumentSignatures",value:function _hasOnlyDocumentSignatures(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=10;return!!Array.isArray(t)&&t.every((function(t){if(!((t=r.xref.fetchIfRef(t))instanceof h.Dict))return!1;if(t.has("Kids")){if(++o>c){(0,l.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return r._hasOnlyDocumentSignatures(t.get("Kids"),o)}var u=(0,h.isName)(t.get("FT"),"Sig"),d=t.get("Rect"),g=Array.isArray(d)&&d.every((function(t){return 0===t}));return u&&g}))}},{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(r instanceof y.BaseStream&&!r.isEmpty)try{o["xdp:xdp"]=(0,l.stringToUTF8String)(r.getString());return o}catch(t){(0,l.warn)("XFA - Invalid utf-8 string.");return null}if(!Array.isArray(r)||0===r.length)return null;for(var c=0,u=r.length;c<u;c+=2){var h=void 0;h=0===c?"xdp:xdp":c===u-2?"/xdp:xdp":r[c];if(o.hasOwnProperty(h)){var d=this.xref.fetchIfRef(r[c+1]);if(d instanceof y.BaseStream&&!d.isEmpty)try{o[h]=(0,l.stringToUTF8String)(d.getString())}catch(t){(0,l.warn)("XFA - Invalid utf-8 string.");return null}}}return o}},{key:"xfaFactory",get:function get(){var t;this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData);return(0,l.shadow)(this,"xfaFactory",t?new E.XFAFactory(t):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:($=_asyncToGenerator(c.default.mark((function _callee2(){var t,r,o,l,u,h,d,g;return c.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:c.next=2;return this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=c.sent){c.next=5;break}return c.abrupt("return");case 5:r=t.getKeys();o=new S.ObjectLoader(t,r,this.xref);c.next=9;return o.load();case 9:l=new Map;u=_createForOfIteratorHelper(r);try{for(u.s();!(h=u.n()).done;){d=h.value;(g=t.get(d))instanceof y.BaseStream&&l.set(d,g.getBytes())}}catch(t){u.e(t)}finally{u.f()}this.xfaFactory.setImages(l);case 13:case"end":return c.stop()}}),_callee2,this)}))),function loadXfaImages(){return $.apply(this,arguments)})},{key:"loadXfaFonts",value:(H=_asyncToGenerator(c.default.mark((function _callee3(t,r){var o,g,m,y,v,k,_,w,O,T,E,M,R,j,D,N,L,U,H,$,X,q,G,z,W,V,K,Y,J,Z,Q,ee,te,re;return c.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:c.next=2;return this.pdfManager.ensureCatalog("acroForm");case 2:if(o=c.sent){c.next=5;break}return c.abrupt("return");case 5:c.next=7;return o.getAsync("DR");case 7:if((g=c.sent)instanceof h.Dict){c.next=10;break}return c.abrupt("return");case 10:m=new S.ObjectLoader(g,["Font"],this.xref);c.next=13;return m.load();case 13:if((y=g.get("Font"))instanceof h.Dict){c.next=16;break}return c.abrupt("return");case 16:(v=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)).useSystemFonts=!1;k=new x.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:v});_=new C.OperatorList;w=[];c.t0=function clone(){return this};O={get font(){return w[w.length-1]},set font(t){w.push(t)},clone:c.t0};T=new Map;y.forEach((function(t,r){T.set(t,r)}));E=[];M=_createForOfIteratorHelper(T);c.prev=27;M.s();case 29:if((R=M.n()).done){c.next=44;break}j=_slicedToArray(R.value,2),D=j[0],N=j[1];if((L=N.get("FontDescriptor"))instanceof h.Dict){c.next=34;break}return c.abrupt("continue",42);case 34:U=(U=L.get("FontFamily")).replace(/[ ]+(\d)/g,"$1");H=L.get("FontWeight");$=-L.get("ItalicAngle");X={fontFamily:U,fontWeight:H,italicAngle:$};if((0,u.validateCSSFont)(X)){c.next=41;break}return c.abrupt("continue",42);case 41:E.push(k.handleSetFont(g,[h.Name.get(D),1],null,_,r,O,null,X).catch((function(t){(0,l.warn)('loadXfaFonts: "'.concat(t,'".'));return null})));case 42:c.next=29;break;case 44:c.next=49;break;case 46:c.prev=46;c.t1=c.catch(27);M.e(c.t1);case 49:c.prev=49;M.f();return c.finish(49);case 52:c.next=54;return Promise.all(E);case 54:if(q=this.xfaFactory.setFonts(w)){c.next=57;break}return c.abrupt("return");case 57:v.ignoreErrors=!0;E.length=0;w.length=0;G=new Set;z=_createForOfIteratorHelper(q);try{for(z.s();!(W=z.n()).done;){V=W.value;(0,d.getXfaFontName)("".concat(V,"-Regular"))||G.add(V)}}catch(t){z.e(t)}finally{z.f()}G.size&&q.push("PdfJS-Fallback");K=_createForOfIteratorHelper(q);c.prev=65;K.s();case 67:if((Y=K.n()).done){c.next=74;break}J=Y.value;if(!G.has(J)){c.next=71;break}return c.abrupt("continue",72);case 71:for(Z=0,Q=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];Z<Q.length;Z++){ee=Q[Z];te="".concat(J,"-").concat(ee.name);re=(0,d.getXfaFontDict)(te);E.push(k.handleSetFont(g,[h.Name.get(te),1],null,_,r,O,re,{fontFamily:J,fontWeight:ee.fontWeight,italicAngle:ee.italicAngle}).catch((function(t){(0,l.warn)('loadXfaFonts: "'.concat(t,'".'));return null})))}case 72:c.next=67;break;case 74:c.next=79;break;case 76:c.prev=76;c.t2=c.catch(65);K.e(c.t2);case 79:c.prev=79;K.f();return c.finish(79);case 82:c.next=84;return Promise.all(E);case 84:this.xfaFactory.appendFonts(w,G);case 85:case"end":return c.stop()}}),_callee3,this,[[27,46,49,52],[65,76,79,82]])}))),function loadXfaFonts(t,r){return H.apply(this,arguments)})},{key:"serializeXfaData",value:(R=_asyncToGenerator(c.default.mark((function _callee4(t){return c.default.wrap((function _callee4$(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.xfaFactory?this.xfaFactory.serializeData(t):null);case 1:case"end":return r.stop()}}),_callee4,this)}))),function serializeXfaData(t){return R.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,l.shadow)(this,"formInfo",t);try{var o=r.get("Fields"),c=Array.isArray(o)&&o.length>0;t.hasFields=c;var h=r.get("XFA");t.hasXfa=Array.isArray(h)&&h.length>0||h instanceof y.BaseStream&&!h.isEmpty;var d=!!(1&r.get("SigFlags")),g=d&&this._hasOnlyDocumentSignatures(o);t.hasAcroForm=c&&!g;t.hasSignatures=d}catch(t){if(t instanceof u.MissingDataException)throw t;(0,l.warn)('Cannot fetch form information: "'.concat(t,'".'))}return(0,l.shadow)(this,"formInfo",t)}},{key:"documentInfo",get:function get(){var t=this._version;if("string"!=typeof t||!U.test(t)){(0,l.warn)("Invalid PDF header version number: ".concat(t));t=null}var r,o={PDFFormatVersion:t,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{r=this.xref.trailer.get("Info")}catch(t){if(t instanceof u.MissingDataException)throw t;(0,l.info)("The document information dictionary is invalid.")}if(!(r instanceof h.Dict))return(0,l.shadow)(this,"documentInfo",o);var c,d=_createForOfIteratorHelper(r.getKeys());try{for(d.s();!(c=d.n()).done;){var g=c.value,m=r.get(g);switch(g){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof m){o[g]=(0,l.stringToPDFString)(m);continue}break;case"Trapped":if(m instanceof h.Name){o[g]=m;continue}break;default:var y=void 0;switch(_typeof(m)){case"string":y=(0,l.stringToPDFString)(m);break;case"number":case"boolean":y=m;break;default:m instanceof h.Name&&(y=m)}if(void 0===y){(0,l.warn)('Bad value, for custom key "'.concat(g,'", in Info: ').concat(m,"."));continue}o.Custom||(o.Custom=Object.create(null));o.Custom[g]=y;continue}(0,l.warn)('Bad value, for key "'.concat(g,'", in Info: ').concat(m,"."))}}catch(t){d.e(t)}finally{d.f()}return(0,l.shadow)(this,"documentInfo",o)}},{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,c=t.length;o<c;o++){var l=t[o].toString(16);r.push(l.padStart(2,"0"))}return r.join("")}var t,r,o=this.xref.trailer.get("ID");if(Array.isArray(o)&&validate(o[0])){t=(0,l.stringToBytes)(o[0]);o[1]!==o[0]&&validate(o[1])&&(r=(0,l.stringToBytes)(o[1]))}else t=(0,v.calculateMD5)(this.stream.getByteRange(0,1024),0,1024);return(0,l.shadow)(this,"fingerprints",[hexString(t),r?hexString(r):null])}},{key:"_getLinearizationPage",value:(T=_asyncToGenerator(c.default.mark((function _callee5(t){var r,o,u,d,g,m;return c.default.wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:r=this.catalog,o=this.linearization,u=this.xref;d=h.Ref.get(o.objectNumberFirst,0);c.prev=2;c.next=5;return u.fetchAsync(d);case 5:if(!((g=c.sent)instanceof h.Dict)){c.next=16;break}if(!((m=g.getRaw("Type"))instanceof h.Ref)){c.next=12;break}c.next=11;return u.fetchAsync(m);case 11:m=c.sent;case 12:if(!(0,h.isName)(m,"Page")&&(g.has("Type")||g.has("Kids"))){c.next=16;break}r.pageKidsCountCache.has(d)||r.pageKidsCountCache.put(d,1);r.pageIndexCache.has(d)||r.pageIndexCache.put(d,0);return c.abrupt("return",[g,d]);case 16:throw new l.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.");case 19:c.prev=19;c.t0=c.catch(2);(0,l.warn)('_getLinearizationPage: "'.concat(c.t0.message,'".'));return c.abrupt("return",r.getPageDict(t));case 23:case"end":return c.stop()}}),_callee5,this,[[2,19]])}))),function _getLinearizationPage(t){return T.apply(this,arguments)})},{key:"getPage",value:function getPage(t){var r=this,o=this._pagePromises.get(t);if(o)return o;var c,l=this.catalog,u=this.linearization,d=this.xfaFactory;c=(c=d?Promise.resolve([h.Dict.empty,null]):u&&u.pageFirst===t?this._getLinearizationPage(t):l.getPageDict(t)).then((function(o){var c=_slicedToArray(o,2),u=c[0],h=c[1];return new j({pdfManager:r.pdfManager,xref:r.xref,pageIndex:t,pageDict:u,ref:h,globalIdFactory:r._globalIdFactory,fontCache:l.fontCache,builtInCMapCache:l.builtInCMapCache,standardFontDataCache:l.standardFontDataCache,globalImageCache:l.globalImageCache,nonBlendModesSet:l.nonBlendModesSet,xfaFactory:d})}));this._pagePromises.set(t,c);return c}},{key:"checkFirstPage",value:(O=_asyncToGenerator(c.default.mark((function _callee6(){var t=arguments;return c.default.wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:if(!(t.length>0&&void 0!==t[0]&&t[0])){r.next=3;break}return r.abrupt("return");case 3:r.prev=3;r.next=6;return this.getPage(0);case 6:r.next=15;break;case 8:r.prev=8;r.t0=r.catch(3);if(!(r.t0 instanceof u.XRefEntryException)){r.next=15;break}this._pagePromises.delete(0);r.next=14;return this.cleanup();case 14:throw new u.XRefParseException;case 15:case"end":return r.stop()}}),_callee6,this,[[3,8]])}))),function checkFirstPage(){return O.apply(this,arguments)})},{key:"checkLastPage",value:(o=_asyncToGenerator(c.default.mark((function _callee7(){var t,r,o,h,d,g,m,y,v,k,_,w,S,C=arguments;return c.default.wrap((function _callee7$(c){for(;;)switch(c.prev=c.next){case 0:t=C.length>0&&void 0!==C[0]&&C[0];r=this.catalog,o=this.pdfManager;r.setActualNumPages();c.prev=3;c.next=6;return Promise.all([o.ensureDoc("xfaFactory"),o.ensureDoc("linearization"),o.ensureCatalog("numPages")]);case 6:if(!this.xfaFactory){c.next=10;break}return c.abrupt("return");case 10:h=this.linearization?this.linearization.numPages:r.numPages;case 11:if(Number.isInteger(h)){c.next=15;break}throw new l.FormatError("Page count is not an integer.");case 15:if(!(h<=1)){c.next=17;break}return c.abrupt("return");case 17:c.next=19;return this.getPage(h-1);case 19:c.next=44;break;case 21:c.prev=21;c.t0=c.catch(3);this._pagePromises.delete(h-1);c.next=26;return this.cleanup();case 26:if(!(c.t0 instanceof u.XRefEntryException)||t){c.next=28;break}throw new u.XRefParseException;case 28:(0,l.warn)("checkLastPage - invalid /Pages tree /Count: ".concat(h,"."));c.prev=29;c.next=32;return r.getAllPageDicts(t);case 32:d=c.sent;c.next=41;break;case 35:c.prev=35;c.t1=c.catch(29);if(!(c.t1 instanceof u.XRefEntryException)||t){c.next=39;break}throw new u.XRefParseException;case 39:r.setActualNumPages(1);return c.abrupt("return");case 41:g=_createForOfIteratorHelper(d);try{for(g.s();!(m=g.n()).done;){y=_slicedToArray(m.value,2),v=y[0],k=_slicedToArray(y[1],2),_=k[0],w=k[1];S=void 0;_ instanceof Error?(S=Promise.reject(_)).catch((function(){})):S=Promise.resolve(new j({pdfManager:o,xref:this.xref,pageIndex:v,pageDict:_,ref:w,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null}));this._pagePromises.set(v,S)}}catch(t){g.e(t)}finally{g.f()}r.setActualNumPages(d.size);case 44:case"end":return c.stop()}}),_callee7,this,[[3,21],[29,35]])}))),function checkLastPage(){return o.apply(this,arguments)})},{key:"fontFallback",value:function fontFallback(t,r){return this.catalog.fontFallback(t,r)}},{key:"cleanup",value:(r=_asyncToGenerator(c.default.mark((function _callee8(){var t,r=arguments;return c.default.wrap((function _callee8$(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,_.clearGlobalCaches)());case 2:case"end":return o.stop()}}),_callee8,this)}))),function cleanup(){return r.apply(this,arguments)})},{key:"_collectFieldObjects",value:function _collectFieldObjects(t,r,o){var c=this.xref.fetchIfRef(r);if(c.has("T")){var u=(0,l.stringToPDFString)(c.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,l.warn)('_collectFieldObjects: "'.concat(t,'".'));return null})));if(c.has("Kids")){var h,d=_createForOfIteratorHelper(c.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,l.shadow)(this,"fieldObjects",Promise.resolve(null));var t,r=Object.create(null),o=new Map,c=_createForOfIteratorHelper(this.catalog.acroForm.get("Fields"));try{for(c.s();!(t=c.n()).done;){var u=t.value;this._collectFieldObjects("",u,o)}}catch(t){c.e(t)}finally{c.f()}var h,d=[],g=_createForOfIteratorHelper(o);try{var m=function _loop(){var t=_slicedToArray(h.value,2),o=t[0],c=t[1];d.push(Promise.all(c).then((function(t){(t=t.filter((function(t){return!!t}))).length>0&&(r[o]=t)})))};for(g.s();!(h=g.n()).done;)m()}catch(t){g.e(t)}finally{g.f()}return(0,l.shadow)(this,"fieldObjects",Promise.all(d).then((function(){return r})))}},{key:"hasJSActions",get:function get(){var t=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,l.shadow)(this,"hasJSActions",t)}},{key:"_parseHasJSActions",value:(t=_asyncToGenerator(c.default.mark((function _callee9(){var t,r,o,l;return c.default.wrap((function _callee9$(c){for(;;)switch(c.prev=c.next){case 0:c.next=2;return Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:t=c.sent;r=_slicedToArray(t,2);o=r[0];l=r[1];if(!o){c.next=8;break}return c.abrupt("return",!0);case 8:if(!l){c.next=10;break}return c.abrupt("return",Object.values(l).some((function(t){return t.some((function(t){return null!==t.actions}))})));case 10:return c.abrupt("return",!1);case 11:case"end":return c.stop()}}),_callee9,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,l.shadow)(this,"calculationOrderIds",null);var r=t.get("CO");if(!Array.isArray(r)||0===r.length)return(0,l.shadow)(this,"calculationOrderIds",null);var o,c=[],u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){var d=o.value;d instanceof h.Ref&&c.push(d.toString())}}catch(t){u.e(t)}finally{u.f()}return 0===c.length?(0,l.shadow)(this,"calculationOrderIds",null):(0,l.shadow)(this,"calculationOrderIds",c)}}]);var t,r,o,O,T,R,H,$;return PDFDocument}();r.PDFDocument=H},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getXfaFontDict=function getXfaFontDict(t){var r=function getXfaFontWidths(t){var r=getXfaFontName(t);if(!r)return null;var o,c=r.baseWidths,l=r.baseMapping,u=r.factors;o=u?c.map((function(t,r){return t*u[r]})):c;var h,d,g=-2,m=[],y=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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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}}}}(l.map((function(t,r){return[t,r]})).sort((function(t,r){return _slicedToArray(t,1)[0]-_slicedToArray(r,1)[0]})));try{for(y.s();!(d=y.n()).done;){var v=_slicedToArray(d.value,2),k=v[0],_=v[1];if(-1!==k)if(k===g+1){h.push(o[_]);g+=1}else{g=k;h=[o[_]];m.push(k,h)}}}catch(t){y.e(t)}finally{y.f()}return m}(t),o=new l.Dict(null);o.set("BaseFont",l.Name.get(t));o.set("Type",l.Name.get("Font"));o.set("Subtype",l.Name.get("CIDFontType2"));o.set("Encoding",l.Name.get("Identity-H"));o.set("CIDToGIDMap",l.Name.get("Identity"));o.set("W",r);o.set("FirstChar",r[0]);o.set("LastChar",r[r.length-2]+r[r.length-1].length-1);var c=new l.Dict(null);o.set("FontDescriptor",c);var u=new l.Dict(null);u.set("Ordering","Identity");u.set("Registry","Adobe");u.set("Supplement",0);o.set("CIDSystemInfo",u);return o};r.getXfaFontName=getXfaFontName;var c=o(155),l=o(147),u=o(156),h=o(157),d=o(158),g=o(159),m=o(150),y=o(160);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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}var v=(0,m.getLookupTableFactory)((function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:d.MyriadProRegularFactors,baseWidths:h.LiberationSansRegularWidths,baseMapping:h.LiberationSansRegularMapping,metrics:d.MyriadProRegularMetrics};t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:d.MyriadProBoldFactors,baseWidths:h.LiberationSansBoldWidths,baseMapping:h.LiberationSansBoldMapping,metrics:d.MyriadProBoldMetrics};t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:d.MyriadProItalicFactors,baseWidths:h.LiberationSansItalicWidths,baseMapping:h.LiberationSansItalicMapping,metrics:d.MyriadProItalicMetrics};t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:d.MyriadProBoldItalicFactors,baseWidths:h.LiberationSansBoldItalicWidths,baseMapping:h.LiberationSansBoldItalicMapping,metrics:d.MyriadProBoldItalicMetrics};t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:h.LiberationSansRegularWidths,baseMapping:h.LiberationSansRegularMapping};t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:h.LiberationSansBoldWidths,baseMapping:h.LiberationSansBoldMapping};t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:h.LiberationSansItalicWidths,baseMapping:h.LiberationSansItalicMapping};t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:h.LiberationSansBoldItalicWidths,baseMapping:h.LiberationSansBoldItalicMapping};t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:c.CalibriRegularFactors,baseWidths:h.LiberationSansRegularWidths,baseMapping:h.LiberationSansRegularMapping,metrics:c.CalibriRegularMetrics};t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:c.CalibriBoldFactors,baseWidths:h.LiberationSansBoldWidths,baseMapping:h.LiberationSansBoldMapping,metrics:c.CalibriBoldMetrics};t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:c.CalibriItalicFactors,baseWidths:h.LiberationSansItalicWidths,baseMapping:h.LiberationSansItalicMapping,metrics:c.CalibriItalicMetrics};t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.CalibriBoldItalicFactors,baseWidths:h.LiberationSansBoldItalicWidths,baseMapping:h.LiberationSansBoldItalicMapping,metrics:c.CalibriBoldItalicMetrics};t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:g.SegoeuiRegularFactors,baseWidths:h.LiberationSansRegularWidths,baseMapping:h.LiberationSansRegularMapping,metrics:g.SegoeuiRegularMetrics};t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:g.SegoeuiBoldFactors,baseWidths:h.LiberationSansBoldWidths,baseMapping:h.LiberationSansBoldMapping,metrics:g.SegoeuiBoldMetrics};t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:g.SegoeuiItalicFactors,baseWidths:h.LiberationSansItalicWidths,baseMapping:h.LiberationSansItalicMapping,metrics:g.SegoeuiItalicMetrics};t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:g.SegoeuiBoldItalicFactors,baseWidths:h.LiberationSansBoldItalicWidths,baseMapping:h.LiberationSansBoldItalicMapping,metrics:g.SegoeuiBoldItalicMetrics};t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:u.HelveticaRegularFactors,baseWidths:h.LiberationSansRegularWidths,baseMapping:h.LiberationSansRegularMapping,metrics:u.HelveticaRegularMetrics};t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:u.HelveticaBoldFactors,baseWidths:h.LiberationSansBoldWidths,baseMapping:h.LiberationSansBoldMapping,metrics:u.HelveticaBoldMetrics};t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:u.HelveticaItalicFactors,baseWidths:h.LiberationSansItalicWidths,baseMapping:h.LiberationSansItalicMapping,metrics:u.HelveticaItalicMetrics};t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:u.HelveticaBoldItalicFactors,baseWidths:h.LiberationSansBoldItalicWidths,baseMapping:h.LiberationSansBoldItalicMapping,metrics:u.HelveticaBoldItalicMetrics}}));function getXfaFontName(t){var r=(0,y.normalizeFontName)(t);return v()[r]}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CalibriRegularMetrics=r.CalibriRegularFactors=r.CalibriItalicMetrics=r.CalibriItalicFactors=r.CalibriBoldMetrics=r.CalibriBoldItalicMetrics=r.CalibriBoldItalicFactors=r.CalibriBoldFactors=void 0;r.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207};r.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207};r.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207};r.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];r.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.HelveticaRegularMetrics=r.HelveticaRegularFactors=r.HelveticaItalicMetrics=r.HelveticaItalicFactors=r.HelveticaBoldMetrics=r.HelveticaBoldItalicMetrics=r.HelveticaBoldItalicFactors=r.HelveticaBoldFactors=void 0;r.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,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,.99973,1.00052,1.00041,1.00119,1.00037,.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,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,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.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.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];r.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2};r.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,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,.99973,.99977,.99999,1.00058,.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,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,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.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.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];r.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2};r.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,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,.99973,1.00089,1.00005,.99967,1.00048,.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,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,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.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.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];r.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2};r.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.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,.99973,1.00043,.99953,1.0007,.99915,.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,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,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.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.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.LiberationSansRegularWidths=r.LiberationSansRegularMapping=r.LiberationSansItalicWidths=r.LiberationSansItalicMapping=r.LiberationSansBoldWidths=r.LiberationSansBoldMapping=r.LiberationSansBoldItalicWidths=r.LiberationSansBoldItalicMapping=void 0;r.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,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,556,618,615,417,635,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,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,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,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];r.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];r.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,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,556,619,604,534,618,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,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,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,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];r.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];r.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,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,556,562,522,493,553,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,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,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,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];r.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];r.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,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,556,573,531,365,583,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,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,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,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];r.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MyriadProRegularMetrics=r.MyriadProRegularFactors=r.MyriadProItalicMetrics=r.MyriadProItalicFactors=r.MyriadProBoldMetrics=r.MyriadProBoldItalicMetrics=r.MyriadProBoldItalicFactors=r.MyriadProBoldFactors=void 0;r.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2};r.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2};r.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2};r.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.SegoeuiRegularMetrics=r.SegoeuiRegularFactors=r.SegoeuiItalicMetrics=r.SegoeuiItalicFactors=r.SegoeuiBoldMetrics=r.SegoeuiBoldItalicMetrics=r.SegoeuiBoldItalicFactors=r.SegoeuiBoldFactors=void 0;r.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0};r.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0};r.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];r.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0};r.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];r.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.SEAC_ANALYSIS_ENABLED=r.MacStandardGlyphOrdering=r.FontFlags=void 0;r.getFontType=function getFontType(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t){case"Type1":return o?c.FontType.TYPE1STANDARD:"Type1C"===r?c.FontType.TYPE1C:c.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===r?c.FontType.CIDFONTTYPE0C:c.FontType.CIDFONTTYPE0;case"OpenType":return c.FontType.OPENTYPE;case"TrueType":return c.FontType.TRUETYPE;case"CIDFontType2":return c.FontType.CIDFONTTYPE2;case"MMType1":return c.FontType.MMTYPE1;case"Type0":return c.FontType.TYPE0;default:return c.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 c,h,g,m=Object.create(null),y=!!(t.flags&d.Symbolic);if(t.isInternalFont){g=r;for(h=0;h<g.length;h++){c=o.indexOf(g[h]);m[h]=c>=0?c:0}}else if(t.baseEncodingName){g=(0,l.getEncoding)(t.baseEncodingName);for(h=0;h<g.length;h++){c=o.indexOf(g[h]);m[h]=c>=0?c:0}}else if(y)for(h in r)m[h]=r[h];else{g=l.StandardEncoding;for(h=0;h<g.length;h++){c=o.indexOf(g[h]);m[h]=c>=0?c:0}}var v,k=t.differences;if(k)for(h in k){var _=k[h];if(-1===(c=o.indexOf(_))){v||(v=(0,u.getGlyphsUnicode)());var w=recoverGlyphName(_,v);w!==_&&(c=o.indexOf(w))}m[h]=c>=0?c:0}return m};var c=o(4),l=o(161),u=o(162),h=o(163);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 l in r)if(r[l]===o)return l;(0,c.info)("Unable to recover a standard glyph name for: "+t);return t}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ZapfDingbatsEncoding=r.WinAnsiEncoding=r.SymbolSetEncoding=r.StandardEncoding=r.MacRomanEncoding=r.ExpertEncoding=void 0;r.getEncoding=function getEncoding(t){switch(t){case"WinAnsiEncoding":return h;case"StandardEncoding":return u;case"MacRomanEncoding":return l;case"SymbolSetEncoding":return d;case"ZapfDingbatsEncoding":return g;case"ExpertEncoding":return o;case"MacExpertEncoding":return c;default:return null}};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 c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=l;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 g=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=g},(t,r,o)=>{"use strict";o.r(r);o.d(r,{getDingbatsGlyphsUnicode:()=>u,getGlyphsUnicode:()=>l});var c=o(150);const l=(0,c.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,c.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,{clearUnicodeCaches:()=>clearUnicodeCaches,getCharUnicodeCategory:()=>getCharUnicodeCategory,getNormalizedUnicodes:()=>h,getUnicodeForGlyph:()=>getUnicodeForGlyph,getUnicodeRangeFor:()=>getUnicodeRangeFor,mapSpecialUnicodeValues:()=>mapSpecialUnicodeValues,reverseIfRtl:()=>reverseIfRtl});var c=o(150);const l=(0,c.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?l()[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 c;if(7===r&&"n"===t[1]&&"i"===t[2])c=t.substring(3);else{if(!(r>=5&&r<=7))return-1;c=t.substring(1)}if(c===c.toUpperCase()){o=parseInt(c,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,c.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 c=r-1;c>=0;c--)o.push(t[c]);return o.join("")}const d=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),g=new Map;function getCharUnicodeCategory(t){const r=g.get(t);if(r)return r;const o=t.match(d),c={isWhitespace:!(!o||!o[1]),isZeroWidthDiacritic:!(!o||!o[2]),isInvisibleFormatMark:!(!o||!o[3])};g.set(t,c);return c}function clearUnicodeCaches(){g.clear()}},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.MarkupAnnotation=r.AnnotationFactory=r.AnnotationBorderStyle=r.Annotation=void 0;r.getQuadPoints=getQuadPoints;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(150),h=o(165),d=o(147),g=o(151),m=o(202),y=o(206),v=o(166),k=o(209),_=o(213),w=o(204),S=o(152),C=o(214),x=o(217);function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var c=_superPropBase(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return _get.apply(this,arguments)}function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var O=function(){function AnnotationFactory(){_classCallCheck(this,AnnotationFactory)}_createClass(AnnotationFactory,null,[{key:"create",value:function create(t,r,o,c,l){var u=this;return Promise.all([o.ensureCatalog("acroForm"),l?this._getPageIndex(t,r,o):-1]).then((function(h){var d=_slicedToArray(h,2),g=d[0],m=d[1];return o.ensure(u,"_create",[t,r,o,c,g,l,m])}))}},{key:"_create",value:function _create(t,r,o,c,h,g){var m=arguments.length>6&&void 0!==arguments[6]?arguments[6]:-1,y=t.fetchIfRef(r);if(y instanceof d.Dict){var v=r instanceof d.Ref?r.toString():"annot_".concat(c.createObjId()),k=y.get("Subtype"),_={xref:t,ref:r,dict:y,subtype:k=k instanceof d.Name?k.name:null,id:v,pdfManager:o,acroForm:h instanceof d.Dict?h:d.Dict.empty,collectFields:g,pageIndex:m};switch(k){case"Link":return new H(_);case"Text":return new U(_);case"Widget":var w=(0,u.getInheritableProperty)({dict:y,key:"FT"});switch(w=w instanceof d.Name?w.name:null){case"Tx":return new j(_);case"Btn":return new D(_);case"Ch":return new N(_);case"Sig":return new L(_)}(0,l.warn)('Unimplemented widget field type "'.concat(w,'", ')+"falling back to base field type.");return new R(_);case"Popup":return new $(_);case"FreeText":return new X(_);case"Line":return new q(_);case"Square":return new G(_);case"Circle":return new z(_);case"PolyLine":return new W(_);case"Polygon":return new V(_);case"Caret":return new K(_);case"Ink":return new Y(_);case"Highlight":return new J(_);case"Underline":return new Z(_);case"Squiggly":return new Q(_);case"StrikeOut":return new ee(_);case"Stamp":return new te(_);case"FileAttachment":return new re(_);default:g||(k?(0,l.warn)('Unimplemented annotation type "'.concat(k,'", ')+"falling back to base annotation."):(0,l.warn)("Annotation is missing the required /Subtype."));return new T(_)}}}},{key:"_getPageIndex",value:(t=_asyncToGenerator(c.default.mark((function _callee(t,r,o){var u,h,g;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:c.prev=0;c.next=3;return t.fetchIfRefAsync(r);case 3:if((u=c.sent)instanceof d.Dict){c.next=6;break}return c.abrupt("return",-1);case 6:if((h=u.getRaw("P"))instanceof d.Ref){c.next=9;break}return c.abrupt("return",-1);case 9:c.next=11;return o.ensureCatalog("getPageIndex",[h]);case 11:g=c.sent;return c.abrupt("return",g);case 15:c.prev=15;c.t0=c.catch(0);(0,l.warn)('_getPageIndex: "'.concat(c.t0,'".'));return c.abrupt("return",-1);case 19:case"end":return c.stop()}}),_callee,null,[[0,15]])}))),function _getPageIndex(r,o,c){return t.apply(this,arguments)})}]);var t;return AnnotationFactory}();r.AnnotationFactory=O;function getRgbColor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(t))return r;var o=r||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:v.ColorSpace.singletons.gray.getRgbItem(t,0,o,0);return o;case 3:v.ColorSpace.singletons.rgb.getRgbItem(t,0,o,0);return o;case 4:v.ColorSpace.singletons.cmyk.getRgbItem(t,0,o,0);return o;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 c=[],l=0,u=o.length/8;l<u;l++){c.push([]);for(var h=8*l,d=8*l+8;h<d;h+=2){var g=o[h],m=o[h+1];if(null!==r&&(g<r[0]||g>r[2]||m<r[1]||m>r[3]))return null;c[l].push({x:g,y:m})}}return c.map((function(t){var r=t.reduce((function(t,r){var o=_slicedToArray(t,4),c=o[0],l=o[1],u=o[2],h=o[3];return[Math.min(c,r.x),Math.max(l,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),c=o[0],l=o[1],u=o[2],h=o[3];return[{x:c,y:h},{x:l,y:h},{x:c,y:u},{x:l,y:u}]}))}function getTransformMatrix(t,r,o){var c=_slicedToArray(l.Util.getAxialAlignedBoundingBox(r,o),4),u=c[0],h=c[1],d=c[2],g=c[3];if(u===d||h===g)return[1,0,0,1,t[0],t[1]];var m=(t[2]-t[0])/(d-u),y=(t[3]-t[1])/(g-h);return[m,0,0,y,t[0]-u*m,t[1]-h*y]}var T=function(){function Annotation(t){_classCallCheck(this,Annotation);var r=t.dict;this.setTitle(r.get("T"));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.setBorderAndBackgroundColors(r.get("MK"));this._streams=[];this.appearance&&this._streams.push(this.appearance);this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1};if(t.collectFields){var o=r.get("Kids");if(Array.isArray(o)){var c,h=[],g=_createForOfIteratorHelper(o);try{for(g.s();!(c=g.n()).done;){var m=c.value;m instanceof d.Ref&&h.push(m.toString())}}catch(t){g.e(t)}finally{g.f()}0!==h.length&&(this.data.kidIds=h)}this.data.actions=(0,u.collectActions)(t.xref,r,l.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,l.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,l.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function _isPrintable(t){return this._hasFlag(t,l.AnnotationFlag.PRINT)&&!this._hasFlag(t,l.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,l.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:"_parseStringHelper",value:function _parseStringHelper(t){var r="string"==typeof t?(0,l.stringToPDFString)(t):"";return{str:r,dir:r&&"rtl"===(0,m.bidi)(r).dir?"rtl":"ltr"}}},{key:"setTitle",value:function setTitle(t){this._title=this._parseStringHelper(t)}},{key:"setContents",value:function setContents(t){this._contents=this._parseStringHelper(t)}},{key:"setModificationDate",value:function setModificationDate(t){this.modificationDate="string"==typeof 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=l.Util.normalizeRect(t):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function setColor(t){this.color=getRgbColor(t)}},{key:"setBorderAndBackgroundColors",value:function setBorderAndBackgroundColors(t){if(t instanceof d.Dict){this.borderColor=getRgbColor(t.getArray("BC"),null);this.backgroundColor=getRgbColor(t.getArray("BG"),null)}else this.borderColor=this.backgroundColor=null}},{key:"setBorderStyle",value:function setBorderStyle(t){this.borderStyle=new E;if(t instanceof d.Dict)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 c=t.getArray("Border");if(Array.isArray(c)&&c.length>=3){this.borderStyle.setHorizontalCornerRadius(c[0]);this.borderStyle.setVerticalCornerRadius(c[1]);this.borderStyle.setWidth(c[2],this.rectangle);4===c.length&&this.borderStyle.setDashArray(c[3],!0)}}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function setAppearance(t){this.appearance=null;var r=t.get("AP");if(r instanceof d.Dict){var o=r.get("N");if(o instanceof g.BaseStream)this.appearance=o;else if(o instanceof d.Dict){var c=t.get("AS");c instanceof d.Name&&o.has(c.name)&&(this.appearance=o.get(c.name))}}}},{key:"loadResources",value:function loadResources(t,r){return r.dict.getAsync("Resources").then((function(r){if(r){return new _.ObjectLoader(r,t,r.xref).load().then((function(){return r}))}}))}},{key:"getOperatorList",value:function getOperatorList(t,r,o,c,u){var h=this,g=this.data,m=this.appearance,y=g.hasOwnCanvas&&o&l.RenderingIntentFlag.DISPLAY;if(!m){if(!y)return Promise.resolve(new w.OperatorList);(m=new S.StringStream("")).dict=new d.Dict}var v=m.dict,k=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],m),_=v.getArray("BBox")||[0,0,1,1],C=v.getArray("Matrix")||[1,0,0,1,0,0],x=getTransformMatrix(g.rect,_,C);return k.then((function(o){var c=new w.OperatorList;c.addOp(l.OPS.beginAnnotation,[g.id,g.rect,x,C,y]);return t.getOperatorList({stream:m,task:r,resources:o,operatorList:c,fallbackFontDict:h._fallbackFontDict}).then((function(){c.addOp(l.OPS.endAnnotation,[]);h.reset();return c}))}))}},{key:"save",value:(t=_asyncToGenerator(c.default.mark((function _callee2(t,r,o){return c.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,c){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,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,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,l.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent"))return(0,l.stringToPDFString)(t.get("T"));var r=[];t.has("T")&&r.unshift((0,l.stringToPDFString)(t.get("T")));var o=t,c=new d.RefSet;t.objId&&c.put(t.objId);for(;o.has("Parent")&&(o=o.get("Parent"))instanceof d.Dict&&(!o.objId||!c.has(o.objId));){o.objId&&c.put(o.objId);o.has("T")&&r.unshift((0,l.stringToPDFString)(o.get("T")))}return r.join(".")}}]);var t;return Annotation}();r.Annotation=T;var E=function(){function AnnotationBorderStyle(){_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=l.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(t instanceof d.Name)this.width=0;else if("number"==typeof t){if(t>0){var o=(r[2]-r[0])/2,c=(r[3]-r[1])/2;if(o>0&&c>0&&(t>o||t>c)){(0,l.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(t));t=1}}this.width=t}}},{key:"setStyle",value:function setStyle(t){if(t instanceof d.Name)switch(t.name){case"S":this.style=l.AnnotationBorderStyleType.SOLID;break;case"D":this.style=l.AnnotationBorderStyleType.DASHED;break;case"B":this.style=l.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=l.AnnotationBorderStyleType.INSET;break;case"U":this.style=l.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function setDashArray(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)&&t.length>0){var o,c=!0,l=!0,u=_createForOfIteratorHelper(t);try{for(u.s();!(o=u.n()).done;){var h=o.value,g=+h>=0;if(!g){c=!1;break}h>0&&(l=!1)}}catch(t){u.e(t)}finally{u.f()}if(c&&!l){this.dashArray=t;r&&this.setStyle(d.Name.get("D"))}else 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=E;var M=function(t){_inherits(MarkupAnnotation,t);var r=_createSuper(MarkupAnnotation);function MarkupAnnotation(t){var o;_classCallCheck(this,MarkupAnnotation);o=r.call(this,t);var c=t.dict;if(c.has("IRT")){var u=c.getRaw("IRT");o.data.inReplyTo=u instanceof d.Ref?u.toString():null;var h=c.get("RT");o.data.replyType=h instanceof d.Name?h.name:l.AnnotationReplyType.REPLY}if(o.data.replyType===l.AnnotationReplyType.GROUP){var g=c.get("IRT");o.setTitle(g.get("T"));o.data.titleObj=o._title;o.setContents(g.get("Contents"));o.data.contentsObj=o._contents;if(g.has("CreationDate")){o.setCreationDate(g.get("CreationDate"));o.data.creationDate=o.creationDate}else o.data.creationDate=null;if(g.has("M")){o.setModificationDate(g.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;o.data.hasPopup=g.has("Popup");if(g.has("C")){o.setColor(g.getArray("C"));o.data.color=o.color}else o.data.color=null}else{o.data.titleObj=o._title;o.setCreationDate(c.get("CreationDate"));o.data.creationDate=o.creationDate;o.data.hasPopup=c.has("Popup");c.has("C")||(o.data.color=null)}c.has("RC")&&(o.data.richText=x.XFAFactory.getRichTextAsHtml(c.get("RC")));return o}_createClass(MarkupAnnotation,[{key:"setCreationDate",value:function setCreationDate(t){this.creationDate="string"==typeof t?t:null}},{key:"_setDefaultAppearance",value:function _setDefaultAppearance(t){var r=t.xref,o=t.extra,c=t.strokeColor,l=t.fillColor,u=t.blendMode,h=t.strokeAlpha,g=t.fillAlpha,m=t.pointsCallback,y=Number.MAX_VALUE,v=Number.MAX_VALUE,k=Number.MIN_VALUE,_=Number.MIN_VALUE,w=["q"];o&&w.push(o);c&&w.push("".concat(c[0]," ").concat(c[1]," ").concat(c[2]," RG"));l&&w.push("".concat(l[0]," ").concat(l[1]," ").concat(l[2]," rg"));var C=this.data.quadPoints;C||(C=[[{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(C);try{for(O.s();!(x=O.n()).done;){var T=_slicedToArray(m(w,x.value),4),E=T[0],M=T[1],R=T[2],j=T[3];y=Math.min(y,E);k=Math.max(k,M);v=Math.min(v,R);_=Math.max(_,j)}}catch(t){O.e(t)}finally{O.f()}w.push("Q");var D=new d.Dict(r),N=new d.Dict(r);N.set("Subtype",d.Name.get("Form"));var L=new S.StringStream(w.join(" "));L.dict=N;D.set("Fm0",L);var U=new d.Dict(r);u&&U.set("BM",d.Name.get(u));"number"==typeof h&&U.set("CA",h);"number"==typeof g&&U.set("ca",g);var H=new d.Dict(r);H.set("GS0",U);var $=new d.Dict(r);$.set("ExtGState",H);$.set("XObject",D);var X=new d.Dict(r);X.set("Resources",$);var q=this.data.rect=[y,v,k,_];X.set("BBox",q);this.appearance=new S.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=X;this._streams.push(this.appearance,L)}}]);return MarkupAnnotation}(T);r.MarkupAnnotation=M;var R=function(t){_inherits(WidgetAnnotation,t);var r,o,g,m=_createSuper(WidgetAnnotation);function WidgetAnnotation(t){var r;_classCallCheck(this,WidgetAnnotation);r=m.call(this,t);var o=t.dict,c=r.data;r.ref=t.ref;c.annotationType=l.AnnotationType.WIDGET;void 0===c.fieldName&&(c.fieldName=r._constructFieldName(o));void 0===c.actions&&(c.actions=(0,u.collectActions)(t.xref,o,l.AnnotationActionEventType));var g=(0,u.getInheritableProperty)({dict:o,key:"V",getArray:!0});c.fieldValue=r._decodeFormValue(g);var y=(0,u.getInheritableProperty)({dict:o,key:"DV",getArray:!0});c.defaultFieldValue=r._decodeFormValue(y);void 0===g&&null!==c.defaultFieldValue&&(c.fieldValue=c.defaultFieldValue);c.alternativeText=(0,l.stringToPDFString)(o.get("TU")||"");var v=(0,u.getInheritableProperty)({dict:o,key:"DA"})||t.acroForm.get("DA");r._defaultAppearance="string"==typeof v?v:"";c.defaultAppearanceData=(0,h.parseDefaultAppearance)(r._defaultAppearance);var k=(0,u.getInheritableProperty)({dict:o,key:"FT"});c.fieldType=k instanceof d.Name?k.name:null;var _=(0,u.getInheritableProperty)({dict:o,key:"DR"}),w=t.acroForm.get("DR"),S=r.appearance&&r.appearance.dict.get("Resources");r._fieldResources={localResources:_,acroFormResources:w,appearanceResources:S,mergedResources:d.Dict.merge({xref:t.xref,dictArray:[_,S,w],mergeSubDicts:!0})};c.fieldFlags=(0,u.getInheritableProperty)({dict:o,key:"Ff"});(!Number.isInteger(c.fieldFlags)||c.fieldFlags<0)&&(c.fieldFlags=0);c.readOnly=r.hasFieldFlag(l.AnnotationFieldFlag.READONLY);c.hidden=r._hasFlag(c.annotationFlags,l.AnnotationFlag.HIDDEN);return r}_createClass(WidgetAnnotation,[{key:"_decodeFormValue",value:function _decodeFormValue(t){return Array.isArray(t)?t.filter((function(t){return"string"==typeof t})).map((function(t){return(0,l.stringToPDFString)(t)})):t instanceof d.Name?(0,l.stringToPDFString)(t.name):"string"==typeof t?(0,l.stringToPDFString)(t):null}},{key:"hasFieldFlag",value:function hasFieldFlag(t){return!!(this.data.fieldFlags&t)}},{key:"getOperatorList",value:function getOperatorList(t,r,o,c,u){var h=this;return!c||this instanceof L?this._hasText?this._getAppearance(t,r,u).then((function(d){if(h.appearance&&null===d)return _get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",h).call(h,t,r,o,c,u);var g=new w.OperatorList;if(!h._defaultAppearance||null===d)return g;var m=[1,0,0,1,0,0],y=[0,0,h.data.rect[2]-h.data.rect[0],h.data.rect[3]-h.data.rect[1]],v=getTransformMatrix(h.data.rect,y,m);g.addOp(l.OPS.beginAnnotation,[h.data.id,h.data.rect,v,m]);var k=new S.StringStream(d);return t.getOperatorList({stream:k,task:r,resources:h._fieldResources.mergedResources,operatorList:g}).then((function(){g.addOp(l.OPS.endAnnotation,[]);return g}))})):_get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,c,u):Promise.resolve(new w.OperatorList)}},{key:"save",value:(g=_asyncToGenerator(c.default.mark((function _callee3(t,r,o){var u,h,g,m,y,v,k,_,w,S,x,O,T,E,M;return c.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:if(o){c.next=2;break}return c.abrupt("return",null);case 2:u=o.get(this.data.id);if((h=u&&u.value)!==this.data.fieldValue&&void 0!==h){c.next=6;break}return c.abrupt("return",null);case 6:c.next=8;return this._getAppearance(t,r,o);case 8:if(null!==(g=c.sent)){c.next=11;break}return c.abrupt("return",null);case 11:m=t.xref;if((y=m.fetchIfRef(this.ref))instanceof d.Dict){c.next=15;break}return c.abrupt("return",null);case 15:v=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];k={path:(0,l.stringToPDFString)(y.get("T")||""),value:h};_=m.getNewRef();(w=new d.Dict(m)).set("N",_);S=m.encrypt;x=null;O=null;if(S){x=S.createCipherTransform(this.ref.num,this.ref.gen);O=S.createCipherTransform(_.num,_.gen);g=O.encryptString(g)}y.set("V",(0,l.isAscii)(h)?h:(0,l.stringToUTF16BEString)(h));y.set("AP",w);y.set("M","D:".concat((0,l.getModificationDate)()));(T=new d.Dict(m)).set("Length",g.length);T.set("Subtype",d.Name.get("Form"));T.set("Resources",this._getSaveFieldResources(m));T.set("BBox",v);E=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,C.writeDict)(y,E,x);E.push("\nendobj\n");M=["".concat(_.num," ").concat(_.gen," obj\n")];(0,C.writeDict)(T,M,O);M.push(" stream\n",g,"\nendstream\nendobj\n");return c.abrupt("return",[{ref:this.ref,data:E.join(""),xfa:k},{ref:_,data:M.join(""),xfa:null}]);case 39:case"end":return c.stop()}}),_callee3,this)}))),function save(t,r,o){return g.apply(this,arguments)})},{key:"_getAppearance",value:(o=_asyncToGenerator(c.default.mark((function _callee4(t,r,o){var u,d,g,m,y,v,k,_,w,S,C,x,O,T,E,M,R,j;return c.default.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:u=this.hasFieldFlag(l.AnnotationFieldFlag.PASSWORD);if(o&&!u){c.next=3;break}return c.abrupt("return",null);case 3:d=o.get(this.data.id);if(void 0!==(g=d&&d.value)){c.next=7;break}return c.abrupt("return",null);case 7:if(""!==(g=g.trim())){c.next=10;break}return c.abrupt("return","");case 10:m=-1;this.data.multiLine&&(m=g.split(/\r\n|\r|\n/).length);v=y=2;k=this.data.rect[3]-this.data.rect[1];_=this.data.rect[2]-this.data.rect[0];this._defaultAppearance||(this.data.defaultAppearanceData=(0,h.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));c.next=19;return this._getFontData(t,r);case 19:w=c.sent;S=this._computeFontSize(k-y,_-2*v,g,w,m),C=_slicedToArray(S,2),x=C[0],O=C[1];T=w.descent;isNaN(T)&&(T=0);E=y+Math.abs(T)*O;M=this.data.textAlignment;if(!this.data.multiLine){c.next=27;break}return c.abrupt("return",this._getMultilineAppearance(x,g,w,O,_,k,M,v,E));case 27:R=w.encodeString(g).join("");if(!this.data.comb){c.next=30;break}return c.abrupt("return",this._getCombAppearance(x,w,R,_,v,E));case 30:if(!(0===M||M>2)){c.next=32;break}return c.abrupt("return","/Tx BMC q BT "+x+" 1 0 0 1 ".concat(v," ").concat(E," Tm (").concat((0,l.escapeString)(R),") Tj")+" ET Q EMC");case 32:j=this._renderText(R,w,O,_,M,v,E);return c.abrupt("return","/Tx BMC q BT "+x+" 1 0 0 1 0 0 Tm ".concat(j)+" ET Q EMC");case 34:case"end":return c.stop()}}),_callee4,this)}))),function _getAppearance(t,r,c){return o.apply(this,arguments)})},{key:"_getFontData",value:(r=_asyncToGenerator(c.default.mark((function _callee5(t,r){var o,l,u,h,g;return c.default.wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:o=new w.OperatorList;l={font:null,clone:function clone(){return this}};u=this.data.defaultAppearanceData,h=u.fontName,g=u.fontSize;c.next=5;return t.handleSetFont(this._fieldResources.mergedResources,[h&&d.Name.get(h),g],null,o,r,l,null);case 5:return c.abrupt("return",l.font);case 6:case"end":return c.stop()}}),_callee5,this)}))),function _getFontData(t,o){return r.apply(this,arguments)})},{key:"_getTextWidth",value:function _getTextWidth(t,r){return r.charsToGlyphs(t).reduce((function(t,r){return t+r.width}),0)/1e3}},{key:"_computeFontSize",value:function _computeFontSize(t,r,o,c,l){var u=this,d=this.data.defaultAppearanceData.fontSize;if(!d){var g=function roundWithTwoDigits(t){return Math.floor(100*t)/100},m=1.35;if(-1===l){var y=this._getTextWidth(o,c);d=g(Math.min(t/m,r/y))}else{var v,k=o.split(/\r\n?|\n/),_=[],w=_createForOfIteratorHelper(k);try{for(w.s();!(v=w.n()).done;){var S=v.value,C=c.encodeString(S).join(""),x=c.charsToGlyphs(C),O=c.getCharPositions(C);_.push({line:C,glyphs:x,positions:O})}}catch(t){w.e(t)}finally{w.f()}var T=function isTooBig(o){var l,h=0,d=_createForOfIteratorHelper(_);try{for(d.s();!(l=d.n()).done;){var g=l.value;if((h+=u._splitLine(null,c,o,r,g).length*o)>t)return!0}}catch(t){d.e(t)}finally{d.f()}return!1},E=(d=12)*m,M=Math.round(t/E);M=Math.max(M,l);for(;T(d=g((E=t/M)/m));)M++}var R=this.data.defaultAppearanceData,j=R.fontName,D=R.fontColor;this._defaultAppearance=(0,h.createDefaultAppearance)({fontSize:d,fontName:j,fontColor:D})}return[this._defaultAppearance,d]}},{key:"_renderText",value:function _renderText(t,r,o,c,u,h,d){var g,m=this._getTextWidth(t,r)*o;g=(g=1===u?(c-m)/2:2===u?c-m-h:h).toFixed(2);d=d.toFixed(2);return"".concat(g," ").concat(d," Td (").concat((0,l.escapeString)(t),") Tj")}},{key:"_getSaveFieldResources",value:function _getSaveFieldResources(t){var r=this._fieldResources,o=r.localResources,c=r.appearanceResources,l=r.acroFormResources,u=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!u)return o||d.Dict.empty;for(var h=0,g=[o,c];h<g.length;h++){var m=g[h];if(m instanceof d.Dict){var y=m.get("Font");if(y instanceof d.Dict&&y.has(u))return m}}if(l instanceof d.Dict){var v=l.get("Font");if(v instanceof d.Dict&&v.has(u)){var k=new d.Dict(t);k.set(u,v.getRaw(u));var _=new d.Dict(t);_.set("Font",k);return d.Dict.merge({xref:t,dictArray:[_,o],mergeSubDicts:!0})}}return o||d.Dict.empty}},{key:"getFieldObject",value:function getFieldObject(){return null}}]);return WidgetAnnotation}(T),j=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 c=t.dict;"string"!=typeof o.data.fieldValue&&(o.data.fieldValue="");var h=(0,u.getInheritableProperty)({dict:c,key:"Q"});(!Number.isInteger(h)||h<0||h>2)&&(h=null);o.data.textAlignment=h;var d=(0,u.getInheritableProperty)({dict:c,key:"MaxLen"});(!Number.isInteger(d)||d<0)&&(d=null);o.data.maxLen=d;o.data.multiLine=o.hasFieldFlag(l.AnnotationFieldFlag.MULTILINE);o.data.comb=o.hasFieldFlag(l.AnnotationFieldFlag.COMB)&&!o.hasFieldFlag(l.AnnotationFieldFlag.MULTILINE)&&!o.hasFieldFlag(l.AnnotationFieldFlag.PASSWORD)&&!o.hasFieldFlag(l.AnnotationFieldFlag.FILESELECT)&&null!==o.data.maxLen;return o}_createClass(TextWidgetAnnotation,[{key:"_getCombAppearance",value:function _getCombAppearance(t,r,o,c,u,h){var d,g=(c/this.data.maxLen).toFixed(2),m=[],y=_createForOfIteratorHelper(r.getCharPositions(o));try{for(y.s();!(d=y.n()).done;){var v=_slicedToArray(d.value,2),k=v[0],_=v[1];m.push("(".concat((0,l.escapeString)(o.substring(k,_)),") Tj"))}}catch(t){y.e(t)}finally{y.f()}var w=m.join(" ".concat(g," 0 Td "));return"/Tx BMC q BT "+t+" 1 0 0 1 ".concat(u," ").concat(h," Tm ").concat(w)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function _getMultilineAppearance(t,r,o,c,l,u,h,d,g){var m,y=[],v=l-2*d,k=_createForOfIteratorHelper(r.split(/\r\n?|\n/));try{for(k.s();!(m=k.n()).done;){var _,w=m.value,S=_createForOfIteratorHelper(this._splitLine(w,o,c,v));try{for(S.s();!(_=S.n()).done;){var C=_.value,x=0===y.length?d:0;y.push(this._renderText(C,o,c,l,h,x,-c))}}catch(t){S.e(t)}finally{S.f()}}}catch(t){k.e(t)}finally{k.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,c){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};t=l.line||r.encodeString(t).join("");var u=l.glyphs||r.charsToGlyphs(t);if(u.length<=1)return[t];for(var h=l.positions||r.getCharPositions(t),d=o/1e3,g=[],m=-1,y=-1,v=-1,k=0,_=0,w=0,S=u.length;w<S;w++){var C=_slicedToArray(h[w],2),x=C[0],O=C[1],T=u[w],E=T.width*d;if(" "===T.unicode)if(_+E>c){g.push(t.substring(k,x));k=x;_=E;m=-1;v=-1}else{_+=E;m=x;y=O;v=w}else if(_+E>c)if(-1!==m){g.push(t.substring(k,y));k=y;w=v+1;m=-1;_=0}else{g.push(t.substring(k,x));k=x;_=E}else _+=E}k<t.length&&g.push(t.substring(k,t.length));return g}},{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(l.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,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"text"}}}]);return TextWidgetAnnotation}(R),D=function(t){_inherits(ButtonWidgetAnnotation,t);var r,o,u,h,g=_createSuper(ButtonWidgetAnnotation);function ButtonWidgetAnnotation(t){var r;_classCallCheck(this,ButtonWidgetAnnotation);(r=g.call(this,t)).checkedAppearance=null;r.uncheckedAppearance=null;r.data.checkBox=!r.hasFieldFlag(l.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(l.AnnotationFieldFlag.PUSHBUTTON);r.data.radioButton=r.hasFieldFlag(l.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(l.AnnotationFieldFlag.PUSHBUTTON);r.data.pushButton=r.hasFieldFlag(l.AnnotationFieldFlag.PUSHBUTTON);r.data.isTooltipOnly=!1;if(r.data.checkBox)r._processCheckBox(t);else if(r.data.radioButton)r._processRadioButton(t);else if(r.data.pushButton){r.data.hasOwnCanvas=!0;r._processPushButton(t)}else(0,l.warn)("Invalid field flags for button widget annotation");return r}_createClass(ButtonWidgetAnnotation,[{key:"getOperatorList",value:(h=_asyncToGenerator(c.default.mark((function _callee6(t,r,o,l,u){var h,d,g,m,y;return c.default.wrap((function _callee6$(c){for(;;)switch(c.prev=c.next){case 0:if(!this.data.pushButton){c.next=2;break}return c.abrupt("return",_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,!1,u));case 2:h=null;if(u){d=u.get(this.data.id);h=d?d.value:null}if(null!==h){c.next=8;break}if(!this.appearance){c.next=7;break}return c.abrupt("return",_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l,u));case 7:h=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue;case 8:if(!(g=h?this.checkedAppearance:this.uncheckedAppearance)){c.next=15;break}m=this.appearance;this.appearance=g;y=_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l,u);this.appearance=m;return c.abrupt("return",y);case 15:return c.abrupt("return",new w.OperatorList);case 16:case"end":return c.stop()}}),_callee6,this)}))),function getOperatorList(t,r,o,c,l){return h.apply(this,arguments)})},{key:"save",value:(u=_asyncToGenerator(c.default.mark((function _callee7(t,r,o){return c.default.wrap((function _callee7$(c){for(;;)switch(c.prev=c.next){case 0:if(!this.data.checkBox){c.next=2;break}return c.abrupt("return",this._saveCheckbox(t,r,o));case 2:if(!this.data.radioButton){c.next=4;break}return c.abrupt("return",this._saveRadioButton(t,r,o));case 4:return c.abrupt("return",null);case 5:case"end":return c.stop()}}),_callee7,this)}))),function save(t,r,o){return u.apply(this,arguments)})},{key:"_saveCheckbox",value:(o=_asyncToGenerator(c.default.mark((function _callee8(t,r,o){var u,h,g,m,y,v,k,_;return c.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.exportValue!==h){r.next=9;break}return r.abrupt("return",null);case 9:if((g=t.xref.fetchIfRef(this.ref))instanceof d.Dict){r.next=12;break}return r.abrupt("return",null);case 12:m={path:(0,l.stringToPDFString)(g.get("T")||""),value:h?this.data.exportValue:""};y=d.Name.get(h?this.data.exportValue:"Off");g.set("V",y);g.set("AS",y);g.set("M","D:".concat((0,l.getModificationDate)()));v=t.xref.encrypt;k=null;v&&(k=v.createCipherTransform(this.ref.num,this.ref.gen));_=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,C.writeDict)(g,_,k);_.push("\nendobj\n");return r.abrupt("return",[{ref:this.ref,data:_.join(""),xfa:m}]);case 24:case"end":return r.stop()}}),_callee8,this)}))),function _saveCheckbox(t,r,c){return o.apply(this,arguments)})},{key:"_saveRadioButton",value:(r=_asyncToGenerator(c.default.mark((function _callee9(t,r,o){var u,h,g,m,y,v,k,_,w,S,x,O;return c.default.wrap((function _callee9$(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:if((g=t.xref.fetchIfRef(this.ref))instanceof d.Dict){r.next=12;break}return r.abrupt("return",null);case 12:m={path:(0,l.stringToPDFString)(g.get("T")||""),value:h?this.data.buttonValue:""};y=d.Name.get(h?this.data.buttonValue:"Off");v=null;k=t.xref.encrypt;if(h)if(this.parent instanceof d.Ref){_=t.xref.fetch(this.parent);w=null;k&&(w=k.createCipherTransform(this.parent.num,this.parent.gen));_.set("V",y);v=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")];(0,C.writeDict)(_,v,w);v.push("\nendobj\n")}else this.parent instanceof d.Dict&&this.parent.set("V",y);g.set("AS",y);g.set("M","D:".concat((0,l.getModificationDate)()));S=null;k&&(S=k.createCipherTransform(this.ref.num,this.ref.gen));x=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,C.writeDict)(g,x,S);x.push("\nendobj\n");O=[{ref:this.ref,data:x.join(""),xfa:m}];null!==v&&O.push({ref:this.parent,data:v.join(""),xfa:null});return r.abrupt("return",O);case 27:case"end":return r.stop()}}),_callee9,this)}))),function _saveRadioButton(t,o,c){return r.apply(this,arguments)})},{key:"_getDefaultCheckedAppearance",value:function _getDefaultCheckedAppearance(t,r){var o,c,u=this.data.rect[2]-this.data.rect[0],h=this.data.rect[3]-this.data.rect[1],g=[0,0,u,h],m=.8*Math.min(u,h);if("check"===r){o={width:.755*m,height:.705*m};c="3"}else if("disc"===r){o={width:.791*m,height:.705*m};c="l"}else(0,l.unreachable)("_getDefaultCheckedAppearance - unsupported type: ".concat(r));var y=(u-o.width)/2,v=(h-o.height)/2,k="q BT /PdfJsZaDb ".concat(m," Tf 0 g ").concat(y," ").concat(v," Td (").concat(c,") Tj ET Q"),_=new d.Dict(t.xref);_.set("FormType",1);_.set("Subtype",d.Name.get("Form"));_.set("Type",d.Name.get("XObject"));_.set("BBox",g);_.set("Matrix",[1,0,0,1,0,0]);_.set("Length",k.length);var w=new d.Dict(t.xref),C=new d.Dict(t.xref);C.set("PdfJsZaDb",this.fallbackFontDict);w.set("Font",C);_.set("Resources",w);this.checkedAppearance=new S.StringStream(k);this.checkedAppearance.dict=_;this._streams.push(this.checkedAppearance)}},{key:"_processCheckBox",value:function _processCheckBox(t){var r=t.dict.get("AP");if(r instanceof d.Dict){var o=r.get("N");if(o instanceof d.Dict){var c=this._decodeFormValue(t.dict.get("AS"));"string"==typeof c&&(this.data.fieldValue=c);var l=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",u=o.getKeys();if(0===u.length)u.push("Off",l);else if(1===u.length)"Off"===u[0]?u.push(l):u.unshift("Off");else if(u.includes(l)){u.length=0;u.push("Off",l)}else{var h=u.find((function(t){return"Off"!==t}));u.length=0;u.push("Off",h)}u.includes(this.data.fieldValue)||(this.data.fieldValue="Off");this.data.exportValue=u[1];this.checkedAppearance=o.get(this.data.exportValue)||null;this.uncheckedAppearance=o.get("Off")||null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check");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(r instanceof d.Dict){this.parent=t.dict.getRaw("Parent");var o=r.get("V");o instanceof d.Name&&(this.data.fieldValue=this._decodeFormValue(o))}var c=t.dict.get("AP");if(c instanceof d.Dict){var l=c.get("N");if(l instanceof d.Dict){var u,h=_createForOfIteratorHelper(l.getKeys());try{for(h.s();!(u=h.n()).done;){var g=u.value;if("Off"!==g){this.data.buttonValue=this._decodeFormValue(g);break}}}catch(t){h.e(t)}finally{h.f()}this.checkedAppearance=l.get(this.data.buttonValue)||null;this.uncheckedAppearance=l.get("Off")||null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc");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");y.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl})}else(0,l.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,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,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,l.shadow)(this,"fallbackFontDict",t)}}]);return ButtonWidgetAnnotation}(R),N=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 c=(0,u.getInheritableProperty)({dict:t.dict,key:"Opt"});if(Array.isArray(c))for(var h=t.xref,d=0,g=c.length;d<g;d++){var m=h.fetchIfRef(c[d]),y=Array.isArray(m);o.data.options[d]={exportValue:o._decodeFormValue(y?h.fetchIfRef(m[0]):m),displayValue:o._decodeFormValue(y?h.fetchIfRef(m[1]):m)}}"string"==typeof o.data.fieldValue?o.data.fieldValue=[o.data.fieldValue]:o.data.fieldValue||(o.data.fieldValue=[]);o.data.combo=o.hasFieldFlag(l.AnnotationFieldFlag.COMBO);o.data.multiSelect=o.hasFieldFlag(l.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,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:t}}}]);return ChoiceWidgetAnnotation}(R),L=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}(R),U=function(t){_inherits(TextAnnotation,t);var r=_createSuper(TextAnnotation);function TextAnnotation(t){var o;_classCallCheck(this,TextAnnotation);o=r.call(this,t);var c=t.dict;o.data.annotationType=l.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=c.has("Name")?c.get("Name").name:"Note"}if(c.has("State")){o.data.state=c.get("State")||null;o.data.stateModel=c.get("StateModel")||null}else{o.data.state=null;o.data.stateModel=null}return o}return _createClass(TextAnnotation)}(M),H=function(t){_inherits(LinkAnnotation,t);var r=_createSuper(LinkAnnotation);function LinkAnnotation(t){var o;_classCallCheck(this,LinkAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.LINK;var c=getQuadPoints(t.dict,o.rectangle);c&&(o.data.quadPoints=c);y.Catalog.parseDestDictionary({destDict:t.dict,resultObj:o.data,docBaseUrl:t.pdfManager.docBaseUrl});return o}return _createClass(LinkAnnotation)}(T),$=function(t){_inherits(PopupAnnotation,t);var r=_createSuper(PopupAnnotation);function PopupAnnotation(t){var o;_classCallCheck(this,PopupAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.POPUP;var c=t.dict.get("Parent");if(!c){(0,l.warn)("Popup annotation has a missing or invalid parent annotation.");return _possibleConstructorReturn(o)}var u=c.get("Subtype");o.data.parentType=u instanceof d.Name?u.name:null;var h=t.dict.getRaw("Parent");o.data.parentId=h instanceof d.Ref?h.toString():null;var g=c.getArray("Rect");Array.isArray(g)&&4===g.length?o.data.parentRect=l.Util.normalizeRect(g):o.data.parentRect=[0,0,0,0];var m=c.get("RT");(0,d.isName)(m,l.AnnotationReplyType.GROUP)&&(c=c.get("IRT"));if(c.has("M")){o.setModificationDate(c.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;if(c.has("C")){o.setColor(c.getArray("C"));o.data.color=o.color}else o.data.color=null;if(!o.viewable){var y=c.get("F");o._isViewable(y)&&o.setFlags(y)}o.setTitle(c.get("T"));o.data.titleObj=o._title;o.setContents(c.get("Contents"));o.data.contentsObj=o._contents;c.has("RC")&&(o.data.richText=x.XFAFactory.getRichTextAsHtml(c.get("RC")));return o}return _createClass(PopupAnnotation)}(T),X=function(t){_inherits(FreeTextAnnotation,t);var r=_createSuper(FreeTextAnnotation);function FreeTextAnnotation(t){var o;_classCallCheck(this,FreeTextAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.FREETEXT;return o}return _createClass(FreeTextAnnotation)}(M),q=function(t){_inherits(LineAnnotation,t);var r=_createSuper(LineAnnotation);function LineAnnotation(t){var o;_classCallCheck(this,LineAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.LINE;var c=t.dict.getArray("L");o.data.lineCoordinates=l.Util.normalizeRect(c);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,g=t.dict.getArray("IC");g&&(d=(g=getRgbColor(g,null))?Array.from(g).map((function(t){return t/255})):null);var m=d?h:null,y=o.borderStyle.width||1,v=2*y,k=[o.data.lineCoordinates[0]-v,o.data.lineCoordinates[1]-v,o.data.lineCoordinates[2]+v,o.data.lineCoordinates[3]+v];l.Util.intersect(o.rectangle,k)||(o.rectangle=k);o._setDefaultAppearance({xref:t.xref,extra:"".concat(y," w"),strokeColor:u,fillColor:d,strokeAlpha:h,fillAlpha:m,pointsCallback:function pointsCallback(t,r){t.push("".concat(c[0]," ").concat(c[1]," m"),"".concat(c[2]," ").concat(c[3]," l"),"S");return[r[0].x-y,r[1].x+y,r[3].y-y,r[1].y+y]}})}return o}return _createClass(LineAnnotation)}(M),G=function(t){_inherits(SquareAnnotation,t);var r=_createSuper(SquareAnnotation);function SquareAnnotation(t){var o;_classCallCheck(this,SquareAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.SQUARE;if(!o.appearance){var c=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,null);h=d?Array.from(d).map((function(t){return t/255})):null}var g=h?u:null;if(0===o.borderStyle.width&&!h)return _possibleConstructorReturn(o);o._setDefaultAppearance({xref:t.xref,extra:"".concat(o.borderStyle.width," w"),strokeColor:c,fillColor:h,strokeAlpha:u,fillAlpha:g,pointsCallback:function pointsCallback(t,r){var c=r[2].x+o.borderStyle.width/2,l=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(c," ").concat(l," ").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 _createClass(SquareAnnotation)}(M),z=function(t){_inherits(CircleAnnotation,t);var r=_createSuper(CircleAnnotation);function CircleAnnotation(t){var o;_classCallCheck(this,CircleAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.CIRCLE;if(!o.appearance){var c=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,null);h=d?Array.from(d).map((function(t){return t/255})):null}var g=h?u:null;if(0===o.borderStyle.width&&!h)return _possibleConstructorReturn(o);var m=4/3*Math.tan(Math.PI/8);o._setDefaultAppearance({xref:t.xref,extra:"".concat(o.borderStyle.width," w"),strokeColor:c,fillColor:h,strokeAlpha:u,fillAlpha:g,pointsCallback:function pointsCallback(t,r){var c=r[0].x+o.borderStyle.width/2,l=r[0].y-o.borderStyle.width/2,u=r[3].x-o.borderStyle.width/2,d=r[3].y+o.borderStyle.width/2,g=c+(u-c)/2,y=l+(d-l)/2,v=(u-c)/2*m,k=(d-l)/2*m;t.push("".concat(g," ").concat(d," m"),"".concat(g+v," ").concat(d," ").concat(u," ").concat(y+k," ").concat(u," ").concat(y," c"),"".concat(u," ").concat(y-k," ").concat(g+v," ").concat(l," ").concat(g," ").concat(l," c"),"".concat(g-v," ").concat(l," ").concat(c," ").concat(y-k," ").concat(c," ").concat(y," c"),"".concat(c," ").concat(y+k," ").concat(g-v," ").concat(d," ").concat(g," ").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 _createClass(CircleAnnotation)}(M),W=function(t){_inherits(PolylineAnnotation,t);var r=_createSuper(PolylineAnnotation);function PolylineAnnotation(t){var o;_classCallCheck(this,PolylineAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.POLYLINE;o.data.vertices=[];var c=t.dict.getArray("Vertices");if(!Array.isArray(c))return _possibleConstructorReturn(o);for(var u=0,h=c.length;u<h;u+=2)o.data.vertices.push({x:c[u],y:c[u+1]});if(!o.appearance){var d,g=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],m=t.dict.get("CA"),y=o.borderStyle.width||1,v=2*y,k=[1/0,1/0,-1/0,-1/0],_=_createForOfIteratorHelper(o.data.vertices);try{for(_.s();!(d=_.n()).done;){var w=d.value;k[0]=Math.min(k[0],w.x-v);k[1]=Math.min(k[1],w.y-v);k[2]=Math.max(k[2],w.x+v);k[3]=Math.max(k[3],w.y+v)}}catch(t){_.e(t)}finally{_.f()}l.Util.intersect(o.rectangle,k)||(o.rectangle=k);o._setDefaultAppearance({xref:t.xref,extra:"".concat(y," w"),strokeColor:g,strokeAlpha:m,pointsCallback:function pointsCallback(t,r){for(var c=o.data.vertices,l=0,u=c.length;l<u;l++)t.push("".concat(c[l].x," ").concat(c[l].y," ").concat(0===l?"m":"l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return _createClass(PolylineAnnotation)}(M),V=function(t){_inherits(PolygonAnnotation,t);var r=_createSuper(PolygonAnnotation);function PolygonAnnotation(t){var o;_classCallCheck(this,PolygonAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.POLYGON;return o}return _createClass(PolygonAnnotation)}(W),K=function(t){_inherits(CaretAnnotation,t);var r=_createSuper(CaretAnnotation);function CaretAnnotation(t){var o;_classCallCheck(this,CaretAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.CARET;return o}return _createClass(CaretAnnotation)}(M),Y=function(t){_inherits(InkAnnotation,t);var r=_createSuper(InkAnnotation);function InkAnnotation(t){var o;_classCallCheck(this,InkAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.INK;o.data.inkLists=[];var c=t.dict.getArray("InkList");if(!Array.isArray(c))return _possibleConstructorReturn(o);for(var u=t.xref,h=0,d=c.length;h<d;++h){o.data.inkLists.push([]);for(var g=0,m=c[h].length;g<m;g+=2)o.data.inkLists[h].push({x:u.fetchIfRef(c[h][g]),y:u.fetchIfRef(c[h][g+1])})}if(!o.appearance){var y,v=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],k=t.dict.get("CA"),_=o.borderStyle.width||1,w=2*_,S=[1/0,1/0,-1/0,-1/0],C=_createForOfIteratorHelper(o.data.inkLists);try{for(C.s();!(y=C.n()).done;){var x,O=_createForOfIteratorHelper(y.value);try{for(O.s();!(x=O.n()).done;){var T=x.value;S[0]=Math.min(S[0],T.x-w);S[1]=Math.min(S[1],T.y-w);S[2]=Math.max(S[2],T.x+w);S[3]=Math.max(S[3],T.y+w)}}catch(t){O.e(t)}finally{O.f()}}}catch(t){C.e(t)}finally{C.f()}l.Util.intersect(o.rectangle,S)||(o.rectangle=S);o._setDefaultAppearance({xref:t.xref,extra:"".concat(_," w"),strokeColor:v,strokeAlpha:k,pointsCallback:function pointsCallback(t,r){var c,l=_createForOfIteratorHelper(o.data.inkLists);try{for(l.s();!(c=l.n()).done;){for(var u=c.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){l.e(t)}finally{l.f()}return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return _createClass(InkAnnotation)}(M),J=function(t){_inherits(HighlightAnnotation,t);var r=_createSuper(HighlightAnnotation);function HighlightAnnotation(t){var o;_classCallCheck(this,HighlightAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.HIGHLIGHT;if(o.data.quadPoints=getQuadPoints(t.dict,null)){var c=o.appearance&&o.appearance.dict.get("Resources");if(!o.appearance||!c||!c.has("ExtGState")){o.appearance&&(0,l.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 _createClass(HighlightAnnotation)}(M),Z=function(t){_inherits(UnderlineAnnotation,t);var r=_createSuper(UnderlineAnnotation);function UnderlineAnnotation(t){var o;_classCallCheck(this,UnderlineAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.UNDERLINE;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var c=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:c,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 _createClass(UnderlineAnnotation)}(M),Q=function(t){_inherits(SquigglyAnnotation,t);var r=_createSuper(SquigglyAnnotation);function SquigglyAnnotation(t){var o;_classCallCheck(this,SquigglyAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.SQUIGGLY;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var c=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:c,strokeAlpha:u,pointsCallback:function pointsCallback(t,r){var o=(r[0].y-r[2].y)/6,c=o,l=r[2].x,u=r[2].y,h=r[3].x;t.push("".concat(l," ").concat(u+c," m"));do{l+=2;c=0===c?o:0;t.push("".concat(l," ").concat(u+c," l"))}while(l<h);t.push("S");return[r[2].x,h,u-2*o,u+2*o]}})}}else o.data.hasPopup=!1;return o}return _createClass(SquigglyAnnotation)}(M),ee=function(t){_inherits(StrikeOutAnnotation,t);var r=_createSuper(StrikeOutAnnotation);function StrikeOutAnnotation(t){var o;_classCallCheck(this,StrikeOutAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.STRIKEOUT;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var c=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:c,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 _createClass(StrikeOutAnnotation)}(M),te=function(t){_inherits(StampAnnotation,t);var r=_createSuper(StampAnnotation);function StampAnnotation(t){var o;_classCallCheck(this,StampAnnotation);(o=r.call(this,t)).data.annotationType=l.AnnotationType.STAMP;return o}return _createClass(StampAnnotation)}(M),re=function(t){_inherits(FileAttachmentAnnotation,t);var r=_createSuper(FileAttachmentAnnotation);function FileAttachmentAnnotation(t){var o;_classCallCheck(this,FileAttachmentAnnotation);o=r.call(this,t);var c=new k.FileSpec(t.dict.get("FS"),t.xref);o.data.annotationType=l.AnnotationType.FILEATTACHMENT;o.data.file=c.serializable;return o}return _createClass(FileAttachmentAnnotation)}(M)},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.createDefaultAppearance=function createDefaultAppearance(t){var r,o=t.fontSize,c=t.fontName,l=t.fontColor;r=l.every((function(t){return 0===t}))?"0 g":Array.from(l).map((function(t){return(t/255).toFixed(2)})).join(" ")+" rg";return"/".concat((0,u.escapePDFName)(c)," ").concat(o," Tf ").concat(r)};r.parseDefaultAppearance=function parseDefaultAppearance(t){return new m(t).parse()};var c=o(4),l=o(166),u=o(150),h=o(167),d=o(147),g=o(152);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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var m=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});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 g.StringStream(t))}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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 c.OPS.setFont:var h=_slicedToArray(u,2),g=h[0],m=h[1];g instanceof d.Name&&(r.fontName=g.name);"number"==typeof m&&m>0&&(r.fontSize=m);break;case c.OPS.setFillRGBColor:l.ColorSpace.singletons.rgb.getRgbItem(u,0,r.fontColor,0);break;case c.OPS.setFillGray:l.ColorSpace.singletons.gray.getRgbItem(u,0,r.fontColor,0);break;case c.OPS.setFillColorSpace:l.ColorSpace.singletons.cmyk.getRgbItem(u,0,r.fontColor,0)}}}}catch(t){(0,c.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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.ColorSpace=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(147),h=o(151),d=o(150);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var g=function(){function ColorSpace(t,r){_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&(0,l.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,c){(0,l.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,u,h,d){(0,l.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function getOutputLength(t,r){(0,l.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,c,l,u,h,d,g){var m=r*o,y=null,v=1<<h,k=o!==l||r!==c;if(this.isPassthrough(h))y=d;else if(1===this.numComps&&m>v&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var _=h<=8?new Uint8Array(v):new Uint16Array(v),w=0;w<v;w++)_[w]=w;var S=new Uint8ClampedArray(3*v);this.getRgbBuffer(_,0,v,S,0,h,0);if(k){y=new Uint8Array(3*m);for(var C=0,x=0;x<m;++x){var O=3*d[x];y[C++]=S[O];y[C++]=S[O+1];y[C++]=S[O+2]}}else for(var T=0,E=0;E<m;++E){var M=3*d[E];t[T++]=S[M];t[T++]=S[M+1];t[T++]=S[M+2];T+=g}}else if(k){y=new Uint8ClampedArray(3*m);this.getRgbBuffer(d,0,m,y,0,h,0)}else this.getRgbBuffer(d,0,c*u,t,0,h,g);if(y)if(k)!function resizeRgbImage(t,r,o,c,l,u,h){h=1!==h?0:h;for(var d,g=o/l,m=c/u,y=0,v=new Uint16Array(l),k=3*o,_=0;_<l;_++)v[_]=3*Math.floor(_*g);for(var w=0;w<u;w++)for(var S=Math.floor(w*m)*k,C=0;C<l;C++){d=S+v[C];r[y++]=t[d++];r[y++]=t[d++];r[y++]=t[d++];y+=h}}(y,t,r,o,c,l,g);else for(var R=0,j=0,D=0,N=c*u;D<N;D++){t[R++]=y[j++];t[R++]=y[j++];t[R++]=y[j++];R+=g}}},{key:"usesZeroToOneRange",get:function get(){return(0,l.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function _cache(t,r,o,c){if(!o)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!c)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var l,h;if(t instanceof u.Ref){h=t;t=r.fetch(t)}t instanceof u.Name&&(l=t.name);(l||h)&&o.set(l,h,c)}},{key:"getCached",value:function getCached(t,r,o){if(!o)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(t instanceof u.Ref){var c=o.getByRef(t);if(c)return c;try{t=r.fetch(t)}catch(t){if(t instanceof d.MissingDataException)throw t}}if(t instanceof u.Name){var l=o.getByName(t.name);if(l)return l}return null}},{key:"parseAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(c.default.mark((function _callee(t){var r,o,l,u,h,d,g;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:r=t.cs,o=t.xref,l=t.resources,u=void 0===l?null:l,h=t.pdfFunctionFactory,d=t.localColorSpaceCache;g=this._parse(r,o,u,h);this._cache(r,o,d,g);return c.abrupt("return",g);case 4:case"end":return c.stop()}}),_callee,this)}))),function parseAsync(r){return t.apply(this,arguments)})},{key:"parse",value:function parse(t){var r=t.cs,o=t.xref,c=t.resources,l=void 0===c?null:c,u=t.pdfFunctionFactory,h=t.localColorSpaceCache,d=this.getCached(r,o,h);if(d)return d;var g=this._parse(r,o,l,u);this._cache(r,o,h,g);return g}},{key:"_parse",value:function _parse(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3?arguments[3]:void 0;if((t=r.fetchIfRef(t))instanceof u.Name)switch(t.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new y(null);default:if(o instanceof u.Dict){var h=o.get("ColorSpace");if(h instanceof u.Dict){var d=h.get(t.name);if(d){if(d instanceof u.Name)return this._parse(d,r,o,c);t=d;break}}}throw new l.FormatError("Unrecognized ColorSpace: ".concat(t.name))}if(Array.isArray(t)){var g,k,_,w,O,T,E=r.fetchIfRef(t[0]).name;switch(E){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":w=(g=r.fetchIfRef(t[1])).getArray("WhitePoint");O=g.getArray("BlackPoint");T=g.get("Gamma");return new S(w,O,T);case"CalRGB":w=(g=r.fetchIfRef(t[1])).getArray("WhitePoint");O=g.getArray("BlackPoint");T=g.getArray("Gamma");var M=g.getArray("Matrix");return new C(w,O,T,M);case"ICCBased":var R=r.fetchIfRef(t[1]),j=R.dict;k=j.get("N");var D=j.get("Alternate");if(D){var N=this._parse(D,r,o,c);if(N.numComps===k)return N;(0,l.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===k)return this.singletons.gray;if(3===k)return this.singletons.rgb;if(4===k)return this.singletons.cmyk;break;case"Pattern":(_=t[1]||null)&&(_=this._parse(_,r,o,c));return new y(_);case"I":case"Indexed":_=this._parse(t[1],r,o,c);var L=r.fetchIfRef(t[2])+1,U=r.fetchIfRef(t[3]);return new v(_,L,U);case"Separation":case"DeviceN":var H=r.fetchIfRef(t[1]);k=Array.isArray(H)?H.length:1;_=this._parse(t[2],r,o,c);var $=c.create(t[3]);return new m(k,_,$);case"Lab":w=(g=r.fetchIfRef(t[1])).getArray("WhitePoint");O=g.getArray("BlackPoint");var X=g.getArray("Range");return new x(w,O,X);default:throw new l.FormatError("Unimplemented ColorSpace object: ".concat(E))}}throw new l.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,l.warn)("The decode map is not the correct length");return!0}for(var o=0,c=t.length;o<c;o+=2)if(0!==t[o]||1!==t[o+1])return!1;return!0}},{key:"singletons",get:function get(){return(0,l.shadow)(this,"singletons",{get gray(){return(0,l.shadow)(this,"gray",new k)},get rgb(){return(0,l.shadow)(this,"rgb",new _)},get cmyk(){return(0,l.shadow)(this,"cmyk",new w)}})}}]);var t;return ColorSpace}();r.ColorSpace=g;var m=function(t){_inherits(AlternateCS,t);var r=_createSuper(AlternateCS);function AlternateCS(t,o,c){var l;_classCallCheck(this,AlternateCS);(l=r.call(this,"Alternate",t)).base=o;l.tintFn=c;l.tmpBuf=new Float32Array(o.numComps);return l}_createClass(AlternateCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){var l=this.tmpBuf;this.tintFn(t,r,l,0);this.base.getRgbItem(l,0,o,c)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){var d,g,m=this.tintFn,y=this.base,v=1/((1<<u)-1),k=y.numComps,_=y.usesZeroToOneRange,w=(y.isPassthrough(8)||!_)&&0===h,S=w?l:0,C=w?c:new Uint8ClampedArray(k*o),x=this.numComps,O=new Float32Array(x),T=new Float32Array(k);for(d=0;d<o;d++){for(g=0;g<x;g++)O[g]=t[r++]*v;m(O,0,T,0);if(_)for(g=0;g<k;g++)C[S++]=255*T[g];else{y.getRgbItem(T,0,C,S);S+=k}}w||y.getRgbBuffer(C,0,o,c,l,8,h)}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps/this.numComps,r)}}]);return AlternateCS}(g),y=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,l.unreachable)("Should not call PatternCS.isDefaultDecode")}}]);return PatternCS}(g),v=function(t){_inherits(IndexedCS,t);var r=_createSuper(IndexedCS);function IndexedCS(t,o,c){var u;_classCallCheck(this,IndexedCS);(u=r.call(this,"Indexed",1)).base=t;u.highVal=o;var d=t.numComps*o;u.lookup=new Uint8Array(d);if(c instanceof h.BaseStream){var g=c.getBytes(d);u.lookup.set(g)}else{if("string"!=typeof c)throw new l.FormatError("IndexedCS - unrecognized lookup table: ".concat(c));for(var m=0;m<d;++m)u.lookup[m]=255&c.charCodeAt(m)}return u}_createClass(IndexedCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,c){var l=this.base.numComps,u=t[r]*l;this.base.getRgbBuffer(this.lookup,u,1,o,c,8,0)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=this.base,g=d.numComps,m=d.getOutputLength(g,h),y=this.lookup,v=0;v<o;++v){var k=t[r++]*g;d.getRgbBuffer(y,k,1,c,l,8,h);l+=m}}},{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,l.warn)("Decode map length is not correct");return!0}if(!Number.isInteger(r)||r<1){(0,l.warn)("Bits per component is not correct");return!0}return 0===t[0]&&t[1]===(1<<r)-1}}]);return IndexedCS}(g),k=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,c){var l=255*t[r];o[c]=o[c+1]=o[c+2]=l}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=255/((1<<u)-1),g=r,m=l,y=0;y<o;++y){var v=d*t[g++];c[m++]=v;c[m++]=v;c[m++]=v;m+=h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return DeviceGrayCS}(g),_=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,c){o[c]=255*t[r];o[c+1]=255*t[r+1];o[c+2]=255*t[r+2]}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){if(8!==u||0!==h)for(var d=255/((1<<u)-1),g=r,m=l,y=0;y<o;++y){c[m++]=d*t[g++];c[m++]=d*t[g++];c[m++]=d*t[g++];m+=h}else c.set(t.subarray(r,r+3*o),l)}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isPassthrough",value:function isPassthrough(t){return 8===t}}]);return DeviceRgbCS}(g),w=function DeviceCmykCSClosure(){function convertToRgb(t,r,o,c,l){var u=t[r]*o,h=t[r+1]*o,d=t[r+2]*o,g=t[r+3]*o;c[l]=255+u*(-4.387332384609988*u+54.48615194189176*h+18.82290502165302*d+212.25662451639585*g-285.2331026137004)+h*(1.7149763477362134*h-5.6096736904047315*d+-17.873870861415444*g-5.497006427196366)+d*(-2.5217340131683033*d-21.248923337353073*g+17.5119270841813)+g*(-21.86122147463605*g-189.48180835922747);c[l+1]=255+u*(8.841041422036149*u+60.118027045597366*h+6.871425592049007*d+31.159100130055922*g-79.2970844816548)+h*(-15.310361306967817*h+17.575251261109482*d+131.35250912493976*g-190.9453302588951)+d*(4.444339102852739*d+9.8632861493405*g-24.86741582555878)+g*(-20.737325471181034*g-187.80453709719578);c[l+2]=255+u*(.8842522430003296*u+8.078677503112928*h+30.89978309703729*d-.23883238689178934*g-14.183576799673286)+h*(10.49593273432072*h+63.02378494754052*d+50.606957656360734*g-112.23884253719248)+d*(.03296041114873217*d+115.60384449646641*g-193.58209356861505)+g*(-22.33816807309886*g-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,c){convertToRgb(t,r,1,o,c)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=1/((1<<u)-1),g=0;g<o;g++){convertToRgb(t,r,d,c,l);r+=4;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t/4*(3+r)|0}}]);return DeviceCmykCS}(g)}(),S=function CalGrayCSClosure(){function convertToRgb(t,r,o,c,l,u){var h=r[o]*u,d=Math.pow(h,t.G),g=t.YW*d,m=Math.max(295.8*Math.pow(g,.3333333333333333)-40.8,0);c[l]=m;c[l+1]=m;c[l+2]=m}return function(t){_inherits(CalGrayCS,t);var r=_createSuper(CalGrayCS);function CalGrayCS(t,o,c){var u;_classCallCheck(this,CalGrayCS);u=r.call(this,"CalGray",1);if(!t)throw new l.FormatError("WhitePoint missing - required for color space CalGray");o=o||[0,0,0];c=c||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=c;if(u.XW<0||u.ZW<0||1!==u.YW)throw new l.FormatError("Invalid WhitePoint components for ".concat(u.name)+", no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,l.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,l.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,l.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,c){convertToRgb(this,t,r,o,c,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=1/((1<<u)-1),g=0;g<o;++g){convertToRgb(this,t,r,c,l,d);r+=1;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return CalGrayCS}(g)}(),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]),c=new Float32Array([1,1,1]),u=new Float32Array(3),h=new Float32Array(3),d=new Float32Array(3),m=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*m}function convertToRgb(l,g,m,y,v,k){var _=adjustToRange(0,1,g[m]*k),w=adjustToRange(0,1,g[m+1]*k),S=adjustToRange(0,1,g[m+2]*k),C=1===_?1:Math.pow(_,l.GR),x=1===w?1:Math.pow(w,l.GG),O=1===S?1:Math.pow(S,l.GB),T=l.MXA*C+l.MXB*x+l.MXC*O,E=l.MYA*C+l.MYB*x+l.MYC*O,M=l.MZA*C+l.MZB*x+l.MZC*O,R=h;R[0]=T;R[1]=E;R[2]=M;var j=d;!function normalizeWhitePointToFlat(o,c,l){if(1!==o[0]||1!==o[2]){var h=l;matrixProduct(t,c,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,l)}else{l[0]=c[0];l[1]=c[1];l[2]=c[2]}}(l.whitePoint,R,j);var D=h;!function compensateBlackPoint(t,r,o){if(0!==t[0]||0!==t[1]||0!==t[2]){var c=decodeL(0),l=(1-c)/(1-decodeL(t[0])),u=1-l,h=(1-c)/(1-decodeL(t[1])),d=1-h,g=(1-c)/(1-decodeL(t[2])),m=1-g;o[0]=r[0]*l+u;o[1]=r[1]*h+d;o[2]=r[2]*g+m}else{o[0]=r[0];o[1]=r[1];o[2]=r[2]}}(l.blackPoint,j,D);var N=d;!function normalizeWhitePointToD65(o,c,l){var h=l;matrixProduct(t,c,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,l)}(c,D,N);var L=h;matrixProduct(o,N,L);y[v]=255*sRGBTransferFunction(L[0]);y[v+1]=255*sRGBTransferFunction(L[1]);y[v+2]=255*sRGBTransferFunction(L[2])}return function(t){_inherits(CalRGBCS,t);var r=_createSuper(CalRGBCS);function CalRGBCS(t,o,c,u){var h;_classCallCheck(this,CalRGBCS);h=r.call(this,"CalRGB",3);if(!t)throw new l.FormatError("WhitePoint missing - required for color space CalRGB");o=o||new Float32Array(3);c=c||new Float32Array([1,1,1]);u=u||new Float32Array([1,0,0,0,1,0,0,0,1]);var d=t[0],g=t[1],m=t[2];h.whitePoint=t;var y=o[0],v=o[1],k=o[2];h.blackPoint=o;h.GR=c[0];h.GG=c[1];h.GB=c[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||m<0||1!==g)throw new l.FormatError("Invalid WhitePoint components for ".concat(h.name)+", no fallback available");if(y<0||v<0||k<0){(0,l.info)("Invalid BlackPoint for ".concat(h.name," [").concat(y,", ").concat(v,", ").concat(k,"], ")+"falling back to default.");h.blackPoint=new Float32Array(3)}if(h.GR<0||h.GG<0||h.GB<0){(0,l.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,c){convertToRgb(this,t,r,o,c,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=1/((1<<u)-1),g=0;g<o;++g){convertToRgb(this,t,r,c,l,d);r+=3;l+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}}]);return CalRGBCS}(g)}(),x=function LabCSClosure(){function fn_g(t){return t>=6/29?Math.pow(t,3):108/841*(t-4/29)}function decode(t,r,o,c){return o+t*(c-o)/r}function convertToRgb(t,r,o,c,l,u){var h=r[o],d=r[o+1],g=r[o+2];if(!1!==c){h=decode(h,c,0,100);d=decode(d,c,t.amin,t.amax);g=decode(g,c,t.bmin,t.bmax)}d>t.amax?d=t.amax:d<t.amin&&(d=t.amin);g>t.bmax?g=t.bmax:g<t.bmin&&(g=t.bmin);var m,y,v,k=(h+16)/116,_=k+d/500,w=k-g/200,S=t.XW*fn_g(_),C=t.YW*fn_g(k),x=t.ZW*fn_g(w);if(t.ZW<1){m=3.1339*S+-1.617*C+-.4906*x;y=-.9785*S+1.916*C+.0333*x;v=.072*S+-.229*C+1.4057*x}else{m=3.2406*S+-1.5372*C+-.4986*x;y=-.9689*S+1.8758*C+.0415*x;v=.0557*S+-.204*C+1.057*x}l[u]=255*Math.sqrt(m);l[u+1]=255*Math.sqrt(y);l[u+2]=255*Math.sqrt(v)}return function(t){_inherits(LabCS,t);var r=_createSuper(LabCS);function LabCS(t,o,c){var u;_classCallCheck(this,LabCS);u=r.call(this,"Lab",3);if(!t)throw new l.FormatError("WhitePoint missing - required for color space Lab");o=o||[0,0,0];c=c||[-100,100,-100,100];u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.amin=c[0];u.amax=c[1];u.bmin=c[2];u.bmax=c[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 l.FormatError("Invalid WhitePoint components, no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,l.info)("Invalid BlackPoint, falling back to default");u.XB=u.YB=u.ZB=0}if(u.amin>u.amax||u.bmin>u.bmax){(0,l.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,c){convertToRgb(this,t,r,!1,o,c)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,c,l,u,h){for(var d=(1<<u)-1,g=0;g<o;g++){convertToRgb(this,t,r,d,c,l);r+=3;l+=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,l.shadow)(this,"usesZeroToOneRange",!1)}}]);return LabCS}(g)}()},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PartialEvaluator=r.EvaluatorPreprocessor=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(168),h=o(147),d=o(186),g=o(160),m=o(161),y=o(189),v=o(163),k=o(198),_=o(154),w=o(190),S=o(199),C=o(169),x=o(201),O=o(152),T=o(151),E=o(202),M=o(166),R=o(171),j=o(162),D=o(150),N=o(193),L=o(203),U=o(204),H=o(205);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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var $=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),X=1,q=2,G=Promise.resolve();function normalizeBlendMode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)){for(var o=0,c=t.length;o<c;o++){var u=normalizeBlendMode(t[o],!0);if(u)return u}(0,l.warn)("Unsupported blend mode Array: ".concat(t));return"source-over"}if(!(t instanceof h.Name))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,l.warn)("Unsupported blend mode: ".concat(t.name));return"source-over"}var z=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,l.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function get(){return(0,l.shadow)(this,"CHECK_TIME_EVERY",100)}}]);return TimeSlotManager}(),W=function(){function PartialEvaluator(t){var r=t.xref,o=t.handler,c=t.pageIndex,l=t.idFactory,u=t.fontCache,h=t.builtInCMapCache,d=t.standardFontDataCache,g=t.globalImageCache,m=t.options,y=void 0===m?null:m;_classCallCheck(this,PartialEvaluator);this.xref=r;this.handler=o;this.pageIndex=c;this.idFactory=l;this.fontCache=u;this.builtInCMapCache=h;this.standardFontDataCache=d;this.globalImageCache=g;this.options=y||$;this.parsingType3Font=!1;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}_createClass(PartialEvaluator,[{key:"_pdfFunctionFactory",get:function get(){var t=new S.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,l.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 c=[t],u=this.xref;c.length;){var d=c.shift(),g=d.get("ExtGState");if(g instanceof h.Dict){var m,y=_createForOfIteratorHelper(g.getRawValues());try{for(y.s();!(m=y.n()).done;){var v=m.value;if(v instanceof h.Ref){if(o.has(v))continue;try{v=u.fetch(v)}catch(t){o.put(v);(0,l.info)('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(v instanceof h.Dict){v.objId&&o.put(v.objId);var k=v.get("BM");if(k instanceof h.Name){if("Normal"!==k.name)return!0}else if(void 0!==k&&Array.isArray(k)){var _,w=_createForOfIteratorHelper(k);try{for(w.s();!(_=w.n()).done;){var S=_.value;if(S instanceof h.Name&&"Normal"!==S.name)return!0}}catch(t){w.e(t)}finally{w.f()}}}}}catch(t){y.e(t)}finally{y.f()}}var C=d.get("XObject");if(C instanceof h.Dict){var x,O=_createForOfIteratorHelper(C.getRawValues());try{for(O.s();!(x=O.n()).done;){var E=x.value;if(E instanceof h.Ref){if(o.has(E))continue;try{E=u.fetch(E)}catch(t){o.put(E);(0,l.info)('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if(E instanceof T.BaseStream){E.dict.objId&&o.put(E.dict.objId);var M=E.dict.get("Resources");if(M instanceof h.Dict&&(!M.objId||!o.has(M.objId))){c.push(M);M.objId&&o.put(M.objId)}}}}catch(t){O.e(t)}finally{O.f()}}}o.forEach((function(t){r.put(t)}));return!1}},{key:"fetchBuiltInCMap",value:(ee=_asyncToGenerator(c.default.mark((function _callee(t){var r,o,u,h;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:if(!(r=this.builtInCMapCache.get(t))){c.next=3;break}return c.abrupt("return",r);case 3:if(null===this.options.cMapUrl){c.next=19;break}u="".concat(this.options.cMapUrl).concat(t,".bcmap");c.next=7;return fetch(u);case 7:if((h=c.sent).ok){c.next=10;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(u,'" with "').concat(h.statusText,'".'));case 10:c.t0=Uint8Array;c.next=13;return h.arrayBuffer();case 13:c.t1=c.sent;c.t2=new c.t0(c.t1);c.t3=l.CMapCompressionType.BINARY;o={cMapData:c.t2,compressionType:c.t3};c.next=22;break;case 19:c.next=21;return this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 21:o=c.sent;case 22:o.compressionType!==l.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,o);return c.abrupt("return",o);case 24:case"end":return c.stop()}}),_callee,this)}))),function fetchBuiltInCMap(t){return ee.apply(this,arguments)})},{key:"fetchStandardFontData",value:(Q=_asyncToGenerator(c.default.mark((function _callee2(t){var r,o,u,h,d,g;return c.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:if(!(r=this.standardFontDataCache.get(t))){c.next=3;break}return c.abrupt("return",new O.Stream(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){c.next=5;break}return c.abrupt("return",null);case 5:o=(0,y.getFontNameToFileMap)(),u=o[t];if(null===this.options.standardFontDataUrl){c.next=20;break}d="".concat(this.options.standardFontDataUrl).concat(u);c.next=10;return fetch(d);case 10:if((g=c.sent).ok){c.next=15;break}(0,l.warn)('fetchStandardFontData: failed to fetch file "'.concat(d,'" with "').concat(g.statusText,'".'));c.next=18;break;case 15:c.next=17;return g.arrayBuffer();case 17:h=c.sent;case 18:c.next=29;break;case 20:c.prev=20;c.next=23;return this.handler.sendWithPromise("FetchStandardFontData",{filename:u});case 23:h=c.sent;c.next=29;break;case 26:c.prev=26;c.t0=c.catch(20);(0,l.warn)('fetchStandardFontData: failed to fetch file "'.concat(u,'" with "').concat(c.t0,'".'));case 29:if(h){c.next=31;break}return c.abrupt("return",null);case 31:this.standardFontDataCache.set(t,h);return c.abrupt("return",new O.Stream(h));case 33:case"end":return c.stop()}}),_callee2,this,[[20,26]])}))),function fetchStandardFontData(t){return Q.apply(this,arguments)})},{key:"buildFormXObject",value:(W=_asyncToGenerator(c.default.mark((function _callee3(t,r,o,u,d,g,m){var y,v,k,_,w,S,C,x,O,T,E;return c.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:y=r.dict;v=y.getArray("Matrix");k=y.getArray("BBox");k=Array.isArray(k)&&4===k.length?l.Util.normalizeRect(k):null;if(!y.has("OC")){c.next=8;break}c.next=7;return this.parseMarkedContentProps(y.get("OC"),t);case 7:_=c.sent;case 8:void 0!==_&&u.addOp(l.OPS.beginMarkedContentProps,["OC",_]);if(!(S=y.get("Group"))){c.next=29;break}w={matrix:v,bbox:k,smask:o,isolated:!1,knockout:!1};C=S.get("S");x=null;if(!(0,h.isName)(C,"Transparency")){c.next=27;break}w.isolated=S.get("I")||!1;w.knockout=S.get("K")||!1;if(!S.has("CS")){c.next=27;break}O=S.getRaw("CS");if(!(T=M.ColorSpace.getCached(O,this.xref,m))){c.next=24;break}x=T;c.next=27;break;case 24:c.next=26;return this.parseColorSpace({cs:O,resources:t,localColorSpaceCache:m});case 26:x=c.sent;case 27:if(o&&o.backdrop){x=x||M.ColorSpace.singletons.rgb;o.backdrop=x.getRgb(o.backdrop,0)}u.addOp(l.OPS.beginGroup,[w]);case 29:E=S?[v,null]:[v,k];u.addOp(l.OPS.paintFormXObjectBegin,E);return c.abrupt("return",this.getOperatorList({stream:r,task:d,resources:y.get("Resources")||t,operatorList:u,initialState:g}).then((function(){u.addOp(l.OPS.paintFormXObjectEnd,[]);S&&u.addOp(l.OPS.endGroup,[w]);void 0!==_&&u.addOp(l.OPS.endMarkedContent,[])})));case 32:case"end":return c.stop()}}),_callee3,this)}))),function buildFormXObject(t,r,o,c,l,u,h){return W.apply(this,arguments)})},{key:"_sendImgData",value:function _sendImgData(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=r?[r.data.buffer]:null;return this.parsingType3Font||o?this.handler.send("commonobj",[t,"Image",r],c):this.handler.send("obj",[t,this.pageIndex,"Image",r],c)}},{key:"buildPaintImageXObject",value:(D=_asyncToGenerator(c.default.mark((function _callee4(t){var r,o,u,h,d,g,m,y,v,k,_,w,S,C,x,O,T,E,M,j,D,N,L,U,$,X,q=this;return c.default.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:r=t.resources,o=t.image,u=t.isInline,h=void 0!==u&&u,d=t.operatorList,g=t.cacheKey,m=t.localImageCache,y=t.localColorSpaceCache;v=o.dict;k=v.objId;_=v.get("W","Width");w=v.get("H","Height");if(_&&"number"==typeof _&&w&&"number"==typeof w){c.next=8;break}(0,l.warn)("Image dimensions are missing, or not numbers.");return c.abrupt("return");case 8:if(!(-1!==(S=this.options.maxImageSize)&&_*w>S)){c.next=12;break}(0,l.warn)("Image exceeded maximum allowed size and was removed.");return c.abrupt("return");case 12:if(!v.has("OC")){c.next=16;break}c.next=15;return this.parseMarkedContentProps(v.get("OC"),r);case 15:C=c.sent;case 16:void 0!==C&&d.addOp(l.OPS.beginMarkedContentProps,["OC",C]);x=v.get("IM","ImageMask")||!1;O=v.get("I","Interpolate");if(!x){c.next=30;break}M=_+7>>3;j=o.getBytes(M*w,!0);D=v.getArray("D","Decode");(T=H.PDFImage.createMask({imgArray:j,width:_,height:w,imageIsFromDecodeStream:o instanceof R.DecodeStream,inverseDecode:!!D&&D[0]>0,interpolate:O})).cached=!!g;E=[T];d.addOp(l.OPS.paintImageMaskXObject,E);g&&m.set(g,k,{fn:l.OPS.paintImageMaskXObject,args:E});void 0!==C&&d.addOp(l.OPS.endMarkedContent,[]);return c.abrupt("return");case 30:N=v.get("SM","SMask")||!1;L=v.get("Mask")||!1;if(!h||N||L||!(_+w<200)){c.next=39;break}U=new H.PDFImage({xref:this.xref,res:r,image:o,isInline:h,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:y});T=U.createImageData(!0);d.addOp(l.OPS.paintInlineImageXObject,[T]);void 0!==C&&d.addOp(l.OPS.endMarkedContent,[]);return c.abrupt("return");case 39:$="img_".concat(this.idFactory.createObjId()),X=!1;this.parsingType3Font?$="".concat(this.idFactory.getDocId(),"_type3_").concat($):k&&(X=this.globalImageCache.shouldCache(k,this.pageIndex))&&($="".concat(this.idFactory.getDocId(),"_").concat($));d.addDependency($);E=[$,_,w];H.PDFImage.buildImage({xref:this.xref,res:r,image:o,isInline:h,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:y}).then((function(t){T=t.createImageData(!1);g&&k&&X&&q.globalImageCache.addByteSize(k,T.data.length);return q._sendImgData($,T,X)})).catch((function(t){(0,l.warn)('Unable to decode image "'.concat($,'": "').concat(t,'".'));return q._sendImgData($,null,X)}));d.addOp(l.OPS.paintImageXObject,E);if(g){m.set(g,k,{fn:l.OPS.paintImageXObject,args:E});if(k){(0,l.assert)(!h,"Cannot cache an inline image globally.");this.globalImageCache.addPageIndex(k,this.pageIndex);X&&this.globalImageCache.setData(k,{objId:$,fn:l.OPS.paintImageXObject,args:E,byteSize:0})}}void 0!==C&&d.addOp(l.OPS.endMarkedContent,[]);case 47:case"end":return c.stop()}}),_callee4,this)}))),function buildPaintImageXObject(t){return D.apply(this,arguments)})},{key:"handleSMask",value:function handleSMask(t,r,o,c,l,u){var h=t.get("G"),d={subtype:t.get("S").name,backdrop:t.get("BC")},g=t.get("TR");if((0,S.isPDFFunction)(g)){for(var m=this._pdfFunctionFactory.create(g),y=new Uint8Array(256),v=new Float32Array(1),k=0;k<256;k++){v[0]=k/255;m(v,0,v,0);y[k]=255*v[0]|0}d.transferMap=y}return this.buildFormXObject(r,h,d,o,c,l.state.clone(),u)}},{key:"handleTransferFunction",value:function handleTransferFunction(t){var r;if(Array.isArray(t))r=t;else{if(!(0,S.isPDFFunction)(t))return null;r=[t]}var o,c=[],l=0,u=0,d=_createForOfIteratorHelper(r);try{for(d.s();!(o=d.n()).done;){var g=o.value,m=this.xref.fetchIfRef(g);l++;if((0,h.isName)(m,"Identity"))c.push(null);else{if(!(0,S.isPDFFunction)(m))return null;for(var y=this._pdfFunctionFactory.create(m),v=new Uint8Array(256),k=new Float32Array(1),_=0;_<256;_++){k[0]=_/255;y(k,0,k,0);v[_]=255*k[0]|0}c.push(v);u++}}}catch(t){d.e(t)}finally{d.f()}return 1!==l&&4!==l||0===u?null:c}},{key:"handleTilingType",value:function handleTilingType(t,r,o,c,u,d,g,m){var y=this,v=new U.OperatorList,_=h.Dict.merge({xref:this.xref,dictArray:[u.get("Resources"),o]});return this.getOperatorList({stream:c,task:g,resources:_,operatorList:v}).then((function(){var o=v.getIR(),c=(0,k.getTilingPatternIR)(o,u,r);d.addDependencies(v.dependencies);d.addOp(t,c);u.objId&&m.set(null,u.objId,{operatorListIR:o,dict:u})})).catch((function(t){if(!(t instanceof l.AbortException)){if(!y.options.ignoreErrors)throw t;y.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorTilingPattern});(0,l.warn)('handleTilingType - ignoring pattern: "'.concat(t,'".'))}}))}},{key:"handleSetFont",value:function handleSetFont(t,r,o,c,u,g){var m=this,y=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,v=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,k=r&&r[0]instanceof h.Name?r[0].name:null;return this.loadFont(k,o,t,y,v).then((function(r){return r.font.isType3Font?r.loadType3Data(m,t,u).then((function(){c.addDependencies(r.type3Dependencies);return r})).catch((function(t){m.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorFontLoadType3});return new V({loadedName:"g_font_error",font:new d.ErrorFont("Type3 font load error: ".concat(t)),dict:r.font,evaluatorOptions:m.options})})):r})).then((function(t){g.font=t.font;t.send(m.handler);return t.loadedName}))}},{key:"handleText",value:function handleText(t,r){var o=r.font,c=o.charsToGlyphs(t);if(o.data){(!!(r.textRenderingMode&l.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===r.fillColorSpace.name||o.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(o,c,this.handler,this.options)}return c}},{key:"ensureStateFont",value:function ensureStateFont(t){if(!t.font){var r=new l.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw r;this.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorFontState});(0,l.warn)('ensureStateFont: "'.concat(r,'".'))}}},{key:"setGState",value:(C=_asyncToGenerator(c.default.mark((function _callee5(t){var r,o,u,d,g,m,y,v,k,_,w,S,C,x,O,T,E=this;return c.default.wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:r=t.resources,o=t.gState,u=t.operatorList,d=t.cacheKey,g=t.task,m=t.stateManager,y=t.localGStateCache,v=t.localColorSpaceCache;k=o.objId;_=!0;w=[];S=o.getKeys();C=Promise.resolve();x=function _loop(t,c){var d=S[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":w.push([d,y]);break;case"Font":_=!1;C=C.then((function(){return E.handleSetFont(r,null,y[0],u,g,m.state).then((function(t){u.addDependency(t);w.push([d,[t,y[1]]])}))}));break;case"BM":w.push([d,normalizeBlendMode(y)]);break;case"SMask":if((0,h.isName)(y,"None")){w.push([d,!1]);break}if(y instanceof h.Dict){_=!1;C=C.then((function(){return E.handleSMask(y,r,u,g,m,v)}));w.push([d,!0])}else(0,l.warn)("Unsupported SMask type");break;case"TR":var k=E.handleTransferFunction(y);w.push([d,k]);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,l.info)("graphic state operator "+d);break;default:(0,l.info)("Unknown graphic state operator "+d)}};for(O=0,T=S.length;O<T;O++)x(O);return c.abrupt("return",C.then((function(){w.length>0&&u.addOp(l.OPS.setGState,[w]);_&&y.set(d,k,w)})));case 9:case"end":return c.stop()}}),_callee5)}))),function setGState(t){return C.apply(this,arguments)})},{key:"loadFont",value:function loadFont(t,r,o){var u,m=this,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,v=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,k=function(){var o=_asyncToGenerator(c.default.mark((function _callee6(){return c.default.wrap((function _callee6$(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new V({loadedName:"g_font_error",font:new d.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:m.options}));case 1:case"end":return o.stop()}}),_callee6)})));return function errorFont(){return o.apply(this,arguments)}}(),_=this.xref;if(r){if(!(r instanceof h.Ref))throw new l.FormatError('The "font" object should be a reference.');u=r}else{var w=o.get("Font");w&&(u=w.getRaw(t))}if(!u){var S='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,l.warn)("".concat(S,"."));return k()}this.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorFontMissing});(0,l.warn)("".concat(S," -- attempting to fallback to a default font."));u=y||PartialEvaluator.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(u))return k();if(this.fontCache.has(u))return this.fontCache.get(u);if(!((r=_.fetchIfRef(u))instanceof h.Dict))return k();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var C,x=(0,l.createPromiseCapability)();try{(C=this.preEvaluateFont(r)).cssFontInfo=v}catch(t){(0,l.warn)('loadFont - preEvaluateFont failed: "'.concat(t,'".'));return k()}var O,T=C,E=T.descriptor,M=T.hash,R=u instanceof h.Ref;R&&(O="f".concat(u.toString()));if(M&&E instanceof h.Dict){E.fontAliases||(E.fontAliases=Object.create(null));var j=E.fontAliases;if(j[M]){var D=j[M].aliasRef;if(R&&D&&this.fontCache.has(D)){this.fontCache.putAlias(u,D);return this.fontCache.get(u)}}else j[M]={fontID:this.idFactory.createFontId()};R&&(j[M].aliasRef=u);O=j[M].fontID}if(R)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,l.assert)(O&&O.startsWith("f"),'The "fontID" must be (correctly) defined.');r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(O);this.translateFont(C).then((function(t){void 0!==t.fontType&&_.stats.addFontType(t.fontType);x.resolve(new V({loadedName:r.loadedName,font:t,dict:r,evaluatorOptions:m.options}))})).catch((function(t){m.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorFontTranslate});(0,l.warn)('loadFont - translateFont failed: "'.concat(t,'".'));try{var o=E&&E.get("FontFile3"),c=o&&o.get("Subtype"),u=(0,g.getFontType)(C.type,c&&c.name);void 0!==u&&_.stats.addFontType(u)}catch(t){}x.resolve(new V({loadedName:r.loadedName,font:new d.ErrorFont(t instanceof Error?t.message:t),dict:r,evaluatorOptions:m.options}))}));return x.promise}},{key:"buildPath",value:function buildPath(t,r,o){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=t.length-1;o||(o=[]);if(u<0||t.fnArray[u]!==l.OPS.constructPath){if(c){(0,l.warn)('Encountered path operator "'.concat(r,'" inside of a text object.'));t.addOp(l.OPS.save,null)}t.addOp(l.OPS.constructPath,[[r],o]);c&&t.addOp(l.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,c=t.resources,u=t.localColorSpaceCache;return M.ColorSpace.parseAsync({cs:o,xref:this.xref,resources:c,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).catch((function(t){if(t instanceof l.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorColorSpace});(0,l.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(t,'".'));return null}throw t}))}},{key:"parseShading",value:function parseShading(t){var r=t.shading,o=t.resources,c=t.localColorSpaceCache,l=t.localShadingPatternCache,u=l.get(r);if(!u){var h=k.Pattern.parseShading(r,this.xref,o,this.handler,this._pdfFunctionFactory,c).getIR();u="pattern_".concat(this.idFactory.createObjId());l.set(r,u);this.handler.send("obj",[u,this.pageIndex,"Pattern",h])}return u}},{key:"handleColorN",value:function handleColorN(t,r,o,c,u,d,g,m,y,v){var _=o.pop();if(_ instanceof h.Name){var w=u.getRaw(_.name),S=w instanceof h.Ref&&y.getByRef(w);if(S)try{var C=c.base?c.base.getRgb(o,0):null,x=(0,k.getTilingPatternIR)(S.operatorListIR,S.dict,C);t.addOp(r,x);return}catch(t){}var O=this.xref.fetchIfRef(w);if(O){var E=O instanceof T.BaseStream?O.dict:O,M=E.get("PatternType");if(M===X){var R=c.base?c.base.getRgb(o,0):null;return this.handleTilingType(r,R,d,O,E,t,g,y)}if(M===q){var j=E.get("Shading"),D=E.getArray("Matrix"),N=this.parseShading({shading:j,resources:d,localColorSpaceCache:m,localShadingPatternCache:v});t.addOp(r,["Shading",N,D]);return}throw new l.FormatError("Unknown PatternType: ".concat(M))}}throw new l.FormatError("Unknown PatternName: ".concat(_))}},{key:"_parseVisibilityExpression",value:function _parseVisibilityExpression(t,r,o){if(++r>10)(0,l.warn)("Visibility expression is too deeply nested");else{var c=t.length,u=this.xref.fetchIfRef(t[0]);if(!(c<2)&&u instanceof h.Name){switch(u.name){case"And":case"Or":case"Not":o.push(u.name);break;default:(0,l.warn)("Invalid operator ".concat(u.name," in visibility expression"));return}for(var d=1;d<c;d++){var g=t[d],m=this.xref.fetchIfRef(g);if(Array.isArray(m)){var y=[];o.push(y);this._parseVisibilityExpression(m,r,y)}else g instanceof h.Ref&&o.push(g.toString())}}else(0,l.warn)("Invalid visibility expression")}}},{key:"parseMarkedContentProps",value:(o=_asyncToGenerator(c.default.mark((function _callee7(t,r){var o,u,d,g,m,y,v,k,_,w;return c.default.wrap((function _callee7$(c){for(;;)switch(c.prev=c.next){case 0:if(!(t instanceof h.Name)){c.next=5;break}u=r.get("Properties");o=u.get(t.name);c.next=10;break;case 5:if(!(t instanceof h.Dict)){c.next=9;break}o=t;c.next=10;break;case 9:throw new l.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(d=o.get("Type").name)){c.next=15;break}return c.abrupt("return",{type:d,id:o.objId});case 15:if("OCMD"!==d){c.next=31;break}g=o.get("VE");if(!Array.isArray(g)){c.next=22;break}m=[];this._parseVisibilityExpression(g,0,m);if(!(m.length>0)){c.next=22;break}return c.abrupt("return",{type:"OCMD",expression:m});case 22:y=o.get("OCGs");if(!(Array.isArray(y)||y instanceof h.Dict)){c.next=29;break}v=[];if(Array.isArray(y)){k=_createForOfIteratorHelper(y);try{for(k.s();!(_=k.n()).done;){w=_.value;v.push(w.toString())}}catch(t){k.e(t)}finally{k.f()}}else v.push(y.objId);return c.abrupt("return",{type:d,ids:v,policy:o.get("P")instanceof h.Name?o.get("P").name:null,expression:null});case 29:if(!(y instanceof h.Ref)){c.next=31;break}return c.abrupt("return",{type:d,id:y.toString()});case 31:return c.abrupt("return",null);case 32:case"end":return c.stop()}}),_callee7,this)}))),function parseMarkedContentProps(t,r){return o.apply(this,arguments)})},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.stream,c=t.task,u=t.resources,d=t.operatorList,g=t.initialState,m=void 0===g?null:g,y=t.fallbackFontDict,v=void 0===y?null:y;u=u||h.Dict.empty;m=m||new J;if(!d)throw new Error('getOperatorList: missing "operatorList" parameter');var k=this,_=this.xref,w=!1,S=new x.LocalImageCache,C=new x.LocalColorSpaceCache,O=new x.LocalGStateCache,E=new x.LocalTilingPatternCache,R=new Map,j=u.get("XObject")||h.Dict.empty,D=u.get("Pattern")||h.Dict.empty,N=new K(m),L=new Z(o,_,N),U=new z;function closePendingRestoreOPS(t){for(var r=0,o=L.savedStatesDepth;r<o;r++)d.addOp(l.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)};c.ensureNotTerminated();U.reset();for(var g,m,y,x,H,$,X={};!(g=U.check());){X.args=null;if(!L.read(X))break;var q=X.args,z=X.fn;switch(0|z){case l.OPS.paintXObject:$=q[0]instanceof h.Name;H=q[0].name;if($){var W=S.getByName(H);if(W){d.addOp(W.fn,W.args);q=null;continue}}o(new Promise((function(t,r){if(!$)throw new l.FormatError("XObject must be referred to by name.");var o=j.getRaw(H);if(o instanceof h.Ref){var g=S.getByRef(o);if(g){d.addOp(g.fn,g.args);t();return}var m=k.globalImageCache.getData(o,k.pageIndex);if(m){d.addDependency(m.objId);d.addOp(m.fn,m.args);t();return}o=_.fetch(o)}if(!(o instanceof T.BaseStream))throw new l.FormatError("XObject should be a stream");var y=o.dict.get("Subtype");if(!(y instanceof h.Name))throw new l.FormatError("XObject should have a Name subtype");if("Form"!==y.name)if("Image"!==y.name){if("PS"!==y.name)throw new l.FormatError("Unhandled XObject subtype ".concat(y.name));(0,l.info)("Ignored XObject subtype PS");t()}else k.buildPaintImageXObject({resources:u,image:o,operatorList:d,cacheKey:H,localImageCache:S,localColorSpaceCache:C}).then(t,r);else{N.save();k.buildFormXObject(u,o,null,d,c,N.state.clone(),C).then((function(){N.restore();t()}),r)}})).catch((function(t){if(!(t instanceof l.AbortException)){if(!k.options.ignoreErrors)throw t;k.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorXObject});(0,l.warn)('getOperatorList - ignoring XObject: "'.concat(t,'".'))}})));return;case l.OPS.setFont:var V=q[1];o(k.handleSetFont(u,q,null,d,c,N.state,v).then((function(t){d.addDependency(t);d.addOp(l.OPS.setFont,[t,V])})));return;case l.OPS.beginText:w=!0;break;case l.OPS.endText:w=!1;break;case l.OPS.endInlineImage:var K=q[0].cacheKey;if(K){var Y=S.getByName(K);if(Y){d.addOp(Y.fn,Y.args);q=null;continue}}o(k.buildPaintImageXObject({resources:u,image:q[0],isInline:!0,operatorList:d,cacheKey:K,localImageCache:S,localColorSpaceCache:C}));return;case l.OPS.showText:if(!N.state.font){k.ensureStateFont(N.state);continue}q[0]=k.handleText(q[0],N.state);break;case l.OPS.showSpacedText:if(!N.state.font){k.ensureStateFont(N.state);continue}var J=q[0],Z=[],Q=J.length,ee=N.state;for(m=0;m<Q;++m){var te=J[m];"string"==typeof te?Array.prototype.push.apply(Z,k.handleText(te,ee)):"number"==typeof te&&Z.push(te)}q[0]=Z;z=l.OPS.showText;break;case l.OPS.nextLineShowText:if(!N.state.font){k.ensureStateFont(N.state);continue}d.addOp(l.OPS.nextLine);q[0]=k.handleText(q[0],N.state);z=l.OPS.showText;break;case l.OPS.nextLineSetSpacingShowText:if(!N.state.font){k.ensureStateFont(N.state);continue}d.addOp(l.OPS.nextLine);d.addOp(l.OPS.setWordSpacing,[q.shift()]);d.addOp(l.OPS.setCharSpacing,[q.shift()]);q[0]=k.handleText(q[0],N.state);z=l.OPS.showText;break;case l.OPS.setTextRenderingMode:N.state.textRenderingMode=q[0];break;case l.OPS.setFillColorSpace:var re=M.ColorSpace.getCached(q[0],_,C);if(re){N.state.fillColorSpace=re;continue}o(k.parseColorSpace({cs:q[0],resources:u,localColorSpaceCache:C}).then((function(t){t&&(N.state.fillColorSpace=t)})));return;case l.OPS.setStrokeColorSpace:var ae=M.ColorSpace.getCached(q[0],_,C);if(ae){N.state.strokeColorSpace=ae;continue}o(k.parseColorSpace({cs:q[0],resources:u,localColorSpaceCache:C}).then((function(t){t&&(N.state.strokeColorSpace=t)})));return;case l.OPS.setFillColor:q=(x=N.state.fillColorSpace).getRgb(q,0);z=l.OPS.setFillRGBColor;break;case l.OPS.setStrokeColor:q=(x=N.state.strokeColorSpace).getRgb(q,0);z=l.OPS.setStrokeRGBColor;break;case l.OPS.setFillGray:N.state.fillColorSpace=M.ColorSpace.singletons.gray;q=M.ColorSpace.singletons.gray.getRgb(q,0);z=l.OPS.setFillRGBColor;break;case l.OPS.setStrokeGray:N.state.strokeColorSpace=M.ColorSpace.singletons.gray;q=M.ColorSpace.singletons.gray.getRgb(q,0);z=l.OPS.setStrokeRGBColor;break;case l.OPS.setFillCMYKColor:N.state.fillColorSpace=M.ColorSpace.singletons.cmyk;q=M.ColorSpace.singletons.cmyk.getRgb(q,0);z=l.OPS.setFillRGBColor;break;case l.OPS.setStrokeCMYKColor:N.state.strokeColorSpace=M.ColorSpace.singletons.cmyk;q=M.ColorSpace.singletons.cmyk.getRgb(q,0);z=l.OPS.setStrokeRGBColor;break;case l.OPS.setFillRGBColor:N.state.fillColorSpace=M.ColorSpace.singletons.rgb;q=M.ColorSpace.singletons.rgb.getRgb(q,0);break;case l.OPS.setStrokeRGBColor:N.state.strokeColorSpace=M.ColorSpace.singletons.rgb;q=M.ColorSpace.singletons.rgb.getRgb(q,0);break;case l.OPS.setFillColorN:if("Pattern"===(x=N.state.fillColorSpace).name){o(k.handleColorN(d,l.OPS.setFillColorN,q,x,D,u,c,C,E,R));return}q=x.getRgb(q,0);z=l.OPS.setFillRGBColor;break;case l.OPS.setStrokeColorN:if("Pattern"===(x=N.state.strokeColorSpace).name){o(k.handleColorN(d,l.OPS.setStrokeColorN,q,x,D,u,c,C,E,R));return}q=x.getRgb(q,0);z=l.OPS.setStrokeRGBColor;break;case l.OPS.shadingFill:var ne=u.get("Shading");if(!ne)throw new l.FormatError("No shading resource found");var ie=ne.get(q[0].name);if(!ie)throw new l.FormatError("No shading object found");q=[k.parseShading({shading:ie,resources:u,localColorSpaceCache:C,localShadingPatternCache:R})];z=l.OPS.shadingFill;break;case l.OPS.setGState:$=q[0]instanceof h.Name;H=q[0].name;if($){var oe=O.getByName(H);if(oe){oe.length>0&&d.addOp(l.OPS.setGState,[oe]);q=null;continue}}o(new Promise((function(t,r){if(!$)throw new l.FormatError("GState must be referred to by name.");var o=u.get("ExtGState");if(!(o instanceof h.Dict))throw new l.FormatError("ExtGState should be a dictionary.");var g=o.get(H);if(!(g instanceof h.Dict))throw new l.FormatError("GState should be a dictionary.");k.setGState({resources:u,gState:g,operatorList:d,cacheKey:H,task:c,stateManager:N,localGStateCache:O,localColorSpaceCache:C}).then(t,r)})).catch((function(t){if(!(t instanceof l.AbortException)){if(!k.options.ignoreErrors)throw t;k.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorExtGState});(0,l.warn)('getOperatorList - ignoring ExtGState: "'.concat(t,'".'))}})));return;case l.OPS.moveTo:case l.OPS.lineTo:case l.OPS.curveTo:case l.OPS.curveTo2:case l.OPS.curveTo3:case l.OPS.closePath:case l.OPS.rectangle:k.buildPath(d,z,q,w);continue;case l.OPS.markPoint:case l.OPS.markPointProps:case l.OPS.beginCompat:case l.OPS.endCompat:continue;case l.OPS.beginMarkedContentProps:if(!(q[0]instanceof h.Name)){(0,l.warn)("Expected name for beginMarkedContentProps arg0=".concat(q[0]));continue}if("OC"===q[0].name){o(k.parseMarkedContentProps(q[1],u).then((function(t){d.addOp(l.OPS.beginMarkedContentProps,["OC",t])})).catch((function(t){if(!(t instanceof l.AbortException)){if(!k.options.ignoreErrors)throw t;k.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorMarkedContent});(0,l.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(t,'".'))}})));return}q=[q[0].name,q[1]instanceof h.Dict?q[1].get("MCID"):null];break;case l.OPS.beginMarkedContent:case l.OPS.endMarkedContent:default:if(null!==q){for(m=0,y=q.length;m<y&&!(q[m]instanceof h.Dict);m++);if(m<y){(0,l.warn)("getOperatorList - ignoring operator: "+z);continue}}}d.addOp(z,q)}if(g)o(G);else{closePendingRestoreOPS();t()}})).catch((function(t){if(!(t instanceof l.AbortException)){if(!r.options.ignoreErrors)throw t;r.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorOperatorList});(0,l.warn)('getOperatorList - ignoring errors during "'.concat(c.name,'" ')+'task: "'.concat(t,'".'));closePendingRestoreOPS()}}))}},{key:"getTextContent",value:function getTextContent(t){var r=this,o=t.stream,c=t.task,u=t.resources,d=t.stateManager,g=void 0===d?null:d,m=t.combineTextItems,y=void 0!==m&&m,k=t.includeMarkedContent,_=void 0!==k&&k,w=t.sink,S=t.seenStyles,C=void 0===S?new Set:S,O=t.viewBox;u=u||h.Dict.empty;g=g||new K(new Y);var M,R=(0,v.getNormalizedUnicodes)(),j={items:[],styles:Object.create(null)},D={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,transform:null,fontName:null,hasEOL:!1},N=this,L=this.xref,U=[],H=null,$=new x.LocalImageCache,X=new x.LocalGStateCache,q=new Z(o,L,g);function getCurrentTextTransform(){var t=M.font,r=[M.fontSize*M.textHScale,0,0,M.fontSize,0,M.textRise];if(t.isType3Font&&(M.fontSize<=1||t.isCharBBox)&&!(0,l.isArrayEqual)(M.fontMatrix,l.FONT_IDENTITY_MATRIX)){var o=t.bbox[3]-t.bbox[1];o>0&&(r[3]*=o*M.fontMatrix[3])}return l.Util.transform(M.ctm,l.Util.transform(M.textMatrix,r))}function ensureTextContentItem(){if(D.initialized)return D;var t=M.font,r=t.loadedName;if(!C.has(r)){C.add(r);j.styles[r]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}}D.fontName=r;var o=D.transform=getCurrentTextTransform();if(t.vertical){D.width=D.totalWidth=Math.hypot(o[0],o[1]);D.height=D.totalHeight=0;D.vertical=!0}else{D.width=D.totalWidth=0;D.height=D.totalHeight=Math.hypot(o[2],o[3]);D.vertical=!1}var c=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),l=Math.hypot(M.ctm[0],M.ctm[1]);D.textAdvanceScale=l*c;D.trackingSpaceMin=.1*M.fontSize;D.negativeSpaceMax=-.2*M.fontSize;D.spaceInFlowMin=.1*M.fontSize;D.spaceInFlowMax=.6*M.fontSize;D.hasEOL=!1;D.initialized=!0;return D}function updateAdvanceScale(){if(D.initialized){var t=Math.hypot(M.textLineMatrix[0],M.textLineMatrix[1]),r=Math.hypot(M.ctm[0],M.ctm[1])*t;if(r!==D.textAdvanceScale){if(D.vertical){D.totalHeight+=D.height*D.textAdvanceScale;D.height=0}else{D.totalWidth+=D.width*D.textAdvanceScale;D.width=0}D.textAdvanceScale=r}}}function handleSetFont(t,r){return N.loadFont(t,r,u).then((function(t){return t.font.isType3Font?t.loadType3Data(N,u,c).catch((function(){})).then((function(){return t})):t})).then((function(t){M.font=t.font;M.fontMatrix=t.font.fontMatrix||l.FONT_IDENTITY_MATRIX}))}function applyInverseRotation(t,r,o){var c=Math.hypot(o[0],o[1]);return[(o[0]*t+o[1]*r)/c,(o[2]*t+o[3]*r)/c]}function compareWithLastPosition(){var t=getCurrentTextTransform(),r=t[4],o=t[5],c=r-O[0],l=o-O[1];if(c<0||c>O[2]||l<0||l>O[3])return!1;if(!y||!M.font||!D.prevTransform)return!0;var u=D.prevTransform[4],h=D.prevTransform[5];if(u===r&&h===o)return!0;var d=-1;t[0]&&0===t[1]&&0===t[2]?d=t[0]>0?0:180:t[1]&&0===t[0]&&0===t[3]&&(d=t[1]>0?90:270);switch(d){case 0:break;case 90:var g=[o,r];r=g[0];o=g[1];var m=[h,u];u=m[0];h=m[1];break;case 180:var v=[-r,-o,-u,-h];r=v[0];o=v[1];u=v[2];h=v[3];break;case 270:var k=[-o,-r];r=k[0];o=k[1];var _=[-h,-u];u=_[0];h=_[1];break;default:var w=_slicedToArray(applyInverseRotation(r,o,t),2);r=w[0];o=w[1];var S=_slicedToArray(applyInverseRotation(u,h,D.prevTransform),2);u=S[0];h=S[1]}if(M.font.vertical){var C=(h-o)/D.textAdvanceScale,x=r-u,T=Math.sign(D.height);if(C<T*D.negativeSpaceMax){if(Math.abs(x)>.5*D.width){appendEOL();return!0}flushTextContentItem();return!0}if(Math.abs(x)>D.width){appendEOL();return!0}C<=T*D.trackingSpaceMin?D.height+=C:addFakeSpaces(C,D.prevTransform,T)||(0===D.str.length?j.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(C),transform:D.prevTransform,fontName:D.fontName,hasEOL:!1}):D.height+=C);return!0}var E=(r-u)/D.textAdvanceScale,R=o-h,N=Math.sign(D.width);if(E<N*D.negativeSpaceMax){if(Math.abs(R)>.5*D.height){appendEOL();return!0}flushTextContentItem();return!0}if(Math.abs(R)>D.height){appendEOL();return!0}E<=N*D.trackingSpaceMin?D.width+=E:addFakeSpaces(E,D.prevTransform,N)||(0===D.str.length?j.items.push({str:" ",dir:"ltr",width:Math.abs(E),height:0,transform:D.prevTransform,fontName:D.fontName,hasEOL:!1}):D.width+=E);return!0}function buildTextContentItem(t){var r=t.chars,o=t.extraSpacing,c=M.font;if(r)for(var l=c.charsToGlyphs(r),u=M.fontMatrix[0]*M.fontSize,h=0,d=l.length;h<d;h++){var g=l[h];if(!g.isInvisibleFormatMark){var m=M.charSpacing+(h+1===d?o:0),y=g.width;c.vertical&&(y=g.vmetric?g.vmetric[0]:-y);var k=y*u;if(g.isWhitespace&&(0===h||h+1===d||l[h-1].isWhitespace||l[h+1].isWhitespace||o))if(c.vertical){m+=-k+M.wordSpacing;M.translateTextMatrix(0,-m)}else{m+=k+M.wordSpacing;M.translateTextMatrix(m*M.textHScale,0)}else if(compareWithLastPosition()){var _=ensureTextContentItem();g.isZeroWidthDiacritic&&(k=0);if(c.vertical){M.translateTextMatrix(0,k);k=Math.abs(k);_.height+=k}else{k*=M.textHScale;M.translateTextMatrix(k,0);_.width+=k}k&&(_.prevTransform=getCurrentTextTransform());if(g.isWhitespace)_.str.push(" ");else{var w=g.unicode;w=R[w]||w;w=(0,v.reverseIfRtl)(w);_.str.push(w)}m&&(c.vertical?M.translateTextMatrix(0,-m):M.translateTextMatrix(m*M.textHScale,0))}}}else{var S=M.charSpacing+o;S&&(c.vertical?M.translateTextMatrix(0,-S):M.translateTextMatrix(S*M.textHScale,0))}}function appendEOL(){if(D.initialized){D.hasEOL=!0;flushTextContentItem()}else j.items.push({str:"",dir:"ltr",width:0,height:0,transform:getCurrentTextTransform(),fontName:M.font.loadedName,hasEOL:!0})}function addFakeSpaces(t,r,o){if(o*D.spaceInFlowMin<=t&&t<=o*D.spaceInFlowMax){D.initialized&&D.str.push(" ");return!1}var c=D.fontName,l=0;if(D.vertical){l=t;t=0}flushTextContentItem();j.items.push({str:" ",dir:"ltr",width:Math.abs(t),height:Math.abs(l),transform:r||getCurrentTextTransform(),fontName:c,hasEOL:!1});return!0}function flushTextContentItem(){if(D.initialized&&D.str){D.vertical?D.totalHeight+=D.height*D.textAdvanceScale:D.totalWidth+=D.width*D.textAdvanceScale;j.items.push(function runBidiTransform(t){var r=t.str.join(""),o=(0,E.bidi)(r,-1,t.vertical);return{str:o.str,dir:o.dir,width:Math.abs(t.totalWidth),height:Math.abs(t.totalHeight),transform:t.transform,fontName:t.fontName,hasEOL:t.hasEOL}}(D));D.initialized=!1;D.str.length=0}}function enqueueChunk(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=j.items.length;if(0!==r&&!(t&&r<10)){w.enqueue(j,r);j.items=[];j.styles=Object.create(null)}}var W=new z;return new Promise((function promiseBody(t,r){var o=function next(o){enqueueChunk(!0);Promise.all([o,w.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};c.ensureNotTerminated();W.reset();for(var d,m={},v=[];!(d=W.check());){v.length=0;m.args=v;if(!q.read(m))break;M=g.state;var k=m.fn;v=m.args;switch(0|k){case l.OPS.setFont:var S=v[0].name,x=v[1];if(M.font&&S===M.fontName&&x===M.fontSize)break;flushTextContentItem();M.fontName=S;M.fontSize=x;o(handleSetFont(S,null));return;case l.OPS.setTextRise:M.textRise=v[0];break;case l.OPS.setHScale:M.textHScale=v[0]/100;break;case l.OPS.setLeading:M.leading=v[0];break;case l.OPS.moveText:M.translateTextLineMatrix(v[0],v[1]);M.textMatrix=M.textLineMatrix.slice();break;case l.OPS.setLeadingMoveText:M.leading=-v[1];M.translateTextLineMatrix(v[0],v[1]);M.textMatrix=M.textLineMatrix.slice();break;case l.OPS.nextLine:M.carriageReturn();break;case l.OPS.setTextMatrix:M.setTextMatrix(v[0],v[1],v[2],v[3],v[4],v[5]);M.setTextLineMatrix(v[0],v[1],v[2],v[3],v[4],v[5]);updateAdvanceScale();break;case l.OPS.setCharSpacing:M.charSpacing=v[0];break;case l.OPS.setWordSpacing:M.wordSpacing=v[0];break;case l.OPS.beginText:M.textMatrix=l.IDENTITY_MATRIX.slice();M.textLineMatrix=l.IDENTITY_MATRIX.slice();break;case l.OPS.showSpacedText:if(!g.state.font){N.ensureStateFont(g.state);continue}for(var E=(M.font.vertical?1:-1)*M.fontSize/1e3,R=v[0],D=0,z=R.length;D<z-1;D++){var V=R[D];if("string"==typeof V)U.push(V);else if("number"==typeof V&&0!==V){var Y=U.join("");U.length=0;buildTextContentItem({chars:Y,extraSpacing:V*E})}}var J=R[R.length-1];"string"==typeof J&&U.push(J);if(U.length>0){var Z=U.join("");U.length=0;buildTextContentItem({chars:Z,extraSpacing:0})}break;case l.OPS.showText:if(!g.state.font){N.ensureStateFont(g.state);continue}buildTextContentItem({chars:v[0],extraSpacing:0});break;case l.OPS.nextLineShowText:if(!g.state.font){N.ensureStateFont(g.state);continue}M.carriageReturn();buildTextContentItem({chars:v[0],extraSpacing:0});break;case l.OPS.nextLineSetSpacingShowText:if(!g.state.font){N.ensureStateFont(g.state);continue}M.wordSpacing=v[0];M.charSpacing=v[1];M.carriageReturn();buildTextContentItem({chars:v[2],extraSpacing:0});break;case l.OPS.paintXObject:flushTextContentItem();H||(H=u.get("XObject")||h.Dict.empty);var Q=v[0]instanceof h.Name,ee=v[0].name;if(Q&&$.getByName(ee))break;o(new Promise((function(t,r){if(!Q)throw new l.FormatError("XObject must be referred to by name.");var o=H.getRaw(ee);if(o instanceof h.Ref){if($.getByRef(o)){t();return}if(N.globalImageCache.getData(o,N.pageIndex)){t();return}o=L.fetch(o)}if(!(o instanceof T.BaseStream))throw new l.FormatError("XObject should be a stream");var d=o.dict.get("Subtype");if(!(d instanceof h.Name))throw new l.FormatError("XObject should have a Name subtype");if("Form"===d.name){var m=g.state.clone(),v=new K(m),k=o.dict.getArray("Matrix");Array.isArray(k)&&6===k.length&&v.transform(k);enqueueChunk();var S={enqueueInvoked:!1,enqueue:function enqueue(t,r){this.enqueueInvoked=!0;w.enqueue(t,r)},get desiredSize(){return w.desiredSize},get ready(){return w.ready}};N.getTextContent({stream:o,task:c,resources:o.dict.get("Resources")||u,stateManager:v,combineTextItems:y,includeMarkedContent:_,sink:S,seenStyles:C,viewBox:O}).then((function(){S.enqueueInvoked||$.set(ee,o.dict.objId,!0);t()}),r)}else{$.set(ee,o.dict.objId,!0);t()}})).catch((function(t){if(!(t instanceof l.AbortException)){if(!N.options.ignoreErrors)throw t;(0,l.warn)('getTextContent - ignoring XObject: "'.concat(t,'".'))}})));return;case l.OPS.setGState:Q=v[0]instanceof h.Name;ee=v[0].name;if(Q&&X.getByName(ee))break;o(new Promise((function(t,r){if(!Q)throw new l.FormatError("GState must be referred to by name.");var o=u.get("ExtGState");if(!(o instanceof h.Dict))throw new l.FormatError("ExtGState should be a dictionary.");var c=o.get(ee);if(!(c instanceof h.Dict))throw new l.FormatError("GState should be a dictionary.");var d=c.get("Font");if(d){flushTextContentItem();M.fontName=null;M.fontSize=d[1];handleSetFont(null,d[0]).then(t,r)}else{X.set(ee,c.objId,!0);t()}})).catch((function(t){if(!(t instanceof l.AbortException)){if(!N.options.ignoreErrors)throw t;(0,l.warn)('getTextContent - ignoring ExtGState: "'.concat(t,'".'))}})));return;case l.OPS.beginMarkedContent:_&&j.items.push({type:"beginMarkedContent",tag:v[0]instanceof h.Name?v[0].name:null});break;case l.OPS.beginMarkedContentProps:if(_){flushTextContentItem();var te=null;v[1]instanceof h.Dict&&(te=v[1].get("MCID"));j.items.push({type:"beginMarkedContentProps",id:Number.isInteger(te)?"".concat(N.idFactory.getPageObjId(),"_mcid").concat(te):null,tag:v[0]instanceof h.Name?v[0].name:null})}break;case l.OPS.endMarkedContent:if(_){flushTextContentItem();j.items.push({type:"endMarkedContent"})}}if(j.items.length>=w.desiredSize){d=!0;break}}if(d)o(G);else{flushTextContentItem();enqueueChunk();t()}})).catch((function(t){if(!(t instanceof l.AbortException)){if(!r.options.ignoreErrors)throw t;(0,l.warn)('getTextContent - ignoring errors during "'.concat(c.name,'" ')+'task: "'.concat(t,'".'));flushTextContentItem();enqueueChunk()}}))}},{key:"extractDataStructures",value:function extractDataStructures(t,r,o){var c,u=this,d=this.xref,y=this.readToUnicode(o.toUnicode||t.get("ToUnicode")||r.get("ToUnicode"));if(o.composite){var v=t.get("CIDSystemInfo");v instanceof h.Dict&&(o.cidSystemInfo={registry:(0,l.stringToPDFString)(v.get("Registry")),ordering:(0,l.stringToPDFString)(v.get("Ordering")),supplement:v.get("Supplement")});var k=t.get("CIDToGIDMap");k instanceof T.BaseStream&&(c=k.getBytes())}var _,w=[],S=null;if(t.has("Encoding")){if((_=t.get("Encoding"))instanceof h.Dict){S=(S=_.get("BaseEncoding"))instanceof h.Name?S.name:null;if(_.has("Differences"))for(var C=_.get("Differences"),x=0,O=0,E=C.length;O<E;O++){var M=d.fetchIfRef(C[O]);if("number"==typeof M)x=M;else{if(!(M instanceof h.Name))throw new l.FormatError("Invalid entry in 'Differences' array: ".concat(M));w[x++]=M.name}}}else{if(!(_ instanceof h.Name))throw new l.FormatError("Encoding is not a Name nor a Dict");S=_.name}"MacRomanEncoding"!==S&&"MacExpertEncoding"!==S&&"WinAnsiEncoding"!==S&&(S=null)}if(S)o.defaultEncoding=(0,m.getEncoding)(S);else{var R=!!(o.flags&g.FontFlags.Symbolic),j=!!(o.flags&g.FontFlags.Nonsymbolic);_=m.StandardEncoding;"TrueType"!==o.type||j||(_=m.WinAnsiEncoding);if(R){_=m.MacRomanEncoding;o.file&&!o.isInternalFont||(/Symbol/i.test(o.name)?_=m.SymbolSetEncoding:/Dingbats|Wingdings/i.test(o.name)&&(_=m.ZapfDingbatsEncoding))}o.defaultEncoding=_}o.differences=w;o.baseEncodingName=S;o.hasEncoding=!!S||w.length>0;o.dict=t;return y.then((function(t){o.toUnicode=t;return u.buildToUnicode(o)})).then((function(t){o.toUnicode=t;c&&(o.cidToGidMap=u.readCidToGidMap(c,t));return o}))}},{key:"_simpleFontToUnicode",value:function _simpleFontToUnicode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,l.assert)(!t.composite,"Must be a simple font.");var o=[],c=t.defaultEncoding.slice(),u=t.baseEncodingName,h=t.differences;for(var d in h){var g=h[d];".notdef"!==g&&(c[d]=g)}var y=(0,j.getGlyphsUnicode)();for(var k in c){var _=c[k];if(""!==_)if(void 0!==y[_])o[k]=String.fromCharCode(y[_]);else{var w=0;switch(_[0]){case"G":3===_.length&&(w=parseInt(_.substring(1),16));break;case"g":5===_.length&&(w=parseInt(_.substring(1),16));break;case"C":case"c":if(_.length>=3&&_.length<=4){var S=_.substring(1);if(r){w=parseInt(S,16);break}w=+S;if(Number.isNaN(w)&&Number.isInteger(parseInt(S,16)))return this._simpleFontToUnicode(t,!0)}break;default:var C=(0,v.getUnicodeForGlyph)(_,y);-1!==C&&(w=C)}if(w>0&&w<=1114111&&Number.isInteger(w)){if(u&&w===+k){var x=(0,m.getEncoding)(u);if(x&&(_=x[k])){o[k]=String.fromCharCode(y[_]);continue}}o[k]=String.fromCodePoint(w)}}}return o}},{key:"buildToUnicode",value:(r=_asyncToGenerator(c.default.mark((function _callee8(t){var r,o,d,g,m,y;return c.default.wrap((function _callee8$(c){for(;;)switch(c.prev=c.next){case 0:t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0;if(!t.hasIncludedToUnicodeMap){c.next=4;break}!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t));return c.abrupt("return",t.toUnicode);case 4:if(t.composite){c.next=6;break}return c.abrupt("return",new w.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)){c.next=15;break}r=t.cidSystemInfo,o=r.registry,d=r.ordering;g=h.Name.get("".concat(o,"-").concat(d,"-UCS2"));c.next=11;return u.CMapFactory.create({encoding:g,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:m=c.sent;y=[];t.cMap.forEach((function(t,r){if(r>65535)throw new l.FormatError("Max size of CID is 65,535");var o=m.lookup(r);o&&(y[t]=String.fromCharCode((o.charCodeAt(0)<<8)+o.charCodeAt(1)))}));return c.abrupt("return",new w.ToUnicodeMap(y));case 15:return c.abrupt("return",new w.IdentityToUnicodeMap(t.firstChar,t.lastChar));case 16:case"end":return c.stop()}}),_callee8,this)}))),function buildToUnicode(t){return r.apply(this,arguments)})},{key:"readToUnicode",value:function readToUnicode(t){var r=this;return t?t instanceof h.Name?u.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){return t instanceof u.IdentityCMap?new w.IdentityToUnicodeMap(0,65535):new w.ToUnicodeMap(t.getMap())})):t instanceof T.BaseStream?u.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof u.IdentityCMap)return new w.IdentityToUnicodeMap(0,65535);var r=new Array(t.length);t.forEach((function(t,o){if("number"!=typeof o){for(var c=[],l=0;l<o.length;l+=2){var u=o.charCodeAt(l)<<8|o.charCodeAt(l+1);if(55296==(63488&u)){l+=2;var h=o.charCodeAt(l)<<8|o.charCodeAt(l+1);c.push(((1023&u)<<10)+(1023&h)+65536)}else c.push(u)}r[t]=String.fromCodePoint.apply(String,c)}else r[t]=String.fromCodePoint(o)}));return new w.ToUnicodeMap(r)}),(function(t){if(t instanceof l.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorFontToUnicode});(0,l.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=[],c=0,l=t.length;c<l;c++){var u=t[c++]<<8|t[c],h=c>>1;(0!==u||r.has(h))&&(o[h]=u)}return o}},{key:"extractWidths",value:function extractWidths(t,r,o){var c,l,u,d,m,y,v,k,_=this.xref,w=[],S=0,C=[];if(o.composite){S=t.has("DW")?t.get("DW"):1e3;if(k=t.get("W"))for(l=0,u=k.length;l<u;l++){y=_.fetchIfRef(k[l++]);v=_.fetchIfRef(k[l]);if(Array.isArray(v))for(d=0,m=v.length;d<m;d++)w[y++]=_.fetchIfRef(v[d]);else{var x=_.fetchIfRef(k[++l]);for(d=y;d<=v;d++)w[d]=x}}if(o.vertical){var O=t.getArray("DW2")||[880,-1e3];c=[O[1],.5*S,O[0]];if(O=t.get("W2"))for(l=0,u=O.length;l<u;l++){y=_.fetchIfRef(O[l++]);v=_.fetchIfRef(O[l]);if(Array.isArray(v))for(d=0,m=v.length;d<m;d++)C[y++]=[_.fetchIfRef(v[d++]),_.fetchIfRef(v[d++]),_.fetchIfRef(v[d])];else{var T=[_.fetchIfRef(O[++l]),_.fetchIfRef(O[++l]),_.fetchIfRef(O[++l])];for(d=y;d<=v;d++)C[d]=T}}}}else{var E=o.firstChar;if(k=t.get("Widths")){d=E;for(l=0,u=k.length;l<u;l++)w[d++]=_.fetchIfRef(k[l]);S=parseFloat(r.get("MissingWidth"))||0}else{var M=t.get("BaseFont");if(M instanceof h.Name){var R=this.getBaseFontMetrics(M.name);w=this.buildCharCodeToWidth(R.widths,o);S=R.defaultWidth}}}var j=!0,D=S;for(var N in w){var L=w[N];if(L)if(D){if(D!==L){j=!1;break}}else D=L}j&&(o.flags|=g.FontFlags.FixedPitch);o.defaultWidth=S;o.widths=w;o.defaultVMetrics=c;o.vmetrics=C}},{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),c=!1,l=(0,y.getStdFontMap)()[t]||t,u=(0,N.getMetrics)();l in u||(l=this.isSerifFont(t)?"Times-Roman":"Helvetica");var h=u[l];if("number"==typeof h){r=h;c=!0}else o=h();return{defaultWidth:r,monospace:c,widths:o}}},{key:"buildCharCodeToWidth",value:function buildCharCodeToWidth(t,r){for(var o=Object.create(null),c=r.differences,l=r.defaultEncoding,u=0;u<256;u++)u in c&&t[c[u]]?o[u]=t[c[u]]:u in l&&t[l[u]]&&(o[u]=t[l[u]]);return o}},{key:"preEvaluateFont",value:function preEvaluateFont(t){var r=t,o=t.get("Subtype");if(!(o instanceof h.Name))throw new l.FormatError("invalid font Subtype");var c,u,d=!1;if("Type0"===o.name){var g=t.get("DescendantFonts");if(!g)throw new l.FormatError("Descendant fonts are not specified");if(!((t=Array.isArray(g)?this.xref.fetchIfRef(g[0]):g)instanceof h.Dict))throw new l.FormatError("Descendant font is not a dictionary.");if(!((o=t.get("Subtype"))instanceof h.Name))throw new l.FormatError("invalid font Subtype");d=!0}var m=t.get("FirstChar")||0,y=t.get("LastChar")||(d?65535:255),v=t.get("FontDescriptor");if(v){c=new L.MurmurHash3_64;var k=r.getRaw("Encoding");if(k instanceof h.Name)c.update(k.name);else if(k instanceof h.Ref)c.update(k.toString());else if(k instanceof h.Dict){var _,w=_createForOfIteratorHelper(k.getRawValues());try{for(w.s();!(_=w.n()).done;){var S=_.value;if(S instanceof h.Name)c.update(S.name);else if(S instanceof h.Ref)c.update(S.toString());else if(Array.isArray(S)){for(var C=S.length,x=new Array(C),O=0;O<C;O++){var E=S[O];E instanceof h.Name?x[O]=E.name:("number"==typeof E||E instanceof h.Ref)&&(x[O]=E.toString())}c.update(x.join())}}}catch(t){w.e(t)}finally{w.f()}}c.update("".concat(m,"-").concat(y));if((u=t.get("ToUnicode")||r.get("ToUnicode"))instanceof T.BaseStream){var M=u.str||u,R=M.buffer?new Uint8Array(M.buffer.buffer,0,M.bufferLength):new Uint8Array(M.bytes.buffer,M.start,M.end-M.start);c.update(R)}else u instanceof h.Name&&c.update(u.name);var j=t.get("Widths")||r.get("Widths");if(Array.isArray(j)){var D,N=[],U=_createForOfIteratorHelper(j);try{for(U.s();!(D=U.n()).done;){var H=D.value;("number"==typeof H||H instanceof h.Ref)&&N.push(H.toString())}}catch(t){U.e(t)}finally{U.f()}c.update(N.join())}if(d){c.update("compositeFont");var $=t.get("W")||r.get("W");if(Array.isArray($)){var X,q=[],G=_createForOfIteratorHelper($);try{for(G.s();!(X=G.n()).done;){var z=X.value;if("number"==typeof z||z instanceof h.Ref)q.push(z.toString());else if(Array.isArray(z)){var W,V=[],K=_createForOfIteratorHelper(z);try{for(K.s();!(W=K.n()).done;){var Y=W.value;("number"==typeof Y||Y instanceof h.Ref)&&V.push(Y.toString())}}catch(t){K.e(t)}finally{K.f()}q.push("[".concat(V.join(),"]"))}}}catch(t){G.e(t)}finally{G.f()}c.update(q.join())}var J=t.getRaw("CIDToGIDMap")||r.getRaw("CIDToGIDMap");J instanceof h.Name?c.update(J.name):J instanceof h.Ref?c.update(J.toString()):J instanceof T.BaseStream&&c.update(J.peekBytes())}}return{descriptor:v,dict:t,baseDict:r,composite:d,type:o.name,firstChar:m,lastChar:y,toUnicode:u,hash:c?c.hexdigest():""}}},{key:"translateFont",value:(t=_asyncToGenerator(c.default.mark((function _callee9(t){var r,o,m,v,k,w,S,C,x,T,E,M,R,j,D,N,L,U,H,$,X,q,G,z,W,V,K,Y,J,Z,Q,ee,te,re,ae,ne=this;return c.default.wrap((function _callee9$(c){for(;;)switch(c.prev=c.next){case 0:r=t.descriptor,o=t.dict,m=t.baseDict,v=t.composite,k=t.type,w=t.firstChar,S=t.lastChar,C=t.toUnicode,x=t.cssFontInfo;T="Type3"===k;if(r){c.next=27;break}if(!T){c.next=9;break}(r=new h.Dict(null)).set("FontName",h.Name.get(k));r.set("FontBBox",o.getArray("FontBBox")||[0,0,0,0]);c.next=27;break;case 9:if((M=o.get("BaseFont"))instanceof h.Name){c.next=12;break}throw new l.FormatError("Base font is not specified");case 12:M=M.name.replace(/[,_]/g,"-");R=this.getBaseFontMetrics(M);j=M.split("-")[0];D=(this.isSerifFont(j)?g.FontFlags.Serif:0)|(R.monospace?g.FontFlags.FixedPitch:0)|((0,y.getSymbolsFonts)()[j]?g.FontFlags.Symbolic:g.FontFlags.Nonsymbolic);E={type:k,name:M,loadedName:m.loadedName,widths:R.widths,defaultWidth:R.defaultWidth,isSimulatedFlags:!0,flags:D,firstChar:w,lastChar:S,toUnicode:C,xHeight:0,capHeight:0,italicAngle:0,isType3Font:T};N=o.get("Widths");L=(0,y.getStandardFontName)(M);U=null;if(!L){c.next=26;break}E.isStandardFont=!0;c.next=24;return this.fetchStandardFontData(L);case 24:U=c.sent;E.isInternalFont=!!U;case 26:return c.abrupt("return",this.extractDataStructures(o,o,E).then((function(t){if(N){for(var r=[],o=w,c=0,l=N.length;c<l;c++)r[o++]=ne.xref.fetchIfRef(N[c]);t.widths=r}else t.widths=ne.buildCharCodeToWidth(R.widths,t);return new d.Font(M,U,t)})));case 27:H=r.get("FontName");$=o.get("BaseFont");"string"==typeof H&&(H=h.Name.get(H));"string"==typeof $&&($=h.Name.get($));if(!T){X=H&&H.name;q=$&&$.name;if(X!==q){(0,l.info)("The FontDescriptor's FontName is \"".concat(X,'" but ')+"should be the same as the Font's BaseFont \"".concat(q,'".'));X&&q&&q.startsWith(X)&&(H=$)}}if((H=H||$)instanceof h.Name){c.next=35;break}throw new l.FormatError("invalid font name");case 35:c.prev=35;G=r.get("FontFile","FontFile2","FontFile3");c.next=45;break;case 39:c.prev=39;c.t0=c.catch(35);if(this.options.ignoreErrors){c.next=43;break}throw c.t0;case 43:(0,l.warn)('translateFont - fetching "'.concat(H.name,'" font file: "').concat(c.t0,'".'));G=new O.NullStream;case 45:Y=!1;J=!1;Z=null;if(!G){c.next=52;break}if(G.dict){(Q=G.dict.get("Subtype"))instanceof h.Name&&(z=Q.name);W=G.dict.get("Length1");V=G.dict.get("Length2");K=G.dict.get("Length3")}c.next=74;break;case 52:if(!x){c.next=66;break}if(!(ee=(0,_.getXfaFontName)(H.name))){c.next=64;break}x.fontFamily="".concat(x.fontFamily,"-PdfJS-XFA");x.metrics=ee.metrics||null;Z=ee.factors||null;c.next=60;return this.fetchStandardFontData(ee.name);case 60:G=c.sent;J=!!G;m=o=(0,_.getXfaFontDict)(H.name);v=!0;case 64:c.next=74;break;case 66:if(T){c.next=74;break}if(!(te=(0,y.getStandardFontName)(H.name))){c.next=74;break}Y=!0;c.next=72;return this.fetchStandardFontData(te);case 72:G=c.sent;J=!!G;case 74:E={type:k,name:H.name,subtype:z,file:G,length1:W,length2:V,length3:K,isStandardFont:Y,isInternalFont:J,loadedName:m.loadedName,composite:v,fixedPitch:!1,fontMatrix:o.getArray("FontMatrix")||l.FONT_IDENTITY_MATRIX,firstChar:w,lastChar:S,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:T,cssFontInfo:x,scaleFactors:Z};if(!v){c.next=83;break}(re=m.get("Encoding"))instanceof h.Name&&(E.cidEncoding=re.name);c.next=80;return u.CMapFactory.create({encoding:re,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 80:ae=c.sent;E.cMap=ae;E.vertical=E.cMap.vertical;case 83:return c.abrupt("return",this.extractDataStructures(o,m,E).then((function(t){ne.extractWidths(o,r,t);return new d.Font(H.name,G,t)})));case 84:case"end":return c.stop()}}),_callee9,this,[[35,39]])}))),function translateFont(r){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function buildFontPaths(t,r,o,c){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(c.ignoreErrors){o.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorFontBuildPath});(0,l.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 g=d.accent;g&&g.fontChar&&buildPath(g.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,l.shadow)(this,"fallbackFontDict",t)}}]);var t,r,o,C,D,W,Q,ee;return PartialEvaluator}();r.PartialEvaluator=W;var V=function(){function TranslatedFont(t){var r=t.loadedName,o=t.font,c=t.dict,l=t.evaluatorOptions;_classCallCheck(this,TranslatedFont);this.loadedName=r;this.font=o;this.dict=c;this._evaluatorOptions=l||$;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;W.buildFontPaths(this.font,this.font.glyphCacheValues,t,this._evaluatorOptions)}}},{key:"loadType3Data",value:function loadType3Data(t,r,o){var c=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 d=new h.RefSet(t.type3FontRefs);this.dict.objId&&!d.has(this.dict.objId)&&d.put(this.dict.objId);u.type3FontRefs=d;var g,m=this.font,y=this.type3Dependencies,v=Promise.resolve(),k=this.dict.get("CharProcs"),_=this.dict.get("Resources")||r,w=Object.create(null),S=!m.bbox||(0,l.isArrayEqual)(m.bbox,[0,0,0,0]),C=_createForOfIteratorHelper(k.getKeys());try{var x=function _loop2(){var t=g.value;v=v.then((function(){var r=k.get(t),h=new U.OperatorList;return u.getOperatorList({stream:r,task:o,resources:_,operatorList:h}).then((function(){h.fnArray[0]===l.OPS.setCharWidthAndBounds&&c._removeType3ColorOperators(h,S);w[t]=h.getIR();var r,o=_createForOfIteratorHelper(h.dependencies);try{for(o.s();!(r=o.n()).done;){var u=r.value;y.add(u)}}catch(t){o.e(t)}finally{o.f()}})).catch((function(r){(0,l.warn)('Type3 font resource "'.concat(t,'" is not available.'));var o=new U.OperatorList;w[t]=o.getIR()}))}))};for(C.s();!(g=C.n()).done;)x()}catch(t){C.e(t)}finally{C.f()}this.type3Loaded=v.then((function(){m.charProcOperatorList=w;if(c._bbox){m.isCharBBox=!0;m.bbox=c._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=l.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 c=1,u=t.length;c<u;){switch(t.fnArray[c]){case l.OPS.setStrokeColorSpace:case l.OPS.setFillColorSpace:case l.OPS.setStrokeColor:case l.OPS.setStrokeColorN:case l.OPS.setFillColor:case l.OPS.setFillColorN:case l.OPS.setStrokeGray:case l.OPS.setFillGray:case l.OPS.setStrokeRGBColor:case l.OPS.setFillRGBColor:case l.OPS.setStrokeCMYKColor:case l.OPS.setFillCMYKColor:case l.OPS.shadingFill:case l.OPS.setRenderingIntent:t.fnArray.splice(c,1);t.argsArray.splice(c,1);u--;continue;case l.OPS.setGState:for(var h=_slicedToArray(t.argsArray[c],1),d=h[0],g=0,m=d.length;g<m;){var y=_slicedToArray(d[g],1),v=y[0];switch(v){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":d.splice(g,1);m--;continue}g++}}c++}}}]);return TranslatedFont}(),K=function(){function StateManager(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new J;_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=l.Util.transform(this.state.ctm,t)}}]);return StateManager}(),Y=function(){function TextState(){_classCallCheck(this,TextState);this.ctm=new Float32Array(l.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=l.FONT_IDENTITY_MATRIX;this.textMatrix=l.IDENTITY_MATRIX.slice();this.textLineMatrix=l.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,c,l,u){var h=this.textMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=c;h[4]=l;h[5]=u}},{key:"setTextLineMatrix",value:function setTextLineMatrix(t,r,o,c,l,u){var h=this.textLineMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=c;h[4]=l;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}(),J=function(){function EvalState(){_classCallCheck(this,EvalState);this.ctm=new Float32Array(l.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=l.TextRenderingMode.FILL;this.fillColorSpace=M.ColorSpace.singletons.gray;this.strokeColorSpace=M.ColorSpace.singletons.gray}_createClass(EvalState,[{key:"clone",value:function clone(){return Object.create(this)}}]);return EvalState}(),Z=function(){function EvaluatorPreprocessor(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new K;_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 c=o.cmd,u=EvaluatorPreprocessor.opMap[c];if(!u){(0,l.warn)('Unknown command "'.concat(c,'".'));continue}var d=u.id,g=u.numArgs,m=null!==r?r.length:0;if(u.variableArgs)m>g&&(0,l.info)("Command ".concat(c,": expected [0, ").concat(g,"] args, ")+"but received ".concat(m," args."));else{if(m!==g){for(var y=this.nonProcessedArgs;m>g;){y.push(r.shift());m--}for(;m<g&&0!==y.length;){null===r&&(r=[]);r.unshift(y.pop());m++}}if(m<g){var v="command ".concat(c,": expected ").concat(g," args, ")+"but received ".concat(m," args.");if(d>=l.OPS.moveTo&&d<=l.OPS.endPath&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new l.FormatError("Invalid ".concat(v));(0,l.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 l.FormatError("Too many arguments")}}}},{key:"preprocessCommand",value:function preprocessCommand(t,r){switch(0|t){case l.OPS.save:this.stateManager.save();break;case l.OPS.restore:this.stateManager.restore();break;case l.OPS.transform:this.stateManager.transform(r)}}}],[{key:"opMap",get:function get(){var t=(0,D.getLookupTableFactory)((function(t){t.w={id:l.OPS.setLineWidth,numArgs:1,variableArgs:!1};t.J={id:l.OPS.setLineCap,numArgs:1,variableArgs:!1};t.j={id:l.OPS.setLineJoin,numArgs:1,variableArgs:!1};t.M={id:l.OPS.setMiterLimit,numArgs:1,variableArgs:!1};t.d={id:l.OPS.setDash,numArgs:2,variableArgs:!1};t.ri={id:l.OPS.setRenderingIntent,numArgs:1,variableArgs:!1};t.i={id:l.OPS.setFlatness,numArgs:1,variableArgs:!1};t.gs={id:l.OPS.setGState,numArgs:1,variableArgs:!1};t.q={id:l.OPS.save,numArgs:0,variableArgs:!1};t.Q={id:l.OPS.restore,numArgs:0,variableArgs:!1};t.cm={id:l.OPS.transform,numArgs:6,variableArgs:!1};t.m={id:l.OPS.moveTo,numArgs:2,variableArgs:!1};t.l={id:l.OPS.lineTo,numArgs:2,variableArgs:!1};t.c={id:l.OPS.curveTo,numArgs:6,variableArgs:!1};t.v={id:l.OPS.curveTo2,numArgs:4,variableArgs:!1};t.y={id:l.OPS.curveTo3,numArgs:4,variableArgs:!1};t.h={id:l.OPS.closePath,numArgs:0,variableArgs:!1};t.re={id:l.OPS.rectangle,numArgs:4,variableArgs:!1};t.S={id:l.OPS.stroke,numArgs:0,variableArgs:!1};t.s={id:l.OPS.closeStroke,numArgs:0,variableArgs:!1};t.f={id:l.OPS.fill,numArgs:0,variableArgs:!1};t.F={id:l.OPS.fill,numArgs:0,variableArgs:!1};t["f*"]={id:l.OPS.eoFill,numArgs:0,variableArgs:!1};t.B={id:l.OPS.fillStroke,numArgs:0,variableArgs:!1};t["B*"]={id:l.OPS.eoFillStroke,numArgs:0,variableArgs:!1};t.b={id:l.OPS.closeFillStroke,numArgs:0,variableArgs:!1};t["b*"]={id:l.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1};t.n={id:l.OPS.endPath,numArgs:0,variableArgs:!1};t.W={id:l.OPS.clip,numArgs:0,variableArgs:!1};t["W*"]={id:l.OPS.eoClip,numArgs:0,variableArgs:!1};t.BT={id:l.OPS.beginText,numArgs:0,variableArgs:!1};t.ET={id:l.OPS.endText,numArgs:0,variableArgs:!1};t.Tc={id:l.OPS.setCharSpacing,numArgs:1,variableArgs:!1};t.Tw={id:l.OPS.setWordSpacing,numArgs:1,variableArgs:!1};t.Tz={id:l.OPS.setHScale,numArgs:1,variableArgs:!1};t.TL={id:l.OPS.setLeading,numArgs:1,variableArgs:!1};t.Tf={id:l.OPS.setFont,numArgs:2,variableArgs:!1};t.Tr={id:l.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1};t.Ts={id:l.OPS.setTextRise,numArgs:1,variableArgs:!1};t.Td={id:l.OPS.moveText,numArgs:2,variableArgs:!1};t.TD={id:l.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1};t.Tm={id:l.OPS.setTextMatrix,numArgs:6,variableArgs:!1};t["T*"]={id:l.OPS.nextLine,numArgs:0,variableArgs:!1};t.Tj={id:l.OPS.showText,numArgs:1,variableArgs:!1};t.TJ={id:l.OPS.showSpacedText,numArgs:1,variableArgs:!1};t["'"]={id:l.OPS.nextLineShowText,numArgs:1,variableArgs:!1};t['"']={id:l.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1};t.d0={id:l.OPS.setCharWidth,numArgs:2,variableArgs:!1};t.d1={id:l.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1};t.CS={id:l.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1};t.cs={id:l.OPS.setFillColorSpace,numArgs:1,variableArgs:!1};t.SC={id:l.OPS.setStrokeColor,numArgs:4,variableArgs:!0};t.SCN={id:l.OPS.setStrokeColorN,numArgs:33,variableArgs:!0};t.sc={id:l.OPS.setFillColor,numArgs:4,variableArgs:!0};t.scn={id:l.OPS.setFillColorN,numArgs:33,variableArgs:!0};t.G={id:l.OPS.setStrokeGray,numArgs:1,variableArgs:!1};t.g={id:l.OPS.setFillGray,numArgs:1,variableArgs:!1};t.RG={id:l.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1};t.rg={id:l.OPS.setFillRGBColor,numArgs:3,variableArgs:!1};t.K={id:l.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1};t.k={id:l.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1};t.sh={id:l.OPS.shadingFill,numArgs:1,variableArgs:!1};t.BI={id:l.OPS.beginInlineImage,numArgs:0,variableArgs:!1};t.ID={id:l.OPS.beginImageData,numArgs:0,variableArgs:!1};t.EI={id:l.OPS.endInlineImage,numArgs:1,variableArgs:!1};t.Do={id:l.OPS.paintXObject,numArgs:1,variableArgs:!1};t.MP={id:l.OPS.markPoint,numArgs:1,variableArgs:!1};t.DP={id:l.OPS.markPointProps,numArgs:2,variableArgs:!1};t.BMC={id:l.OPS.beginMarkedContent,numArgs:1,variableArgs:!1};t.BDC={id:l.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1};t.EMC={id:l.OPS.endMarkedContent,numArgs:0,variableArgs:!1};t.BX={id:l.OPS.beginCompat,numArgs:0,variableArgs:!1};t.EX={id:l.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,l.shadow)(this,"opMap",t())}},{key:"MAX_INVALID_PATH_OPS",get:function get(){return(0,l.shadow)(this,"MAX_INVALID_PATH_OPS",10)}}]);return EvaluatorPreprocessor}();r.EvaluatorPreprocessor=Z},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.IdentityCMap=r.CMapFactory=r.CMap=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(147),h=o(151),d=o(169),g=o(150),m=o(152);function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var y=["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"],v=Math.pow(2,24)-1,k=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>v)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>v)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var c=o.length-1;t<=r;){this._map[t++]=o;var l=o.charCodeAt(c)+1;l>255?o=o.substring(0,c-1)+String.fromCharCode(o.charCodeAt(c-1)+1)+"\0":o=o.substring(0,c)+String.fromCharCode(l)}}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){if(r-t>v)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var c=o.length,l=0;t<=r&&l<c;){this._map[t]=o[l++];++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 c=0;c<o;c++)void 0!==r[c]&&t(c,r[c]);else for(var l in r)t(l,r[l])}},{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 c=0,l=this.codespaceRanges,u=0,h=l.length;u<h;u++){c=(c<<8|t.charCodeAt(r+u))>>>0;for(var d=l[u],g=0,m=d.length;g<m;){var y=d[g++],v=d[g++];if(c>=y&&c<=v){o.charcode=c;o.length=u+1;return}}}o.charcode=0;o.length=1}},{key:"getCharCodeLength",value:function getCharCodeLength(t){for(var r=this.codespaceRanges,o=0,c=r.length;o<c;o++)for(var l=r[o],u=0,h=l.length;u<h;){var d=l[u++],g=l[u++];if(t>=d&&t<=g)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=k;var _=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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(IdentityCMap,t);var r=_createSuper(IdentityCMap);function IdentityCMap(t,o){var c;_classCallCheck(this,IdentityCMap);(c=r.call(this)).vertical=t;c.addCodespaceRange(o,0,65535);return c}_createClass(IdentityCMap,[{key:"mapCidRange",value:function mapCidRange(t,r,o){(0,l.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function mapBfRange(t,r,o){(0,l.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){(0,l.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function mapOne(t,r){(0,l.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,l.unreachable)("should not access .isIdentityCMap")}}]);return IdentityCMap}(k);r.IdentityCMap=_;var w=function BinaryCMapReaderClosure(){function hexToInt(t,r){for(var o=0,c=0;c<=r;c++)o=o<<8|t[c];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 c=0,l=o;l>=0;l--){c+=t[l]+r[l];t[l]=255&c;c>>=8}}function incHex(t,r){for(var o=1,c=r;c>=0&&o>0;c--){o+=t[c];t[c]=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 l.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,c=this.tmpBuf,u=0;do{var h=this.readByte();if(h<0)throw new l.FormatError("unexpected EOF in bcmap");o=!(128&h);c[u++]=127&h}while(!o);for(var d=r,g=0,m=0;d>=0;){for(;m<8&&c.length>0;){g|=c[--u]<<m;m+=7}t[d]=255&g;d--;g>>=8;m-=8}}},{key:"readHexSigned",value:function readHexSigned(t,r){this.readHexNumber(t,r);for(var o=1&t[r]?255:0,c=0,l=0;l<=r;l++){c=(1&c)<<8|t[l];t[l]=c>>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}(),o=function(){function BinaryCMapReader(){_classCallCheck(this,BinaryCMapReader)}_createClass(BinaryCMapReader,[{key:"process",value:(o=_asyncToGenerator(c.default.mark((function _callee(o,l,u){var h,d,g,m,y,v,k,_,w,S,C,x,O,T,E,M,R,j,D,N,L;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:h=new r(o);d=h.readByte();l.vertical=!!(1&d);g=null;m=new Uint8Array(t);y=new Uint8Array(t);v=new Uint8Array(t);k=new Uint8Array(t);_=new Uint8Array(t);case 9:if(!((S=h.readByte())>=0)){c.next=68;break}if(7!=(C=S>>5)){c.next=20;break}c.t0=31&S;c.next=0===c.t0?15:1===c.t0?17:19;break;case 15:h.readString();return c.abrupt("break",19);case 17:g=h.readString();return c.abrupt("break",19);case 19:return c.abrupt("continue",9);case 20:x=!!(16&S);if(!(1+(O=15&S)>t)){c.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:T=1;E=h.readNumber();c.t1=C;c.next=0===c.t1?29:1===c.t1?35:2===c.t1?41:3===c.t1?46:4===c.t1?53:5===c.t1?58:65;break;case 29:h.readHex(m,O);h.readHexNumber(y,O);addHex(y,m,O);l.addCodespaceRange(O+1,hexToInt(m,O),hexToInt(y,O));for(M=1;M<E;M++){incHex(y,O);h.readHexNumber(m,O);addHex(m,y,O);h.readHexNumber(y,O);addHex(y,m,O);l.addCodespaceRange(O+1,hexToInt(m,O),hexToInt(y,O))}return c.abrupt("break",66);case 35:h.readHex(m,O);h.readHexNumber(y,O);addHex(y,m,O);h.readNumber();for(R=1;R<E;R++){incHex(y,O);h.readHexNumber(m,O);addHex(m,y,O);h.readHexNumber(y,O);addHex(y,m,O);h.readNumber()}return c.abrupt("break",66);case 41:h.readHex(v,O);w=h.readNumber();l.mapOne(hexToInt(v,O),w);for(j=1;j<E;j++){incHex(v,O);if(!x){h.readHexNumber(_,O);addHex(v,_,O)}w=h.readSigned()+(w+1);l.mapOne(hexToInt(v,O),w)}return c.abrupt("break",66);case 46:h.readHex(m,O);h.readHexNumber(y,O);addHex(y,m,O);w=h.readNumber();l.mapCidRange(hexToInt(m,O),hexToInt(y,O),w);for(D=1;D<E;D++){incHex(y,O);if(x)m.set(y);else{h.readHexNumber(m,O);addHex(m,y,O)}h.readHexNumber(y,O);addHex(y,m,O);w=h.readNumber();l.mapCidRange(hexToInt(m,O),hexToInt(y,O),w)}return c.abrupt("break",66);case 53:h.readHex(v,T);h.readHex(k,O);l.mapOne(hexToInt(v,T),hexToStr(k,O));for(N=1;N<E;N++){incHex(v,T);if(!x){h.readHexNumber(_,T);addHex(v,_,T)}incHex(k,O);h.readHexSigned(_,O);addHex(k,_,O);l.mapOne(hexToInt(v,T),hexToStr(k,O))}return c.abrupt("break",66);case 58:h.readHex(m,T);h.readHexNumber(y,T);addHex(y,m,T);h.readHex(k,O);l.mapBfRange(hexToInt(m,T),hexToInt(y,T),hexToStr(k,O));for(L=1;L<E;L++){incHex(y,T);if(x)m.set(y);else{h.readHexNumber(m,T);addHex(m,y,T)}h.readHexNumber(y,T);addHex(y,m,T);h.readHex(k,O);l.mapBfRange(hexToInt(m,T),hexToInt(y,T),hexToStr(k,O))}return c.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(C));case 66:c.next=9;break;case 68:if(!g){c.next=70;break}return c.abrupt("return",u(g));case 70:return c.abrupt("return",l);case 71:case"end":return c.stop()}}),_callee)}))),function process(t,r,c){return o.apply(this,arguments)})}]);var o;return BinaryCMapReader}();return o}(),S=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("string"!=typeof t)throw new l.FormatError("Malformed CMap: expected string.")}function expectInt(t){if(!Number.isInteger(t))throw new l.FormatError("Malformed CMap: expected int.")}function parseBfChar(t,r){for(;;){var o=r.getObj();if(o===u.EOF)break;if((0,u.isCmd)(o,"endbfchar"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var l=o;t.mapOne(c,l)}}function parseBfRange(t,r){for(;;){var o=r.getObj();if(o===u.EOF)break;if((0,u.isCmd)(o,"endbfrange"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var h=strToInt(o);o=r.getObj();if(Number.isInteger(o)||"string"==typeof o){var d=Number.isInteger(o)?String.fromCharCode(o):o;t.mapBfRange(c,h,d)}else{if(!(0,u.isCmd)(o,"["))break;o=r.getObj();for(var g=[];!(0,u.isCmd)(o,"]")&&o!==u.EOF;){g.push(o);o=r.getObj()}t.mapBfRangeToArray(c,h,g)}}throw new l.FormatError("Invalid bf range.")}function parseCidChar(t,r){for(;;){var o=r.getObj();if(o===u.EOF)break;if((0,u.isCmd)(o,"endcidchar"))return;expectString(o);var c=strToInt(o);expectInt(o=r.getObj());var l=o;t.mapOne(c,l)}}function parseCidRange(t,r){for(;;){var o=r.getObj();if(o===u.EOF)break;if((0,u.isCmd)(o,"endcidrange"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var l=strToInt(o);expectInt(o=r.getObj());var h=o;t.mapCidRange(c,l,h)}}function parseCodespaceRange(t,r){for(;;){var o=r.getObj();if(o===u.EOF)break;if((0,u.isCmd)(o,"endcodespacerange"))return;if("string"!=typeof o)break;var c=strToInt(o);if("string"!=typeof(o=r.getObj()))break;var h=strToInt(o);t.addCodespaceRange(o.length,c,h)}throw new l.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();o instanceof u.Name&&(t.name=o.name)}function parseCMap(t,r,o,c){return _parseCMap.apply(this,arguments)}function _parseCMap(){return(_parseCMap=_asyncToGenerator(c.default.mark((function _callee3(t,r,o,h){var d,m,y;return c.default.wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:0;c.prev=1;if((y=r.getObj())!==u.EOF){c.next=7;break}return c.abrupt("break",39);case 7:if(!(y instanceof u.Name)){c.next=12;break}"WMode"===y.name?parseWMode(t,r):"CMapName"===y.name&&parseCMapName(t,r);d=y;c.next=29;break;case 12:if(!(y instanceof u.Cmd)){c.next=29;break}c.t0=y.cmd;c.next="endcmap"===c.t0?16:"usecmap"===c.t0?17:"begincodespacerange"===c.t0?19:"beginbfchar"===c.t0?21:"begincidchar"===c.t0?23:"beginbfrange"===c.t0?25:"begincidrange"===c.t0?27:29;break;case 16:return c.abrupt("break",39);case 17:d instanceof u.Name&&(m=d.name);return c.abrupt("break",29);case 19:parseCodespaceRange(t,r);return c.abrupt("break",29);case 21:parseBfChar(t,r);return c.abrupt("break",29);case 23:parseCidChar(t,r);return c.abrupt("break",29);case 25:parseBfRange(t,r);return c.abrupt("break",29);case 27:parseCidRange(t,r);return c.abrupt("break",29);case 29:c.next=37;break;case 31:c.prev=31;c.t1=c.catch(1);if(!(c.t1 instanceof g.MissingDataException)){c.next=35;break}throw c.t1;case 35:(0,l.warn)("Invalid cMap data: "+c.t1);return c.abrupt("continue",0);case 37:c.next=0;break;case 39:!h&&m&&(h=m);if(!h){c.next=42;break}return c.abrupt("return",extendCMap(t,o,h));case 42:return c.abrupt("return",t);case 43:case"end":return c.stop()}}),_callee3,null,[[1,31]])})))).apply(this,arguments)}function extendCMap(t,r,o){return _extendCMap.apply(this,arguments)}function _extendCMap(){return(_extendCMap=_asyncToGenerator(c.default.mark((function _callee4(t,r,o){var l,u;return c.default.wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:c.next=2;return createBuiltInCMap(o,r);case 2:t.useCMap=c.sent;if(0===t.numCodespaceRanges){l=t.useCMap.codespaceRanges;for(u=0;u<l.length;u++)t.codespaceRanges[u]=l[u].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(r,o){t.contains(r)||t.mapOne(r,t.useCMap.lookup(r))}));return c.abrupt("return",t);case 6:case"end":return c.stop()}}),_callee4)})))).apply(this,arguments)}function createBuiltInCMap(t,r){return _createBuiltInCMap.apply(this,arguments)}function _createBuiltInCMap(){return(_createBuiltInCMap=_asyncToGenerator(c.default.mark((function _callee5(t,r){var o,u,h,g,v;return c.default.wrap((function _callee5$(c){for(;;)switch(c.prev=c.next){case 0:if("Identity-H"!==t){c.next=4;break}return c.abrupt("return",new _(!1,2));case 4:if("Identity-V"!==t){c.next=6;break}return c.abrupt("return",new _(!0,2));case 6:if(y.includes(t)){c.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){c.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:c.next=12;return r(t);case 12:o=c.sent;u=o.cMapData;h=o.compressionType;g=new k(!0);if(h!==l.CMapCompressionType.BINARY){c.next=18;break}return c.abrupt("return",(new w).process(u,g,(function(t){return extendCMap(g,r,t)})));case 18:if(h!==l.CMapCompressionType.NONE){c.next=21;break}v=new d.Lexer(new m.Stream(u));return c.abrupt("return",parseCMap(g,v,r,null));case 21:throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.");case 22:case"end":return c.stop()}}),_callee5)})))).apply(this,arguments)}return{create:function create(t){return _asyncToGenerator(c.default.mark((function _callee2(){var r,o,l,g;return c.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:r=t.encoding;o=t.fetchBuiltInCMap;l=t.useCMap;if(!(r instanceof u.Name)){c.next=7;break}return c.abrupt("return",createBuiltInCMap(r.name,o));case 7:if(!(r instanceof h.BaseStream)){c.next=14;break}c.next=10;return parseCMap(new k,new d.Lexer(r),o,l);case 10:if(!(g=c.sent).isIdentityCMap){c.next=13;break}return c.abrupt("return",createBuiltInCMap(g.name,o));case 13:return c.abrupt("return",g);case 14:throw new Error("Encoding required.");case 15:case"end":return c.stop()}}),_callee2)})))()}}}();r.CMapFactory=S},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Parser=r.Linearization=r.Lexer=void 0;var c=o(4),l=o(147),u=o(150),h=o(170),d=o(172),g=o(173),m=o(175),y=o(176),v=o(179),k=o(181),_=o(183),w=o(152),S=o(184),C=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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function computeAdler32(t){for(var r=t.length,o=1,c=0,l=0;l<r;++l)c+=o+=255&t[l];return c%65521<<16|o%65521}var x=function(){function Parser(t){var r=t.lexer,o=t.xref,c=t.allowStreams,l=void 0!==c&&c,u=t.recoveryMode,h=void 0!==u&&u;_classCallCheck(this,Parser);this.lexer=r;this.xref=o;this.allowStreams=l;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 l.Cmd&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}},{key:"tryShift",value:function tryShift(){try{this.shift();return!0}catch(t){if(t instanceof 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 l.Cmd)switch(r.cmd){case"BI":return this.makeInlineImage(t);case"[":for(var o=[];!(0,l.isCmd)(this.buf1,"]")&&this.buf1!==l.EOF;)o.push(this.getObj(t));if(this.buf1===l.EOF){if(this.recoveryMode)return o;throw new u.ParserEOFException("End of file inside array.")}this.shift();return o;case"<<":for(var h=new l.Dict(this.xref);!(0,l.isCmd)(this.buf1,">>")&&this.buf1!==l.EOF;)if(this.buf1 instanceof l.Name){var d=this.buf1.name;this.shift();if(this.buf1===l.EOF)break;h.set(d,this.getObj(t))}else{(0,c.info)("Malformed dictionary: key must be a name object");this.shift()}if(this.buf1===l.EOF){if(this.recoveryMode)return h;throw new u.ParserEOFException("End of file inside dictionary.")}if((0,l.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,l.isCmd)(this.buf2,"R")){var g=l.Ref.get(r,this.buf1);this.shift();this.shift();return g}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,g=0;-1!==(r=t.getByte());)if(0===g)g=69===r?1:0;else if(1===g)g=73===r?2:0;else{(0,c.assert)(2===g,"findDefaultInlineStreamEnd - invalid state.");if(32===r||10===r||13===r){o=t.pos;for(var m=t.peekBytes(10),y=0,v=m.length;y<v;y++)if((0!==(r=m[y])||0===m[y+1])&&10!==r&&13!==r&&(r<32||r>127)){g=0;break}if(2!==g)continue;if(h.knownCommands){var k=h.peekObj();k instanceof l.Cmd&&!h.knownCommands[k.cmd]&&(g=0)}else(0,c.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===g)break}else g=0}if(-1===r){(0,c.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(o){(0,c.warn)('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-o))}}var _=4;t.skip(-_);r=t.peekByte();t.skip(_);(0,u.isWhiteSpace)(r)||_--;return t.pos-_-d}},{key:"findDCTDecodeInlineStreamEnd",value:function findDCTDecodeInlineStreamEnd(t){for(var r,o,l=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-l;if(-1===r){(0,c.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 l=t.pos;r=t.peekByte();for(;(0,u.isWhiteSpace)(r);){t.skip();r=t.peekByte()}if(62===r){t.skip();break}if(t.pos>l){var h=t.peekBytes(2);if(69===h[0]&&73===h[1])break}}var d=t.pos-o;if(-1===r){(0,c.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 l=t.pos-o;if(-1===r){(0,c.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-l);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return l}},{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 l.Dict(this.xref);!(0,l.isCmd)(this.buf1,"ID")&&this.buf1!==l.EOF;){if(!(this.buf1 instanceof l.Name))throw new c.FormatError("Dictionary key must be a name object");var d=this.buf1.name;this.shift();if(this.buf1===l.EOF)break;h.set(d,this.getObj(t))}-1!==o.beginInlineImagePos&&(r=u.pos-o.beginInlineImagePos);var g,m=h.get("F","Filter");if(m instanceof l.Name)g=m.name;else if(Array.isArray(m)){var y=this.xref.fetchIfRef(m[0]);y instanceof l.Name&&(g=y.name)}var v,k=u.pos;switch(g){case"DCT":case"DCTDecode":v=this.findDCTDecodeInlineStreamEnd(u);break;case"A85":case"ASCII85Decode":v=this.findASCII85DecodeInlineStreamEnd(u);break;case"AHx":case"ASCIIHexDecode":v=this.findASCIIHexDecodeInlineStreamEnd(u);break;default:v=this.findDefaultInlineStreamEnd(u)}var _,w=u.makeSubStream(k,v,h);if(v<1e3&&r<5552){var S=w.getBytes();w.reset();var C=u.pos;u.pos=o.beginInlineImagePos;var x=u.getBytes(r);u.pos=C;_=computeAdler32(S)+"_"+computeAdler32(x);var O=this.imageCache[_];if(void 0!==O){this.buf2=l.Cmd.get("EI");this.shift();O.reset();return O}}t&&(w=t.createStream(w,v));(w=this.filter(w,h,v)).dict=h;if(void 0!==_){w.cacheKey="inline_".concat(v,"_").concat(_);this.imageCache[_]=w}this.buf2=l.Cmd.get("EI");this.shift();return w}},{key:"_findStreamLength",value:function _findStreamLength(t,r){var o=this.lexer.stream;o.pos=t;for(var c=r.length;o.pos<o.end;){var l=o.peekBytes(2048),u=l.length-c;if(u<=0)break;for(var h=0;h<u;){for(var d=0;d<c&&l[h+d]===r[d];)d++;if(d>=c){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,g=t.get("Length");if(!Number.isInteger(g)){(0,c.info)('Bad length "'.concat(g&&g.toString(),'" in stream.'));g=0}h.pos=d+g;o.nextChar();if(this.tryShift()&&(0,l.isCmd)(this.buf2,"endstream"))this.shift();else{var m=new Uint8Array([101,110,100,115,116,114,101,97,109]),y=this._findStreamLength(d,m);if(y<0){for(var v=1;v<=1;v++){var k=m.length-v,_=m.slice(0,k),w=this._findStreamLength(d,_);if(w>=0){var S=h.peekBytes(k+1)[k];if(!(0,u.isWhiteSpace)(S))break;(0,c.info)('Found "'.concat((0,c.bytesToString)(_),'" when ')+"searching for endstream command.");y=w;break}}if(y<0)throw new c.FormatError("Missing endstream command.")}g=y;o.nextChar();this.shift();this.shift()}this.shift();h=h.makeSubStream(d,g,t);r&&(h=r.createStream(h,g));(h=this.filter(h,t,g)).dict=t;return h}},{key:"filter",value:function filter(t,r,o){var filter=r.get("F","Filter"),u=r.get("DP","DecodeParms");if(filter instanceof l.Name){Array.isArray(u)&&(0,c.warn)("/DecodeParms should not be an Array, when /Filter is a Name.");return this.makeFilter(t,filter.name,o,u)}var h=o;if(Array.isArray(filter))for(var d=filter,g=u,m=0,y=d.length;m<y;++m){filter=this.xref.fetchIfRef(d[m]);if(!(filter instanceof l.Name))throw new c.FormatError('Bad filter name "'.concat(filter,'"'));u=null;Array.isArray(g)&&m in g&&(u=this.xref.fetchIfRef(g[m]));t=this.makeFilter(t,filter.name,h,u);h=null}return t}},{key:"makeFilter",value:function makeFilter(t,r,o,l){if(0===o){(0,c.warn)('Empty "'.concat(r,'" stream.'));return new w.NullStream}var x=this.xref.stats;try{switch(r){case"Fl":case"FlateDecode":x.addStreamType(c.StreamType.FLATE);return l?new S.PredictorStream(new m.FlateStream(t,o),o,l):new m.FlateStream(t,o);case"LZW":case"LZWDecode":x.addStreamType(c.StreamType.LZW);var O=1;if(l){l.has("EarlyChange")&&(O=l.get("EarlyChange"));return new S.PredictorStream(new _.LZWStream(t,o,O),o,l)}return new _.LZWStream(t,o,O);case"DCT":case"DCTDecode":x.addStreamType(c.StreamType.DCT);return new v.JpegStream(t,o,l);case"JPX":case"JPXDecode":x.addStreamType(c.StreamType.JPX);return new k.JpxStream(t,o,l);case"A85":case"ASCII85Decode":x.addStreamType(c.StreamType.A85);return new h.Ascii85Stream(t,o);case"AHx":case"ASCIIHexDecode":x.addStreamType(c.StreamType.AHX);return new d.AsciiHexStream(t,o);case"CCF":case"CCITTFaxDecode":x.addStreamType(c.StreamType.CCF);return new g.CCITTFaxStream(t,o,l);case"RL":case"RunLengthDecode":x.addStreamType(c.StreamType.RLX);return new C.RunLengthStream(t,o);case"JBIG2Decode":x.addStreamType(c.StreamType.JBIG);return new y.Jbig2Stream(t,o,l)}(0,c.warn)('Filter "'.concat(r,'" is not supported.'));return t}catch(t){if(t instanceof u.MissingDataException)throw t;(0,c.warn)('Invalid stream: "'.concat(t,'"'));return new w.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,l=0;if(45===t){l=-1;45===(t=this.nextChar())&&(t=this.nextChar())}else if(43===t){l=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((0,u.isWhiteSpace)(t)||-1===t){if(10===o&&0===l){(0,c.warn)("Lexer.getNumber - treating a single decimal point as zero.");return 0}if(0===o&&-1===l){(0,c.warn)("Lexer.getNumber - treating a single minus sign as zero.");return 0}}throw new c.FormatError("Invalid number: ".concat(String.fromCharCode(t)," (charCode ").concat(t,")"))}l=l||1;for(var h=t-48,d=0,g=1;(t=this.nextChar())>=0;)if(t>=48&&t<=57){var m=t-48;if(r)d=10*d+m;else{0!==o&&(o*=10);h=10*h+m}}else if(46===t){if(0!==o)break;o=1}else if(45===t)(0,c.warn)("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t){g=45===t?-1:1;this.nextChar()}else if(t<48||t>57)break;r=!0}0!==o&&(h/=o);r&&(h*=Math.pow(10,g*d));return l*h}},{key:"getString",value:function getString(){var t=1,r=!1,o=this.strBuf;o.length=0;for(var l=this.nextChar();;){var u=!1;switch(0|l){case-1:(0,c.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(l=this.nextChar()){case-1:(0,c.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(l));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var h=15&l;u=!0;if((l=this.nextChar())>=48&&l<=55){h=(h<<3)+(15&l);if((l=this.nextChar())>=48&&l<=55){u=!1;h=(h<<3)+(15&l)}}o.push(String.fromCharCode(h));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:o.push(String.fromCharCode(l))}break;default:o.push(String.fromCharCode(l))}if(r)break;u||(l=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,c.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,c.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,c.warn)("Name token is longer than allowed by the spec: ".concat(o.length));return l.Name.get(o.join(""))}},{key:"_hexStringWarn",value:function _hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,c.warn)("getHexString - ignoring invalid character: ".concat(t)):(0,c.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function getHexString(){var t=this.strBuf;t.length=0;var r,o,l=this.currentChar,u=!0;this._hexStringNumWarn=0;for(;;){if(l<0){(0,c.warn)("Unterminated hex string");break}if(62===l){this.nextChar();break}if(1!==O[l]){if(u){if(-1===(r=toHexDigit(l))){this._hexStringWarn(l);l=this.nextChar();continue}}else{if(-1===(o=toHexDigit(l))){this._hexStringWarn(l);l=this.nextChar();continue}t.push(String.fromCharCode(r<<4|o))}u=!u;l=this.nextChar()}else l=this.nextChar()}return t.join("")}},{key:"getObj",value:function getObj(){for(var t=!1,r=this.currentChar;;){if(r<0)return l.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(1!==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 l.Cmd.get("[");case 93:this.nextChar();return l.Cmd.get("]");case 60:if(60===(r=this.nextChar())){this.nextChar();return l.Cmd.get("<<")}return this.getHexString();case 62:if(62===(r=this.nextChar())){this.nextChar();return l.Cmd.get(">>")}return l.Cmd.get(">");case 123:this.nextChar();return l.Cmd.get("{");case 125:this.nextChar();return l.Cmd.get("}");case 41:this.nextChar();throw new c.FormatError("Illegal character: ".concat(r))}var o=String.fromCharCode(r);if(r<32||r>127){var u=this.peekChar();if(u>=32&&u<=127){this.nextChar();return l.Cmd.get(o)}}for(var h=this.knownCommands,d=h&&void 0!==h[o];(r=this.nextChar())>=0&&!O[r];){var g=o+String.fromCharCode(r);if(d&&void 0===h[g])break;if(128===o.length)throw new c.FormatError("Command token too long: ".concat(o.length));o=g;d=h&&void 0!==h[o]}if("true"===o)return!0;if("false"===o)return!1;if("null"===o)return null;"BI"===o&&(this.beginInlineImagePos=this.stream.pos);return l.Cmd.get(o)}},{key:"peekObj",value:function peekObj(){var t,r=this.stream.pos,o=this.currentChar,l=this.beginInlineImagePos;try{t=this.getObj()}catch(t){if(t instanceof u.MissingDataException)throw t;(0,c.warn)("peekObj: ".concat(t))}this.stream.pos=r;this.currentChar=o;this.beginInlineImagePos=l;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 E=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],c=t.get(r);if(Number.isInteger(c)&&(o?c>=0:c>0))return c;throw new Error('The "'.concat(r,'" parameter in the linearization ')+"dictionary is invalid.")}var r,o,c=new x({lexer:new T(t),xref:null}),u=c.getObj(),h=c.getObj(),d=c.getObj(),g=c.getObj();if(!(Number.isInteger(u)&&Number.isInteger(h)&&(0,l.isCmd)(d,"obj")&&g instanceof l.Dict&&"number"==typeof(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 c=0;c<r;c++){var l=o[c];if(!(Number.isInteger(l)&&l>0))throw new Error("Hint (".concat(c,") 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=E},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Ascii85Stream=void 0;var c=o(171),l=o(150);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(Ascii85Stream,t);var r=_createSuper(Ascii85Stream);function Ascii85Stream(t,o){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Ascii85Stream);o&&(o*=.8);(c=r.call(this,o)).str=t;c.dict=t.dict;c.input=new Uint8Array(5);return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Ascii85Stream,[{key:"readBlock",value:function readBlock(){for(var t=this.str,r=t.getByte();(0,l.isWhiteSpace)(r);)r=t.getByte();if(-1!==r&&126!==r){var o,c,u=this.bufferLength;if(122===r){o=this.ensureBuffer(u+4);for(c=0;c<4;++c)o[u+c]=0;this.bufferLength+=4}else{var h=this.input;h[0]=r;for(c=1;c<5;++c){r=t.getByte();for(;(0,l.isWhiteSpace)(r);)r=t.getByte();h[c]=r;if(-1===r||126===r)break}o=this.ensureBuffer(u+c-1);this.bufferLength+=c-1;if(c<5){for(;c<5;++c)h[c]=117;this.eof=!0}var d=0;for(c=0;c<5;++c)d=85*d+(h[c]-33);for(c=3;c>=0;--c){o[u+c]=255&d;d>>=8}}}else this.eof=!0}}]);return Ascii85Stream}(c.DecodeStream);r.Ascii85Stream=u},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.StreamsSequenceStream=r.DecodeStream=void 0;var c=o(151),l=o(152);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=new Uint8Array(o);c.set(r);return this.buffer=c}},{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],c=this.pos;if(t){this.ensureBuffer(c+t);r=c+t;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var l=this.bufferLength;r>l&&(r=l)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var u=this.buffer.subarray(c,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 c=t+r;this.bufferLength<=c&&!this.eof;)this.readBlock();return new l.Stream(this.buffer,t,r,o)}},{key:"getBaseStreams",value:function getBaseStreams(){return this.str?this.str.getBaseStreams():null}}]);return DecodeStream}(c.BaseStream);r.DecodeStream=h;var d=function(t){_inherits(StreamsSequenceStream,t);var r=_createSuper(StreamsSequenceStream);function StreamsSequenceStream(t){var o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_classCallCheck(this,StreamsSequenceStream);var l,u=0,d=_createForOfIteratorHelper(t);try{for(d.s();!(l=d.n()).done;){var g=l.value;u+=g instanceof h?g._rawMinBufferLength:g.length}}catch(t){d.e(t)}finally{d.f()}(o=r.call(this,u)).streams=t;o._onError=c;return o}_createClass(StreamsSequenceStream,[{key:"readBlock",value:function readBlock(){var t=this.streams;if(0!==t.length){var r,o=t.shift();try{r=o.getBytes()}catch(t){if(this._onError){this._onError(t,o.dict&&o.dict.objId);return}throw t}var c=this.bufferLength,l=c+r.length;this.ensureBuffer(l).set(r,c);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 c=t.value.getBaseStreams();c&&r.push.apply(r,_toConsumableArray(c))}}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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(AsciiHexStream,t);var r=_createSuper(AsciiHexStream);function AsciiHexStream(t,o){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,AsciiHexStream);o&&(o*=.5);(c=r.call(this,o)).str=t;c.dict=t.dict;c.firstDigit=-1;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(AsciiHexStream,[{key:"readBlock",value:function readBlock(){var t=this.str.getBytes(8e3);if(t.length){var r,o=t.length+1>>1,c=this.ensureBuffer(this.bufferLength+o),l=this.bufferLength,u=this.firstDigit,h=_createForOfIteratorHelper(t);try{for(h.s();!(r=h.n()).done;){var d=r.value,g=void 0;if(d>=48&&d<=57)g=15&d;else{if(!(d>=65&&d<=70||d>=97&&d<=102)){if(62===d){this.eof=!0;break}continue}g=9+(15&d)}if(u<0)u=g;else{c[l++]=u<<4|g;u=-1}}}catch(t){h.e(t)}finally{h.f()}if(u>=0&&this.eof){c[l++]=u<<4;u=-1}this.firstDigit=u;this.bufferLength=l}else this.eof=!0}}]);return AsciiHexStream}(o(171).DecodeStream);r.AsciiHexStream=c},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxStream=void 0;var c=o(174),l=o(171),u=o(147);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(CCITTFaxStream,t);var r=_createSuper(CCITTFaxStream);function CCITTFaxStream(t,o,l){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;l instanceof u.Dict||(l=u.Dict.empty);var d={next:function next(){return t.getByte()}};h.ccittFaxDecoder=new c.CCITTFaxDecoder(d,{K:l.get("K"),EndOfLine:l.get("EndOfLine"),EncodedByteAlign:l.get("EncodedByteAlign"),Columns:l.get("Columns"),Rows:l.get("Rows"),EndOfBlock:l.get("EndOfBlock"),BlackIs1:l.get("BlackIs1")});return h}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}(l.DecodeStream);r.CCITTFaxStream=h},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxDecoder=void 0;var 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var l=-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]],g=[[-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]],m=[[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,c=r.EndOfBlock;null==c&&(c=!0);this.eoblock=c;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);Object.defineProperty(t,"prototype",{writable:!1});return t}(CCITTFaxDecoder,[{key:"readNextChar",value:function readNextChar(){if(this.eof)return-1;var t,r,o,u,h,d=this.refLine,g=this.codingLine,m=this.columns;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var y,v,k;if(this.nextLine2D){for(u=0;g[u]<m;++u)d[u]=g[u];d[u++]=m;d[u]=m;g[0]=0;this.codingPos=0;t=0;r=0;for(;g[this.codingPos]<m;)switch(y=this._getTwoDimCode()){case 0:this._addPixels(d[t+1],r);d[t+1]<m&&(t+=2);break;case 1:y=v=0;if(r){do{y+=k=this._getBlackCode()}while(k>=64);do{v+=k=this._getWhiteCode()}while(k>=64)}else{do{y+=k=this._getWhiteCode()}while(k>=64);do{v+=k=this._getBlackCode()}while(k>=64)}this._addPixels(g[this.codingPos]+y,r);g[this.codingPos]<m&&this._addPixels(g[this.codingPos]+v,1^r);for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2;break;case 7:this._addPixels(d[t]+3,r);r^=1;if(g[this.codingPos]<m){++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case 5:this._addPixels(d[t]+2,r);r^=1;if(g[this.codingPos]<m){++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case 3:this._addPixels(d[t]+1,r);r^=1;if(g[this.codingPos]<m){++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case 2:this._addPixels(d[t],r);r^=1;if(g[this.codingPos]<m){++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case 8:this._addPixelsNeg(d[t]-3,r);r^=1;if(g[this.codingPos]<m){t>0?--t:++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case 6:this._addPixelsNeg(d[t]-2,r);r^=1;if(g[this.codingPos]<m){t>0?--t:++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case 4:this._addPixelsNeg(d[t]-1,r);r^=1;if(g[this.codingPos]<m){t>0?--t:++t;for(;d[t]<=g[this.codingPos]&&d[t]<m;)t+=2}break;case l:this._addPixels(m,0);this.eof=!0;break;default:(0,c.info)("bad 2d code");this._addPixels(m,0);this.err=!0}}else{g[0]=0;this.codingPos=0;r=0;for(;g[this.codingPos]<m;){y=0;if(r)do{y+=k=this._getBlackCode()}while(k>=64);else do{y+=k=this._getWhiteCode()}while(k>=64);this._addPixels(g[this.codingPos]+y,r);r^=1}}var _=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){y=this._lookBits(12);if(this.eoline)for(;y!==l&&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);_=!0}else y===l&&(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&&_&&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,c.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))===l){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)}}g[0]>0?this.outputBits=g[this.codingPos=0]:this.outputBits=g[this.codingPos=1];this.row++}if(this.outputBits>=8){h=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&g[this.codingPos]<m){this.codingPos++;this.outputBits=g[this.codingPos]-g[this.codingPos-1]}}else{o=8;h=0;do{if("number"!=typeof this.outputBits)throw new c.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');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(g[this.codingPos]<m){this.codingPos++;this.outputBits=g[this.codingPos]-g[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,l=this.codingPos;if(t>o[l]){if(t>this.columns){(0,c.info)("row is wrong length");this.err=!0;t=this.columns}1&l^r&&++l;o[l]=t}this.codingPos=l}},{key:"_addPixelsNeg",value:function _addPixelsNeg(t,r){var o=this.codingLine,l=this.codingPos;if(t>o[l]){if(t>this.columns){(0,c.info)("row is wrong length");this.err=!0;t=this.columns}1&l^r&&++l;o[l]=t}else if(t<o[l]){if(t<0){(0,c.info)("invalid code");this.err=!0;t=0}for(;l>0&&t<o[l-1];)--l;o[l]=t}this.codingPos=l}},{key:"_findTableCode",value:function _findTableCode(t,r,o,c){for(var u=c||0,h=t;h<=r;++h){var d=this._lookBits(h);if(d===l)return[!0,1,!1];h<r&&(d<<=r-h);if(!u||d>=u){var g=o[d-u];if(g[0]===h){this._eatBits(h);return[!0,g[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,c.info)("Bad two dim code");return l}},{key:"_getWhiteCode",value:function _getWhiteCode(){var t,r=0;if(this.eoblock){if((r=this._lookBits(12))===l)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,c.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))===l)return 1;if((r=t>>7==0?g[t]:t>>9==0&&t>>7!=0?m[(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,m,64))[0])return o[1];if((o=this._findTableCode(10,13,g))[0])return o[1]}(0,c.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?l: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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.FlateStream=void 0;var c=o(171),l=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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]),g=[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],m=[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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(FlateStream,t);var r=_createSuper(FlateStream);function FlateStream(t,o){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,FlateStream);(c=r.call(this,o)).str=t;c.dict=t.dict;var u=t.getByte(),h=t.getByte();if(-1===u||-1===h)throw new l.FormatError("Invalid header in flate stream: ".concat(u,", ").concat(h));if(8!=(15&u))throw new l.FormatError("Unknown compression method in flate stream: ".concat(u,", ").concat(h));if(((u<<8)+h)%31!=0)throw new l.FormatError("Bad FCHECK in flate stream: ".concat(u,", ").concat(h));if(32&h)throw new l.FormatError("FDICT bit set in flate stream: ".concat(u,", ").concat(h));c.codeSize=0;c.codeBuf=0;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(FlateStream,[{key:"getBits",value:function getBits(t){for(var r,o=this.str,c=this.codeSize,u=this.codeBuf;c<t;){if(-1===(r=o.getByte()))throw new l.FormatError("Bad encoding in flate stream");u|=r<<c;c+=8}r=u&(1<<t)-1;this.codeBuf=u>>t;this.codeSize=c-=t;return r}},{key:"getCode",value:function getCode(t){for(var r,o=this.str,c=t[0],u=t[1],h=this.codeSize,d=this.codeBuf;h<u&&-1!==(r=o.getByte());){d|=r<<h;h+=8}var g=c[d&(1<<u)-1],m=g>>16,y=65535&g;if(m<1||h<m)throw new l.FormatError("Bad encoding in flate stream");this.codeBuf=d>>m;this.codeSize=h-m;return y}},{key:"generateHuffmanTable",value:function generateHuffmanTable(t){var r,o=t.length,c=0;for(r=0;r<o;++r)t[r]>c&&(c=t[r]);for(var l=1<<c,u=new Int32Array(l),h=1,d=0,g=2;h<=c;++h,d<<=1,g<<=1)for(var m=0;m<o;++m)if(t[m]===h){var y=0,v=d;for(r=0;r<h;++r){y=y<<1|1&v;v>>=1}for(r=y;r<l;r+=g)u[r]=h<<16|m;++d}return[u,c]}},{key:"readBlock",value:function readBlock(){var t,r,o=this.str,c=this.getBits(3);1&c&&(this.eof=!0);if(0!==(c>>=1)){var y,v;if(1===c){y=g;v=m}else{if(2!==c)throw new l.FormatError("Unknown block type in flate stream");var k,_=this.getBits(5)+257,w=this.getBits(5)+1,S=this.getBits(4)+4,C=new Uint8Array(u.length);for(k=0;k<S;++k)C[u[k]]=this.getBits(3);var x=this.generateHuffmanTable(C);r=0;k=0;for(var O,T,E,M=_+w,R=new Uint8Array(M);k<M;){var j=this.getCode(x);if(16===j){O=2;T=3;E=r}else if(17===j){O=3;T=3;E=r=0}else{if(18!==j){R[k++]=r=j;continue}O=7;T=11;E=r=0}for(var D=this.getBits(O)+T;D-- >0;)R[k++]=E}y=this.generateHuffmanTable(R.subarray(0,_));v=this.generateHuffmanTable(R.subarray(_,M))}for(var N=(t=this.buffer)?t.length:0,L=this.bufferLength;;){var U=this.getCode(y);if(U<256){L+1>=N&&(N=(t=this.ensureBuffer(L+1)).length);t[L++]=U}else{if(256===U){this.bufferLength=L;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 $=(65535&U)+H;L+r>=N&&(N=(t=this.ensureBuffer(L+r)).length);for(var X=0;X<r;++X,++L)t[L]=t[L-$]}}}else{var q;if(-1===(q=o.getByte()))throw new l.FormatError("Bad block header in flate stream");var G=q;if(-1===(q=o.getByte()))throw new l.FormatError("Bad block header in flate stream");G|=q<<8;if(-1===(q=o.getByte()))throw new l.FormatError("Bad block header in flate stream");var z=q;if(-1===(q=o.getByte()))throw new l.FormatError("Bad block header in flate stream");if((z|=q<<8)!==(65535&~G)&&(0!==G||0!==z))throw new l.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;var W=this.bufferLength,V=W+G;t=this.ensureBuffer(V);this.bufferLength=V;if(0===G)-1===o.peekByte()&&(this.eof=!0);else{var K=o.getBytes(G);t.set(K,W);K.length<G&&(this.eof=!0)}}}}]);return FlateStream}(c.DecodeStream);r.FlateStream=y},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Stream=void 0;var c=o(151),l=o(171),u=o(147),h=o(177),d=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(Jbig2Stream,t);var r=_createSuper(Jbig2Stream);function Jbig2Stream(t,o,c){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Jbig2Stream);(l=r.call(this,o)).stream=t;l.dict=t.dict;l.maybeLength=o;l.params=c;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Jbig2Stream,[{key:"bytes",get:function get(){return(0,d.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 h.Jbig2Image,r=[];if(this.params instanceof u.Dict){var o=this.params.get("JBIG2Globals");if(o instanceof c.BaseStream){var l=o.getBytes();r.push({data:l,start:0,end:l.length})}}r.push({data:this.bytes,start:0,end:this.bytes.length});for(var d=t.parseChunks(r),g=d.length,m=0;m<g;m++)d[m]^=255;this.buffer=d;this.bufferLength=g;this.eof=!0}}}]);return Jbig2Stream}(l.DecodeStream);r.Jbig2Stream=g},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Image=void 0;var c=o(4),l=o(150),u=o(178),h=o(174);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(Jbig2Error,t);var r=_createSuper(Jbig2Error);function Jbig2Error(t){_classCallCheck(this,Jbig2Error);return r.call(this,"JBIG2 error: ".concat(t),"Jbig2Error")}return _createClass(Jbig2Error)}(c.BaseException),g=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}(),m=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,c.shadow)(this,"decoder",t)}},{key:"contextCache",get:function get(){var t=new g;return(0,c.shadow)(this,"contextCache",t)}}]);return DecodingContext}();function decodeInteger(t,r,o){var c=t.getContexts(r),l=1;function readBits(t){for(var r=0,u=0;u<t;u++){var h=o.readBit(c,l);l=l<256?l<<1|h:511&(l<<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 c=t.getContexts("IAID"),l=1,u=0;u<o;u++){l=l<<1|r.readBit(c,l)}return o<31?l&(1<<o)-1:2147483647&l}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}]],k=[{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}]}],_=[39717,1941,229,405],w=[32,8];function decodeBitmap(t,r,o,c,l,u,h,d){if(t){return decodeMMRBitmap(new M(d.data,d.start,d.end),r,o,!1)}if(0===c&&!u&&!l&&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 c,l,u,h,d,g,m,y=o.decoder,v=o.contextCache.getContexts("GB"),k=[];for(l=0;l<r;l++){d=k[l]=new Uint8Array(t);g=l<1?d:k[l-1];c=(m=l<2?d:k[l-2])[0]<<13|m[1]<<12|m[2]<<11|g[0]<<7|g[1]<<6|g[2]<<5|g[3]<<4;for(u=0;u<t;u++){d[u]=h=y.readBit(v,c);c=(31735&c)<<1|(u+3<t?m[u+3]<<11:0)|(u+4<t?g[u+4]<<4:0)|h}}return k}(r,o,d);var g=!!u,m=v[c].concat(h);m.sort((function(t,r){return t.y-r.y||t.x-r.x}));var y,k,w=m.length,S=new Int8Array(w),C=new Int8Array(w),x=[],O=0,T=0,E=0,R=0;for(k=0;k<w;k++){S[k]=m[k].x;C[k]=m[k].y;T=Math.min(T,m[k].x);E=Math.max(E,m[k].x);R=Math.min(R,m[k].y);k<w-1&&m[k].y===m[k+1].y&&m[k].x===m[k+1].x-1?O|=1<<w-1-k:x.push(k)}var j=x.length,D=new Int8Array(j),N=new Int8Array(j),L=new Uint16Array(j);for(y=0;y<j;y++){k=x[y];D[y]=m[k].x;N[y]=m[k].y;L[y]=1<<w-1-k}for(var U,H,$,X,q,G=-T,z=-R,W=r-E,V=_[c],K=new Uint8Array(r),Y=[],J=d.decoder,Z=d.contextCache.getContexts("GB"),Q=0,ee=0,te=0;te<o;te++){if(l){if(Q^=J.readBit(Z,V)){Y.push(K);continue}}K=new Uint8Array(K);Y.push(K);for(U=0;U<r;U++)if(g&&u[te][U])K[U]=0;else{if(U>=G&&U<W&&te>=z){ee=ee<<1&O;for(k=0;k<j;k++){H=te+N[k];$=U+D[k];(X=Y[H][$])&&(ee|=X=L[k])}}else{ee=0;q=w-1;for(k=0;k<w;k++,q--)($=U+S[k])>=0&&$<r&&(H=te+C[k])>=0&&(X=Y[H][$])&&(ee|=X<<q)}var re=J.readBit(Z,ee);K[U]=re}}return Y}function decodeRefinement(t,r,o,c,l,u,h,g,m){var y=k[o].coding;0===o&&(y=y.concat([g[0]]));var v,_=y.length,S=new Int32Array(_),C=new Int32Array(_);for(v=0;v<_;v++){S[v]=y[v].x;C[v]=y[v].y}var x=k[o].reference;0===o&&(x=x.concat([g[1]]));var O=x.length,T=new Int32Array(O),E=new Int32Array(O);for(v=0;v<O;v++){T[v]=x[v].x;E[v]=x[v].y}for(var M=c[0].length,R=c.length,j=w[o],D=[],N=m.decoder,L=m.contextCache.getContexts("GR"),U=0,H=0;H<r;H++){if(h){if(U^=N.readBit(L,j))throw new d("prediction is not supported")}var $=new Uint8Array(t);D.push($);for(var X=0;X<t;X++){var q=void 0,G=void 0,z=0;for(v=0;v<_;v++){q=H+C[v];G=X+S[v];q<0||G<0||G>=t?z<<=1:z=z<<1|D[q][G]}for(v=0;v<O;v++){q=H+E[v]-u;G=X+T[v]-l;q<0||q>=R||G<0||G>=M?z<<=1:z=z<<1|c[q][G]}var W=N.readBit(L,z);$[X]=W}}return D}function decodeTextRegion(t,r,o,c,l,u,h,g,m,y,v,k,_,w,S,C,x,O,T){if(t&&r)throw new d("refinement with Huffman is not supported");var E,M,R=[];for(E=0;E<c;E++){M=new Uint8Array(o);if(l)for(var j=0;j<o;j++)M[j]=l;R.push(M)}var D=x.decoder,N=x.contextCache,L=t?-w.tableDeltaT.decode(T):-decodeInteger(N,"IADT",D),U=0;E=0;for(;E<u;){L+=t?w.tableDeltaT.decode(T):decodeInteger(N,"IADT",D);for(var H=U+=t?w.tableFirstS.decode(T):decodeInteger(N,"IAFS",D);;){var $=0;h>1&&($=t?T.readBits(O):decodeInteger(N,"IAIT",D));var X=h*L+$,q=t?w.symbolIDTable.decode(T):decodeIAID(N,D,m),G=r&&(t?T.readBit():decodeInteger(N,"IARI",D)),z=g[q],W=z[0].length,V=z.length;if(G){var K=decodeInteger(N,"IARDW",D),Y=decodeInteger(N,"IARDH",D);z=decodeRefinement(W+=K,V+=Y,S,z,(K>>1)+decodeInteger(N,"IARDX",D),(Y>>1)+decodeInteger(N,"IARDY",D),!1,C,x)}var J=X-(1&k?0:V-1),Z=H-(2&k?W-1:0),Q=void 0,ee=void 0,te=void 0;if(y){for(Q=0;Q<V;Q++)if(M=R[Z+Q]){te=z[Q];var re=Math.min(o-J,W);switch(_){case 0:for(ee=0;ee<re;ee++)M[J+ee]|=te[ee];break;case 2:for(ee=0;ee<re;ee++)M[J+ee]^=te[ee];break;default:throw new d("operator ".concat(_," is not supported"))}}H+=V-1}else{for(ee=0;ee<V;ee++)if(M=R[J+ee]){te=z[ee];switch(_){case 0:for(Q=0;Q<W;Q++)M[Z+Q]|=te[Q];break;case 2:for(Q=0;Q<W;Q++)M[Z+Q]^=te[Q];break;default:throw new d("operator ".concat(_," is not supported"))}}H+=W-1}E++;var ae=t?w.tableDeltaS.decode(T):decodeInteger(N,"IADS",D);if(null===ae)break;H+=ae+v}}return R}function readSegmentHeader(t,r){var o={};o.number=(0,l.readUint32)(t,r);var c=t[r+4],u=63&c;if(!y[u])throw new d("invalid segment type: "+u);o.type=u;o.typeName=y[u];o.deferredNonRetain=!!(128&c);var h=!!(64&c),g=t[r+5],m=g>>5&7,v=[31&g],k=r+6;if(7===g){m=536870911&(0,l.readUint32)(t,k-1);k+=3;var _=m+7>>3;v[0]=t[k++];for(;--_>0;)v.push(t[k++])}else if(5===g||6===g)throw new d("invalid referred-to flags");o.retainBits=v;var w=4;o.number<=256?w=1:o.number<=65536&&(w=2);var C,x,O=[];for(C=0;C<m;C++){var T=void 0;T=1===w?t[k]:2===w?(0,l.readUint16)(t,k):(0,l.readUint32)(t,k);O.push(T);k+=w}o.referredTo=O;if(h){o.pageAssociation=(0,l.readUint32)(t,k);k+=4}else o.pageAssociation=t[k++];o.length=(0,l.readUint32)(t,k);k+=4;if(4294967295===o.length){if(38!==u)throw new d("invalid unknown segment length");var E=readRegionSegmentInformation(t,k),M=!!(1&t[k+S]),R=new Uint8Array(6);if(!M){R[0]=255;R[1]=172}R[2]=E.height>>>24&255;R[3]=E.height>>16&255;R[4]=E.height>>8&255;R[5]=255&E.height;for(C=k,x=t.length;C<x;C++){for(var j=0;j<6&&R[j]===t[C+j];)j++;if(6===j){o.length=C+6;break}}if(4294967295===o.length)throw new d("segment end was not found")}o.headerEnd=k;return o}function readSegments(t,r,o,c){for(var l=[],u=o;u<c;){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}l.push(d);if(51===h.type)break}if(t.randomAccess)for(var g=0,m=l.length;g<m;g++){l[g].start=u;u+=l[g].header.length;l[g].end=u}return l}function readRegionSegmentInformation(t,r){return{width:(0,l.readUint32)(t,r),height:(0,l.readUint32)(t,r+4),x:(0,l.readUint32)(t,r+8),y:(0,l.readUint32)(t,r+12),combinationOperator:7&t[r+16]}}var S=17;function processSegment(t,r){var o,c,u,h,g=t.header,m=t.data,y=t.end,v=t.start;switch(g.type){case 0:var k={},_=(0,l.readUint16)(m,v);k.huffman=!!(1&_);k.refinement=!!(2&_);k.huffmanDHSelector=_>>2&3;k.huffmanDWSelector=_>>4&3;k.bitmapSizeSelector=_>>6&1;k.aggregationInstancesSelector=_>>7&1;k.bitmapCodingContextUsed=!!(256&_);k.bitmapCodingContextRetained=!!(512&_);k.template=_>>10&3;k.refinementTemplate=_>>12&1;v+=2;if(!k.huffman){h=0===k.template?4:1;c=[];for(u=0;u<h;u++){c.push({x:(0,l.readInt8)(m,v),y:(0,l.readInt8)(m,v+1)});v+=2}k.at=c}if(k.refinement&&!k.refinementTemplate){c=[];for(u=0;u<2;u++){c.push({x:(0,l.readInt8)(m,v),y:(0,l.readInt8)(m,v+1)});v+=2}k.refinementAt=c}k.numberOfExportedSymbols=(0,l.readUint32)(m,v);v+=4;k.numberOfNewSymbols=(0,l.readUint32)(m,v);v+=4;o=[k,g.number,g.referredTo,m,v,y];break;case 6:case 7:var w={};w.info=readRegionSegmentInformation(m,v);v+=S;var C=(0,l.readUint16)(m,v);v+=2;w.huffman=!!(1&C);w.refinement=!!(2&C);w.logStripSize=C>>2&3;w.stripSize=1<<w.logStripSize;w.referenceCorner=C>>4&3;w.transposed=!!(64&C);w.combinationOperator=C>>7&3;w.defaultPixelValue=C>>9&1;w.dsOffset=C<<17>>27;w.refinementTemplate=C>>15&1;if(w.huffman){var x=(0,l.readUint16)(m,v);v+=2;w.huffmanFS=3&x;w.huffmanDS=x>>2&3;w.huffmanDT=x>>4&3;w.huffmanRefinementDW=x>>6&3;w.huffmanRefinementDH=x>>8&3;w.huffmanRefinementDX=x>>10&3;w.huffmanRefinementDY=x>>12&3;w.huffmanRefinementSizeSelector=!!(16384&x)}if(w.refinement&&!w.refinementTemplate){c=[];for(u=0;u<2;u++){c.push({x:(0,l.readInt8)(m,v),y:(0,l.readInt8)(m,v+1)});v+=2}w.refinementAt=c}w.numberOfSymbolInstances=(0,l.readUint32)(m,v);v+=4;o=[w,g.referredTo,m,v,y];break;case 16:var O={},T=m[v++];O.mmr=!!(1&T);O.template=T>>1&3;O.patternWidth=m[v++];O.patternHeight=m[v++];O.maxPatternIndex=(0,l.readUint32)(m,v);v+=4;o=[O,g.number,m,v,y];break;case 22:case 23:var E={};E.info=readRegionSegmentInformation(m,v);v+=S;var M=m[v++];E.mmr=!!(1&M);E.template=M>>1&3;E.enableSkip=!!(8&M);E.combinationOperator=M>>4&7;E.defaultPixelValue=M>>7&1;E.gridWidth=(0,l.readUint32)(m,v);v+=4;E.gridHeight=(0,l.readUint32)(m,v);v+=4;E.gridOffsetX=4294967295&(0,l.readUint32)(m,v);v+=4;E.gridOffsetY=4294967295&(0,l.readUint32)(m,v);v+=4;E.gridVectorX=(0,l.readUint16)(m,v);v+=2;E.gridVectorY=(0,l.readUint16)(m,v);v+=2;o=[E,g.referredTo,m,v,y];break;case 38:case 39:var R={};R.info=readRegionSegmentInformation(m,v);v+=S;var j=m[v++];R.mmr=!!(1&j);R.template=j>>1&3;R.prediction=!!(8&j);if(!R.mmr){h=0===R.template?4:1;c=[];for(u=0;u<h;u++){c.push({x:(0,l.readInt8)(m,v),y:(0,l.readInt8)(m,v+1)});v+=2}R.at=c}o=[R,m,v,y];break;case 48:var D={width:(0,l.readUint32)(m,v),height:(0,l.readUint32)(m,v+4),resolutionX:(0,l.readUint32)(m,v+8),resolutionY:(0,l.readUint32)(m,v+12)};4294967295===D.height&&delete D.height;var N=m[v+16];(0,l.readUint16)(m,v+17);D.lossless=!!(1&N);D.refinement=!!(2&N);D.defaultPixelValue=N>>2&1;D.combinationOperator=N>>3&3;D.requiresBuffer=!!(32&N);D.combinationOperatorOverride=!!(64&N);o=[D];break;case 49:case 50:case 51:case 62:break;case 53:o=[g.number,m,v,y];break;default:throw new d("segment type ".concat(g.typeName,"(").concat(g.type,")")+" is not implemented")}var L="on"+g.typeName;L in r&&r[L].apply(r,o)}function processSegments(t,r){for(var o=0,c=t.length;o<c;o++)processSegment(t[o],r)}var C=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 c=0,l=o.length;c<l;c++)o[c]=255;this.buffer=o}},{key:"drawBitmap",value:function drawBitmap(t,r){var o,c,l,u,h=this.currentPageInfo,g=t.width,m=t.height,y=h.width+7>>3,v=h.combinationOperatorOverride?t.combinationOperator:h.combinationOperator,k=this.buffer,_=128>>(7&t.x),w=t.y*y+(t.x>>3);switch(v){case 0:for(o=0;o<m;o++){l=_;u=w;for(c=0;c<g;c++){r[o][c]&&(k[u]|=l);if(!(l>>=1)){l=128;u++}}w+=y}break;case 2:for(o=0;o<m;o++){l=_;u=w;for(c=0;c<g;c++){r[o][c]&&(k[u]^=l);if(!(l>>=1)){l=128;u++}}w+=y}break;default:throw new d("operator ".concat(v," is not supported"))}}},{key:"onImmediateGenericRegion",value:function onImmediateGenericRegion(t,r,o,c){var l=t.info,u=new m(r,o,c),h=decodeBitmap(t.mmr,l.width,l.height,t.template,t.prediction,null,t.at,u);this.drawBitmap(l,h)}},{key:"onImmediateLosslessGenericRegion",value:function onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function onSymbolDictionary(t,r,o,c,u,h){var g,y;if(t.huffman){g=function getSymbolDictionaryHuffmanTables(t,r,o){var c,l,u,h,g=0;switch(t.huffmanDHSelector){case 0:case 1:c=getStandardTable(t.huffmanDHSelector+4);break;case 3:c=getCustomHuffmanTable(g,r,o);g++;break;default:throw new d("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:l=getStandardTable(t.huffmanDWSelector+2);break;case 3:l=getCustomHuffmanTable(g,r,o);g++;break;default:throw new d("invalid Huffman DW selector")}if(t.bitmapSizeSelector){u=getCustomHuffmanTable(g,r,o);g++}else u=getStandardTable(1);h=t.aggregationInstancesSelector?getCustomHuffmanTable(g,r,o):getStandardTable(1);return{tableDeltaHeight:c,tableDeltaWidth:l,tableBitmapSize:u,tableAggregateInstances:h}}(t,o,this.customTables);y=new M(c,u,h)}var v=this.symbols;v||(this.symbols=v={});for(var k=[],_=0,w=o.length;_<w;_++){var S=v[o[_]];S&&(k=k.concat(S))}var C=new m(c,u,h);v[r]=function decodeSymbolDictionary(t,r,o,c,u,h,g,m,y,v,k,_){if(t&&r)throw new d("symbol refinement with Huffman is not supported");var w,S,C=[],x=0,O=(0,l.log2)(o.length+c),T=k.decoder,E=k.contextCache;if(t){w=getStandardTable(1);S=[];O=Math.max(O,1)}for(;C.length<c;){x+=t?h.tableDeltaHeight.decode(_):decodeInteger(E,"IADH",T);for(var M=0,R=0,j=t?S.length:0;;){var D=t?h.tableDeltaWidth.decode(_):decodeInteger(E,"IADW",T);if(null===D)break;R+=M+=D;var N=void 0;if(r){var L=decodeInteger(E,"IAAI",T);if(L>1)N=decodeTextRegion(t,r,M,x,0,L,1,o.concat(C),O,0,0,1,0,h,y,v,k,0,_);else{var U=decodeIAID(E,T,O),H=decodeInteger(E,"IARDX",T),$=decodeInteger(E,"IARDY",T);N=decodeRefinement(M,x,y,U<o.length?o[U]:C[U-o.length],H,$,!1,v,k)}C.push(N)}else if(t)S.push(M);else{N=decodeBitmap(!1,M,x,g,!1,null,m,k);C.push(N)}}if(t&&!r){var X=h.tableBitmapSize.decode(_);_.byteAlign();var q=void 0;if(0===X)q=readUncompressedBitmap(_,R,x);else{var G=_.end,z=_.position+X;_.end=z;q=decodeMMRBitmap(_,R,x,!1);_.end=G;_.position=z}var W=S.length;if(j===W-1)C.push(q);else{var V=void 0,K=void 0,Y=0,J=void 0,Z=void 0;for(V=j;V<W;V++){J=Y+S[V];Z=[];for(K=0;K<x;K++)Z.push(q[K].subarray(Y,J));C.push(Z);Y=J}}}}for(var Q,ee,te=[],re=[],ae=!1,ne=o.length+c;re.length<ne;){for(var ie=t?w.decode(_):decodeInteger(E,"IAEX",T);ie--;)re.push(ae);ae=!ae}for(Q=0,ee=o.length;Q<ee;Q++)re[Q]&&te.push(o[Q]);for(var oe=0;oe<c;Q++,oe++)re[Q]&&te.push(C[oe]);return te}(t.huffman,t.refinement,k,t.numberOfNewSymbols,t.numberOfExportedSymbols,g,t.template,t.at,t.refinementTemplate,t.refinementAt,C,y)}},{key:"onImmediateTextRegion",value:function onImmediateTextRegion(t,r,o,c,u){for(var h,g,y=t.info,v=this.symbols,k=[],_=0,w=r.length;_<w;_++){var S=v[r[_]];S&&(k=k.concat(S))}var C=(0,l.log2)(k.length);if(t.huffman){g=new M(o,c,u);h=function getTextRegionHuffmanTables(t,r,o,c,l){for(var u=[],h=0;h<=34;h++){var g=l.readBits(4);u.push(new x([h,g,0,0]))}var m=new T(u,!1);u.length=0;for(var y=0;y<c;){var v=m.decode(l);if(v>=32){var k=void 0,_=void 0,w=void 0;switch(v){case 32:if(0===y)throw new d("no previous value in symbol ID table");_=l.readBits(2)+3;k=u[y-1].prefixLength;break;case 33:_=l.readBits(3)+3;k=0;break;case 34:_=l.readBits(7)+11;k=0;break;default:throw new d("invalid code length in symbol ID table")}for(w=0;w<_;w++){u.push(new x([y,k,0,0]));y++}}else{u.push(new x([y,v,0,0]));y++}}l.byteAlign();var S,C,O,E=new T(u,!1),M=0;switch(t.huffmanFS){case 0:case 1:S=getStandardTable(t.huffmanFS+6);break;case 3:S=getCustomHuffmanTable(M,r,o);M++;break;default:throw new d("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:C=getStandardTable(t.huffmanDS+8);break;case 3:C=getCustomHuffmanTable(M,r,o);M++;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(M,r,o);M++;break;default:throw new d("invalid Huffman DT selector")}if(t.refinement)throw new d("refinement with Huffman is not supported");return{symbolIDTable:E,tableFirstS:S,tableDeltaS:C,tableDeltaT:O}}(t,r,this.customTables,k.length,g)}var O=new m(o,c,u),E=decodeTextRegion(t.huffman,t.refinement,y.width,y.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,k,C,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,h,t.refinementTemplate,t.refinementAt,O,t.logStripSize,g);this.drawBitmap(y,E)}},{key:"onImmediateLosslessTextRegion",value:function onImmediateLosslessTextRegion(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function onPatternDictionary(t,r,o,c,l){var u=this.patterns;u||(this.patterns=u={});var h=new m(o,c,l);u[r]=function decodePatternDictionary(t,r,o,c,l,u){var h=[];if(!t){h.push({x:-r,y:0});0===l&&h.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}for(var d=decodeBitmap(t,(c+1)*r,o,l,!1,null,h,u),g=[],m=0;m<=c;m++){for(var y=[],v=r*m,k=v+r,_=0;_<o;_++)y.push(d[_].subarray(v,k));g.push(y)}return g}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,h)}},{key:"onImmediateHalftoneRegion",value:function onImmediateHalftoneRegion(t,r,o,c,u){var h=this.patterns[r[0]],g=t.info,y=new m(o,c,u),v=function decodeHalftoneRegion(t,r,o,c,u,h,g,m,y,v,k,_,w,S,C){if(g)throw new d("skip is not supported");if(0!==m)throw new d('operator "'.concat(m,'" is not supported in halftone region'));var x,O,T,E=[];for(x=0;x<u;x++){T=new Uint8Array(c);if(h)for(O=0;O<c;O++)T[O]=h;E.push(T)}var R=r.length,j=r[0],D=j[0].length,N=j.length,L=(0,l.log2)(R),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,$,X,q,G,z,W,V,K,Y,J,Z=[];t&&(H=new M(C.data,C.start,C.end));for(x=L-1;x>=0;x--){$=t?decodeMMRBitmap(H,y,v,!0):decodeBitmap(!1,y,v,o,!1,null,U,C);Z[x]=$}for(X=0;X<v;X++)for(q=0;q<y;q++){G=0;z=0;for(O=L-1;O>=0;O--)z|=(G^=Z[O][X][q])<<O;W=r[z];K=_+X*w-q*S>>8;if((V=k+X*S+q*w>>8)>=0&&V+D<=c&&K>=0&&K+N<=u)for(x=0;x<N;x++){J=E[K+x];Y=W[x];for(O=0;O<D;O++)J[V+O]|=Y[O]}else{var Q=void 0,ee=void 0;for(x=0;x<N;x++)if(!((ee=K+x)<0||ee>=u)){J=E[ee];Y=W[x];for(O=0;O<D;O++)(Q=V+O)>=0&&Q<c&&(J[Q]|=Y[O])}}}return E}(t.mmr,h,t.template,g.width,g.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,y);this.drawBitmap(g,v)}},{key:"onImmediateLosslessHalftoneRegion",value:function onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function onTables(t,r,o,c){var u=this.customTables;u||(this.customTables=u={});u[t]=function decodeTablesSegment(t,r,o){var c,u,h=t[r],d=4294967295&(0,l.readUint32)(t,r+1),g=4294967295&(0,l.readUint32)(t,r+5),m=new M(t,r+9,o),y=1+(h>>1&7),v=1+(h>>4&7),k=[],_=d;do{c=m.readBits(y);u=m.readBits(v);k.push(new x([_,c,u,0]));_+=1<<u}while(_<g);c=m.readBits(y);k.push(new x([d-1,c,32,0,"lower"]));c=m.readBits(y);k.push(new x([g,c,32,0]));if(1&h){c=m.readBits(y);k.push(new x([c,0]))}return new T(k,!1)}(r,o,c)}}]);return SimpleSegmentVisitor}(),x=_createClass((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 c=this.children[o];c||(this.children[o]=c=new HuffmanTreeNode(null));c.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,c=t.length;o<c;o++){var l=t[o];l.prefixLength>0&&this.rootNode.buildTree(l,l.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,c=0;c<r;c++)o=Math.max(o,t[c].prefixLength);for(var l=new Uint32Array(o+1),u=0;u<r;u++)l[t[u].prefixLength]++;var h,d,g,m=1,y=0;l[0]=0;for(;m<=o;){h=y=y+l[m-1]<<1;d=0;for(;d<r;){if((g=t[d]).prefixLength===m){g.prefixCode=h;h++}d++}m++}}}]);return HuffmanTable}();var E={};function getStandardTable(t){var r,o=E[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 c=0,l=r.length;c<l;c++)r[c]=new x(r[c]);o=new T(r,!0);E[t]=o;return o}var M=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 c=0,l=0,u=r.length;l<u;l++){var h=o[r[l]];if(h){if(t===c)return h;c++}}throw new d("can't find custom Huffman table")}function readUncompressedBitmap(t,r,o){for(var c=[],l=0;l<o;l++){var u=new Uint8Array(r);c.push(u);for(var h=0;h<r;h++)u[h]=t.readBit();t.byteAlign()}return c}function decodeMMRBitmap(t,r,o,c){for(var l,u={K:-1,Columns:r,Rows:o,BlackIs1:!0,EndOfBlock:c},d=new h.CCITTFaxDecoder(t,u),g=[],m=!1,y=0;y<o;y++){var v=new Uint8Array(r);g.push(v);for(var k=-1,_=0;_<r;_++){if(k<0){if(-1===(l=d.readNextChar())){l=0;m=!0}k=7}v[_]=l>>k&1;k--}}if(c&&!m)for(var w=0;w<5&&-1!==d.readNextChar();w++);return g}var R=function(){function Jbig2Image(){_classCallCheck(this,Jbig2Image)}_createClass(Jbig2Image,[{key:"parseChunks",value:function parseChunks(t){return function parseJbig2Chunks(t){for(var r=new C,o=0,c=t.length;o<c;o++){var l=t[o];processSegments(readSegments({},l.data,l.start,l.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 c=Object.create(null);o+=8;var u=t[o++];c.randomAccess=!(1&u);if(!(2&u)){c.numberOfPages=(0,l.readUint32)(t,o);o+=4}var h=readSegments(c,t,o,r),g=new C;processSegments(h,g);for(var m=g.currentPageInfo,y=m.width,v=m.height,k=g.buffer,_=new Uint8ClampedArray(y*v),w=0,S=0,x=0;x<v;x++)for(var O=0,T=void 0,E=0;E<y;E++){if(!O){O=128;T=k[S++]}_[w++]=T&O?0:255;O>>=1}return{imgData:_,width:y,height:v}}(t),o=r.imgData,c=r.width,u=r.height;this.width=c;this.height=u;return o}}]);return Jbig2Image}();r.Jbig2Image=R},(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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}],c=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);Object.defineProperty(t,"prototype",{writable:!1});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 c,l=t[r]>>1,u=1&t[r],h=o[l],d=h.qe,g=this.a-d;if(this.chigh<d)if(g<d){g=d;c=u;l=h.nmps}else{g=d;c=1^u;1===h.switchFlag&&(u=c);l=h.nlps}else{this.chigh-=d;if(0!=(32768&g)){this.a=g;return u}if(g<d){c=1^u;1===h.switchFlag&&(u=c);l=h.nlps}else{c=u;l=h.nmps}}do{0===this.ct&&this.byteIn();g<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&g));this.a=g;t[r]=l<<1|u;return c}}]);return ArithmeticDecoder}();r.ArithmeticDecoder=c},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.JpegStream=void 0;var c=o(171),l=o(147),u=o(180),h=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(JpegStream,t);var r=_createSuper(JpegStream);function JpegStream(t,o,c){var l,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}(l=r.call(this,o)).stream=t;l.dict=t.dict;l.maybeLength=o;l.params=c;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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("D","Decode");if(this.forceRGB&&Array.isArray(r)){for(var o=this.dict.get("BPC","BitsPerComponent")||8,c=r.length,h=new Int32Array(c),d=!1,g=(1<<o)-1,m=0;m<c;m+=2){h[m]=256*(r[m+1]-r[m])|0;h[m+1]=r[m]*g|0;256===h[m]&&0===h[m+1]||(d=!0)}d&&(t.decodeTransform=h)}if(this.params instanceof l.Dict){var y=this.params.get("ColorTransform");Number.isInteger(y)&&(t.colorTransform=y)}var v=new u.JpegImage(t);v.parse(this.bytes);var k=v.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=k;this.bufferLength=k.length;this.eof=!0}}}]);return JpegStream}(c.DecodeStream);r.JpegStream=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpegImage=void 0;var c=o(4),l=o(150);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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),"JpegError")}return _createClass(JpegError)}(c.BaseException),h=function(t){_inherits(DNLMarkerError,t);var r=_createSuper(DNLMarkerError);function DNLMarkerError(t,o){var c;_classCallCheck(this,DNLMarkerError);(c=r.call(this,t,"DNLMarkerError")).scanLines=o;return c}return _createClass(DNLMarkerError)}(c.BaseException),d=function(t){_inherits(EOIMarkerError,t);var r=_createSuper(EOIMarkerError);function EOIMarkerError(t){_classCallCheck(this,EOIMarkerError);return r.call(this,t,"EOIMarkerError")}return _createClass(EOIMarkerError)}(c.BaseException),g=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]),m=4017,y=799,v=3406,k=2276,_=1567,w=3784,S=5793,C=2896;function buildHuffmanTable(t,r){for(var o,c,l=0,u=16;u>0&&!t[u-1];)u--;var h,d=[{children:[],index:0}],g=d[0];for(o=0;o<u;o++){for(c=0;c<t[o];c++){(g=d.pop()).children[g.index]=r[l];for(;g.index>0;)g=d.pop();g.index++;d.push(g);for(;d.length<=o;){d.push(h={children:[],index:0});g.children[g.index]=h.children;g=h}l++}if(o+1<u){d.push(h={children:[],index:0});g.children[g.index]=h.children;g=h}}return d[0].children}function getBlockBufferOffset(t,r,o){return 64*((t.blocksPerLine+1)*r+o)}function decodeScan(t,r,o,m,y,v,k,_,w){var S=arguments.length>9&&void 0!==arguments[9]&&arguments[9],C=o.mcusPerLine,x=o.progressive,O=r,T=0,E=0;function readBit(){if(E>0){E--;return T>>E&1}if(255===(T=t[r++])){var c=t[r++];if(c){if(220===c&&S){r+=2;var g=(0,l.readUint16)(t,r);r+=2;if(g>0&&g!==o.scanLines)throw new h("Found DNL marker (0xFFDC) while parsing scan data",g)}else if(217===c){if(S){var m=D*(8===o.precision?8:0);if(m>0&&Math.round(o.scanLines/m)>=10)throw new h("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",m)}throw new d("Found EOI marker (0xFFD9) while parsing scan data")}throw new u("unexpected marker ".concat((T<<8|c).toString(16)))}}E=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),c=0===o?0:receiveAndExtend(o);t.blockData[r]=t.pred+=c;for(var l=1;l<64;){var u=decodeHuffman(t.huffmanTableAC),h=15&u,d=u>>4;if(0!==h){var m=g[l+=d];t.blockData[r+m]=receiveAndExtend(h);l++}else{if(d<15)break;l+=16}}}function decodeDCFirst(t,r){var o=decodeHuffman(t.huffmanTableDC),c=0===o?0:receiveAndExtend(o)<<w;t.blockData[r]=t.pred+=c}function decodeDCSuccessive(t,r){t.blockData[r]|=readBit()<<w}var M=0;function decodeACFirst(t,r){if(M>0)M--;else for(var o=v,c=k;o<=c;){var l=decodeHuffman(t.huffmanTableAC),u=15&l,h=l>>4;if(0!==u){var d=g[o+=h];t.blockData[r+d]=receiveAndExtend(u)*(1<<w);o++}else{if(h<15){M=receive(h)+(1<<h)-1;break}o+=16}}}var R,j=0;function decodeACSuccessive(t,r){for(var o,c,l=v,h=k,d=0;l<=h;){var m=r+g[l],y=t.blockData[m]<0?-1:1;switch(j){case 0:d=(c=decodeHuffman(t.huffmanTableAC))>>4;if(0===(o=15&c))if(d<15){M=receive(d)+(1<<d);j=4}else{d=16;j=1}else{if(1!==o)throw new u("invalid ACn encoding");R=receiveAndExtend(o);j=d?2:3}continue;case 1:case 2:t.blockData[m]?t.blockData[m]+=y*(readBit()<<w):0===--d&&(j=2===j?3:0);break;case 3:if(t.blockData[m])t.blockData[m]+=y*(readBit()<<w);else{t.blockData[m]=R<<w;j=0}break;case 4:t.blockData[m]&&(t.blockData[m]+=y*(readBit()<<w))}l++}4===j&&0===--M&&(j=0)}var D=0;function decodeMcu(t,r,o,c,l){var u=o%C;D=(o/C|0)*t.v+c;var h=u*t.h+l;r(t,getBlockBufferOffset(t,D,h))}function decodeBlock(t,r,o){D=o/t.blocksPerLine|0;var c=o%t.blocksPerLine;r(t,getBlockBufferOffset(t,D,c))}var N,L,U,H,$,X,q=m.length;X=x?0===v?0===_?decodeDCFirst:decodeDCSuccessive:0===_?decodeACFirst:decodeACSuccessive:decodeBaseline;var G,z,W,V,K=0;z=1===q?m[0].blocksPerLine*m[0].blocksPerColumn:C*o.mcusPerColumn;for(;K<=z;){var Y=y?Math.min(z-K,y):z;if(Y>0){for(L=0;L<q;L++)m[L].pred=0;M=0;if(1===q){N=m[0];for($=0;$<Y;$++){decodeBlock(N,X,K);K++}}else for($=0;$<Y;$++){for(L=0;L<q;L++){W=(N=m[L]).h;V=N.v;for(U=0;U<V;U++)for(H=0;H<W;H++)decodeMcu(N,X,K,U,H)}K++}}E=0;if(!(G=findNextFileMarker(t,r)))break;if(G.invalid){var J=Y>0?"unexpected":"excessive";(0,c.warn)("decodeScan - ".concat(J," MCU data, current marker is: ").concat(G.invalid));r=G.offset}if(!(G.marker>=65488&&G.marker<=65495))break;r+=2}return r-O}function quantizeAndInverse(t,r,o){var c,l,h,d,g,x,O,T,E,M,R,j,D,N,L,U,H,$=t.quantizationTable,X=t.blockData;if(!$)throw new u("missing required Quantization Table.");for(var q=0;q<64;q+=8){E=X[r+q];M=X[r+q+1];R=X[r+q+2];j=X[r+q+3];D=X[r+q+4];N=X[r+q+5];L=X[r+q+6];U=X[r+q+7];E*=$[q];if(0!=(M|R|j|D|N|L|U)){M*=$[q+1];R*=$[q+2];j*=$[q+3];D*=$[q+4];N*=$[q+5];L*=$[q+6];U*=$[q+7];l=(c=(c=S*E+128>>8)+(l=S*D+128>>8)+1>>1)-l;H=(h=R)*w+(d=L)*_+128>>8;h=h*_-d*w+128>>8;O=(g=(g=C*(M-U)+128>>8)+(O=N<<4)+1>>1)-O;x=(T=(T=C*(M+U)+128>>8)+(x=j<<4)+1>>1)-x;d=(c=c+(d=H)+1>>1)-d;h=(l=l+h+1>>1)-h;H=g*k+T*v+2048>>12;g=g*v-T*k+2048>>12;T=H;H=x*y+O*m+2048>>12;x=x*m-O*y+2048>>12;O=H;o[q]=c+T;o[q+7]=c-T;o[q+1]=l+O;o[q+6]=l-O;o[q+2]=h+x;o[q+5]=h-x;o[q+3]=d+g;o[q+4]=d-g}else{H=S*E+512>>10;o[q]=H;o[q+1]=H;o[q+2]=H;o[q+3]=H;o[q+4]=H;o[q+5]=H;o[q+6]=H;o[q+7]=H}}for(var G=0;G<8;++G){E=o[G];if(0!=((M=o[G+8])|(R=o[G+16])|(j=o[G+24])|(D=o[G+32])|(N=o[G+40])|(L=o[G+48])|(U=o[G+56]))){l=(c=4112+((c=S*E+2048>>12)+(l=S*D+2048>>12)+1>>1))-l;H=(h=R)*w+(d=L)*_+2048>>12;h=h*_-d*w+2048>>12;d=H;O=(g=(g=C*(M-U)+2048>>12)+(O=N)+1>>1)-O;x=(T=(T=C*(M+U)+2048>>12)+(x=j)+1>>1)-x;H=g*k+T*v+2048>>12;g=g*v-T*k+2048>>12;T=H;H=x*y+O*m+2048>>12;x=x*m-O*y+2048>>12;(E=(c=c+d+1>>1)+T)<16?E=0:E>=4080?E=255:E>>=4;(M=(l=l+h+1>>1)+(O=H))<16?M=0:M>=4080?M=255:M>>=4;(R=(h=l-h)+x)<16?R=0:R>=4080?R=255:R>>=4;(j=(d=c-d)+g)<16?j=0:j>=4080?j=255:j>>=4;(D=d-g)<16?D=0:D>=4080?D=255:D>>=4;(N=h-x)<16?N=0:N>=4080?N=255:N>>=4;(L=l-O)<16?L=0:L>=4080?L=255:L>>=4;(U=c-T)<16?U=0:U>=4080?U=255:U>>=4;X[r+G]=E;X[r+G+8]=M;X[r+G+16]=R;X[r+G+24]=j;X[r+G+32]=D;X[r+G+40]=N;X[r+G+48]=L;X[r+G+56]=U}else{H=(H=S*E+8192>>14)<-2040?0:H>=2024?255:H+2056>>4;X[r+G]=H;X[r+G+8]=H;X[r+G+16]=H;X[r+G+24]=H;X[r+G+32]=H;X[r+G+40]=H;X[r+G+48]=H;X[r+G+56]=H}}}function buildComponentData(t,r){for(var o=r.blocksPerLine,c=r.blocksPerColumn,l=new Int16Array(64),u=0;u<c;u++)for(var h=0;h<o;h++){quantizeAndInverse(r,getBlockBufferOffset(r,u,h),l)}return r.blockData}function findNextFileMarker(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,c=t.length-1,u=o<r?o:r;if(r>=c)return null;var h=(0,l.readUint16)(t,r);if(h>=65472&&h<=65534)return{invalid:null,marker:h,offset:r};for(var d=(0,l.readUint16)(t,u);!(d>=65472&&d<=65534);){if(++u>=c)return null;d=(0,l.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,c=t.colorTransform,l=void 0===c?-1:c;_classCallCheck(this,JpegImage);this._decodeTransform=o;this._colorTransform=l}_createClass(JpegImage,[{key:"parse",value:function parse(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.dnlScanLines,m=void 0===o?null:o;function readDataBlock(){var r=(0,l.readUint16)(t,k),o=(k+=2)+r-2,u=findNextFileMarker(t,o,k);if(u&&u.invalid){(0,c.warn)("readDataBlock - incorrect length, current marker is: "+u.invalid);o=u.offset}var h=t.subarray(k,o);k+=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),c=0,l=t.components.length;c<l;c++){var u=t.components[c],h=Math.ceil(Math.ceil(t.samplesPerLine/8)*u.h/t.maxH),d=Math.ceil(Math.ceil(t.scanLines/8)*u.v/t.maxV),g=r*u.h,m=64*(o*u.v)*(g+1);u.blockData=new Int16Array(m);u.blocksPerLine=h;u.blocksPerColumn=d}t.mcusPerLine=r;t.mcusPerColumn=o}var y,v,k=0,_=null,w=null,S=0,C=[],x=[],O=[],T=(0,l.readUint16)(t,k);k+=2;if(65496!==T)throw new u("SOI not found");T=(0,l.readUint16)(t,k);k+=2;e:for(;65497!==T;){var E=void 0,M=void 0,R=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 j=readDataBlock();65504===T&&74===j[0]&&70===j[1]&&73===j[2]&&70===j[3]&&0===j[4]&&(_={version:{major:j[5],minor:j[6]},densityUnits:j[7],xDensity:j[8]<<8|j[9],yDensity:j[10]<<8|j[11],thumbWidth:j[12],thumbHeight:j[13],thumbData:j.subarray(14,14+3*j[12]*j[13])});65518===T&&65===j[0]&&100===j[1]&&111===j[2]&&98===j[3]&&101===j[4]&&(w={version:j[5]<<8|j[6],flags0:j[7]<<8|j[8],flags1:j[9]<<8|j[10],transformCode:j[11]});break;case 65499:for(var D=(0,l.readUint16)(t,k),N=D+(k+=2)-2;k<N;){var L=t[k++],U=new Uint16Array(64);if(L>>4==0)for(M=0;M<64;M++)U[g[M]]=t[k++];else{if(L>>4!=1)throw new u("DQT - invalid table spec");for(M=0;M<64;M++){U[g[M]]=(0,l.readUint16)(t,k);k+=2}}C[15&L]=U}break;case 65472:case 65473:case 65474:if(y)throw new u("Only single frame JPEGs supported");k+=2;(y={}).extended=65473===T;y.progressive=65474===T;y.precision=t[k++];var H=(0,l.readUint16)(t,k);k+=2;y.scanLines=m||H;y.samplesPerLine=(0,l.readUint16)(t,k);k+=2;y.components=[];y.componentIds={};var $=t[k++],X=0,q=0;for(E=0;E<$;E++){var G=t[k],z=t[k+1]>>4,W=15&t[k+1];X<z&&(X=z);q<W&&(q=W);var V=t[k+2];R=y.components.push({h:z,v:W,quantizationId:V,quantizationTable:null});y.componentIds[G]=R-1;k+=3}y.maxH=X;y.maxV=q;prepareComponents(y);break;case 65476:var K=(0,l.readUint16)(t,k);k+=2;for(E=2;E<K;){var Y=t[k++],J=new Uint8Array(16),Z=0;for(M=0;M<16;M++,k++)Z+=J[M]=t[k];var Q=new Uint8Array(Z);for(M=0;M<Z;M++,k++)Q[M]=t[k];E+=17+Z;(Y>>4==0?O:x)[15&Y]=buildHuffmanTable(J,Q)}break;case 65501:k+=2;v=(0,l.readUint16)(t,k);k+=2;break;case 65498:var ee=1==++S&&!m;k+=2;var te=t[k++],re=[];for(E=0;E<te;E++){var ae=t[k++],ne=y.componentIds[ae],ie=y.components[ne];ie.index=ae;var oe=t[k++];ie.huffmanTableDC=O[oe>>4];ie.huffmanTableAC=x[15&oe];re.push(ie)}var se=t[k++],ce=t[k++],le=t[k++];try{var ue=decodeScan(t,k,y,re,v,se,ce,le>>4,15&le,ee);k+=ue}catch(r){if(r instanceof h){(0,c.warn)("".concat(r.message," -- attempting to re-parse the JPEG image."));return this.parse(t,{dnlScanLines:r.scanLines})}if(r instanceof d){(0,c.warn)("".concat(r.message," -- ignoring the rest of the image data."));break e}throw r}break;case 65500:k+=4;break;case 65535:255!==t[k]&&k--;break;default:var fe=findNextFileMarker(t,k-2,k-3);if(fe&&fe.invalid){(0,c.warn)("JpegImage.parse - unexpected data, current marker is: "+fe.invalid);k=fe.offset;break}if(!fe||k>=t.length-1){(0,c.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,l.readUint16)(t,k);k+=2}this.width=y.samplesPerLine;this.height=y.scanLines;this.jfif=_;this.adobe=w;this.components=[];for(var he=0,de=y.components.length;he<de;he++){var pe=y.components[he],ge=C[pe.quantizationId];ge&&(pe.quantizationTable=ge);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,c,l,u,h,d,g,m,y,v,k,_,w=arguments.length>2&&void 0!==arguments[2]&&arguments[2],S=this.width/t,C=this.height/r,x=0,O=this.components.length,T=t*r*O,E=new Uint8ClampedArray(T),M=new Uint32Array(t),R=4294967288;for(g=0;g<O;g++){c=(o=this.components[g]).scaleX*S;l=o.scaleY*C;x=g;k=o.output;u=o.blocksPerLine+1<<3;if(c!==_){for(h=0;h<t;h++){m=0|h*c;M[h]=(m&R)<<3|7&m}_=c}for(d=0;d<r;d++){v=u*((m=0|d*l)&R)|(7&m)<<3;for(h=0;h<t;h++){E[x]=k[v+M[h]];x+=O}}}var j=this._decodeTransform;w||4!==O||j||(j=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(j)for(g=0;g<T;)for(m=0,y=0;m<O;m++,g++,y+=2)E[g]=(E[g]*j[y]>>8)+j[y+1];return E}},{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,c,l=0,u=t.length;l<u;l+=3){r=t[l];o=t[l+1];c=t[l+2];t[l]=r-179.456+1.402*c;t[l+1]=r+135.459-.344*o-.714*c;t[l+2]=r-226.816+1.772*o}return t}},{key:"_convertYcckToRgb",value:function _convertYcckToRgb(t){for(var r,o,c,l,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];c=t[h+2];l=t[h+3];t[u++]=o*(-660635669420364e-19*o+.000437130475926232*c-54080610064599e-18*r+.00048449797120281*l-.154362151871126)-122.67195406894+c*(-.000957964378445773*c+.000817076911346625*r-.00477271405408747*l+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*l+.48357088451265)+l*(-.000336197177618394*l+.484791561490776);t[u++]=107.268039397724+o*(219927104525741e-19*o-.000640992018297945*c+.000659397001245577*r+.000426105652938837*l-.176491792462875)+c*(-.000778269941513683*c+.00130872261408275*r+.000770482631801132*l-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*l+.25802910206845)+l*(-.000318913117588328*l-.213742400323665);t[u++]=o*(-.000570115196973677*o-263409051004589e-19*c+.0020741088115012*r-.00288260236853442*l+.814272968359295)-20.810012546947+c*(-153496057440975e-19*c-.000132689043961446*r+.000560833691242812*l-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*l+.116935020465145)+l*(-.000343531996510555*l+.24165260232407)}return t.subarray(0,u)}},{key:"_convertYcckToCmyk",value:function _convertYcckToCmyk(t){for(var r,o,c,l=0,u=t.length;l<u;l+=4){r=t[l];o=t[l+1];c=t[l+2];t[l]=434.456-r-1.402*c;t[l+1]=119.541-r+.344*o+.714*c;t[l+2]=481.816-r-1.772*o}return t}},{key:"_convertCmykToRgb",value:function _convertCmykToRgb(t){for(var r,o,c,l,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];c=t[h+2];l=t[h+3];t[u++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*o+.0002894718188643294*c+.003264231057537806*l-1.1185611867203937)+o*(26374107616089405e-21*o-8626949158638572e-20*c-.0002748769067499491*l-.02155688794978967)+c*(-3878099212869363e-20*c-.0003267808279485286*l+.0686742238595345)-l*(.0003361971776183937*l+.7430659151342254);t[u++]=255+r*(.00013596372813588848*r+.000924537132573585*o+.00010567359618683593*c+.0004791864687436512*l-.3109689587515875)+o*(-.00023545346108370344*o+.0002702845253534714*c+.0020200308977307156*l-.7488052167015494)+c*(6834815998235662e-20*c+.00015168452363460973*l-.09751927774728933)-l*(.0003189131175883281*l+.7364883807733168);t[u++]=255+r*(13598650411385307e-21*r+.00012423956175490851*o+.0004751985097583589*c-36729317476630422e-22*l-.05562186980264034)+o*(.00016141380598724676*o+.0009692239130725186*c+.0007782692450036253*l-.44015232367526463)+c*(5.068882914068769e-7*c+.0017778369011375071*l-.7591454649749609)-l*(.0003435319965105553*l+.7063770186160144)}return t.subarray(0,u)}},{key:"getData",value:function getData(t){var r=t.width,o=t.height,c=t.forceRGB,l=void 0!==c&&c,h=t.isSourcePDF,d=void 0!==h&&h;if(this.numComponents>4)throw new u("Unsupported color mode");var g=this._getLinearizedBlockData(r,o,d);if(1===this.numComponents&&l){for(var m=g.length,y=new Uint8ClampedArray(3*m),v=0,k=0;k<m;k++){var _=g[k];y[v++]=_;y[v++]=_;y[v++]=_}return y}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(g);if(4===this.numComponents){if(this._isColorConversionNeeded)return l?this._convertYcckToRgb(g):this._convertYcckToCmyk(g);if(l)return this._convertCmykToRgb(g)}return g}}]);return JpegImage}();r.JpegImage=x},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.JpxStream=void 0;var c=o(171),l=o(182),u=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(JpxStream,t);var r=_createSuper(JpxStream);function JpxStream(t,o,c){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpxStream);(l=r.call(this,o)).stream=t;l.dict=t.dict;l.maybeLength=o;l.params=c;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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 l.JpxImage;t.parse(this.bytes);var r=t.width,o=t.height,c=t.componentsCount,u=t.tiles.length;if(1===u)this.buffer=t.tiles[0].items;else{for(var h=new Uint8ClampedArray(r*o*c),d=0;d<u;d++)for(var g=t.tiles[d],m=g.width,y=g.height,v=g.left,k=g.top,_=g.items,w=0,S=(r*k+v)*c,C=r*c,x=m*c,O=0;O<y;O++){var T=_.subarray(w,w+x);h.set(T,S);w+=x;S+=C}this.buffer=h}this.bufferLength=this.buffer.length;this.eof=!0}}}]);return JpxStream}(c.DecodeStream);r.JpxStream=h},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.JpxImage=void 0;var c=o(4),l=o(150),u=o(178);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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),"JpxError")}return _createClass(JpxError)}(c.BaseException),d={LL:0,LH:1,HL:1,HH:2},g=function(){function JpxImage(){_classCallCheck(this,JpxImage);this.failOnCorruptedImage=!1}_createClass(JpxImage,[{key:"parse",value:function parse(t){if(65359!==(0,l.readUint16)(t,0))for(var r=t.length,o=0;o<r;){var u=8,d=(0,l.readUint32)(t,o),g=(0,l.readUint32)(t,o+4);o+=u;if(1===d){d=4294967296*(0,l.readUint32)(t,o)+(0,l.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 m=d-u,y=!0;switch(g){case 1785737832:y=!1;break;case 1668246642:var v=t[o];if(1===v){var k=(0,l.readUint32)(t,o+3);switch(k){case 16:case 17:case 18:break;default:(0,c.warn)("Unknown colorspace "+k)}}else 2===v&&(0,c.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(t,o,o+m);break;case 1783636e3:218793738!==(0,l.readUint32)(t,o)&&(0,c.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var _=String.fromCharCode(g>>24&255,g>>16&255,g>>8&255,255&g);(0,c.warn)("Unsupported header type ".concat(g," (").concat(_,")."))}y&&(o+=m)}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,c=t.getInt32()>>>0,l=t.getInt32()>>>0,u=t.getInt32()>>>0;t.skip(16);var d=t.getUint16();this.width=o-l;this.height=c-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 g=r;g+1<o;){var m=(0,l.readUint16)(t,g);g+=2;var y=0,v=void 0,k=void 0,_=void 0,w=void 0,S=void 0,C=void 0;switch(m){case 65359:u.mainHeader=!0;break;case 65497:break;case 65361:y=(0,l.readUint16)(t,g);var x={};x.Xsiz=(0,l.readUint32)(t,g+4);x.Ysiz=(0,l.readUint32)(t,g+8);x.XOsiz=(0,l.readUint32)(t,g+12);x.YOsiz=(0,l.readUint32)(t,g+16);x.XTsiz=(0,l.readUint32)(t,g+20);x.YTsiz=(0,l.readUint32)(t,g+24);x.XTOsiz=(0,l.readUint32)(t,g+28);x.YTOsiz=(0,l.readUint32)(t,g+32);var O=(0,l.readUint16)(t,g+36);x.Csiz=O;var T=[];v=g+38;for(var E=0;E<O;E++){var M={precision:1+(127&t[v]),isSigned:!!(128&t[v]),XRsiz:t[v+1],YRsiz:t[v+2]};v+=3;calculateComponentDimensions(M,x);T.push(M)}u.SIZ=x;u.components=T;calculateTileGrids(u,T);u.QCC=[];u.COC=[];break;case 65372:y=(0,l.readUint16)(t,g);var R={};v=g+2;switch(31&(k=t[v++])){case 0:w=8;S=!0;break;case 1:w=16;S=!1;break;case 2:w=16;S=!0;break;default:throw new Error("Invalid SQcd value "+k)}R.noQuantization=8===w;R.scalarExpounded=S;R.guardBits=k>>5;_=[];for(;v<y+g;){var j={};if(8===w){j.epsilon=t[v++]>>3;j.mu=0}else{j.epsilon=t[v]>>3;j.mu=(7&t[v])<<8|t[v+1];v+=2}_.push(j)}R.SPqcds=_;if(u.mainHeader)u.QCD=R;else{u.currentTile.QCD=R;u.currentTile.QCC=[]}break;case 65373:y=(0,l.readUint16)(t,g);var D={};v=g+2;var N=void 0;if(u.SIZ.Csiz<257)N=t[v++];else{N=(0,l.readUint16)(t,v);v+=2}switch(31&(k=t[v++])){case 0:w=8;S=!0;break;case 1:w=16;S=!1;break;case 2:w=16;S=!0;break;default:throw new Error("Invalid SQcd value "+k)}D.noQuantization=8===w;D.scalarExpounded=S;D.guardBits=k>>5;_=[];for(;v<y+g;){var L={};if(8===w){L.epsilon=t[v++]>>3;L.mu=0}else{L.epsilon=t[v]>>3;L.mu=(7&t[v])<<8|t[v+1];v+=2}_.push(L)}D.SPqcds=_;u.mainHeader?u.QCC[N]=D:u.currentTile.QCC[N]=D;break;case 65362:y=(0,l.readUint16)(t,g);var U={};v=g+2;var H=t[v++];U.entropyCoderWithCustomPrecincts=!!(1&H);U.sopMarkerUsed=!!(2&H);U.ephMarkerUsed=!!(4&H);U.progressionOrder=t[v++];U.layersCount=(0,l.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 $=t[v++];U.selectiveArithmeticCodingBypass=!!(1&$);U.resetContextProbabilities=!!(2&$);U.terminationOnEachCodingPass=!!(4&$);U.verticallyStripe=!!(8&$);U.predictableTermination=!!(16&$);U.segmentationSymbolUsed=!!(32&$);U.reversibleTransformation=t[v++];if(U.entropyCoderWithCustomPrecincts){for(var X=[];v<y+g;){var q=t[v++];X.push({PPx:15&q,PPy:q>>4})}U.precinctsSizes=X}var G=[];U.selectiveArithmeticCodingBypass&&G.push("selectiveArithmeticCodingBypass");U.terminationOnEachCodingPass&&G.push("terminationOnEachCodingPass");U.verticallyStripe&&G.push("verticallyStripe");U.predictableTermination&&G.push("predictableTermination");if(G.length>0){d=!0;(0,c.warn)("JPX: Unsupported COD options (".concat(G.join(", "),")."))}if(u.mainHeader)u.COD=U;else{u.currentTile.COD=U;u.currentTile.COC=[]}break;case 65424:y=(0,l.readUint16)(t,g);(C={}).index=(0,l.readUint16)(t,g+2);C.length=(0,l.readUint32)(t,g+4);C.dataEnd=C.length+g-2;C.partIndex=t[g+8];C.partsCount=t[g+9];u.mainHeader=!1;if(0===C.partIndex){C.COD=u.COD;C.COC=u.COC.slice(0);C.QCD=u.QCD;C.QCC=u.QCC.slice(0)}u.currentTile=C;break;case 65427:if(0===(C=u.currentTile).partIndex){initializeTile(u,C.index);buildPackets(u)}parseTilePackets(u,t,g,y=C.dataEnd-g);break;case 65363:(0,c.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:y=(0,l.readUint16)(t,g);break;default:throw new Error("Unknown codestream code: "+m.toString(16))}g+=y}}catch(t){if(d||this.failOnCorruptedImage)throw new h(t.message);(0,c.warn)('JPX: Trying to recover from: "'.concat(t.message,'".'))}this.tiles=function transformComponents(t){for(var r=t.SIZ,o=t.components,c=r.Csiz,l=[],u=0,h=t.tiles.length;u<h;u++){for(var d=t.tiles[u],g=[],m=0;m<c;m++)g[m]=transformTile(t,d,m);var y=g[0],v=new Uint8ClampedArray(y.items.length*c),k={left:y.left,top:y.top,width:y.width,height:y.height,items:v},_=void 0,w=void 0,S=0,C=void 0,x=void 0,O=void 0,T=void 0,E=void 0;if(d.codingStyleDefaultParameters.multipleComponentTransform){var M=4===c,R=g[0].items,j=g[1].items,D=g[2].items,N=M?g[3].items:null;w=.5+(128<<(_=o[0].precision-8));var L=d.components[0],U=c-3;x=R.length;if(L.codingStyleParameters.reversibleTransformation)for(C=0;C<x;C++,S+=U){O=R[C]+w;T=j[C];var H=O-((E=D[C])+T>>2);v[S++]=H+E>>_;v[S++]=H>>_;v[S++]=H+T>>_}else for(C=0;C<x;C++,S+=U){O=R[C]+w;T=j[C];E=D[C];v[S++]=O+1.402*E>>_;v[S++]=O-.34413*T-.71414*E>>_;v[S++]=O+1.772*T>>_}if(M)for(C=0,S=3;C<x;C++,S+=4)v[S]=N[C]+w>>_}else for(var $=0;$<c;$++){var X=g[$].items;w=.5+(128<<(_=o[$].precision-8));for(S=$,C=0,x=X.length;C<x;C++){v[S]=X[C]+w>>_;S+=c}}l.push(k)}return l}(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=g;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,c=t.SIZ,l=[],u=Math.ceil((c.Xsiz-c.XTOsiz)/c.XTsiz),h=Math.ceil((c.Ysiz-c.YTOsiz)/c.YTsiz),d=0;d<h;d++)for(var g=0;g<u;g++){(o={}).tx0=Math.max(c.XTOsiz+g*c.XTsiz,c.XOsiz);o.ty0=Math.max(c.YTOsiz+d*c.YTsiz,c.YOsiz);o.tx1=Math.min(c.XTOsiz+(g+1)*c.XTsiz,c.Xsiz);o.ty1=Math.min(c.YTOsiz+(d+1)*c.YTsiz,c.Ysiz);o.width=o.tx1-o.tx0;o.height=o.ty1-o.ty0;o.components=[];l.push(o)}t.tiles=l;for(var m=0,y=c.Csiz;m<y;m++)for(var v=r[m],k=0,_=l.length;k<_;k++){var w={};o=l[k];w.tcx0=Math.ceil(o.tx0/v.XRsiz);w.tcy0=Math.ceil(o.ty0/v.YRsiz);w.tcx1=Math.ceil(o.tx1/v.XRsiz);w.tcy1=Math.ceil(o.ty1/v.YRsiz);w.width=w.tcx1-w.tcx0;w.height=w.tcy1-w.tcy0;o.components[m]=w}}function getBlocksDimensions(t,r,o){var c=r.codingStyleParameters,l={};if(c.entropyCoderWithCustomPrecincts){l.PPx=c.precinctsSizes[o].PPx;l.PPy=c.precinctsSizes[o].PPy}else{l.PPx=15;l.PPy=15}l.xcb_=o>0?Math.min(c.xcb,l.PPx-1):Math.min(c.xcb,l.PPx);l.ycb_=o>0?Math.min(c.ycb,l.PPy-1):Math.min(c.ycb,l.PPy);return l}function buildPrecincts(t,r,o){var c=1<<o.PPx,l=1<<o.PPy,u=0===r.resLevel,h=1<<o.PPx+(u?0:-1),d=1<<o.PPy+(u?0:-1),g=r.trx1>r.trx0?Math.ceil(r.trx1/c)-Math.floor(r.trx0/c):0,m=r.try1>r.try0?Math.ceil(r.try1/l)-Math.floor(r.try0/l):0,y=g*m;r.precinctParameters={precinctWidth:c,precinctHeight:l,numprecinctswide:g,numprecinctshigh:m,numprecincts:y,precinctWidthInSubband:h,precinctHeightInSubband:d}}function buildCodeblocks(t,r,o){var c,l,u,h,d=o.xcb_,g=o.ycb_,m=1<<d,y=1<<g,v=r.tbx0>>d,k=r.tby0>>g,_=r.tbx1+m-1>>d,w=r.tby1+y-1>>g,S=r.resolution.precinctParameters,C=[],x=[];for(l=k;l<w;l++)for(c=v;c<_;c++){(u={cbx:c,cby:l,tbx0:m*c,tby0:y*l,tbx1:m*(c+1),tby1:y*(l+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)/S.precinctWidthInSubband)+Math.floor((u.tby0_-r.tby0)/S.precinctHeightInSubband)*S.numprecinctswide;u.precinctNumber=h;u.subbandType=r.type;u.Lblock=3;if(!(u.tbx1_<=u.tbx0_||u.tby1_<=u.tby0_)){C.push(u);var O=x[h];if(void 0!==O){c<O.cbxMin?O.cbxMin=c:c>O.cbxMax&&(O.cbxMax=c);l<O.cbyMin?O.cbxMin=l:l>O.cbyMax&&(O.cbyMax=l)}else x[h]=O={cbxMin:c,cbyMin:l,cbxMax:c,cbyMax:l};u.precinct=O}}r.codeblockParameters={codeblockWidth:d,codeblockHeight:g,numcodeblockwide:_-v+1,numcodeblockhigh:w-k+1};r.codeblocks=C;r.precincts=x}function createPacket(t,r,o){for(var c=[],l=t.subbands,u=0,h=l.length;u<h;u++)for(var d=l[u].codeblocks,g=0,m=d.length;g<m;g++){var y=d[g];y.precinctNumber===r&&c.push(y)}return{layerNumber:o,codeblocks:c}}function LayerResolutionComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=0,g=0;g<u;g++)d=Math.max(d,c.components[g].codingStyleParameters.decompositionLevelsCount);var m=0,y=0,v=0,k=0;this.nextPacket=function JpxImage_nextPacket(){for(;m<l;m++){for(;y<=d;y++){for(;v<u;v++){var t=c.components[v];if(!(y>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[y],o=r.precinctParameters.numprecincts;k<o;){var g=createPacket(r,k,m);k++;return g}k=0}}v=0}y=0}throw new h("Out of packets")}}function ResolutionLayerComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=0,g=0;g<u;g++)d=Math.max(d,c.components[g].codingStyleParameters.decompositionLevelsCount);var m=0,y=0,v=0,k=0;this.nextPacket=function JpxImage_nextPacket(){for(;m<=d;m++){for(;y<l;y++){for(;v<u;v++){var t=c.components[v];if(!(m>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[m],o=r.precinctParameters.numprecincts;k<o;){var g=createPacket(r,k,y);k++;return g}k=0}}v=0}y=0}throw new h("Out of packets")}}function ResolutionPositionComponentLayerIterator(t){var r,o,c,l,u=t.SIZ,d=t.currentTile.index,g=t.tiles[d],m=g.codingStyleDefaultParameters.layersCount,y=u.Csiz,v=0;for(c=0;c<y;c++){var k=g.components[c];v=Math.max(v,k.codingStyleParameters.decompositionLevelsCount)}var _=new Int32Array(v+1);for(o=0;o<=v;++o){var w=0;for(c=0;c<y;++c){var S=g.components[c].resolutions;o<S.length&&(w=Math.max(w,S[o].precinctParameters.numprecincts))}_[o]=w}r=0;o=0;c=0;l=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=v;o++){for(;l<_[o];l++){for(;c<y;c++){var t=g.components[c];if(!(o>t.codingStyleParameters.decompositionLevelsCount)){var u=t.resolutions[o],d=u.precinctParameters.numprecincts;if(!(l>=d)){for(;r<m;){var k=createPacket(u,l,r);r++;return k}r=0}}}c=0}l=0}throw new h("Out of packets")}}function PositionComponentResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=getPrecinctSizesInImageScale(c),g=d,m=0,y=0,v=0,k=0,_=0;this.nextPacket=function JpxImage_nextPacket(){for(;_<g.maxNumHigh;_++){for(;k<g.maxNumWide;k++){for(;v<u;v++){for(var t=c.components[v],r=t.codingStyleParameters.decompositionLevelsCount;y<=r;y++){var o=t.resolutions[y],w=d.components[v].resolutions[y],S=getPrecinctIndexIfExist(k,_,w,g,o);if(null!==S){for(;m<l;){var C=createPacket(o,S,m);m++;return C}m=0}}y=0}v=0}k=0}throw new h("Out of packets")}}function ComponentPositionResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=c.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=getPrecinctSizesInImageScale(c),g=0,m=0,y=0,v=0,k=0;this.nextPacket=function JpxImage_nextPacket(){for(;y<u;++y){for(var t=c.components[y],r=d.components[y],o=t.codingStyleParameters.decompositionLevelsCount;k<r.maxNumHigh;k++){for(;v<r.maxNumWide;v++){for(;m<=o;m++){var _=t.resolutions[m],w=r.resolutions[m],S=getPrecinctIndexIfExist(v,k,w,r,_);if(null!==S){for(;g<l;){var C=createPacket(_,S,g);g++;return C}g=0}}m=0}v=0}k=0}throw new h("Out of packets")}}function getPrecinctIndexIfExist(t,r,o,c,l){var u=t*c.minWidth,h=r*c.minHeight;if(u%o.width!=0||h%o.height!=0)return null;var d=h/o.width*l.precinctParameters.numprecinctswide;return u/o.height+d}function getPrecinctSizesInImageScale(t){for(var r=t.components.length,o=Number.MAX_VALUE,c=Number.MAX_VALUE,l=0,u=0,h=new Array(r),d=0;d<r;d++){for(var g=t.components[d],m=g.codingStyleParameters.decompositionLevelsCount,y=new Array(m+1),v=Number.MAX_VALUE,k=Number.MAX_VALUE,_=0,w=0,S=1,C=m;C>=0;--C){var x=g.resolutions[C],O=S*x.precinctParameters.precinctWidth,T=S*x.precinctParameters.precinctHeight;v=Math.min(v,O);k=Math.min(k,T);_=Math.max(_,x.precinctParameters.numprecinctswide);w=Math.max(w,x.precinctParameters.numprecinctshigh);y[C]={width:O,height:T};S<<=1}o=Math.min(o,v);c=Math.min(c,k);l=Math.max(l,_);u=Math.max(u,w);h[d]={resolutions:y,minWidth:v,minHeight:k,maxNumWide:_,maxNumHigh:w}}return{components:h,minWidth:o,minHeight:c,maxNumWide:l,maxNumHigh:u}}function buildPackets(t){for(var r=t.SIZ,o=t.currentTile.index,c=t.tiles[o],l=r.Csiz,u=0;u<l;u++){for(var d=c.components[u],g=d.codingStyleParameters.decompositionLevelsCount,m=[],y=[],v=0;v<=g;v++){var k=getBlocksDimensions(0,d,v),_={},w=1<<g-v;_.trx0=Math.ceil(d.tcx0/w);_.try0=Math.ceil(d.tcy0/w);_.trx1=Math.ceil(d.tcx1/w);_.try1=Math.ceil(d.tcy1/w);_.resLevel=v;buildPrecincts(0,_,k);m.push(_);var S=void 0;if(0===v){(S={}).type="LL";S.tbx0=Math.ceil(d.tcx0/w);S.tby0=Math.ceil(d.tcy0/w);S.tbx1=Math.ceil(d.tcx1/w);S.tby1=Math.ceil(d.tcy1/w);S.resolution=_;buildCodeblocks(0,S,k);y.push(S);_.subbands=[S]}else{var C=1<<g-v+1,x=[];(S={}).type="HL";S.tbx0=Math.ceil(d.tcx0/C-.5);S.tby0=Math.ceil(d.tcy0/C);S.tbx1=Math.ceil(d.tcx1/C-.5);S.tby1=Math.ceil(d.tcy1/C);S.resolution=_;buildCodeblocks(0,S,k);y.push(S);x.push(S);(S={}).type="LH";S.tbx0=Math.ceil(d.tcx0/C);S.tby0=Math.ceil(d.tcy0/C-.5);S.tbx1=Math.ceil(d.tcx1/C);S.tby1=Math.ceil(d.tcy1/C-.5);S.resolution=_;buildCodeblocks(0,S,k);y.push(S);x.push(S);(S={}).type="HH";S.tbx0=Math.ceil(d.tcx0/C-.5);S.tby0=Math.ceil(d.tcy0/C-.5);S.tbx1=Math.ceil(d.tcx1/C-.5);S.tby1=Math.ceil(d.tcy1/C-.5);S.resolution=_;buildCodeblocks(0,S,k);y.push(S);x.push(S);_.subbands=x}}d.resolutions=m;d.subbands=y}var O=c.codingStyleDefaultParameters.progressionOrder;switch(O){case 0:c.packetsIterator=new LayerResolutionComponentPositionIterator(t);break;case 1:c.packetsIterator=new ResolutionLayerComponentPositionIterator(t);break;case 2:c.packetsIterator=new ResolutionPositionComponentLayerIterator(t);break;case 3:c.packetsIterator=new PositionComponentResolutionLayerIterator(t);break;case 4:c.packetsIterator=new ComponentPositionResolutionLayerIterator(t);break;default:throw new h("Unsupported progression order ".concat(O))}}function parseTilePackets(t,r,o,c){var u,d=0,g=0,v=!1;function readBits(t){for(;g<t;){var c=r[o+d];d++;if(v){u=u<<7|c;g+=7;v=!1}else{u=u<<8|c;g+=8}255===c&&(v=!0)}return u>>>(g-=t)&(1<<t)-1}function skipMarkerIfEqual(t){if(255===r[o+d-1]&&r[o+d]===t){skipBytes(1);return!0}if(255===r[o+d]&&r[o+d+1]===t){skipBytes(2);return!0}return!1}function skipBytes(t){d+=t}function alignToByte(){g=0;if(v){d++;v=!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 k=t.currentTile.index,_=t.tiles[k],w=t.COD.sopMarkerUsed,S=t.COD.ephMarkerUsed,C=_.packetsIterator;d<c;){alignToByte();w&&skipMarkerIfEqual(145)&&skipBytes(4);var x=C.nextPacket();if(readBits(1)){for(var O=x.layerNumber,T=[],E=void 0,M=0,R=x.codeblocks.length;M<R;M++){var j=(E=x.codeblocks[M]).precinct,D=E.cbx-j.cbxMin,N=E.cby-j.cbyMin,L=!1,U=!1,H=void 0;if(void 0!==E.included)L=!!readBits(1);else{var $=void 0;if(void 0!==(j=E.precinct).inclusionTree)$=j.inclusionTree;else{var X=j.cbxMax-j.cbxMin+1,q=j.cbyMax-j.cbyMin+1;$=new y(X,q,O);H=new m(X,q);j.inclusionTree=$;j.zeroBitPlanesTree=H;for(var G=0;G<O;G++)if(0!==readBits(1))throw new h("Invalid tag tree")}if($.reset(D,N,O))for(;;){if(!readBits(1)){$.incrementValue(O);break}if(!$.nextLevel()){E.included=!0;L=U=!0;break}}}if(L){if(U){(H=j.zeroBitPlanesTree).reset(D,N);for(;;)if(readBits(1)){if(!H.nextLevel())break}else H.incrementValue();E.zeroBitPlanes=H.value}for(var z=readCodingpasses();readBits(1);)E.Lblock++;var W=(0,l.log2)(z),V=readBits((z<1<<W?W-1:W)+E.Lblock);T.push({codeblock:E,codingpasses:z,dataLength:V})}}alignToByte();S&&skipMarkerIfEqual(146);for(;T.length>0;){var K=T.shift();void 0===(E=K.codeblock).data&&(E.data=[]);E.data.push({data:r,start:o+d,end:o+d+K.dataLength,codingpasses:K.codingpasses});d+=K.dataLength}}}return d}function copyCoefficients(t,r,o,c,l,h,d,g,m){for(var y=c.tbx0,k=c.tby0,_=c.tbx1-c.tbx0,w=c.codeblocks,S="H"===c.type.charAt(0)?1:0,C="H"===c.type.charAt(1)?r:0,x=0,O=w.length;x<O;++x){var T=w[x],E=T.tbx1_-T.tbx0_,M=T.tby1_-T.tby0_;if(0!==E&&0!==M&&void 0!==T.data){var R=new v(E,M,T.subbandType,T.zeroBitPlanes,h),j=2,D=T.data,N=0,L=0,U=void 0,H=void 0,$=void 0;for(U=0,H=D.length;U<H;U++){N+=($=D[U]).end-$.start;L+=$.codingpasses}var X=new Uint8Array(N),q=0;for(U=0,H=D.length;U<H;U++){var G=($=D[U]).data.subarray($.start,$.end);X.set(G,q);q+=G.length}var z=new u.ArithmeticDecoder(X,0,N);R.setDecoder(z);for(U=0;U<L;U++){switch(j){case 0:R.runSignificancePropagationPass();break;case 1:R.runMagnitudeRefinementPass();break;case 2:R.runCleanupPass();g&&R.checkSegmentationSymbol()}m&&R.reset();j=(j+1)%3}var W=T.tbx0_-y+(T.tby0_-k)*_,V=R.coefficentsSign,K=R.coefficentsMagnitude,Y=R.bitsDecoded,J=d?0:.5,Z=void 0,Q=void 0,ee=void 0;q=0;var te="LL"!==c.type;for(U=0;U<M;U++){var re=2*(W/_|0)*(r-_)+S+C;for(Z=0;Z<E;Z++){if(0!==(Q=K[q])){Q=(Q+J)*l;0!==V[q]&&(Q=-Q);ee=Y[q];var ae=te?re+(W<<1):W;t[ae]=d&&ee>=h?Q:Q*(1<<h-ee)}W++;q++}W+=_-E}}}}function transformTile(t,r,o){for(var c=r.components[o],l=c.codingStyleParameters,u=c.quantizationParameters,h=l.decompositionLevelsCount,g=u.SPqcds,m=u.scalarExpounded,y=u.guardBits,v=l.segmentationSymbolUsed,k=l.resetContextProbabilities,S=t.components[o].precision,C=l.reversibleTransformation,x=C?new w:new _,O=[],T=0,E=0;E<=h;E++){for(var M=c.resolutions[E],R=M.trx1-M.trx0,j=M.try1-M.try0,D=new Float32Array(R*j),N=0,L=M.subbands.length;N<L;N++){var U=void 0,H=void 0;if(m){U=g[T].mu;H=g[T].epsilon;T++}else{U=g[0].mu;H=g[0].epsilon+(E>0?1-E:0)}var $=M.subbands[N],X=d[$.type];copyCoefficients(D,R,0,$,C?1:Math.pow(2,S+X-H)*(1+U/2048),y+H-1,C,v,k)}O.push({width:R,height:j,items:D})}var q=x.calculate(O,c.tcx0,c.tcy0);return{left:c.tcx0,top:c.tcy0,width:q.width,height:q.height,items:q.items}}function initializeTile(t,r){for(var o=t.SIZ.Csiz,c=t.tiles[r],l=0;l<o;l++){var u=c.components[l],h=void 0!==t.currentTile.QCC[l]?t.currentTile.QCC[l]:t.currentTile.QCD;u.quantizationParameters=h;var d=void 0!==t.currentTile.COC[l]?t.currentTile.COC[l]:t.currentTile.COD;u.codingStyleParameters=d}c.codingStyleDefaultParameters=t.currentTile.COD}var m=function(){function TagTree(t,r){_classCallCheck(this,TagTree);var o=(0,l.log2)(Math.max(t,r))+1;this.levels=[];for(var c=0;c<o;c++){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,c=0,l=0;c<this.levels.length;){var u=t+r*(o=this.levels[c]).width;if(void 0!==o.items[u]){l=o.items[u];break}o.index=u;t>>=1;r>>=1;c++}c--;(o=this.levels[c]).items[o.index]=l;this.currentLevel=c;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 c=(0,l.log2)(Math.max(t,r))+1;this.levels=[];for(var u=0;u<c;u++){for(var h=new Uint8Array(t*r),d=0,g=h.length;d<g;d++)h[d]=o;var m={width:t,height:r,items:h};this.levels.push(m);t=Math.ceil(t/2);r=Math.ceil(r/2)}}_createClass(InclusionTree,[{key:"reset",value:function reset(t,r,o){for(var c=0;c<this.levels.length;){var l=this.levels[c],u=t+r*l.width;l.index=u;var h=l.items[u];if(255===h)break;if(h>o){this.currentLevel=c;this.propagateValues();return!1}t>>=1;r>>=1;c++}this.currentLevel=c-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]),c=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,l,u,h,d){_classCallCheck(this,BitModel);this.width=t;this.height=l;var g;g="HH"===u?c:"HL"===u?o:r;this.contextLabelTable=g;var m,y=t*l;this.neighborsSignificance=new Uint8Array(y);this.coefficentsSign=new Uint8Array(y);m=d>14?new Uint32Array(y):d>6?new Uint16Array(y):new Uint8Array(y);this.coefficentsMagnitude=m;this.processingFlags=new Uint8Array(y);var v=new Uint8Array(y);if(0!==h)for(var k=0;k<y;k++)v[k]=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 c,l=this.neighborsSignificance,u=this.width,h=this.height,d=r>0,g=r+1<u;if(t>0){c=o-u;d&&(l[c-1]+=16);g&&(l[c+1]+=16);l[c]+=4}if(t+1<h){c=o+u;d&&(l[c-1]+=16);g&&(l[c+1]+=16);l[c]+=4}d&&(l[o-1]+=1);g&&(l[o+1]+=1);l[o]|=128}},{key:"runSignificancePropagationPass",value:function runSignificancePropagationPass(){for(var t=this.decoder,r=this.width,o=this.height,c=this.coefficentsMagnitude,l=this.coefficentsSign,u=this.neighborsSignificance,h=this.processingFlags,d=this.contexts,g=this.contextLabelTable,m=this.bitsDecoded,y=0;y<o;y+=4)for(var v=0;v<r;v++)for(var k=y*r+v,_=0;_<4;_++,k+=r){var w=y+_;if(w>=o)break;h[k]&=-2;if(!c[k]&&u[k]){var S=g[u[k]];if(t.readBit(d,S)){var C=this.decodeSignBit(w,v,k);l[k]=C;c[k]=1;this.setNeighborsSignificance(w,v,k);h[k]|=2}m[k]++;h[k]|=1}}}},{key:"decodeSignBit",value:function decodeSignBit(t,r,o){var c,l,u,h,d,g,m=this.width,y=this.height,v=this.coefficentsMagnitude,k=this.coefficentsSign;h=r>0&&0!==v[o-1];if(r+1<m&&0!==v[o+1]){u=k[o+1];c=h?1-u-(l=k[o-1]):1-u-u}else c=h?1-(l=k[o-1])-l:0;var _=3*c;h=t>0&&0!==v[o-m];if(t+1<y&&0!==v[o+m]){u=k[o+m];c=h?1-u-(l=k[o-m])+_:1-u-u+_}else c=h?1-(l=k[o-m])-l+_:_;if(c>=0){d=9+c;g=this.decoder.readBit(this.contexts,d)}else{d=9-c;g=1^this.decoder.readBit(this.contexts,d)}return g}},{key:"runMagnitudeRefinementPass",value:function runMagnitudeRefinementPass(){for(var t,r=this.decoder,o=this.width,c=this.height,l=this.coefficentsMagnitude,u=this.neighborsSignificance,h=this.contexts,d=this.bitsDecoded,g=this.processingFlags,m=o*c,y=4*o,v=0;v<m;v=t){t=Math.min(m,v+y);for(var k=0;k<o;k++)for(var _=v+k;_<t;_+=o)if(l[_]&&0==(1&g[_])){var w=16;if(0!=(2&g[_])){g[_]^=2;w=0===(127&u[_])?15:14}var S=r.readBit(h,w);l[_]=l[_]<<1|S;d[_]++;g[_]|=1}}}},{key:"runCleanupPass",value:function runCleanupPass(){for(var r,o=this.decoder,c=this.width,l=this.height,u=this.neighborsSignificance,h=this.coefficentsMagnitude,d=this.coefficentsSign,g=this.contexts,m=this.contextLabelTable,y=this.bitsDecoded,v=this.processingFlags,k=c,_=2*c,w=3*c,S=0;S<l;S=r){r=Math.min(S+4,l);for(var C=S*c,x=S+3<l,O=0;O<c;O++){var T=C+O,E=0,M=T,R=S,j=void 0;if(x&&0===v[T]&&0===v[T+k]&&0===v[T+_]&&0===v[T+w]&&0===u[T]&&0===u[T+k]&&0===u[T+_]&&0===u[T+w]){if(!o.readBit(g,18)){y[T]++;y[T+k]++;y[T+_]++;y[T+w]++;continue}if(0!==(E=o.readBit(g,t)<<1|o.readBit(g,t))){R=S+E;M+=E*c}j=this.decodeSignBit(R,O,M);d[M]=j;h[M]=1;this.setNeighborsSignificance(R,O,M);v[M]|=2;M=T;for(var D=S;D<=R;D++,M+=c)y[M]++;E++}for(R=S+E;R<r;R++,M+=c)if(!h[M]&&0==(1&v[M])){var N=m[u[M]];if(1===o.readBit(g,N)){j=this.decodeSignBit(R,O,M);d[M]=j;h[M]=1;this.setNeighborsSignificance(R,O,M);v[M]|=2}y[M]++}}}}},{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}()}(),k=function(){function Transform(){_classCallCheck(this,Transform);this.constructor===Transform&&(0,c.unreachable)("Cannot initialize Transform.")}_createClass(Transform,[{key:"calculate",value:function calculate(t,r,o){for(var c=t[0],l=1,u=t.length;l<u;l++)c=this.iterate(c,t[l],r,o);return c}},{key:"extend",value:function extend(t,r,o){var c=r-1,l=r+1,u=r+o-2,h=r+o;t[c--]=t[l++];t[h++]=t[u--];t[c--]=t[l++];t[h++]=t[u--];t[c--]=t[l++];t[h++]=t[u--];t[c]=t[l];t[h]=t[u]}},{key:"filter",value:function filter(t,r,o){(0,c.unreachable)("Abstract method `filter` called")}},{key:"iterate",value:function iterate(t,r,o,c){var l,u,h,d,g,m,y=t.width,v=t.height,k=t.items,_=r.width,w=r.height,S=r.items;for(h=0,l=0;l<v;l++){d=2*l*_;for(u=0;u<y;u++,h++,d+=2)S[d]=k[h]}k=t.items=null;var C=new Float32Array(_+8);if(1===_){if(0!=(1&o))for(m=0,h=0;m<w;m++,h+=_)S[h]*=.5}else for(m=0,h=0;m<w;m++,h+=_){C.set(S.subarray(h,h+_),4);this.extend(C,4,_);this.filter(C,4,_);S.set(C.subarray(4,4+_),h)}var x=16,O=[];for(l=0;l<x;l++)O.push(new Float32Array(w+8));var T,E=0;t=4+w;if(1===w){if(0!=(1&c))for(g=0;g<_;g++)S[g]*=.5}else for(g=0;g<_;g++){if(0===E){x=Math.min(_-g,x);for(h=g,d=4;d<t;h+=_,d++)for(T=0;T<x;T++)O[T][d]=S[h+T];E=x}var M=O[--E];this.extend(M,4,w);this.filter(M,4,w);if(0===E){h=g-x+1;for(d=4;d<t;h+=_,d++)for(T=0;T<x;T++)S[h+T]=O[T][d]}}return{width:_,height:w,items:S}}}]);return Transform}(),_=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 c,l,u,h,d=o>>1,g=-1.586134342059924,m=-.052980118572961,y=.882911075530934,v=.443506852043971,k=1.230174104914001;c=(r|=0)-3;for(l=d+4;l--;c+=2)t[c]*=.8128930661159609;u=v*t[(c=r-2)-1];for(l=d+3;l--;c+=2){h=v*t[c+1];t[c]=k*t[c]-u-h;if(!l--)break;u=v*t[(c+=2)+1];t[c]=k*t[c]-u-h}u=y*t[(c=r-1)-1];for(l=d+2;l--;c+=2){h=y*t[c+1];t[c]-=u+h;if(!l--)break;u=y*t[(c+=2)+1];t[c]-=u+h}u=m*t[(c=r)-1];for(l=d+1;l--;c+=2){h=m*t[c+1];t[c]-=u+h;if(!l--)break;u=m*t[(c+=2)+1];t[c]-=u+h}if(0!==d){u=g*t[(c=r+1)-1];for(l=d;l--;c+=2){h=g*t[c+1];t[c]-=u+h;if(!l--)break;u=g*t[(c+=2)+1];t[c]-=u+h}}}}]);return IrreversibleTransform}(k),w=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 c,l,u=o>>1;for(c=r|=0,l=u+1;l--;c+=2)t[c]-=t[c-1]+t[c+1]+2>>2;for(c=r+1,l=u;l--;c+=2)t[c]+=t[c-1]+t[c+1]>>1}}]);return ReversibleTransform}(k)},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.LZWStream=void 0;function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(LZWStream,t);var r=_createSuper(LZWStream);function LZWStream(t,o,c){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,LZWStream);(l=r.call(this,o)).str=t;l.dict=t.dict;l.cachedData=0;l.bitsCached=0;for(var u=4096,h={earlyChange:c,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}l.lzwState=h;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(LZWStream,[{key:"readBits",value:function readBits(t){for(var r=this.bitsCached,o=this.cachedData;r<t;){var c=this.str.getByte();if(-1===c){this.eof=!0;return null}o=o<<8|c;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,c=1024,l=this.lzwState;if(l){var u=l.earlyChange,h=l.nextCode,d=l.dictionaryValues,g=l.dictionaryLengths,m=l.dictionaryPrevCodes,y=l.codeLength,v=l.prevCode,k=l.currentSequence,_=l.currentSequenceLength,w=0,S=this.bufferLength,C=this.ensureBuffer(this.bufferLength+c);for(t=0;t<512;t++){var x=this.readBits(y),O=_>0;if(x<256){k[0]=x;_=1}else{if(!(x>=258)){if(256===x){y=9;h=258;_=0;continue}this.eof=!0;delete this.lzwState;break}if(x<h)for(r=(_=g[x])-1,o=x;r>=0;r--){k[r]=d[o];o=m[o]}else k[_++]=k[0]}if(O){m[h]=v;g[h]=g[v]+1;d[h]=k[0];y=++h+u&h+u-1?y:0|Math.min(Math.log(h+u)/.6931471805599453+1,12)}v=x;if(c<(w+=_)){do{c+=512}while(c<w);C=this.ensureBuffer(this.bufferLength+c)}for(r=0;r<_;r++)C[S++]=k[r]}l.nextCode=h;l.codeLength=y;l.prevCode=v;l.currentSequenceLength=_;this.bufferLength=S}}}]);return LZWStream}(o(171).DecodeStream);r.LZWStream=c},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.PredictorStream=void 0;var c=o(171),l=o(147),u=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}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){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(PredictorStream,t);var r=_createSuper(PredictorStream);function PredictorStream(t,o,c){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(!(c instanceof l.Dict))return _possibleConstructorReturn(h,t);var d=h.predictor=c.get("Predictor")||1;if(d<=1)return _possibleConstructorReturn(h,t);if(2!==d&&(d<10||d>15))throw new u.FormatError("Unsupported predictor: ".concat(d));h.readBlock=2===d?h.readBlockTiff:h.readBlockPng;h.str=t;h.dict=t.dict;var g=h.colors=c.get("Colors")||1,m=h.bits=c.get("BPC","BitsPerComponent")||8,y=h.columns=c.get("Columns")||1;h.pixBytes=g*m+7>>3;h.rowBytes=y*g*m+7>>3;return _possibleConstructorReturn(h,_assertThisInitialized(h))}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(PredictorStream,[{key:"readBlockTiff",value:function readBlockTiff(){var t=this.rowBytes,r=this.bufferLength,o=this.ensureBuffer(r+t),c=this.bits,l=this.colors,u=this.str.getBytes(t);this.eof=!u.length;if(!this.eof){var h,d=0,g=0,m=0,y=0,v=r;if(1===c&&1===l)for(h=0;h<t;++h){var k=u[h]^d;k^=k>>1;k^=k>>2;d=(1&(k^=k>>4))<<7;o[v++]=k}else if(8===c){for(h=0;h<l;++h)o[v++]=u[h];for(;h<t;++h){o[v]=o[v-l]+u[h];v++}}else if(16===c){var _=2*l;for(h=0;h<_;++h)o[v++]=u[h];for(;h<t;h+=2){var w=((255&u[h])<<8)+(255&u[h+1])+((255&o[v-_])<<8)+(255&o[v-_+1]);o[v++]=w>>8&255;o[v++]=255&w}}else{var S=new Uint8Array(l+1),C=(1<<c)-1,x=0,O=r,T=this.columns;for(h=0;h<T;++h)for(var E=0;E<l;++E){if(m<c){d=d<<8|255&u[x++];m+=8}S[E]=S[E]+(d>>m-c)&C;m-=c;g=g<<c|S[E];if((y+=c)>=8){o[O++]=g>>y-8&255;y-=8}}y>0&&(o[O++]=(g<<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(),c=this.str.getBytes(t);this.eof=!c.length;if(!this.eof){var l=this.bufferLength,h=this.ensureBuffer(l+t),d=h.subarray(l-t,l);0===d.length&&(d=new Uint8Array(t));var g,m,y,v=l;switch(o){case 0:for(g=0;g<t;++g)h[v++]=c[g];break;case 1:for(g=0;g<r;++g)h[v++]=c[g];for(;g<t;++g){h[v]=h[v-r]+c[g]&255;v++}break;case 2:for(g=0;g<t;++g)h[v++]=d[g]+c[g]&255;break;case 3:for(g=0;g<r;++g)h[v++]=(d[g]>>1)+c[g];for(;g<t;++g){h[v]=(d[g]+h[v-r]>>1)+c[g]&255;v++}break;case 4:for(g=0;g<r;++g){m=d[g];y=c[g];h[v++]=m+y}for(;g<t;++g){m=d[g];var k=d[g-r],_=h[v-r],w=_+m-k,S=w-_;S<0&&(S=-S);var C=w-m;C<0&&(C=-C);var x=w-k;x<0&&(x=-x);y=c[g];h[v++]=S<=C&&S<=x?_+y:C<=x?m+y:k+y}break;default:throw new u.FormatError("Unsupported predictor: ".concat(o))}this.bufferLength+=t}}}]);return PredictorStream}(c.DecodeStream);r.PredictorStream=h},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.RunLengthStream=void 0;function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(RunLengthStream,t);var r=_createSuper(RunLengthStream);function RunLengthStream(t,o){var c;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,RunLengthStream);(c=r.call(this,o)).str=t;c.dict=t.dict;return c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,c=t[0];if(c<128){(r=this.ensureBuffer(o+c+1))[o++]=t[1];if(c>0){var l=this.str.getBytes(c);r.set(l,o);o+=c}}else{c=257-c;var u=t[1];r=this.ensureBuffer(o+c+1);for(var h=0;h<c;h++)r[o++]=u}this.bufferLength=o}}}]);return RunLengthStream}(o(171).DecodeStream);r.RunLengthStream=c},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Font=r.ErrorFont=void 0;var c=o(4),l=o(187),u=o(160),h=o(163),d=o(162),g=o(161),m=o(189),y=o(190),v=o(191),k=o(192),_=o(193),w=o(194),S=o(168),C=o(195),x=o(150),O=o(152),T=o(196);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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var E=[[57344,63743],[1048576,1114109]],M=1e3,R=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],j=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function adjustWidths(t){if(t.fontMatrix&&t.fontMatrix[0]!==c.FONT_IDENTITY_MATRIX[0]){var r=.001/t.fontMatrix[0],o=t.widths;for(var l in o)o[l]*=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,c,l,u,d,g,m){_classCallCheck(this,Glyph);this.originalCharCode=t;this.fontChar=r;this.unicode=o;this.accent=c;this.width=l;this.vmetric=u;this.operatorListId=d;this.isSpace=g;this.isInFont=m;var y=(0,h.getCharUnicodeCategory)(o);this.isWhitespace=y.isWhitespace;this.isZeroWidthDiacritic=y.isZeroWidthDiacritic;this.isInvisibleFormatMark=y.isInvisibleFormatMark}_createClass(Glyph,[{key:"matchesForCache",value:function matchesForCache(t,r,o,c,l,u,h,d,g){return this.originalCharCode===t&&this.fontChar===r&&this.unicode===o&&this.accent===c&&this.width===l&&this.vmetric===u&&this.operatorListId===h&&this.isSpace===d&&this.isInFont===g}}]);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,c.bytesToString)(r)}function getFontFileType(t,r){var o,l,u=r.type,h=r.subtype,d=r.composite;if(function isTrueTypeFile(t){var r=t.peekBytes(4);return 65536===(0,x.readUint32)(r,0)||"true"===(0,c.bytesToString)(r)}(t)||isTrueTypeCollectionFile(t))o=d?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(t){var r=t.peekBytes(4);return"OTTO"===(0,c.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";l="CIDFontType0C"}else{o="MMType1"===u?"MMType1":"Type1";l="Type1C"}else{(0,c.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");o=u;l=h}return[o,l]}function applyStandardFontGlyphMap(t,r){for(var o in r)t[+o]=r[o]}function buildToFontChar(t,r,o){for(var c,l=[],u=0,d=t.length;u<d;u++)-1!==(c=(0,h.getUnicodeForGlyph)(t[u],r))&&(l[u]=c);for(var g in o)-1!==(c=(0,h.getUnicodeForGlyph)(o[g],r))&&(l[+g]=c);return l}function convertCidString(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(r.length){case 1:return r.charCodeAt(0);case 2:return r.charCodeAt(0)<<8|r.charCodeAt(1)}var l="Unsupported CID string (charCode ".concat(t,'): "').concat(r,'".');if(o)throw new c.FormatError(l);(0,c.warn)(l);return r}function adjustMapping(t,r,o){var l=Object.create(null),u=[],h=0,d=E[h][0],g=E[h][1];for(var m in t){var y=t[m|=0];if(r(y)){if(d>g){if(++h>=E.length){(0,c.warn)("Ran out of space in font private use area.");break}d=E[h][0];g=E[h][1]}var v=d++;0===y&&(y=o);l[v]=y;u[m]=v}}return{toFontChar:u,charCodeToGlyphId:l,nextAvailableFontCharCode:d}}function createCmapTable(t,r){var o,l,u,h,d=function getRanges(t,r){var o=[];for(var c in t)t[c]>=r||o.push({fontCharCode:0|c,glyphId:t[c]});0===o.length&&o.push({fontCharCode:0,glyphId:0});o.sort((function fontGetRangesSort(t,r){return t.fontCharCode-r.fontCharCode}));for(var l=[],u=o.length,h=0;h<u;){var d=o[h].fontCharCode,g=[o[h].glyphId];++h;for(var m=d;h<u&&m+1===o[h].fontCharCode;){g.push(o[h].glyphId);++h;if(65535==++m)break}l.push([d,m,g])}return l}(t,r),g=d[d.length-1][1]>65535?2:1,m="\0\0"+string16(g)+"\0\0"+(0,c.string32)(4+8*g);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,k,_,w,S=d[o][1]<65535?1:0,x=y+S,O=C.OpenTypeFileBuilder.getSearchParams(x,2),T="",E="",M="",R="",j="",D=0;for(o=0,l=y;o<l;o++){k=(v=d[o])[0];_=v[1];T+=string16(k);E+=string16(_);var N=!0;for(u=1,h=(w=v[2]).length;u<h;++u)if(w[u]!==w[u-1]+1){N=!1;break}if(N){M+=string16(w[0]-k&65535);R+=string16(0)}else{var L=2*(x-o)+2*D;D+=_-k+1;M+=string16(0);R+=string16(L);for(u=0,h=w.length;u<h;++u)j+=string16(w[u])}}if(S>0){E+="ÿÿ";T+="ÿÿ";M+="\0";R+="\0\0"}var U="\0\0"+string16(2*x)+string16(O.range)+string16(O.entry)+string16(O.rangeShift)+E+"\0\0"+T+M+R+j,H="",$="";if(g>1){m+="\0\0\n"+(0,c.string32)(4+8*g+4+U.length);H="";for(o=0,l=d.length;o<l;o++){k=(v=d[o])[0];var X=(w=v[2])[0];for(u=1,h=w.length;u<h;++u)if(w[u]!==w[u-1]+1){_=v[0]+u-1;H+=(0,c.string32)(k)+(0,c.string32)(_)+(0,c.string32)(X);k=_+1;X=w[u]}H+=(0,c.string32)(k)+(0,c.string32)(v[1])+(0,c.string32)(X)}$="\0\f\0\0"+(0,c.string32)(H.length+16)+"\0\0\0\0"+(0,c.string32)(H.length/12)}return m+"\0"+string16(U.length+4)+U+$+H}function createOS2Table(t,r,o){o=o||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var l=0,u=0,d=0,g=0,m=null,y=0;if(r){for(var v in r){(m>(v|=0)||!m)&&(m=v);y<v&&(y=v);var k=(0,h.getUnicodeRangeFor)(v);if(k<32)l|=1<<k;else if(k<64)u|=1<<k-32;else if(k<96)d|=1<<k-64;else{if(!(k<123))throw new c.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");g|=1<<k-96}}y>65535&&(y=65535)}else{m=0;y=255}var _=t.bbox||[0,0,0,0],w=o.unitsPerEm||1/(t.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],S=t.ascentScaled?1:w/M,C=o.ascent||Math.round(S*(t.ascent||_[3])),x=o.descent||Math.round(S*(t.descent||_[1]));x>0&&t.descent>0&&_[1]<0&&(x=-x);var O=o.yMax||C,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,c.string32)(l)+(0,c.string32)(u)+(0,c.string32)(d)+(0,c.string32)(g)+"*21*"+string16(t.italicAngle?1:0)+string16(m||t.firstChar)+string16(y||t.lastChar)+string16(C)+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,c.string32)(r)+"\0\0\0\0"+(0,c.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,c,l,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"],g=[];for(o=0,c=d.length;o<c;o++){var m=[];for(l=0,u=(h=r[1][o]||d[o]).length;l<u;l++)m.push(string16(h.charCodeAt(l)));g.push(m.join(""))}var y=[d,g],v=["\0","\0"],k=["\0\0","\0"],_=["\0\0","\t"],w=d.length*v.length,S="\0\0"+string16(w)+string16(12*w+6),C=0;for(o=0,c=v.length;o<c;o++){var x=y[o];for(l=0,u=x.length;l<u;l++){h=x[l];S+=v[o]+k[o]+_[o]+string16(l)+string16(h.length)+string16(C);C+=h.length}}return S+=d.join("")+g.join("")}var N=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);var l=!!(o.flags&u.FontFlags.Serif);if(!l&&!o.isSimulatedFlags){var h,d=t.replace(/[,_]/g,"-").split("-")[0],g=(0,m.getSerifFonts)(),y=_createForOfIteratorHelper(d.split("+"));try{for(y.s();!(h=y.n()).done;){if(g[h.value]){l=!0;break}}}catch(t){y.e(t)}finally{y.f()}}this.isSerifFont=l;this.isSymbolicFont=!!(o.flags&u.FontFlags.Symbolic);this.isMonospace=!!(o.flags&u.FontFlags.FixedPitch);var k=o.type,_=o.subtype;this.type=k;this.subtype=_;var w="sans-serif";this.isMonospace?w="monospace":this.isSerifFont&&(w="serif");this.fallbackName=w;this.differences=o.differences;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.composite=o.composite;this.cMap=o.cMap;this.capHeight=o.capHeight/M;this.ascent=o.ascent/M;this.descent=o.descent/M;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 S,C=_slicedToArray(getFontFileType(r,o),2);k=C[0];_=C[1];k===this.type&&_===this.subtype||(0,c.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(k,"/").concat(_,"."));try{switch(k){case"MMType1":(0,c.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var x="Type1C"===_||"CIDFontType0C"===_?new v.CFFFont(r,o):new T.Type1Font(t,r,o);adjustWidths(o);S=this.convert(t,x,o);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";S=this.checkAndRepair(t,r,o);if(this.isOpenType){adjustWidths(o);k="OpenType"}break;default:throw new c.FormatError("Font ".concat(k," is not supported"))}}catch(t){(0,c.warn)(t);this.fallbackToSystemFont(o);return}amendFallbackToUnicode(o);this.data=S;this.fontType=(0,u.getFontType)(k,_,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,c.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")");this.fallbackToSystemFont(o)}}else{for(var O=0;O<256;O++)this.toFontChar[O]=this.differences[O]||o.defaultEncoding[O];this.fontType=c.FontType.TYPE3}}_createClass(Font,[{key:"renderer",get:function get(){var t=k.FontRendererFactory.create(this,u.SEAC_ANALYSIS_ENABLED);return(0,c.shadow)(this,"renderer",t)}},{key:"exportData",value:function exportData(){var t,r,o,c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=c?[].concat(R,j):R,u=Object.create(null),h=_createForOfIteratorHelper(l);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,l=this.type,v=this.subtype,k=(0,u.normalizeFontName)(o),w=(0,m.getStdFontMap)(),S=(0,m.getNonStdFontMap)(),C=!!w[k],x=!(!S[k]||!w[S[k]]);k=w[k]||S[k]||k;var O=(0,_.getFontBasicMetrics)()[k];if(O){isNaN(this.ascent)&&(this.ascent=O.ascent/M);isNaN(this.descent)&&(this.descent=O.descent/M);isNaN(this.capHeight)&&(this.capHeight=O.capHeight/M)}this.bold=-1!==k.search(/bold/gi);this.italic=-1!==k.search(/oblique/gi)||-1!==k.search(/italic/gi);this.black=-1!==o.search(/Black/g);var T=-1!==o.search(/Narrow/g);this.remeasure=(!C||T)&&Object.keys(this.widths).length>0;if((C||x)&&"CIDFontType2"===l&&this.cidEncoding.startsWith("Identity-")){var E=t.cidToGidMap,R=[];applyStandardFontGlyphMap(R,(0,m.getGlyphMapForStandardFonts)());/Arial-?Black/i.test(o)?applyStandardFontGlyphMap(R,(0,m.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(o)&&applyStandardFontGlyphMap(R,(0,m.getSupplementalGlyphMapForCalibri)());if(E){for(var j in R){var D=R[j];void 0!==E[D]&&(R[+j]=E[D])}E.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof y.IdentityToUnicodeMap&&this.toUnicode.forEach((function(t,r){var o=R[t];void 0===E[o]&&(R[+t]=r)}))}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(k))this.toFontChar=buildToFontChar(g.SymbolSetEncoding,(0,d.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(k)){/Wingdings/i.test(o)&&(0,c.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=buildToFontChar(g.ZapfDingbatsEncoding,(0,d.getDingbatsGlyphsUnicode)(),this.differences)}else if(C){var N=buildToFontChar(this.defaultEncoding,(0,d.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==l||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof y.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,r){N[+t]=r}));this.toFontChar=N}else{var L=(0,d.getGlyphsUnicode)(),U=[];this.toUnicode.forEach((function(t,o){if(!r.composite){var c=r.differences[t]||r.defaultEncoding[t],l=(0,h.getUnicodeForGlyph)(c,L);-1!==l&&(o=l)}U[+t]=o}));this.composite&&this.toUnicode instanceof y.IdentityToUnicodeMap&&/Verdana/i.test(o)&&applyStandardFontGlyphMap(U,(0,m.getGlyphMapForStandardFonts)());this.toFontChar=U}amendFallbackToUnicode(t);this.loadedName=k.split("-")[0];this.fontType=(0,u.getFontType)(l,v,t.isStandardFont)}},{key:"checkAndRepair",value:function checkAndRepair(t,r,o){var h=["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 c=0;c<r;c++){var l=readTableEntry(t);h.includes(l.tag)&&(0!==l.length&&(o[l.tag]=l))}return o}function readTableEntry(t){var r=t.getString(4),o=t.getInt32()>>>0,c=t.getInt32()>>>0,l=t.getInt32()>>>0,u=t.pos;t.pos=t.start?t.start:0;t.skip(c);var h=t.getBytes(l);t.pos=u;if("head"===r){h[8]=h[9]=h[10]=h[11]=0;h[17]|=32}return{tag:r,checksum:o,length:l,offset:c,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,c,l,u){var h={length:0,sizeOfInstructions:0};if(o-r<=12)return h;var d=t.subarray(r,o),g=signedInt16(d[0],d[1]);if(g<0){writeSignedInt16(d,0,g=-1);c.set(d,l);h.length=d.length;return h}var m,y=10,v=0;for(m=0;m<g;m++){v=(d[y]<<8|d[y+1])+1;y+=2}var k=y,_=d[y]<<8|d[y+1];h.sizeOfInstructions=_;var w=y+=2+_,S=0;for(m=0;m<v;m++){var C=d[y++];192&C&&(d[y-1]=63&C);var x=2;2&C?x=1:16&C&&(x=0);var O=2;4&C?O=1:32&C&&(O=0);var T=x+O;S+=T;if(8&C){var E=d[y++];m+=E;S+=E*T}}if(0===S)return h;var M=y+S;if(M>d.length)return h;if(!u&&_>0){c.set(d.subarray(0,k),l);c.set([0,0],l+k);c.set(d.subarray(w,M),l+k+2);M-=_;d.length-M>3&&(M=M+3&-4);h.length=M;return h}if(d.length-M>3){M=M+3&-4;c.set(d.subarray(0,M),l);h.length=M;return h}c.set(d,l);h.length=d.length;return h}function readNameTable(t){var o=(r.start?r.start:0)+t.offset;r.pos=o;var c=[[],[]],l=t.length,u=o+l;if(0!==r.getUint16()||l<6)return c;var h,d,g=r.getUint16(),m=r.getUint16(),y=[];for(h=0;h<g&&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 k=y[h];if(!(k.length<=0)){var _=o+m+k.offset;if(!(_+k.length>u)){r.pos=_;var w=k.name;if(k.encoding){for(var S="",C=0,x=k.length;C<x;C+=2)S+=String.fromCharCode(r.getUint16());c[1][w]=S}else c[0][w]=r.getString(k.length)}}}return c}var m,k,_,x,T=[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,l,u,h,d,g=t.data,m=0,y=0,v=0,k=[],_=[],w=[],S=r.tooComplexToFollowFunctions,C=!1,x=0,O=0,E=g.length;m<E;){var M=g[m++];if(64===M){l=g[m++];if(C||O)m+=l;else for(o=0;o<l;o++)k.push(g[m++])}else if(65===M){l=g[m++];if(C||O)m+=2*l;else for(o=0;o<l;o++){u=g[m++];k.push(u<<8|g[m++])}}else if(176==(248&M)){l=M-176+1;if(C||O)m+=l;else for(o=0;o<l;o++)k.push(g[m++])}else if(184==(248&M)){l=M-184+1;if(C||O)m+=2*l;else for(o=0;o<l;o++){u=g[m++];k.push(u<<8|g[m++])}}else if(43!==M||S)if(44!==M||S){if(45===M)if(C){C=!1;y=m}else{if(!(d=_.pop())){(0,c.warn)("TT: ENDF bad stack");r.hintsValid=!1;return}h=w.pop();g=d.data;m=d.i;r.functionsStackDeltas[h]=k.length-d.stackTop}else if(137===M){if(C||O){(0,c.warn)("TT: nested IDEFs not allowed");S=!0}C=!0;v=m}else if(88===M)++x;else if(27===M)O=x;else if(89===M){O===x&&(O=0);--x}else if(28===M&&!C&&!O){var R=k[k.length-1];R>0&&(m+=R-1)}}else{if(C||O){(0,c.warn)("TT: nested FDEFs not allowed");S=!0}C=!0;v=m;h=k.pop();r.functionsDefined[h]={data:g,i:m}}else if(!C&&!O){h=k[k.length-1];if(isNaN(h))(0,c.info)("TT: CALL empty stack (or invalid entry).");else{r.functionsUsed[h]=!0;if(h in r.functionsStackDeltas){var j=k.length+r.functionsStackDeltas[h];if(j<0){(0,c.warn)("TT: CALL invalid functions stack delta.");r.hintsValid=!1;return}k.length=j}else if(h in r.functionsDefined&&!w.includes(h)){_.push({data:g,i:m,stackTop:k.length-1});w.push(h);if(!(d=r.functionsDefined[h])){(0,c.warn)("TT: CALL non-existent function");r.hintsValid=!1;return}g=d.data;m=d.i}}}if(!C&&!O){var D=0;M<=142?D=T[M]:M>=192&&M<=223?D=-1:M>=224&&(D=-2);if(M>=113&&M<=117){l=k.pop();isNaN(l)||(D=2*-l)}for(;D<0&&k.length>0;){k.pop();D++}for(;D>0;){k.push(NaN);D--}}}r.tooComplexToFollowFunctions=S;var N=[g];m>g.length&&N.push(new Uint8Array(m-g.length));if(v>y){(0,c.warn)("TT: complementing a missing function tail");N.push(new Uint8Array([34,45]))}!function foldTTTable(t,r){if(r.length>1){var o,c,l=0;for(o=0,c=r.length;o<c;o++)l+=r[o].length;l=l+3&-4;var u=new Uint8Array(l),h=0;for(o=0,c=r.length;o<c;o++){u.set(r[o],h);h+=r[o].length}t.data=u;t.length=l}}(t,N)}if(isTrueTypeCollectionFile(r=new O.Stream(new Uint8Array(r.getBytes())))){var E=function readTrueTypeCollectionData(t,r){for(var o,l=function readTrueTypeCollectionHeader(t){var r=t.getString(4);(0,c.assert)("ttcf"===r,"Must be a TrueType Collection font.");for(var o=t.getUint16(),l=t.getUint16(),u=t.getInt32()>>>0,h=[],d=0;d<u;d++)h.push(t.getInt32()>>>0);var g={ttcTag:r,majorVersion:o,minorVersion:l,numFonts:u,offsetTable:h};switch(o){case 1:return g;case 2:g.dsigTag=t.getInt32()>>>0;g.dsigLength=t.getInt32()>>>0;g.dsigOffset=t.getInt32()>>>0;return g}throw new c.FormatError("Invalid TrueType Collection majorVersion: ".concat(o,"."))}(t),u=l.numFonts,h=l.offsetTable,d=r.split("+"),g=0;g<u;g++){t.pos=(t.start||0)+h[g];var m=readOpenTypeHeader(t),y=readTables(t,m.numTables);if(!y.name)throw new c.FormatError('TrueType Collection font must contain a "name" table.');for(var v=readNameTable(y.name),k=0,_=v.length;k<_;k++)for(var w=0,S=v[k].length;w<S;w++){var C=v[k][w]&&v[k][w].replace(/\s/g,"");if(C){if(C===r)return{header:m,tables:y};if(!(d.length<2)){var x,O=_createForOfIteratorHelper(d);try{for(O.s();!(x=O.n()).done;){var T=x.value;C===T&&(o={name:T,header:m,tables:y})}}catch(t){O.e(t)}finally{O.f()}}}}}if(o){(0,c.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 c.FormatError('TrueType Collection does not contain "'.concat(r,'" font.'))}(r,this.name);m=E.header;k=E.tables}else{m=readOpenTypeHeader(r);k=readTables(r,m.numTables)}var M=!k["CFF "];if(M){if(!k.loca)throw new c.FormatError('Required "loca" table is not found');if(!k.glyf){(0,c.warn)('Required "glyf" table is not found -- trying to recover.');k.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{var R=o.composite&&((o.cidToGidMap||[]).length>0||!(o.cMap instanceof S.IdentityCMap));if("OTTO"===m.version&&!R||!k.head||!k.hhea||!k.maxp||!k.post){x=new O.Stream(k["CFF "].data);_=new v.CFFFont(x,o);adjustWidths(o);return this.convert(t,_,o)}delete k.glyf;delete k.loca;delete k.fpgm;delete k.prep;delete k["cvt "];this.isOpenType=!0}if(!k.maxp)throw new c.FormatError('Required "maxp" table is not found');r.pos=(r.start||0)+k.maxp.offset;var j=r.getInt32(),D=r.getUint16();if(o.scaleFactors&&o.scaleFactors.length===D&&M){var N=o.scaleFactors,L=int16(k.head.data[50],k.head.data[51]),U=new w.GlyfTable({glyfTable:k.glyf.data,isGlyphLocationsLong:L,locaTable:k.loca.data,numGlyphs:D});U.scale(N);var H=U.write(),$=H.glyf,X=H.loca,q=H.isLocationLong;k.glyf.data=$;k.loca.data=X;if(q!==!!L){k.head.data[50]=0;k.head.data[51]=q?1:0}for(var G=k.hmtx.data,z=0;z<D;z++){var W=4*z,V=Math.round(N[z]*int16(G[W],G[W+1]));G[W]=V>>8&255;G[W+1]=255&V;writeSignedInt16(G,W+2,Math.round(N[z]*signedInt16(G[W+2],G[W+3])))}}var K=D+1,Y=!0;if(K>65535){Y=!1;K=D;(0,c.warn)("Not enough space in glyfs to duplicate first glyph.")}var J=0,Z=0;if(j>=65536&&k.maxp.length>=22){r.pos+=8;if(r.getUint16()>2){k.maxp.data[14]=0;k.maxp.data[15]=2}r.pos+=4;J=r.getUint16();r.pos+=4;Z=r.getUint16()}k.maxp.data[4]=K>>8;k.maxp.data[5]=255&K;var Q=function sanitizeTTPrograms(t,r,o,l){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,c.warn)("TT: more functions defined than expected");t.hintsValid=!1}else for(var o=0,l=t.functionsUsed.length;o<l;o++){if(o>r){(0,c.warn)("TT: invalid function id: "+o);t.hintsValid=!1;return}if(t.functionsUsed[o]&&!t.functionsDefined[o]){(0,c.warn)("TT: undefined function: "+o);t.hintsValid=!1;return}}}(u,l);if(o&&1&o.length){var h=new Uint8Array(o.length+1);h.set(o.data);o.data=h}return u.hintsValid}(k.fpgm,k.prep,k["cvt "],J);if(!Q){delete k.fpgm;delete k.prep;delete k["cvt "]}!function sanitizeMetrics(t,r,o,l,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 g=t.getUint16();if(0!==d){if(!(2&int16(l.data[44],l.data[45]))){r.data[22]=0;r.data[23]=0}}if(g>u){(0,c.info)("The numOfMetrics (".concat(g,") should not be ")+"greater than the numGlyphs (".concat(u,")."));g=u;r.data[34]=(65280&g)>>8;r.data[35]=255&g}var m=u-g-(o.length-4*g>>1);if(m>0){var y=new Uint8Array(o.length+2*m);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,k.hhea,k.hmtx,k.head,K,Y);if(!k.head)throw new c.FormatError('Required "head" table is not found');!function sanitizeHead(t,r,o){var l=t.data,u=function int32(t,r,o,c){return(t<<24)+(r<<16)+(o<<8)+c}(l[0],l[1],l[2],l[3]);if(u>>16!=1){(0,c.info)("Attempting to fix invalid version in head table: "+u);l[0]=0;l[1]=1;l[2]=0;l[3]=0}var h=int16(l[50],l[51]);if(h<0||h>1){(0,c.info)("Attempting to fix invalid indexToLocFormat in head table: "+h);var d=r+1;if(o===d<<1){l[50]=0;l[51]=0}else{if(o!==d<<2)throw new c.FormatError("Could not fix indexToLocFormat: "+h);l[50]=0;l[51]=1}}}(k.head,D,M?k.loca.length:0);var ee=Object.create(null);if(M){var te=int16(k.head.data[50],k.head.data[51]),re=function sanitizeGlyphLocations(t,r,o,c,l,u,h){var d,g,m;if(c){d=4;g=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};m=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;g=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1};m=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),k=new Uint8Array(v);k.set(t.data.subarray(0,v));t.data=k;var _,w,S=r.data,C=S.length,x=new Uint8Array(C),O=[];for(_=0,w=0;_<o+1;_++,w+=d){var T=g(k,w);T>C&&(T=C);O.push({index:_,offset:T,endOffset:0})}O.sort((function(t,r){return t.offset-r.offset}));for(_=0;_<o;_++)O[_].endOffset=O[_+1].offset;O.sort((function(t,r){return t.index-r.index}));var E=Object.create(null),M=0;m(k,0,M);for(_=0,w=d;_<o;_++,w+=d){var R=sanitizeGlyph(S,O[_].offset,O[_].endOffset,x,M,l),j=R.length;0===j&&(E[_]=!0);R.sizeOfInstructions>h&&(h=R.sizeOfInstructions);m(k,w,M+=j)}if(0===M){var D=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(_=0,w=d;_<y;_++,w+=d)m(k,w,D.length);r.data=D}else if(u){var N=g(k,d);if(x.length>N+M)r.data=x.subarray(0,N+M);else{r.data=new Uint8Array(N+M);r.data.set(x.subarray(0,M))}r.data.set(x.subarray(0,N),M);m(t.data,k.length-d,M+N)}else r.data=x.subarray(0,M);return{missingGlyphs:E,maxSizeOfInstructions:h}}(k.loca,k.glyf,D,te,Q,Y,Z);ee=re.missingGlyphs;if(j>=65536&&k.maxp.length>=22){k.maxp.data[26]=re.maxSizeOfInstructions>>8;k.maxp.data[27]=255&re.maxSizeOfInstructions}}if(!k.hhea)throw new c.FormatError('Required "hhea" table is not found');if(0===k.hhea.data[10]&&0===k.hhea.data[11]){k.hhea.data[10]=255;k.hhea.data[11]=255}var ae={unitsPerEm:int16(k.head.data[18],k.head.data[19]),yMax:int16(k.head.data[42],k.head.data[43]),yMin:signedInt16(k.head.data[38],k.head.data[39]),ascent:signedInt16(k.hhea.data[4],k.hhea.data[5]),descent:signedInt16(k.hhea.data[6],k.hhea.data[7]),lineGap:signedInt16(k.hhea.data[8],k.hhea.data[9])};this.ascent=ae.ascent/ae.unitsPerEm;this.descent=ae.descent/ae.unitsPerEm;this.lineGap=ae.lineGap/ae.unitsPerEm;if(this.cssFontInfo&&this.cssFontInfo.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else this.lineHeight=this.ascent-this.descent+this.lineGap;k.post&&function readPostScriptTable(t,o,l){var h=(r.start?r.start:0)+t.offset;r.pos=h;var d,g=h+t.length,m=r.getInt32();r.skip(28);var y,v=!0;switch(m){case 65536:d=u.MacStandardGlyphOrdering;break;case 131072:var k=r.getUint16();if(k!==l){v=!1;break}var _=[];for(y=0;y<k;++y){var w=r.getUint16();if(w>=32768){v=!1;break}_.push(w)}if(!v)break;for(var S=[],C=[];r.pos<g;){var x=r.getByte();C.length=x;for(y=0;y<x;++y)C[y]=String.fromCharCode(r.getByte());S.push(C.join(""))}d=[];for(y=0;y<k;++y){var O=_[y];O<258?d.push(u.MacStandardGlyphOrdering[O]):d.push(S[O-258])}break;case 196608:break;default:(0,c.warn)("Unknown/unsupported post table version "+m);v=!1;o.defaultEncoding&&(d=o.defaultEncoding)}o.glyphNames=d;return v}(k.post,o,D);k.post={tag:"post",data:createPostTable(o)};var ne=[];function hasGlyph(t){return!ee[t]}if(o.composite){var ie=o.cidToGidMap||[],oe=0===ie.length;o.cMap.forEach((function(t,r){"string"==typeof r&&(r=convertCidString(t,r,!0));if(r>65535)throw new c.FormatError("Max size of CID is 65,535");var o=-1;oe?o=r:void 0!==ie[r]&&(o=ie[r]);o>=0&&o<D&&hasGlyph(o)&&(ne[t]=o)}))}else{var se=function readCmapTable(t,r,o,l){if(!t){(0,c.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,g=r.getUint16(),m=!1,y=0;y<g;y++){var v=r.getUint16(),k=r.getUint16(),_=r.getInt32()>>>0,w=!1;if(!d||d.platformId!==v||d.encodingId!==k){if(0!==v||0!==k&&1!==k&&3!==k)if(1===v&&0===k)w=!0;else if(3!==v||1!==k||!l&&d){if(o&&3===v&&0===k){w=!0;var S=!0;if(y<g-1){var C=r.peekBytes(2);int16(C[0],C[1])<v&&(S=!1)}S&&(m=!0)}}else{w=!0;o||(m=!0)}else w=!0;w&&(d={platformId:v,encodingId:k,offset:_});if(m)break}}d&&(r.pos=h+d.offset);if(!d||-1===r.peekByte()){(0,c.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,E=!1,M=[];if(0===x){for(O=0;O<256;O++){var R=r.getByte();R&&M.push({charCode:O,glyphId:R})}E=!0}else if(2===x){for(var j=[],D=0,N=0;N<256;N++){var L=r.getUint16()>>3;j.push(L);D=Math.max(L,D)}for(var U=[],H=0;H<=D;H++)U.push({firstCode:r.getUint16(),entryCount:r.getUint16(),idDelta:signedInt16(r.getByte(),r.getByte()),idRangePos:r.pos+r.getUint16()});for(var $=0;$<256;$++)if(0===j[$]){r.pos=U[0].idRangePos+2*$;T=r.getUint16();M.push({charCode:$,glyphId:T})}else{var X=U[j[$]];for(O=0;O<X.entryCount;O++){var q=($<<8)+O+X.firstCode;r.pos=X.idRangePos+2*O;0!==(T=r.getUint16())&&(T=(T+X.idDelta)%65536);M.push({charCode:q,glyphId:T})}}}else if(4===x){var G=r.getUint16()>>1;r.skip(6);var z,W=[];for(z=0;z<G;z++)W.push({end:r.getUint16()});r.skip(2);for(z=0;z<G;z++)W[z].start=r.getUint16();for(z=0;z<G;z++)W[z].delta=r.getUint16();var V,K=0;for(z=0;z<G;z++){u=W[z];var Y=r.getUint16();if(Y){V=(Y>>1)-(G-z);u.offsetIndex=V;K=Math.max(K,V+u.end-u.start+1)}else u.offsetIndex=-1}var J=[];for(O=0;O<K;O++)J.push(r.getUint16());for(z=0;z<G;z++){h=(u=W[z]).start;var Z=u.end,Q=u.delta;V=u.offsetIndex;for(O=h;O<=Z;O++)if(65535!==O){T=(T=V<0?O:J[V+O-h])+Q&65535;M.push({charCode:O,glyphId:T})}}}else{if(6!==x){(0,c.warn)("cmap table has unsupported format: "+x);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var ee=r.getUint16(),te=r.getUint16();for(O=0;O<te;O++){T=r.getUint16();var re=ee+O;M.push({charCode:re,glyphId:T})}}M.sort((function(t,r){return t.charCode-r.charCode}));for(var ae=1;ae<M.length;ae++)if(M[ae-1].charCode===M[ae].charCode){M.splice(ae,1);ae--}return{platformId:d.platformId,encodingId:d.encodingId,mappings:M,hasShortCmap:E}}(k.cmap,r,this.isSymbolicFont,o.hasEncoding),ce=se.platformId,le=se.encodingId,ue=se.mappings,fe=ue.length,he=[],de=!1;!o.hasEncoding||"MacRomanEncoding"!==o.baseEncodingName&&"WinAnsiEncoding"!==o.baseEncodingName||(he=(0,g.getEncoding)(o.baseEncodingName));if(o.hasEncoding&&!this.isSymbolicFont&&(3===ce&&1===le||1===ce&&0===le))for(var pe=(0,d.getGlyphsUnicode)(),ge=0;ge<256;ge++){var me=void 0;if(me=void 0!==this.differences[ge]?this.differences[ge]:he.length&&""!==he[ge]?he[ge]:g.StandardEncoding[ge]){var ye=(0,u.recoverGlyphName)(me,pe),ve=void 0;3===ce&&1===le?ve=pe[ye]:1===ce&&0===le&&(ve=g.MacRomanEncoding.indexOf(ye));if(void 0===ve){if(!o.glyphNames&&o.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof y.IdentityToUnicodeMap)){var be=this.toUnicode.get(ge);be&&(ve=be.codePointAt(0))}if(void 0===ve)continue}for(var ke=0;ke<fe;++ke)if(ue[ke].charCode===ve){ne[ge]=ue[ke].glyphId;break}}}else if(0===ce){for(var _e=0;_e<fe;++_e)ne[ue[_e].charCode]=ue[_e].glyphId;de=!0}else for(var we=0;we<fe;++we){var Se=ue[we].charCode;3===ce&&Se>=61440&&Se<=61695&&(Se&=255);ne[Se]=ue[we].glyphId}if(o.glyphNames&&(he.length||this.differences.length))for(var Ce=0;Ce<256;++Ce)if(de||void 0===ne[Ce]){var xe=this.differences[Ce]||he[Ce];if(xe){var Oe=o.glyphNames.indexOf(xe);Oe>0&&hasGlyph(Oe)&&(ne[Ce]=Oe)}}}0===ne.length&&(ne[0]=0);var Ae=K-1;Y||(Ae=0);if(!o.cssFontInfo){var Pe=adjustMapping(ne,hasGlyph,Ae);this.toFontChar=Pe.toFontChar;k.cmap={tag:"cmap",data:createCmapTable(Pe.charCodeToGlyphId,K)};k["OS/2"]&&function validateOS2Table(t,r){r.pos=(r.start||0)+t.offset;var o=r.getUint16();r.skip(60);var c=r.getUint16();if(o<4&&768&c)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}(k["OS/2"],r)||(k["OS/2"]={tag:"OS/2",data:createOS2Table(o,Pe.charCodeToGlyphId,ae)})}if(!M)try{x=new O.Stream(k["CFF "].data);(_=new l.CFFParser(x,o,u.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();var Te=new l.CFFCompiler(_);k["CFF "].data=Te.compile()}catch(t){(0,c.warn)("Failed to compile font "+o.loadedName)}if(k.name){var Fe=readNameTable(k.name);k.name.data=createNameTable(t,Fe);this.psName=Fe[0][6]||null}else k.name={tag:"name",data:createNameTable(this.name)};var Ie=new C.OpenTypeFileBuilder(m.version);for(var Ee in k)Ie.addTable(Ee,k[Ee].data);return Ie.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=[],c=(0,d.getGlyphsUnicode)();for(var l in r){if(t.hasIncludedToUnicodeMap){if(t.toUnicode.has(l))continue}else if(t.hasEncoding&&(0===t.differences.length||void 0!==t.differences[l]))continue;var u=r[l],g=(0,h.getUnicodeForGlyph)(u,c);-1!==g&&(o[l]=String.fromCharCode(g))}o.length>0&&t.toUnicode.amend(o)}}(o,o.builtInEncoding);var l=1;r instanceof v.CFFFont&&(l=r.numGlyphs-1);var m=r.getGlyphMapping(o),k=null,_=m;if(!o.cssFontInfo){k=adjustMapping(m,r.hasGlyphId.bind(r),l);this.toFontChar=k.toFontChar;_=k.charCodeToGlyphId}var w=r.numGlyphs;function getCharCodes(t,r){var o=null;for(var c in t)if(r===t[c]){o||(o=[]);o.push(0|c)}return o}function createCharCode(t,r){for(var o in t)if(r===t[o])return 0|o;k.charCodeToGlyphId[k.nextAvailableFontCharCode]=r;return k.nextAvailableFontCharCode++}var S=r.seacs;if(k&&u.SEAC_ANALYSIS_ENABLED&&S&&S.length){var x=o.fontMatrix||c.FONT_IDENTITY_MATRIX,O=r.getCharset(),T=Object.create(null);for(var E in S){var M=S[E|=0],R=g.StandardEncoding[M[2]],j=g.StandardEncoding[M[3]],D=O.indexOf(R),N=O.indexOf(j);if(!(D<0||N<0)){var L={x:M[0]*x[0]+M[1]*x[2]+x[4],y:M[0]*x[1]+M[1]*x[3]+x[5]},U=getCharCodes(m,E);if(U)for(var H=0,$=U.length;H<$;H++){var X=U[H],q=k.charCodeToGlyphId,G=createCharCode(q,D),z=createCharCode(q,N);T[X]={baseFontCharCode:G,accentFontCharCode:z,accentOffset:L}}}}o.seacMap=T}var W=1/(o.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],V=new C.OpenTypeFileBuilder("OTTO");V.addTable("CFF ",r.data);V.addTable("OS/2",createOS2Table(o,_));V.addTable("cmap",createCmapTable(_,w));V.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(W)+"\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(w));V.addTable("hmtx",function fontFieldsHmtx(){for(var t=r.charstrings,o=r.cff?r.cff.widths:null,c="\0\0\0\0",l=1,u=w;l<u;l++){var h=0;if(t){var d=t[l-1];h="width"in d?d.width:0}else o&&(h=Math.ceil(o[l]||0));c+=string16(h)+string16(0)}return c}());V.addTable("maxp","\0\0P\0"+string16(w));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,l=r.length;o<l;o++){var u=r[o];if(u in this.widths){t=this.widths[u];break}var h=(0,d.getGlyphsUnicode)()[u],g=0;this.composite&&this.cMap.contains(h)&&"string"==typeof(g=this.cMap.lookup(h))&&(g=convertCidString(h,g));!g&&this.toUnicode&&(g=this.toUnicode.charCodeOf(h));g<=0&&(g=h);if(t=this.widths[g])break}t=t||this.defaultWidth;return(0,c.shadow)(this,"spaceWidth",t)}},{key:"_charToGlyph",value:function _charToGlyph(t){var r,o,l,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=t;this.cMap&&this.cMap.contains(t)&&"string"==typeof(d=this.cMap.lookup(t))&&(d=convertCidString(t,d));"number"!=typeof(o=this.widths[d])&&(o=this.defaultWidth);var g=this.vmetrics&&this.vmetrics[d],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,h.mapSpecialUnicodeValues)(r)}this.isType3Font&&(l=r);var k=null;if(this.seacMap&&this.seacMap[t]){y=!0;var _=this.seacMap[t];r=_.baseFontCharCode;k={fontChar:String.fromCodePoint(_.accentFontCharCode),offset:_.accentOffset}}var w="";"number"==typeof r&&(r<=1114111?w=String.fromCodePoint(r):(0,c.warn)("charToGlyph - invalid fontCharCode: ".concat(r)));var S=this._glyphCache[t];if(!S||!S.matchesForCache(t,w,m,k,o,g,l,u,y)){S=new D(t,w,m,k,o,g,l,u,y);this._glyphCache[t]=S}return S}},{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),c=t.length,l=0;l<c;){this.cMap.readCharCode(t,l,o);var u=o.charcode,h=o.length;l+=h;var d=this._charToGlyph(u,1===h&&32===t.charCodeAt(l-1));r.push(d)}else for(var g=0,m=t.length;g<m;++g){var y=t.charCodeAt(g),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),c=0;c<t.length;){this.cMap.readCharCode(t,c,o);var l=o.length;r.push([c,c+l]);c+=l}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=this,o=[],c=[],l=function hasCurrentBufErrors(){return o.length%2==1},u=this.toUnicode instanceof y.IdentityToUnicodeMap?function(t){return r.toUnicode.charCodeOf(t)}:function(t){return r.toUnicode.charCodeOf(String.fromCodePoint(t))},h=0,d=t.length;h<d;h++){var g=t.codePointAt(h);g>55295&&(g<57344||g>65533)&&h++;if(this.toUnicode){var m=u(g);if(-1!==m){if(l()){o.push(c.join(""));c.length=0}for(var v=(this.cMap?this.cMap.getCharCodeLength(m):1)-1;v>=0;v--)c.push(String.fromCharCode(m>>8*v&255));continue}}if(!l()){o.push(c.join(""));c.length=0}c.push(String.fromCodePoint(g))}o.push(c.join(""));return o}}]);return Font}();r.Font=N;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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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 c=o(4),l=o(188),u=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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,g=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 m;this.cff=r;var o=this.parseHeader(),c=this.parseIndex(o.endPos),l=this.parseIndex(c.endPos),u=this.parseIndex(l.endPos),h=this.parseIndex(u.endPos),d=this.parseDict(l.obj.get(0)),g=this.createDict(w,d,r.strings);r.header=o.obj;r.names=this.parseNameIndex(c.obj);r.strings=this.parseStringIndex(u.obj);r.topDict=g;r.globalSubrIndex=h.obj;this.parsePrivateDict(r.topDict);r.isCIDFont=g.hasName("ROS");var y=g.getByName("CharStrings"),v=this.parseIndex(y).obj,k=g.getByName("FontMatrix");k&&(t.fontMatrix=k);var _,S,C=g.getByName("FontBBox");if(C){t.ascent=Math.max(C[3],C[1]);t.descent=Math.min(C[1],C[3]);t.ascentScaled=!0}if(r.isCIDFont){for(var x=this.parseIndex(g.getByName("FDArray")).obj,O=0,T=x.count;O<T;++O){var E=x.get(O),M=this.createDict(w,this.parseDict(E),r.strings);this.parsePrivateDict(M);r.fdArray.push(M)}S=null;_=this.parseCharsets(g.getByName("charset"),v.count,r.strings,!0);r.fdSelect=this.parseFDSelect(g.getByName("FDSelect"),v.count)}else{_=this.parseCharsets(g.getByName("charset"),v.count,r.strings,!1);S=this.parseEncoding(g.getByName("Encoding"),t,r.strings,_.charset)}r.charset=_;r.encoding=S;var R=this.parseCharStrings({charStrings:v,localSubrIndex:g.privateDict.subrsIndex,globalSubrIndex:h.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:g.privateDict});r.charStrings=R.charStrings;r.seacs=R.seacs;r.widths=R.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 c.FormatError("Invalid CFF header");if(0!==o){(0,c.info)("cff data is shifted");t=t.subarray(o);this.bytes=t}var l=t[0],u=t[1],h=t[2],d=t[3];return{obj:new y(l,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="",c=15,l=["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,g=15&h;if(d===c)break;o+=l[d];if(g===c)break;o+=l[g]}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,c.warn)('CFFParser_parseDict: "'+o+'" is a reserved command.');return NaN}var o=[],l=[];r=0;for(var u=t.length;r<u;){var h=t[r];if(h<=21){12===h&&(h=h<<8|t[++r]);l.push([h,o]);o=[];++r}else o.push(parseOperand())}return l}},{key:"parseIndex",value:function parseIndex(t){var r,o,c=new k,l=this.bytes,u=l[t++]<<8|l[t++],h=[],d=t;if(0!==u){var g=l[t++],m=t+(u+1)*g-1;for(r=0,o=u+1;r<o;++r){for(var y=0,v=0;v<g;++v){y<<=8;y+=l[t++]}h.push(m+y)}d=h[u]}for(r=0,o=h.length-1;r<o;++r){var _=h[r],w=h[r+1];c.add(l.subarray(_,w))}return{obj:c,endPos:d}}},{key:"parseNameIndex",value:function parseNameIndex(t){for(var r=[],o=0,l=t.count;o<l;++o){var u=t.get(o);r.push((0,c.bytesToString)(u))}return r}},{key:"parseStringIndex",value:function parseStringIndex(t){for(var r=new v,o=0,l=t.count;o<l;++o){var u=t.get(o);r.add((0,c.bytesToString)(u))}return r}},{key:"createDict",value:function createDict(t,r,o){for(var c=new t(o),l=0,u=r.length;l<u;++l){var h=r[l],d=h[0],g=h[1];c.setByKey(d,g)}return c}},{key:"parseCharString",value:function parseCharString(o,l,u,h){if(!l||o.callDepth>10)return!1;for(var d=o.stackSize,g=o.stack,m=l.length,y=0;y<m;){var v=l[y++],k=null;if(12===v){var _=l[y++];if(0===_){l[y-2]=139;l[y-1]=22;d=0}else k=r[_]}else if(28===v){g[d]=(l[y]<<24|l[y+1]<<16)>>16;y+=2;d++}else if(14===v){if(d>=4){d-=4;if(this.seacAnalysisEnabled){o.seac=g.slice(d,d+4);return!1}}k=t[v]}else if(v>=32&&v<=246){g[d]=v-139;d++}else if(v>=247&&v<=254){g[d]=v<251?(v-247<<8)+l[y]+108:-(v-251<<8)-l[y]-108;y++;d++}else if(255===v){g[d]=(l[y]<<24|l[y+1]<<16|l[y+2]<<8|l[y+3])/65536;y+=4;d++}else if(19===v||20===v){o.hints+=d>>1;y+=o.hints+7>>3;d%=2;k=t[v]}else{if(10===v||29===v){var w=void 0;if(!(w=10===v?u:h)){k=t[v];(0,c.warn)("Missing subrsIndex for "+k.id);return!1}var S=32768;w.count<1240?S=107:w.count<33900&&(S=1131);var C=g[--d]+S;if(C<0||C>=w.count||isNaN(C)){k=t[v];(0,c.warn)("Out of bounds subrIndex for "+k.id);return!1}o.stackSize=d;o.callDepth++;if(!this.parseCharString(o,w.get(C),u,h))return!1;o.callDepth--;d=o.stackSize;continue}if(11===v){o.stackSize=d;return!0}if(0===v&&y===l.length){l[y-1]=14;k=t[14]}else k=t[v]}if(k){if(k.stem){o.hints+=d>>1;if(3===v||23===v)o.hasVStems=!0;else if(o.hasVStems&&(1===v||18===v)){(0,c.warn)("CFF stem hints are in wrong order");l[y-1]=1===v?3:23}}if("min"in k&&!o.undefStack&&d<k.min){(0,c.warn)("Not enough parameters for "+k.id+"; actual: "+d+", expected: "+k.min);if(0===d){l[y-1]=14;return!0}return!1}if(o.firstStackClearing&&k.stackClearing){o.firstStackClearing=!1;(d-=k.min)>=2&&k.stem?d%=2:d>1&&(0,c.warn)("Found too many parameters for stack-clearing command");d>0&&(o.width=g[d-1])}if("stackDelta"in k){"stackFn"in k&&k.stackFn(g,d);d+=k.stackDelta}else if(k.stackClearing)d=0;else if(k.resetStack){d=0;o.undefStack=!1}else if(k.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,l=t.globalSubrIndex,u=t.fdSelect,h=t.fdArray,d=t.privateDict,g=[],m=[],y=r.count,v=0;v<y;v++){var k=r.get(v),_={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},w=!0,S=null,C=d;if(u&&h.length){var x=u.getFDIndex(v);if(-1===x){(0,c.warn)("Glyph index is not in fd select.");w=!1}if(x>=h.length){(0,c.warn)("Invalid fd index for glyph index.");w=!1}w&&(S=(C=h[x].privateDict).subrsIndex)}else o&&(S=o);w&&(w=this.parseCharString(_,k,S,l));if(null!==_.width){var O=C.getByName("nominalWidthX");m[v]=O+_.width}else{var T=C.getByName("defaultWidthX");m[v]=T}null!==_.seac&&(g[v]=_.seac);w||r.set(v,new Uint8Array([14]))}return{charStrings:r,seacs:g,widths:m}}},{key:"emptyPrivateDictionary",value:function emptyPrivateDictionary(t){var r=this.createDict(S,[],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],c=r[1];if(0===o||c>=this.bytes.length)this.emptyPrivateDictionary(t);else{var l=c+o,u=this.bytes.subarray(c,l),h=this.parseDict(u),d=this.createDict(S,h,t.strings);t.privateDict=d;if(d.getByName("Subrs")){var g=d.getByName("Subrs"),m=c+g;if(0===g||m>=this.bytes.length)this.emptyPrivateDictionary(t);else{var y=this.parseIndex(m);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,C.ISO_ADOBE,l.ISOAdobeCharset);if(1===t)return new x(!0,C.EXPERT,l.ExpertCharset);if(2===t)return new x(!0,C.EXPERT_SUBSET,l.ExpertSubsetCharset);var h,d,g,m=this.bytes,y=t,v=m[t++],k=[u?0:".notdef"];r-=1;switch(v){case 0:for(g=0;g<r;g++){h=m[t++]<<8|m[t++];k.push(u?h:o.get(h))}break;case 1:for(;k.length<=r;){h=m[t++]<<8|m[t++];d=m[t++];for(g=0;g<=d;g++)k.push(u?h++:o.get(h++))}break;case 2:for(;k.length<=r;){h=m[t++]<<8|m[t++];d=m[t++]<<8|m[t++];for(g=0;g<=d;g++)k.push(u?h++:o.get(h++))}break;default:throw new c.FormatError("Unknown charset format")}var _=t,w=m.subarray(y,_);return new x(!1,v,k,w)}},{key:"parseEncoding",value:function parseEncoding(t,r,o,l){var h,d,g,m=Object.create(null),y=this.bytes,v=!1,k=null;if(0===t||1===t){v=!0;h=t;var _=t?u.ExpertEncoding:u.StandardEncoding;for(d=0,g=l.length;d<g;d++){var w=_.indexOf(l[d]);-1!==w&&(m[w]=d)}}else{var S=t;switch(127&(h=y[t++])){case 0:var C=y[t++];for(d=1;d<=C;d++)m[y[t++]]=d;break;case 1:var x=y[t++],T=1;for(d=0;d<x;d++)for(var E=y[t++],M=y[t++],R=E;R<=E+M;R++)m[R]=T++;break;default:throw new c.FormatError("Unknown encoding format: ".concat(h," in CFF"))}var j=t;if(128&h){y[S]&=127;!function readSupplement(){var r=y[t++];for(d=0;d<r;d++){var c=y[t++],u=(y[t++]<<8)+(255&y[t++]);m[c]=l.indexOf(o.get(u))}}()}k=y.subarray(S,j)}return new O(v,h&=127,m,k)}},{key:"parseFDSelect",value:function parseFDSelect(t,r){var o,l=this.bytes,u=l[t++],h=[];switch(u){case 0:for(o=0;o<r;++o){var d=l[t++];h.push(d)}break;case 3:var g=l[t++]<<8|l[t++];for(o=0;o<g;++o){var m=l[t++]<<8|l[t++];if(0===o&&0!==m){(0,c.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");m=0}for(var y=l[t++],v=l[t]<<8|l[t+1],k=m;k<v;++k)h.push(y)}t+=2;break;default:throw new c.FormatError('parseFDSelect: Unknown format "'.concat(u,'".'))}if(h.length!==r)throw new c.FormatError("parseFDSelect: Invalid font data.");return new T(u,h)}}]);return CFFParser}()}();r.CFFParser=g;var m=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,c.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=m;var y=_createClass((function CFFHeader(t,r,o,c){_classCallCheck(this,CFFHeader);this.major=t;this.minor=r;this.hdrSize=o;this.offSize=c}));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 k=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=k;var _=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 l=0;l<o;l++)if(isNaN(r[l])){(0,c.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 c.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 c.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,c=t.length;o<c;++o){var l=t[o],u=Array.isArray(l[0])?(l[0][0]<<8)+l[0][1]:l[0];r.keyToNameMap[u]=l[1];r.nameToKeyMap[l[1]]=u;r.types[u]=l[2];r.defaults[u]=l[3];r.opcodes[u]=Array.isArray(l[0])?l[0]:[l[0]];r.order.push(u)}return r}}]);return CFFDict}(),w=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 c=_createSuper(CFFTopDict);function CFFTopDict(o){var l;_classCallCheck(this,CFFTopDict);null===r&&(r=_.createTables(t));(l=c.call(this,r,o)).privateDict=null;return l}return _createClass(CFFTopDict)}(_)}();r.CFFTopDict=w;var S=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 c=_createSuper(CFFPrivateDict);function CFFPrivateDict(o){var l;_classCallCheck(this,CFFPrivateDict);null===r&&(r=_.createTables(t));(l=c.call(this,r,o)).subrsIndex=null;return l}return _createClass(CFFPrivateDict)}(_)}();r.CFFPrivateDict=S;var C={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},x=_createClass((function CFFCharset(t,r,o,c){_classCallCheck(this,CFFCharset);this.predefined=t;this.format=r;this.charset=o;this.raw=c}));r.CFFCharset=x;var O=_createClass((function CFFEncoding(t,r,o,c){_classCallCheck(this,CFFEncoding);this.predefined=t;this.format=r;this.encoding=o;this.raw=c})),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 E=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 c.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 c.FormatError("Not tracking location of ".concat(t));for(var l=o.data,u=this.offsets[t],h=0,d=r.length;h<d;++h){var g=5*h+u,m=g+1,y=g+2,v=g+3,k=g+4;if(29!==l[g]||0!==l[m]||0!==l[y]||0!==l[v]||0!==l[k])throw new c.FormatError("writing to an offset that is not empty");var _=r[h];l[g]=29;l[m]=_>>24&255;l[y]=_>>16&255;l[v]=_>>8&255;l[k]=255&_}}}]);return CFFOffsetTracker}(),M=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 l=this.compileNameIndex(t.names);r.add(l);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 g=t.fdArray[h],m=u.slice(0);g.hasName("FontMatrix")&&(m=c.Util.transform(m,g.getByName("FontMatrix")));g.setByName("FontMatrix",m)}}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 k=v.trackers[0],_=this.compileStringIndex(t.strings.strings);r.add(_);var w=this.compileIndex(t.globalSubrIndex);r.add(w);if(t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)k.setEntryLocation("Encoding",[t.encoding.format],r);else{var S=this.compileEncoding(t.encoding);k.setEntryLocation("Encoding",[r.length],r);r.add(S)}var C=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);k.setEntryLocation("charset",[r.length],r);r.add(C);var x=this.compileCharStrings(t.charStrings);k.setEntryLocation("CharStrings",[r.length],r);r.add(x);if(t.isCIDFont){k.setEntryLocation("FDSelect",[r.length],r);var O=this.compileFDSelect(t.fdSelect);r.add(O);v=this.compileTopDicts(t.fdArray,r.length,!0);k.setEntryLocation("FDArray",[r.length],r);r.add(v.output);var T=v.trackers;this.compilePrivateDicts(t.fdArray,T,r)}this.compilePrivateDicts([t.topDict],[k],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 c=parseFloat("1e"+((o[2]?+o[2]:0)+o[1].length));r=(Math.round(t*c)/c).toString()}var l,u,h="";for(l=0,u=r.length;l<u;++l){var d=r[l];h+="e"===d?"-"===r[++l]?"c":"b":"."===d?"a":"-"===d?"e":d}var g=[30];for(l=0,u=(h+=1&h.length?"f":"ff").length;l<u;l+=2)g.push(parseInt(h.substring(l,l+2),16));return g}},{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 k,o=0,l=t.length;o<l;++o){for(var u=t[o],h=Math.min(u.length,127),d=new Array(h),g=0;g<h;g++){var m=u[g];(m<"!"||m>"~"||"["===m||"]"===m||"("===m||")"===m||"{"===m||"}"===m||"<"===m||">"===m||"/"===m||"%"===m)&&(m="_");d[g]=m}""===(d=d.join(""))&&(d="Bad_Font_Name");r.add((0,c.stringToBytes)(d))}return this.compileIndex(r)}},{key:"compileTopDicts",value:function compileTopDicts(t,r,o){for(var c=[],l=new k,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 g=new E,m=this.compileDict(d,g);c.push(g);l.add(m);g.offset(r)}return{trackers:c,output:l=this.compileIndex(l,c)}}},{key:"compilePrivateDicts",value:function compilePrivateDicts(t,r,o){for(var l=0,u=t.length;l<u;++l){var h=t[l],d=h.privateDict;if(!d||!h.hasName("Private"))throw new c.FormatError("There must be a private dictionary.");var g=new E,m=this.compileDict(d,g),y=o.length;g.offset(y);m.length||(y=0);r[l].setEntryLocation("Private",[m.length,y],o);o.add(m);if(d.subrsIndex&&d.hasName("Subrs")){var v=this.compileIndex(d.subrsIndex);g.setEntryLocation("Subrs",[m.length],o);o.add(v)}}}},{key:"compileDict",value:function compileDict(t,r){for(var o=[],l=t.order,u=0;u<l.length;++u){var h=l[u];if(h in t.values){var d=t.values[h],g=t.types[h];Array.isArray(g)||(g=[g]);Array.isArray(d)||(d=[d]);if(0!==d.length){for(var m=0,y=g.length;m<y;++m){var v=g[m],k=d[m];switch(v){case"num":case"sid":o=o.concat(this.encodeNumber(k));break;case"offset":var _=t.keyToNameMap[h];r.isTracking(_)||r.track(_,o.length);o=o.concat([29,0,0,0,0]);break;case"array":case"delta":o=o.concat(this.encodeNumber(k));for(var w=1,S=d.length;w<S;++w)o=o.concat(this.encodeNumber(d[w]));break;default:throw new c.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 k,o=0,l=t.length;o<l;++o)r.add((0,c.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 k,o=0;o<t.count;o++){var c=t.get(o);0!==c.length?r.add(c):r.add(new Uint8Array([139,14]))}return this.compileIndex(r)}},{key:"compileCharset",value:function compileCharset(t,r,o,l){var u,h=r-1;if(l)u=new Uint8Array([2,0,0,h>>8&255,255&h]);else{(u=new Uint8Array(1+2*h))[0]=0;for(var d=0,g=t.charset.length,m=!1,y=1;y<u.length;y+=2){var v=0;if(d<g){var k=t.charset[d++];if(-1===(v=o.getSID(k))){v=0;if(!m){m=!0;(0,c.warn)("Couldn't find ".concat(k," 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,c=t.format;switch(c){case 0:(r=new Uint8Array(1+t.fdSelect.length))[0]=c;for(o=0;o<t.fdSelect.length;o++)r[o+1]=t.fdSelect[o];break;case 3:var l=t.fdSelect[0],u=[c,0,0,0,0,l];for(o=1;o<t.fdSelect.length;o++){var h=t.fdSelect[o];if(h!==l){u.push(o>>8&255,255&o,h);l=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,c=t.length;o<c;++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,c=o.length;if(0===c)return[0,0,0];var l,u,h=[c>>8&255,255&c],d=1;for(l=0;l<c;++l)d+=o[l].length;u=d<256?1:d<65536?2:d<16777216?3:4;h.push(u);var g=1;for(l=0;l<c+1;l++){1===u?h.push(255&g):2===u?h.push(g>>8&255,255&g):3===u?h.push(g>>16&255,g>>8&255,255&g):h.push(g>>>24&255,g>>16&255,g>>8&255,255&g);o[l]&&(g+=o[l].length)}for(l=0;l<c;l++){r[l]&&r[l].offset(h.length);for(var m=0,y=o[l].length;m<y;m++)h.push(o[l][m])}return h}}],[{key:"EncodeFloatRegExp",get:function get(){return(0,c.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]);return CFFCompiler}();r.CFFCompiler=M},(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,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getSerifFonts=r.getNonStdFontMap=r.getGlyphMapForStandardFonts=r.getFontNameToFileMap=void 0;r.getStandardFontName=function getStandardFontName(t){var r=(0,l.normalizeFontName)(t);return u()[r]};r.getSymbolsFonts=r.getSupplementalGlyphMapForCalibri=r.getSupplementalGlyphMapForArialBlack=r.getStdFontMap=void 0;var c=o(150),l=o(160),u=(0,c.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,c.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,c.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["ItcSymbol-Bold"]="Helvetica-Bold";t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique";t["ItcSymbol-Book"]="Helvetica";t["ItcSymbol-BookItalic"]="Helvetica-Oblique";t["ItcSymbol-Medium"]="Helvetica";t["ItcSymbol-MediumItalic"]="Helvetica-Oblique";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 g=(0,c.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.LiberationSerif=!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=g;var m=(0,c.getLookupTableFactory)((function(t){t.Dingbats=!0;t.Symbol=!0;t.ZapfDingbats=!0}));r.getSymbolsFonts=m;var y=(0,c.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[200]=193;t[203]=205;t[210]=218;t[223]=711;t[224]=321;t[225]=322;t[226]=352;t[227]=353;t[228]=381;t[229]=382;t[233]=221;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[267]=282;t[268]=283;t[269]=313;t[275]=323;t[276]=324;t[278]=328;t[283]=344;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,c.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));r.getSupplementalGlyphMapForArialBlack=v;var k=(0,c.getLookupTableFactory)((function(t){t[1]=32;t[4]=65;t[6]=193;t[17]=66;t[18]=67;t[21]=268;t[24]=68;t[28]=69;t[30]=201;t[32]=282;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[49]=205;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[92]=344;t[94]=83;t[97]=352;t[100]=84;t[104]=85;t[115]=86;t[116]=87;t[121]=88;t[122]=89;t[124]=221;t[127]=90;t[129]=381;t[258]=97;t[260]=225;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[275]=269;t[282]=100;t[286]=101;t[288]=233;t[290]=283;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[351]=237;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[398]=345;t[400]=115;t[401]=347;t[403]=353;t[410]=116;t[437]=117;t[448]=118;t[449]=119;t[454]=120;t[455]=121;t[457]=253;t[460]=122;t[462]=382;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=k},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ToUnicodeMap=r.IdentityToUnicodeMap=void 0;var 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var l=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=l;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,c.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 c=o(187),l=o(160),u=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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 c.CFFParser(t,r,l.SEAC_ANALYSIS_ENABLED);this.cff=o.parse();this.cff.duplicateFirstGlyph();var h=new c.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);Object.defineProperty(t,"prototype",{writable:!1});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,c=this.properties,u=o.charset.charset;if(c.composite){t=Object.create(null);if(o.isCIDFont)for(r=0;r<u.length;r++){var h=u[r];t[c.cMap.charCodeOf(h)]=r}else for(r=0;r<o.charStrings.count;r++)t[c.cMap.charCodeOf(r)]=r;return t}var d=o.encoding?o.encoding.encoding:null;c.isInternalFont&&(d=c.defaultEncoding);return t=(0,l.type1FontGlyphMapping)(c,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 c=r.charset,l=o.encoding,u=[];for(var h in l){var d=l[h];if(d>=0){var g=c[d];g&&(u[h]=g)}}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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.FontRendererFactory=void 0;var c=o(4),l=o(187),u=o(162),h=o(161),d=o(152);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function getUint32(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}function getUint16(t,r){return t[r]<<8|t[r+1]}function getInt16(t,r){return(t[r]<<24|t[r+1]<<16)>>16}function getInt8(t,r){return t[r]<<24>>24}function getFloat214(t,r){return getInt16(t,r)/16384}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 l,u,h,d=1===getUint16(t,r+2)?getUint32(t,r+8):getUint32(t,r+16),g=getUint16(t,r+d);if(4===g){getUint16(t,r+d+2);var m=getUint16(t,r+d+6)>>1;u=r+d+14;l=[];for(h=0;h<m;h++,u+=2)l[h]={end:getUint16(t,u)};u+=2;for(h=0;h<m;h++,u+=2)l[h].start=getUint16(t,u);for(h=0;h<m;h++,u+=2)l[h].idDelta=getUint16(t,u);for(h=0;h<m;h++,u+=2){var y=getUint16(t,u);if(0!==y){l[h].ids=[];for(var v=0,k=l[h].end-l[h].start+1;v<k;v++){l[h].ids[v]=getUint16(t,u+y);y+=2}}}return l}if(12===g){var _=getUint32(t,r+d+12);u=r+d+16;l=[];for(h=0;h<_;h++){r=getUint32(t,u);l.push({start:r,end:getUint32(t,u+4),idDelta:getUint32(t,u+8)-r});u+=12}return l}throw new c.FormatError("unsupported cmap: ".concat(g))}function parseCff(t,r,o,c){var u=new l.CFFParser(new d.Stream(t,r,o-r),{},c).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),c=0,l=0,u=t.length-1;l<u;){var h=l+u+1>>1;o<t[h].start?u=h-1:l=h}t[l].start<=o&&o<=t[l].end&&(c=t[l].idDelta+(t[l].ids?t[l].ids[o-t[l].start]:o)&65535);return{charCode:o,glyphId:c}}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,c,l){r.push({cmd:"quadraticCurveTo",args:[t,o,c,l]})}var c,l=0,u=getInt16(t,l),h=0,d=0;l+=10;if(u<0)do{c=getUint16(t,l);var g=getUint16(t,l+2);l+=4;var m=void 0,y=void 0;if(1&c){if(2&c){m=getInt16(t,l);y=getInt16(t,l+2)}else{m=getUint16(t,l);y=getUint16(t,l+2)}l+=4}else if(2&c){m=getInt8(t,l++);y=getInt8(t,l++)}else{m=t[l++];y=t[l++]}if(2&c){h=m;d=y}else{h=0;d=0}var v=1,k=1,_=0,w=0;if(8&c){v=k=getFloat214(t,l);l+=2}else if(64&c){v=getFloat214(t,l);k=getFloat214(t,l+2);l+=4}else if(128&c){v=getFloat214(t,l);_=getFloat214(t,l+2);w=getFloat214(t,l+4);k=getFloat214(t,l+6);l+=8}var S=o.glyphs[g];if(S){r.push({cmd:"save"},{cmd:"transform",args:[v,_,w,k,h,d]});compileGlyf(S,r,o);r.push({cmd:"restore"})}}while(32&c);else{var C,x,O=[];for(C=0;C<u;C++){O.push(getUint16(t,l));l+=2}l+=2+getUint16(t,l);for(var T=O[O.length-1]+1,E=[];E.length<T;){var M=1;8&(c=t[l++])&&(M+=t[l++]);for(;M-- >0;)E.push({flags:c})}for(C=0;C<T;C++){switch(18&E[C].flags){case 0:h+=getInt16(t,l);l+=2;break;case 2:h-=t[l++];break;case 18:h+=t[l++]}E[C].x=h}for(C=0;C<T;C++){switch(36&E[C].flags){case 0:d+=getInt16(t,l);l+=2;break;case 4:d-=t[l++];break;case 36:d+=t[l++]}E[C].y=d}var R=0;for(l=0;l<u;l++){var j=O[l],D=E.slice(R,j+1);if(1&D[0].flags)D.push(D[0]);else if(1&D[D.length-1].flags)D.unshift(D[D.length-1]);else{var N={flags:1,x:(D[0].x+D[D.length-1].x)/2,y:(D[0].y+D[D.length-1].y)/2};D.unshift(N);D.push(N)}moveTo(D[0].x,D[0].y);for(C=1,x=D.length;C<x;C++)if(1&D[C].flags)lineTo(D[C].x,D[C].y);else if(1&D[C+1].flags){quadraticCurveTo(D[C].x,D[C].y,D[C+1].x,D[C+1].y);C++}else quadraticCurveTo(D[C].x,D[C].y,(D[C].x+D[C+1].x)/2,(D[C].y+D[C+1].y)/2);R=j+1}}}function compileCharString(t,r,o,l){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,c,l,u,h){r.push({cmd:"bezierCurveTo",args:[t,o,c,l,u,h]})}var u=[],d=0,g=0,m=0;!function parse(t){for(var y=0;y<t.length;){var v=!1,k=t[y++],_=void 0,w=void 0,S=void 0,C=void 0,x=void 0,O=void 0,T=void 0,E=void 0;switch(k){case 1:case 3:case 18:case 23:m+=u.length>>1;v=!0;break;case 4:g+=u.pop();moveTo(d,g);v=!0;break;case 5:for(;u.length>0;){d+=u.shift();g+=u.shift();lineTo(d,g)}break;case 6:for(;u.length>0;){lineTo(d+=u.shift(),g);if(0===u.length)break;g+=u.shift();lineTo(d,g)}break;case 7:for(;u.length>0;){g+=u.shift();lineTo(d,g);if(0===u.length)break;lineTo(d+=u.shift(),g)}break;case 8:for(;u.length>0;){_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d,g)}break;case 10:T=u.pop();E=null;if(o.isCFFCIDFont){var M=o.fdSelect.getFDIndex(l);if(M>=0&&M<o.fdArray.length){var R=o.fdArray[M],j=void 0;R.privateDict&&R.privateDict.subrsIndex&&(j=R.privateDict.subrsIndex.objects);j&&(E=j[T+=getSubroutineBias(j)])}else(0,c.warn)("Invalid fd index for glyph index.")}else E=o.subrs[T+o.subrsBias];E&&parse(E);break;case 11:return;case 12:switch(k=t[y++]){case 34:w=(_=d+u.shift())+u.shift();x=g+u.shift();d=w+u.shift();bezierCurveTo(_,g,w,x,d,x);w=(_=d+u.shift())+u.shift();d=w+u.shift();bezierCurveTo(_,x,w,g,d,g);break;case 35:_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d,g);_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d,g);u.pop();break;case 36:bezierCurveTo(_=d+u.shift(),x=g+u.shift(),w=_+u.shift(),O=x+u.shift(),d=w+u.shift(),O);bezierCurveTo(_=d+u.shift(),O,w=_+u.shift(),O+u.shift(),d=w+u.shift(),g);break;case 37:var D=d,N=g;_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d,g);_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w;g=C;Math.abs(d-D)>Math.abs(g-N)?d+=u.shift():g+=u.shift();bezierCurveTo(_,S,w,C,d,g);break;default:throw new c.FormatError("unknown operator: 12 ".concat(k))}break;case 14:if(u.length>=4){var L=u.pop(),U=u.pop();g=u.pop();d=u.pop();r.push({cmd:"save"},{cmd:"translate",args:[d,g]});var H=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[L]]));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 19:case 20:y+=(m+=u.length>>1)+7>>3;v=!0;break;case 21:g+=u.pop();moveTo(d+=u.pop(),g);v=!0;break;case 22:moveTo(d+=u.pop(),g);v=!0;break;case 24:for(;u.length>2;){_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d,g)}d+=u.shift();g+=u.shift();lineTo(d,g);break;case 25:for(;u.length>6;){d+=u.shift();g+=u.shift();lineTo(d,g)}_=d+u.shift();S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d,g);break;case 26:u.length%2&&(d+=u.shift());for(;u.length>0;){_=d;S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w;g=C+u.shift();bezierCurveTo(_,S,w,C,d,g)}break;case 27:u.length%2&&(g+=u.shift());for(;u.length>0;)bezierCurveTo(_=d+u.shift(),S=g,w=_+u.shift(),C=S+u.shift(),d=w+u.shift(),g=C);break;case 28:u.push((t[y]<<24|t[y+1]<<16)>>16);y+=2;break;case 29:T=u.pop()+o.gsubrsBias;(E=o.gsubrs[T])&&parse(E);break;case 30:for(;u.length>0;){_=d;S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+(1===u.length?u.shift():0);bezierCurveTo(_,S,w,C,d,g);if(0===u.length)break;_=d+u.shift();S=g;w=_+u.shift();C=S+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d=w+(1===u.length?u.shift():0),g)}break;case 31:for(;u.length>0;){_=d+u.shift();S=g;w=_+u.shift();C=S+u.shift();g=C+u.shift();bezierCurveTo(_,S,w,C,d=w+(1===u.length?u.shift():0),g);if(0===u.length)break;_=d;S=g+u.shift();w=_+u.shift();C=S+u.shift();d=w+u.shift();g=C+(1===u.length?u.shift():0);bezierCurveTo(_,S,w,C,d,g)}break;default:if(k<32)throw new c.FormatError("unknown operator: ".concat(k));if(k<247)u.push(k-139);else if(k<251)u.push(256*(k-247)+t[y++]+108);else if(k<255)u.push(256*-(k-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 g=[],m=function(){function CompiledFont(t){_classCallCheck(this,CompiledFont);this.constructor===CompiledFont&&(0,c.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,c=r.glyphId,l=this.compiledGlyphs[c];if(!l)try{l=this.compileGlyph(this.glyphs[c],c);this.compiledGlyphs[c]=l}catch(t){this.compiledGlyphs[c]=g;void 0===this.compiledCharCodeToGlyphId[o]&&(this.compiledCharCodeToGlyphId[o]=c);throw t}void 0===this.compiledCharCodeToGlyphId[o]&&(this.compiledCharCodeToGlyphId[o]=c);return l}},{key:"compileGlyph",value:function compileGlyph(t,r){if(!t||0===t.length||14===t[0])return g;var o=this.fontMatrix;if(this.isCFFCIDFont){var l=this.fdSelect.getFDIndex(r);if(l>=0&&l<this.fdArray.length){o=this.fdArray[l].getByName("FontMatrix")||c.FONT_IDENTITY_MATRIX}else(0,c.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,c.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function hasBuiltPath(t){var r=lookupCmap(this.cmap,t),o=r.charCode,c=r.glyphId;return void 0!==this.compiledGlyphs[c]&&void 0!==this.compiledCharCodeToGlyphId[o]}}]);return CompiledFont}(),y=function(t){_inherits(TrueTypeCompiled,t);var r=_createSuper(TrueTypeCompiled);function TrueTypeCompiled(t,o,c){var l;_classCallCheck(this,TrueTypeCompiled);(l=r.call(this,c||[488e-6,0,0,488e-6,0,0])).glyphs=t;l.cmap=o;return l}_createClass(TrueTypeCompiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r){compileGlyf(t,r,this)}}]);return TrueTypeCompiled}(m),v=function(t){_inherits(Type2Compiled,t);var r=_createSuper(Type2Compiled);function Type2Compiled(t,o,c,l){var h;_classCallCheck(this,Type2Compiled);(h=r.call(this,c||[.001,0,0,.001,0,0])).glyphs=t.glyphs;h.gsubrs=t.gsubrs||[];h.subrs=t.subrs||[];h.cmap=o;h.glyphNameMap=l||(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}(m),k=function(){function FontRendererFactory(){_classCallCheck(this,FontRendererFactory)}_createClass(FontRendererFactory,null,[{key:"create",value:function create(t,r){for(var o,l,u,h,d,g,m=new Uint8Array(t.data),k=getUint16(m,4),_=0,w=12;_<k;_++,w+=16){var S=(0,c.bytesToString)(m.subarray(w,w+4)),C=getUint32(m,w+8),x=getUint32(m,w+12);switch(S){case"cmap":o=parseCmap(m,C);break;case"glyf":l=m.subarray(C,C+x);break;case"loca":u=m.subarray(C,C+x);break;case"head":g=getUint16(m,C+18);d=getUint16(m,C+50);break;case"CFF ":h=parseCff(m,C,C+x,r)}}if(l){var O=g?[1/g,0,0,1/g,0,0]:t.fontMatrix;return new y(function parseGlyfTable(t,r,o){var c,l;if(o){c=4;l=getUint32}else{c=2;l=function itemDecode(t,r){return 2*getUint16(t,r)}}for(var u=[],h=l(r,0),d=c;d<r.length;d+=c){var g=l(r,d);u.push(t.subarray(h,g));h=g}return u}(l,u,d),o,O)}return new v(h,o,t.fontMatrix,t.glyphNameMap)}}]);return FontRendererFactory}();r.FontRendererFactory=k},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getMetrics=r.getFontBasicMetrics=void 0;var c=o(150),l=(0,c.getLookupTableFactory)((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=(0,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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=l;var u=(0,c.getLookupTableFactory)((function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439};t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450};t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461};t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441};t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462};t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));r.getFontBasicMetrics=u},(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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var o=function(){function GlyfTable(t){var r=t.glyfTable,o=t.isGlyphLocationsLong,l=t.locaTable,u=t.numGlyphs;_classCallCheck(this,GlyfTable);this.glyphs=[];for(var h=new DataView(l.buffer,l.byteOffset,l.byteLength),d=new DataView(r.buffer,r.byteOffset,r.byteLength),g=o?4:2,m=o?h.getUint32(0):2*h.getUint16(0),y=0,v=0;v<u;v++){y+=g;var k=o?h.getUint32(y):2*h.getUint16(y);if(k!==m){var _=c.parse(m,d);this.glyphs.push(_);m=k}else this.glyphs.push(new c({}))}}_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,c=o?4:2,l=new DataView(new ArrayBuffer((this.glyphs.length+1)*c));o?l.setUint32(0,0):l.setUint16(0,0);var u,h=0,d=0,g=_createForOfIteratorHelper(this.glyphs);try{for(g.s();!(u=g.n()).done;){h=(h+=u.value.write(h,r))+3&-4;d+=c;o?l.setUint32(d,h):l.setUint16(d,h>>1)}}catch(t){g.e(t)}finally{g.f()}return{isLocationLong:o,loca:new Uint8Array(l.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 c=function(){function Glyph(t){var r=t.header,o=void 0===r?null:r,c=t.simple,l=void 0===c?null:c,u=t.composites,h=void 0===u?null:u;_classCallCheck(this,Glyph);this.header=o;this.simple=l;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 c,l=_createForOfIteratorHelper(this.composites);try{for(l.s();!(c=l.n()).done;){t+=c.value.write(t,r)}}catch(t){l.e(t)}finally{l.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,c=_createForOfIteratorHelper(this.composites);try{for(c.s();!(o=c.n()).done;){o.value.scale(r,t)}}catch(t){c.e(t)}finally{c.f()}}}}}],[{key:"parse",value:function parse(t,r){var o=_slicedToArray(l.parse(t,r),2),c=o[0],u=o[1];t+=c;if(u.numberOfContours<0){for(var g=[];;){var m=_slicedToArray(d.parse(t,r),2),y=m[0],v=m[1];t+=y;g.push(v);if(!(32&v.flags))break}return new Glyph({header:u,composites:g})}return new Glyph({header:u,simple:h.parse(t,r,u.numberOfContours)})}}]);return Glyph}(),l=function(){function GlyphHeader(t){var r=t.numberOfContours,o=t.xMin,c=t.yMin,l=t.xMax,u=t.yMax;_classCallCheck(this,GlyphHeader);this.numberOfContours=r;this.xMin=o;this.yMin=c;this.xMax=l;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=_createClass((function Contour(t){var r=t.flags,o=t.xCoordinates,c=t.yCoordinates;_classCallCheck(this,Contour);this.xCoordinates=o;this.yCoordinates=c;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,c=0,l=_createForOfIteratorHelper(this.contours);try{for(l.s();!(t=l.n()).done;){var u=t.value;r+=u.flags.length;for(var h=0,d=u.xCoordinates.length;h<d;h++){var g=u.xCoordinates[h],m=u.yCoordinates[h],y=Math.abs(g-o);y>255?r+=2:y>0&&(r+=1);o=g;(y=Math.abs(m-c))>255?r+=2:y>0&&(r+=1);c=m}}}catch(t){l.e(t)}finally{l.f()}return r}},{key:"write",value:function write(t,r){var o,c=t,l=[],u=[],h=[],d=0,g=0,m=_createForOfIteratorHelper(this.contours);try{for(m.s();!(o=m.n()).done;){for(var y=o.value,v=0,k=y.xCoordinates.length;v<k;v++){var _=y.flags[v],w=y.xCoordinates[v],S=w-d;if(0===S){_|=16;l.push(0)}else{var C=Math.abs(S);if(C<=255){_|=S>=0?18:2;l.push(C)}else l.push(S)}d=w;var x=y.yCoordinates[v];if(0===(S=x-g)){_|=32;u.push(0)}else{var O=Math.abs(S);if(O<=255){_|=S>=0?36:4;u.push(O)}else u.push(S)}g=x;h.push(_)}r.setUint16(t,l.length-1);t+=2}}catch(t){m.e(t)}finally{m.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,E=h;T<E.length;T++){var M=E[T];r.setUint8(t++,M)}for(var R=0,j=l.length;R<j;R++){var D=l[R],N=h[R];if(2&N)r.setUint8(t++,D);else if(!(16&N)){r.setInt16(t,D);t+=2}}for(var L=0,U=u.length;L<U;L++){var H=u[L],$=h[L];if(4&$)r.setUint8(t++,H);else if(!(32&$)){r.setInt16(t,H);t+=2}}return t-c}},{key:"scale",value:function scale(t,r){var o,c=_createForOfIteratorHelper(this.contours);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(0!==l.xCoordinates.length)for(var u=0,h=l.xCoordinates.length;u<h;u++)l.xCoordinates[u]=Math.round(t+(l.xCoordinates[u]-t)*r)}}catch(t){c.e(t)}finally{c.f()}}}],[{key:"parse",value:function parse(t,r,o){for(var c=[],l=0;l<o;l++){var h=r.getUint16(t);t+=2;c.push(h)}var d=c[o-1]+1,g=r.getUint16(t);t+=2;var m=new Uint8Array(r).slice(t,t+g);t+=g;for(var y=[],v=0;v<d;t++,v++){var k=r.getUint8(t);y.push(k);if(8&k){var _=r.getUint8(++t);k^=8;for(var w=0;w<_;w++)y.push(k);v+=_}}for(var S=[],C=[],x=[],O=[],T=[],E=0,M=0,R=0;R<d;R++){var j=y[R];if(2&j){var D=r.getUint8(t++);M+=16&j?D:-D;C.push(M)}else if(16&j)C.push(M);else{M+=r.getInt16(t);t+=2;C.push(M)}if(c[E]===R){E++;S.push(C);C=[]}}M=0;E=0;for(var N=0;N<d;N++){var L=y[N];if(4&L){var U=r.getUint8(t++);M+=32&L?U:-U;x.push(M)}else if(32&L)x.push(M);else{M+=r.getInt16(t);t+=2;x.push(M)}O.push(1&L|64&L);if(c[E]===N){C=S[E];E++;T.push(new u({flags:O,xCoordinates:C,yCoordinates:x}));x=[];O=[]}}return new SimpleGlyph({contours:T,instructions:m})}}]);return SimpleGlyph}(),d=function(){function CompositeGlyph(t){var r=t.flags,o=t.glyphIndex,c=t.argument1,l=t.argument2,u=t.transf,h=t.instructions;_classCallCheck(this,CompositeGlyph);this.flags=r;this.glyphIndex=o;this.argument1=c;this.argument2=l;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,c,l=t,u=[],h=r.getUint16(t),d=r.getUint16(t+2);t+=4;if(1&h){if(2&h){o=r.getInt16(t);c=r.getInt16(t+2)}else{o=r.getUint16(t);c=r.getUint16(t+2)}t+=4;h^=1}else{if(2&h){o=r.getInt8(t);c=r.getInt8(t+1)}else{o=r.getUint8(t);c=r.getUint8(t+1)}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 g=null;if(256&h){var m=r.getUint16(t);t+=2;g=new Uint8Array(r).slice(t,t+m);t+=m}return[t-l,new CompositeGlyph({flags:h,glyphIndex:d,argument1:o,argument2:c,transf:u,instructions:g})]}}]);return CompositeGlyph}()},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.OpenTypeFileBuilder=void 0;var c=o(150),l=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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 c=0,l=o.length;c<l;c++)t[r++]=255&o.charCodeAt(c);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);Object.defineProperty(t,"prototype",{writable:!1});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,g,m,y=o.length,v=12+16*y,k=[v];for(u=0;u<y;u++){v+=((g=r[o[u]]).length+3&-4)>>>0;k.push(v)}var _=new Uint8Array(v);for(u=0;u<y;u++){g=r[o[u]];writeData(_,k[u],g)}"true"===t&&(t=(0,l.string32)(65536));_[0]=255&t.charCodeAt(0);_[1]=255&t.charCodeAt(1);_[2]=255&t.charCodeAt(2);_[3]=255&t.charCodeAt(3);writeInt16(_,4,y);var w=OpenTypeFileBuilder.getSearchParams(y,16);writeInt16(_,6,w.range);writeInt16(_,8,w.entry);writeInt16(_,10,w.rangeShift);v=12;for(u=0;u<y;u++){m=o[u];_[v]=255&m.charCodeAt(0);_[v+1]=255&m.charCodeAt(1);_[v+2]=255&m.charCodeAt(2);_[v+3]=255&m.charCodeAt(3);var S=0;for(h=k[u],d=k[u+1];h<d;h+=4){S=S+(0,c.readUint32)(_,h)>>>0}writeInt32(_,v+4,S);writeInt32(_,v+8,k[u]);writeInt32(_,v+12,r[m].length);v+=16}return _}},{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,c=0;(o^t)>o;){o<<=1;c++}var l=o*r;return{range:l,entry:c,rangeShift:r*t-l}}}]);return OpenTypeFileBuilder}();r.OpenTypeFileBuilder=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Type1Font=void 0;var c=o(187),l=o(160),u=o(150),h=o(152),d=o(197),g=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function findBlock(t,r,o){for(var c=t.length,l=r.length,h=c-l,d=o,g=!1;d<h;){for(var m=0;m<l&&t[d+m]===r[m];)m++;if(m>=l){d+=m;for(;d<c&&(0,u.isWhiteSpace)(t[d]);)d++;g=!0;break}d++}return{found:g,length:d}}var m=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 c=o.length1,u=(o.length2,r.peekBytes(6)),m=128===u[0]&&1===u[1];if(m){r.skip(6);c=u[5]<<24|u[4]<<16|u[3]<<8|u[2]}var y=function getHeaderBlock(t,r){var o,c,l,u,d=[101,101,120,101,99],m=t.pos;try{c=(o=t.getBytes(r)).length}catch(t){}if(c===r&&(l=findBlock(o,d,r-2*d.length)).found&&l.length===r)return{stream:new h.Stream(o),length:r};(0,g.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=m;for(;0!==(l=findBlock(t.peekBytes(2048),d,0)).length;){t.pos+=l.length;if(l.found){u=t.pos-m;break}}t.pos=m;if(u)return{stream:new h.Stream(t.getBytes(u)),length:u};(0,g.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new h.Stream(t.getBytes(r)),length:r}}(r,c);new d.Type1Parser(y.stream,!1,l.SEAC_ANALYSIS_ENABLED).extractFontHeader(o);m&&(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),k=new d.Type1Parser(v.stream,!0,l.SEAC_ANALYSIS_ENABLED).extractFontProgram(o);for(var _ in k.properties)o[_]=k.properties[_];var w=k.charstrings,S=this.getType2Charstrings(w),C=this.getType2Subrs(k.subrs);this.charstrings=w;this.data=this.wrap(t,S,this.charstrings,C,o);this.seacs=this.getSeacs(k.charstrings)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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),c=0,u=r.length;c<u;c++){o[t.cMap.charCodeOf(c)]=c+1}return o}var h,d,g=[".notdef"];for(d=0;d<r.length;d++)g.push(r[d].glyphName);var m=t.builtInEncoding;if(m){h=Object.create(null);for(var y in m)(d=g.indexOf(m[y]))>=0&&(h[y]=d)}return(0,l.type1FontGlyphMapping)(t,h,g)}},{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,c=t.length;o<c;o++){var l=t[o];l.seac&&(r[o+1]=l.seac)}return r}},{key:"getType2Charstrings",value:function getType2Charstrings(t){for(var r=[],o=0,c=t.length;o<c;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 c,l=[];for(c=0;c<r;c++)l.push([11]);for(c=0;c<o;c++)l.push(t[c]);return l}},{key:"wrap",value:function wrap(t,r,o,l,u){var h=new c.CFF;h.header=new c.CFFHeader(1,0,4,4);h.names=[t];var d=new c.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 g=new c.CFFStrings;g.add("Version 0.11");g.add("See original notice");g.add(t);g.add(t);g.add("Medium");h.strings=g;h.globalSubrIndex=new c.CFFIndex;var m,y,v=r.length,k=[".notdef"];for(m=0;m<v;m++){var _=o[m].glyphName;-1===c.CFFStandardStrings.indexOf(_)&&g.add(_);k.push(_)}h.charset=new c.CFFCharset(!1,0,k);var w=new c.CFFIndex;w.add([139,14]);for(m=0;m<v;m++)w.add(r[m]);h.charStrings=w;var S=new c.CFFPrivateDict;S.setByName("Subrs",null);var C=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(m=0,y=C.length;m<y;m++){var x=C[m];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];S.setByName(x,O)}}h.topDict.privateDict=S;var E=new c.CFFIndex;for(m=0,y=l.length;m<y;m++)E.add(l[m]);S.subrsIndex=E;return new c.CFFCompiler(h).compile()}}]);return Type1Font}();r.Type1Font=m},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Type1Parser=void 0;var c=o(161),l=o(150),u=o(152),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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var d=function Type1CharStringClosure(){var t=[4],r=[5],o=[6],c=[7],l=[8],u=[12,35],d=[14],g=[21],m=[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(k,_,w){for(var S,C,x,O=k.length,T=!1,E=0;E<O;E++){var M=k[E];if(M<32){12===M&&(M=(M<<8)+k[++E]);switch(M){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){T=!0;break}var R=this.stack.pop();this.stack.push(0,R);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,c);break;case 8:T=this.executeCommand(6,l);break;case 10:if(this.stack.length<1){T=!0;break}if(!_[x=this.stack.pop()]){T=!0;break}T=this.convert(_[x],_,w);break;case 11:return T;case 13:if(this.stack.length<2){T=!0;break}S=this.stack.pop();C=this.stack.pop();this.lsb=C;this.width=S;this.stack.push(S,C);T=this.executeCommand(2,m);break;case 14:this.output.push(d[0]);break;case 21:if(this.flexing)break;T=this.executeCommand(2,g);break;case 22:if(this.flexing){this.stack.push(0);break}T=this.executeCommand(1,m);break;case 30:T=this.executeCommand(4,y);break;case 31:T=this.executeCommand(4,v);break;case 3078:if(w){var j=this.stack[this.stack.length-5];this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-j;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();S=this.stack.pop();var D=this.stack.pop();C=this.stack.pop();this.lsb=C;this.width=S;this.stack.push(S,C,D);T=this.executeCommand(3,g);break;case 3084:if(this.stack.length<2){T=!0;break}var N=this.stack.pop(),L=this.stack.pop();this.stack.push(L/N);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;default:(0,h.warn)('Unknown type 1 charstring command of "'+M+'"')}if(T)break}else{M<=246?M-=139:M=M<=250?256*(M-247)+k[++E]+108:M<=254?-256*(M-251)-k[++E]-108:(255&k[++E])<<24|(255&k[++E])<<16|(255&k[++E])<<8|(255&k[++E])<<0;this.stack.push(M)}}return T}},{key:"executeCommand",value:function executeCommand(t,r,o){var c=this.stack.length;if(t>c)return!0;for(var l=c-t,u=l;u<c;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(l,t):this.stack.length=0;return!1}}]);return Type1CharString}()}(),g=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 c,l,u=0|r;for(c=0;c<o;c++)u=52845*(t[c]+u)+22719&65535;var h=t.length-o,d=new Uint8Array(h);for(c=o,l=0;l<h;c++,l++){var g=t[c];d[l]=g^u>>8;u=52845*(g+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 c=t.getBytes(),h=!((isHexDigit(c[0])||(0,l.isWhiteSpace)(c[0]))&&isHexDigit(c[1])&&isHexDigit(c[2])&&isHexDigit(c[3])&&isHexDigit(c[4])&&isHexDigit(c[5])&&isHexDigit(c[6])&&isHexDigit(c[7]));t=new u.Stream(h?decrypt(c,55665,4):function decryptAscii(t,r,o){var c,l,u=0|r,h=t.length,d=new Uint8Array(h>>>1);for(c=0,l=0;c<h;c++){var g=t[c];if(isHexDigit(g)){c++;for(var m=void 0;c<h&&!isHexDigit(m=t[c]);)c++;if(c<h){var y=parseInt(String.fromCharCode(g,m),16);d[l++]=y^u>>8;u=52845*(y+u)+22719&65535}}}return d.slice(o,l)}(c,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:"prevChar",value:function prevChar(){this.stream.skip(-2);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,l.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,l.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=[],c=[],l=Object.create(null);l.lenIV=4;for(var u,h,g,m,y,v={subrs:[],charstrings:[],properties:{privateData:l}};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 k=this.getToken();h=this.readInt();this.getToken();g=h>0?r.getBytes(h):new Uint8Array(0);m=v.properties.privateData.lenIV;y=this.readCharStrings(g,m);this.nextChar();"noaccess"===(u=this.getToken())?this.getToken():"/"===u&&this.prevChar();c.push({glyph:k,encoded:y})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){var _=this.readInt();h=this.readInt();this.getToken();g=h>0?r.getBytes(h):new Uint8Array(0);m=v.properties.privateData.lenIV;y=this.readCharStrings(g,m);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();o[_]=y}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var w=this.readNumberArray();w.length>0&&w.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 S=0;S<c.length;S++){var C=c[S].glyph;y=c[S].encoded;var x=new d,O=x.convert(y,o,this.seacAnalysisEnabled),T=x.output;O&&(T=[14]);var E={glyphName:C,charstring:T,width:x.width,lsb:x.lsb,seac:x.seac};".notdef"===C?v.charstrings.unshift(E):v.charstrings.push(E);if(t.builtInEncoding){var M=t.builtInEncoding.indexOf(C);M>-1&&void 0===t.widths[M]&&M>=t.firstChar&&M<=t.lastChar&&(t.widths[M]=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 l=this.getToken(),u=void 0;if(/^\d+$/.test(l)){u=[];var h=0|parseInt(l,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 g=this.readInt();this.getToken();var m=this.getToken();u[g]=m;this.getToken()}}else u=(0,c.getEncoding)(l);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=g},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Pattern=void 0;r.getTilingPatternIR=function getTilingPatternIR(t,r,o){var l=r.getArray("Matrix"),u=c.Util.normalizeRect(r.getArray("BBox")),h=r.get("XStep"),d=r.get("YStep"),g=r.get("PaintType"),m=r.get("TilingType");if(u[2]-u[0]==0||u[3]-u[1]==0)throw new c.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(u,"]."));return["TilingPattern",o,t,l,u,h,d,g,m]};var c=o(4),l=o(151),u=o(166),h=o(150);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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var d=2,g=3,m=4,y=5,v=6,k=7,_=function(){function Pattern(){_classCallCheck(this,Pattern);(0,c.unreachable)("Cannot initialize Pattern.")}_createClass(Pattern,null,[{key:"parseShading",value:function parseShading(t,r,o,u,_,w){var C=t instanceof l.BaseStream?t.dict:t,x=C.get("ShadingType");try{switch(x){case d:case g:return new S(C,r,o,_,w);case m:case y:case v:case k:return new O(t,r,o,_,w);default:throw new c.FormatError("Unsupported ShadingType: "+x)}}catch(t){if(t instanceof h.MissingDataException)throw t;u.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.shadingPattern});(0,c.warn)(t);return new T}}}]);return Pattern}();r.Pattern=_;var w=function(){function BaseShading(){_classCallCheck(this,BaseShading);this.constructor===BaseShading&&(0,c.unreachable)("Cannot initialize BaseShading.")}_createClass(BaseShading,[{key:"getIR",value:function getIR(){(0,c.unreachable)("Abstract method `getIR` called.")}}],[{key:"SMALL_NUMBER",get:function get(){return(0,c.shadow)(this,"SMALL_NUMBER",1e-6)}}]);return BaseShading}(),S=function(t){_inherits(RadialAxialShading,t);var r=_createSuper(RadialAxialShading);function RadialAxialShading(t,o,l,h,d){var m;_classCallCheck(this,RadialAxialShading);(m=r.call(this)).coordsArr=t.getArray("Coords");m.shadingType=t.get("ShadingType");var y=u.ColorSpace.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:o,resources:l,pdfFunctionFactory:h,localColorSpaceCache:d}),v=t.getArray("BBox");Array.isArray(v)&&4===v.length?m.bbox=c.Util.normalizeRect(v):m.bbox=null;var k=0,_=1;if(t.has("Domain")){var S=t.getArray("Domain");k=S[0];_=S[1]}var C=!1,x=!1;if(t.has("Extend")){var O=t.getArray("Extend");C=O[0];x=O[1]}if(!(m.shadingType!==g||C&&x)){var T=_slicedToArray(m.coordsArr,6),E=T[0],M=T[1],R=T[2],j=T[3],D=T[4],N=T[5],L=Math.hypot(E-j,M-D);R<=N+L&&N<=R+L&&(0,c.warn)("Unsupported radial gradient.")}m.extendStart=C;m.extendEnd=x;var U=t.getRaw("Function"),H=h.createFromArray(U),$=(_-k)/10,X=m.colorStops=[];if(k>=_||$<=0){(0,c.info)("Bad shading domain.");return _possibleConstructorReturn(m)}for(var q,G=new Float32Array(y.numComps),z=new Float32Array(1),W=0;W<=10;W++){z[0]=k+W*$;H(z,0,G,0);q=y.getRgb(G,0);var V=c.Util.makeHexColor(q[0],q[1],q[2]);X.push([W/10,V])}var K="transparent";if(t.has("Background")){q=y.getRgb(t.get("Background"),0);K=c.Util.makeHexColor(q[0],q[1],q[2])}if(!C){X.unshift([0,K]);X[1][0]+=w.SMALL_NUMBER}if(!x){X[X.length-1][0]-=w.SMALL_NUMBER;X.push([1,K])}m.colorStops=X;return m}_createClass(RadialAxialShading,[{key:"getIR",value:function getIR(){var t,r,o,l,u,h=this.coordsArr,m=this.shadingType;if(m===d){r=[h[0],h[1]];o=[h[2],h[3]];l=null;u=null;t="axial"}else if(m===g){r=[h[0],h[1]];o=[h[3],h[4]];l=h[2];u=h[5];t="radial"}else(0,c.unreachable)("getPattern type unknown: ".concat(m));return["RadialAxial",t,this.bbox,this.colorStops,r,o,l,u]}}]);return RadialAxialShading}(w),C=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 c=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(c):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 c=this.stream.getByte();this.buffer=c&(1<<o)-1;return(r<<8-o|(255&c)>>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),c=this.context.decode,l=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[r*l*(c[1]-c[0])+c[0],o*l*(c[3]-c[2])+c[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,c=this.context.decode,l=this.tmpCompsBuf,u=0,h=4;u<t;u++,h+=2){var d=this.readBits(r);l[u]=d*o*(c[h+1]-c[h])+c[h]}var g=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(l,0,g,0);return this.context.colorSpace.getRgb(g,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 c=o/t,l=1-c;r.push(new Float32Array([l*l*l,3*c*l*l,3*c*c*l,c*c*c]))}return r}(r));return t[r]}}(),O=function(t){_inherits(MeshShading,t);var r=_createSuper(MeshShading);function MeshShading(t,o,h,d,g){var _;_classCallCheck(this,MeshShading);_=r.call(this);if(!(t instanceof l.BaseStream))throw new c.FormatError("Mesh data is not a stream");var w=t.dict;_.shadingType=w.get("ShadingType");var S=w.getArray("BBox");Array.isArray(S)&&4===S.length?_.bbox=c.Util.normalizeRect(S):_.bbox=null;var x=u.ColorSpace.parse({cs:w.getRaw("CS")||w.getRaw("ColorSpace"),xref:o,resources:h,pdfFunctionFactory:d,localColorSpaceCache:g});_.background=w.has("Background")?x.getRgb(w.get("Background"),0):null;var O=w.getRaw("Function"),T=O?d.createFromArray(O):null;_.coords=[];_.colors=[];_.figures=[];var E={bitsPerCoordinate:w.get("BitsPerCoordinate"),bitsPerComponent:w.get("BitsPerComponent"),bitsPerFlag:w.get("BitsPerFlag"),decode:w.getArray("Decode"),colorFn:T,colorSpace:x,numComps:T?1:x.numComps},M=new C(t,E),R=!1;switch(_.shadingType){case m:_._decodeType4Shading(M);break;case y:var j=0|w.get("VerticesPerRow");if(j<2)throw new c.FormatError("Invalid VerticesPerRow");_._decodeType5Shading(M,j);break;case v:_._decodeType6Shading(M);R=!0;break;case k:_._decodeType7Shading(M);R=!0;break;default:(0,c.unreachable)("Unsupported mesh type.")}if(R){_._updateBounds();for(var D=0,N=_.figures.length;D<N;D++)_._buildFigureFromPatch(D)}_._updateBounds();_._packData();return _}_createClass(MeshShading,[{key:"_decodeType4Shading",value:function _decodeType4Shading(t){for(var r=this.coords,o=this.colors,l=[],u=[],h=0;t.hasData;){var d=t.readFlag(),g=t.readCoordinate(),m=t.readComponents();if(0===h){if(!(0<=d&&d<=2))throw new c.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}l.push(d)}u.push(r.length);r.push(g);o.push(m);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,c=this.colors,l=[];t.hasData;){var u=t.readCoordinate(),h=t.readComponents();l.push(o.length);o.push(u);c.push(h)}this.figures.push({type:"lattice",coords:new Int32Array(l),colors:new Int32Array(l),verticesPerRow:r})}},{key:"_decodeType6Shading",value:function _decodeType6Shading(t){for(var r=this.coords,o=this.colors,l=new Int32Array(16),u=new Int32Array(4);t.hasData;){var h=t.readFlag();if(!(0<=h&&h<=3))throw new c.FormatError("Unknown type6 flag");for(var d=r.length,g=0,m=0!==h?8:12;g<m;g++)r.push(t.readCoordinate());for(var y=o.length,v=0,k=0!==h?2:4;v<k;v++)o.push(t.readComponents());var _=void 0,w=void 0,S=void 0,C=void 0;switch(h){case 0:l[12]=d+3;l[13]=d+4;l[14]=d+5;l[15]=d+6;l[8]=d+2;l[11]=d+7;l[4]=d+1;l[7]=d+8;l[0]=d;l[1]=d+11;l[2]=d+10;l[3]=d+9;u[2]=y+1;u[3]=y+2;u[0]=y;u[1]=y+3;break;case 1:_=l[12];w=l[13];S=l[14];C=l[15];l[12]=C;l[13]=d+0;l[14]=d+1;l[15]=d+2;l[8]=S;l[11]=d+3;l[4]=w;l[7]=d+4;l[0]=_;l[1]=d+7;l[2]=d+6;l[3]=d+5;_=u[2];w=u[3];u[2]=w;u[3]=y;u[0]=_;u[1]=y+1;break;case 2:_=l[15];w=l[11];l[12]=l[3];l[13]=d+0;l[14]=d+1;l[15]=d+2;l[8]=l[7];l[11]=d+3;l[4]=w;l[7]=d+4;l[0]=_;l[1]=d+7;l[2]=d+6;l[3]=d+5;_=u[3];u[2]=u[1];u[3]=y;u[0]=_;u[1]=y+1;break;case 3:l[12]=l[0];l[13]=d+0;l[14]=d+1;l[15]=d+2;l[8]=l[1];l[11]=d+3;l[4]=l[2];l[7]=d+4;l[0]=l[3];l[1]=d+7;l[2]=d+6;l[3]=d+5;u[2]=u[0];u[3]=y;u[0]=u[1];u[1]=y+1}l[5]=r.length;r.push([(-4*r[l[0]][0]-r[l[15]][0]+6*(r[l[4]][0]+r[l[1]][0])-2*(r[l[12]][0]+r[l[3]][0])+3*(r[l[13]][0]+r[l[7]][0]))/9,(-4*r[l[0]][1]-r[l[15]][1]+6*(r[l[4]][1]+r[l[1]][1])-2*(r[l[12]][1]+r[l[3]][1])+3*(r[l[13]][1]+r[l[7]][1]))/9]);l[6]=r.length;r.push([(-4*r[l[3]][0]-r[l[12]][0]+6*(r[l[2]][0]+r[l[7]][0])-2*(r[l[0]][0]+r[l[15]][0])+3*(r[l[4]][0]+r[l[14]][0]))/9,(-4*r[l[3]][1]-r[l[12]][1]+6*(r[l[2]][1]+r[l[7]][1])-2*(r[l[0]][1]+r[l[15]][1])+3*(r[l[4]][1]+r[l[14]][1]))/9]);l[9]=r.length;r.push([(-4*r[l[12]][0]-r[l[3]][0]+6*(r[l[8]][0]+r[l[13]][0])-2*(r[l[0]][0]+r[l[15]][0])+3*(r[l[11]][0]+r[l[1]][0]))/9,(-4*r[l[12]][1]-r[l[3]][1]+6*(r[l[8]][1]+r[l[13]][1])-2*(r[l[0]][1]+r[l[15]][1])+3*(r[l[11]][1]+r[l[1]][1]))/9]);l[10]=r.length;r.push([(-4*r[l[15]][0]-r[l[0]][0]+6*(r[l[11]][0]+r[l[14]][0])-2*(r[l[12]][0]+r[l[3]][0])+3*(r[l[2]][0]+r[l[8]][0]))/9,(-4*r[l[15]][1]-r[l[0]][1]+6*(r[l[11]][1]+r[l[14]][1])-2*(r[l[12]][1]+r[l[3]][1])+3*(r[l[2]][1]+r[l[8]][1]))/9]);this.figures.push({type:"patch",coords:new Int32Array(l),colors:new Int32Array(u)})}}},{key:"_decodeType7Shading",value:function _decodeType7Shading(t){for(var r=this.coords,o=this.colors,l=new Int32Array(16),u=new Int32Array(4);t.hasData;){var h=t.readFlag();if(!(0<=h&&h<=3))throw new c.FormatError("Unknown type7 flag");for(var d=r.length,g=0,m=0!==h?12:16;g<m;g++)r.push(t.readCoordinate());for(var y=o.length,v=0,k=0!==h?2:4;v<k;v++)o.push(t.readComponents());var _=void 0,w=void 0,S=void 0,C=void 0;switch(h){case 0:l[12]=d+3;l[13]=d+4;l[14]=d+5;l[15]=d+6;l[8]=d+2;l[9]=d+13;l[10]=d+14;l[11]=d+7;l[4]=d+1;l[5]=d+12;l[6]=d+15;l[7]=d+8;l[0]=d;l[1]=d+11;l[2]=d+10;l[3]=d+9;u[2]=y+1;u[3]=y+2;u[0]=y;u[1]=y+3;break;case 1:_=l[12];w=l[13];S=l[14];C=l[15];l[12]=C;l[13]=d+0;l[14]=d+1;l[15]=d+2;l[8]=S;l[9]=d+9;l[10]=d+10;l[11]=d+3;l[4]=w;l[5]=d+8;l[6]=d+11;l[7]=d+4;l[0]=_;l[1]=d+7;l[2]=d+6;l[3]=d+5;_=u[2];w=u[3];u[2]=w;u[3]=y;u[0]=_;u[1]=y+1;break;case 2:_=l[15];w=l[11];l[12]=l[3];l[13]=d+0;l[14]=d+1;l[15]=d+2;l[8]=l[7];l[9]=d+9;l[10]=d+10;l[11]=d+3;l[4]=w;l[5]=d+8;l[6]=d+11;l[7]=d+4;l[0]=_;l[1]=d+7;l[2]=d+6;l[3]=d+5;_=u[3];u[2]=u[1];u[3]=y;u[0]=_;u[1]=y+1;break;case 3:l[12]=l[0];l[13]=d+0;l[14]=d+1;l[15]=d+2;l[8]=l[1];l[9]=d+9;l[10]=d+10;l[11]=d+3;l[4]=l[2];l[5]=d+8;l[6]=d+11;l[7]=d+4;l[0]=l[3];l[1]=d+7;l[2]=d+6;l[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(l),colors:new Int32Array(u)})}}},{key:"_buildFigureFromPatch",value:function _buildFigureFromPatch(t){var r=this.figures[t];(0,c.assert)("patch"===r.type,"Unexpected patch mesh figure");var o=this.coords,l=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]),g=Math.min(o[u[0]][1],o[u[3]][1],o[u[12]][1],o[u[15]][1]),m=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((m-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 k=Math.ceil((y-g)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));k=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,k));for(var _=v+1,w=new Int32Array((k+1)*_),S=new Int32Array((k+1)*_),C=0,O=new Uint8Array(3),T=new Uint8Array(3),E=l[h[0]],M=l[h[1]],R=l[h[2]],j=l[h[3]],D=x(k),N=x(v),L=0;L<=k;L++){O[0]=(E[0]*(k-L)+R[0]*L)/k|0;O[1]=(E[1]*(k-L)+R[1]*L)/k|0;O[2]=(E[2]*(k-L)+R[2]*L)/k|0;T[0]=(M[0]*(k-L)+j[0]*L)/k|0;T[1]=(M[1]*(k-L)+j[1]*L)/k|0;T[2]=(M[2]*(k-L)+j[2]*L)/k|0;for(var U=0;U<=v;U++,C++)if(0!==L&&L!==k||0!==U&&U!==v){for(var H=0,$=0,X=0,q=0;q<=3;q++)for(var G=0;G<=3;G++,X++){var z=D[L][q]*N[U][G];H+=o[u[X]][0]*z;$+=o[u[X]][1]*z}w[C]=o.length;o.push([H,$]);S[C]=l.length;var W=new Uint8Array(3);W[0]=(O[0]*(v-U)+T[0]*U)/v|0;W[1]=(O[1]*(v-U)+T[1]*U)/v|0;W[2]=(O[2]*(v-U)+T[2]*U)/v|0;l.push(W)}}w[0]=u[0];S[0]=h[0];w[v]=u[3];S[v]=h[1];w[_*k]=u[12];S[_*k]=h[2];w[_*k+v]=u[15];S[_*k+v]=h[3];this.figures[t]={type:"lattice",coords:w,colors:S,verticesPerRow:_}}},{key:"_updateBounds",value:function _updateBounds(){for(var t=this.coords[0][0],r=this.coords[0][1],o=t,c=r,l=1,u=this.coords.length;l<u;l++){var h=this.coords[l][0],d=this.coords[l][1];t=t>h?h:t;r=r>d?d:r;o=o<h?h:o;c=c<d?d:c}this.bounds=[t,r,o,c]}},{key:"_packData",value:function _packData(){var t,r,o,c,l=this.coords,u=new Float32Array(2*l.length);for(t=0,o=0,r=l.length;t<r;t++){var h=l[t];u[o++]=h[0];u[o++]=h[1]}this.coords=u;var d=this.colors,g=new Uint8Array(3*d.length);for(t=0,o=0,r=d.length;t<r;t++){var m=d[t];g[o++]=m[0];g[o++]=m[1];g[o++]=m[2]}this.colors=g;var y=this.figures;for(t=0,r=y.length;t<r;t++){var v=y[t],k=v.coords,_=v.colors;for(o=0,c=k.length;o<c;o++){k[o]*=2;_[o]*=3}}}},{key:"getIR",value:function getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}],[{key:"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",get:function get(){return(0,c.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}},{key:"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",get:function get(){return(0,c.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}},{key:"TRIANGLE_DENSITY",get:function get(){return(0,c.shadow)(this,"TRIANGLE_DENSITY",20)}}]);return MeshShading}(w),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}(w)},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptEvaluator=r.PostScriptCompiler=r.PDFFunctionFactory=void 0;r.isPDFFunction=function isPDFFunction(t){var r;if("object"!==_typeof(t))return!1;if(t instanceof c.Dict)r=t;else{if(!(t instanceof h.BaseStream))return!1;r=t.dict}return r.has("FunctionType")};var c=o(147),l=o(4),u=o(200),h=o(151),d=o(201);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var g=function(){function PDFFunctionFactory(t){var r=t.xref,o=t.isEvalSupported,c=void 0===o||o;_classCallCheck(this,PDFFunctionFactory);this.xref=r;this.isEvalSupported=!1!==c}_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 c.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 c.Ref?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"getCached",value:function getCached(t){var r;t instanceof c.Ref?r=t:t instanceof c.Dict?r=t.objId:t instanceof h.BaseStream&&(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 c.Ref?o=t:t instanceof c.Dict?o=t.objId:t instanceof h.BaseStream&&(o=t.dict&&t.dict.objId);o&&this._localFunctionCache.set(null,o,r)}},{key:"_localFunctionCache",get:function get(){return(0,l.shadow)(this,"_localFunctionCache",new d.LocalFunctionCache)}}]);return PDFFunctionFactory}();r.PDFFunctionFactory=g;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 c=new Array(r),l=0;l<r;l++)c[l]=+t[l];return c}return t}var m=function(){function PDFFunction(){_classCallCheck(this,PDFFunction)}_createClass(PDFFunction,null,[{key:"getSampleArray",value:function getSampleArray(t,r,o,c){var l,u,h=1;for(l=0,u=t.length;l<u;l++)h*=t[l];h*=r;var d=new Array(h),g=0,m=0,y=1/(Math.pow(2,o)-1),v=c.getBytes((h*o+7)/8),k=0;for(l=0;l<h;l++){for(;g<o;){m<<=8;m|=v[k++];g+=8}g-=o;d[l]=(m>>g)*y;m&=(1<<g)-1}return d}},{key:"parse",value:function parse(t){var r=t.xref,o=t.isEvalSupported,c=t.fn,u=c.dict||c;switch(u.get("FunctionType")){case 0:return this.constructSampled({xref:r,isEvalSupported:o,fn:c,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:c,dict:u})}throw new l.FormatError("Unknown type of function")}},{key:"parseArray",value:function parseArray(t){var r=t.xref,o=t.isEvalSupported,c=t.fnObj;if(!Array.isArray(c))return this.parse({xref:r,isEvalSupported:o,fn:c});for(var l=[],u=0,h=c.length;u<h;u++)l.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(c[u])}));return function(t,r,o,c){for(var u=0,h=l.length;u<h;u++)l[u](t,r,o,c+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=[],c=0,l=0;l<r;l+=2)o[c++]=[t[l],t[l+1]];return o}function interpolate(t,r,o,c,l){return c+(l-c)/(o-r)*(t-r)}var c=toNumberArray(o.getArray("Domain")),u=toNumberArray(o.getArray("Range"));if(!c||!u)throw new l.FormatError("No domain or range");var h=c.length/2,d=u.length/2;c=toMultiArray(c);u=toMultiArray(u);var g=toNumberArray(o.getArray("Size")),m=o.get("BitsPerSample"),y=o.get("Order")||1;1!==y&&(0,l.info)("No support for cubic spline interpolation: "+y);var v=toNumberArray(o.getArray("Encode"));if(v)v=toMultiArray(v);else{v=[];for(var k=0;k<h;++k)v.push([0,g[k]-1])}var _=toNumberArray(o.getArray("Decode"));_=_?toMultiArray(_):u;var w=this.getSampleArray(g,d,m,r);return function constructSampledFn(t,r,o,l){var m,y,k=1<<h,S=new Float64Array(k),C=new Uint32Array(k);for(y=0;y<k;y++)S[y]=1;var x=d,O=1;for(m=0;m<h;++m){var T=c[m][0],E=c[m][1],M=interpolate(Math.min(Math.max(t[r+m],T),E),T,E,v[m][0],v[m][1]),R=g[m],j=(M=Math.min(Math.max(M,0),R-1))<R-1?Math.floor(M):M-1,D=j+1-M,N=M-j,L=j*x,U=L+x;for(y=0;y<k;y++)if(y&O){S[y]*=N;C[y]+=U}else{S[y]*=D;C[y]+=L}x*=R;O<<=1}for(y=0;y<d;++y){var H=0;for(m=0;m<k;m++)H+=w[C[m]+y]*S[m];H=interpolate(H,0,1,_[y][0],_[y][1]);o[l+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],c=toNumberArray(r.getArray("C1"))||[1],l=r.get("N"),u=[],h=0,d=o.length;h<d;++h)u.push(c[h]-o[h]);var g=u.length;return function constructInterpolatedFn(t,r,c,h){for(var d=1===l?t[r]:Math.pow(t[r],l),m=0;m<g;++m)c[h+m]=o[m]+d*u[m]}}},{key:"constructStiched",value:function constructStiched(t){var r=t.xref,o=t.isEvalSupported,c=t.dict,u=toNumberArray(c.getArray("Domain"));if(!u)throw new l.FormatError("No domain");if(1!==u.length/2)throw new l.FormatError("Bad domain for stiched function");for(var h=c.get("Functions"),d=[],g=0,m=h.length;g<m;++g)d.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(h[g])}));var y=toNumberArray(c.getArray("Bounds")),v=toNumberArray(c.getArray("Encode")),k=new Float32Array(1);return function constructStichedFn(t,r,o,c){var l,h=function constructStichedFromIRClip(t,r,o){t>o?t=o:t<r&&(t=r);return t}(t[r],u[0],u[1]),g=y.length;for(l=0;l<g&&!(h<y[l]);++l);var m=u[0];l>0&&(m=y[l-1]);var _=u[1];l<y.length&&(_=y[l]);var w=v[2*l],S=v[2*l+1];k[0]=m===_?w:w+(h-m)*(S-w)/(_-m);d[l](k,0,o,c)}}},{key:"constructPostScript",value:function constructPostScript(t){t.xref;var r=t.isEvalSupported,o=t.fn,c=t.dict,h=toNumberArray(c.getArray("Domain")),d=toNumberArray(c.getArray("Range"));if(!h)throw new l.FormatError("No domain.");if(!d)throw new l.FormatError("No range.");var g=new u.PostScriptLexer(o),m=new u.PostScriptParser(g).parse();if(r&&l.IsEvalSupportedCached.value){var y=(new k).compile(m,h,d);if(y)return new Function("src","srcOffset","dest","destOffset",y)}(0,l.info)("Unable to compile PS function");var _=d.length>>1,w=h.length>>1,S=new v(m),C=Object.create(null),x=8192,O=new Float32Array(w);return function constructPostScriptFn(t,r,o,c){var l,u,h="",g=O;for(l=0;l<w;l++){u=t[r+l];g[l]=u;h+=u+"_"}var m=C[h];if(void 0===m){var y=new Float32Array(_),v=S.execute(g),k=v.length-_;for(l=0;l<_;l++){u=v[k+l];var T=d[2*l];(u<T||u>(T=d[2*l+1]))&&(u=T);y[l]=u}if(x>0){x--;C[h]=y}o.set(y,c)}else o.set(m,c)}}}]);return PDFFunction}();var y=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,c=t-1;c>=0;c--,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,c=o.length-t,l=o.length-1,u=c+(r-Math.floor(r/t)*t),h=c,d=l;h<d;h++,d--){var g=o[h];o[h]=o[d];o[d]=g}for(var m=c,y=u-1;m<y;m++,y--){var v=o[m];o[m]=o[y];o[y]=v}for(var k=u,_=l;k<_;k++,_--){var w=o[k];o[k]=o[_];o[_]=w}}}],[{key:"MAX_STACK_SIZE",get:function get(){return(0,l.shadow)(this,"MAX_STACK_SIZE",100)}}]);return PostScriptStack}(),v=function(){function PostScriptEvaluator(t){_classCallCheck(this,PostScriptEvaluator);this.operators=t}_createClass(PostScriptEvaluator,[{key:"execute",value:function execute(t){for(var r,o,c,u=new y(t),h=0,d=this.operators,g=d.length;h<g;)if("number"!=typeof(r=d[h++]))switch(r){case"jz":c=u.pop();(o=u.pop())||(h=c);break;case"j":h=o=u.pop();break;case"abs":o=u.pop();u.push(Math.abs(o));break;case"add":c=u.pop();o=u.pop();u.push(o+c);break;case"and":c=u.pop();"boolean"==typeof(o=u.pop())&&"boolean"==typeof c?u.push(o&&c):u.push(o&c);break;case"atan":o=u.pop();u.push(Math.atan(o));break;case"bitshift":c=u.pop();(o=u.pop())>0?u.push(o<<c):u.push(o>>c);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":c=u.pop();o=u.pop();u.push(o/c);break;case"dup":u.copy(1);break;case"eq":c=u.pop();o=u.pop();u.push(o===c);break;case"exch":u.roll(2,1);break;case"exp":c=u.pop();o=u.pop();u.push(Math.pow(o,c));break;case"false":u.push(!1);break;case"floor":o=u.pop();u.push(Math.floor(o));break;case"ge":c=u.pop();o=u.pop();u.push(o>=c);break;case"gt":c=u.pop();o=u.pop();u.push(o>c);break;case"idiv":c=u.pop();o=u.pop();u.push(o/c|0);break;case"index":o=u.pop();u.index(o);break;case"le":c=u.pop();o=u.pop();u.push(o<=c);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":c=u.pop();o=u.pop();u.push(o<c);break;case"mod":c=u.pop();o=u.pop();u.push(o%c);break;case"mul":c=u.pop();o=u.pop();u.push(o*c);break;case"ne":c=u.pop();o=u.pop();u.push(o!==c);break;case"neg":o=u.pop();u.push(-o);break;case"not":"boolean"==typeof(o=u.pop())?u.push(!o):u.push(~o);break;case"or":c=u.pop();"boolean"==typeof(o=u.pop())&&"boolean"==typeof c?u.push(o||c):u.push(o|c);break;case"pop":u.pop();break;case"roll":c=u.pop();o=u.pop();u.roll(o,c);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":c=u.pop();o=u.pop();u.push(o-c);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":c=u.pop();"boolean"==typeof(o=u.pop())&&"boolean"==typeof c?u.push(o!==c):u.push(o^c);break;default:throw new l.FormatError("Unknown operator ".concat(r))}else u.push(r);return u.stack}}]);return PostScriptEvaluator}();r.PostScriptEvaluator=v;var k=function PostScriptCompilerClosure(){var t=function(){function AstNode(t){_classCallCheck(this,AstNode);this.type=t}_createClass(AstNode,[{key:"visit",value:function visit(t){(0,l.unreachable)("abstract method")}}]);return AstNode}(),r=function(t){_inherits(AstArgument,t);var r=_createSuper(AstArgument);function AstArgument(t,o,c){var l;_classCallCheck(this,AstArgument);(l=r.call(this,"args")).index=t;l.min=o;l.max=c;return l}_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),c=function(t){_inherits(AstBinaryOperation,t);var r=_createSuper(AstBinaryOperation);function AstBinaryOperation(t,o,c,l,u){var h;_classCallCheck(this,AstBinaryOperation);(h=r.call(this,"binary")).op=t;h.arg1=o;h.arg2=c;h.min=l;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 c;_classCallCheck(this,AstMin);(c=r.call(this,"max")).arg=t;c.min=t.min;c.max=o;return c}_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,c){var l;_classCallCheck(this,AstVariable);(l=r.call(this,"var")).index=t;l.min=o;l.max=c;return l}_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 c;_classCallCheck(this,AstVariableDefinition);(c=r.call(this,"definition")).variable=t;c.arg=o;return c}_createClass(AstVariableDefinition,[{key:"visit",value:function visit(t){t.visitVariableDefinition(this)}}]);return AstVariableDefinition}(t),g=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 c("+",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 l=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 c("*",t,r,l,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 c("-",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,c,l){for(var u,m,y,v,k,_,w,S,C=[],x=[],O=c.length>>1,T=l.length>>1,E=0,M=0;M<O;M++)C.push(new r(M,c[2*M],c[2*M+1]));for(var R=0,j=t.length;R<j;R++)if("number"!=typeof(S=t[R]))switch(S){case"add":if(C.length<2)return null;v=C.pop();y=C.pop();C.push(buildAddOperation(y,v));break;case"cvr":if(C.length<1)return null;break;case"mul":if(C.length<2)return null;v=C.pop();y=C.pop();C.push(buildMulOperation(y,v));break;case"sub":if(C.length<2)return null;v=C.pop();y=C.pop();C.push(buildSubOperation(y,v));break;case"exch":if(C.length<2)return null;k=C.pop();_=C.pop();C.push(k,_);break;case"pop":if(C.length<1)return null;C.pop();break;case"index":if(C.length<1)return null;if("literal"!==(y=C.pop()).type)return null;if((u=y.number)<0||!Number.isInteger(u)||C.length<u)return null;if("literal"===(k=C[C.length-u-1]).type||"var"===k.type){C.push(k);break}w=new h(E++,k.min,k.max);C[C.length-u-1]=w;C.push(w);x.push(new d(w,k));break;case"dup":if(C.length<1)return null;if("number"==typeof t[R+1]&&"gt"===t[R+2]&&t[R+3]===R+7&&"jz"===t[R+4]&&"pop"===t[R+5]&&t[R+6]===t[R+1]){y=C.pop();C.push(buildMinOperation(y,t[R+1]));R+=6;break}if("literal"===(k=C[C.length-1]).type||"var"===k.type){C.push(k);break}w=new h(E++,k.min,k.max);C[C.length-1]=w;C.push(w);x.push(new d(w,k));break;case"roll":if(C.length<2)return null;v=C.pop();y=C.pop();if("literal"!==v.type||"literal"!==y.type)return null;m=v.number;if((u=y.number)<=0||!Number.isInteger(u)||!Number.isInteger(m)||C.length<u)return null;if(0===(m=(m%u+u)%u))break;Array.prototype.push.apply(C,C.splice(C.length-u,u-m));break;default:return null}else C.push(new o(S));if(C.length!==T)return null;for(var D=[],N=0,L=x;N<L.length;N++){var U=L[N],H=new g;U.visit(H);D.push(H.toString())}for(var $=0,X=C.length;$<X;$++){var q=C[$],G=new g;q.visit(G);var z=l[2*$],W=l[2*$+1],V=[G.toString()];if(z>q.min){V.unshift("Math.max(",z,", ");V.push(")")}if(W<q.max){V.unshift("Math.min(",W,", ");V.push(")")}V.unshift("dest[destOffset + ",$,"] = ");V.push(";");D.push(V.join(""))}return D.join("\n")}}]);return PostScriptCompiler}()}();r.PostScriptCompiler=k},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptParser=r.PostScriptLexer=void 0;var c=o(4),l=o(147),u=o(150);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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 c.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 c.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},g=function(){function PostScriptToken(t,r){_classCallCheck(this,PostScriptToken);this.type=t;this.value=r}_createClass(PostScriptToken,null,[{key:"opCache",get:function get(){return(0,c.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,c.shadow)(this,"LBRACE",new PostScriptToken(d.LBRACE,"{"))}},{key:"RBRACE",get:function get(){return(0,c.shadow)(this,"RBRACE",new PostScriptToken(d.RBRACE,"}"))}},{key:"IF",get:function get(){return(0,c.shadow)(this,"IF",new PostScriptToken(d.IF,"IF"))}},{key:"IFELSE",get:function get(){return(0,c.shadow)(this,"IFELSE",new PostScriptToken(d.IFELSE,"IFELSE"))}}]);return PostScriptToken}(),m=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 l.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 g(d.NUMBER,this.getNumber());case 123:this.nextChar();return g.LBRACE;case 125:this.nextChar();return g.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 c=o.join("");switch(c.toLowerCase()){case"if":return g.IF;case"ifelse":return g.IFELSE;default:return g.getOperator(c)}}},{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 c.FormatError("Invalid floating point number: ".concat(o));return o}}]);return PostScriptLexer}();r.PostScriptLexer=m},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.LocalTilingPatternCache=r.LocalImageCache=r.LocalGStateCache=r.LocalFunctionCache=r.LocalColorSpaceCache=r.GlobalImageCache=void 0;var c=o(4),l=o(147);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var u=function(){function BaseLocalCache(t){_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&(0,c.unreachable)("Cannot initialize BaseLocalCache.");this._onlyRefs=!0===(t&&t.onlyRefs);if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new l.RefSetCache}_createClass(BaseLocalCache,[{key:"getByName",value:function getByName(t){this._onlyRefs&&(0,c.unreachable)("Should not call `getByName` method.");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,c.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 g=function(t){_inherits(LocalFunctionCache,t);var r=_createSuper(LocalFunctionCache);function LocalFunctionCache(t){_classCallCheck(this,LocalFunctionCache);return r.call(this,{onlyRefs:!0})}_createClass(LocalFunctionCache,[{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=g;var m=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=m;var y=function(t){_inherits(LocalTilingPatternCache,t);var r=_createSuper(LocalTilingPatternCache);function LocalTilingPatternCache(t){_classCallCheck(this,LocalTilingPatternCache);return r.call(this,{onlyRefs:!0})}_createClass(LocalTilingPatternCache,[{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('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return LocalTilingPatternCache}(u);r.LocalTilingPatternCache=y;var v=function(){function GlobalImageCache(){_classCallCheck(this,GlobalImageCache);this._refCache=new l.RefSetCache;this._imageCache=new l.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 c=this._imageCache.get(t);if(!c)return null;o.add(r);return c}},{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,c.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,c.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MIN_IMAGES_TO_CACHE",get:function get(){return(0,c.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}},{key:"MAX_BYTE_SIZE",get:function get(){return(0,c.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){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=!0,m=t.length;if(0===m||o)return createBidiText(t,g,o);h.length=m;d.length=m;var y,v,k=0;for(y=0;y<m;++y){h[y]=t.charAt(y);var _=t.charCodeAt(y),w="L";_<=255?w=l[_]:1424<=_&&_<=1524?w="R":1536<=_&&_<=1791?(w=u[255&_])||(0,c.warn)("Bidi: invalid Unicode character "+_.toString(16)):1792<=_&&_<=2220&&(w="AL");"R"!==w&&"AL"!==w&&"AN"!==w||k++;d[y]=w}if(0===k)return createBidiText(t,g=!0);if(-1===r)if(k/m<.3&&m>4){g=!0;r=0}else{g=!1;r=1}var S=[];for(y=0;y<m;++y)S[y]=r;var C,x=isOdd(r)?"R":"L",O=x,T=O,E=O;for(y=0;y<m;++y)"NSM"===d[y]?d[y]=E:E=d[y];E=O;for(y=0;y<m;++y)"EN"===(C=d[y])?d[y]="AL"===E?"AN":"EN":"R"!==C&&"L"!==C&&"AL"!==C||(E=C);for(y=0;y<m;++y)"AL"===(C=d[y])&&(d[y]="R");for(y=1;y<m-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<m;++y)if("EN"===d[y]){for(var M=y-1;M>=0&&"ET"===d[M];--M)d[M]="EN";for(var R=y+1;R<m&&"ET"===d[R];++R)d[R]="EN"}for(y=0;y<m;++y)"WS"!==(C=d[y])&&"ES"!==C&&"ET"!==C&&"CS"!==C||(d[y]="ON");E=O;for(y=0;y<m;++y)"EN"===(C=d[y])?d[y]="L"===E?"L":"EN":"R"!==C&&"L"!==C||(E=C);for(y=0;y<m;++y)if("ON"===d[y]){var j=findUnequal(d,y+1,"ON"),D=O;y>0&&(D=d[y-1]);var N=T;j+1<m&&(N=d[j+1]);"L"!==D&&(D="R");"L"!==N&&(N="R");D===N&&setValues(d,y,j,D);y=j-1}for(y=0;y<m;++y)"ON"===d[y]&&(d[y]=x);for(y=0;y<m;++y){C=d[y];isEven(S[y])?"R"===C?S[y]+=1:"AN"!==C&&"EN"!==C||(S[y]+=2):"L"!==C&&"AN"!==C&&"EN"!==C||(S[y]+=1)}var L,U=-1,H=99;for(y=0,v=S.length;y<v;++y){L=S[y];U<L&&(U=L);H>L&&isOdd(L)&&(H=L)}for(L=U;L>=H;--L){var $=-1;for(y=0,v=S.length;y<v;++y)if(S[y]<L){if($>=0){reverseValues(h,$,y);$=-1}}else $<0&&($=y);$>=0&&reverseValues(h,$,S.length)}for(y=0,v=h.length;y<v;++y){var X=h[y];"<"!==X&&">"!==X||(h[y]="")}return createBidiText(h.join(""),g)};var c=o(4),l=["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 c,l;for(c=r,l=t.length;c<l;++c)if(t[c]!==o)return c;return c}function setValues(t,r,o,c){for(var l=r;l<o;++l)t[l]=c}function reverseValues(t,r,o){for(var c=r,l=o-1;c<l;++c,--l){var u=t[c];t[c]=t[l];t[l]=u}}function createBidiText(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c="ltr";o?c="ttb":r||(c="rtl");return{str:t,dir:c}}var h=[],d=[]},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MurmurHash3_64=void 0;var c=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var l=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:l;this.h2=t?4294967295&t:l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(MurmurHash3_64,[{key:"update",value:function update(t){var r,o;if("string"==typeof t){r=new Uint8Array(2*t.length);o=0;for(var l=0,d=t.length;l<d;l++){var g=t.charCodeAt(l);if(g<=255)r[o++]=g;else{r[o++]=g>>>8;r[o++]=255&g}}}else{if(!(0,c.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 m=o>>2,y=o-4*m,v=new Uint32Array(r.buffer,0,m),k=0,_=0,w=this.h1,S=this.h2,C=3432918353,x=461845907,O=11601,T=13715,E=0;E<m;E++)1&E?w=5*(w=(w^=k=(k=(k=(k=v[E])*C&u|k*O&h)<<15|k>>>17)*x&u|k*T&h)<<13|w>>>19)+3864292196:S=5*(S=(S^=_=(_=(_=(_=v[E])*C&u|_*O&h)<<15|_>>>17)*x&u|_*T&h)<<13|S>>>19)+3864292196;k=0;switch(y){case 3:k^=r[4*m+2]<<16;case 2:k^=r[4*m+1]<<8;case 1:k=(k=(k=(k^=r[4*m])*C&u|k*O&h)<<15|k>>>17)*x&u|k*T&h;1&m?w^=k:S^=k}this.h1=w;this.h2=S}},{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),c=(r>>>0).toString(16);return o.padStart(8,"0")+c.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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.OperatorList=void 0;var c=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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function addState(t,r,o,c,l){for(var u=t,h=0,d=r.length-1;h<d;h++){var g=r[h];u=u[g]||(u[g]=[])}u[r[r.length-1]]={checkFn:o,iterateFn:c,processFn:l}}var l=[];addState(l,[c.OPS.save,c.OPS.transform,c.OPS.paintInlineImageXObject,c.OPS.restore],null,(function iterateInlineImageGroup(t,r){var o=t.fnArray,l=(r-(t.iCurr-3))%4;switch(l){case 0:return o[r]===c.OPS.save;case 1:return o[r]===c.OPS.transform;case 2:return o[r]===c.OPS.paintInlineImageXObject;case 3:return o[r]===c.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(l))}),(function foundInlineImageGroup(t,r){var o=t.fnArray,l=t.argsArray,u=t.iCurr,h=u-3,d=u-2,g=u-1,m=Math.min(Math.floor((r-h)/4),200);if(m<10)return r-(r-h)%4;for(var y=0,v=[],k=0,_=1,w=1,S=0;S<m;S++){var C=l[d+(S<<2)],x=l[g+(S<<2)][0];if(_+x.width>1e3){y=Math.max(y,_);w+=k+2;_=0;k=0}v.push({transform:C,x:_,y:w,w:x.width,h:x.height});_+=x.width+2;k=Math.max(k,x.height)}for(var O=Math.max(y,_)+1,T=w+k+1,E=new Uint8ClampedArray(O*T*4),M=O<<2,R=0;R<m;R++){var j=l[g+(R<<2)][0].data,D=v[R].w<<2,N=0,L=v[R].x+v[R].y*O<<2;E.set(j.subarray(0,D),L-M);for(var U=0,H=v[R].h;U<H;U++){E.set(j.subarray(N,N+D),L);N+=D;L+=M}E.set(j.subarray(N-D,N),L);for(;L>=0;){j[L-4]=j[L];j[L-3]=j[L+1];j[L-2]=j[L+2];j[L-1]=j[L+3];j[L+D]=j[L+D-4];j[L+D+1]=j[L+D-3];j[L+D+2]=j[L+D-2];j[L+D+3]=j[L+D-1];L-=M}}o.splice(h,4*m,c.OPS.paintInlineImageXObjectGroup);l.splice(h,4*m,[{width:O,height:T,kind:c.ImageKind.RGBA_32BPP,data:E},v]);return h+1}));addState(l,[c.OPS.save,c.OPS.transform,c.OPS.paintImageMaskXObject,c.OPS.restore],null,(function iterateImageMaskGroup(t,r){var o=t.fnArray,l=(r-(t.iCurr-3))%4;switch(l){case 0:return o[r]===c.OPS.save;case 1:return o[r]===c.OPS.transform;case 2:return o[r]===c.OPS.paintImageMaskXObject;case 3:return o[r]===c.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(l))}),(function foundImageMaskGroup(t,r){var o=t.fnArray,l=t.argsArray,u=t.iCurr,h=u-3,d=u-2,g=u-1,m=Math.floor((r-h)/4);m=function handlePaintSolidColorImageMask(t,r,o,l){var u,h=t+2;for(u=0;u<r;u++){var d=l[h+4*u],g=1===d.length&&d[0];if(!g||1!==g.width||1!==g.height||g.data.length&&(1!==g.data.length||0!==g.data[0]))break;o[h+4*u]=c.OPS.paintSolidColorImageMask}return r-u}(h,m,o,l);if(m<10)return r-(r-h)%4;var y,v,k=!1,_=l[g][0],w=l[d][0],S=l[d][1],C=l[d][2],x=l[d][3];if(S===C){k=!0;y=d+4;for(var O=g+4,T=1;T<m;T++,y+=4,O+=4){v=l[y];if(l[O][0]!==_||v[0]!==w||v[1]!==S||v[2]!==C||v[3]!==x){T<10?k=!1:m=T;break}}}if(k){m=Math.min(m,1e3);var E=new Float32Array(2*m);y=d;for(var M=0;M<m;M++,y+=4){v=l[y];E[M<<1]=v[4];E[1+(M<<1)]=v[5]}o.splice(h,4*m,c.OPS.paintImageMaskXObjectRepeat);l.splice(h,4*m,[_,w,S,C,x,E])}else{m=Math.min(m,100);for(var R=[],j=0;j<m;j++){v=l[d+(j<<2)];var D=l[g+(j<<2)][0];R.push({data:D.data,width:D.width,height:D.height,transform:v})}o.splice(h,4*m,c.OPS.paintImageMaskXObjectGroup);l.splice(h,4*m,[R])}return h+1}));addState(l,[c.OPS.save,c.OPS.transform,c.OPS.paintImageXObject,c.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,l=t.argsArray,u=(r-(t.iCurr-3))%4;switch(u){case 0:return o[r]===c.OPS.save;case 1:if(o[r]!==c.OPS.transform)return!1;var h=t.iCurr-2,d=l[h][0],g=l[h][3];return l[r][0]===d&&0===l[r][1]&&0===l[r][2]&&l[r][3]===g;case 2:if(o[r]!==c.OPS.paintImageXObject)return!1;var m=l[t.iCurr-1][0];return l[r][0]===m;case 3:return o[r]===c.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(u))}),(function(t,r){var o=t.fnArray,l=t.argsArray,u=t.iCurr,h=u-3,d=u-2,g=l[u-1][0],m=l[d][0],y=l[d][3],v=Math.min(Math.floor((r-h)/4),1e3);if(v<3)return r-(r-h)%4;for(var k=new Float32Array(2*v),_=d,w=0;w<v;w++,_+=4){var S=l[_];k[w<<1]=S[4];k[1+(w<<1)]=S[5]}var C=[g,m,y,k];o.splice(h,4*v,c.OPS.paintImageXObjectRepeat);l.splice(h,4*v,C);return h+1}));addState(l,[c.OPS.beginText,c.OPS.setFont,c.OPS.setTextMatrix,c.OPS.showText,c.OPS.endText],null,(function iterateShowTextGroup(t,r){var o=t.fnArray,l=t.argsArray,u=(r-(t.iCurr-4))%5;switch(u){case 0:return o[r]===c.OPS.beginText;case 1:return o[r]===c.OPS.setFont;case 2:return o[r]===c.OPS.setTextMatrix;case 3:if(o[r]!==c.OPS.showText)return!1;var h=t.iCurr-3,d=l[h][0],g=l[h][1];return l[r][0]===d&&l[r][1]===g;case 4:return o[r]===c.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(u))}),(function(t,r){var o=t.fnArray,c=t.argsArray,l=t.iCurr,u=l-4,h=l-3,d=l-2,g=l-1,m=l,y=c[h][0],v=c[h][1],k=Math.min(Math.floor((r-u)/5),1e3);if(k<3)return r-(r-u)%5;var _=u;if(u>=4&&o[u-4]===o[h]&&o[u-3]===o[d]&&o[u-2]===o[g]&&o[u-1]===o[m]&&c[u-4][0]===y&&c[u-4][1]===v){k++;_-=5}for(var w=_+4,S=1;S<k;S++){o.splice(w,3);c.splice(w,3);w+=2}return w+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}});Object.defineProperty(t,"prototype",{writable:!1});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,c=this.state,u=this.match;if(c||u||r+1!==o||l[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;c=null;if(r>=(o=t.length))break}if((c=(c||l)[t[r]])&&!Array.isArray(c)){h.iCurr=r;r++;if(!c.checkFn||(0,c.checkFn)(h)){u=c;c=null}else c=null}else r++}this.state=c;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(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;_classCallCheck(this,OperatorList);this._streamSink=r;this.fnArray=[];this.argsArray=[];!r||t&c.RenderingIntentFlag.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===c.OPS.restore||t===c.OPS.endText))&&this.flush()}},{key:"addDependency",value:function addDependency(t){if(!this.dependencies.has(t)){this.dependencies.add(t);this.addOp(c.OPS.dependency,[t])}}},{key:"addDependencies",value:function addDependencies(t){var r,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var c=r.value;this.addDependency(c)}}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 l=r.value;this.dependencies.add(l)}}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,c.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,l=this.length,u=0;u<l;u++)switch(r[u]){case c.OPS.paintInlineImageXObject:case c.OPS.paintInlineImageXObjectGroup:case c.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,c.shadow)(this,"CHUNK_SIZE",1e3)}},{key:"CHUNK_SIZE_ABOUT",get:function get(){return(0,c.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 c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(151),h=o(166),d=o(171),g=o(179),m=o(182),y=o(147);function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function decodeAndClamp(t,r,o,c){(t=r+t*o)<0?t=0:t>c&&(t=c);return t}function resizeImageMask(t,r,o,c,l,u){var h,d=l*u;h=r<=8?new Uint8Array(d):r<=16?new Uint16Array(d):new Uint32Array(d);var g,m,y,v,k=o/l,_=c/u,w=0,S=new Uint16Array(l),C=o;for(g=0;g<l;g++)S[g]=Math.floor(g*k);for(g=0;g<u;g++){y=Math.floor(g*_)*C;for(m=0;m<l;m++){v=y+S[m];h[w++]=t[v]}}return h}var v=function(){function PDFImage(t){var r=t.xref,o=t.res,c=t.image,d=t.isInline,g=void 0!==d&&d,v=t.smask,k=void 0===v?null:v,_=t.mask,w=void 0===_?null:_,S=t.isMask,C=void 0!==S&&S,x=t.pdfFunctionFactory,O=t.localColorSpaceCache;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PDFImage);this.image=c;var T=c.dict,E=T.get("F","Filter");if(E instanceof y.Name)switch(E.name){case"JPXDecode":var M=new m.JpxImage;M.parseImageProperties(c.stream);c.stream.reset();c.width=M.width;c.height=M.height;c.bitsPerComponent=M.bitsPerComponent;c.numComps=M.componentsCount;break;case"JBIG2Decode":c.bitsPerComponent=1;c.numComps=1}var R=T.get("W","Width"),j=T.get("H","Height");if(Number.isInteger(c.width)&&c.width>0&&Number.isInteger(c.height)&&c.height>0&&(c.width!==R||c.height!==j)){(0,l.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");R=c.width;j=c.height}if(R<1||j<1)throw new l.FormatError("Invalid image width: ".concat(R," or height: ").concat(j));this.width=R;this.height=j;this.interpolate=T.get("I","Interpolate");this.imageMask=T.get("IM","ImageMask")||!1;this.matte=T.get("Matte")||!1;var D=c.bitsPerComponent;if(!D&&!(D=T.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new l.FormatError("Bits per component missing in image: ".concat(this.imageMask));D=1}this.bpc=D;if(!this.imageMask){var N=T.getRaw("CS")||T.getRaw("ColorSpace");if(!N){(0,l.info)("JPX images (which do not require color spaces)");switch(c.numComps){case 1:N=y.Name.get("DeviceGray");break;case 3:N=y.Name.get("DeviceRGB");break;case 4:N=y.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(c.numComps," color components not supported."))}}this.colorSpace=h.ColorSpace.parse({cs:N,xref:r,resources:g?o:null,pdfFunctionFactory:x,localColorSpaceCache:O});this.numComps=this.colorSpace.numComps}this.decode=T.getArray("D","Decode");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 U=this.colorSpace&&"Indexed"===this.colorSpace.name,H=0,$=0;H<this.decode.length;H+=2,++$){var X=this.decode[H],q=this.decode[H+1];this.decodeCoefficients[$]=U?(q-X)/L:q-X;this.decodeAddends[$]=U?X:L*X}}if(k)this.smask=new PDFImage({xref:r,res:o,image:k,isInline:g,pdfFunctionFactory:x,localColorSpaceCache:O});else if(w)if(w instanceof u.BaseStream){w.dict.get("IM","ImageMask")?this.mask=new PDFImage({xref:r,res:o,image:w,isInline:g,isMask:!0,pdfFunctionFactory:x,localColorSpaceCache:O}):(0,l.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=w}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,c=this.bpc,l=this.numComps,u=this.decodeAddends,h=this.decodeCoefficients,d=(1<<c)-1;if(1!==c){var g=0;for(r=0,o=this.width*this.height;r<o;r++)for(var m=0;m<l;m++){t[g]=decodeAndClamp(t[g],u[m],h[m],d);g++}}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,c=this.width,l=this.height,u=this.numComps,h=c*l*u,d=0;o=r<=8?new Uint8Array(h):r<=16?new Uint16Array(h):new Uint32Array(h);var g,m,y=c*u,v=(1<<r)-1,k=0;if(1===r)for(var _,w,S,C=0;C<l;C++){w=k+(-8&y);S=k+y;for(;k<w;){m=t[d++];o[k]=m>>7&1;o[k+1]=m>>6&1;o[k+2]=m>>5&1;o[k+3]=m>>4&1;o[k+4]=m>>3&1;o[k+5]=m>>2&1;o[k+6]=m>>1&1;o[k+7]=1&m;k+=8}if(k<S){m=t[d++];_=128;for(;k<S;){o[k++]=+!!(m&_);_>>=1}}}else{var x=0;m=0;for(k=0,g=h;k<g;++k){if(k%y==0){m=0;x=0}for(;x<r;){m=m<<8|t[d++];x+=8}var O=x-r,T=m>>O;T<0?T=0:T>v&&(T=v);o[k]=T;m&=(1<<O)-1;x=O}}return o}},{key:"fillOpacity",value:function fillOpacity(t,r,o,c,u){var h,d,g,m,y,v,k=this.smask,_=this.mask;if(k){d=k.width;g=k.height;h=new Uint8ClampedArray(d*g);k.fillGrayBuffer(h);d===r&&g===o||(h=resizeImageMask(h,k.bpc,d,g,r,o))}else if(_)if(_ instanceof PDFImage){d=_.width;g=_.height;h=new Uint8ClampedArray(d*g);_.numComps=1;_.fillGrayBuffer(h);for(m=0,y=d*g;m<y;++m)h[m]=255-h[m];d===r&&g===o||(h=resizeImageMask(h,_.bpc,d,g,r,o))}else{if(!Array.isArray(_))throw new l.FormatError("Unknown mask format.");h=new Uint8ClampedArray(r*o);var w=this.numComps;for(m=0,y=r*o;m<y;++m){var S=0,C=m*w;for(v=0;v<w;++v){var x=u[C+v],O=2*v;if(x<_[O]||x>_[O+1]){S=255;break}}h[m]=S}}if(h)for(m=0,v=3,y=r*c;m<y;++m,v+=4)t[v]=h[m];else for(m=0,v=3,y=r*c;m<y;++m,v+=4)t[v]=255}},{key:"undoPreblend",value:function undoPreblend(t,r,o){var c=this.smask&&this.smask.matte;if(c)for(var l=this.colorSpace.getRgb(c,0),u=l[0],h=l[1],d=l[2],g=r*o*4,m=0;m<g;m+=4){var y=t[m+3];if(0!==y){var v=255/y;t[m]=(t[m]-u)*v+u;t[m+1]=(t[m+1]-h)*v+h;t[m+2]=(t[m+2]-d)*v+d}else{t[m]=255;t[m+1]=255;t[m+2]=255}}}},{key:"createImageData",value:function createImageData(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.drawWidth,c=this.drawHeight,u={width:o,height:c,interpolate:this.interpolate,kind:0,data:null},h=this.numComps,m=this.width,y=this.height,v=this.bpc,k=m*h*v+7>>3;if(!r){var _;"DeviceGray"===this.colorSpace.name&&1===v?_=l.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==v||this.needsDecode||(_=l.ImageKind.RGB_24BPP);if(_&&!this.smask&&!this.mask&&o===m&&c===y){u.kind=_;t=this.getImageBytes(y*k);if(this.image instanceof d.DecodeStream)u.data=t;else{var w=new Uint8ClampedArray(t.length);w.set(t);u.data=w}if(this.needsDecode){(0,l.assert)(_===l.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var S=u.data,C=0,x=S.length;C<x;C++)S[C]^=255}return u}if(this.image instanceof g.JpegStream&&!this.smask&&!this.mask){var O=y*k;switch(this.colorSpace.name){case"DeviceGray":O*=3;case"DeviceRGB":case"DeviceCMYK":u.kind=l.ImageKind.RGB_24BPP;u.data=this.getImageBytes(O,o,c,!0);return u}}}var T,E,M=0|(t=this.getImageBytes(y*k)).length/k*c/y,R=this.getComponents(t);if(r||this.smask||this.mask){u.kind=l.ImageKind.RGBA_32BPP;u.data=new Uint8ClampedArray(o*c*4);T=1;E=!0;this.fillOpacity(u.data,o,c,M,R)}else{u.kind=l.ImageKind.RGB_24BPP;u.data=new Uint8ClampedArray(o*c*3);T=0;E=!1}this.needsDecode&&this.decodeBuffer(R);this.colorSpace.fillRgb(u.data,m,y,o,c,M,v,R,T);E&&this.undoPreblend(u.data,o,M);return u}},{key:"fillGrayBuffer",value:function fillGrayBuffer(t){var r=this.numComps;if(1!==r)throw new l.FormatError("Reading gray scale from a color image: ".concat(r));var o,c,u=this.width,h=this.height,d=this.bpc,g=u*r*d+7>>3,m=this.getImageBytes(h*g),y=this.getComponents(m);if(1!==d){this.needsDecode&&this.decodeBuffer(y);c=u*h;var v=255/((1<<d)-1);for(o=0;o<c;++o)t[o]=v*y[o]}else{c=u*h;if(this.needsDecode)for(o=0;o<c;++o)t[o]=y[o]-1&255;else for(o=0;o<c;++o)t[o]=255&-y[o]}}},{key:"getImageBytes",value:function getImageBytes(t,r,o){var c=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=!!c;return this.image.getBytes(t,!0)}}],[{key:"buildImage",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(c.default.mark((function _callee(t){var r,o,h,d,g,m,y,v,k,_,w,S;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:r=t.xref,o=t.res,h=t.image,d=t.isInline,g=void 0!==d&&d,m=t.pdfFunctionFactory,y=t.localColorSpaceCache;v=h;k=null;_=null;w=h.dict.get("SMask");S=h.dict.get("Mask");w?k=w:S&&(S instanceof u.BaseStream||Array.isArray(S)?_=S:(0,l.warn)("Unsupported mask format."));return c.abrupt("return",new PDFImage({xref:r,res:o,image:v,isInline:g,smask:k,mask:_,pdfFunctionFactory:m,localColorSpaceCache:y}));case 8:case"end":return c.stop()}}),_callee)}))),function buildImage(r){return t.apply(this,arguments)})},{key:"createMask",value:function createMask(t){var r,o,c=t.imgArray,l=t.width,u=t.height,h=t.imageIsFromDecodeStream,d=t.inverseDecode,g=t.interpolate,m=(l+7>>3)*u,y=c.byteLength;if(!h||d&&!(m===y))if(d){(r=new Uint8ClampedArray(m)).set(c);for(o=y;o<m;o++)r[o]=255}else(r=new Uint8ClampedArray(y)).set(c);else r=c;if(d)for(o=0;o<y;o++)r[o]^=255;return{data:r,width:l,height:u,interpolate:g}}}]);var t;return PDFImage}();r.PDFImage=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Catalog=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(150),u=o(4),h=o(147),d=o(207),g=o(151),m=o(208),y=o(166),v=o(209),k=o(201),_=o(210),w=o(212);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function fetchDestination(t){t instanceof h.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(!(this._catDict instanceof h.Dict))throw new u.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict;this._actualNumPages=null;this.fontCache=new h.RefSetCache;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new k.GlobalImageCache;this.pageKidsCountCache=new h.RefSetCache;this.pageIndexCache=new h.RefSetCache;this.nonBlendModesSet=new h.RefSet}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(Catalog,[{key:"version",get:function get(){var t=this._catDict.get("Version");return(0,u.shadow)(this,"version",t instanceof h.Name?t.name:null)}},{key:"lang",get:function get(){var t=this._catDict.get("Lang");return(0,u.shadow)(this,"lang","string"==typeof t?(0,u.stringToPDFString)(t):null)}},{key:"needsRendering",get:function get(){var t=this._catDict.get("NeedsRendering");return(0,u.shadow)(this,"needsRendering","boolean"==typeof t&&t)}},{key:"collection",get:function get(){var t=null;try{var r=this._catDict.get("Collection");r instanceof h.Dict&&r.size>0&&(t=r)}catch(t){if(t instanceof l.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");r instanceof h.Dict&&r.size>0&&(t=r)}catch(t){if(t instanceof l.MissingDataException)throw t;(0,u.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,u.shadow)(this,"acroForm",t)}},{key:"acroFormRef",get:function get(){var t=this._catDict.getRaw("AcroForm");return(0,u.shadow)(this,"acroFormRef",t instanceof h.Ref?t:null)}},{key:"metadata",get:function get(){var t=this._catDict.getRaw("Metadata");if(!(t instanceof h.Ref))return(0,u.shadow)(this,"metadata",null);var r=null;try{var o=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),c=this.xref.fetch(t,o);if(c instanceof g.BaseStream&&c.dict instanceof h.Dict){var d=c.dict.get("Type"),m=c.dict.get("Subtype");if((0,h.isName)(d,"Metadata")&&(0,h.isName)(m,"XML")){var y=(0,u.stringToUTF8String)(c.getString());y&&(r=new _.MetadataParser(y).serializable)}}}catch(t){if(t instanceof l.MissingDataException)throw t;(0,u.info)('Skipping invalid Metadata: "'.concat(t,'".'))}return(0,u.shadow)(this,"metadata",r)}},{key:"markInfo",get:function get(){var t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof l.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(!(t instanceof h.Dict))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);"boolean"==typeof c&&(r[o]=c)}return r}},{key:"structTreeRoot",get:function get(){var t=null;try{t=this._readStructTreeRoot()}catch(t){if(t instanceof l.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(!(t instanceof h.Dict))return null;var r=new w.StructTreeRoot(t);r.init();return r}},{key:"toplevelPagesDict",get:function get(){var t=this._catDict.get("Pages");if(!(t instanceof h.Dict))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 l.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(!(t instanceof h.Dict))return null;if(!((t=t.getRaw("First"))instanceof h.Ref))return null;var r={items:[]},o=[{obj:t,parent:r}],c=new h.RefSet;c.put(t);for(var l=this.xref,d=new Uint8ClampedArray(3);o.length>0;){var g=o.shift(),m=l.fetchIfRef(g.obj);if(null!==m){if(!m.has("Title"))throw new u.FormatError("Invalid outline item encountered.");var v={url:null,dest:null};Catalog.parseDestDictionary({destDict:m,resultObj:v,docBaseUrl:this.pdfManager.docBaseUrl});var k=m.get("Title"),_=m.get("F")||0,w=m.getArray("C"),S=m.get("Count"),C=d;!Array.isArray(w)||3!==w.length||0===w[0]&&0===w[1]&&0===w[2]||(C=y.ColorSpace.singletons.rgb.getRgb(w,0));var x={dest:v.dest,url:v.url,unsafeUrl:v.unsafeUrl,newWindow:v.newWindow,title:(0,u.stringToPDFString)(k),color:C,count:Number.isInteger(S)?S:void 0,bold:!!(2&_),italic:!!(1&_),items:[]};g.parent.items.push(x);if((t=m.getRaw("First"))instanceof h.Ref&&!c.has(t)){o.push({obj:t,parent:x});c.put(t)}if((t=m.getRaw("Next"))instanceof h.Ref&&!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 l.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(!(t instanceof h.Dict))return null;var r=t.get("P");if("number"!=typeof r)return null;r+=Math.pow(2,32);var o=[];for(var c in u.PermissionFlag){var l=u.PermissionFlag[c];r&l&&o.push(l)}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 c=r.get("OCGs");if(!Array.isArray(c))return(0,u.shadow)(this,"optionalContentConfig",null);var d,g=[],m=[],y=_createForOfIteratorHelper(c);try{for(y.s();!(d=y.n()).done;){var v=d.value;if(v instanceof h.Ref){m.push(v);var k=this.xref.fetchIfRef(v);g.push({id:v.toString(),name:"string"==typeof k.get("Name")?(0,u.stringToPDFString)(k.get("Name")):null,intent:"string"==typeof k.get("Intent")?(0,u.stringToPDFString)(k.get("Intent")):null})}}}catch(t){y.e(t)}finally{y.f()}(t=this._readOptionalContentConfig(o,m)).groups=g}catch(t){if(t instanceof l.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,l=_createForOfIteratorHelper(t);try{for(l.s();!(c=l.n()).done;){var u=c.value;u instanceof h.Ref&&(r.includes(u)&&o.push(u.toString()))}}catch(t){l.e(t)}finally{l.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 l,u=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(l=d.n()).done;){var g=l.value;if(g instanceof h.Ref&&r.includes(g)){c.put(g);u.push(g.toString())}else{var m=parseNestedOrder(g,o);m&&u.push(m)}}}catch(t){d.e(t)}finally{d.f()}if(o>0)return u;var y,v=[],k=_createForOfIteratorHelper(r);try{for(k.s();!(y=k.n()).done;){var _=y.value;c.has(_)||v.push(_.toString())}}catch(t){k.e(t)}finally{k.f()}v.length&&u.push({name:null,order:v});return u}function parseNestedOrder(t,r){if(++r>l){(0,u.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}var c=o.fetchIfRef(t);if(!Array.isArray(c))return null;var h=o.fetchIfRef(c[0]);if("string"!=typeof h)return null;var d=parseOrder(c.slice(1),r);return d&&d.length?{name:(0,u.stringToPDFString)(h),order:d}:null}var o=this.xref,c=new h.RefSet,l=10;return{name:"string"==typeof t.get("Name")?(0,u.stringToPDFString)(t.get("Name")):null,creator:"string"==typeof t.get("Creator")?(0,u.stringToPDFString)(t.get("Creator")):null,baseState:t.get("BaseState")instanceof h.Name?t.get("BaseState").name:null,on:parseOnOff(t.get("ON")),off:parseOnOff(t.get("OFF")),order:parseOrder(t.get("Order")),groups:null}}},{key:"setActualNumPages",value:function setActualNumPages(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=t}},{key:"hasActualNumPages",get:function get(){return null!==this._actualNumPages}},{key:"_pagesCount",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,"_pagesCount",t)}},{key:"numPages",get:function get(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}},{key:"destinations",get:function get(){var t=this._readDests(),r=Object.create(null);if(t instanceof d.NameTree){var o,c=_createForOfIteratorHelper(t.getAll());try{for(c.s();!(o=c.n()).done;){var l=_slicedToArray(o.value,2),g=l[0],m=fetchDestination(l[1]);m&&(r[g]=m)}}catch(t){c.e(t)}finally{c.f()}}else t instanceof h.Dict&&t.forEach((function(t,o){var c=fetchDestination(o);c&&(r[t]=c)}));return(0,u.shadow)(this,"destinations",r)}},{key:"getDestination",value:function getDestination(t){var r=this._readDests();if(r instanceof d.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 h.Dict){var l=fetchDestination(r.get(t));if(l)return l}return null}},{key:"_readDests",value:function _readDests(){var t=this._catDict.get("Names");return t&&t.has("Dests")?new d.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 l.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,c="",g=new d.NumberTree(t,this.xref).getAll(),m="",y=1,v=0,k=this.numPages;v<k;v++){var _=g.get(v);if(void 0!==_){if(!(_ instanceof h.Dict))throw new u.FormatError("PageLabel is not a dictionary.");if(_.has("Type")&&!(0,h.isName)(_.get("Type"),"PageLabel"))throw new u.FormatError("Invalid type in PageLabel dictionary.");if(_.has("S")){var w=_.get("S");if(!(w instanceof h.Name))throw new u.FormatError("Invalid style in PageLabel dictionary.");o=w.name}else o=null;if(_.has("P")){var S=_.get("P");if("string"!=typeof S)throw new u.FormatError("Invalid prefix in PageLabel dictionary.");c=(0,u.stringToPDFString)(S)}else c="";if(_.has("St")){var C=_.get("St");if(!(Number.isInteger(C)&&C>=1))throw new u.FormatError("Invalid start in PageLabel dictionary.");y=C}else y=1}switch(o){case"D":m=y;break;case"R":case"r":m=(0,l.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),E=[],M=0,R=O/26|0;M<=R;M++)E.push(T);m=E.join("");break;default:if(o)throw new u.FormatError('Invalid style "'.concat(o,'" in PageLabel dictionary.'));m=""}r[v]=c+m;y++}return r}},{key:"pageLayout",get:function get(){var t=this._catDict.get("PageLayout"),r="";if(t instanceof h.Name)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(t instanceof h.Name)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=this._catDict.get("ViewerPreferences");if(!(r instanceof h.Dict))return(0,u.shadow)(this,"viewerPreferences",null);var o,c=null,l=_createForOfIteratorHelper(r.getKeys());try{for(l.s();!(o=l.n()).done;){var d=o.value,g=r.get(d),m=void 0;switch(d){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof g&&(m=g);break;case"NonFullScreenPageMode":if(g instanceof h.Name)switch(g.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":m=g.name;break;default:m="UseNone"}break;case"Direction":if(g instanceof h.Name)switch(g.name){case"L2R":case"R2L":m=g.name;break;default:m="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(g instanceof h.Name)switch(g.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":m=g.name;break;default:m="CropBox"}break;case"PrintScaling":if(g instanceof h.Name)switch(g.name){case"None":case"AppDefault":m=g.name;break;default:m="AppDefault"}break;case"Duplex":if(g instanceof h.Name)switch(g.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":m=g.name;break;default:m="None"}break;case"PrintPageRange":if(Array.isArray(g)&&g.length%2==0){g.every((function(r,o,c){return Number.isInteger(r)&&r>0&&(0===o||r>=c[o-1])&&r<=t.numPages}))&&(m=g)}break;case"NumCopies":Number.isInteger(g)&&g>0&&(m=g);break;default:(0,u.warn)("Ignoring non-standard key in ViewerPreferences: ".concat(d,"."));continue}if(void 0!==m){c||(c=Object.create(null));c[d]=m}else(0,u.warn)('Bad value, for key "'.concat(d,'", in ViewerPreferences: ').concat(g,"."))}}catch(t){l.e(t)}finally{l.f()}return(0,u.shadow)(this,"viewerPreferences",c)}},{key:"openAction",get:function get(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof h.Dict){var o=new h.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 h.Dict&&t.has("EmbeddedFiles")){var o,c=_createForOfIteratorHelper(new d.NameTree(t.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var l=_slicedToArray(o.value,2),g=l[0],m=l[1],y=new v.FileSpec(m,this.xref);r||(r=Object.create(null));r[(0,u.stringToPDFString)(g)]=y.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 h.Dict&&t.has("XFAImages")){var o,c=_createForOfIteratorHelper(new d.NameTree(t.getRaw("XFAImages"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var l=_slicedToArray(o.value,2),g=l[0],m=l[1];r||(r=new h.Dict(this.xref));r.set(g,m)}}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 h.Dict&&(0,h.isName)(o.get("S"),"JavaScript")){var c=o.get("JS");if(c instanceof g.BaseStream)c=c.getString();else if("string"!=typeof c)return;null===r&&(r=new Map);r.set(t,(0,u.stringToPDFString)(c))}}if(t instanceof h.Dict&&t.has("JavaScript")){var o,c=_createForOfIteratorHelper(new d.NameTree(t.getRaw("JavaScript"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var l=_slicedToArray(o.value,2);appendIfJavaScriptDict(l[0],l[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,l.collectActions)(this.xref,this._catDict,u.DocumentActionEventType);if(t){r||(r=Object.create(null));var o,c=_createForOfIteratorHelper(t);try{for(c.s();!(o=c.n()).done;){var h=_slicedToArray(o.value,2),d=h[0],g=h[1];d in r?r[d].push(g):r[d]=[g]}}catch(t){c.e(t)}finally{c.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 c,l=_createForOfIteratorHelper(o);try{for(l.s();!(c=l.n()).done;){var u=c.value;if(u.loadedName===t){u.fallback(r);return}}}catch(t){l.e(t)}finally{l.f()}}))}},{key:"cleanup",value:function cleanup(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,m.clearGlobalCaches)();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,c=_createForOfIteratorHelper(r);try{for(c.s();!(o=c.n()).done;){delete o.value.dict.cacheKey}}catch(t){c.e(t)}finally{c.f()}t.fontCache.clear();t.builtInCMapCache.clear();t.standardFontDataCache.clear()}))}},{key:"getPageDict",value:(r=_asyncToGenerator(c.default.mark((function _callee(t){var r,o,l,d,g,m,y,v,k,_,w,S,C,x,O,T;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:r=[this.toplevelPagesDict];o=new h.RefSet;(l=this._catDict.getRaw("Pages"))instanceof h.Ref&&o.put(l);d=this.xref,g=this.pageKidsCountCache,m=this.pageIndexCache;y=0;case 6:if(!r.length){c.next=67;break}if(!((v=r.pop())instanceof h.Ref)){c.next=34;break}if(!((k=g.get(v))>=0&&y+k<=t)){c.next=13;break}y+=k;return c.abrupt("continue",6);case 13:if(!o.has(v)){c.next=15;break}throw new u.FormatError("Pages tree contains circular reference.");case 15:o.put(v);c.next=18;return d.fetchAsync(v);case 18:if(!((_=c.sent)instanceof h.Dict)){c.next=32;break}if(!((w=_.getRaw("Type"))instanceof h.Ref)){c.next=25;break}c.next=24;return d.fetchAsync(w);case 24:w=c.sent;case 25:if(!(0,h.isName)(w,"Page")&&_.has("Kids")){c.next=32;break}g.has(v)||g.put(v,1);m.has(v)||m.put(v,y);if(y!==t){c.next=30;break}return c.abrupt("return",[_,v]);case 30:y++;return c.abrupt("continue",6);case 32:r.push(_);return c.abrupt("continue",6);case 34:if(v instanceof h.Dict){c.next=36;break}throw new u.FormatError("Page dictionary kid reference points to wrong type of object.");case 36:S=v.objId;if(!((C=v.getRaw("Count"))instanceof h.Ref)){c.next=42;break}c.next=41;return d.fetchAsync(C);case 41:C=c.sent;case 42:if(!(Number.isInteger(C)&&C>=0)){c.next=47;break}S&&!g.has(S)&&g.put(S,C);if(!(y+C<=t)){c.next=47;break}y+=C;return c.abrupt("continue",6);case 47:if(!((x=v.getRaw("Kids"))instanceof h.Ref)){c.next=52;break}c.next=51;return d.fetchAsync(x);case 51:x=c.sent;case 52:if(Array.isArray(x)){c.next=64;break}if(!((O=v.getRaw("Type"))instanceof h.Ref)){c.next=58;break}c.next=57;return d.fetchAsync(O);case 57:O=c.sent;case 58:if(!(0,h.isName)(O,"Page")&&v.has("Kids")){c.next=63;break}if(y!==t){c.next=61;break}return c.abrupt("return",[v,null]);case 61:y++;return c.abrupt("continue",6);case 63:throw new u.FormatError("Page dictionary kids object is not an array.");case 64:for(T=x.length-1;T>=0;T--)r.push(x[T]);c.next=6;break;case 67:throw new Error("Page index ".concat(t," not found."));case 68:case"end":return c.stop()}}),_callee,this)}))),function getPageDict(t){return r.apply(this,arguments)})},{key:"getAllPageDicts",value:(t=_asyncToGenerator(c.default.mark((function _callee2(){var t,r,o,d,g,m,y,v,k,_,w,S,C,x,O,T,E,M=arguments;return c.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:_=function _addPageError(r){if(r instanceof l.XRefEntryException&&!t)throw r;g.set(v++,[r,null])};k=function _addPageDict(t,r){r&&!y.has(r)&&y.put(r,v);g.set(v++,[t,r])};t=M.length>0&&void 0!==M[0]&&M[0];r=[{currentNode:this.toplevelPagesDict,posInKids:0}];o=new h.RefSet;(d=this._catDict.getRaw("Pages"))instanceof h.Ref&&o.put(d);g=new Map,m=this.xref,y=this.pageIndexCache;v=0;case 9:if(!(r.length>0)){c.next=69;break}w=r[r.length-1];S=w.currentNode,C=w.posInKids;if(!((x=S.getRaw("Kids"))instanceof h.Ref)){c.next=24;break}c.prev=14;c.next=17;return m.fetchAsync(x);case 17:x=c.sent;c.next=24;break;case 20:c.prev=20;c.t0=c.catch(14);_(c.t0);return c.abrupt("break",69);case 24:if(Array.isArray(x)){c.next=27;break}_(new u.FormatError("Page dictionary kids object is not an array."));return c.abrupt("break",69);case 27:if(!(C>=x.length)){c.next=30;break}r.pop();return c.abrupt("continue",9);case 30:O=x[C];T=void 0;if(!(O instanceof h.Ref)){c.next=49;break}if(!o.has(O)){c.next=36;break}_(new u.FormatError("Pages tree contains circular reference."));return c.abrupt("break",69);case 36:o.put(O);c.prev=37;c.next=40;return m.fetchAsync(O);case 40:T=c.sent;c.next=47;break;case 43:c.prev=43;c.t1=c.catch(37);_(c.t1);return c.abrupt("break",69);case 47:c.next=50;break;case 49:T=O;case 50:if(T instanceof h.Dict){c.next=53;break}_(new u.FormatError("Page dictionary kid reference points to wrong type of object."));return c.abrupt("break",69);case 53:if(!((E=T.getRaw("Type"))instanceof h.Ref)){c.next=65;break}c.prev=55;c.next=58;return m.fetchAsync(E);case 58:E=c.sent;c.next=65;break;case 61:c.prev=61;c.t2=c.catch(55);_(c.t2);return c.abrupt("break",69);case 65:(0,h.isName)(E,"Page")||!T.has("Kids")?k(T,O instanceof h.Ref?O:null):r.push({currentNode:T,posInKids:0});w.posInKids++;c.next=9;break;case 69:return c.abrupt("return",g);case 70:case"end":return c.stop()}}),_callee2,this,[[14,20],[37,43],[55,61]])}))),function getAllPageDicts(){return t.apply(this,arguments)})},{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 l=0;return function next(o){return function pagesBeforeRef(r){var o,l=0;return c.fetchAsync(r).then((function(c){if((0,h.isRefsEqual)(r,t)&&!(0,h.isDict)(c,"Page")&&!(c instanceof h.Dict&&!c.has("Type")&&c.has("Contents")))throw new u.FormatError("The reference does not point to a /Page dictionary.");if(!c)return null;if(!(c instanceof h.Dict))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(!(t instanceof h.Dict))throw new u.FormatError("Parent must be a dictionary.");return t.getAsync("Kids")})).then((function(t){if(!t)return null;for(var d=[],g=!1,m=0,y=t.length;m<y;m++){var v=t[m];if(!(v instanceof h.Ref))throw new u.FormatError("Kid must be a reference.");if((0,h.isRefsEqual)(v,r)){g=!0;break}d.push(c.fetchAsync(v).then((function(t){if(!(t instanceof h.Dict))throw new u.FormatError("Kid node must be a dictionary.");t.has("Count")?l+=t.get("Count"):l++})))}if(!g)throw new u.FormatError("Kid reference not found in parent's kids.");return Promise.all(d).then((function(){return[l,o]}))}))}(o).then((function(o){if(!o){r.pageIndexCache.put(t,l);return l}var c=_slicedToArray(o,2),u=c[0],h=c[1];l+=u;return next(h)}))}(t)}}],[{key:"parseDestDictionary",value:function parseDestDictionary(t){var r=t.destDict;if(r instanceof h.Dict){var o=t.resultObj;if("object"===_typeof(o)){var c,d,m=t.docBaseUrl||null,y=r.get("A");y instanceof h.Dict||(r.has("Dest")?y=r.get("Dest"):(y=r.get("AA"))instanceof h.Dict&&(y.has("D")?y=y.get("D"):y.has("U")&&(y=y.get("U"))));if(y instanceof h.Dict){var v=y.get("S");if(!(v instanceof h.Name)){(0,u.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}var k=v.name;switch(k){case"ResetForm":var _,w=y.get("Flags"),S=0==(1&("number"==typeof w?w:0)),C=[],x=[],O=_createForOfIteratorHelper(y.get("Fields")||[]);try{for(O.s();!(_=O.n()).done;){var T=_.value;T instanceof h.Ref?x.push(T.toString()):"string"==typeof T&&C.push((0,u.stringToPDFString)(T))}}catch(t){O.e(t)}finally{O.f()}o.resetForm={fields:C,refs:x,include:S};break;case"URI":(c=y.get("URI"))instanceof h.Name&&(c="/"+c.name);break;case"GoTo":d=y.get("D");break;case"Launch":case"GoToR":var E=y.get("F");E instanceof h.Dict?c=E.get("F")||null:"string"==typeof E&&(c=E);var M=y.get("D");if(M){M instanceof h.Name&&(M=M.name);if("string"==typeof c){var R=c.split("#")[0];"string"==typeof M?c=R+"#"+M:Array.isArray(M)&&(c=R+"#"+JSON.stringify(M))}}var j=y.get("NewWindow");"boolean"==typeof j&&(o.newWindow=j);break;case"Named":var D=y.get("N");D instanceof h.Name&&(o.action=D.name);break;case"JavaScript":var N,L=y.get("JS");L instanceof g.BaseStream?N=L.getString():"string"==typeof L&&(N=L);var U=N&&(0,l.recoverJsURL)((0,u.stringToPDFString)(N));if(U){c=U.url;o.newWindow=U.newWindow;break}default:if("JavaScript"===k||"SubmitForm"===k)break;(0,u.warn)('parseDestDictionary - unsupported action: "'.concat(k,'".'))}}else r.has("Dest")&&(d=r.get("Dest"));if("string"==typeof c){var H=(0,u.createValidAbsoluteUrl)(c,m,{addDefaultProtocol:!0,tryConvertEncoding:!0});H&&(o.url=H.href);o.unsafeUrl=c}if(d){d instanceof h.Name&&(d=d.name);("string"==typeof d||Array.isArray(d))&&(o.dest=d)}}else(0,u.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,u.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]);var t,r;return Catalog}();r.Catalog=S},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.NumberTree=r.NameTree=void 0;var c=o(147),l=o(4);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}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}_createClass(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(h instanceof c.Dict)if(h.has("Kids"))for(var d=h.get("Kids"),g=0,m=d.length;g<m;g++){var y=d[g];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 k=0,_=v.length;k<_;k+=2)t.set(r.fetchIfRef(v[k]),r.fetchIfRef(v[k+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 g=h+d>>1,m=r.fetchIfRef(u[g]).get("Limits");if(t<r.fetchIfRef(m[0]))d=g-1;else{if(!(t>r.fetchIfRef(m[1]))){o=r.fetchIfRef(u[g]);break}h=g+1}}if(h>d)return null}var y=o.get(this._type);if(Array.isArray(y))for(var v=0,k=y.length-2;v<=k;){var _=v+k>>1,w=_+(1&_),S=r.fetchIfRef(y[w]);if(t<S)k=w-2;else{if(!(t>S))return r.fetchIfRef(y[w+1]);v=w+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 _createClass(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 _createClass(NumberTree)}(u);r.NumberTree=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.clearGlobalCaches=function clearGlobalCaches(){(0,c.clearPrimitiveCaches)();(0,l.clearUnicodeCaches)()};var c=o(147),l=o(163)},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.FileSpec=void 0;var c=o(4),l=o(151),u=o(147);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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 h=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 instanceof u.Dict){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);Object.defineProperty(t,"prototype",{writable:!1});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 instanceof l.BaseStream?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=h},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MetadataParser=void 0;var c=o(211);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var l=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 c.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);Object.defineProperty(t,"prototype",{writable:!1});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,c){return String.fromCharCode(64*r+8*o+1*c)})).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."))})),c=[],l=0,u=o.length;l<u;l+=2){var h=256*o.charCodeAt(l)+o.charCodeAt(l+1);h>=32&&h<127&&60!==h&&62!==h&&38!==h?c.push(String.fromCharCode(h)):c.push("&#x"+(65536+h).toString(16).substring(1)+";")}return">"+c.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,c=_createForOfIteratorHelper(r.childNodes);try{for(c.s();!(o=c.n()).done;){var l=o.value;if("rdf:description"===l.nodeName){var u,h=_createForOfIteratorHelper(l.childNodes);try{for(h.s();!(u=h.n()).done;){var d=u.value,g=d.nodeName;switch(g){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(d);continue}this._metadataMap.set(g,d.textContent.trim())}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){c.e(t)}finally{c.f()}}}},{key:"serializable",get:function get(){return{parsedData:this._metadataMap,rawData:this._data}}}]);return MetadataParser}();r.MetadataParser=l},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.XMLParserErrorCode=r.XMLParserBase=r.SimpleXMLParser=r.SimpleDOMNode=void 0;var c=o(150);function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var l={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};r.XMLParserErrorCode=l;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=[],c=r;function skipWs(){for(;c<t.length&&isWhitespace(t,c);)++c}for(;c<t.length&&!isWhitespace(t,c)&&">"!==t[c]&&"/"!==t[c];)++c;var l=t.substring(r,c);skipWs();for(;c<t.length&&">"!==t[c]&&"/"!==t[c]&&"?"!==t[c];){skipWs();for(var u,h="";c<t.length&&!isWhitespace(t,c)&&"="!==t[c];){h+=t[c];++c}skipWs();if("="!==t[c])return null;++c;skipWs();var d=t[c];if('"'!==d&&"'"!==d)return null;var g=t.indexOf(d,++c);if(g<0)return null;u=t.substring(c,g);o.push({name:h,value:this._resolveEntities(u)});c=g+1;skipWs()}return{name:l,attributes:o,parsed:c-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 c=t.substring(r,o);!function skipWs(){for(;o<t.length&&isWhitespace(t,o);)++o}();for(var l=o;o<t.length&&("?"!==t[o]||">"!==t[o+1]);)++o;return{name:c,value:t.substring(l,o),parsed:o-r}}},{key:"parseXml",value:function parseXml(t){for(var r=0;r<t.length;){var o=r;if("<"===t[r]){var c=void 0;switch(t[++o]){case"/":++o;if((c=t.indexOf(">",o))<0){this.onError(l.UnterminatedElement);return}this.onEndElement(t.substring(o,c));o=c+1;break;case"?":++o;var u=this._parseProcessingInstruction(t,o);if("?>"!==t.substring(o+u.parsed,o+u.parsed+2)){this.onError(l.UnterminatedXmlDeclaration);return}this.onPi(u.name,u.value);o+=u.parsed+2;break;case"!":if("--"===t.substring(o+1,o+3)){if((c=t.indexOf("--\x3e",o+3))<0){this.onError(l.UnterminatedComment);return}this.onComment(t.substring(o+3,c));o=c+3}else if("[CDATA["===t.substring(o+1,o+8)){if((c=t.indexOf("]]>",o+8))<0){this.onError(l.UnterminatedCdat);return}this.onCdata(t.substring(o+8,c));o=c+3}else{if("DOCTYPE"!==t.substring(o+1,o+8)){this.onError(l.MalformedElement);return}var h=t.indexOf("[",o+8),d=!1;if((c=t.indexOf(">",o+8))<0){this.onError(l.UnterminatedDoctypeDeclaration);return}if(h>0&&c>h){if((c=t.indexOf("]>",o+8))<0){this.onError(l.UnterminatedDoctypeDeclaration);return}d=!0}var g=t.substring(o+8,c+(d?1:0));this.onDoctype(g);o=c+(d?2:1)}break;default:var m=this._parseContent(t,o);if(null===m){this.onError(l.MalformedElement);return}var y=!1;if("/>"===t.substring(o+m.parsed,o+m.parsed+2))y=!0;else if(">"!==t.substring(o+m.parsed,o+m.parsed+1)){this.onError(l.UnterminatedElement);return}this.onBeginElement(m.name,m.attributes,y);o+=m.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],c=[],l=this;;){if(o.name===l.nodeName){if(0!==o.pos){if(0===c.length)return null;var u,h=0,d=_createForOfIteratorHelper(_slicedToArray(c.pop(),1)[0].childNodes);try{for(d.s();!(u=d.n()).done;){var g=u.value;if(o.name===g.nodeName){if(h===o.pos)return g.searchNode(t,r+1);h++}}}catch(t){d.e(t)}finally{d.f()}return l.searchNode(t,r+1)}var m=l.searchNode(t,r+1);if(null!==m)return m}if(l.childNodes&&0!==l.childNodes.length){c.push([l,0]);l=l.childNodes[0]}else{if(0===c.length)return null;for(;0!==c.length;){var y=_slicedToArray(c.pop(),2),v=y[0],k=y[1]+1;if(k<v.childNodes.length){c.push([v,k]);l=v.childNodes[k];break}}if(0===c.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 l=r.value;t.push(" ".concat(l.name,'="').concat((0,c.encodeToXmlString)(l.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,c.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):t.push("/>")}else t.push((0,c.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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(SimpleXMLParser,t);var r=_createSuper(SimpleXMLParser);function SimpleXMLParser(t){var o,c=t.hasAttributes,u=void 0!==c&&c,h=t.lowerCaseName,d=void 0!==h&&h;_classCallCheck(this,SimpleXMLParser);(o=r.call(this))._currentFragment=null;o._stack=null;o._errorCode=l.NoError;o._hasAttributes=u;o._lowerCaseName=d;return o}_createClass(SimpleXMLParser,[{key:"parseFromString",value:function parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=l.NoError;this.parseXml(t);if(this._errorCode===l.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 c=new h(t);c.childNodes=[];this._hasAttributes&&(c.attributes=r);this._currentFragment.push(c);if(!o){this._stack.push(this._currentFragment);this._currentFragment=c.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,c=r.childNodes.length;o<c;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 c=o(147),l=o(4),u=o(207);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var h="PAGE_CONTENT",d="STREAM_CONTENT",g="OBJECT",m="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");r instanceof c.Dict&&r.forEach((function(r,o){o instanceof c.Name&&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=t instanceof c.Name?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");r instanceof c.Ref&&(t=r.toString());var o=this.dict.get("K");if(Array.isArray(o)){var l,u=_createForOfIteratorHelper(o);try{for(u.s();!(l=u.n()).done;){var h=l.value,d=this.parseKid(t,h);d&&this.kids.push(d)}}catch(t){u.e(t)}finally{u.f()}}else{var g=this.parseKid(t,o);g&&this.kids.push(g)}}},{key:"parseKid",value:function parseKid(t,r){if(Number.isInteger(r))return this.tree.pageDict.objId!==t?null:new k({type:h,mcid:r,pageObjId:t});var o=null;r instanceof c.Ref?o=this.dict.xref.fetch(r):r instanceof c.Dict&&(o=r);if(!o)return null;var l=o.getRaw("Pg");l instanceof c.Ref&&(t=l.toString());var u=o.get("Type")instanceof c.Name?o.get("Type").name:null;return"MCR"===u?this.tree.pageDict.objId!==t?null:new k({type:d,refObjId:o.getRaw("Stm")instanceof c.Ref?o.getRaw("Stm").toString():null,pageObjId:t,mcid:o.get("MCID")}):"OBJR"===u?this.tree.pageDict.objId!==t?null:new k({type:g,refObjId:o.getRaw("Obj")instanceof c.Ref?o.getRaw("Obj").toString():null,pageObjId:t}):new k({type:m,dict:o})}}]);return StructElementNode}(),k=_createClass((function StructElement(t){var r=t.type,o=t.dict,c=void 0===o?null:o,l=t.mcid,u=void 0===l?null:l,h=t.pageObjId,d=void 0===h?null:h,g=t.refObjId,m=void 0===g?null:g;_classCallCheck(this,StructElement);this.type=r;this.dict=c;this.mcid=u;this.pageObjId=d;this.refObjId=m;this.parentNode=null})),_=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 l,h=new Map,d=_createForOfIteratorHelper(o);try{for(d.s();!(l=d.n()).done;){var g=l.value;g instanceof c.Ref&&this.addNode(this.rootDict.xref.fetch(g),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,l.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,c.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 g,y=!1,k=_createForOfIteratorHelper(d.kids);try{for(k.s();!(g=k.n()).done;){var _=g.value;if(_.type===m&&_.dict===t){_.parentNode=u;y=!0}}}catch(t){k.e(t)}finally{k.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(o instanceof c.Dict){if(o.objId!==t.objId)return!1;this.nodes[0]=r;return!0}if(!Array.isArray(o))return!0;for(var l=!1,u=0;u<o.length;u++){var h=o[u];if(h&&h.toString()===t.objId){this.nodes[u]=r;l=!0}}return l}},{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,l.warn)("StructTree too deep to be fully serialized.");else{var c=Object.create(null);c.role=t.role;c.children=[];r.children.push(c);var u=t.dict.get("Alt");"string"==typeof u&&(c.alt=(0,l.stringToPDFString)(u));var y=t.dict.get("Lang");"string"==typeof y&&(c.lang=(0,l.stringToPDFString)(y));var v,k=_createForOfIteratorHelper(t.kids);try{for(k.s();!(v=k.n()).done;){var _=v.value,w=_.type===m?_.parentNode:null;w?nodeToSerializable(w,c,o+1):_.type===h||_.type===d?c.children.push({type:"content",id:"page".concat(_.pageObjId,"_mcid").concat(_.mcid)}):_.type===g&&c.children.push({type:"object",id:_.refObjId})}}catch(t){k.e(t)}finally{k.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 c=r.value;c&&nodeToSerializable(c,t)}}catch(t){o.e(t)}finally{o.f()}return t}}]);return StructTreePage}();r.StructTreePage=_},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ObjectLoader=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(147),u=o(151),h=o(150),d=o(4);function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function addChildren(t,r){if(t instanceof l.Dict)t=t.getRawValues();else if(t instanceof u.BaseStream)t=t.dict.getRawValues();else if(!Array.isArray(t))return;var o,c,h=_createForOfIteratorHelper(t);try{for(h.s();!(o=h.n()).done;){var d=o.value;((c=d)instanceof l.Ref||c instanceof l.Dict||c instanceof u.BaseStream||Array.isArray(c))&&r.push(d)}}catch(t){h.e(t)}finally{h.f()}}var g=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);Object.defineProperty(t,"prototype",{writable:!1});return t}(ObjectLoader,[{key:"load",value:(r=_asyncToGenerator(c.default.mark((function _callee(){var t,r,o,u,h,d;return c.default.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:if(!this.xref.stream.isDataLoaded){c.next=2;break}return c.abrupt("return",void 0);case 2:t=this.keys,r=this.dict;this.refSet=new l.RefSet;o=[];for(u=0,h=t.length;u<h;u++)void 0!==(d=r.getRaw(t[u]))&&o.push(d);return c.abrupt("return",this._walk(o));case 7:case"end":return c.stop()}}),_callee,this)}))),function load(){return r.apply(this,arguments)})},{key:"_walk",value:(t=_asyncToGenerator(c.default.mark((function _callee2(t){var r,o,g,m,y,v,k,_,w,S,C,x;return c.default.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:r=[];o=[];case 2:if(!t.length){c.next=48;break}if(!((g=t.pop())instanceof l.Ref)){c.next=21;break}if(!this.refSet.has(g)){c.next=7;break}return c.abrupt("continue",2);case 7:c.prev=7;this.refSet.put(g);g=this.xref.fetch(g);c.next=21;break;case 12:c.prev=12;c.t0=c.catch(7);if(c.t0 instanceof h.MissingDataException){c.next=19;break}(0,d.warn)('ObjectLoader._walk - requesting all data: "'.concat(c.t0,'".'));this.refSet=null;m=this.xref.stream.manager;return c.abrupt("return",m.requestAllChunks());case 19:r.push(g);o.push({begin:c.t0.begin,end:c.t0.end});case 21:if(!(g instanceof u.BaseStream)){c.next=45;break}if(!(y=g.getBaseStreams())){c.next=45;break}v=!1;k=_createForOfIteratorHelper(y);c.prev=26;k.s();case 28:if((_=k.n()).done){c.next=36;break}if(!(w=_.value).isDataLoaded){c.next=32;break}return c.abrupt("continue",34);case 32:v=!0;o.push({begin:w.start,end:w.end});case 34:c.next=28;break;case 36:c.next=41;break;case 38:c.prev=38;c.t1=c.catch(26);k.e(c.t1);case 41:c.prev=41;k.f();return c.finish(41);case 44:v&&r.push(g);case 45:addChildren(g,t);c.next=2;break;case 48:if(!o.length){c.next=54;break}c.next=51;return this.xref.stream.manager.requestRanges(o);case 51:S=_createForOfIteratorHelper(r);try{for(S.s();!(C=S.n()).done;)(x=C.value)instanceof l.Ref&&this.refSet.remove(x)}catch(t){S.e(t)}finally{S.f()}return c.abrupt("return",this._walk(r));case 54:this.refSet=null;return c.abrupt("return",void 0);case 56:case"end":return c.stop()}}),_callee2,this,[[7,12],[26,38,41,44]])}))),function _walk(r){return t.apply(this,arguments)})}]);var t,r;return ObjectLoader}();r.ObjectLoader=g},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.incrementalUpdate=function incrementalUpdate(t){var r=t.originalData,o=t.xrefInfo,d=t.newRefs,m=t.xref,y=void 0===m?null:m,v=t.hasXfa,k=void 0!==v&&v,_=t.xfaDatasetsRef,w=void 0===_?null:_,S=t.hasXfaDatasetsEntry,C=void 0!==S&&S,x=t.acroFormRef,O=void 0===x?null:x,T=t.acroForm,E=void 0===T?null:T,M=t.xfaData,R=void 0===M?null:M;k&&function updateXFA(t){var r=t.xfaData,o=t.xfaDatasetsRef,l=t.hasXfaDatasetsEntry,d=t.acroFormRef,g=t.acroForm,m=t.newRefs,y=t.xref;t.xrefInfo;if(null===y)return;if(!l){if(!d){(0,c.warn)("XFA - Cannot save it");return}var v=g.get("XFA"),k=v.slice();k.splice(2,0,"datasets");k.splice(3,0,o);g.set("XFA",k);var _=y.encrypt,w=null;_&&(w=_.createCipherTransform(d.num,d.gen));var S=["".concat(d.num," ").concat(d.gen," obj\n")];writeDict(g,S,w);S.push("\n");g.set("XFA",v);m.push({ref:d,data:S.join("")})}if(null===r){r=function writeXFADataForAcroform(t,r){var o,l=new h.SimpleXMLParser({hasAttributes:!0}).parseFromString(t),d=_createForOfIteratorHelper(r);try{for(d.s();!(o=d.n()).done;){var g=o.value.xfa;if(g){var m=g.path,y=g.value;if(m){var v=l.documentElement.searchNode((0,u.parseXFAPath)(m),0);v?v.childNodes=[new h.SimpleDOMNode("#text",y)]:(0,c.warn)("Node not found for path: ".concat(m))}}}}catch(t){d.e(t)}finally{d.f()}var k=[];l.documentElement.dump(k);return k.join("")}(y.fetchIfRef(o).getString(),m)}var C=y.encrypt;if(C){r=C.createCipherTransform(o.num,o.gen).encryptString(r)}var x="".concat(o.num," ").concat(o.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(r.length,">>\nstream\n")+r+"\nendstream\nendobj\n";m.push({ref:o,data:x})}({xfaData:R,xfaDatasetsRef:w,hasXfaDatasetsEntry:C,acroFormRef:O,acroForm:E,newRefs:d,xref:y,xrefInfo:o});var j,D,N=new l.Dict(null),L=o.newRef,U=r[r.length-1];if(10===U||13===U){j=[];D=r.length}else{j=["\n"];D=r.length+1}N.set("Size",L.num+1);N.set("Prev",o.startXRef);N.set("Type",l.Name.get("XRef"));null!==o.rootRef&&N.set("Root",o.rootRef);null!==o.infoRef&&N.set("Info",o.infoRef);null!==o.encryptRef&&N.set("Encrypt",o.encryptRef);d.push({ref:L,data:""});d=d.sort((function(t,r){return t.ref.num-r.ref.num}));var H,$=[[0,1,65535]],X=[0,1],q=0,G=_createForOfIteratorHelper(d);try{for(G.s();!(H=G.n()).done;){var z=H.value,W=z.ref,V=z.data;q=Math.max(q,D);$.push([1,D,Math.min(W.gen,65535)]);D+=V.length;X.push(W.num,1);j.push(V)}}catch(t){G.e(t)}finally{G.f()}N.set("Index",X);if(Array.isArray(o.fileIds)&&o.fileIds.length>0){var K=function computeMD5(t,r){for(var o=Math.floor(Date.now()/1e3),l=r.filename||"",u=[o.toString(),l,t.toString()],h=u.reduce((function(t,r){return t+r.length}),0),d=0,m=Object.values(r.info);d<m.length;d++){var y=m[d];u.push(y);h+=y.length}for(var v=new Uint8Array(h),k=0,_=0,w=u;_<w.length;_++){var S=w[_];writeString(S,k,v);k+=S.length}return(0,c.bytesToString)((0,g.calculateMD5)(v))}(D,o);N.set("ID",[o.fileIds[0],K])}var Y=[1,Math.ceil(Math.log2(q)/8),2],J=(Y[0]+Y[1]+Y[2])*$.length;N.set("W",Y);N.set("Length",J);j.push("".concat(L.num," ").concat(L.gen," obj\n"));writeDict(N,j,null);j.push(" stream\n");var Z=j.reduce((function(t,r){return t+r.length}),0),Q="\nendstream\nendobj\nstartxref\n".concat(D,"\n%%EOF\n"),ee=new Uint8Array(r.length+Z+J+Q.length);ee.set(r);var te,re=r.length,ae=_createForOfIteratorHelper(j);try{for(ae.s();!(te=ae.n()).done;){var ne=te.value;writeString(ne,re,ee);re+=ne.length}}catch(t){ae.e(t)}finally{ae.f()}for(var ie=0,oe=$;ie<oe.length;ie++){var se=(fe=oe[ie],he=3,function _arrayWithHoles(t){if(Array.isArray(t))return t}(fe)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(fe,he)||_unsupportedIterableToArray(fe,he)||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.")}()),ce=se[0],le=se[1],ue=se[2];re=writeInt(ce,Y[0],re,ee);re=writeInt(le,Y[1],re,ee);re=writeInt(ue,Y[2],re,ee)}var fe,he;writeString(Q,re,ee);return ee};r.writeDict=writeDict;var c=o(4),l=o(147),u=o(150),h=o(211),d=o(151),g=o(215);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function writeDict(t,r,o){r.push("<<");var c,l=_createForOfIteratorHelper(t.getKeys());try{for(l.s();!(c=l.n()).done;){var h=c.value;r.push(" /".concat((0,u.escapePDFName)(h)," "));writeValue(t.getRaw(h),r,o)}}catch(t){l.e(t)}finally{l.f()}r.push(">>")}function writeValue(t,r,o){if(t instanceof l.Name)r.push("/".concat((0,u.escapePDFName)(t.name)));else if(t instanceof l.Ref)r.push("".concat(t.num," ").concat(t.gen," R"));else if(Array.isArray(t))!function writeArray(t,r,o){r.push("[");var c,l=!0,u=_createForOfIteratorHelper(t);try{for(u.s();!(c=u.n()).done;){var h=c.value;l?l=!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,c.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)):"boolean"==typeof t?r.push(t.toString()):t instanceof l.Dict?writeDict(t,r,o):t instanceof d.BaseStream?function writeStream(t,r,o){writeDict(t.dict,r,o);r.push(" stream\n");var c=t.getString();null!==o&&(c=o.encryptString(c));r.push(c,"\nendstream\n")}(t,r,o):null===t?r.push("null"):(0,c.warn)("Unhandled value in writer: ".concat(_typeof(t),", please file a bug."))}function writeInt(t,r,o,c){for(var l=r+o-1;l>o-1;l--){c[l]=255&t;t>>=8}return o+r}function writeString(t,r,o){for(var c=0,l=t.length;c<l;c++)o[r+c]=255&t.charCodeAt(c)}},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.calculateSHA256=r.calculateMD5=r.PDF20=r.PDF17=r.CipherTransformFactory=r.ARCFourCipher=r.AES256Cipher=r.AES128Cipher=void 0;r.calculateSHA384=calculateSHA384;r.calculateSHA512=void 0;var c=o(4),l=o(147),u=o(216);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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,c=0;c<256;++c)r[c]=c;for(var l=0,u=0;l<256;++l){var h=r[l];u=u+h+t[l%o]&255;r[l]=r[u];r[u]=h}this.s=r}_createClass(ARCFourCipher,[{key:"encryptBlock",value:function encryptBlock(t){for(var r=this.a,o=this.b,c=this.s,l=t.length,u=new Uint8Array(l),h=0;h<l;++h){var d=c[r=r+1&255],g=c[o=o+d&255];c[r]=g;c[o]=d;u[h]=t[h]^c[d+g&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,c,l){var u,h,d=1732584193,g=-271733879,m=-1732584194,y=271733878,v=l+72&-64,k=new Uint8Array(v);for(u=0;u<l;++u)k[u]=o[c++];k[u++]=128;for(var _=v-8;u<_;)k[u++]=0;k[u++]=l<<3&255;k[u++]=l>>5&255;k[u++]=l>>13&255;k[u++]=l>>21&255;k[u++]=l>>>29&255;k[u++]=0;k[u++]=0;k[u++]=0;var w=new Int32Array(16);for(u=0;u<v;){for(h=0;h<16;++h,u+=4)w[h]=k[u]|k[u+1]<<8|k[u+2]<<16|k[u+3]<<24;var S=d,C=g,x=m,O=y,T=void 0,E=void 0;for(h=0;h<64;++h){if(h<16){T=C&x|~C&O;E=h}else if(h<32){T=O&C|~O&x;E=5*h+1&15}else if(h<48){T=C^x^O;E=3*h+5&15}else{T=x^(C|~O);E=7*h&15}var M=O,R=S+T+r[h]+w[E]|0,j=t[h];O=x;x=C;C=C+(R<<j|R>>>32-j)|0;S=M}d=d+S|0;g=g+C|0;m=m+x|0;y=y+O|0}return new Uint8Array([255&d,d>>8&255,d>>16&255,d>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255,255&m,m>>8&255,m>>16&255,m>>>24&255,255&y,y>>8&255,y>>16&255,y>>>24&255])}}();r.calculateMD5=d;var g=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}(),m=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,c){var l,u,h=1779033703,d=3144134277,g=1013904242,m=2773480762,y=1359893119,v=2600822924,k=528734635,_=1541459225,w=64*Math.ceil((c+9)/64),S=new Uint8Array(w);for(l=0;l<c;++l)S[l]=r[o++];S[l++]=128;for(var C=w-8;l<C;)S[l++]=0;S[l++]=0;S[l++]=0;S[l++]=0;S[l++]=c>>>29&255;S[l++]=c>>21&255;S[l++]=c>>13&255;S[l++]=c>>5&255;S[l++]=c<<3&255;var x,O=new Uint32Array(64);for(l=0;l<w;){for(u=0;u<16;++u){O[u]=S[l]<<24|S[l+1]<<16|S[l+2]<<8|S[l+3];l+=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,E=d,M=g,R=m,j=y,D=v,N=k,L=_,U=void 0,H=void 0;for(u=0;u<64;++u){U=L+sigmaPrime(j)+ch(j,D,N)+t[u]+O[u];H=sigma(T)+maj(T,E,M);L=N;N=D;D=j;j=R+U|0;R=M;M=E;E=T;T=U+H|0}h=h+T|0;d=d+E|0;g=g+M|0;m=m+R|0;y=y+j|0;v=v+D|0;k=k+N|0;_=_+L|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,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,y>>24&255,y>>16&255,y>>8&255,255&y,v>>24&255,v>>16&255,v>>8&255,255&v,k>>24&255,k>>16&255,k>>8&255,255&k,_>>24&255,_>>16&255,_>>8&255,255&_])}}();r.calculateSHA256=m;var y=function calculateSHA512Closure(){function ch(t,r,o,c,l){t.assign(r);t.and(o);l.assign(r);l.not();l.and(c);t.xor(l)}function maj(t,r,o,c,l){t.assign(r);t.and(o);l.assign(r);l.and(c);t.xor(l);l.assign(o);l.and(c);t.xor(l)}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 g(1116352408,3609767458),new g(1899447441,602891725),new g(3049323471,3964484399),new g(3921009573,2173295548),new g(961987163,4081628472),new g(1508970993,3053834265),new g(2453635748,2937671579),new g(2870763221,3664609560),new g(3624381080,2734883394),new g(310598401,1164996542),new g(607225278,1323610764),new g(1426881987,3590304994),new g(1925078388,4068182383),new g(2162078206,991336113),new g(2614888103,633803317),new g(3248222580,3479774868),new g(3835390401,2666613458),new g(4022224774,944711139),new g(264347078,2341262773),new g(604807628,2007800933),new g(770255983,1495990901),new g(1249150122,1856431235),new g(1555081692,3175218132),new g(1996064986,2198950837),new g(2554220882,3999719339),new g(2821834349,766784016),new g(2952996808,2566594879),new g(3210313671,3203337956),new g(3336571891,1034457026),new g(3584528711,2466948901),new g(113926993,3758326383),new g(338241895,168717936),new g(666307205,1188179964),new g(773529912,1546045734),new g(1294757372,1522805485),new g(1396182291,2643833823),new g(1695183700,2343527390),new g(1986661051,1014477480),new g(2177026350,1206759142),new g(2456956037,344077627),new g(2730485921,1290863460),new g(2820302411,3158454273),new g(3259730800,3505952657),new g(3345764771,106217008),new g(3516065817,3606008344),new g(3600352804,1432725776),new g(4094571909,1467031594),new g(275423344,851169720),new g(430227734,3100823752),new g(506948616,1363258195),new g(659060556,3750685593),new g(883997877,3785050280),new g(958139571,3318307427),new g(1322822218,3812723403),new g(1537002063,2003034995),new g(1747873779,3602036899),new g(1955562222,1575990012),new g(2024104815,1125592928),new g(2227730452,2716904306),new g(2361852424,442776044),new g(2428436474,593698344),new g(2756734187,3733110249),new g(3204031479,2999351573),new g(3329325298,3815920427),new g(3391569614,3928383900),new g(3515267271,566280711),new g(3940187606,3454069534),new g(4118630271,4000239992),new g(116418474,1914138554),new g(174292421,2731055270),new g(289380356,3203993006),new g(460393269,320620315),new g(685471733,587496836),new g(852142971,1086792851),new g(1017036298,365543100),new g(1126000580,2618297676),new g(1288033470,3409855158),new g(1501505948,4234509866),new g(1607167915,987167468),new g(1816402316,1246189591)];return function hash(r,o,c){var l,u,h,d,m,y,v,k,_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(_){l=new g(3418070365,3238371032);u=new g(1654270250,914150663);h=new g(2438529370,812702999);d=new g(355462360,4144912697);m=new g(1731405415,4290775857);y=new g(2394180231,1750603025);v=new g(3675008525,1694076839);k=new g(1203062813,3204075428)}else{l=new g(1779033703,4089235720);u=new g(3144134277,2227873595);h=new g(1013904242,4271175723);d=new g(2773480762,1595750129);m=new g(1359893119,2917565137);y=new g(2600822924,725511199);v=new g(528734635,4215389547);k=new g(1541459225,327033209)}var w,S,C=128*Math.ceil((c+17)/128),x=new Uint8Array(C);for(w=0;w<c;++w)x[w]=r[o++];x[w++]=128;for(var O=C-16;w<O;)x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=0;x[w++]=c>>>29&255;x[w++]=c>>21&255;x[w++]=c>>13&255;x[w++]=c>>5&255;x[w++]=c<<3&255;var T=new Array(80);for(w=0;w<80;w++)T[w]=new g(0,0);var E,M,R=new g(0,0),j=new g(0,0),D=new g(0,0),N=new g(0,0),L=new g(0,0),U=new g(0,0),H=new g(0,0),$=new g(0,0),X=new g(0,0),q=new g(0,0),G=new g(0,0),z=new g(0,0);for(w=0;w<C;){for(S=0;S<16;++S){T[S].high=x[w]<<24|x[w+1]<<16|x[w+2]<<8|x[w+3];T[S].low=x[w+4]<<24|x[w+5]<<16|x[w+6]<<8|x[w+7];w+=8}for(S=16;S<80;++S){littleSigmaPrime(E=T[S],T[S-2],z);E.add(T[S-7]);littleSigma(G,T[S-15],z);E.add(G);E.add(T[S-16])}R.assign(l);j.assign(u);D.assign(h);N.assign(d);L.assign(m);U.assign(y);H.assign(v);$.assign(k);for(S=0;S<80;++S){X.assign($);sigmaPrime(G,L,z);X.add(G);ch(G,L,U,H,z);X.add(G);X.add(t[S]);X.add(T[S]);sigma(q,R,z);maj(G,R,j,D,z);q.add(G);E=$;$=H;H=U;U=L;N.add(X);L=N;N=D;D=j;j=R;E.assign(X);E.add(q);R=E}l.add(R);u.add(j);h.add(D);d.add(N);m.add(L);y.add(U);v.add(H);k.add($)}if(_){M=new Uint8Array(48);l.copyTo(M,0);u.copyTo(M,8);h.copyTo(M,16);d.copyTo(M,24);m.copyTo(M,32);y.copyTo(M,40)}else{M=new Uint8Array(64);l.copyTo(M,0);u.copyTo(M,8);h.copyTo(M,16);d.copyTo(M,24);m.copyTo(M,32);y.copyTo(M,40);v.copyTo(M,48);k.copyTo(M,56)}return M}}();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}(),k=function(){function AESBaseCipher(){_classCallCheck(this,AESBaseCipher);this.constructor===AESBaseCipher&&(0,c.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,c.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function _decrypt(t,r){var o,c,l,u=new Uint8Array(16);u.set(t);for(var h=0,d=this._keySize;h<16;++h,++d)u[h]^=r[d];for(var g=this._cyclesOfRepetition-1;g>=1;--g){o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];c=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=c;o=u[15];c=u[11];l=u[7];u[15]=u[3];u[11]=o;u[7]=c;u[3]=l;for(var m=0;m<16;++m)u[m]=this._inv_s[u[m]];for(var y=0,v=16*g;y<16;++y,++v)u[y]^=r[v];for(var k=0;k<16;k+=4){var _=this._mix[u[k]],w=this._mix[u[k+1]],S=this._mix[u[k+2]],C=this._mix[u[k+3]];o=_^w>>>8^w<<24^S>>>16^S<<16^C>>>24^C<<8;u[k]=o>>>24&255;u[k+1]=o>>16&255;u[k+2]=o>>8&255;u[k+3]=255&o}}o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];c=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=c;o=u[15];c=u[11];l=u[7];u[15]=u[3];u[11]=o;u[7]=c;u[3]=l;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,c,l,u=this._s,h=new Uint8Array(16);h.set(t);for(var d=0;d<16;++d)h[d]^=r[d];for(var g=1;g<this._cyclesOfRepetition;g++){for(var m=0;m<16;++m)h[m]=u[h[m]];l=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=l;l=h[2];c=h[6];h[2]=h[10];h[6]=h[14];h[10]=l;h[14]=c;l=h[3];c=h[7];o=h[11];h[3]=h[15];h[7]=l;h[11]=c;h[15]=o;for(var y=0;y<16;y+=4){var v=h[y+0],k=h[y+1],_=h[y+2],w=h[y+3];o=v^k^_^w;h[y+0]^=o^this._mixCol[v^k];h[y+1]^=o^this._mixCol[k^_];h[y+2]^=o^this._mixCol[_^w];h[y+3]^=o^this._mixCol[w^v]}for(var S=0,C=16*g;S<16;++S,++C)h[S]^=r[C]}for(var x=0;x<16;++x)h[x]=u[h[x]];l=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=l;l=h[2];c=h[6];h[2]=h[10];h[6]=h[14];h[10]=l;h[14]=c;l=h[3];c=h[7];o=h[11];h[3]=h[15];h[7]=l;h[11]=c;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,c=this.buffer,l=this.bufferPosition,u=[],h=this.iv,d=0;d<o;++d){c[l]=t[d];if(!(++l<16)){for(var g=this._decrypt(c,this._key),m=0;m<16;++m)g[m]^=h[m];h=c;u.push(g);c=new Uint8Array(16);l=0}}this.buffer=c;this.bufferLength=l;this.iv=h;if(0===u.length)return new Uint8Array(0);var y=16*u.length;if(r){var v=u[u.length-1],k=v[15];if(k<=16){for(var _=15,w=16-k;_>=w;--_)if(v[_]!==k){k=0;break}y-=k;u[u.length-1]=v.subarray(0,16-k)}}for(var S=new Uint8Array(y),C=0,x=0,O=u.length;C<O;++C,x+=16)S.set(u[C],x);return S}},{key:"decryptBlock",value:function decryptBlock(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=t.length,l=this.buffer,u=this.bufferPosition;if(o)this.iv=o;else{for(var h=0;u<16&&h<c;++h,++u)l[u]=t[h];if(u<16){this.bufferLength=u;return new Uint8Array(0)}this.iv=l;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,c=this.buffer,l=this.bufferPosition,u=[];r||(r=new Uint8Array(16));for(var h=0;h<o;++h){c[l]=t[h];if(!(++l<16)){for(var d=0;d<16;++d)c[d]^=r[d];var g=this._encrypt(c,this._key);r=g;u.push(g);c=new Uint8Array(16);l=0}}this.buffer=c;this.bufferLength=l;this.iv=r;if(0===u.length)return new Uint8Array(0);for(var m=16*u.length,y=new Uint8Array(m),v=0,k=0,_=u.length;v<_;++v,k+=16)y.set(u[v],k);return y}}]);return AESBaseCipher}(),_=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,c=new Uint8Array(176);c.set(t);for(var l=16,u=1;l<176;++u){var h=c[l-3],d=c[l-2],g=c[l-1],m=c[l-4];h=r[h];d=r[d];g=r[g];m=r[m];h^=o[u];for(var y=0;y<4;++y){c[l]=h^=c[l-16];c[++l]=d^=c[l-16];c[++l]=g^=c[l-16];c[++l]=m^=c[l-16];l++}}return c}}]);return AES128Cipher}(k);r.AES128Cipher=_;var w=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 c,l,u,h,d=1,g=32,m=1;g<240;++m){if(g%32==16){c=r[c];l=r[l];u=r[u];h=r[h]}else if(g%32==0){c=o[g-3];l=o[g-2];u=o[g-1];h=o[g-4];c=r[c];l=r[l];u=r[u];h=r[h];c^=d;(d<<=1)>=256&&(d=255&(27^d))}for(var y=0;y<4;++y){o[g]=c^=o[g-32];o[++g]=l^=o[g-32];o[++g]=u^=o[g-32];o[++g]=h^=o[g-32];g++}}return o}}]);return AES256Cipher}(k);r.AES256Cipher=w;var S=function(){function PDF17(){_classCallCheck(this,PDF17)}_createClass(PDF17,[{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,l){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=m(u,0,u.length);return(0,c.isArrayEqual)(h,l)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var l=new Uint8Array(t.length+8);l.set(t,0);l.set(r,t.length);var u=m(l,0,l.length);return(0,c.isArrayEqual)(u,o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,c){var l=new Uint8Array(t.length+56);l.set(t,0);l.set(r,t.length);l.set(o,t.length+r.length);var u=m(l,0,l.length);return new w(u).decryptBlock(c,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var l=m(c,0,c.length);return new w(l).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF17}();r.PDF17=S;var C=function PDF20Closure(){function calculatePDF20Hash(t,r,o){for(var c=m(r,0,r.length).subarray(0,32),l=[0],u=0;u<64||l[l.length-1]>u-32;){var h=t.length+c.length+o.length,d=new Uint8Array(h),g=0;d.set(t,g);g+=t.length;d.set(c,g);g+=c.length;d.set(o,g);for(var v=new Uint8Array(64*h),k=0,w=0;k<64;k++,w+=h)v.set(d,w);l=new _(c.subarray(0,16)).encrypt(v,c.subarray(16,32));for(var S=0,C=0;C<16;C++){S*=1;S%=3;S+=(l[C]>>>0)%3;S%=3}0===S?c=m(l,0,l.length):1===S?c=calculateSHA384(l,0,l.length):2===S&&(c=y(l,0,l.length));u++}return c.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,l){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,c.isArrayEqual)(h,l)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var l=new Uint8Array(t.length+8);l.set(t,0);l.set(r,t.length);var u=calculatePDF20Hash(t,l,[]);return(0,c.isArrayEqual)(u,o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,c){var l=new Uint8Array(t.length+56);l.set(t,0);l.set(r,t.length);l.set(o,t.length+r.length);var u=calculatePDF20Hash(t,l,o);return new w(u).decryptBlock(c,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var l=calculatePDF20Hash(t,c,[]);return new w(l).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF20}()}();r.PDF20=C;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,c.stringToBytes)(t);o=r.decryptBlock(o,!0);return(0,c.bytesToString)(o)}},{key:"encryptString",value:function encryptString(t){var r=new this.StringCipherConstructor;if(r instanceof k){var o=16-t.length%16;t+=String.fromCharCode(o).repeat(o);var l=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(l);else for(var u=0;u<16;u++)l[u]=Math.floor(256*Math.random());var h=(0,c.stringToBytes)(t);h=r.encrypt(h,l);var d=new Uint8Array(16+h.length);d.set(l);d.set(h,16);return(0,c.bytesToString)(d)}var g=(0,c.stringToBytes)(t);g=r.encrypt(g);return(0,c.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,c,l,u,g,m,y){var v,k,_=40+c.length+r.length,w=new Uint8Array(_),S=0;if(o){k=Math.min(32,o.length);for(;S<k;++S)w[S]=o[S]}v=0;for(;S<32;)w[S++]=t[v++];for(v=0,k=c.length;v<k;++v)w[S++]=c[v];w[S++]=255&u;w[S++]=u>>8&255;w[S++]=u>>16&255;w[S++]=u>>>24&255;for(v=0,k=r.length;v<k;++v)w[S++]=r[v];if(g>=4&&!y){w[S++]=255;w[S++]=255;w[S++]=255;w[S++]=255}var C=d(w,0,S),x=m>>3;if(g>=3)for(v=0;v<50;++v)C=d(C,0,x);var O,T=C.subarray(0,x);if(g>=3){for(S=0;S<32;++S)w[S]=t[S];for(v=0,k=r.length;v<k;++v)w[S++]=r[v];O=new h(T).encryptBlock(d(w,0,S));k=T.length;var E=new Uint8Array(k);for(v=1;v<=19;++v){for(var M=0;M<k;++M)E[M]=T[M]^v;O=new h(E).encryptBlock(O)}for(v=0,k=O.length;v<k;++v)if(l[v]!==O[v])return null}else for(v=0,k=(O=new h(T).encryptBlock(t)).length;v<k;++v)if(l[v]!==O[v])return null;return T}var r=l.Name.get("Identity");function buildObjectKey(t,r,o){var c,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=new Uint8Array(o.length+9),h=o.length;for(c=0;c<h;++c)u[c]=o[c];u[c++]=255&t;u[c++]=t>>8&255;u[c++]=t>>16&255;u[c++]=255&r;u[c++]=r>>8&255;if(l){u[c++]=115;u[c++]=65;u[c++]=108;u[c++]=84}var g=d(u,0,c);return g.subarray(0,Math.min(o.length+5,16))}function buildCipherConstructor(t,r,o,u,d){if(!(r instanceof l.Name))throw new c.FormatError("Invalid crypt filter name.");var g,m=t.get(r.name);null!=m&&(g=m.get("CFM"));if(!g||"None"===g.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new v};if("V2"===g.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new h(buildObjectKey(o,u,d,!1))};if("AESV2"===g.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new _(buildObjectKey(o,u,d,!0))};if("AESV3"===g.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new w(d)};throw new c.FormatError("Unknown crypto method")}return function(){function CipherTransformFactory(o,u,g){_classCallCheck(this,CipherTransformFactory);var m=o.get("Filter");if(!(0,l.isName)(m,"Standard"))throw new c.FormatError("unknown encryption method");this.filterName=m.name;this.dict=o;var y=o.get("V");if(!Number.isInteger(y)||1!==y&&2!==y&&4!==y&&5!==y)throw new c.FormatError("unsupported encryption algorithm");this.algorithm=y;var v=o.get("Length");if(!v)if(y<=3)v=40;else{var k=o.get("CF"),_=o.get("StmF");if(k instanceof l.Dict&&_ instanceof l.Name){k.suppressEncryption=!0;var w=k.get(_.name);(v=w&&w.get("Length")||128)<40&&(v<<=3)}}if(!Number.isInteger(v)||v<40||v%8!=0)throw new c.FormatError("invalid key length");var x=(0,c.stringToBytes)(o.get("O")).subarray(0,32),O=(0,c.stringToBytes)(o.get("U")).subarray(0,32),T=o.get("P"),E=o.get("R"),M=(4===y||5===y)&&!1!==o.get("EncryptMetadata");this.encryptMetadata=M;var R,j,D=(0,c.stringToBytes)(u);if(g){if(6===E)try{g=(0,c.utf8StringToString)(g)}catch(t){(0,c.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}R=(0,c.stringToBytes)(g)}if(5!==y)j=prepareKeyData(D,R,x,O,T,E,v,M);else{var N=(0,c.stringToBytes)(o.get("O")).subarray(32,40),L=(0,c.stringToBytes)(o.get("O")).subarray(40,48),U=(0,c.stringToBytes)(o.get("U")).subarray(0,48),H=(0,c.stringToBytes)(o.get("U")).subarray(32,40),$=(0,c.stringToBytes)(o.get("U")).subarray(40,48),X=(0,c.stringToBytes)(o.get("OE")),q=(0,c.stringToBytes)(o.get("UE"));(0,c.stringToBytes)(o.get("Perms"));j=function createEncryptionKey20(t,r,o,c,l,u,h,d,g,m,y,v){if(r){var k=Math.min(127,r.length);r=r.subarray(0,k)}else r=[];var _;return(_=6===t?new C:new S).checkUserPassword(r,d,h)?_.getUserKey(r,g,y):r.length&&_.checkOwnerPassword(r,c,u,o)?_.getOwnerKey(r,l,u,m):null}(E,R,x,N,L,U,O,H,$,X,q)}if(!j&&!g)throw new c.PasswordException("No password given",c.PasswordResponses.NEED_PASSWORD);if(!j&&g){var G=function decodeUserPassword(r,o,c,l){for(var u=new Uint8Array(32),g=0,m=Math.min(32,r.length);g<m;++g)u[g]=r[g];for(var y=0;g<32;)u[g++]=t[y++];var v,k=d(u,0,g),_=l>>3;if(c>=3)for(y=0;y<50;++y)k=d(k,0,k.length);if(c>=3){v=o;var w=new Uint8Array(_);for(y=19;y>=0;y--){for(var S=0;S<_;++S)w[S]=k[S]^y;v=new h(w).encryptBlock(v)}}else v=new h(k.subarray(0,_)).encryptBlock(o);return v}(R,x,E,v);j=prepareKeyData(D,G,x,O,T,E,v,M)}if(!j)throw new c.PasswordException("Incorrect Password",c.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=j;if(y>=4){var z=o.get("CF");z instanceof l.Dict&&(z.suppressEncryption=!0);this.cf=z;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),c=function buildCipherCipherConstructor(){return new h(o)};return new x(c,c)}}]);return CipherTransformFactory}()}();r.CipherTransformFactory=O},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.DecryptStream=void 0;var c=o(171);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(DecryptStream,t);var r=_createSuper(DecryptStream);function DecryptStream(t,o,c){var l;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DecryptStream);(l=r.call(this,o)).str=t;l.dict=t.dict;l.decrypt=c;l.nextChunk=null;l.initialized=!1;return l}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,c=t.length,l=this.ensureBuffer(o+c),u=0;u<c;u++)l[o++]=t[u];this.bufferLength=o}else this.eof=!0}}]);return DecryptStream}(c.DecodeStream);r.DecryptStream=l},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XFAFactory=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(218),u=o(222),h=o(228),d=o(226),g=o(219),m=o(4),y=o(229),v=o(239);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var k=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 y.XFAParser).parse(XFAFactory._createDocument(t));var r=new u.Binder(this.root);this.form=r.bind();this.dataHandler=new h.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);Object.defineProperty(t,"prototype",{writable:!1});return t}(XFAFactory,[{key:"isValid",value:function isValid(){return this.root&&this.form}},{key:"_createPagesHelper",value:function _createPagesHelper(){var t=this.form[l.$toPages]();return new Promise((function(r,o){setTimeout((function nextIteration(){try{var c=t.next();c.done?r(c.value):setTimeout(nextIteration,0)}catch(t){o(t)}}),0)}))}},{key:"_createPages",value:(o=_asyncToGenerator(c.default.mark((function _callee(){return c.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0;t.next=3;return this._createPagesHelper();case 3:this.pages=t.sent;this.dims=this.pages.children.map((function(t){var r=t.attributes.style,o=r.width,c=r.height;return[0,0,parseInt(o),parseInt(c)]}));t.next=10;break;case 7:t.prev=7;t.t0=t.catch(0);(0,m.warn)("XFA - an error occurred during layout: ".concat(t.t0));case 10:case"end":return t.stop()}}),_callee,this,[[0,7]])}))),function _createPages(){return o.apply(this,arguments)})},{key:"getBoundingBox",value:function getBoundingBox(t){return this.dims[t]}},{key:"getNumPages",value:(r=_asyncToGenerator(c.default.mark((function _callee2(){return c.default.wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:if(this.pages){t.next=3;break}t.next=3;return this._createPages();case 3:return t.abrupt("return",this.dims.length);case 4:case"end":return t.stop()}}),_callee2,this)}))),function getNumPages(){return r.apply(this,arguments)})},{key:"setImages",value:function setImages(t){this.form[l.$globalData].images=t}},{key:"setFonts",value:function setFonts(t){this.form[l.$globalData].fontFinder=new d.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,g.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:(t=_asyncToGenerator(c.default.mark((function _callee3(){var t;return c.default.wrap((function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:if(this.pages){r.next=3;break}r.next=3;return this._createPages();case 3:t=this.pages;this.pages=null;return r.abrupt("return",t);case 6:case"end":return r.stop()}}),_callee3,this)}))),function getPages(){return t.apply(this,arguments)})},{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"]}},{key:"getRichTextAsHtml",value:function getRichTextAsHtml(t){if(!t||"string"!=typeof t)return null;try{var r=new y.XFAParser(v.XhtmlNamespace,!0).parse(t);if(!["body","xhtml"].includes(r[l.$nodeName])){var o=v.XhtmlNamespace.body({});o[l.$appendChild](r);r=o}var c=r[l.$toHTML]();if(!c.success)return null;var u=c.html,h=u.attributes;if(h){h.class&&(h.class=h.class.filter((function(t){return!t.startsWith("xfa")})));h.dir="auto"}return{html:u,str:r[l.$text]()}}catch(t){(0,m.warn)("XFA - an error occurred during parsing of rich text: ".concat(t))}return null}}]);var t,r,o;return XFAFactory}();r.XFAFactory=k},(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.$toPages=r.$toHTML=r.$text=r.$tabIndex=r.$setValue=r.$setSetAttributes=r.$setId=r.$searchNode=r.$root=r.$resolvePrototypes=r.$removeChild=r.$pushPara=r.$pushGlyphs=r.$popPara=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 c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(219),u=o(4),h=o(150),d=o(220),g=o(221);function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var c=_superPropBase(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return _get.apply(this,arguments)}function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return 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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}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){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var m=Symbol();r.$acceptWhitespace=m;var y=Symbol();r.$addHTML=y;var v=Symbol();r.$appendChild=v;var k=Symbol();r.$childrenToHTML=k;var _=Symbol();r.$clean=_;var w=Symbol();r.$cleanPage=w;var S=Symbol();r.$cleanup=S;var C=Symbol();r.$clone=C;var x=Symbol();r.$consumed=x;var O=Symbol("content");r.$content=O;var T=Symbol("data");r.$data=T;var E=Symbol();r.$dump=E;var M=Symbol("extra");r.$extra=M;var R=Symbol();r.$finalize=R;var j=Symbol();r.$flushHTML=j;var D=Symbol();r.$getAttributeIt=D;var N=Symbol();r.$getAttributes=N;var L=Symbol();r.$getAvailableSpace=L;var U=Symbol();r.$getChildrenByClass=U;var H=Symbol();r.$getChildrenByName=H;var $=Symbol();r.$getChildrenByNameIt=$;var X=Symbol();r.$getDataValue=X;var q=Symbol();r.$getExtra=q;var G=Symbol();r.$getRealChildrenByNameIt=G;var z=Symbol();r.$getChildren=z;var W=Symbol();r.$getContainedChildren=W;var V=Symbol();r.$getNextPage=V;var K=Symbol();r.$getSubformParent=K;var Y=Symbol();r.$getParent=Y;var J=Symbol();r.$getTemplateRoot=J;var Z=Symbol();r.$globalData=Z;var Q=Symbol();r.$hasSettableValue=Q;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 ce=Symbol();r.$isSplittable=ce;var le=Symbol();r.$isThereMoreWidth=le;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 ge=Symbol();r.$nsAttributes=ge;var me=Symbol();r.$onChild=me;var ye=Symbol();r.$onChildCheck=ye;var ve=Symbol();r.$onText=ve;var be=Symbol();r.$pushGlyphs=be;var ke=Symbol();r.$popPara=ke;var _e=Symbol();r.$pushPara=_e;var we=Symbol();r.$removeChild=we;var Se=Symbol("root");r.$root=Se;var Ce=Symbol();r.$resolvePrototypes=Ce;var xe=Symbol();r.$searchNode=xe;var Oe=Symbol();r.$setId=Oe;var Ae=Symbol();r.$setSetAttributes=Ae;var Pe=Symbol();r.$setValue=Pe;var Te=Symbol();r.$tabIndex=Te;var Fe=Symbol();r.$text=Fe;var Ie=Symbol();r.$toPages=Ie;var Ee=Symbol();r.$toHTML=Ee;var Me=Symbol();r.$toString=Me;var Re=Symbol();r.$toStyle=Re;var je=Symbol("uid");r.$uid=je;var De=Symbol(),Be=Symbol(),Ne=Symbol(),Le=Symbol("_children"),Ue=Symbol(),He=Symbol(),$e=Symbol(),Xe=Symbol(),qe=Symbol(),Ge=Symbol(),ze=Symbol(),We=Symbol(),Ve=Symbol(),Ke=Symbol("parent"),Ye=Symbol(),Je=Symbol(),Ze=Symbol(),Qe=0,et=d.NamespaceIds.datasets.id,tt=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[ze]=o;this[Ke]=null;this[Le]=[];this[je]="".concat(r).concat(Qe++);this[Z]=null}_createClass(XFAObject,[{key:me,value:function value(t){if(!this[ze]||!this[ye](t))return!1;var r=t[pe],o=this[r];if(!(o instanceof rt)){null!==o&&this[we](o);this[r]=t;this[v](t);return!0}if(o.push(t)){this[v](t);return!0}var c="";this.id?c=" (id: ".concat(this.id,")"):this.name&&(c=" (name: ".concat(this.name," ").concat(this.h.value,")"));(0,u.warn)('XFA - node "'.concat(this[pe],'"').concat(c,' 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:m,value:function value(){return!1}},{key:ae,value:function value(){return!1}},{key:ne,value:function value(){return!1}},{key:ke,value:function value(){this.para&&this[J]()[M].paraStack.pop()}},{key:_e,value:function value(){this[J]()[M].paraStack.push(this.para)}},{key:Oe,value:function value(t){this.id&&this[de]===d.NamespaceIds.template.id&&t.set(this.id,this)}},{key:J,value:function value(){return this[Z].template}},{key:ce,value:function value(){return!1}},{key:le,value:function value(){return!1}},{key:v,value:function value(t){t[Ke]=this;this[Le].push(t);!t[Z]&&this[Z]&&(t[Z]=this[Z])}},{key:we,value:function value(t){var r=this[Le].indexOf(t);this[Le].splice(r,1)}},{key:Q,value:function value(){return this.hasOwnProperty("value")}},{key:Pe,value:function value(t){}},{key:ve,value:function value(t){}},{key:R,value:function value(){}},{key:_,value:function value(t){delete this[ze];if(this[S]){t.clean(this[S]);delete this[S]}}},{key:te,value:function value(t){return this[Le].indexOf(t)}},{key:re,value:function value(t,r){r[Ke]=this;this[Le].splice(t,0,r);!r[Z]&&this[Z]&&(r[Z]=this[Z])}},{key:ue,value:function value(){return!this.name}},{key:he,value:function value(){return""}},{key:Fe,value:function value(){return 0===this[Le].length?this[O]:this[Le].map((function(t){return t[Fe]()})).join("")}},{key:Ne,get:function get(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,o=t._attributes=new Set,c=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(null===this[l]||this[l]instanceof XFAObject||this[l]instanceof rt)break;o.add(l)}}catch(t){c.e(t)}finally{c.f()}}return(0,u.shadow)(this,Ne,t._attributes)}},{key:oe,value:function value(t){for(var r=this;r;){if(r===t)return!0;r=r[Y]()}return!1}},{key:Y,value:function value(){return this[Ke]}},{key:K,value:function value(){return this[Y]()}},{key:z,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[t]:this[Le]}},{key:E,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 c=r.value,value=this[c];null!==value&&(value instanceof XFAObject?t[c]=value[E]():value instanceof rt?value.isEmpty()||(t[c]=value.dump()):t[c]=value)}}catch(t){o.e(t)}finally{o.f()}return t}},{key:Re,value:function value(){return null}},{key:Ee,value:function value(){return l.HTMLResult.EMPTY}},{key:W,value:c.default.mark((function value(){var t,r,o;return c.default.wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:t=_createForOfIteratorHelper(this[z]());c.prev=1;t.s();case 3:if((r=t.n()).done){c.next=9;break}o=r.value;c.next=7;return o;case 7:c.next=3;break;case 9:c.next=14;break;case 11:c.prev=11;c.t0=c.catch(1);t.e(c.t0);case 14:c.prev=14;t.f();return c.finish(14);case 17:case"end":return c.stop()}}),value,this,[[1,11,14,17]])}))},{key:Xe,value:c.default.mark((function value(t,r){var o,l,u,h,d;return c.default.wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:o=_createForOfIteratorHelper(this[W]());c.prev=1;o.s();case 3:if((l=o.n()).done){c.next=13;break}u=l.value;if(t&&r!==t.has(u[pe])){c.next=11;break}h=this[L]();(d=u[Ee](h)).success||(this[M].failingNode=u);c.next=11;return d;case 11:c.next=3;break;case 13:c.next=18;break;case 15:c.prev=15;c.t0=c.catch(1);o.e(c.t0);case 18:c.prev=18;o.f();return c.finish(18);case 21:case"end":return c.stop()}}),value,this,[[1,15,18,21]])}))},{key:j,value:function value(){return null}},{key:y,value:function value(t,r){this[M].children.push(t)}},{key:L,value:function value(){}},{key:k,value:function value(t){var r=t.filter,o=void 0===r?null:r,c=t.include,u=void 0===c||c;if(this[M].generator){var h=this[L](),d=this[M].failingNode[Ee](h);if(!d.success)return d;d.html&&this[y](d.html,d.bbox);delete this[M].failingNode}else this[M].generator=this[Xe](o,u);for(;;){var g=this[M].generator.next();if(g.done)break;var m=g.value;if(!m.success)return m;m.html&&this[y](m.html,m.bbox)}this[M].generator=null;return l.HTMLResult.EMPTY}},{key:Ae,value:function value(t){this[Je]=new Set(Object.keys(t))}},{key:Ge,value:function value(t){var r=this[Ne],o=this[Je];return _toConsumableArray(t).filter((function(t){return r.has(t)&&!o.has(t)}))}},{key:Ce,value:function value(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,c=_createForOfIteratorHelper(this[Le]);try{for(c.s();!(r=c.n()).done;){var l=r.value;l[Ye](t,o)}}catch(t){c.e(t)}finally{c.f()}}},{key:Ye,value:function value(t,r){var o=this[qe](t,r);o?this[De](o,t,r):this[Ce](t,r)}},{key:qe,value:function value(t,r){var o=this.use,c=this.usehref;if(!o&&!c)return null;var l=null,h=null,d=null,m=o;if(c){m=c;c.startsWith("#som(")&&c.endsWith(")")?h=c.slice("#som(".length,c.length-1):c.startsWith(".#som(")&&c.endsWith(")")?h=c.slice(".#som(".length,c.length-1):c.startsWith("#")?d=c.slice(1):c.startsWith(".#")&&(d=c.slice(2))}else o.startsWith("#")?d=o.slice(1):h=o;this.use=this.usehref="";d?l=t.get(d):(l=(0,g.searchNode)(t.get(Se),this,h,!0,!1))&&(l=l[0]);if(!l){(0,u.warn)("XFA - Invalid prototype reference: ".concat(m,"."));return null}if(l[pe]!==this[pe]){(0,u.warn)("XFA - Incompatible prototype: ".concat(l[pe]," !== ").concat(this[pe],"."));return null}if(r.has(l)){(0,u.warn)("XFA - Cycle detected in prototypes use.");return null}r.add(l);var y=l[qe](t,r);y&&l[De](y,t,r);l[Ce](t,r);r.delete(l);return l}},{key:De,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 c,l=_createForOfIteratorHelper(this[Ge](t[Je]));try{for(l.s();!(c=l.n()).done;){var h=c.value;this[h]=t[h];this[Je]&&this[Je].add(h)}}catch(t){l.e(t)}finally{l.f()}var d,g=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(g.s();!(d=g.n()).done;){var m=d.value;if(!this[Ne].has(m)){var y=this[m],v=t[m];if(y instanceof rt){var k,_=_createForOfIteratorHelper(y[Le]);try{for(_.s();!(k=_.n()).done;){k.value[Ye](r,o)}}catch(t){_.e(t)}finally{_.f()}for(var w=y[Le].length,S=v[Le].length;w<S;w++){var x=t[Le][w][C]();if(!y.push(x))break;x[Ke]=this;this[Le].push(x);x[Ye](r,o)}}else if(null===y){if(null!==v){var T=v[C]();T[Ke]=this;this[m]=T;this[Le].push(T);T[Ye](r,o)}}else{y[Ce](r,o);v&&y[De](v,r,o)}}}}catch(t){g.e(t)}finally{g.f()}}}},{key:C,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 c=t.value;try{r[c]=this[c]}catch(t){(0,u.shadow)(r,c,this[c])}}}catch(t){o.e(t)}finally{o.f()}r[je]="".concat(r[pe]).concat(Qe++);r[Le]=[];var l,h=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(h.s();!(l=h.n()).done;){var d=l.value;if(this[Ne].has(d))r[d]=XFAObject[Ue](this[d]);else{var g=this[d];r[d]=g instanceof rt?new rt(g[We]):null}}}catch(t){h.e(t)}finally{h.f()}var m,y=_createForOfIteratorHelper(this[Le]);try{for(y.s();!(m=y.n()).done;){var v=m.value,k=v[pe],_=v[C]();r[Le].push(_);_[Ke]=r;null===r[k]?r[k]=_:r[k][Le].push(_)}}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[Le].filter((function(r){return r[pe]===t})):this[Le]}},{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[$](t,r,o))}},{key:$,value:c.default.mark((function value(t,r){var o,l,u,h,d=arguments;return c.default.wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:o=!(d.length>2&&void 0!==d[2])||d[2];if("parent"!==t){c.next=5;break}c.next=4;return this[Ke];case 4:return c.abrupt("return");case 5:l=_createForOfIteratorHelper(this[Le]);c.prev=6;l.s();case 8:if((u=l.n()).done){c.next=20;break}if((h=u.value)[pe]!==t){c.next=13;break}c.next=13;return h;case 13:if(h.name!==t){c.next=16;break}c.next=16;return h;case 16:if(!r&&!h[ue]()){c.next=18;break}return c.delegateYield(h[$](t,r,!1),"t0",18);case 18:c.next=8;break;case 20:c.next=25;break;case 22:c.prev=22;c.t1=c.catch(6);l.e(c.t1);case 25:c.prev=25;l.f();return c.finish(25);case 28:if(!o||!this[Ne].has(t)){c.next=31;break}c.next=31;return new at(this,t,this[t]);case 31:case"end":return c.stop()}}),value,this,[[6,22,25,28]])}))}],[{key:Ue,value:function value(t){return Array.isArray(t)?t.map((function(t){return XFAObject[Ue](t)})):"object"===_typeof(t)&&null!==t?Object.assign({},t):t}}]);return XFAObject}();r.XFAObject=tt;var rt=function(){function XFAObjectArray(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;_classCallCheck(this,XFAObjectArray);this[We]=t;this[Le]=[]}_createClass(XFAObjectArray,[{key:"push",value:function push(t){if(this[Le].length<=this[We]){this[Le].push(t);return!0}(0,u.warn)('XFA - node "'.concat(t[pe],'" accepts no more than ').concat(this[We]," children"));return!1}},{key:"isEmpty",value:function isEmpty(){return 0===this[Le].length}},{key:"dump",value:function dump(){return 1===this[Le].length?this[Le][0][E]():this[Le].map((function(t){return t[E]()}))}},{key:C,value:function value(){var t=new XFAObjectArray(this[We]);t[Le]=this[Le].map((function(t){return t[C]()}));return t}},{key:"children",get:function get(){return this[Le]}},{key:"clear",value:function clear(){this[Le].length=0}}]);return XFAObjectArray}();r.XFAObjectArray=rt;var at=function(){function XFAAttribute(t,r,o){_classCallCheck(this,XFAAttribute);this[Ke]=t;this[pe]=r;this[O]=o;this[x]=!1;this[je]="attribute".concat(Qe++)}_createClass(XFAAttribute,[{key:Y,value:function value(){return this[Ke]}},{key:ie,value:function value(){return!0}},{key:X,value:function value(){return this[O].trim()}},{key:Pe,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:Fe,value:function value(){return this[O]}},{key:oe,value:function value(t){return this[Ke]===t||this[Ke][oe](t)}}]);return XFAAttribute}();r.XFAAttribute=at;var nt=function(t){_inherits(XmlObject,t);var r=_createSuper(XmlObject);function XmlObject(t,o){var c,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,XmlObject);(c=r.call(this,t,o))[O]="";c[He]=null;if("#text"!==o){var u=new Map;c[Be]=u;for(var h=0,d=Object.entries(l);h<d.length;h++){var g=_slicedToArray(d[h],2),m=g[0],y=g[1];u.set(m,new at(_assertThisInitialized(c),m,y))}if(l.hasOwnProperty(ge)){var v=l[ge].xfa.dataNode;void 0!==v&&("dataGroup"===v?c[He]=!1:"dataValue"===v&&(c[He]=!0))}}c[x]=!1;return c}_createClass(XmlObject,[{key:Me,value:function value(t){var r=this[pe];if("#text"!==r){var o=(0,u.utf8StringToString)(r),c=this[de]===et?"xfa:":"";t.push("<".concat(c).concat(o));var l,d=_createForOfIteratorHelper(this[Be].entries());try{for(d.s();!(l=d.n()).done;){var g=_slicedToArray(l.value,2),m=g[0],y=g[1],v=(0,u.utf8StringToString)(m);t.push(" ".concat(v,'="').concat((0,h.encodeToXmlString)(y[O]),'"'))}}catch(t){d.e(t)}finally{d.f()}null!==this[He]&&(this[He]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"'));if(this[O]||0!==this[Le].length){t.push(">");if(this[O])"string"==typeof this[O]?t.push((0,h.encodeToXmlString)(this[O])):this[O][Me](t);else{var k,_=_createForOfIteratorHelper(this[Le]);try{for(_.s();!(k=_.n()).done;){k.value[Me](t)}}catch(t){_.e(t)}finally{_.f()}}t.push("</".concat(c).concat(o,">"))}else t.push("/>")}else t.push((0,h.encodeToXmlString)(this[O]))}},{key:me,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:R,value:function value(){if(this[O]&&this[Le].length>0){var t=new XmlObject(this[de],"#text");this[v](t);t[O]=this[O];delete this[O]}}},{key:Ee,value:function value(){return"#text"===this[pe]?l.HTMLResult.success({name:"#text",value:this[O]}):l.HTMLResult.EMPTY}},{key:z,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[Le].filter((function(r){return r[pe]===t})):this[Le]}},{key:N,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:$,value:c.default.mark((function value(t,r){var value,o,l,u;return c.default.wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:value=this[Be].get(t);if(!value){c.next=4;break}c.next=4;return value;case 4:o=_createForOfIteratorHelper(this[Le]);c.prev=5;o.s();case 7:if((l=o.n()).done){c.next=16;break}if((u=l.value)[pe]!==t){c.next=12;break}c.next=12;return u;case 12:if(!r){c.next=14;break}return c.delegateYield(u[$](t,r),"t0",14);case 14:c.next=7;break;case 16:c.next=21;break;case 18:c.prev=18;c.t1=c.catch(5);o.e(c.t1);case 21:c.prev=21;o.f();return c.finish(21);case 24:case"end":return c.stop()}}),value,this,[[5,18,21,24]])}))},{key:D,value:c.default.mark((function value(t,r){var value,o,l,u;return c.default.wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:value=this[Be].get(t);if(!value||r&&value[x]){c.next=4;break}c.next=4;return value;case 4:o=_createForOfIteratorHelper(this[Le]);c.prev=5;o.s();case 7:if((l=o.n()).done){c.next=12;break}u=l.value;return c.delegateYield(u[D](t,r),"t0",10);case 10:c.next=7;break;case 12:c.next=17;break;case 14:c.prev=14;c.t1=c.catch(5);o.e(c.t1);case 17:c.prev=17;o.f();return c.finish(17);case 20:case"end":return c.stop()}}),value,this,[[5,14,17,20]])}))},{key:G,value:c.default.mark((function value(t,r,o){var l,u,h;return c.default.wrap((function value$(c){for(;;)switch(c.prev=c.next){case 0:l=_createForOfIteratorHelper(this[Le]);c.prev=1;l.s();case 3:if((u=l.n()).done){c.next=12;break}if((h=u.value)[pe]!==t||o&&h[x]){c.next=8;break}c.next=8;return h;case 8:if(!r){c.next=10;break}return c.delegateYield(h[G](t,r,o),"t0",10);case 10:c.next=3;break;case 12:c.next=17;break;case 14:c.prev=14;c.t1=c.catch(1);l.e(c.t1);case 17:c.prev=17;l.f();return c.finish(17);case 20:case"end":return c.stop()}}),value,this,[[1,14,17,20]])}))},{key:ie,value:function value(){return null===this[He]?0===this[Le].length||this[Le][0][de]===d.NamespaceIds.xhtml.id:this[He]}},{key:X,value:function value(){return null===this[He]?0===this[Le].length?this[O].trim():this[Le][0][de]===d.NamespaceIds.xhtml.id?this[Le][0][Fe]().trim():null:this[O].trim()}},{key:Pe,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:E,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=Object.create(null);t&&(r.$ns=this[de]);this[O]&&(r.$content=this[O]);r.$name=this[pe];r.children=[];var o,c=_createForOfIteratorHelper(this[Le]);try{for(c.s();!(o=c.n()).done;){var l=o.value;r.children.push(l[E](t))}}catch(t){c.e(t)}finally{c.f()}r.attributes=Object.create(null);var u,h=_createForOfIteratorHelper(this[Be]);try{for(h.s();!(u=h.n()).done;){var d=_slicedToArray(u.value,2),g=d[0],m=d[1];r.attributes[g]=m[O]}}catch(t){h.e(t)}finally{h.f()}return r}}]);return XmlObject}(tt);r.XmlObject=nt;var it=function(t){_inherits(ContentObject,t);var r=_createSuper(ContentObject);function ContentObject(t,o){var c;_classCallCheck(this,ContentObject);(c=r.call(this,t,o))[O]="";return c}_createClass(ContentObject,[{key:ve,value:function value(t){this[O]+=t}},{key:R,value:function value(){}}]);return ContentObject}(tt);r.ContentObject=it;var ot=function(t){_inherits(OptionObject,t);var r=_createSuper(OptionObject);function OptionObject(t,o,c){var l;_classCallCheck(this,OptionObject);(l=r.call(this,t,o))[Ve]=c;return l}_createClass(OptionObject,[{key:R,value:function value(){var t=this;this[O]=(0,l.getKeyword)({data:this[O],defaultValue:this[Ve][0],validate:function validate(r){return t[Ve].includes(r)}})}},{key:_,value:function value(t){_get(_getPrototypeOf(OptionObject.prototype),_,this).call(this,t);delete this[Ve]}}]);return OptionObject}(it);r.OptionObject=ot;var st=function(t){_inherits(StringObject,t);var r=_createSuper(StringObject);function StringObject(){_classCallCheck(this,StringObject);return r.apply(this,arguments)}_createClass(StringObject,[{key:R,value:function value(){this[O]=this[O].trim()}}]);return StringObject}(it);r.StringObject=st;var ct=function(t){_inherits(IntegerObject,t);var r=_createSuper(IntegerObject);function IntegerObject(t,o,c,l){var u;_classCallCheck(this,IntegerObject);(u=r.call(this,t,o))[$e]=c;u[Ze]=l;return u}_createClass(IntegerObject,[{key:R,value:function value(){this[O]=(0,l.getInteger)({data:this[O],defaultValue:this[$e],validate:this[Ze]})}},{key:_,value:function value(t){_get(_getPrototypeOf(IntegerObject.prototype),_,this).call(this,t);delete this[$e];delete this[Ze]}}]);return IntegerObject}(it);r.IntegerObject=ct;var lt=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 _createClass(Option01)}(ct);r.Option01=lt;var ut=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 _createClass(Option10)}(ct);r.Option10=ut},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.HTMLResult=void 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 c=_slicedToArray(o,4),l=c[0],u=c[1],h=c[2],d=c[3];return{x:l,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),c=o[0],l=o[1],u=o[2];if(!t)return{r:c,g:l,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:c,g:l,b:u};var d=_slicedToArray(h,3);c=d[0];l=d[1];u=d[2];return{r:c,g:l,b:u}};r.getFloat=function getFloat(t){var r=t.data,o=t.defaultValue,c=t.validate;if(!r)return o;r=r.trim();var l=parseFloat(r);if(!isNaN(l)&&c(l))return l;return o};r.getInteger=function getInteger(t){var r=t.data,o=t.defaultValue,c=t.validate;if(!r)return o;r=r.trim();var l=parseInt(r,10);if(!isNaN(l)&&c(l))return l;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),c=o[0],l=o[1];return{num:c,den:l}};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};var c=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}var l={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=/([+-]?\d+\.?\d*)(.*)/;function getKeyword(t){var r=t.data,o=t.defaultValue,c=t.validate;return r&&c(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 c=_slicedToArray(o,3),h=c[1],d=c[2],g=parseFloat(h);if(isNaN(g))return getMeasurement(r);if(0===g)return 0;var m=l[d];return m?m(g):g}var h=function(){function HTMLResult(t,r,o,c){!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=c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(HTMLResult,[{key:"isBreak",value:function isBreak(){return!!this.breakNode}}],[{key:"FAILURE",get:function get(){return(0,c.shadow)(this,"FAILURE",new HTMLResult(!1,null,null,null))}},{key:"EMPTY",get:function get(){return(0,c.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 l=parseExpression(o);if(!l)return null;if(l.some((function(t){return t.operator===m})))return null;var h=_.get(l[0].name),d=0;if(h){t=h(t,r);d=1}else t=r||t;for(var v=l.length;d<v;d++){var k=l[d],w=k.name,S=k.operator,C=k.index;if(!isFinite(C)){l[d].index=0;return createNodes(t,l.slice(d))}var x=void 0;switch(S){case g:x=t[c.$getChildrenByName](w,!1);break;case m:x=t[c.$getChildrenByName](w,!0);break;case y:x=(x=t[c.$getChildrenByClass](w))instanceof c.XFAObjectArray?x.children:[x]}if(0===x.length)return createNodes(t,l.slice(d));if(!(C<x.length)){l[d].index=C-x.length;return createNodes(t,l.slice(d))}var O=x[C];if(!(O instanceof c.XFAObject)){(0,u.warn)("XFA - Cannot create a node.");return null}t=O}return null};r.searchNode=function searchNode(t,r,o){var l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],h=parseExpression(o,l);if(!h)return null;var d,v=_.get(h[0].name),k=0;if(v){d=!0;t=[v(t,r)];k=1}else{d=null===r;t=[r||t]}for(var S=function _loop(o){var l,v=h[k],_=v.name,S=v.cacheName,C=v.operator,x=v.index,O=[],T=_createForOfIteratorHelper(t);try{for(T.s();!(l=T.n()).done;){var E=l.value;if(E instanceof c.XFAObject){var M=void 0,R=void 0;if(u){if(!(R=w.get(E))){R=new Map;w.set(E,R)}M=R.get(S)}if(!M){switch(C){case g:M=E[c.$getChildrenByName](_,!1);break;case m:M=E[c.$getChildrenByName](_,!0);break;case y:M=(M=E[c.$getChildrenByClass](_))instanceof c.XFAObjectArray?M.children:[M]}u&&R.set(S,M)}M.length>0&&O.push(M)}}}catch(t){T.e(t)}finally{T.f()}if(0===O.length&&!d&&0===k){var j=r[c.$getParent]();if(!(r=j))return{v:null};k=-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)}),[])},C=h.length;k<C;k++){var x=S(C);if("continue"!==x&&"object"===_typeof(x))return x.v}if(0===t.length)return null;return t};var c=o(218),l=o(220),u=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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}var h=/^[^.[]+/,d=/^[^\]]+/,g=0,m=1,y=2,v=3,k=4,_=new Map([["$data",function(t,r){return t.datasets?t.datasets.data:t}],["$record",function(t,r){return(t.datasets?t.datasets.data:t)[c.$getChildren]()[0]}],["$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}]]),w=new WeakMap,S=l.NamespaceIds.datasets.id;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],c=t.match(h);if(!c)return null;for(var l=c,_=_slicedToArray(l,1),w=_[0],S=[{name:w,cacheName:"."+w,index:0,js:null,formCalc:null,operator:g}],C=w.length;C<t.length;){var x=C,O=t.charAt(C++);if("["!==O){var T=void 0;switch(t.charAt(C)){case".":if(!r)return null;C++;T=m;break;case"#":C++;T=y;break;case"[":if(o){(0,u.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}T=v;break;case"(":if(o){(0,u.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}T=k;break;default:T=g}if(!(c=t.slice(C).match(h)))break;var E=c,M=_slicedToArray(E,1);C+=(w=M[0]).length;S.push({name:w,cacheName:t.slice(x,C),operator:T,index:0,js:null,formCalc:null})}else{if(!(c=t.slice(C).match(d))){(0,u.warn)("XFA - Invalid index in SOM expression");return null}S[S.length-1].index=parseIndex(c[0]);C+=c[0].length+1}}return S}function createNodes(t,r){var o,l=null,u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){for(var h=o.value,d=h.name,g=h.index,m=0,y=isFinite(g)?g:0;m<=y;m++){var v=t[c.$namespaceId]===S?-1:t[c.$namespaceId];l=new c.XmlObject(v,d);t[c.$appendChild](l)}t=l}}catch(t){u.e(t)}finally{u.f()}return l}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Binder=void 0;var c=o(218),l=o(223),u=o(221),h=o(220),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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var g=h.NamespaceIds.datasets.id;function createText(t){var r=new l.Text({});r[c.$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 c.XmlObject(h.NamespaceIds.datasets.id,"data");this.emptyMerge=0===this.data[c.$getChildren]().length;this.root.form=this.form=t.template[c.$clone]()}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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[c.$data]=r;if(t[c.$hasSettableValue]())if(r[c.$isDataValue]()){var u=r[c.$getDataValue]();t[c.$setValue](createText(u))}else if(t instanceof l.Field&&t.ui&&t.ui.choiceList&&"multiSelect"===t.ui.choiceList.open){var h=r[c.$getChildren]().map((function(t){return t[c.$content].trim()})).join("\n");t[c.$setValue](createText(h))}else this._isConsumeData()&&(0,d.warn)("XFA - Nodes haven't the same type.");else!r[c.$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,l){if(!t)return null;for(var u,d,g=0;g<3;g++){u=o[c.$getRealChildrenByNameIt](t,!1,!0);for(;d=u.next().value;)if(r===d[c.$isDataValue]())return d;if(o[c.$namespaceId]===h.NamespaceIds.datasets.id&&"data"===o[c.$nodeName])break;o=o[c.$getParent]()}return l&&((d=(u=this.data[c.$getRealChildrenByNameIt](t,!0,!1)).next().value)||(d=(u=this.data[c.$getAttributeIt](t,!0)).next().value)&&d[c.$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 g=o.value,m=g.ref,y=g.target;if(!g.connection&&m){var v=(0,u.searchNode)(this.root,r,m,!1,!1);if(v){var k=_slicedToArray(v,1)[0];if(k[c.$isDescendent](this.data)){var _=(0,u.searchNode)(this.root,t,y,!1,!1);if(_){var w=_slicedToArray(_,1)[0];if(w[c.$isDescendent](t)){var S=w[c.$getParent]();if(w instanceof l.SetProperty||S instanceof l.SetProperty)(0,d.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(w instanceof l.BindItems||S instanceof l.BindItems)(0,d.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var C=k[c.$text](),x=w[c.$nodeName];if(w instanceof c.XFAAttribute){var O=Object.create(null);O[x]=C;var T=Reflect.construct(Object.getPrototypeOf(S).constructor,[O]);S[x]=T[x]}else if(w.hasOwnProperty(c.$content)){w[c.$data]=k;w[c.$content]=C;w[c.$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(m,"."))}}}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 g=o.value;t[c.$removeChild](g)}}catch(t){h.e(t)}finally{h.f()}t.items.clear();var m=new l.Items({}),y=new l.Items({});t[c.$appendChild](m);t.items.push(m);t[c.$appendChild](y);t.items.push(y);var v,k=_createForOfIteratorHelper(t.bindItems.children);try{for(k.s();!(v=k.n()).done;){var _=v.value,w=_.ref,S=_.labelRef,C=_.valueRef;if(!_.connection&&w){var x=(0,u.searchNode)(this.root,r,w,!1,!1);if(x){var O,T=_createForOfIteratorHelper(x);try{for(T.s();!(O=T.n()).done;){var E=O.value;if(E[c.$isDescendent](this.datasets)){var M=(0,u.searchNode)(this.root,E,S,!0,!1);if(M){var R=_slicedToArray(M,1)[0];if(R[c.$isDescendent](this.datasets)){var j=(0,u.searchNode)(this.root,E,C,!0,!1);if(j){var D=_slicedToArray(j,1)[0];if(D[c.$isDescendent](this.datasets)){var N=createText(R[c.$text]()),L=createText(D[c.$text]());m[c.$appendChild](N);m.text.push(N);y[c.$appendChild](L);y.text.push(L)}else(0,d.warn)("XFA - Invalid value: must be a datasets child.")}else(0,d.warn)("XFA - Invalid value: ".concat(C,"."))}else(0,d.warn)("XFA - Invalid label: must be a datasets child.")}else(0,d.warn)("XFA - Invalid label: ".concat(S,"."))}else(0,d.warn)("XFA - Invalid ref (".concat(w,"): must be a datasets child."))}}catch(t){T.e(t)}finally{T.f()}}else(0,d.warn)("XFA - Invalid reference: ".concat(w,"."))}}}catch(t){k.e(t)}finally{k.f()}}}},{key:"_bindOccurrences",value:function _bindOccurrences(t,r,o){var l;if(r.length>1){(l=t[c.$clone]())[c.$removeChild](l.occur);l.occur=null}this._bindValue(t,r[0],o);this._setProperties(t,r[0]);this._bindItems(t,r[0]);if(1!==r.length)for(var u=t[c.$getParent](),h=t[c.$nodeName],d=u[c.$indexOf](t),g=1,m=r.length;g<m;g++){var y=r[g],v=l[c.$clone]();u[h].push(v);u[c.$insertAt](d+g,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)){var o=t[c.$getParent](),l=t[c.$nodeName];if(o[l]instanceof c.XFAObjectArray){var u;u=t.name?o[l].children.filter((function(r){return r.name===t.name})).length:o[l].children.length;var h=o[c.$indexOf](t)+1,d=r.initial-u;if(d){var g=t[c.$clone]();g[c.$removeChild](g.occur);g.occur=null;o[l].push(g);o[c.$insertAt](h,g);for(var m=1;m<d;m++){var y=g[c.$clone]();o[l].push(y);o[c.$insertAt](h+m,y)}}}}}}},{key:"_getOccurInfo",value:function _getOccurInfo(t){var r=t.name,o=t.occur;if(!o||!r)return[1,1];var c=-1===o.max?1/0:o.max;return[o.min,c]}},{key:"_setAndBind",value:function _setAndBind(t,r){this._setProperties(t,r);this._bindItems(t,r);this._bindElement(t,r)}},{key:"_bindElement",value:function _bindElement(t,r){var o=[];this._createOccurrences(t);var l,h=_createForOfIteratorHelper(t[c.$getChildren]());try{for(h.s();!(l=h.n()).done;){var m=l.value;if(!m[c.$data])if(void 0!==this._mergeMode||"subform"!==m[c.$nodeName]){if(m[c.$isBindable]()){var y=!1,v=null,k=null,_=null;if(m.bind){switch(m.bind.match){case"none":this._setAndBind(m,r);continue;case"global":y=!0;break;case"dataRef":if(!m.bind.ref){(0,d.warn)("XFA - ref is empty in node ".concat(m[c.$nodeName],"."));this._setAndBind(m,r);continue}k=m.bind.ref}m.bind.picture&&(v=m.bind.picture[c.$content])}var w=_slicedToArray(this._getOccurInfo(m),2),S=w[0],C=w[1];if(k){if(null===(_=(0,u.searchNode)(this.root,r,k,!0,!1))){if(!(_=(0,u.createDataNode)(this.data,r,k)))continue;this._isConsumeData()&&(_[c.$consumed]=!0);this._setAndBind(m,_);continue}this._isConsumeData()&&(_=_.filter((function(t){return!t[c.$consumed]})));_.length>C?_=_.slice(0,C):0===_.length&&(_=null);_&&this._isConsumeData()&&_.forEach((function(t){t[c.$consumed]=!0}))}else{if(!m.name){this._setAndBind(m,r);continue}if(this._isConsumeData()){for(var x=[];x.length<C;){var O=this._findDataByNameToConsume(m.name,m[c.$hasSettableValue](),r,y);if(!O)break;O[c.$consumed]=!0;x.push(O)}_=x.length>0?x:null}else{if(!(_=r[c.$getRealChildrenByNameIt](m.name,!1,this.emptyMerge).next().value)){if(0===S){o.push(m);continue}var T=r[c.$namespaceId]===g?-1:r[c.$namespaceId];_=m[c.$data]=new c.XmlObject(T,m.name);this.emptyMerge&&(_[c.$consumed]=!0);r[c.$appendChild](_);this._setAndBind(m,_);continue}this.emptyMerge&&(_[c.$consumed]=!0);_=[_]}}_?this._bindOccurrences(m,_,v):S>0?this._setAndBind(m,r):o.push(m)}}else{this._mergeMode="consumeData"===m.mergeMode;var E=r[c.$getChildren]();if(E.length>0)this._bindOccurrences(m,[E[0]],null);else if(this.emptyMerge){var M=r[c.$namespaceId]===g?-1:r[c.$namespaceId],R=m[c.$data]=new c.XmlObject(M,m.name||"root");r[c.$appendChild](R);this._bindElement(m,R)}}}}catch(t){h.e(t)}finally{h.f()}o.forEach((function(t){return t[c.$getParent]()[c.$removeChild](t)}))}}]);return Binder}();r.Binder=m},(t,r,o)=>{"use strict";var c=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 l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),u=o(218),h=o(220),d=o(224),g=o(225),m=o(219),y=o(4),v=o(226),k=o(150),_=o(221);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var c=_superPropBase(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return _get.apply(this,arguments)}function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return 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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var w=c.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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}var S=h.NamespaceIds.template.id,C="http://www.w3.org/2000/svg",x=/^H(\d+)$/,O=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),T=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function getBorderDims(t){if(!t||!t.border)return{w:0,h:0};var r=t.border[u.$getExtra]();return r?{w:r.widths[0]+r.widths[2]+r.insets[0]+r.insets[2],h:r.widths[1]+r.widths[3]+r.insets[1]+r.insets[3]}:{w:0,h:0}}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 Bt({});t[u.$appendChild](o);t.value=o}t.value[u.$setValue](r)}function getContainedChildren(t){var r,o,c;return l.default.wrap((function getContainedChildren$(l){for(;;)switch(l.prev=l.next){case 0:r=_createForOfIteratorHelper(t[u.$getChildren]());l.prev=1;r.s();case 3:if((o=r.n()).done){l.next=12;break}if(!((c=o.value)instanceof St)){l.next=8;break}return l.delegateYield(c[u.$getContainedChildren](),"t0",7);case 7:return l.abrupt("continue",10);case 8:l.next=10;return c;case 10:l.next=3;break;case 12:l.next=17;break;case 14:l.prev=14;l.t1=l.catch(1);r.e(l.t1);case 17:l.prev=17;r.f();return l.finish(17);case 20:case"end":return l.stop()}}),w,null,[[1,14,17,20]])}function setTabIndex(t){for(;t;){if(!t.traversal){t[u.$tabIndex]=t[u.$getParent]()[u.$tabIndex];return}if(t[u.$tabIndex])return;var r,o=null,c=_createForOfIteratorHelper(t.traversal[u.$getChildren]());try{for(c.s();!(r=c.n()).done;){var l=r.value;if("next"===l.operation){o=l;break}}}catch(t){c.e(t)}finally{c.f()}if(!o||!o.ref){t[u.$tabIndex]=t[u.$getParent]()[u.$tabIndex];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]}}function applyAssist(t,r){var o=t.assist;if(o){var c=o[u.$toHTML]();c&&(r.title=c);var l=o.role.match(x);if(l){var h=l[1];r.role="heading";r["aria-level"]=h}}if("table"===t.layout)r.role="table";else if("row"===t.layout)r.role="row";else{var d=t[u.$getParent]();"row"===d.layout&&(d.assist&&"TH"===d.assist.role?r.role="columnheader":r.role="cell")}}function ariaLabel(t){if(!t.assist)return null;var r=t.assist;return r.speak&&""!==r.speak[u.$content]?r.speak[u.$content]:r.toolTip?r.toolTip[u.$content]:null}function valueToHtml(t){return m.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 c=r[u.$extra],l=c.currentPageArea,h=c.currentContentArea;if("pageArea"===t.targetType){o instanceof tt||(o=null);if(t.startNew){t[u.$extra].target=o||l;return!0}if(o&&o!==l){t[u.$extra].target=o;return!0}return!1}o instanceof re||(o=null);var d,g=o&&o[u.$getParent](),m=g;if(t.startNew)if(o){var y=g.contentArea.children,v=y.indexOf(h),k=y.indexOf(o);-1!==v&&v<k&&(m=null);d=k-1}else d=l.contentArea.children.indexOf(h);else{if(!o||o===h)return!1;d=g.contentArea.children.indexOf(o)-1;m=g===l?null:g}t[u.$extra].target=m;t[u.$extra].index=d;return!0}function handleOverflow(t,r,o){var c=t[u.$getTemplateRoot](),l=c[u.$extra].noLayoutFailure,h=r[u.$getSubformParent];r[u.$getSubformParent]=function(){return t};c[u.$extra].noLayoutFailure=!0;var d=r[u.$toHTML](o);t[u.$addHTML](d.html,d.bbox);c[u.$extra].noLayoutFailure=l;r[u.$getSubformParent]=h}var E=function(t){_inherits(AppearanceFilter,t);var r=_createSuper(AppearanceFilter);function AppearanceFilter(t){var o;_classCallCheck(this,AppearanceFilter);(o=r.call(this,S,"appearanceFilter")).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(AppearanceFilter)}(u.StringObject),M=function(t){_inherits(Arc,t);var r=_createSuper(Arc);function Arc(t){var o;_classCallCheck(this,Arc);(o=r.call(this,S,"arc",!0)).circular=(0,m.getInteger)({data:t.circular,defaultValue:0,validate:function validate(t){return 1===t}});o.hand=(0,m.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.startAngle=(0,m.getFloat)({data:t.startAngle,defaultValue:0,validate:function validate(t){return!0}});o.sweepAngle=(0,m.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 de({}),o=r[u.$toStyle](),c=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(c,this.fill[u.$toStyle]()):c.fill="transparent";c.strokeWidth=(0,g.measureToString)("visible"===r.presence?r.thickness:0);c.stroke=o.color;var l={xmlns:C,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)t={name:"ellipse",attributes:{xmlns:C,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:c}};else{var h=this.startAngle*Math.PI/180,d=this.sweepAngle*Math.PI/180,y=this.sweepAngle>180?1:0,v=50*(1+Math.cos(h)),k=50*(1-Math.sin(h)),_=50*(1+Math.cos(h+d)),w=50*(1-Math.sin(h+d));t={name:"path",attributes:{xmlns:C,d:"M ".concat(v," ").concat(k," A 50 50 0 ").concat(y," 0 ").concat(_," ").concat(w),vectorEffect:"non-scaling-stroke",style:c}};Object.assign(l,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var S={name:"svg",children:[t],attributes:l};if(hasMargin(this[u.$getParent]()[u.$getParent]()))return m.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[S]});S.attributes.style.position="absolute";return m.HTMLResult.success(S)}}]);return Arc}(u.XFAObject),R=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,S,"area",!0)).colSpan=(0,m.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,m.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.x=(0,m.getMeasurement)(t.x,"0pt");o.y=(0,m.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:l.default.mark((function value(){return l.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.$isBindable,value:function value(){return!0}},{key:u.$addHTML,value:function value(t,r){var o=_slicedToArray(r,4),c=o[0],l=o[1],h=o[2],d=o[3];this[u.$extra].width=Math.max(this[u.$extra].width,c+h);this[u.$extra].height=Math.max(this[u.$extra].height,l+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,g.toStyle)(this,"position"),o={style:r,id:this[u.$uid],class:["xfaArea"]};(0,g.isPrintOnly)(this)&&o.class.push("xfaPrintOnly");this.name&&(o.xfaName=this.name);var c=[];this[u.$extra]={children:c,width:0,height:0,availableSpace:t};var l=this[u.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!l.success){if(l.isBreak())return l;delete this[u.$extra];return m.HTMLResult.FAILURE}r.width=(0,g.measureToString)(this[u.$extra].width);r.height=(0,g.measureToString)(this[u.$extra].height);var h={name:"div",attributes:o,children:c},d=[this.x,this.y,this[u.$extra].width,this[u.$extra].height];delete this[u.$extra];return m.HTMLResult.success(h,d)}}]);return Area}(u.XFAObject),j=function(t){_inherits(Assist,t);var r=_createSuper(Assist);function Assist(t){var o;_classCallCheck(this,Assist);(o=r.call(this,S,"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),D=function(t){_inherits(Barcode,t);var r=_createSuper(Barcode);function Barcode(t){var o;_classCallCheck(this,Barcode);(o=r.call(this,S,"barcode",!0)).charEncoding=(0,m.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-\d{2}/)}});o.checksum=(0,m.getStringOption)(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);o.dataColumnCount=(0,m.getInteger)({data:t.dataColumnCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataLength=(0,m.getInteger)({data:t.dataLength,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataPrep=(0,m.getStringOption)(t.dataPrep,["none","flateCompress"]);o.dataRowCount=(0,m.getInteger)({data:t.dataRowCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.endChar=t.endChar||"";o.errorCorrectionLevel=(0,m.getInteger)({data:t.errorCorrectionLevel,defaultValue:-1,validate:function validate(t){return t>=0&&t<=8}});o.id=t.id||"";o.moduleHeight=(0,m.getMeasurement)(t.moduleHeight,"5mm");o.moduleWidth=(0,m.getMeasurement)(t.moduleWidth,"0.25mm");o.printCheckDigit=(0,m.getInteger)({data:t.printCheckDigit,defaultValue:0,validate:function validate(t){return 1===t}});o.rowColumnRatio=(0,m.getRatio)(t.rowColumnRatio);o.startChar=t.startChar||"";o.textLocation=(0,m.getStringOption)(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);o.truncate=(0,m.getInteger)({data:t.truncate,defaultValue:0,validate:function validate(t){return 1===t}});o.type=(0,m.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,m.getStringOption)(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);o.use=t.use||"";o.usehref=t.usehref||"";o.wideNarrowRatio=(0,m.getRatio)(t.wideNarrowRatio);o.encrypt=null;o.extras=null;return o}return _createClass(Barcode)}(u.XFAObject),N=function(t){_inherits(Bind,t);var r=_createSuper(Bind);function Bind(t){var o;_classCallCheck(this,Bind);(o=r.call(this,S,"bind",!0)).match=(0,m.getStringOption)(t.match,["once","dataRef","global","none"]);o.ref=t.ref||"";o.picture=null;return o}return _createClass(Bind)}(u.XFAObject),L=function(t){_inherits(BindItems,t);var r=_createSuper(BindItems);function BindItems(t){var o;_classCallCheck(this,BindItems);(o=r.call(this,S,"bindItems")).connection=t.connection||"";o.labelRef=t.labelRef||"";o.ref=t.ref||"";o.valueRef=t.valueRef||"";return o}return _createClass(BindItems)}(u.XFAObject);r.BindItems=L;var U=function(t){_inherits(Bookend,t);var r=_createSuper(Bookend);function Bookend(t){var o;_classCallCheck(this,Bookend);(o=r.call(this,S,"bookend")).id=t.id||"";o.leader=t.leader||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Bookend)}(u.XFAObject),H=function(t){_inherits(BooleanElement,t);var r=_createSuper(BooleanElement);function BooleanElement(t){var o;_classCallCheck(this,BooleanElement);(o=r.call(this,S,"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),$=function(t){_inherits(Border,t);var r=_createSuper(Border);function Border(t){var o;_classCallCheck(this,Border);(o=r.call(this,S,"border",!0)).break=(0,m.getStringOption)(t.break,["close","open"]);o.hand=(0,m.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,m.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.$getExtra,value:function value(){if(!this[u.$extra]){var t=this.edge.children.slice();if(t.length<4)for(var r=t[t.length-1]||new de({}),o=t.length;o<4;o++)t.push(r);var c=t.map((function(t){return t.thickness})),l=[0,0,0,0];if(this.margin){l[0]=this.margin.topInset;l[1]=this.margin.rightInset;l[2]=this.margin.bottomInset;l[3]=this.margin.leftInset}this[u.$extra]={widths:c,insets:l,edges:t}}return this[u.$extra]}},{key:u.$toStyle,value:function value(){var t=this[u.$getExtra]().edges.map((function(t){var r=t[u.$toStyle]();r.color=r.color||"#000000";return r})),r=Object.create(null);this.margin&&Object.assign(r,this.margin[u.$toStyle]());this.fill&&"visible"===this.fill.presence&&Object.assign(r,this.fill[u.$toStyle]());if(this.corner.children.some((function(t){return 0!==t.radius}))){var o=this.corner.children.map((function(t){return t[u.$toStyle]()}));if(2===o.length||3===o.length)for(var c=o[o.length-1],l=o.length;l<4;l++)o.push(c);r.borderRadius=o.map((function(t){return t.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":r.borderStyle="";break;case"inactive":r.borderStyle="none";break;default:r.borderStyle=t.map((function(t){return t.style})).join(" ")}r.borderWidth=t.map((function(t){return t.width})).join(" ");r.borderColor=t.map((function(t){return t.color})).join(" ");return r}}]);return Border}(u.XFAObject),X=function(t){_inherits(Break,t);var r=_createSuper(Break);function Break(t){var o;_classCallCheck(this,Break);(o=r.call(this,S,"break",!0)).after=(0,m.getStringOption)(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.afterTarget=t.afterTarget||"";o.before=(0,m.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,m.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 _createClass(Break)}(u.XFAObject),q=function(t){_inherits(BreakAfter,t);var r=_createSuper(BreakAfter);function BreakAfter(t){var o;_classCallCheck(this,BreakAfter);(o=r.call(this,S,"breakAfter",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,m.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,m.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}return _createClass(BreakAfter)}(u.XFAObject),G=function(t){_inherits(BreakBefore,t);var r=_createSuper(BreakBefore);function BreakBefore(t){var o;_classCallCheck(this,BreakBefore);(o=r.call(this,S,"breakBefore",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,m.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,m.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 m.HTMLResult.FAILURE}}]);return BreakBefore}(u.XFAObject),z=function(t){_inherits(Button,t);var r=_createSuper(Button);function Button(t){var o;_classCallCheck(this,Button);(o=r.call(this,S,"button",!0)).highlight=(0,m.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){var r,o=this[u.$getParent]()[u.$getParent](),c={name:"button",attributes:{id:this[u.$uid],class:["xfaButton"],style:{}},children:[]},l=_createForOfIteratorHelper(o.event.children);try{for(l.s();!(r=l.n()).done;){var h=r.value;if("click"===h.activity&&h.script){var d=(0,k.recoverJsURL)(h.script[u.$content]);if(d){var y=(0,g.fixURL)(d.url);y&&c.children.push({name:"a",attributes:{id:"link"+this[u.$uid],href:y,newWindow:d.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(t){l.e(t)}finally{l.f()}return m.HTMLResult.success(c)}}]);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,S,"calculate",!0)).id=t.id||"";o.override=(0,m.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 _createClass(Calculate)}(u.XFAObject),V=function(t){_inherits(Caption,t);var r=_createSuper(Caption);function Caption(t){var o;_classCallCheck(this,Caption);(o=r.call(this,S,"caption",!0)).id=t.id||"";o.placement=(0,m.getStringOption)(t.placement,["left","bottom","inline","right","top"]);o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.reserve=Math.ceil((0,m.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,g.layoutNode)(this,{width:r,height:o})}return this[u.$extra]}},{key:u.$toHTML,value:function value(t){if(!this.value)return m.HTMLResult.EMPTY;this[u.$pushPara]();var value=this.value[u.$toHTML](t).html;if(!value){this[u.$popPara]();return m.HTMLResult.EMPTY}var r=this.reserve;if(this.reserve<=0){var o=this[u.$getExtra](t),c=o.w,l=o.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=c;break;case"top":case"bottom":this.reserve=l}}var h=[];"string"==typeof value?h.push({name:"#text",value:value}):h.push(value);var d=(0,g.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(d.width=(0,g.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(d.height=(0,g.measureToString)(this.reserve))}(0,g.setPara)(this,null,value);this[u.$popPara]();this.reserve=r;return m.HTMLResult.success({name:"div",attributes:{style:d,class:["xfaCaption"]},children:h})}}]);return Caption}(u.XFAObject),K=function(t){_inherits(Certificate,t);var r=_createSuper(Certificate);function Certificate(t){var o;_classCallCheck(this,Certificate);(o=r.call(this,S,"certificate")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Certificate)}(u.StringObject),Y=function(t){_inherits(Certificates,t);var r=_createSuper(Certificates);function Certificates(t){var o;_classCallCheck(this,Certificates);(o=r.call(this,S,"certificates",!0)).credentialServerPolicy=(0,m.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 _createClass(Certificates)}(u.XFAObject),J=function(t){_inherits(CheckButton,t);var r=_createSuper(CheckButton);function CheckButton(t){var o;_classCallCheck(this,CheckButton);(o=r.call(this,S,"checkButton",!0)).id=t.id||"";o.mark=(0,m.getStringOption)(t.mark,["default","check","circle","cross","diamond","square","star"]);o.shape=(0,m.getStringOption)(t.shape,["square","round"]);o.size=(0,m.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,c,l=(0,g.toStyle)("margin"),h=(0,g.measureToString)(this.size);l.width=l.height=h;var d,y=this[u.$getParent]()[u.$getParent](),v=y.items.children.length&&y.items.children[0][u.$toHTML]().html||[],k={on:(void 0!==v[0]?v[0]:"on").toString(),off:(void 0!==v[1]?v[1]:"off").toString()},value=y.value&&y.value[u.$text]()||"off",_=value===k.on||void 0,w=y[u.$getSubformParent](),S=y[u.$uid];if(w instanceof Ce){c=w[u.$uid];r="radio";o="xfaRadio";d=w[u.$data]&&w[u.$data][u.$uid]||w[u.$uid]}else{r="checkbox";o="xfaCheckbox";d=y[u.$data]&&y[u.$data][u.$uid]||y[u.$uid]}var C={name:"input",attributes:{class:[o],style:l,fieldId:S,dataId:d,type:r,checked:_,xfaOn:k.on,xfaOff:k.off,"aria-label":ariaLabel(y)}};c&&(C.attributes.name=c);return m.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[C]})}}]);return CheckButton}(u.XFAObject),Z=function(t){_inherits(ChoiceList,t);var r=_createSuper(ChoiceList);function ChoiceList(t){var o;_classCallCheck(this,ChoiceList);(o=r.call(this,S,"choiceList",!0)).commitOn=(0,m.getStringOption)(t.commitOn,["select","exit"]);o.id=t.id||"";o.open=(0,m.getStringOption)(t.open,["userControl","always","multiSelect","onEntry"]);o.textEntry=(0,m.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,g.toStyle)(this,"border","margin"),o=this[u.$getParent]()[u.$getParent](),c=o.font&&o.font.size||10,l={fontSize:"calc(".concat(c,"px * var(--zoom-factor))")},h=[];if(o.items.children.length>0){var d=o.items,y=0,v=0;2===d.children.length&&(v=1-(y=d.children[0].save));for(var k=d.children[y][u.$toHTML]().html,_=d.children[v][u.$toHTML]().html,w=!1,S=o.value&&o.value[u.$text]()||"",C=0,x=k.length;C<x;C++){var O={name:"option",attributes:{value:_[C]||k[C],style:l},value:k[C]};_[C]===S&&(O.attributes.selected=w=!0);h.push(O)}w||h.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var T={class:["xfaSelect"],fieldId:o[u.$uid],dataId:o[u.$data]&&o[u.$data][u.$uid]||o[u.$uid],style:r,"aria-label":ariaLabel(o)};"multiSelect"===this.open&&(T.multiple=!0);return m.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:h,attributes:T}]})}}]);return ChoiceList}(u.XFAObject),Q=function(t){_inherits(Color,t);var r=_createSuper(Color);function Color(t){var o;_classCallCheck(this,Color);(o=r.call(this,S,"color",!0)).cSpace=(0,m.getStringOption)(t.cSpace,["SRGB"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.value=t.value?(0,m.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),ee=function(t){_inherits(Comb,t);var r=_createSuper(Comb);function Comb(t){var o;_classCallCheck(this,Comb);(o=r.call(this,S,"comb")).id=t.id||"";o.numberOfCells=(0,m.getInteger)({data:t.numberOfCells,defaultValue:0,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Comb)}(u.XFAObject),te=function(t){_inherits(Connect,t);var r=_createSuper(Connect);function Connect(t){var o;_classCallCheck(this,Connect);(o=r.call(this,S,"connect",!0)).connection=t.connection||"";o.id=t.id||"";o.ref=t.ref||"";o.usage=(0,m.getStringOption)(t.usage,["exportAndImport","exportOnly","importOnly"]);o.use=t.use||"";o.usehref=t.usehref||"";o.picture=null;return o}return _createClass(Connect)}(u.XFAObject),re=function(t){_inherits(ContentArea,t);var r=_createSuper(ContentArea);function ContentArea(t){var o;_classCallCheck(this,ContentArea);(o=r.call(this,S,"contentArea",!0)).h=(0,m.getMeasurement)(t.h);o.id=t.id||"";o.name=t.name||"";o.relevant=(0,m.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=(0,m.getMeasurement)(t.w);o.x=(0,m.getMeasurement)(t.x,"0pt");o.y=(0,m.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,g.measureToString)(this.x),top:(0,g.measureToString)(this.y),width:(0,g.measureToString)(this.w),height:(0,g.measureToString)(this.h)},o=["xfaContentarea"];(0,g.isPrintOnly)(this)&&o.push("xfaPrintOnly");return m.HTMLResult.success({name:"div",children:[],attributes:{style:r,class:o,id:this[u.$uid]}})}}]);return ContentArea}(u.XFAObject),ae=function(t){_inherits(Corner,t);var r=_createSuper(Corner);function Corner(t){var o;_classCallCheck(this,Corner);(o=r.call(this,S,"corner",!0)).id=t.id||"";o.inverted=(0,m.getInteger)({data:t.inverted,defaultValue:0,validate:function validate(t){return 1===t}});o.join=(0,m.getStringOption)(t.join,["square","round"]);o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.radius=(0,m.getMeasurement)(t.radius);o.stroke=(0,m.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,m.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,g.toStyle)(this,"visibility");t.radius=(0,g.measureToString)("square"===this.join?0:this.radius);return t}}]);return Corner}(u.XFAObject),ne=function(t){_inherits(DateElement,t);var r=_createSuper(DateElement);function DateElement(t){var o;_classCallCheck(this,DateElement);(o=r.call(this,S,"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),ie=function(t){_inherits(DateTime,t);var r=_createSuper(DateTime);function DateTime(t){var o;_classCallCheck(this,DateTime);(o=r.call(this,S,"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),oe=function(t){_inherits(DateTimeEdit,t);var r=_createSuper(DateTimeEdit);function DateTimeEdit(t){var o;_classCallCheck(this,DateTimeEdit);(o=r.call(this,S,"dateTimeEdit",!0)).hScrollPolicy=(0,m.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.picker=(0,m.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,g.toStyle)(this,"border","font","margin"),o=this[u.$getParent]()[u.$getParent](),c={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,"aria-label":ariaLabel(o)}};return m.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[c]})}}]);return DateTimeEdit}(u.XFAObject),se=function(t){_inherits(Decimal,t);var r=_createSuper(Decimal);function Decimal(t){var o;_classCallCheck(this,Decimal);(o=r.call(this,S,"decimal")).fracDigits=(0,m.getInteger)({data:t.fracDigits,defaultValue:2,validate:function validate(t){return!0}});o.id=t.id||"";o.leadDigits=(0,m.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),ce=function(t){_inherits(DefaultUi,t);var r=_createSuper(DefaultUi);function DefaultUi(t){var o;_classCallCheck(this,DefaultUi);(o=r.call(this,S,"defaultUi",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return _createClass(DefaultUi)}(u.XFAObject),le=function(t){_inherits(Desc,t);var r=_createSuper(Desc);function Desc(t){var o;_classCallCheck(this,Desc);(o=r.call(this,S,"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 _createClass(Desc)}(u.XFAObject),ue=function(t){_inherits(DigestMethod,t);var r=_createSuper(DigestMethod);function DigestMethod(t){var o;_classCallCheck(this,DigestMethod);(o=r.call(this,S,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(DigestMethod)}(u.OptionObject),fe=function(t){_inherits(DigestMethods,t);var r=_createSuper(DigestMethods);function DigestMethods(t){var o;_classCallCheck(this,DigestMethods);(o=r.call(this,S,"digestMethods",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.digestMethod=new u.XFAObjectArray;return o}return _createClass(DigestMethods)}(u.XFAObject),he=function(t){_inherits(Draw,t);var r=_createSuper(Draw);function Draw(t){var o;_classCallCheck(this,Draw);(o=r.call(this,S,"draw",!0)).anchorType=(0,m.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,m.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,m.getMeasurement)(t.h):"";o.hAlign=(0,m.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,m.getMeasurement)(t.maxH,"0pt");o.maxW=(0,m.getMeasurement)(t.maxW,"0pt");o.minH=(0,m.getMeasurement)(t.minH,"0pt");o.minW=(0,m.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,m.getRelevant)(t.relevant);o.rotate=(0,m.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,m.getMeasurement)(t.w):"";o.x=(0,m.getMeasurement)(t.x,"0pt");o.y=(0,m.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){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence)return m.HTMLResult.EMPTY;(0,g.fixDimensions)(this);this[u.$pushPara]();var r=this.w,o=this.h,c=(0,g.layoutNode)(this,t),l=c.w,h=c.h,y=c.isBroken;if(l&&""===this.w){if(y&&this[u.$getSubformParent]()[u.$isThereMoreWidth]()){this[u.$popPara]();return m.HTMLResult.FAILURE}this.w=l}h&&""===this.h&&(this.h=h);setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t)){this.w=r;this.h=o;this[u.$popPara]();return m.HTMLResult.FAILURE}unsetFirstUnsplittable(this);var v=(0,g.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,g.setMinMaxDimensions)(this,v);if(v.margin){v.padding=v.margin;delete v.margin}var k=["xfaDraw"];this.font&&k.push("xfaFont");(0,g.isPrintOnly)(this)&&k.push("xfaPrintOnly");var _={style:v,id:this[u.$uid],class:k};this.name&&(_.xfaName=this.name);var w={name:"div",attributes:_,children:[]};applyAssist(this,_);var S=(0,g.computeBbox)(this,w,t),value=this.value?this.value[u.$toHTML](t).html:null;if(null===value){this.w=r;this.h=o;this[u.$popPara]();return m.HTMLResult.success((0,g.createWrapper)(this,w),S)}w.children.push(value);(0,g.setPara)(this,v,value);this.w=r;this.h=o;this[u.$popPara]();return m.HTMLResult.success((0,g.createWrapper)(this,w),S)}}]);return Draw}(u.XFAObject),de=function(t){_inherits(Edge,t);var r=_createSuper(Edge);function Edge(t){var o;_classCallCheck(this,Edge);(o=r.call(this,S,"edge",!0)).cap=(0,m.getStringOption)(t.cap,["square","butt","round"]);o.id=t.id||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.stroke=(0,m.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,m.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,g.toStyle)(this,"visibility");Object.assign(t,{linecap:this.cap,width:(0,g.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),pe=function(t){_inherits(Encoding,t);var r=_createSuper(Encoding);function Encoding(t){var o;_classCallCheck(this,Encoding);(o=r.call(this,S,"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 _createClass(Encoding)}(u.OptionObject),ge=function(t){_inherits(Encodings,t);var r=_createSuper(Encodings);function Encodings(t){var o;_classCallCheck(this,Encodings);(o=r.call(this,S,"encodings",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encoding=new u.XFAObjectArray;return o}return _createClass(Encodings)}(u.XFAObject),me=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){var o;_classCallCheck(this,Encrypt);(o=r.call(this,S,"encrypt",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=null;return o}return _createClass(Encrypt)}(u.XFAObject),ye=function(t){_inherits(EncryptData,t);var r=_createSuper(EncryptData);function EncryptData(t){var o;_classCallCheck(this,EncryptData);(o=r.call(this,S,"encryptData",!0)).id=t.id||"";o.operation=(0,m.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 _createClass(EncryptData)}(u.XFAObject),ve=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,S,"encryption",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new u.XFAObjectArray;return o}return _createClass(Encryption)}(u.XFAObject),be=function(t){_inherits(EncryptionMethod,t);var r=_createSuper(EncryptionMethod);function EncryptionMethod(t){var o;_classCallCheck(this,EncryptionMethod);(o=r.call(this,S,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(EncryptionMethod)}(u.OptionObject),ke=function(t){_inherits(EncryptionMethods,t);var r=_createSuper(EncryptionMethods);function EncryptionMethods(t){var o;_classCallCheck(this,EncryptionMethods);(o=r.call(this,S,"encryptionMethods",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encryptionMethod=new u.XFAObjectArray;return o}return _createClass(EncryptionMethods)}(u.XFAObject),_e=function(t){_inherits(Event,t);var r=_createSuper(Event);function Event(t){var o;_classCallCheck(this,Event);(o=r.call(this,S,"event",!0)).activity=(0,m.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,m.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 _createClass(Event)}(u.XFAObject),we=function(t){_inherits(ExData,t);var r=_createSuper(ExData);function ExData(t){var o;_classCallCheck(this,ExData);(o=r.call(this,S,"exData")).contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.maxLength=(0,m.getInteger)({data:t.maxLength,defaultValue:-1,validate:function validate(t){return t>=-1}});o.name=t.name||"";o.rid=t.rid||"";o.transferEncoding=(0,m.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):m.HTMLResult.EMPTY}}]);return ExData}(u.ContentObject),Se=function(t){_inherits(ExObject,t);var r=_createSuper(ExObject);function ExObject(t){var o;_classCallCheck(this,ExObject);(o=r.call(this,S,"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 _createClass(ExObject)}(u.XFAObject),Ce=function(t){_inherits(ExclGroup,t);var r=_createSuper(ExclGroup);function ExclGroup(t){var o;_classCallCheck(this,ExclGroup);(o=r.call(this,S,"exclGroup",!0)).access=(0,m.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,m.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,m.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,m.getMeasurement)(t.h):"";o.hAlign=(0,m.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,m.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.maxH=(0,m.getMeasurement)(t.maxH,"0pt");o.maxW=(0,m.getMeasurement)(t.maxW,"0pt");o.minH=(0,m.getMeasurement)(t.minH,"0pt");o.minW=(0,m.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,m.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,m.getMeasurement)(t.w):"";o.x=(0,m.getMeasurement)(t.x,"0pt");o.y=(0,m.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 c=r.value;if(!c.value){var l=new Bt({});c[u.$appendChild](l);c.value=l}c.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){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return m.HTMLResult.EMPTY;(0,g.fixDimensions)(this);var r=[],o={id:this[u.$uid],class:[]};(0,g.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 c=this[u.$isSplittable]();c||setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t))return m.HTMLResult.FAILURE;var l=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,g.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),v=["xfaExclgroup"],k=(0,g.layoutClass)(this);k&&v.push(k);(0,g.isPrintOnly)(this)&&v.push("xfaPrintOnly");o.style=y;o.class=v;this.name&&(o.xfaName=this.name);this[u.$pushPara]();for(var _="lr-tb"===this.layout||"rl-tb"===this.layout,w=_?2:1;this[u.$extra].attempt<w;this[u.$extra].attempt++){_&&1===this[u.$extra].attempt&&(this[u.$extra].numberInLine=0);var S=this[u.$childrenToHTML]({filter:l,include:!0});if(S.success)break;if(S.isBreak()){this[u.$popPara]();return S}if(_&&0===this[u.$extra].attempt&&0===this[u.$extra].numberInLine&&!this[u.$getTemplateRoot]()[u.$extra].noLayoutFailure){this[u.$extra].attempt=w;break}}this[u.$popPara]();c||unsetFirstUnsplittable(this);if(this[u.$extra].attempt===w){c||delete this[u.$extra];return m.HTMLResult.FAILURE}var C=0,x=0;if(this.margin){C=this.margin.leftInset+this.margin.rightInset;x=this.margin.topInset+this.margin.bottomInset}var O=Math.max(this[u.$extra].width+C,this.w||0),T=Math.max(this[u.$extra].height+x,this.h||0),E=[this.x,this.y,O,T];""===this.w&&(y.width=(0,g.measureToString)(O));""===this.h&&(y.height=(0,g.measureToString)(T));var M={name:"div",attributes:o,children:r};applyAssist(this,o);delete this[u.$extra];return m.HTMLResult.success((0,g.createWrapper)(this,M),E)}}]);return ExclGroup}(u.XFAObject),xe=function(t){_inherits(Execute,t);var r=_createSuper(Execute);function Execute(t){var o;_classCallCheck(this,Execute);(o=r.call(this,S,"execute")).connection=t.connection||"";o.executeType=(0,m.getStringOption)(t.executeType,["import","remerge"]);o.id=t.id||"";o.runAt=(0,m.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Execute)}(u.XFAObject),Oe=function(t){_inherits(Extras,t);var r=_createSuper(Extras);function Extras(t){var o;_classCallCheck(this,Extras);(o=r.call(this,S,"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 _createClass(Extras)}(u.XFAObject),Ae=function(t){_inherits(Field,t);var r=_createSuper(Field);function Field(t){var o;_classCallCheck(this,Field);(o=r.call(this,S,"field",!0)).access=(0,m.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,m.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,m.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,m.getMeasurement)(t.h):"";o.hAlign=(0,m.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,m.getMeasurement)(t.maxH,"0pt");o.maxW=(0,m.getMeasurement)(t.maxW,"0pt");o.minH=(0,m.getMeasurement)(t.minH,"0pt");o.minW=(0,m.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,m.getRelevant)(t.relevant);o.rotate=(0,m.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,m.getMeasurement)(t.w):"";o.x=(0,m.getMeasurement)(t.x,"0pt");o.y=(0,m.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){setTabIndex(this);if(!this.ui){this.ui=new jt({});this.ui[u.$globalData]=this[u.$globalData];this[u.$appendChild](this.ui);var r;switch(this.items.children.length){case 0:r=new Tt({});this.ui.textEdit=r;break;case 1:r=new J({});this.ui.checkButton=r;break;case 2:r=new Z({});this.ui.choiceList=r}this.ui[u.$appendChild](r)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return m.HTMLResult.EMPTY;this.caption&&delete this.caption[u.$extra];this[u.$pushPara]();var o=this.caption?this.caption[u.$toHTML](t).html:null,c=this.w,l=this.h,h=0,y=0;if(this.margin){h=this.margin.leftInset+this.margin.rightInset;y=this.margin.topInset+this.margin.bottomInset}var k=null;if(""===this.w||""===this.h){var _=null,w=null,S=0,C=0;if(this.ui.checkButton)S=C=this.ui.checkButton.size;else{var x=(0,g.layoutNode)(this,t),O=x.w,T=x.h;if(null!==O){S=O;C=T}else C=(0,v.getMetrics)(this.font,!0).lineNoGap}S+=(k=getBorderDims(this.ui[u.$getExtra]())).w;C+=k.h;if(this.caption){var E=this.caption[u.$getExtra](t),M=E.w,R=E.h;if(E.isBroken&&this[u.$getSubformParent]()[u.$isThereMoreWidth]()){this[u.$popPara]();return m.HTMLResult.FAILURE}_=M;w=R;switch(this.caption.placement){case"left":case"right":case"inline":_+=S;break;case"top":case"bottom":w+=C}}else{_=S;w=C}if(_&&""===this.w){_+=h;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<_?_:this.minW)}if(w&&""===this.h){w+=y;this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<w?w:this.minH)}}this[u.$popPara]();(0,g.fixDimensions)(this);setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t)){this.w=c;this.h=l;this[u.$popPara]();return m.HTMLResult.FAILURE}unsetFirstUnsplittable(this);var j=(0,g.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,g.setMinMaxDimensions)(this,j);var D=["xfaField"];this.font&&D.push("xfaFont");(0,g.isPrintOnly)(this)&&D.push("xfaPrintOnly");var N={style:j,id:this[u.$uid],class:D};if(j.margin){j.padding=j.margin;delete j.margin}(0,g.setAccess)(this,D);this.name&&(N.xfaName=this.name);var L=[],U={name:"div",attributes:N,children:L};applyAssist(this,N);var H=this.border?this.border[u.$toStyle]():null,$=(0,g.computeBbox)(this,U,t),X=this.ui[u.$toHTML]().html;if(!X){Object.assign(j,H);return m.HTMLResult.success((0,g.createWrapper)(this,U),$)}this[u.$tabIndex]&&(X.children&&X.children[0]?X.children[0].attributes.tabindex=this[u.$tabIndex]:X.attributes.tabindex=this[u.$tabIndex]);X.attributes.style||(X.attributes.style=Object.create(null));var q=null;if(this.ui.button){if(1===X.children.length){q=_slicedToArray(X.children.splice(0,1),1)[0]}Object.assign(X.attributes.style,H)}else Object.assign(j,H);L.push(X);if(this.value)if(this.ui.imageEdit)X.children.push(this.value[u.$toHTML]().html);else if(!this.ui.button){var G="";if(this.value.exData)G=this.value.exData[u.$text]();else if(this.value.text)G=this.value.text[u.$getExtra]();else{var z=this.value[u.$toHTML]().html;null!==z&&(G=z.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(X.children[0].attributes.maxLength=this.value.text.maxChars);if(G){if(this.ui.numericEdit){G=parseFloat(G);G=isNaN(G)?"":G.toString()}"textarea"===X.children[0].name?X.children[0].attributes.textContent=G:X.children[0].attributes.value=G}}if(!this.ui.imageEdit&&X.children&&X.children[0]&&this.h){k=k||getBorderDims(this.ui[u.$getExtra]());var W=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(W=this.caption.reserve)<=0&&(W=this.caption[u.$getExtra](t).h);var V=this.h-W-y-k.h;X.children[0].attributes.style.height=(0,g.measureToString)(V)}else X.children[0].attributes.style.height="100%"}q&&X.children.push(q);if(!o){X.attributes.class&&X.attributes.class.push("xfaLeft");this.w=c;this.h=l;return m.HTMLResult.success((0,g.createWrapper)(this,U),$)}if(this.ui.button){j.padding&&delete j.padding;"div"===o.name&&(o.name="span");X.children.push(o);return m.HTMLResult.success(U,$)}this.ui.checkButton&&(o.attributes.class[0]="xfaCaptionForCheckButton");X.attributes.class||(X.attributes.class=[]);X.children.splice(0,0,o);switch(this.caption.placement){case"left":case"inline":X.attributes.class.push("xfaLeft");break;case"right":X.attributes.class.push("xfaRight");break;case"top":X.attributes.class.push("xfaTop");break;case"bottom":X.attributes.class.push("xfaBottom")}this.w=c;this.h=l;return m.HTMLResult.success((0,g.createWrapper)(this,U),$)}}]);return Field}(u.XFAObject);r.Field=Ae;var Pe=function(t){_inherits(Fill,t);var r=_createSuper(Fill);function Fill(t){var o;_classCallCheck(this,Fill);(o=r.call(this,S,"fill",!0)).id=t.id||"";o.presence=(0,m.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=t[u.$getParent]()[u.$getParent](),o=Object.create(null),c="color",l=c;if(t instanceof $){c="background-color";l="background";r instanceof jt&&(o.backgroundColor="white")}if(t instanceof ft||t instanceof M){c=l="fill";o.fill="white"}var h,d=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(d.s();!(h=d.n()).done;){var g=h.value;if("extras"!==g&&"color"!==g){var m=this[g];if(m instanceof u.XFAObject){var y=m[u.$toStyle](this.color);y&&(o[y.startsWith("#")?c:l]=y);return o}}}}catch(t){d.e(t)}finally{d.f()}if(this.color&&this.color.value){var v=this.color[u.$toStyle]();o[v.startsWith("#")?c:l]=v}return o}}]);return Fill}(u.XFAObject),Te=function(t){_inherits(Filter,t);var r=_createSuper(Filter);function Filter(t){var o;_classCallCheck(this,Filter);(o=r.call(this,S,"filter",!0)).addRevocationInfo=(0,m.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,m.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 _createClass(Filter)}(u.XFAObject),Fe=function(t){_inherits(Float,t);var r=_createSuper(Float);function Float(t){var o;_classCallCheck(this,Float);(o=r.call(this,S,"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),Ie=function(t){_inherits(Font,t);var r=_createSuper(Font);function Font(t){var o;_classCallCheck(this,Font);(o=r.call(this,S,"font",!0)).baselineShift=(0,m.getMeasurement)(t.baselineShift);o.fontHorizontalScale=(0,m.getFloat)({data:t.fontHorizontalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.fontVerticalScale=(0,m.getFloat)({data:t.fontVerticalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.id=t.id||"";o.kerningMode=(0,m.getStringOption)(t.kerningMode,["none","pair"]);o.letterSpacing=(0,m.getMeasurement)(t.letterSpacing,"0");o.lineThrough=(0,m.getInteger)({data:t.lineThrough,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.lineThroughPeriod=(0,m.getStringOption)(t.lineThroughPeriod,["all","word"]);o.overline=(0,m.getInteger)({data:t.overline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.overlinePeriod=(0,m.getStringOption)(t.overlinePeriod,["all","word"]);o.posture=(0,m.getStringOption)(t.posture,["normal","italic"]);o.size=(0,m.getMeasurement)(t.size,"10pt");o.typeface=t.typeface||"Courier";o.underline=(0,m.getInteger)({data:t.underline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.underlinePeriod=(0,m.getStringOption)(t.underlinePeriod,["all","word"]);o.use=t.use||"";o.usehref=t.usehref||"";o.weight=(0,m.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,g.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,g.measureToString)(this.baselineShift));t.fontKerning="none"===this.kerningMode?"none":"normal";t.letterSpacing=(0,g.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,g.measureToString)(.99*this.size);(0,g.setFontFamily)(this,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),Ee=function(t){_inherits(Format,t);var r=_createSuper(Format);function Format(t){var o;_classCallCheck(this,Format);(o=r.call(this,S,"format",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;return o}return _createClass(Format)}(u.XFAObject),Me=function(t){_inherits(Handler,t);var r=_createSuper(Handler);function Handler(t){var o;_classCallCheck(this,Handler);(o=r.call(this,S,"handler")).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Handler)}(u.StringObject),Re=function(t){_inherits(Hyphenation,t);var r=_createSuper(Hyphenation);function Hyphenation(t){var o;_classCallCheck(this,Hyphenation);(o=r.call(this,S,"hyphenation")).excludeAllCaps=(0,m.getInteger)({data:t.excludeAllCaps,defaultValue:0,validate:function validate(t){return 1===t}});o.excludeInitialCap=(0,m.getInteger)({data:t.excludeInitialCap,defaultValue:0,validate:function validate(t){return 1===t}});o.hyphenate=(0,m.getInteger)({data:t.hyphenate,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.pushCharacterCount=(0,m.getInteger)({data:t.pushCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.remainCharacterCount=(0,m.getInteger)({data:t.remainCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";o.wordCharacterCount=(0,m.getInteger)({data:t.wordCharacterCount,defaultValue:7,validate:function validate(t){return t>=0}});return o}return _createClass(Hyphenation)}(u.XFAObject),je=function(t){_inherits(Image,t);var r=_createSuper(Image);function Image(t){var o;_classCallCheck(this,Image);(o=r.call(this,S,"image")).aspect=(0,m.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,m.getStringOption)(t.transferEncoding,["base64","none","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Image,[{key:u.$toHTML,value:function value(){if(this.contentType&&!O.has(this.contentType.toLowerCase()))return m.HTMLResult.EMPTY;var t=this[u.$globalData].images&&this[u.$globalData].images.get(this.href);if(!t&&(this.href||!this[u.$content]))return m.HTMLResult.EMPTY;t||"base64"!==this.transferEncoding||(t=(0,y.stringToBytes)(atob(this[u.$content])));if(!t)return m.HTMLResult.EMPTY;if(!this.contentType){var r,o=_createForOfIteratorHelper(T);try{for(o.s();!(r=o.n()).done;){var c=_slicedToArray(r.value,2),l=c[0],h=c[1];if(t.length>l.length&&l.every((function(r,o){return r===t[o]}))){this.contentType=h;break}}}catch(t){o.e(t)}finally{o.f()}if(!this.contentType)return m.HTMLResult.EMPTY}var d,g=new Blob([t],{type:this.contentType});switch(this.aspect){case"fit":case"actual":break;case"height":d={height:"100%",objectFit:"fill"};break;case"none":d={width:"100%",height:"100%",objectFit:"fill"};break;case"width":d={width:"100%",objectFit:"fill"}}var v=this[u.$getParent]();return m.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:d,src:URL.createObjectURL(g),alt:v?ariaLabel(v[u.$getParent]()):null}})}}]);return Image}(u.StringObject),De=function(t){_inherits(ImageEdit,t);var r=_createSuper(ImageEdit);function ImageEdit(t){var o;_classCallCheck(this,ImageEdit);(o=r.call(this,S,"imageEdit",!0)).data=(0,m.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?m.HTMLResult.success({name:"div",children:[],attributes:{}}):m.HTMLResult.EMPTY}}]);return ImageEdit}(u.XFAObject),Be=function(t){_inherits(Integer,t);var r=_createSuper(Integer);function Integer(t){var o;_classCallCheck(this,Integer);(o=r.call(this,S,"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),Ne=function(t){_inherits(Issuers,t);var r=_createSuper(Issuers);function Issuers(t){var o;_classCallCheck(this,Issuers);(o=r.call(this,S,"issuers",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new u.XFAObjectArray;return o}return _createClass(Issuers)}(u.XFAObject),Le=function(t){_inherits(Items,t);var r=_createSuper(Items);function Items(t){var o;_classCallCheck(this,Items);(o=r.call(this,S,"items",!0)).id=t.id||"";o.name=t.name||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.ref=t.ref||"";o.save=(0,m.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 c=t.value;r.push(c[u.$text]())}}catch(t){o.e(t)}finally{o.f()}return m.HTMLResult.success(r)}}]);return Items}(u.XFAObject);r.Items=Le;var Ue=function(t){_inherits(Keep,t);var r=_createSuper(Keep);function Keep(t){var o;_classCallCheck(this,Keep);(o=r.call(this,S,"keep",!0)).id=t.id||"";var c=["none","contentArea","pageArea"];o.intact=(0,m.getStringOption)(t.intact,c);o.next=(0,m.getStringOption)(t.next,c);o.previous=(0,m.getStringOption)(t.previous,c);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return _createClass(Keep)}(u.XFAObject),He=function(t){_inherits(KeyUsage,t);var r=_createSuper(KeyUsage);function KeyUsage(t){var o;_classCallCheck(this,KeyUsage);var c=["","yes","no"];(o=r.call(this,S,"keyUsage")).crlSign=(0,m.getStringOption)(t.crlSign,c);o.dataEncipherment=(0,m.getStringOption)(t.dataEncipherment,c);o.decipherOnly=(0,m.getStringOption)(t.decipherOnly,c);o.digitalSignature=(0,m.getStringOption)(t.digitalSignature,c);o.encipherOnly=(0,m.getStringOption)(t.encipherOnly,c);o.id=t.id||"";o.keyAgreement=(0,m.getStringOption)(t.keyAgreement,c);o.keyCertSign=(0,m.getStringOption)(t.keyCertSign,c);o.keyEncipherment=(0,m.getStringOption)(t.keyEncipherment,c);o.nonRepudiation=(0,m.getStringOption)(t.nonRepudiation,c);o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(KeyUsage)}(u.XFAObject),$e=function(t){_inherits(Line,t);var r=_createSuper(Line);function Line(t){var o;_classCallCheck(this,Line);(o=r.call(this,S,"line",!0)).hand=(0,m.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.slope=(0,m.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,c,l=this[u.$getParent]()[u.$getParent](),h=this.edge?this.edge:new de({}),d=h[u.$toStyle](),y=Object.create(null),v="visible"===h.presence?h.thickness:0;y.strokeWidth=(0,g.measureToString)(v);y.stroke=d.color;var k="100%",_="100%";if(l.w<=v){t="50%";r=0;o="50%";c="100%";k=y.strokeWidth}else if(l.h<=v){t=0;r="50%";o="100%";c="50%";_=y.strokeWidth}else if("\\"===this.slope){t=0;r=0;o="100%";c="100%"}else{t=0;r="100%";o="100%";c=0}var w={name:"svg",children:[{name:"line",attributes:{xmlns:C,x1:t,y1:r,x2:o,y2:c,style:y}}],attributes:{xmlns:C,width:k,height:_,style:{overflow:"visible"}}};if(hasMargin(l))return m.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[w]});w.attributes.style.position="absolute";return m.HTMLResult.success(w)}}]);return Line}(u.XFAObject),Xe=function(t){_inherits(Linear,t);var r=_createSuper(Linear);function Linear(t){var o;_classCallCheck(this,Linear);(o=r.call(this,S,"linear",!0)).id=t.id||"";o.type=(0,m.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),qe=function(t){_inherits(LockDocument,t);var r=_createSuper(LockDocument);function LockDocument(t){var o;_classCallCheck(this,LockDocument);(o=r.call(this,S,"lockDocument")).id=t.id||"";o.type=(0,m.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,m.getStringOption)(this[u.$content],["auto","0","1"])}}]);return LockDocument}(u.ContentObject),Ge=function(t){_inherits(Manifest,t);var r=_createSuper(Manifest);function Manifest(t){var o;_classCallCheck(this,Manifest);(o=r.call(this,S,"manifest",!0)).action=(0,m.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 _createClass(Manifest)}(u.XFAObject),ze=function(t){_inherits(Margin,t);var r=_createSuper(Margin);function Margin(t){var o;_classCallCheck(this,Margin);(o=r.call(this,S,"margin",!0)).bottomInset=(0,m.getMeasurement)(t.bottomInset,"0");o.id=t.id||"";o.leftInset=(0,m.getMeasurement)(t.leftInset,"0");o.rightInset=(0,m.getMeasurement)(t.rightInset,"0");o.topInset=(0,m.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,g.measureToString)(this.topInset)+" "+(0,g.measureToString)(this.rightInset)+" "+(0,g.measureToString)(this.bottomInset)+" "+(0,g.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,S,"mdp")).id=t.id||"";o.permissions=(0,m.getInteger)({data:t.permissions,defaultValue:2,validate:function validate(t){return 1===t||3===t}});o.signatureType=(0,m.getStringOption)(t.signatureType,["filler","author"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Mdp)}(u.XFAObject),Ve=function(t){_inherits(Medium,t);var r=_createSuper(Medium);function Medium(t){var o;_classCallCheck(this,Medium);(o=r.call(this,S,"medium")).id=t.id||"";o.imagingBBox=(0,m.getBBox)(t.imagingBBox);o.long=(0,m.getMeasurement)(t.long);o.orientation=(0,m.getStringOption)(t.orientation,["portrait","landscape"]);o.short=(0,m.getMeasurement)(t.short);o.stock=t.stock||"";o.trayIn=(0,m.getStringOption)(t.trayIn,["auto","delegate","pageFront"]);o.trayOut=(0,m.getStringOption)(t.trayOut,["auto","delegate"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Medium)}(u.XFAObject),Ke=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,S,"message",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.text=new u.XFAObjectArray;return o}return _createClass(Message)}(u.XFAObject),Ye=function(t){_inherits(NumericEdit,t);var r=_createSuper(NumericEdit);function NumericEdit(t){var o;_classCallCheck(this,NumericEdit);(o=r.call(this,S,"numericEdit",!0)).hScrollPolicy=(0,m.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,g.toStyle)(this,"border","font","margin"),o=this[u.$getParent]()[u.$getParent](),c={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,"aria-label":ariaLabel(o)}};return m.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[c]})}}]);return NumericEdit}(u.XFAObject),Je=function(t){_inherits(Occur,t);var r=_createSuper(Occur);function Occur(t){var o;_classCallCheck(this,Occur);(o=r.call(this,S,"occur",!0)).id=t.id||"";o.initial=""!==t.initial?(0,m.getInteger)({data:t.initial,defaultValue:"",validate:function validate(t){return!0}}):"";o.max=""!==t.max?(0,m.getInteger)({data:t.max,defaultValue:1,validate:function validate(t){return!0}}):"";o.min=""!==t.min?(0,m.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}_createClass(Occur,[{key:u.$clean,value:function value(){var t=this[u.$getParent](),r=this.min;""===this.min&&(this.min=t instanceof tt||t instanceof rt?0:1);""===this.max&&(this.max=""===r?t instanceof tt||t instanceof rt?-1:1:this.min);-1!==this.max&&this.max<this.min&&(this.max=this.min);""===this.initial&&(this.initial=t instanceof At?1:this.min)}}]);return Occur}(u.XFAObject),Ze=function(t){_inherits(Oid,t);var r=_createSuper(Oid);function Oid(t){var o;_classCallCheck(this,Oid);(o=r.call(this,S,"oid")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Oid)}(u.StringObject),Qe=function(t){_inherits(Oids,t);var r=_createSuper(Oids);function Oids(t){var o;_classCallCheck(this,Oids);(o=r.call(this,S,"oids",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.oid=new u.XFAObjectArray;return o}return _createClass(Oids)}(u.XFAObject),et=function(t){_inherits(Overflow,t);var r=_createSuper(Overflow);function Overflow(t){var o;_classCallCheck(this,Overflow);(o=r.call(this,S,"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),c=r[u.$searchNode](this.leader,t),l=r[u.$searchNode](this.trailer,t);this[u.$extra]={target:o&&o[0]||null,leader:c&&c[0]||null,trailer:l&&l[0]||null,addLeader:!1,addTrailer:!1}}return this[u.$extra]}}]);return Overflow}(u.XFAObject),tt=function(t){_inherits(PageArea,t);var r=_createSuper(PageArea);function PageArea(t){var o;_classCallCheck(this,PageArea);(o=r.call(this,S,"pageArea",!0)).blankOrNotBlank=(0,m.getStringOption)(t.blankOrNotBlank,["any","blank","notBlank"]);o.id=t.id||"";o.initialNumber=(0,m.getInteger)({data:t.initialNumber,defaultValue:1,validate:function validate(t){return!0}});o.name=t.name||"";o.numbered=(0,m.getInteger)({data:t.numbered,defaultValue:1,validate:function validate(t){return!0}});o.oddOrEven=(0,m.getStringOption)(t.oddOrEven,["any","even","odd"]);o.pagePosition=(0,m.getStringOption)(t.pagePosition,["any","first","last","only","rest"]);o.relevant=(0,m.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,g.measureToString)(this.medium.short);r.height=(0,g.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 m.HTMLResult.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[u.$uid],style:r,xfaName:this.name}})}}]);return PageArea}(u.XFAObject),rt=function(t){_inherits(PageSet,t);var r=_createSuper(PageSet);function PageSet(t){var o;_classCallCheck(this,PageSet);(o=r.call(this,S,"pageSet",!0)).duplexImposition=(0,m.getStringOption)(t.duplexImposition,["longEdge","shortEdge"]);o.id=t.id||"";o.name=t.name||"";o.relation=(0,m.getStringOption)(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);o.relevant=(0,m.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,c=_createForOfIteratorHelper(this.pageSet.children);try{for(c.s();!(o=c.n()).done;){o.value[u.$cleanPage]()}}catch(t){c.e(t)}finally{c.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",c=0===r?"first":"rest",l=this.pageArea.children.find((function(t){return t.oddOrEven===o&&t.pagePosition===c}));return l||((l=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&t.pagePosition===c})))?l:(l=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&"any"===t.pagePosition})))||this.pageArea.children[0])}}]);return PageSet}(u.XFAObject),at=function(t){_inherits(Para,t);var r=_createSuper(Para);function Para(t){var o;_classCallCheck(this,Para);(o=r.call(this,S,"para",!0)).hAlign=(0,m.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.lineHeight=t.lineHeight?(0,m.getMeasurement)(t.lineHeight,"0pt"):"";o.marginLeft=t.marginLeft?(0,m.getMeasurement)(t.marginLeft,"0pt"):"";o.marginRight=t.marginRight?(0,m.getMeasurement)(t.marginRight,"0pt"):"";o.orphans=(0,m.getInteger)({data:t.orphans,defaultValue:0,validate:function validate(t){return t>=0}});o.preserve=t.preserve||"";o.radixOffset=t.radixOffset?(0,m.getMeasurement)(t.radixOffset,"0pt"):"";o.spaceAbove=t.spaceAbove?(0,m.getMeasurement)(t.spaceAbove,"0pt"):"";o.spaceBelow=t.spaceBelow?(0,m.getMeasurement)(t.spaceBelow,"0pt"):"";o.tabDefault=t.tabDefault?(0,m.getMeasurement)(o.tabDefault):"";o.tabStops=(t.tabStops||"").trim().split(/\s+/).map((function(t,r){return r%2==1?(0,m.getMeasurement)(t):t}));o.textIndent=t.textIndent?(0,m.getMeasurement)(t.textIndent,"0pt"):"";o.use=t.use||"";o.usehref=t.usehref||"";o.vAlign=(0,m.getStringOption)(t.vAlign,["top","bottom","middle"]);o.widows=(0,m.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,g.toStyle)(this,"hAlign");""!==this.marginLeft&&(t.paddingLeft=(0,g.measureToString)(this.marginLeft));""!==this.marginRight&&(t.paddingight=(0,g.measureToString)(this.marginRight));""!==this.spaceAbove&&(t.paddingTop=(0,g.measureToString)(this.spaceAbove));""!==this.spaceBelow&&(t.paddingBottom=(0,g.measureToString)(this.spaceBelow));if(""!==this.textIndent){t.textIndent=(0,g.measureToString)(this.textIndent);(0,g.fixTextIndent)(t)}this.lineHeight>0&&(t.lineHeight=(0,g.measureToString)(this.lineHeight));""!==this.tabDefault&&(t.tabSize=(0,g.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(t,this.hyphenatation[u.$toStyle]());return t}}]);return Para}(u.XFAObject),nt=function(t){_inherits(PasswordEdit,t);var r=_createSuper(PasswordEdit);function PasswordEdit(t){var o;_classCallCheck(this,PasswordEdit);(o=r.call(this,S,"passwordEdit",!0)).hScrollPolicy=(0,m.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 _createClass(PasswordEdit)}(u.XFAObject),it=function(t){_inherits(Pattern,t);var r=_createSuper(Pattern);function Pattern(t){var o;_classCallCheck(this,Pattern);(o=r.call(this,S,"pattern",!0)).id=t.id||"";o.type=(0,m.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",c="".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(c,") ").concat(o,"(to right,").concat(c,")");case"crossDiagonal":return"".concat(o,"(45deg,").concat(c,") ").concat(o,"(-45deg,").concat(c,")");case"diagonalLeft":return"".concat(o,"(45deg,").concat(c,")");case"diagonalRight":return"".concat(o,"(-45deg,").concat(c,")");case"horizontal":return"".concat(o,"(to top,").concat(c,")");case"vertical":return"".concat(o,"(to right,").concat(c,")")}return""}}]);return Pattern}(u.XFAObject),ot=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){var o;_classCallCheck(this,Picture);(o=r.call(this,S,"picture")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Picture)}(u.StringObject),st=function(t){_inherits(Proto,t);var r=_createSuper(Proto);function Proto(t){var o;_classCallCheck(this,Proto);(o=r.call(this,S,"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 _createClass(Proto)}(u.XFAObject),ct=function(t){_inherits(Radial,t);var r=_createSuper(Radial);function Radial(t){var o;_classCallCheck(this,Radial);(o=r.call(this,S,"radial",!0)).id=t.id||"";o.type=(0,m.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),lt=function(t){_inherits(Reason,t);var r=_createSuper(Reason);function Reason(t){var o;_classCallCheck(this,Reason);(o=r.call(this,S,"reason")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Reason)}(u.StringObject),ut=function(t){_inherits(Reasons,t);var r=_createSuper(Reasons);function Reasons(t){var o;_classCallCheck(this,Reasons);(o=r.call(this,S,"reasons",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.reason=new u.XFAObjectArray;return o}return _createClass(Reasons)}(u.XFAObject),ft=function(t){_inherits(Rectangle,t);var r=_createSuper(Rectangle);function Rectangle(t){var o;_classCallCheck(this,Rectangle);(o=r.call(this,S,"rectangle",!0)).hand=(0,m.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 de({}),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,g.measureToString)("visible"===t.presence?t.thickness:0);o.stroke=r.color;var c=(this.corner.children.length?this.corner.children[0]:new ae({}))[u.$toStyle](),l={name:"svg",children:[{name:"rect",attributes:{xmlns:C,width:"100%",height:"100%",x:0,y:0,rx:c.radius,ry:c.radius,style:o}}],attributes:{xmlns:C,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[u.$getParent]()[u.$getParent]()))return m.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[l]});l.attributes.style.position="absolute";return m.HTMLResult.success(l)}}]);return Rectangle}(u.XFAObject),ht=function(t){_inherits(RefElement,t);var r=_createSuper(RefElement);function RefElement(t){var o;_classCallCheck(this,RefElement);(o=r.call(this,S,"ref")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(RefElement)}(u.StringObject),dt=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,S,"script")).binding=t.binding||"";o.contentType=t.contentType||"";o.id=t.id||"";o.name=t.name||"";o.runAt=(0,m.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Script)}(u.StringObject),gt=function(t){_inherits(SetProperty,t);var r=_createSuper(SetProperty);function SetProperty(t){var o;_classCallCheck(this,SetProperty);(o=r.call(this,S,"setProperty")).connection=t.connection||"";o.ref=t.ref||"";o.target=t.target||"";return o}return _createClass(SetProperty)}(u.XFAObject);r.SetProperty=gt;var mt=function(t){_inherits(SignData,t);var r=_createSuper(SignData);function SignData(t){var o;_classCallCheck(this,SignData);(o=r.call(this,S,"signData",!0)).id=t.id||"";o.operation=(0,m.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 _createClass(SignData)}(u.XFAObject),yt=function(t){_inherits(Signature,t);var r=_createSuper(Signature);function Signature(t){var o;_classCallCheck(this,Signature);(o=r.call(this,S,"signature",!0)).id=t.id||"";o.type=(0,m.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 _createClass(Signature)}(u.XFAObject),vt=function(t){_inherits(Signing,t);var r=_createSuper(Signing);function Signing(t){var o;_classCallCheck(this,Signing);(o=r.call(this,S,"signing",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new u.XFAObjectArray;return o}return _createClass(Signing)}(u.XFAObject),bt=function(t){_inherits(Solid,t);var r=_createSuper(Solid);function Solid(t){var o;_classCallCheck(this,Solid);(o=r.call(this,S,"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),kt=function(t){_inherits(Speak,t);var r=_createSuper(Speak);function Speak(t){var o;_classCallCheck(this,Speak);(o=r.call(this,S,"speak")).disable=(0,m.getInteger)({data:t.disable,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.priority=(0,m.getStringOption)(t.priority,["custom","caption","name","toolTip"]);o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Speak)}(u.StringObject),_t=function(t){_inherits(Stipple,t);var r=_createSuper(Stipple);function Stipple(t){var o;_classCallCheck(this,Stipple);(o=r.call(this,S,"stipple",!0)).id=t.id||"";o.rate=(0,m.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),wt=function(t){_inherits(Subform,t);var r=_createSuper(Subform);function Subform(t){var o;_classCallCheck(this,Subform);(o=r.call(this,S,"subform",!0)).access=(0,m.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.allowMacro=(0,m.getInteger)({data:t.allowMacro,defaultValue:0,validate:function validate(t){return 1===t}});o.anchorType=(0,m.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,m.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,m.getMeasurement)(t)}));o.h=t.h?(0,m.getMeasurement)(t.h):"";o.hAlign=(0,m.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,m.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.locale=t.locale||"";o.maxH=(0,m.getMeasurement)(t.maxH,"0pt");o.maxW=(0,m.getMeasurement)(t.maxW,"0pt");o.mergeMode=(0,m.getStringOption)(t.mergeMode,["consumeData","matchTemplate"]);o.minH=(0,m.getMeasurement)(t.minH,"0pt");o.minW=(0,m.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,m.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,m.getRelevant)(t.relevant);o.restoreState=(0,m.getStringOption)(t.restoreState,["manual","auto"]);o.scope=(0,m.getStringOption)(t.scope,["name","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,m.getMeasurement)(t.w):"";o.x=(0,m.getMeasurement)(t.x,"0pt");o.y=(0,m.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 St?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:l.default.mark((function value(){return l.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;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){setTabIndex(this);if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var r=new q({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 G({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 c=new et({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});c[u.$globalData]=this[u.$globalData];this[u.$appendChild](c);this.overflow.push(c)}this[u.$removeChild](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return m.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 l=this.breakBefore.children[0];if(handleBreak(l))return m.HTMLResult.breakNode(l)}if(this[u.$extra]&&this[u.$extra].afterBreakAfter)return m.HTMLResult.EMPTY;(0,g.fixDimensions)(this);var h=[],v={id:this[u.$uid],class:[]};(0,g.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 k=this[u.$getTemplateRoot](),_=k[u.$extra].noLayoutFailure,w=this[u.$isSplittable]();w||setFirstUnsplittable(this);if(!(0,d.checkDimensions)(this,t))return m.HTMLResult.FAILURE;var S=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var C=this[u.$getSubformParent]().columnWidths;if(Array.isArray(C)&&C.length>0){this[u.$extra].columnWidths=C;this[u.$extra].currentColumn=0}}var x=(0,g.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),O=["xfaSubform"],T=(0,g.layoutClass)(this);T&&O.push(T);v.style=x;v.class=O;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)}}this[u.$pushPara]();for(var M="lr-tb"===this.layout||"rl-tb"===this.layout,R=M?2:1;this[u.$extra].attempt<R;this[u.$extra].attempt++){M&&1===this[u.$extra].attempt&&(this[u.$extra].numberInLine=0);var j=this[u.$childrenToHTML]({filter:S,include:!0});if(j.success)break;if(j.isBreak()){this[u.$popPara]();return j}if(M&&0===this[u.$extra].attempt&&0===this[u.$extra].numberInLine&&!k[u.$extra].noLayoutFailure){this[u.$extra].attempt=R;break}}this[u.$popPara]();w||unsetFirstUnsplittable(this);k[u.$extra].noLayoutFailure=_;if(this[u.$extra].attempt===R){this.overflow&&(this[u.$getTemplateRoot]()[u.$extra].overflowNode=this.overflow);w||delete this[u.$extra];return m.HTMLResult.FAILURE}if(this.overflow){var D=this.overflow[u.$getExtra]();if(D.addTrailer){D.addTrailer=!1;handleOverflow(this,D.trailer,t)}}var N=0,L=0;if(this.margin){N=this.margin.leftInset+this.margin.rightInset;L=this.margin.topInset+this.margin.bottomInset}var U=Math.max(this[u.$extra].width+N,this.w||0),H=Math.max(this[u.$extra].height+L,this.h||0),$=[this.x,this.y,U,H];""===this.w&&(x.width=(0,g.measureToString)(U));""===this.h&&(x.height=(0,g.measureToString)(H));if(("0px"===x.width||"0px"===x.height)&&0===h.length)return m.HTMLResult.EMPTY;var X={name:"div",attributes:v,children:h};applyAssist(this,v);var z=m.HTMLResult.success((0,g.createWrapper)(this,X),$);if(this.breakAfter.children.length>=1){var W=this.breakAfter.children[0];if(handleBreak(W)){this[u.$extra].afterBreakAfter=z;return m.HTMLResult.breakNode(W)}}delete this[u.$extra];return z}}]);return Subform}(u.XFAObject),St=function(t){_inherits(SubformSet,t);var r=_createSuper(SubformSet);function SubformSet(t){var o;_classCallCheck(this,SubformSet);(o=r.call(this,S,"subformSet",!0)).id=t.id||"";o.name=t.name||"";o.relation=(0,m.getStringOption)(t.relation,["ordered","choice","unordered"]);o.relevant=(0,m.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:l.default.mark((function value(){return l.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 wt);)t=t[u.$getParent]();return t}},{key:u.$isBindable,value:function value(){return!0}}]);return SubformSet}(u.XFAObject),Ct=function(t){_inherits(SubjectDN,t);var r=_createSuper(SubjectDN);function SubjectDN(t){var o;_classCallCheck(this,SubjectDN);(o=r.call(this,S,"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),xt=function(t){_inherits(SubjectDNs,t);var r=_createSuper(SubjectDNs);function SubjectDNs(t){var o;_classCallCheck(this,SubjectDNs);(o=r.call(this,S,"subjectDNs",!0)).id=t.id||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.subjectDN=new u.XFAObjectArray;return o}return _createClass(SubjectDNs)}(u.XFAObject),Ot=function(t){_inherits(Submit,t);var r=_createSuper(Submit);function Submit(t){var o;_classCallCheck(this,Submit);(o=r.call(this,S,"submit",!0)).embedPDF=(0,m.getInteger)({data:t.embedPDF,defaultValue:0,validate:function validate(t){return 1===t}});o.format=(0,m.getStringOption)(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);o.id=t.id||"";o.target=t.target||"";o.textEncoding=(0,m.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-\d{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 _createClass(Submit)}(u.XFAObject),At=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,S,"template",!0)).baseProfile=(0,m.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]=5e3}},{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,_.searchNode)(this,r,t,!0,!0)}},{key:u.$toPages,value:l.default.mark((function value(){var t,r,o,c,h,d,g,v,k,_,w,S,C,x,O,T,E=this;return l.default.wrap((function value$(M){for(;;)switch(M.prev=M.next){case 0:if(this.subform.children.length){M.next=2;break}return M.abrupt("return",m.HTMLResult.success({name:"div",children:[]}));case 2:this[u.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};(t=this.subform.children[0]).pageSet[u.$cleanPage]();r=t.pageSet.pageArea.children;o={name:"div",children:[]};c=null;h=null;d=null;if(t.breakBefore.children.length>=1){h=t.breakBefore.children[0];d=h.target}else if(t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1){h=t.subform.children[0].breakBefore.children[0];d=h.target}else if(t.break&&t.break.beforeTarget){h=t.break;d=h.beforeTarget}else if(t.subform.children.length>=1&&t.subform.children[0].break&&t.subform.children[0].break.beforeTarget){h=t.subform.children[0].break;d=h.beforeTarget}if(h&&(g=this[u.$searchNode](d,h[u.$getParent]()))instanceof tt){c=g;h[u.$extra]={}}c||(c=r[0]);c[u.$extra]={numberOfUse:1};(v=c[u.$getParent]())[u.$extra]={numberOfUse:1,pageIndex:v.pageArea.children.indexOf(c),pageSetIndex:0};_=null;w=null;S=!0;C=0;x=0;O=l.default.mark((function _loop(){var r,h,d,g,m,v,O,T,M,R,j;return l.default.wrap((function _loop$(l){for(;;)switch(l.prev=l.next){case 0:if(S){l.next=7;break}o.children.pop();if(3!=++C){l.next=5;break}(0,y.warn)("XFA - Something goes wrong: please file a bug.");return l.abrupt("return",{v:o});case 5:l.next=8;break;case 7:C=0;case 8:k=null;E[u.$extra].currentPageArea=c;r=c[u.$toHTML]().html;o.children.push(r);if(_){E[u.$extra].noLayoutFailure=!0;r.children.push(_[u.$toHTML](c[u.$extra].space).html);_=null}if(w){E[u.$extra].noLayoutFailure=!0;r.children.push(w[u.$toHTML](c[u.$extra].space).html);w=null}h=c.contentArea.children;d=r.children.filter((function(t){return t.attributes.class.includes("xfaContentarea")}));S=!1;E[u.$extra].firstUnsplittable=null;E[u.$extra].noLayoutFailure=!1;g=function flush(r){var o=t[u.$flushHTML]();if(o){S=S||o.children&&0!==o.children.length;d[r].children.push(o)}};m=x,v=h.length;case 21:if(!(m<v)){l.next=48;break}O=E[u.$extra].currentContentArea=h[m];T={width:O.w,height:O.h};x=0;if(_){d[m].children.push(_[u.$toHTML](T).html);_=null}if(w){d[m].children.push(w[u.$toHTML](T).html);w=null}if(!(M=t[u.$toHTML](T)).success){l.next=31;break}if(M.html){S=S||M.html.children&&0!==M.html.children.length;d[m].children.push(M.html)}else!S&&o.children.length>1&&o.children.pop();return l.abrupt("return",{v:o});case 31:if(!M.isBreak()){l.next=40;break}R=M.breakNode;g(m);if("auto"!==R.targetType){l.next=36;break}return l.abrupt("continue",45);case 36:R.leader&&(_=(_=E[u.$searchNode](R.leader,R[u.$getParent]()))?_[0]:null);R.trailer&&(w=(w=E[u.$searchNode](R.trailer,R[u.$getParent]()))?w[0]:null);if("pageArea"===R.targetType){k=R[u.$extra].target;m=1/0}else if(R[u.$extra].target){k=R[u.$extra].target;x=R[u.$extra].index+1;m=1/0}else m=R[u.$extra].index;return l.abrupt("continue",45);case 40:if(!E[u.$extra].overflowNode){l.next=44;break}j=function(){var t=E[u.$extra].overflowNode;E[u.$extra].overflowNode=null;var r=t[u.$getExtra](),o=r.target;r.addLeader=null!==r.leader;r.addTrailer=null!==r.trailer;g(m);var c=m;m=1/0;if(o instanceof tt)k=o;else if(o instanceof re){var l=h.findIndex((function(t){return t===o}));if(-1!==l)l>c?m=l-1:x=l;else{k=o[u.$getParent]();x=k.contentArea.children.findIndex((function(t){return t===o}))}}return"continue"}();if("continue"!==j){l.next=44;break}return l.abrupt("continue",45);case 44:g(m);case 45:m++;l.next=21;break;case 48:E[u.$extra].pageNumber+=1;k&&(k[u.$isUsable]()?k[u.$extra].numberOfUse+=1:k=null);c=k||c[u.$getNextPage]();l.next=53;return null;case 53:case"end":return l.stop()}}),_loop)}));case 22:0;return M.delegateYield(O(),"t0",24);case 24:if("object"!==_typeof(T=M.t0)){M.next=27;break}return M.abrupt("return",T.v);case 27:M.next=22;break;case 29:case"end":return M.stop()}}),value,this)}))}]);return Template}(u.XFAObject);r.Template=At;var Pt=function(t){_inherits(Text,t);var r=_createSuper(Text);function Text(t){var o;_classCallCheck(this,Text);(o=r.call(this,S,"text")).id=t.id||"";o.maxChars=(0,m.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.$finalize,value:function value(){"string"==typeof this[u.$content]&&(this[u.$content]=this[u.$content].replace(/\r\n/g,"\n"))}},{key:u.$getExtra,value:function value(){return"string"==typeof this[u.$content]?this[u.$content].split(/[\u2029\u2028\n]/).reduce((function(t,r){r&&t.push(r);return t}),[]).join("\n"):this[u.$content][u.$text]()}},{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 m.HTMLResult.success(r)}return this[u.$content][u.$toHTML](t)}}]);return Text}(u.ContentObject);r.Text=Pt;var Tt=function(t){_inherits(TextEdit,t);var r=_createSuper(TextEdit);function TextEdit(t){var o;_classCallCheck(this,TextEdit);(o=r.call(this,S,"textEdit",!0)).allowRichText=(0,m.getInteger)({data:t.allowRichText,defaultValue:0,validate:function validate(t){return 1===t}});o.hScrollPolicy=(0,m.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.multiLine=(0,m.getInteger)({data:t.multiLine,defaultValue:"",validate:function validate(t){return 0===t||1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.vScrollPolicy=(0,m.getStringOption)(t.vScrollPolicy,["auto","off","on"]);o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(TextEdit,[{key:u.$toHTML,value:function value(t){var r,o=(0,g.toStyle)(this,"border","font","margin"),c=this[u.$getParent]()[u.$getParent]();""===this.multiLine&&(this.multiLine=c instanceof he?1:0);r=1===this.multiLine?{name:"textarea",attributes:{dataId:c[u.$data]&&c[u.$data][u.$uid]||c[u.$uid],fieldId:c[u.$uid],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(c)}}:{name:"input",attributes:{type:"text",dataId:c[u.$data]&&c[u.$data][u.$uid]||c[u.$uid],fieldId:c[u.$uid],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(c)}};return m.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}]);return TextEdit}(u.XFAObject),Ft=function(t){_inherits(Time,t);var r=_createSuper(Time);function Time(t){var o;_classCallCheck(this,Time);(o=r.call(this,S,"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),It=function(t){_inherits(TimeStamp,t);var r=_createSuper(TimeStamp);function TimeStamp(t){var o;_classCallCheck(this,TimeStamp);(o=r.call(this,S,"timeStamp")).id=t.id||"";o.server=t.server||"";o.type=(0,m.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(TimeStamp)}(u.XFAObject),Et=function(t){_inherits(ToolTip,t);var r=_createSuper(ToolTip);function ToolTip(t){var o;_classCallCheck(this,ToolTip);(o=r.call(this,S,"toolTip")).id=t.id||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(ToolTip)}(u.StringObject),Mt=function(t){_inherits(Traversal,t);var r=_createSuper(Traversal);function Traversal(t){var o;_classCallCheck(this,Traversal);(o=r.call(this,S,"traversal",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.traverse=new u.XFAObjectArray;return o}return _createClass(Traversal)}(u.XFAObject),Rt=function(t){_inherits(Traverse,t);var r=_createSuper(Traverse);function Traverse(t){var o;_classCallCheck(this,Traverse);(o=r.call(this,S,"traverse",!0)).id=t.id||"";o.operation=(0,m.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),jt=function(t){_inherits(Ui,t);var r=_createSuper(Ui);function Ui(t){var o;_classCallCheck(this,Ui);(o=r.call(this,S,"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.$getExtra,value:function value(){if(void 0===this[u.$extra]){var t,r=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("extras"!==o&&"picture"!==o){var c=this[o];if(c instanceof u.XFAObject){this[u.$extra]=c;return c}}}}catch(t){r.e(t)}finally{r.f()}this[u.$extra]=null}return this[u.$extra]}},{key:u.$toHTML,value:function value(t){var r=this[u.$getExtra]();return r?r[u.$toHTML](t):m.HTMLResult.EMPTY}}]);return Ui}(u.XFAObject),Dt=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){var o;_classCallCheck(this,Validate);(o=r.call(this,S,"validate",!0)).formatTest=(0,m.getStringOption)(t.formatTest,["warning","disabled","error"]);o.id=t.id||"";o.nullTest=(0,m.getStringOption)(t.nullTest,["disabled","error","warning"]);o.scriptTest=(0,m.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 _createClass(Validate)}(u.XFAObject),Bt=function(t){_inherits(Value,t);var r=_createSuper(Value);function Value(t){var o;_classCallCheck(this,Value);(o=r.call(this,S,"value",!0)).id=t.id||"";o.override=(0,m.getInteger)({data:t.override,defaultValue:0,validate:function validate(t){return 1===t}});o.relevant=(0,m.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 Ae&&r.ui&&r.ui.imageEdit){if(!this.image){this.image=new je({});this[u.$appendChild](this.image)}this.image[u.$content]=t[u.$content]}else{var o=t[u.$nodeName];if(null===this[o]){var c,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(l.s();!(c=l.n()).done;){var h=c.value,d=this[h];if(d instanceof u.XFAObject){this[h]=null;this[u.$removeChild](d)}}}catch(t){l.e(t)}finally{l.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"string"==typeof this.exData[u.$content]?this.exData[u.$content].trim():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 c=this[o];if(c instanceof u.XFAObject)return(c[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 c=this[r.value];if(c instanceof u.XFAObject)return c[u.$toHTML](t)}}catch(t){o.e(t)}finally{o.f()}return m.HTMLResult.EMPTY}}]);return Value}(u.XFAObject);r.Value=Bt;var Nt=function(t){_inherits(Variables,t);var r=_createSuper(Variables);function Variables(t){var o;_classCallCheck(this,Variables);(o=r.call(this,S,"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),Lt=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 E(t)}},{key:"arc",value:function arc(t){return new M(t)}},{key:"area",value:function area(t){return new R(t)}},{key:"assist",value:function assist(t){return new j(t)}},{key:"barcode",value:function barcode(t){return new D(t)}},{key:"bind",value:function bind(t){return new N(t)}},{key:"bindItems",value:function bindItems(t){return new L(t)}},{key:"bookend",value:function bookend(t){return new U(t)}},{key:"boolean",value:function boolean(t){return new H(t)}},{key:"border",value:function border(t){return new $(t)}},{key:"break",value:function _break(t){return new X(t)}},{key:"breakAfter",value:function breakAfter(t){return new q(t)}},{key:"breakBefore",value:function breakBefore(t){return new G(t)}},{key:"button",value:function button(t){return new z(t)}},{key:"calculate",value:function calculate(t){return new W(t)}},{key:"caption",value:function caption(t){return new V(t)}},{key:"certificate",value:function certificate(t){return new K(t)}},{key:"certificates",value:function certificates(t){return new Y(t)}},{key:"checkButton",value:function checkButton(t){return new J(t)}},{key:"choiceList",value:function choiceList(t){return new Z(t)}},{key:"color",value:function color(t){return new Q(t)}},{key:"comb",value:function comb(t){return new ee(t)}},{key:"connect",value:function connect(t){return new te(t)}},{key:"contentArea",value:function contentArea(t){return new re(t)}},{key:"corner",value:function corner(t){return new ae(t)}},{key:"date",value:function date(t){return new ne(t)}},{key:"dateTime",value:function dateTime(t){return new ie(t)}},{key:"dateTimeEdit",value:function dateTimeEdit(t){return new oe(t)}},{key:"decimal",value:function decimal(t){return new se(t)}},{key:"defaultUi",value:function defaultUi(t){return new ce(t)}},{key:"desc",value:function desc(t){return new le(t)}},{key:"digestMethod",value:function digestMethod(t){return new ue(t)}},{key:"digestMethods",value:function digestMethods(t){return new fe(t)}},{key:"draw",value:function draw(t){return new he(t)}},{key:"edge",value:function edge(t){return new de(t)}},{key:"encoding",value:function encoding(t){return new pe(t)}},{key:"encodings",value:function encodings(t){return new ge(t)}},{key:"encrypt",value:function encrypt(t){return new me(t)}},{key:"encryptData",value:function encryptData(t){return new ye(t)}},{key:"encryption",value:function encryption(t){return new ve(t)}},{key:"encryptionMethod",value:function encryptionMethod(t){return new be(t)}},{key:"encryptionMethods",value:function encryptionMethods(t){return new ke(t)}},{key:"event",value:function event(t){return new _e(t)}},{key:"exData",value:function exData(t){return new we(t)}},{key:"exObject",value:function exObject(t){return new Se(t)}},{key:"exclGroup",value:function exclGroup(t){return new Ce(t)}},{key:"execute",value:function execute(t){return new xe(t)}},{key:"extras",value:function extras(t){return new Oe(t)}},{key:"field",value:function field(t){return new Ae(t)}},{key:"fill",value:function fill(t){return new Pe(t)}},{key:"filter",value:function filter(t){return new Te(t)}},{key:"float",value:function float(t){return new Fe(t)}},{key:"font",value:function font(t){return new Ie(t)}},{key:"format",value:function format(t){return new Ee(t)}},{key:"handler",value:function handler(t){return new Me(t)}},{key:"hyphenation",value:function hyphenation(t){return new Re(t)}},{key:"image",value:function image(t){return new je(t)}},{key:"imageEdit",value:function imageEdit(t){return new De(t)}},{key:"integer",value:function integer(t){return new Be(t)}},{key:"issuers",value:function issuers(t){return new Ne(t)}},{key:"items",value:function items(t){return new Le(t)}},{key:"keep",value:function keep(t){return new Ue(t)}},{key:"keyUsage",value:function keyUsage(t){return new He(t)}},{key:"line",value:function line(t){return new $e(t)}},{key:"linear",value:function linear(t){return new Xe(t)}},{key:"lockDocument",value:function lockDocument(t){return new qe(t)}},{key:"manifest",value:function manifest(t){return new Ge(t)}},{key:"margin",value:function margin(t){return new ze(t)}},{key:"mdp",value:function mdp(t){return new We(t)}},{key:"medium",value:function medium(t){return new Ve(t)}},{key:"message",value:function message(t){return new Ke(t)}},{key:"numericEdit",value:function numericEdit(t){return new Ye(t)}},{key:"occur",value:function occur(t){return new Je(t)}},{key:"oid",value:function oid(t){return new Ze(t)}},{key:"oids",value:function oids(t){return new Qe(t)}},{key:"overflow",value:function overflow(t){return new et(t)}},{key:"pageArea",value:function pageArea(t){return new tt(t)}},{key:"pageSet",value:function pageSet(t){return new rt(t)}},{key:"para",value:function para(t){return new at(t)}},{key:"passwordEdit",value:function passwordEdit(t){return new nt(t)}},{key:"pattern",value:function pattern(t){return new it(t)}},{key:"picture",value:function picture(t){return new ot(t)}},{key:"proto",value:function proto(t){return new st(t)}},{key:"radial",value:function radial(t){return new ct(t)}},{key:"reason",value:function reason(t){return new lt(t)}},{key:"reasons",value:function reasons(t){return new ut(t)}},{key:"rectangle",value:function rectangle(t){return new ft(t)}},{key:"ref",value:function ref(t){return new ht(t)}},{key:"script",value:function script(t){return new dt(t)}},{key:"setProperty",value:function setProperty(t){return new gt(t)}},{key:"signData",value:function signData(t){return new mt(t)}},{key:"signature",value:function signature(t){return new yt(t)}},{key:"signing",value:function signing(t){return new vt(t)}},{key:"solid",value:function solid(t){return new bt(t)}},{key:"speak",value:function speak(t){return new kt(t)}},{key:"stipple",value:function stipple(t){return new _t(t)}},{key:"subform",value:function subform(t){return new wt(t)}},{key:"subformSet",value:function subformSet(t){return new St(t)}},{key:"subjectDN",value:function subjectDN(t){return new Ct(t)}},{key:"subjectDNs",value:function subjectDNs(t){return new xt(t)}},{key:"submit",value:function submit(t){return new Ot(t)}},{key:"template",value:function template(t){return new At(t)}},{key:"text",value:function text(t){return new Pt(t)}},{key:"textEdit",value:function textEdit(t){return new Tt(t)}},{key:"time",value:function time(t){return new Ft(t)}},{key:"timeStamp",value:function timeStamp(t){return new It(t)}},{key:"toolTip",value:function toolTip(t){return new Et(t)}},{key:"traversal",value:function traversal(t){return new Mt(t)}},{key:"traverse",value:function traverse(t){return new Rt(t)}},{key:"ui",value:function ui(t){return new jt(t)}},{key:"validate",value:function validate(t){return new Dt(t)}},{key:"value",value:function value(t){return new Bt(t)}},{key:"variables",value:function variables(t){return new Nt(t)}}]);return TemplateNamespace}();r.TemplateNamespace=Lt},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.addHTML=function addHTML(t,r,o){var u=t[c.$extra],h=u.availableSpace,d=_slicedToArray(o,4),g=d[0],m=d[1],y=d[2],v=d[3];switch(t.layout){case"position":u.width=Math.max(u.width,g+y);u.height=Math.max(u.height,m+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 k,_=(0,l.measureToString)(u.height),w=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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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(w.s();!(k=w.n()).done;){k.value.attributes.style.height=_}}catch(t){w.e(t)}finally{w.f()}break;case"table":case"tb":u.width=Math.min(h.width,Math.max(u.width,y));u.height+=v;u.children.push(r)}};r.checkDimensions=function checkDimensions(t,r){if(null===t[c.$getTemplateRoot]()[c.$extra].firstUnsplittable)return!0;if(0===t.w||0===t.h)return!0;var o=t[c.$getSubformParent](),l=o[c.$extra]&&o[c.$extra].attempt||0,u=_slicedToArray(function getTransformedBBox(t){var r,o,c=""===t.w?NaN:t.w,l=""===t.h?NaN:t.h,u=0,h=0;switch(t.anchorType||""){case"bottomCenter":u=c/2;h=l;break;case"bottomLeft":u=0;h=l;break;case"bottomRight":u=c;h=l;break;case"middleCenter":u=c/2;h=l/2;break;case"middleLeft":u=0;h=l/2;break;case"middleRight":u=c;h=l/2;break;case"topCenter":u=c/2;h=0;break;case"topRight":u=c;h=0}switch(t.rotate||0){case 0:r=-u;o=-h;break;case 90:r=-h;o=u;var d=[l,-c];c=d[0];l=d[1];break;case 180:r=u;o=h;var g=[-c,-l];c=g[0];l=g[1];break;case 270:r=h;o=-u;var m=[-l,c];c=m[0];l=m[1]}return[t.x+r+Math.min(0,c),t.y+o+Math.min(0,l),Math.abs(c),Math.abs(l)]}(t),4),h=u[1],d=u[2],g=u[3];switch(o.layout){case"lr-tb":case"rl-tb":return 0===l?t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure?""!==t.w?Math.round(d-r.width)<=2:r.width>2:!(""!==t.h&&Math.round(g-r.height)>2)&&(""!==t.w?Math.round(d-r.width)<=2||0===o[c.$extra].numberInLine&&r.height>2:r.width>2):!!t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||!(""!==t.h&&Math.round(g-r.height)>2)&&((""===t.w||Math.round(d-r.width)<=2||!o[c.$isThereMoreWidth]())&&r.height>2);case"table":case"tb":return!!t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||(""===t.h||t[c.$isSplittable]()?(""===t.w||Math.round(d-r.width)<=2||!o[c.$isThereMoreWidth]())&&r.height>2:Math.round(g-r.height)<=2);case"position":if(t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure)return!0;if(""===t.h||Math.round(g+h-r.height)<=2)return!0;var m=t[c.$getTemplateRoot]()[c.$extra].currentContentArea;return g+h>m.h;case"rl-row":case"row":return!!t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||(""===t.h||Math.round(g-r.height)<=2);default:return!0}};r.flushHTML=function flushHTML(t){if(!t[c.$extra])return null;var r={name:"div",attributes:t[c.$extra].attributes,children:t[c.$extra].children};if(t[c.$extra].failingNode){var o=t[c.$extra].failingNode[c.$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[c.$extra].availableSpace,o=t.margin?t.margin.topInset+t.margin.bottomInset:0,l=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":return 0===t[c.$extra].attempt?{width:r.width-l-t[c.$extra].currentWidth,height:r.height-o-t[c.$extra].prevHeight}:{width:r.width-l,height:r.height-o-t[c.$extra].height};case"rl-row":case"row":return{width:t[c.$extra].columnWidths.slice(t[c.$extra].currentColumn).reduce((function(t,r){return t+r})),height:r.height-l};case"table":case"tb":return{width:r.width-l,height:r.height-o-t[c.$extra].height};default:return r}};var c=o(218),l=o(225);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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}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 l;if(""!==t.w&&""!==t.h)l=[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[c.$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 g=t[c.$getSubformParent]();d="position"===g.layout&&""!==g.h?0:t.minH}else d=Math.min(t.maxH,o.height);r.attributes.style.height=measureToString(d)}l=[t.x,t.y,u,d]}return l};r.createWrapper=function createWrapper(t,r){var o=r.attributes,l=o.style,u={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};o.class.push("xfaWrapped");if(t.border){var h,d,g=t.border[c.$extra],m=g.widths,y=g.insets,v=y[0],k=y[3],_=y[0]+y[2],w=y[1]+y[3];switch(t.border.hand){case"even":v-=m[0]/2;k-=m[3]/2;h="calc(100% + ".concat((m[1]+m[3])/2-w,"px)");d="calc(100% + ".concat((m[0]+m[2])/2-_,"px)");break;case"left":v-=m[0];k-=m[3];h="calc(100% + ".concat(m[1]+m[3]-w,"px)");d="calc(100% + ".concat(m[0]+m[2]-_,"px)");break;case"right":h=w?"calc(100% - ".concat(w,"px)"):"100%";d=_?"calc(100% - ".concat(_,"px)"):"100%"}var S=["xfaBorder"];isPrintOnly(t.border)&&S.push("xfaPrintOnly");for(var C={name:"div",attributes:{class:S,style:{top:"".concat(v,"px"),left:"".concat(k,"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!==l[T]){C.attributes.style[T]=l[T];delete l[T]}}u.children.push(C,r)}else u.children.push(r);for(var E=0,M=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];E<M.length;E++){var R=M[E];if(void 0!==l[R]){u.attributes.style[R]=l[R];delete l[R]}}"absolute"===l.position?u.attributes.style.position="absolute":u.attributes.style.position="relative";delete l.position;if(l.alignSelf){u.attributes.style.alignSelf=l.alignSelf;delete l.alignSelf}return u};r.fixDimensions=function fixDimensions(t){var r=t[c.$getSubformParent]();if(r.layout&&r.layout.includes("row")){var o,l=r[c.$extra],u=t.colSpan;o=-1===u?l.columnWidths.slice(l.currentColumn).reduce((function(t,r){return t+r}),0):l.columnWidths.slice(l.currentColumn,l.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,u.getMeasurement)(t.textIndent,"0px");if(r>=0)return;var o="padding"+("left"==("right"===t.textAlign?"right":"left")?"Left":"Right"),c=(0,u.getMeasurement)(t[o],"0px");t[o]="".concat(c-r,"px")};r.fixURL=function fixURL(t){var r=(0,l.createValidAbsoluteUrl)(t,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return r?r.href:null};r.isPrintOnly=isPrintOnly;r.layoutClass=function layoutClass(t){switch(t.layout){case"position":default: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"}};r.layoutNode=function layoutNode(t,r){var o=null,l=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 g=null,m=null;if(t.para){m=Object.create(null);g=""===t.para.lineHeight?null:t.para.lineHeight;m.top=""===t.para.spaceAbove?0:t.para.spaceAbove;m.bottom=""===t.para.spaceBelow?0:t.para.spaceBelow;m.left=""===t.para.marginLeft?0:t.para.marginLeft;m.right=""===t.para.marginRight?0:t.para.marginRight}var y=t.font;if(!y)for(var v=t[c.$getTemplateRoot](),k=t[c.$getParent]();k&&k!==v;){if(k.font){y=k.font;break}k=k[c.$getParent]()}var _=(t.w?t.w:r.width)-h,w=t[c.$globalData].fontFinder;if(t.value.exData&&t.value.exData[c.$content]&&"text/html"===t.value.exData.contentType){var S=layoutText(t.value.exData[c.$content],y,m,g,w,_);l=S.width;o=S.height;u=S.isBroken}else{var C=t.value[c.$text]();if(C){var x=layoutText(C,y,m,g,w,_);l=x.width;o=x.height;u=x.isBroken}}null===l||t.w||(l+=h);null===o||t.h||(o+=d)}return{w:l,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,c){if(!o){delete c.fontFamily;return}var l=(0,u.stripQuotes)(t.typeface);c.fontFamily='"'.concat(l,'"');var d=o.find(l);if(d){var g=d.regular.cssFontInfo.fontFamily;g!==l&&(c.fontFamily='"'.concat(g,'"'));var m=getCurrentPara(r);if(m&&""!==m.lineHeight)return;if(c.lineHeight)return;var y=(0,h.selectFont)(t,d);y&&(c.lineHeight=Math.max(1.2,y.lineHeight))}};r.setMinMaxDimensions=function setMinMaxDimensions(t,r){if("position"===t[c.$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")}var l=getCurrentPara(t);if(l){var u=o.attributes.style;u.display="flex";u.flexDirection="column";switch(l.vAlign){case"top":u.justifyContent="start";break;case"bottom":u.justifyContent="end";break;case"middle":u.justifyContent="center"}for(var h=l[c.$toStyle](),d=0,g=Object.entries(h);d<g.length;d++){var m=(k=g[d],_=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(k)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(k,_)||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)}(k,_)||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.")}()),y=m[0],v=m[1];y in u||(u[y]=v)}}}var k,_};r.toStyle=function toStyle(t){for(var r=Object.create(null),o=arguments.length,u=new Array(o>1?o-1:0),h=1;h<o;h++)u[h-1]=arguments[h];for(var d=0,m=u;d<m.length;d++){var y=m[d],v=t[y];if(null!==v)if(g.hasOwnProperty(y))g[y](t,r);else if(v instanceof c.XFAObject){var k=v[c.$toStyle]();k?Object.assign(r,k):(0,l.warn)("(DEBUG) - XFA - style for ".concat(y," not implemented yet"))}}return r};var c=o(218),l=o(4),u=o(219),h=o(226),d=o(227);function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}function measureToString(t){return"string"==typeof t?"0px":Number.isInteger(t)?"".concat(t,"px"):"".concat(t.toFixed(2),"px")}var g={anchorType:function anchorType(t,r){var o=t[c.$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[c.$getSubformParent](),l=t.w,u=t.h;if(o.layout&&o.layout.includes("row")){var h,d=o[c.$extra],g=t.colSpan;if(-1===g){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+g).reduce((function(t,r){return t+r}),0);d.currentColumn=(d.currentColumn+t.colSpan)%d.columnWidths.length}isNaN(h)||(l=t.w=h)}r.width=""!==l?measureToString(l):"auto";r.height=""!==u?measureToString(u):"auto"},position:function position(t,r){var o=t[c.$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[c.$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[c.$toStyle]().margin)}};function layoutText(t,r,o,l,u,h){var g=new d.TextMeasure(r,o,l,u);"string"==typeof t?g.addString(t):t[c.$pushGlyphs](g);return g.compute(h)}function isPrintOnly(t){return t.relevant.length>0&&!t.relevant[0].excluded&&"print"===t.relevant[0].viewname}function getCurrentPara(t){var r=t[c.$getTemplateRoot]()[c.$extra].paraStack;return r.length?r[r.length-1]:null}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.FontFinder=void 0;r.getMetrics=function getMetrics(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=null;if(t){var u=(0,l.stripQuotes)(t.typeface),h=t[c.$globalData].fontFinder.find(u);o=selectFont(t,h)}if(!o)return{lineHeight:12,lineGap:2,lineNoGap:10};var d=t.size||10,g=o.lineHeight?Math.max(r?0:1.2,o.lineHeight):1.2,m=void 0===o.lineGap?.2:o.lineGap;return{lineHeight:g*d,lineGap:m*d,lineNoGap:Math.max(1,g-m)*d}};r.selectFont=selectFont;var c=o(218),l=o(219),u=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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var h=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);Object.defineProperty(t,"prototype",{writable:!1});return t}(FontFinder,[{key:"add",value:function add(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value;this.addPdfFont(l)}}catch(t){c.e(t)}finally{c.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 g,m=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),y=_createForOfIteratorHelper(o);try{for(y.s();!(g=y.n()).done;){var v=g.value;this.fonts.set(v,m)}}catch(t){y.e(t)}finally{y.f()}}}},{key:"addPdfFont",value:function addPdfFont(t){var r=t.cssFontInfo,o=r.fontFamily,c=this.fonts.get(o);if(!c){c=Object.create(null);this.fonts.set(o,c);this.defaultFont||(this.defaultFont=c)}var l="",u=parseFloat(r.fontWeight);0!==parseFloat(r.italicAngle)?l=u>=700?"bolditalic":"italic":u>=700&&(l="bold");if(!l){(t.name.includes("Bold")||t.psName&&t.psName.includes("Bold"))&&(l="bold");(t.name.includes("Italic")||t.name.endsWith("It")||t.psName&&(t.psName.includes("Italic")||t.psName.endsWith("It")))&&(l+="italic")}l||(l="regular");c[l]=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,l=t.replace(c,"");if(o=this.fonts.get(l)){this.cache.set(t,o);return o}l=l.toLowerCase();var h,d=[],g=_createForOfIteratorHelper(this.fonts.entries());try{for(g.s();!(h=g.n()).done;){var m=_slicedToArray(h.value,2),y=m[0],v=m[1];y.replace(c,"").toLowerCase().startsWith(l)&&d.push(v)}}catch(t){g.e(t)}finally{g.f()}if(0===d.length){var k,_=_createForOfIteratorHelper(this.fonts.entries());try{for(_.s();!(k=_.n()).done;){var w=_slicedToArray(k.value,2),S=w[1];S.regular.name&&S.regular.name.replace(c,"").toLowerCase().startsWith(l)&&d.push(S)}}catch(t){_.e(t)}finally{_.f()}}if(0===d.length){l=l.replace(/psmt|mt/gi,"");var C,x=_createForOfIteratorHelper(this.fonts.entries());try{for(x.s();!(C=x.n()).done;){var O=_slicedToArray(C.value,2),T=O[0],E=O[1];T.replace(c,"").toLowerCase().startsWith(l)&&d.push(E)}}catch(t){x.e(t)}finally{x.f()}}if(0===d.length){var M,R=_createForOfIteratorHelper(this.fonts.values());try{for(R.s();!(M=R.n()).done;){var j=M.value;j.regular.name&&j.regular.name.replace(c,"").toLowerCase().startsWith(l)&&d.push(j)}}catch(t){R.e(t)}finally{R.f()}}if(d.length>=1){1!==d.length&&r&&(0,u.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,u.warn)("XFA - Cannot find the font: ".concat(t))}return null}}]);return FontFinder}();r.FontFinder=h;function selectFont(t,r){return"italic"===t.posture?"bold"===t.weight?r.bolditalic:r.italic:"bold"===t.weight?r.bold:r.regular}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.TextMeasure=void 0;var c=o(226);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var l=function(){function FontInfo(t,r,o,l){_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=l.find(t.typeface);if(u){this.pdfFont=(0,c.selectFont)(t,u);if(!this.pdfFont){var h=_slicedToArray(this.defaultFont(l),2);this.pdfFont=h[0];this.xfaFont=h[1]}}else{var d=_slicedToArray(this.defaultFont(l),2);this.pdfFont=d[0];this.xfaFont=d[1]}}else{var g=_slicedToArray(this.defaultFont(l),2);this.pdfFont=g[0];this.xfaFont=g[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,c){_classCallCheck(this,FontSelector);this.fontFinder=c;this.stack=[new l(t,r,o,c)]}_createClass(FontSelector,[{key:"pushData",value:function pushData(t,r,o){for(var c=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]=c.xfaFont[d])}for(var g=0,m=["top","bottom","left","right"];g<m.length;g++){var y=m[g];isNaN(r[y])&&(r[y]=c.paraMargin[y])}var v=new l(t,r,o||c.lineHeight,this.fontFinder);v.pdfFont||(v.pdfFont=c.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,c){_classCallCheck(this,TextMeasure);this.glyphs=[];this.fontSelector=new u(t,r,o,c);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 c,l=r.xfaFont.letterSpacing,u=r.pdfFont,h=u.lineHeight||1.2,d=r.lineHeight||Math.max(1.2,h)*o,g=h-(void 0===u.lineGap?.2:u.lineGap),m=Math.max(1,g)*o,y=o/1e3,v=u.defaultWidth||u.charsToGlyphs(" ")[0].width,k=_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(k.s();!(c=k.n()).done;){var _,w=c.value,S=u.encodeString(w).join(""),C=_createForOfIteratorHelper(u.charsToGlyphs(S));try{for(C.s();!(_=C.n()).done;){var x=_.value,O=x.width||v;this.glyphs.push([O*y+l,d,m,x.unicode,!1])}}catch(t){C.e(t)}finally{C.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(t){k.e(t)}finally{k.f()}this.glyphs.pop()}else{var T,E=_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(E.s();!(T=E.n()).done;){var M,R=_createForOfIteratorHelper(T.value.split(""));try{for(R.s();!(M=R.n()).done;){var j=M.value;this.glyphs.push([o,1.2*o,o,j,!1])}}catch(t){R.e(t)}finally{R.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(t){E.e(t)}finally{E.f()}this.glyphs.pop()}}}},{key:"compute",value:function compute(t){for(var r=-1,o=0,c=0,l=0,u=0,h=0,d=!1,g=!0,m=0,y=this.glyphs.length;m<y;m++){var v=_slicedToArray(this.glyphs[m],5),k=v[0],_=v[1],w=v[2],S=" "===v[3],C=g?w:_;if(v[4]){c=Math.max(c,u);u=0;l+=h;h=C;r=-1;o=0;g=!1}else if(S)if(u+k>t){c=Math.max(c,u);u=0;l+=h;h=C;r=-1;o=0;d=!0;g=!1}else{h=Math.max(C,h);o=u;u+=k;r=m}else if(u+k>t){l+=h;h=C;if(-1!==r){m=r;c=Math.max(c,o);u=0;r=-1;o=0}else{c=Math.max(c,u);u=k}d=!0;g=!1}else{u+=k;h=Math.max(C,h)}}return{width:1.02*(c=Math.max(c,u)),height:l+=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 c=o(218);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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var l=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);Object.defineProperty(t,"prototype",{writable:!1});return t}(DataHandler,[{key:"serialize",value:function serialize(t){for(var r=[[-1,this.data[c.$getChildren]()]];r.length>0;){var o=r[r.length-1],l=_slicedToArray(o,2),u=l[0],h=l[1];if(u+1!==h.length){var d=h[++o[0]],g=t.get(d[c.$uid]);if(g)d[c.$setValue](g);else{var m,y=_createForOfIteratorHelper(d[c.$getAttributes]().values());try{for(y.s();!(m=y.n()).done;){var v=m.value,k=t.get(v[c.$uid]);if(k){v[c.$setValue](k);break}}}catch(t){y.e(t)}finally{y.f()}}var _=d[c.$getChildren]();_.length>0&&r.push([-1,_])}else r.pop()}var w=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset){var S,C=_createForOfIteratorHelper(this.dataset[c.$getChildren]());try{for(C.s();!(S=C.n()).done;){var x=S.value;"data"!==x[c.$nodeName]&&x[c.$toString](w)}}catch(t){C.e(t)}finally{C.f()}}this.data[c.$toString](w);w.push("</xfa:datasets>");return w.join("")}}]);return DataHandler}();r.DataHandler=l},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.XFAParser=void 0;var c=o(218),l=o(211),u=o(230),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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(XFAParser,t);var r=_createSuper(XFAParser);function XFAParser(){var t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,XFAParser);(t=r.call(this))._builder=new u.Builder(o);t._stack=[];t._globalData={usedTypefaces:new Set};t._ids=new Map;t._current=t._builder.buildRoot(t._ids);t._errorCode=l.XMLParserErrorCode.NoError;t._whiteRegex=/^\s+$/;t._nbsps=/\xa0+/g;t._richText=c;return t}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(XFAParser,[{key:"parse",value:function parse(t){this.parseXml(t);if(this._errorCode===l.XMLParserErrorCode.NoError){this._current[c.$finalize]();return this._current.element}}},{key:"onText",value:function onText(t){t=t.replace(this._nbsps,(function(t){return t.slice(1)+" "}));this._richText||this._current[c.$acceptWhitespace]()?this._current[c.$onText](t,this._richText):this._whiteRegex.test(t)||this._current[c.$onText](t.trim())}},{key:"onCdata",value:function onCdata(t){this._current[c.$onText](t)}},{key:"_mkAttributes",value:function _mkAttributes(t,r){var o,l=null,u=null,d=Object.create({}),g=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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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(g.s();!(o=g.n()).done;){var m=o.value,y=m.name,v=m.value;if("xmlns"===y)l?(0,h.warn)("XFA - multiple namespace definition in <".concat(r,">")):l=v;else if(y.startsWith("xmlns:")){var k=y.substring("xmlns:".length);u||(u=[]);u.push({prefix:k,value:v})}else{var _=y.indexOf(":");if(-1===_)d[y]=v;else{var w=d[c.$nsAttributes];w||(w=d[c.$nsAttributes]=Object.create(null));var S=[y.slice(0,_),y.slice(_+1)],C=S[0],x=S[1],O=w[C];O||(O=w[C]=Object.create(null));O[x]=v}}}}catch(t){g.e(t)}finally{g.f()}return[l,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 l=_slicedToArray(this._mkAttributes(r,t),3),u=l[0],h=l[1],d=l[2],g=_slicedToArray(this._getNameAndPrefix(t,this._builder.isNsAgnostic()),2),m=g[0],y=g[1],v=this._builder.build({nsPrefix:y,name:m,attributes:d,namespace:u,prefixes:h});v[c.$globalData]=this._globalData;if(o){v[c.$finalize]();this._current[c.$onChild](v)&&v[c.$setId](this._ids);v[c.$clean](this._builder)}else{this._stack.push(this._current);this._current=v}}},{key:"onEndElement",value:function onEndElement(t){var r=this._current;if(r[c.$isCDATAXml]()&&"string"==typeof r[c.$content]){var o=new XFAParser;o._globalData=this._globalData;var l=o.parse(r[c.$content]);r[c.$content]=null;r[c.$onChild](l)}r[c.$finalize]();this._current=this._stack.pop();this._current[c.$onChild](r)&&r[c.$setId](this._ids);r[c.$clean](this._builder)}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return XFAParser}(l.XMLParserBase);r.XFAParser=d},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Builder=void 0;var c=o(220),l=o(218),u=o(231),h=o(223),d=o(240),g=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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var c=_superPropBase(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return _get.apply(this,arguments)}function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var m=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[l.$ids]=t;return o}_createClass(Root,[{key:l.$onChild,value:function value(t){this.element=t;return!0}},{key:l.$finalize,value:function value(){_get(_getPrototypeOf(Root.prototype),l.$finalize,this).call(this);if(this.element.template instanceof h.Template){this[l.$ids].set(l.$root,this.element);this.element.template[l.$resolvePrototypes](this[l.$ids]);this.element.template[l.$ids]=this[l.$ids]}}}]);return Root}(l.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:l.$onChild,value:function value(t){return!1}}]);return Empty}(l.XFAObject),v=function(){function Builder(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_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(c.NamespaceIds).map((function(t){return t.id}))));this._currentNamespace=t||new d.UnknownNamespace(++this._nextNsId)}_createClass(Builder,[{key:"buildRoot",value:function buildRoot(t){return new m(t)}},{key:"build",value:function build(t){var r=t.nsPrefix,o=t.name,h=t.attributes,d=t.namespace,g=t.prefixes,m=null!==d;if(m){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(d)}g&&this._addNamespacePrefix(g);if(h.hasOwnProperty(l.$nsAttributes)){for(var v=u.NamespaceSetUp.datasets,k=h[l.$nsAttributes],_=null,w=0,S=Object.entries(k);w<S.length;w++){var C=_slicedToArray(S[w],2),x=C[0],O=C[1];if(this._getNamespaceToUse(x)===v){_={xfa:O};break}}_?h[l.$nsAttributes]=_:delete h[l.$nsAttributes]}var T=this._getNamespaceToUse(r),E=T&&T[c.$buildXFAObject](o,h)||new y;E[l.$isNsAgnostic]()&&this._nsAgnosticLevel++;(m||g||E[l.$isNsAgnostic]())&&(E[l.$cleanup]={hasNamespace:m,prefixes:g,nsAgnostic:E[l.$isNsAgnostic]()});return E}},{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,l=Object.entries(c.NamespaceIds);o<l.length;o++){var h=_slicedToArray(l[o],2),g=h[0];if((0,h[1].check)(t)){if(r=u.NamespaceSetUp[g]){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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 c=r.value,l=c.prefix,u=c.value,h=this._searchNamespace(u),d=this._namespacePrefixes.get(l);if(!d){d=[];this._namespacePrefixes.set(l,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,g.warn)("Unknown namespace prefix: ".concat(t,"."));return null}},{key:"clean",value:function clean(t){var r=this,o=t.hasNamespace,c=t.prefixes,l=t.nsAgnostic;o&&(this._currentNamespace=this._namespaceStack.pop());c&&c.forEach((function(t){var o=t.prefix;r._namespacePrefixes.get(o).pop()}));l&&this._nsAgnosticLevel--}}]);return Builder}();r.Builder=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceSetUp=void 0;var c=o(232),l=o(233),u=o(234),h=o(235),d=o(236),g=o(237),m=o(223),y=o(238),v=o(239),k={config:c.ConfigNamespace,connection:l.ConnectionSetNamespace,datasets:u.DatasetsNamespace,localeSet:h.LocaleSetNamespace,signature:d.SignatureNamespace,stylesheet:g.StylesheetNamespace,template:m.TemplateNamespace,xdp:y.XdpNamespace,xhtml:v.XhtmlNamespace};r.NamespaceSetUp=k},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.ConfigNamespace=void 0;var c=o(220),l=o(218),u=o(219),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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var d=c.NamespaceIds.config.id,g=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 l.XFAObjectArray;return o}return _createClass(Acrobat)}(l.XFAObject),m=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 _createClass(Acrobat7)}(l.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 _createClass(ADBE_JSConsole)}(l.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 _createClass(ADBE_JSDebugger)}(l.OptionObject),k=function(t){_inherits(AddSilentPrint,t);var r=_createSuper(AddSilentPrint);function AddSilentPrint(t){_classCallCheck(this,AddSilentPrint);return r.call(this,d,"addSilentPrint")}return _createClass(AddSilentPrint)}(l.Option01),_=function(t){_inherits(AddViewerPreferences,t);var r=_createSuper(AddViewerPreferences);function AddViewerPreferences(t){_classCallCheck(this,AddViewerPreferences);return r.call(this,d,"addViewerPreferences")}return _createClass(AddViewerPreferences)}(l.Option01),w=function(t){_inherits(AdjustData,t);var r=_createSuper(AdjustData);function AdjustData(t){_classCallCheck(this,AdjustData);return r.call(this,d,"adjustData")}return _createClass(AdjustData)}(l.Option10),S=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 _createClass(AdobeExtensionLevel)}(l.IntegerObject),C=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 l.XFAObjectArray;return o}return _createClass(Agent)}(l.XFAObject),x=function(t){_inherits(AlwaysEmbed,t);var r=_createSuper(AlwaysEmbed);function AlwaysEmbed(t){_classCallCheck(this,AlwaysEmbed);return r.call(this,d,"alwaysEmbed")}return _createClass(AlwaysEmbed)}(l.ContentObject),O=function(t){_inherits(Amd,t);var r=_createSuper(Amd);function Amd(t){_classCallCheck(this,Amd);return r.call(this,d,"amd")}return _createClass(Amd)}(l.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 _createClass(Area)}(l.XFAObject),E=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 _createClass(Attributes)}(l.OptionObject),M=function(t){_inherits(AutoSave,t);var r=_createSuper(AutoSave);function AutoSave(t){_classCallCheck(this,AutoSave);return r.call(this,d,"autoSave",["disabled","enabled"])}return _createClass(AutoSave)}(l.OptionObject),R=function(t){_inherits(Base,t);var r=_createSuper(Base);function Base(t){_classCallCheck(this,Base);return r.call(this,d,"base")}return _createClass(Base)}(l.StringObject),j=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 _createClass(BatchOutput)}(l.XFAObject),D=function(t){_inherits(BehaviorOverride,t);var r=_createSuper(BehaviorOverride);function BehaviorOverride(t){_classCallCheck(this,BehaviorOverride);return r.call(this,d,"behaviorOverride")}_createClass(BehaviorOverride,[{key:l.$finalize,value:function value(){this[l.$content]=new Map(this[l.$content].trim().split(/\s+/).filter((function(t){return t.includes(":")})).map((function(t){return t.split(":",2)})))}}]);return BehaviorOverride}(l.ContentObject),N=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 _createClass(Cache)}(l.XFAObject),L=function(t){_inherits(Change,t);var r=_createSuper(Change);function Change(t){_classCallCheck(this,Change);return r.call(this,d,"change")}return _createClass(Change)}(l.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 l.XFAObjectArray;return o}return _createClass(Common)}(l.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 _createClass(Compress)}(l.XFAObject),$=function(t){_inherits(CompressLogicalStructure,t);var r=_createSuper(CompressLogicalStructure);function CompressLogicalStructure(t){_classCallCheck(this,CompressLogicalStructure);return r.call(this,d,"compressLogicalStructure")}return _createClass(CompressLogicalStructure)}(l.Option01),X=function(t){_inherits(CompressObjectStream,t);var r=_createSuper(CompressObjectStream);function CompressObjectStream(t){_classCallCheck(this,CompressObjectStream);return r.call(this,d,"compressObjectStream")}return _createClass(CompressObjectStream)}(l.Option10),q=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 _createClass(Compression)}(l.XFAObject),G=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 l.XFAObjectArray;return o}return _createClass(Config)}(l.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 _createClass(Conformance)}(l.OptionObject),W=function(t){_inherits(ContentCopy,t);var r=_createSuper(ContentCopy);function ContentCopy(t){_classCallCheck(this,ContentCopy);return r.call(this,d,"contentCopy")}return _createClass(ContentCopy)}(l.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 _createClass(Copies)}(l.IntegerObject),K=function(t){_inherits(Creator,t);var r=_createSuper(Creator);function Creator(t){_classCallCheck(this,Creator);return r.call(this,d,"creator")}return _createClass(Creator)}(l.StringObject),Y=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 _createClass(CurrentPage)}(l.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 l.XFAObjectArray;o.transform=new l.XFAObjectArray;return o}return _createClass(Data)}(l.XFAObject),Z=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 _createClass(Debug)}(l.XFAObject),Q=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 _createClass(DefaultTypeface)}(l.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 _createClass(Destination)}(l.OptionObject),te=function(t){_inherits(DocumentAssembly,t);var r=_createSuper(DocumentAssembly);function DocumentAssembly(t){_classCallCheck(this,DocumentAssembly);return r.call(this,d,"documentAssembly")}return _createClass(DocumentAssembly)}(l.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 _createClass(Driver)}(l.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 _createClass(DuplexOption)}(l.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 _createClass(DynamicRender)}(l.OptionObject),ie=function(t){_inherits(Embed,t);var r=_createSuper(Embed);function Embed(t){_classCallCheck(this,Embed);return r.call(this,d,"embed")}return _createClass(Embed)}(l.Option01),oe=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){_classCallCheck(this,Encrypt);return r.call(this,d,"encrypt")}return _createClass(Encrypt)}(l.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 _createClass(Encryption)}(l.XFAObject),ce=function(t){_inherits(EncryptionLevel,t);var r=_createSuper(EncryptionLevel);function EncryptionLevel(t){_classCallCheck(this,EncryptionLevel);return r.call(this,d,"encryptionLevel",["40bit","128bit"])}return _createClass(EncryptionLevel)}(l.OptionObject),le=function(t){_inherits(Enforce,t);var r=_createSuper(Enforce);function Enforce(t){_classCallCheck(this,Enforce);return r.call(this,d,"enforce")}return _createClass(Enforce)}(l.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 _createClass(Equate)}(l.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]+)/,c=_createForOfIteratorHelper(this._unicodeRange.split(",").map((function(t){return t.trim()})).filter((function(t){return!!t})));try{for(c.s();!(t=c.n()).done;){var l=t.value;1===(l=l.split("-",2).map((function(t){var r=t.match(o);return r?parseInt(r[1],16):0}))).length&&l.push(l[0]);r.push(l)}}catch(t){c.e(t)}finally{c.f()}return(0,h.shadow)(this,"unicodeRange",r)}}]);return EquateRange}(l.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:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim().split(/\s+/).filter((function(t){return t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t)}))}}]);return Exclude}(l.ContentObject),de=function(t){_inherits(ExcludeNS,t);var r=_createSuper(ExcludeNS);function ExcludeNS(t){_classCallCheck(this,ExcludeNS);return r.call(this,d,"excludeNS")}return _createClass(ExcludeNS)}(l.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 _createClass(FlipLabel)}(l.OptionObject),ge=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 l.XFAObjectArray;o.defaultTypeface=new l.XFAObjectArray;o.neverEmbed=new l.XFAObjectArray;return o}return _createClass(FontInfo)}(l.XFAObject),me=function(t){_inherits(FormFieldFilling,t);var r=_createSuper(FormFieldFilling);function FormFieldFilling(t){_classCallCheck(this,FormFieldFilling);return r.call(this,d,"formFieldFilling")}return _createClass(FormFieldFilling)}(l.Option01),ye=function(t){_inherits(GroupParent,t);var r=_createSuper(GroupParent);function GroupParent(t){_classCallCheck(this,GroupParent);return r.call(this,d,"groupParent")}return _createClass(GroupParent)}(l.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 _createClass(IfEmpty)}(l.OptionObject),be=function(t){_inherits(IncludeXDPContent,t);var r=_createSuper(IncludeXDPContent);function IncludeXDPContent(t){_classCallCheck(this,IncludeXDPContent);return r.call(this,d,"includeXDPContent")}return _createClass(IncludeXDPContent)}(l.StringObject),ke=function(t){_inherits(IncrementalLoad,t);var r=_createSuper(IncrementalLoad);function IncrementalLoad(t){_classCallCheck(this,IncrementalLoad);return r.call(this,d,"incrementalLoad",["none","forwardOnly"])}return _createClass(IncrementalLoad)}(l.OptionObject),_e=function(t){_inherits(IncrementalMerge,t);var r=_createSuper(IncrementalMerge);function IncrementalMerge(t){_classCallCheck(this,IncrementalMerge);return r.call(this,d,"incrementalMerge")}return _createClass(IncrementalMerge)}(l.Option01),we=function(t){_inherits(Interactive,t);var r=_createSuper(Interactive);function Interactive(t){_classCallCheck(this,Interactive);return r.call(this,d,"interactive")}return _createClass(Interactive)}(l.Option01),Se=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 _createClass(Jog)}(l.OptionObject),Ce=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 _createClass(LabelPrinter)}(l.XFAObject),xe=function(t){_inherits(Layout,t);var r=_createSuper(Layout);function Layout(t){_classCallCheck(this,Layout);return r.call(this,d,"layout",["paginate","panel"])}return _createClass(Layout)}(l.OptionObject),Oe=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 _createClass(Level)}(l.IntegerObject),Ae=function(t){_inherits(Linearized,t);var r=_createSuper(Linearized);function Linearized(t){_classCallCheck(this,Linearized);return r.call(this,d,"linearized")}return _createClass(Linearized)}(l.Option01),Pe=function(t){_inherits(Locale,t);var r=_createSuper(Locale);function Locale(t){_classCallCheck(this,Locale);return r.call(this,d,"locale")}return _createClass(Locale)}(l.StringObject),Te=function(t){_inherits(LocaleSet,t);var r=_createSuper(LocaleSet);function LocaleSet(t){_classCallCheck(this,LocaleSet);return r.call(this,d,"localeSet")}return _createClass(LocaleSet)}(l.StringObject),Fe=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 _createClass(Log)}(l.XFAObject),Ie=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 l.XFAObjectArray;o.equateRange=new l.XFAObjectArray;return o}return _createClass(MapElement)}(l.XFAObject),Ee=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 _createClass(MediumInfo)}(l.XFAObject),Me=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 _createClass(Message)}(l.XFAObject),Re=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 l.XFAObjectArray;return o}return _createClass(Messaging)}(l.XFAObject),je=function(t){_inherits(Mode,t);var r=_createSuper(Mode);function Mode(t){_classCallCheck(this,Mode);return r.call(this,d,"mode",["append","overwrite"])}return _createClass(Mode)}(l.OptionObject),De=function(t){_inherits(ModifyAnnots,t);var r=_createSuper(ModifyAnnots);function ModifyAnnots(t){_classCallCheck(this,ModifyAnnots);return r.call(this,d,"modifyAnnots")}return _createClass(ModifyAnnots)}(l.Option01),Be=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 _createClass(MsgId)}(l.IntegerObject),Ne=function(t){_inherits(NameAttr,t);var r=_createSuper(NameAttr);function NameAttr(t){_classCallCheck(this,NameAttr);return r.call(this,d,"nameAttr")}return _createClass(NameAttr)}(l.StringObject),Le=function(t){_inherits(NeverEmbed,t);var r=_createSuper(NeverEmbed);function NeverEmbed(t){_classCallCheck(this,NeverEmbed);return r.call(this,d,"neverEmbed")}return _createClass(NeverEmbed)}(l.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 _createClass(NumberOfCopies)}(l.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 _createClass(OpenAction)}(l.XFAObject),$e=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 _createClass(Output)}(l.XFAObject),Xe=function(t){_inherits(OutputBin,t);var r=_createSuper(OutputBin);function OutputBin(t){_classCallCheck(this,OutputBin);return r.call(this,d,"outputBin")}return _createClass(OutputBin)}(l.StringObject),qe=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 _createClass(OutputXSL)}(l.XFAObject),Ge=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 _createClass(Overprint)}(l.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:l.$finalize,value:function value(){"*"!==this[l.$content]&&(this[l.$content]=this[l.$content].trim().split(/\s+/).filter((function(t){return["config","datasets","template","xfdf","xslt"].includes(t)})))}}]);return Packets}(l.StringObject),We=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 _createClass(PageOffset)}(l.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:l.$finalize,value:function value(){for(var t=this[l.$content].trim().split(/\s+/).map((function(t){return parseInt(t,10)})),r=[],o=0,c=t.length;o<c;o+=2)r.push(t.slice(o,o+2));this[l.$content]=r}}]);return PageRange}(l.StringObject),Ke=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 _createClass(Pagination)}(l.OptionObject),Ye=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 _createClass(PaginationOverride)}(l.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 _createClass(Part)}(l.IntegerObject),Ze=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 _createClass(Pcl)}(l.XFAObject),Qe=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 _createClass(Pdf)}(l.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 _createClass(Pdfa)}(l.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 _createClass(Permissions)}(l.XFAObject),rt=function(t){_inherits(PickTrayByPDFSize,t);var r=_createSuper(PickTrayByPDFSize);function PickTrayByPDFSize(t){_classCallCheck(this,PickTrayByPDFSize);return r.call(this,d,"pickTrayByPDFSize")}return _createClass(PickTrayByPDFSize)}(l.Option01),at=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){_classCallCheck(this,Picture);return r.call(this,d,"picture")}return _createClass(Picture)}(l.StringObject),nt=function(t){_inherits(PlaintextMetadata,t);var r=_createSuper(PlaintextMetadata);function PlaintextMetadata(t){_classCallCheck(this,PlaintextMetadata);return r.call(this,d,"plaintextMetadata")}return _createClass(PlaintextMetadata)}(l.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 _createClass(Presence)}(l.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 l.XFAObjectArray;o.labelPrinter=new l.XFAObjectArray;o.pcl=new l.XFAObjectArray;o.pdf=new l.XFAObjectArray;o.ps=new l.XFAObjectArray;o.submitUrl=new l.XFAObjectArray;o.webClient=new l.XFAObjectArray;o.zpl=new l.XFAObjectArray;return o}return _createClass(Present)}(l.XFAObject),st=function(t){_inherits(Print,t);var r=_createSuper(Print);function Print(t){_classCallCheck(this,Print);return r.call(this,d,"print")}return _createClass(Print)}(l.Option01),ct=function(t){_inherits(PrintHighQuality,t);var r=_createSuper(PrintHighQuality);function PrintHighQuality(t){_classCallCheck(this,PrintHighQuality);return r.call(this,d,"printHighQuality")}return _createClass(PrintHighQuality)}(l.Option01),lt=function(t){_inherits(PrintScaling,t);var r=_createSuper(PrintScaling);function PrintScaling(t){_classCallCheck(this,PrintScaling);return r.call(this,d,"printScaling",["appdefault","noScaling"])}return _createClass(PrintScaling)}(l.OptionObject),ut=function(t){_inherits(PrinterName,t);var r=_createSuper(PrinterName);function PrinterName(t){_classCallCheck(this,PrinterName);return r.call(this,d,"printerName")}return _createClass(PrinterName)}(l.StringObject),ft=function(t){_inherits(Producer,t);var r=_createSuper(Producer);function Producer(t){_classCallCheck(this,Producer);return r.call(this,d,"producer")}return _createClass(Producer)}(l.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 _createClass(Ps)}(l.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:l.$finalize,value:function value(){this[l.$content]=this[l.$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}(l.ContentObject),gt=function(t){_inherits(Record,t);var r=_createSuper(Record);function Record(t){_classCallCheck(this,Record);return r.call(this,d,"record")}_createClass(Record,[{key:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim();var t=parseInt(this[l.$content],10);!isNaN(t)&&t>=0&&(this[l.$content]=t)}}]);return Record}(l.ContentObject),mt=function(t){_inherits(Relevant,t);var r=_createSuper(Relevant);function Relevant(t){_classCallCheck(this,Relevant);return r.call(this,d,"relevant")}_createClass(Relevant,[{key:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim().split(/\s+/)}}]);return Relevant}(l.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:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim();(this[l.$content].toLowerCase().startsWith("xml")||this[l.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,h.warn)("XFA - Rename: invalid XFA name")}}]);return Rename}(l.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 _createClass(RenderPolicy)}(l.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 _createClass(RunScripts)}(l.OptionObject),kt=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 _createClass(Script)}(l.XFAObject),_t=function(t){_inherits(ScriptModel,t);var r=_createSuper(ScriptModel);function ScriptModel(t){_classCallCheck(this,ScriptModel);return r.call(this,d,"scriptModel",["XFA","none"])}return _createClass(ScriptModel)}(l.OptionObject),wt=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 _createClass(Severity)}(l.OptionObject),St=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 _createClass(SilentPrint)}(l.XFAObject),Ct=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 _createClass(Staple)}(l.XFAObject),xt=function(t){_inherits(StartNode,t);var r=_createSuper(StartNode);function StartNode(t){_classCallCheck(this,StartNode);return r.call(this,d,"startNode")}return _createClass(StartNode)}(l.StringObject),Ot=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 _createClass(StartPage)}(l.IntegerObject),At=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 _createClass(SubmitFormat)}(l.OptionObject),Pt=function(t){_inherits(SubmitUrl,t);var r=_createSuper(SubmitUrl);function SubmitUrl(t){_classCallCheck(this,SubmitUrl);return r.call(this,d,"submitUrl")}return _createClass(SubmitUrl)}(l.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 _createClass(SubsetBelow)}(l.IntegerObject),Ft=function(t){_inherits(SuppressBanner,t);var r=_createSuper(SuppressBanner);function SuppressBanner(t){_classCallCheck(this,SuppressBanner);return r.call(this,d,"suppressBanner")}return _createClass(SuppressBanner)}(l.Option01),It=function(t){_inherits(Tagged,t);var r=_createSuper(Tagged);function Tagged(t){_classCallCheck(this,Tagged);return r.call(this,d,"tagged")}return _createClass(Tagged)}(l.Option01),Et=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 _createClass(Template)}(l.XFAObject),Mt=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 _createClass(Threshold)}(l.OptionObject),Rt=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 _createClass(To)}(l.OptionObject),jt=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 _createClass(TemplateCache)}(l.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 l.XFAObjectArray;return o}return _createClass(Trace)}(l.XFAObject),Bt=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 _createClass(Transform)}(l.XFAObject),Nt=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 _createClass(Type)}(l.OptionObject),Lt=function(t){_inherits(Uri,t);var r=_createSuper(Uri);function Uri(t){_classCallCheck(this,Uri);return r.call(this,d,"uri")}return _createClass(Uri)}(l.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 _createClass(Validate)}(l.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:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim().split(/\s+/).filter((function(t){return["docReady","postSign"].includes(t)}))}}]);return ValidateApprovalSignatures}(l.ContentObject),$t=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 _createClass(ValidationMessaging)}(l.OptionObject),Xt=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 _createClass(Version)}(l.OptionObject),qt=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 _createClass(VersionControl)}(l.XFAObject),Gt=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 _createClass(ViewerPreferences)}(l.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 _createClass(WebClient)}(l.XFAObject),Wt=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 _createClass(Whitespace)}(l.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:l.$finalize,value:function value(){var t=this[l.$content].trim().split(/\s*,\s*/,2).map((function(t){return parseInt(t,10)}));if(t.some((function(t){return isNaN(t)})))this[l.$content]=[0,0];else{1===t.length&&t.push(t[0]);this[l.$content]=t}}}]);return Window}(l.ContentObject),Kt=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 l.XFAObjectArray;o.xsl=new l.XFAObjectArray;return o}return _createClass(Xdc)}(l.XFAObject),Yt=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 _createClass(Xdp)}(l.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 _createClass(Xsl)}(l.XFAObject),Zt=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 _createClass(Zpl)}(l.XFAObject),Qt=function(){function ConfigNamespace(){_classCallCheck(this,ConfigNamespace)}_createClass(ConfigNamespace,null,[{key:c.$buildXFAObject,value:function value(t,r){if(ConfigNamespace.hasOwnProperty(t))return ConfigNamespace[t](r)}},{key:"acrobat",value:function acrobat(t){return new g(t)}},{key:"acrobat7",value:function acrobat7(t){return new m(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 k(t)}},{key:"addViewerPreferences",value:function addViewerPreferences(t){return new _(t)}},{key:"adjustData",value:function adjustData(t){return new w(t)}},{key:"adobeExtensionLevel",value:function adobeExtensionLevel(t){return new S(t)}},{key:"agent",value:function agent(t){return new C(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 E(t)}},{key:"autoSave",value:function autoSave(t){return new M(t)}},{key:"base",value:function base(t){return new R(t)}},{key:"batchOutput",value:function batchOutput(t){return new j(t)}},{key:"behaviorOverride",value:function behaviorOverride(t){return new D(t)}},{key:"cache",value:function cache(t){return new N(t)}},{key:"change",value:function change(t){return new L(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 $(t)}},{key:"compressObjectStream",value:function compressObjectStream(t){return new X(t)}},{key:"compression",value:function compression(t){return new q(t)}},{key:"config",value:function config(t){return new G(t)}},{key:"conformance",value:function conformance(t){return new z(t)}},{key:"contentCopy",value:function contentCopy(t){return new W(t)}},{key:"copies",value:function copies(t){return new V(t)}},{key:"creator",value:function creator(t){return new K(t)}},{key:"currentPage",value:function currentPage(t){return new Y(t)}},{key:"data",value:function data(t){return new J(t)}},{key:"debug",value:function debug(t){return new Z(t)}},{key:"defaultTypeface",value:function defaultTypeface(t){return new Q(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 ce(t)}},{key:"enforce",value:function enforce(t){return new le(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 ge(t)}},{key:"formFieldFilling",value:function formFieldFilling(t){return new me(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 ke(t)}},{key:"incrementalMerge",value:function incrementalMerge(t){return new _e(t)}},{key:"interactive",value:function interactive(t){return new we(t)}},{key:"jog",value:function jog(t){return new Se(t)}},{key:"labelPrinter",value:function labelPrinter(t){return new Ce(t)}},{key:"layout",value:function layout(t){return new xe(t)}},{key:"level",value:function level(t){return new Oe(t)}},{key:"linearized",value:function linearized(t){return new Ae(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 Fe(t)}},{key:"map",value:function map(t){return new Ie(t)}},{key:"mediumInfo",value:function mediumInfo(t){return new Ee(t)}},{key:"message",value:function message(t){return new Me(t)}},{key:"messaging",value:function messaging(t){return new Re(t)}},{key:"mode",value:function mode(t){return new je(t)}},{key:"modifyAnnots",value:function modifyAnnots(t){return new De(t)}},{key:"msgId",value:function msgId(t){return new Be(t)}},{key:"nameAttr",value:function nameAttr(t){return new Ne(t)}},{key:"neverEmbed",value:function neverEmbed(t){return new Le(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 $e(t)}},{key:"outputBin",value:function outputBin(t){return new Xe(t)}},{key:"outputXSL",value:function outputXSL(t){return new qe(t)}},{key:"overprint",value:function overprint(t){return new Ge(t)}},{key:"packets",value:function packets(t){return new ze(t)}},{key:"pageOffset",value:function pageOffset(t){return new We(t)}},{key:"pageRange",value:function pageRange(t){return new Ve(t)}},{key:"pagination",value:function pagination(t){return new Ke(t)}},{key:"paginationOverride",value:function paginationOverride(t){return new Ye(t)}},{key:"part",value:function part(t){return new Je(t)}},{key:"pcl",value:function pcl(t){return new Ze(t)}},{key:"pdf",value:function pdf(t){return new Qe(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 ct(t)}},{key:"printScaling",value:function printScaling(t){return new lt(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 gt(t)}},{key:"relevant",value:function relevant(t){return new mt(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 kt(t)}},{key:"scriptModel",value:function scriptModel(t){return new _t(t)}},{key:"severity",value:function severity(t){return new wt(t)}},{key:"silentPrint",value:function silentPrint(t){return new St(t)}},{key:"staple",value:function staple(t){return new Ct(t)}},{key:"startNode",value:function startNode(t){return new xt(t)}},{key:"startPage",value:function startPage(t){return new Ot(t)}},{key:"submitFormat",value:function submitFormat(t){return new At(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 Ft(t)}},{key:"tagged",value:function tagged(t){return new It(t)}},{key:"template",value:function template(t){return new Et(t)}},{key:"templateCache",value:function templateCache(t){return new jt(t)}},{key:"threshold",value:function threshold(t){return new Mt(t)}},{key:"to",value:function to(t){return new Rt(t)}},{key:"trace",value:function trace(t){return new Dt(t)}},{key:"transform",value:function transform(t){return new Bt(t)}},{key:"type",value:function type(t){return new Nt(t)}},{key:"uri",value:function uri(t){return new Lt(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 $t(t)}},{key:"version",value:function version(t){return new Xt(t)}},{key:"versionControl",value:function versionControl(t){return new qt(t)}},{key:"viewerPreferences",value:function viewerPreferences(t){return new Gt(t)}},{key:"webClient",value:function webClient(t){return new zt(t)}},{key:"whitespace",value:function whitespace(t){return new Wt(t)}},{key:"window",value:function window(t){return new Vt(t)}},{key:"xdc",value:function xdc(t){return new Kt(t)}},{key:"xdp",value:function xdp(t){return new Yt(t)}},{key:"xsl",value:function xsl(t){return new Jt(t)}},{key:"zpl",value:function zpl(t){return new Zt(t)}}]);return ConfigNamespace}();r.ConfigNamespace=Qt},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.ConnectionSetNamespace=void 0;var c=o(220),l=o(218);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var u=c.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 l.XFAObjectArray;o.xmlConnection=new l.XFAObjectArray;o.xsdConnection=new l.XFAObjectArray;return o}return _createClass(ConnectionSet)}(l.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 _createClass(EffectiveInputPolicy)}(l.XFAObject),g=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 _createClass(EffectiveOutputPolicy)}(l.XFAObject),m=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 _createClass(Operation)}(l.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 _createClass(RootElement)}(l.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 _createClass(SoapAction)}(l.StringObject),k=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 _createClass(SoapAddress)}(l.StringObject),_=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 _createClass(Uri)}(l.StringObject),w=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 _createClass(WsdlAddress)}(l.StringObject),S=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 _createClass(WsdlConnection)}(l.XFAObject),C=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 _createClass(XmlConnection)}(l.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 _createClass(XsdConnection)}(l.XFAObject),O=function(){function ConnectionSetNamespace(){_classCallCheck(this,ConnectionSetNamespace)}_createClass(ConnectionSetNamespace,null,[{key:c.$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 g(t)}},{key:"operation",value:function operation(t){return new m(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 k(t)}},{key:"uri",value:function uri(t){return new _(t)}},{key:"wsdlAddress",value:function wsdlAddress(t){return new w(t)}},{key:"wsdlConnection",value:function wsdlConnection(t){return new S(t)}},{key:"xmlConnection",value:function xmlConnection(t){return new C(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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.DatasetsNamespace=void 0;var c=o(218),l=o(220);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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var u=l.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:c.$isNsAgnostic,value:function value(){return!0}}]);return Data}(c.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:c.$onChild,value:function value(t){var r=t[c.$nodeName];("data"===r&&t[c.$namespaceId]===u||"Signature"===r&&t[c.$namespaceId]===l.NamespaceIds.signature.id)&&(this[r]=t);this[c.$appendChild](t)}}]);return Datasets}(c.XFAObject),g=function(){function DatasetsNamespace(){_classCallCheck(this,DatasetsNamespace)}_createClass(DatasetsNamespace,null,[{key:l.$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=g},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.LocaleSetNamespace=void 0;var c=o(220),l=o(218),u=o(219);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var h=c.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 l.XFAObjectArray(2);o.eraNames=null;o.meridiemNames=null;o.monthNames=new l.XFAObjectArray(2);return o}return _createClass(CalendarSymbols)}(l.XFAObject),g=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 _createClass(CurrencySymbol)}(l.StringObject),m=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 l.XFAObjectArray(3);return o}return _createClass(CurrencySymbols)}(l.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 _createClass(DatePattern)}(l.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 l.XFAObjectArray(4);return o}return _createClass(DatePatterns)}(l.XFAObject),k=function(t){_inherits(DateTimeSymbols,t);var r=_createSuper(DateTimeSymbols);function DateTimeSymbols(t){_classCallCheck(this,DateTimeSymbols);return r.call(this,h,"dateTimeSymbols")}return _createClass(DateTimeSymbols)}(l.ContentObject),_=function(t){_inherits(Day,t);var r=_createSuper(Day);function Day(t){_classCallCheck(this,Day);return r.call(this,h,"day")}return _createClass(Day)}(l.StringObject),w=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 l.XFAObjectArray(7);return o}return _createClass(DayNames)}(l.XFAObject),S=function(t){_inherits(Era,t);var r=_createSuper(Era);function Era(t){_classCallCheck(this,Era);return r.call(this,h,"era")}return _createClass(Era)}(l.StringObject),C=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 l.XFAObjectArray(2);return o}return _createClass(EraNames)}(l.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 _createClass(Locale)}(l.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 l.XFAObjectArray;return o}return _createClass(LocaleSet)}(l.XFAObject),T=function(t){_inherits(Meridiem,t);var r=_createSuper(Meridiem);function Meridiem(t){_classCallCheck(this,Meridiem);return r.call(this,h,"meridiem")}return _createClass(Meridiem)}(l.StringObject),E=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 l.XFAObjectArray(2);return o}return _createClass(MeridiemNames)}(l.XFAObject),M=function(t){_inherits(Month,t);var r=_createSuper(Month);function Month(t){_classCallCheck(this,Month);return r.call(this,h,"month")}return _createClass(Month)}(l.StringObject),R=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 l.XFAObjectArray(12);return o}return _createClass(MonthNames)}(l.XFAObject),j=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 _createClass(NumberPattern)}(l.StringObject),D=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 l.XFAObjectArray(4);return o}return _createClass(NumberPatterns)}(l.XFAObject),N=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 _createClass(NumberSymbol)}(l.StringObject),L=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 l.XFAObjectArray(5);return o}return _createClass(NumberSymbols)}(l.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 _createClass(TimePattern)}(l.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 l.XFAObjectArray(4);return o}return _createClass(TimePatterns)}(l.XFAObject),$=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 _createClass(TypeFace)}(l.XFAObject),X=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 l.XFAObjectArray;return o}return _createClass(TypeFaces)}(l.XFAObject),q=function(){function LocaleSetNamespace(){_classCallCheck(this,LocaleSetNamespace)}_createClass(LocaleSetNamespace,null,[{key:c.$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 g(t)}},{key:"currencySymbols",value:function currencySymbols(t){return new m(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 k(t)}},{key:"day",value:function day(t){return new _(t)}},{key:"dayNames",value:function dayNames(t){return new w(t)}},{key:"era",value:function era(t){return new S(t)}},{key:"eraNames",value:function eraNames(t){return new C(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 E(t)}},{key:"month",value:function month(t){return new M(t)}},{key:"monthNames",value:function monthNames(t){return new R(t)}},{key:"numberPattern",value:function numberPattern(t){return new j(t)}},{key:"numberPatterns",value:function numberPatterns(t){return new D(t)}},{key:"numberSymbol",value:function numberSymbol(t){return new N(t)}},{key:"numberSymbols",value:function numberSymbols(t){return new L(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 $(t)}},{key:"typeFaces",value:function typeFaces(t){return new X(t)}}]);return LocaleSetNamespace}();r.LocaleSetNamespace=q},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.SignatureNamespace=void 0;var c=o(220),l=o(218);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var u=c.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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(Signature,t);var r=_createSuper(Signature);function Signature(t){_classCallCheck(this,Signature);return r.call(this,u,"signature",!0)}return _createClass(Signature)}(l.XFAObject),d=function(){function SignatureNamespace(){_classCallCheck(this,SignatureNamespace)}_createClass(SignatureNamespace,null,[{key:c.$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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.StylesheetNamespace=void 0;var c=o(220),l=o(218);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var u=c.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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}(Stylesheet,t);var r=_createSuper(Stylesheet);function Stylesheet(t){_classCallCheck(this,Stylesheet);return r.call(this,u,"stylesheet",!0)}return _createClass(Stylesheet)}(l.XFAObject),d=function(){function StylesheetNamespace(){_classCallCheck(this,StylesheetNamespace)}_createClass(StylesheetNamespace,null,[{key:c.$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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.XdpNamespace=void 0;var c=o(220),l=o(218);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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var u=c.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}});Object.defineProperty(t,"prototype",{writable:!1});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 l.XFAObjectArray;o.template=null;return o}_createClass(Xdp,[{key:l.$onChildCheck,value:function value(t){var r=c.NamespaceIds[t[l.$nodeName]];return r&&t[l.$namespaceId]===r.id}}]);return Xdp}(l.XFAObject),d=function(){function XdpNamespace(){_classCallCheck(this,XdpNamespace)}_createClass(XdpNamespace,null,[{key:c.$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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.XhtmlNamespace=void 0;var c=o(218),l=o(220),u=o(225),h=o(219);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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var c=_superPropBase(t,r);if(c){var l=Object.getOwnPropertyDescriptor(c,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}};return _get.apply(this,arguments)}function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););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}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t};return _setPrototypeOf(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,c=_getPrototypeOf(t);if(r){var l=_getPrototypeOf(this).constructor;o=Reflect.construct(c,arguments,l)}else o=c.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}var d=l.NamespaceIds.xhtml.id,g=Symbol(),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"]),y=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}],["vertical-align",function(t){return(0,u.measureToString)((0,h.getMeasurement)(t))}]]),v=/\s+/g,k=/[\r\n]+/g,_=/\r\n?/g;function mapStyle(t,r,o){var l=Object.create(null);if(!t)return l;var d,g=Object.create(null),m=_createForOfIteratorHelper(t.split(";").map((function(t){return t.split(":",2)})));try{for(m.s();!(d=m.n()).done;){var v=_slicedToArray(d.value,2),k=v[0],_=v[1],w=y.get(k);if(""!==w){var S=_;w&&(S="string"==typeof w?w:w(_,g));k.endsWith("scale")?l.transform?l.transform="".concat(l[k]," ").concat(S):l.transform=S:l[k.replaceAll(/-([a-zA-Z])/g,(function(t,r){return r.toUpperCase()}))]=S}}}catch(t){m.e(t)}finally{m.f()}l.fontFamily&&(0,u.setFontFamily)({typeface:l.fontFamily,weight:l.fontWeight||"normal",posture:l.fontStyle||"normal",size:g.fontSize||0},r,r[c.$globalData].fontFinder,l);if(o&&l.verticalAlign&&"0px"!==l.verticalAlign&&l.fontSize){var C=(0,h.getMeasurement)(l.fontSize);l.fontSize=(0,u.measureToString)(.583*C);l.verticalAlign=(0,u.measureToString)(Math.sign((0,h.getMeasurement)(l.verticalAlign))*C*.333)}(0,u.fixTextIndent)(l);return l}var w=new Set(["body","html"]),S=function(t){_inherits(XhtmlObject,t);var r=_createSuper(XhtmlObject);function XhtmlObject(t,o){var c;_classCallCheck(this,XhtmlObject);(c=r.call(this,d,o))[g]=!1;c.style=t.style||"";return c}_createClass(XhtmlObject,[{key:c.$clean,value:function value(t){_get(_getPrototypeOf(XhtmlObject.prototype),c.$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),l=o[0],u=o[1];"font-family"===l&&t[c.$globalData].usedTypefaces.add(u);return m.has(l)})).map((function(t){return t.join(":")})).join(";"):""}(this)}},{key:c.$acceptWhitespace,value:function value(){return!w.has(this[c.$nodeName])}},{key:c.$onText,value:function value(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r)this[g]=!0;else{t=t.replace(k,"");this.style.includes("xfa-spacerun:yes")||(t=t.replace(v," "))}t&&(this[c.$content]+=t)}},{key:c.$pushGlyphs,value:function value(t){var r,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=Object.create(null),u={top:NaN,bottom:NaN,left:NaN,right:NaN},d=null,g=_createForOfIteratorHelper(this.style.split(";").map((function(t){return t.split(":",2)})));try{for(g.s();!(r=g.n()).done;){var m=_slicedToArray(r.value,2),y=m[0],value=m[1];switch(y){case"font-family":l.typeface=(0,h.stripQuotes)(value);break;case"font-size":l.size=(0,h.getMeasurement)(value);break;case"font-weight":l.weight=value;break;case"font-style":l.posture=value;break;case"letter-spacing":l.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){g.e(t)}finally{g.f()}t.pushData(l,u,d);if(this[c.$content])t.addString(this[c.$content]);else{var k,_=_createForOfIteratorHelper(this[c.$getChildren]());try{for(_.s();!(k=_.n()).done;){var w=k.value;"#text"!==w[c.$nodeName]?w[c.$pushGlyphs](t):t.addString(w[c.$content])}}catch(t){_.e(t)}finally{_.f()}}o&&t.popFont()}},{key:c.$toHTML,value:function value(t){var value,r=[];this[c.$extra]={children:r};this[c.$childrenToHTML]({});if(0===r.length&&!this[c.$content])return h.HTMLResult.EMPTY;value=this[g]?this[c.$content]?this[c.$content].replace(_,"\n"):void 0:this[c.$content]||void 0;return h.HTMLResult.success({name:this[c.$nodeName],attributes:{href:this.href,style:mapStyle(this.style,this,this[g])},children:r,value:value})}}]);return XhtmlObject}(c.XmlObject),C=function(t){_inherits(A,t);var r=_createSuper(A);function A(t){var o;_classCallCheck(this,A);(o=r.call(this,t,"a")).href=(0,u.fixURL)(t.href)||"";return o}return _createClass(A)}(S),x=function(t){_inherits(B,t);var r=_createSuper(B);function B(t){_classCallCheck(this,B);return r.call(this,t,"b")}_createClass(B,[{key:c.$pushGlyphs,value:function value(t){t.pushFont({weight:"bold"});_get(_getPrototypeOf(B.prototype),c.$pushGlyphs,this).call(this,t);t.popFont()}}]);return B}(S),O=function(t){_inherits(Body,t);var r=_createSuper(Body);function Body(t){_classCallCheck(this,Body);return r.call(this,t,"body")}_createClass(Body,[{key:c.$toHTML,value:function value(t){var r=_get(_getPrototypeOf(Body.prototype),c.$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}(S),T=function(t){_inherits(Br,t);var r=_createSuper(Br);function Br(t){_classCallCheck(this,Br);return r.call(this,t,"br")}_createClass(Br,[{key:c.$text,value:function value(){return"\n"}},{key:c.$pushGlyphs,value:function value(t){t.addString("\n")}},{key:c.$toHTML,value:function value(t){return h.HTMLResult.success({name:"br"})}}]);return Br}(S),E=function(t){_inherits(Html,t);var r=_createSuper(Html);function Html(t){_classCallCheck(this,Html);return r.call(this,t,"html")}_createClass(Html,[{key:c.$toHTML,value:function value(t){var r=[];this[c.$extra]={children:r};this[c.$childrenToHTML]({});if(0===r.length)return h.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[c.$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}(S),M=function(t){_inherits(I,t);var r=_createSuper(I);function I(t){_classCallCheck(this,I);return r.call(this,t,"i")}_createClass(I,[{key:c.$pushGlyphs,value:function value(t){t.pushFont({posture:"italic"});_get(_getPrototypeOf(I.prototype),c.$pushGlyphs,this).call(this,t);t.popFont()}}]);return I}(S),R=function(t){_inherits(Li,t);var r=_createSuper(Li);function Li(t){_classCallCheck(this,Li);return r.call(this,t,"li")}return _createClass(Li)}(S),j=function(t){_inherits(Ol,t);var r=_createSuper(Ol);function Ol(t){_classCallCheck(this,Ol);return r.call(this,t,"ol")}return _createClass(Ol)}(S),D=function(t){_inherits(P,t);var r=_createSuper(P);function P(t){_classCallCheck(this,P);return r.call(this,t,"p")}_createClass(P,[{key:c.$pushGlyphs,value:function value(t){_get(_getPrototypeOf(P.prototype),c.$pushGlyphs,this).call(this,t,!1);t.addString("\n");t.addPara();t.popFont()}},{key:c.$text,value:function value(){var t=this[c.$getParent]()[c.$getChildren]();return t[t.length-1]===this?_get(_getPrototypeOf(P.prototype),c.$text,this).call(this):_get(_getPrototypeOf(P.prototype),c.$text,this).call(this)+"\n"}}]);return P}(S),N=function(t){_inherits(Span,t);var r=_createSuper(Span);function Span(t){_classCallCheck(this,Span);return r.call(this,t,"span")}return _createClass(Span)}(S),L=function(t){_inherits(Sub,t);var r=_createSuper(Sub);function Sub(t){_classCallCheck(this,Sub);return r.call(this,t,"sub")}return _createClass(Sub)}(S),U=function(t){_inherits(Sup,t);var r=_createSuper(Sup);function Sup(t){_classCallCheck(this,Sup);return r.call(this,t,"sup")}return _createClass(Sup)}(S),H=function(t){_inherits(Ul,t);var r=_createSuper(Ul);function Ul(t){_classCallCheck(this,Ul);return r.call(this,t,"ul")}return _createClass(Ul)}(S),$=function(){function XhtmlNamespace(){_classCallCheck(this,XhtmlNamespace)}_createClass(XhtmlNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(XhtmlNamespace.hasOwnProperty(t))return XhtmlNamespace[t](r)}},{key:"a",value:function a(t){return new C(t)}},{key:"b",value:function b(t){return new x(t)}},{key:"body",value:function body(t){return new O(t)}},{key:"br",value:function br(t){return new T(t)}},{key:"html",value:function html(t){return new E(t)}},{key:"i",value:function i(t){return new M(t)}},{key:"li",value:function li(t){return new R(t)}},{key:"ol",value:function ol(t){return new j(t)}},{key:"p",value:function p(t){return new D(t)}},{key:"span",value:function span(t){return new N(t)}},{key:"sub",value:function sub(t){return new L(t)}},{key:"sup",value:function sup(t){return new U(t)}},{key:"ul",value:function ul(t){return new H(t)}}]);return XhtmlNamespace}();r.XhtmlNamespace=$},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.UnknownNamespace=void 0;var c=o(220),l=o(218);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}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);Object.defineProperty(t,"prototype",{writable:!1});return t}(UnknownNamespace,[{key:c.$buildXFAObject,value:function value(t,r){return new l.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 c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(147),h=o(150),d=o(169),g=o(151),m=o(215);function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return c}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}var y=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._pendingRefs=new u.RefSet;this.stats=new h.DocStats(r.msgHandler);this._newRefNum=null}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(c){(0,l.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 h.MissingDataException)throw t;(0,l.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(t,'".'))}if(r instanceof u.Dict){var d=t.get("ID"),g=d&&d.length?d[0]:"";r.suppressEncryption=!0;this.encrypt=new m.CipherTransformFactory(r,g,this.pdfManager.password)}try{o=t.get("Root")}catch(t){if(t instanceof h.MissingDataException)throw t;(0,l.warn)('XRef.parse - Invalid "Root" reference: "'.concat(t,'".'))}if(o instanceof u.Dict)try{var y=o.get("Pages");if(y instanceof u.Dict){this.root=o;return}}catch(t){if(t instanceof h.MissingDataException)throw t;(0,l.warn)('XRef.parse - Invalid "Pages" reference: "'.concat(t,'".'))}if(!c)throw new h.XRefParseException;throw new l.InvalidPDFException("Invalid Root reference.")}},{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 l.FormatError("Invalid XRef table: could not find trailer dictionary");var o=t.getObj();o instanceof u.Dict||!o.dict||(o=o.dict);if(!(o instanceof u.Dict))throw new l.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,c=this.tableState;o.pos=c.streamPos;t.buf1=c.parserBuf1;t.buf2=c.parserBuf2;for(;;){if(!("firstEntryNum"in c)||!("entryCount"in c)){if((0,u.isCmd)(r=t.getObj(),"trailer"))break;c.firstEntryNum=r;c.entryCount=t.getObj()}var h=c.firstEntryNum,d=c.entryCount;if(!Number.isInteger(h)||!Number.isInteger(d))throw new l.FormatError("Invalid XRef table: wrong types in subsection header");for(var g=c.entryNum;g<d;g++){c.streamPos=o.pos;c.entryNum=g;c.parserBuf1=t.buf1;c.parserBuf2=t.buf2;var m={};m.offset=t.getObj();m.gen=t.getObj();var y=t.getObj();if(y instanceof u.Cmd)switch(y.cmd){case"f":m.free=!0;break;case"n":m.uncompressed=!0}if(!Number.isInteger(m.offset)||!Number.isInteger(m.gen)||!m.free&&!m.uncompressed)throw new l.FormatError("Invalid entry in XRef subsection: ".concat(h,", ").concat(d));0===g&&m.free&&1===h&&(h=0);this.entries[g+h]||(this.entries[g+h]=m)}c.entryNum=0;c.streamPos=o.pos;c.parserBuf1=t.buf1;c.parserBuf2=t.buf2;delete c.firstEntryNum;delete c.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new l.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"),c=r.get("Index");c||(c=[0,r.get("Size")]);this.streamState={entryRanges:c,byteWidths:o,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict}},{key:"readXRefStream",value:function readXRefStream(t){var r=this.streamState;t.pos=r.streamPos;for(var o=_slicedToArray(r.byteWidths,3),c=o[0],u=o[1],h=o[2],d=r.entryRanges;d.length>0;){var g=_slicedToArray(d,2),m=g[0],y=g[1];if(!Number.isInteger(m)||!Number.isInteger(y))throw new l.FormatError("Invalid XRef range fields: ".concat(m,", ").concat(y));if(!Number.isInteger(c)||!Number.isInteger(u)||!Number.isInteger(h))throw new l.FormatError("Invalid XRef entry fields length: ".concat(m,", ").concat(y));for(var v=r.entryNum;v<y;++v){r.entryNum=v;r.streamPos=t.pos;for(var k=0,_=0,w=0,S=0;S<c;++S){var C=t.getByte();if(-1===C)throw new l.FormatError("Invalid XRef byteWidths 'type'.");k=k<<8|C}0===c&&(k=1);for(var x=0;x<u;++x){var O=t.getByte();if(-1===O)throw new l.FormatError("Invalid XRef byteWidths 'offset'.");_=_<<8|O}for(var T=0;T<h;++T){var E=t.getByte();if(-1===E)throw new l.FormatError("Invalid XRef byteWidths 'generation'.");w=w<<8|E}var M={};M.offset=_;M.gen=w;switch(k){case 0:M.free=!0;break;case 1:M.uncompressed=!0;break;case 2:break;default:throw new l.FormatError("Invalid XRef entry type: ".concat(k))}this.entries[m+v]||(this.entries[m+v]=M)}r.entryNum=0;r.streamPos=t.pos;d.splice(0,2)}}},{key:"indexObjects",value:function indexObjects(){function readToken(t,r){for(var o="",c=t[r];10!==c&&13!==c&&60!==c&&!(++r>=t.length);){o+=String.fromCharCode(c);c=t[r]}return o}function skipUntil(t,r,o){for(var c=o.length,l=t.length,u=0;r<l;){for(var h=0;h<c&&t[r+h]===o[h];)++h;if(h>=c)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<])$/,c=new Uint8Array([116,114,97,105,108,101,114]),g=new Uint8Array([115,116,97,114,116,120,114,101,102]),m=new Uint8Array([111,98,106]),y=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();var v=this.stream;v.pos=0;for(var k,_=v.getBytes(),w=_.length,S=v.start,C=[],x=[];S<w;){var O=_[S];if(9!==O&&10!==O&&13!==O&&32!==O)if(37!==O){var T=readToken(_,S),E=void 0;if(T.startsWith("xref")&&(4===T.length||/\s/.test(T[4]))){S+=skipUntil(_,S,c);C.push(S);S+=skipUntil(_,S,g)}else if(E=t.exec(T)){var M=0|E[1],R=0|E[2],j=void 0,D=S+T.length,N=!1;if(this.entries[M]){if(this.entries[M].gen===R)try{new d.Parser({lexer:new d.Lexer(v.makeSubStream(D))}).getObj();N=!0}catch(t){t instanceof h.ParserEOFException?(0,l.warn)("indexObjects -- checking object (".concat(T,'): "').concat(t,'".')):N=!0}}else N=!0;N&&(this.entries[M]={offset:S-v.start,gen:R,uncompressed:!0});for(;D<_.length;){var L=D+skipUntil(_,D,m)+4;j=L-S;var U=Math.max(L-25,D),H=(0,l.bytesToString)(_.subarray(U,L));if(r.test(H))break;var $=o.exec(H);if($&&$[1]){(0,l.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.');j-=$[1].length;break}D=L}var X=_.subarray(S,S+j),q=skipUntil(X,0,y);if(q<j&&X[q+5]<64){x.push(S-v.start);this.xrefstms[S-v.start]=1}S+=j}else if(T.startsWith("trailer")&&(7===T.length||/\s/.test(T[7]))){C.push(S);S+=skipUntil(_,S,g)}else S+=T.length+1}else do{if(++S>=w)break;O=_[S]}while(10!==O&&13!==O);else++S}for(var G=0,z=x.length;G<z;++G){this.startXRefQueue.push(x[G]);this.readXRef(!0)}for(var W=0,V=C.length;W<V;++W){v.pos=C[W];var K=new d.Parser({lexer:new d.Lexer(v),xref:this,allowStreams:!0,recoveryMode:!0}),Y=K.getObj();if((0,u.isCmd)(Y,"trailer")){var J=K.getObj();if(J instanceof u.Dict){try{var Z=J.get("Root");if(!(Z instanceof u.Dict))continue;var Q=Z.get("Pages");if(!(Q instanceof u.Dict))continue;var ee=Q.get("Count");if(!Number.isInteger(ee))continue}catch(t){continue}if(J.has("ID"))return J;k=J}}}if(k)return k;if(this.topDict)return this.topDict;throw new l.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 c=this.startXRefQueue[0];if(o.has(c)){(0,l.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift()}else{o.add(c);r.pos=c+r.start;var m=new d.Parser({lexer:new d.Lexer(r),xref:this,allowStreams:!0}),y=m.getObj(),v=void 0;if((0,u.isCmd)(y,"xref")){v=this.processXRefTable(m);this.topDict||(this.topDict=v);y=v.get("XRefStm");if(Number.isInteger(y)){var k=y;if(!(k in this.xrefstms)){this.xrefstms[k]=1;this.startXRefQueue.push(k)}}}else{if(!Number.isInteger(y))throw new l.FormatError("Invalid XRef stream header");if(!(Number.isInteger(m.getObj())&&(0,u.isCmd)(m.getObj(),"obj")&&(y=m.getObj())instanceof g.BaseStream))throw new l.FormatError("Invalid XRef stream");v=this.processXRefStream(y);this.topDict||(this.topDict=v);if(!v)throw new l.FormatError("Failed to read XRef stream")}y=v.get("Prev");Number.isInteger(y)?this.startXRefQueue.push(y):y instanceof u.Ref&&this.startXRefQueue.push(y.num);this.startXRefQueue.shift()}}return this.topDict}catch(t){if(t instanceof h.MissingDataException)throw t;(0,l.info)("(while reading XRef): "+t);this.startXRefQueue.shift()}if(!t)throw new h.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,c=this._cacheMap.get(o);if(void 0!==c){c instanceof u.Dict&&!c.objId&&(c.objId=t.toString());return c}var h=this.getEntry(o);if(null===h){this._cacheMap.set(o,h);return h}if(this._pendingRefs.has(t)){this._pendingRefs.remove(t);(0,l.warn)("Ignoring circular reference: ".concat(t,"."));return u.CIRCULAR_REF}this._pendingRefs.put(t);try{h=h.uncompressed?this.fetchUncompressed(t,h,r):this.fetchCompressed(t,h,r);this._pendingRefs.remove(t)}catch(r){this._pendingRefs.remove(t);throw r}h instanceof u.Dict?h.objId=t.toString():h instanceof g.BaseStream&&(h.dict.objId=t.toString());return h}},{key:"fetchUncompressed",value:function fetchUncompressed(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=t.gen,l=t.num;if(r.gen!==c)throw new h.XRefEntryException("Inconsistent generation in XRef: ".concat(t));var m=this.stream.makeSubStream(r.offset+this.stream.start),y=new d.Parser({lexer:new d.Lexer(m),xref:this,allowStreams:!0}),v=y.getObj(),k=y.getObj(),_=y.getObj();if(v!==l||k!==c||!(_ instanceof u.Cmd))throw new h.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t));if("obj"!==_.cmd){if(_.cmd.startsWith("obj")){l=parseInt(_.cmd.substring(3),10);if(!Number.isNaN(l))return l}throw new h.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t))}(r=this.encrypt&&!o?y.getObj(this.encrypt.createCipherTransform(l,c)):y.getObj())instanceof g.BaseStream||this._cacheMap.set(l,r);return r}},{key:"fetchCompressed",value:function fetchCompressed(t,r){var o=r.offset,c=this.fetch(u.Ref.get(o,0));if(!(c instanceof g.BaseStream))throw new l.FormatError("bad ObjStm stream");var m=c.dict.get("First"),y=c.dict.get("N");if(!Number.isInteger(m)||!Number.isInteger(y))throw new l.FormatError("invalid first and n parameters for ObjStm stream");for(var v=new d.Parser({lexer:new d.Lexer(c),xref:this,allowStreams:!0}),k=new Array(y),_=new Array(y),w=0;w<y;++w){var S=v.getObj();if(!Number.isInteger(S))throw new l.FormatError("invalid object number in the ObjStm stream: ".concat(S));var C=v.getObj();if(!Number.isInteger(C))throw new l.FormatError("invalid object offset in the ObjStm stream: ".concat(C));k[w]=S;_[w]=C}for(var x=(c.start||0)+m,O=new Array(y),T=0;T<y;++T){var E=T<y-1?_[T+1]-_[T]:void 0;if(E<0)throw new l.FormatError("Invalid offset in the ObjStm stream.");var M=(v=new d.Parser({lexer:new d.Lexer(c.makeSubStream(x+_[T],E,c.dict)),xref:this,allowStreams:!0})).getObj();O[T]=M;if(!(M instanceof g.BaseStream)){var R=k[T],j=this.entries[R];j&&j.offset===o&&j.gen===T&&this._cacheMap.set(R,M)}}if(void 0===(r=O[r.gen]))throw new h.XRefEntryException("Bad (compressed) XRef entry: ".concat(t));return r}},{key:"fetchIfRefAsync",value:(r=_asyncToGenerator(c.default.mark((function _callee(t,r){return c.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(c.default.mark((function _callee2(t,r){return c.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 h.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=y},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MessageHandler=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4);function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var u=1,h=2,d=1,g=2,m=3,y=4,v=5,k=6,_=7,w=8;function wrapReason(t){t instanceof Error||"object"===_typeof(t)&&null!==t||(0,l.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.');switch(t.name){case"AbortException":return new l.AbortException(t.message);case"MissingPDFException":return new l.MissingPDFException(t.message);case"PasswordException":return new l.PasswordException(t.message,t.code);case"UnexpectedResponseException":return new l.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new l.UnknownErrorException(t.message,t.details);default:return new l.UnknownErrorException(t.message,t.toString())}}var S=function(){function MessageHandler(t,r,o){var c=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.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===c.sourceName)if(r.stream)c._processStreamMessage(r);else if(r.callback){var l=r.callbackId,d=c.callbackCapabilities[l];if(!d)throw new Error("Cannot resolve callback ".concat(l));delete c.callbackCapabilities[l];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 g=c.actionHandler[r.action];if(!g)throw new Error("Unknown action from worker: ".concat(r.action));if(r.callbackId){var m=c.sourceName,y=r.sourceName;new Promise((function(t){t(g(r.data))})).then((function(t){o.postMessage({sourceName:m,targetName:y,callback:u,callbackId:r.callbackId,data:t})}),(function(t){o.postMessage({sourceName:m,targetName:y,callback:h,callbackId:r.callbackId,reason:wrapReason(t)})}))}else r.streamId?c._createStreamSink(r):g(r.data)}};o.addEventListener("message",this._onComObjOnMessage)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},o)}},{key:"sendWithPromise",value:function sendWithPromise(t,r,o){var c=this.callbackId++,u=(0,l.createPromiseCapability)();this.callbackCapabilities[c]=u;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:c,data:r},o)}catch(t){u.reject(t)}return u.promise}},{key:"sendWithStream",value:function sendWithStream(t,r,o,c){var u=this,h=this.streamId++,g=this.sourceName,m=this.targetName,y=this.comObj;return new ReadableStream({start:function start(o){var d=(0,l.createPromiseCapability)();u.streamControllers[h]={controller:o,startCall:d,pullCall:null,cancelCall:null,isClosed:!1};y.postMessage({sourceName:g,targetName:m,action:t,streamId:h,data:r,desiredSize:o.desiredSize},c);return d.promise},pull:function pull(t){var r=(0,l.createPromiseCapability)();u.streamControllers[h].pullCall=r;y.postMessage({sourceName:g,targetName:m,stream:k,streamId:h,desiredSize:t.desiredSize});return r.promise},cancel:function cancel(t){(0,l.assert)(t instanceof Error,"cancel must have a valid reason");var r=(0,l.createPromiseCapability)();u.streamControllers[h].cancelCall=r;u.streamControllers[h].isClosed=!0;y.postMessage({sourceName:g,targetName:m,stream:d,streamId:h,reason:wrapReason(t)});return r.promise}},o)}},{key:"_createStreamSink",value:function _createStreamSink(t){var r=t.streamId,o=this.sourceName,c=t.sourceName,u=this.comObj,h=this,d=this.actionHandler[t.action],g={enqueue:function enqueue(t){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,d=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var g=this.desiredSize;this.desiredSize-=h;if(g>0&&this.desiredSize<=0){this.sinkCapability=(0,l.createPromiseCapability)();this.ready=this.sinkCapability.promise}u.postMessage({sourceName:o,targetName:c,stream:y,streamId:r,chunk:t},d)}},close:function close(){if(!this.isCancelled){this.isCancelled=!0;u.postMessage({sourceName:o,targetName:c,stream:m,streamId:r});delete h.streamSinks[r]}},error:function error(t){(0,l.assert)(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;u.postMessage({sourceName:o,targetName:c,stream:v,streamId:r,reason:wrapReason(t)})}},sinkCapability:(0,l.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};g.sinkCapability.resolve();g.ready=g.sinkCapability.promise;this.streamSinks[r]=g;new Promise((function(r){r(d(t.data,g))})).then((function(){u.postMessage({sourceName:o,targetName:c,stream:w,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:c,stream:w,streamId:r,reason:wrapReason(t)})}))}},{key:"_processStreamMessage",value:function _processStreamMessage(t){var r=t.streamId,o=this.sourceName,c=t.sourceName,u=this.comObj,h=this.streamControllers[r],S=this.streamSinks[r];switch(t.stream){case w:t.success?h.startCall.resolve():h.startCall.reject(wrapReason(t.reason));break;case _:t.success?h.pullCall.resolve():h.pullCall.reject(wrapReason(t.reason));break;case k:if(!S){u.postMessage({sourceName:o,targetName:c,stream:_,streamId:r,success:!0});break}S.desiredSize<=0&&t.desiredSize>0&&S.sinkCapability.resolve();S.desiredSize=t.desiredSize;new Promise((function(t){t(S.onPull&&S.onPull())})).then((function(){u.postMessage({sourceName:o,targetName:c,stream:_,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:c,stream:_,streamId:r,reason:wrapReason(t)})}));break;case y:(0,l.assert)(h,"enqueue should have stream controller");if(h.isClosed)break;h.controller.enqueue(t.chunk);break;case m:(0,l.assert)(h,"close should have stream controller");if(h.isClosed)break;h.isClosed=!0;h.controller.close();this._deleteStreamController(h,r);break;case v:(0,l.assert)(h,"error should have stream controller");h.controller.error(wrapReason(t.reason));this._deleteStreamController(h,r);break;case g:t.success?h.cancelCall.resolve():h.cancelCall.reject(wrapReason(t.reason));this._deleteStreamController(h,r);break;case d:if(!S)break;new Promise((function(r){r(S.onCancel&&S.onCancel(wrapReason(t.reason)))})).then((function(){u.postMessage({sourceName:o,targetName:c,stream:g,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:c,stream:g,streamId:r,reason:wrapReason(t)})}));S.sinkCapability.reject(wrapReason(t.reason));S.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(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_next,_throw,"throw",t)}_next(void 0)}))}}(c.default.mark((function _callee(t,r){return c.default.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return Promise.allSettled([t.startCall&&t.startCall.promise,t.pullCall&&t.pullCall.promise,t.cancelCall&&t.cancelCall.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return o.stop()}}),_callee,this)}))),function _deleteStreamController(r,o){return t.apply(this,arguments)})},{key:"destroy",value:function destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);var t;return MessageHandler}();r.MessageHandler=S},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFWorkerStream=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4);function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),g=d.value}catch(t){o(t);return}d.done?r(g):Promise.resolve(g).then(c,l)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(c,l){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,c,l,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,c,l,_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 c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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,c=new Array(r);o<r;o++)c[o]=t[o];return 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 c=r[o];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(t,c.key,c)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});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,l.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(c.default.mark((function _callee(){var t,r;return c.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 c=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=c.getReader()}_createClass(PDFWorkerStreamRangeReader,[{key:"isStreamingSupported",get:function get(){return!1}},{key:"read",value:(t=_asyncToGenerator(c.default.mark((function _callee2(){var t,r;return c.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 c=r[o];if(void 0!==c)return c.exports;var l=r[o]={id:o,loaded:!1,exports:{}};t[o](l,l.exports,__w_pdfjs_require__);l.loaded=!0;return l.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})()}));