ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
22 lines • 1.85 MB
JavaScript
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2023 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
!function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=t.pdfjsWorker=r():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],(()=>t.pdfjsWorker=r())):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r()}(globalThis,(()=>(()=>{"use strict";var t=[,(t,r,o)=>{o(2);o(54);o(56);o(104);o(105);o(113);o(114);o(123);o(129);o(130);o(131);o(132);o(133);o(134);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.WorkerTask=r.WorkerMessageHandler=void 0;o(137);o(143);o(145);o(174);o(175);o(177);o(180);o(182);o(183);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(290);o(293);o(295);o(296);o(297);o(299);o(300);o(302);o(303);var c=o(304),l=o(343),u=o(350),h=o(355),d=o(367),y=o(455),g=o(448),v=o(495),m=o(496);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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},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 _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}Promise.allSettled||(Promise.allSettled=function(t){var r=t.filter((function(t){return!!t})).map((function(t){return t.then((function(t){return{status:"fulfilled",value:t}})).catch((function(t){return{status:"rejected",reason:t}}))}));return Promise.all(r)});var _=function(){function WorkerTask(t){_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=new c.PromiseCapability}_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(r){if(!o){o=!0;t.send("test",r instanceof Uint8Array)}}));t.on("configure",(function(t){(0,c.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var o,w=!1,k=null,S=new Set,C=(0,c.getVerbosityLevel)(),x=t,O=x.docId,T=x.apiVersion,E="3.11.440";if(T!==E)throw new Error('The API version "'.concat(T,'" does not match ')+'the Worker version "'.concat(E,'".'));var R=[];for(var M in[])R.push(M);if(R.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+R.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var j=O+"_worker",L=new v.MessageHandler(j,O,r);function ensureNotTerminated(){if(w)throw new Error("Worker was terminated")}function startWorkerTask(t){S.add(t)}function finishWorkerTask(t){t.finish();S.delete(t)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t){var r,c,l,u,h,d,y;return _regeneratorRuntime().wrap((function _callee2$(g){for(;;)switch(g.prev=g.next){case 0:g.next=2;return o.ensureDoc("checkHeader");case 2:g.next=4;return o.ensureDoc("parseStartXRef");case 4:g.next=6;return o.ensureDoc("parse",[t]);case 6:g.next=8;return o.ensureDoc("checkFirstPage",[t]);case 8:g.next=10;return o.ensureDoc("checkLastPage",[t]);case 10:g.next=12;return o.ensureDoc("isPureXfa");case 12:if(!(r=g.sent)){g.next=18;break}startWorkerTask(c=new _("loadXfaFonts"));g.next=18;return Promise.all([o.loadXfaFonts(L,c).catch((function(t){})).then((function(){return finishWorkerTask(c)})),o.loadXfaImages()]);case 18:g.next=20;return Promise.all([o.ensureDoc("numPages"),o.ensureDoc("fingerprints")]);case 20:l=g.sent;u=_slicedToArray(l,2);h=u[0];d=u[1];if(!r){g.next=30;break}g.next=27;return o.ensureDoc("htmlForXfa");case 27:g.t0=g.sent;g.next=31;break;case 30:g.t0=null;case 31:y=g.t0;return g.abrupt("return",{numPages:h,fingerprints:d,htmlForXfa:y});case 33:case"end":return g.stop()}}),_callee2)})))).apply(this,arguments)}function getPdfManager(t){var r,o=t.data,u=t.password,d=t.disableAutoFetch,y=t.rangeChunkSize,g=t.length,v=t.docBaseUrl,_=t.enableXfa,w=t.evaluatorOptions,S={source:null,disableAutoFetch:d,docBaseUrl:v,docId:O,enableXfa:_,evaluatorOptions:w,handler:L,length:g,password:u,rangeChunkSize:y},C=new c.PromiseCapability;if(o){try{S.source=o;r=new h.LocalPdfManager(S);C.resolve(r)}catch(t){C.reject(t)}return C.promise}var x,T=[];try{x=new m.PDFWorkerStream(L)}catch(t){C.reject(t);return C.promise}var E=x.getFullReader();E.headersReady.then((function(){if(E.isRangeSupported){S.source=x;S.length=E.contentLength;S.disableAutoFetch||(S.disableAutoFetch=E.isStreamingSupported);r=new h.NetworkPdfManager(S);for(var t=0,o=T;t<o.length;t++){var c=o[t];r.sendProgressiveData(c)}T=[];C.resolve(r);k=null}})).catch((function(t){C.reject(t);k=null}));var R=0;new Promise((function(t,o){E.read().then((function readChunk(t){var u=t.value,d=t.done;try{ensureNotTerminated();if(d){r||function flushChunks(){var t=(0,l.arrayBuffersToBytes)(T);g&&t.length!==g&&(0,c.warn)("reported HTTP length is different from actual");try{S.source=t;r=new h.LocalPdfManager(S);C.resolve(r)}catch(t){C.reject(t)}T=[]}();k=null;return}R+=u.byteLength;E.isStreamingSupported||L.send("DocProgress",{loaded:R,total:Math.max(R,E.contentLength||0)});r?r.sendProgressiveData(u):T.push(u);E.read().then(readChunk,o)}catch(t){o(t)}}),o)})).catch((function(t){C.reject(t);k=null}));k=function cancelXHRs(t){x.cancelAllRequests(t)};return C.promise}L.on("GetPage",(function(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(t){var r=u.Ref.get(t.num,t.gen);return o.ensureCatalog("getPageIndex",[r])}));L.on("GetDestinations",(function(t){return o.ensureCatalog("destinations")}));L.on("GetDestination",(function(t){return o.ensureCatalog("getDestination",[t.id])}));L.on("GetPageLabels",(function(t){return o.ensureCatalog("pageLabels")}));L.on("GetPageLayout",(function(t){return o.ensureCatalog("pageLayout")}));L.on("GetPageMode",(function(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(t){return o.ensureCatalog("attachments")}));L.on("GetDocJSActions",(function(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(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(t){return Promise.all([o.ensureDoc("documentInfo"),o.ensureCatalog("metadata")])}));L.on("GetMarkInfo",(function(t){return o.ensureCatalog("markInfo")}));L.on("GetData",(function(t){return o.requestLoadedStream().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){var o=new _("GetAnnotations: page ".concat(r));startWorkerTask(o);return t.getAnnotationsData(L,o,c).then((function(t){finishWorkerTask(o);return t}),(function(t){finishWorkerTask(o);throw t}))}))}));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(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t){var r,h,y,v,m,w,k,S,C,x,O,T,E;return _regeneratorRuntime().wrap((function _callee$(R){for(;;)switch(R.prev=R.next){case 0:r=t.isPureXfa,h=t.numPages,y=t.annotationStorage,v=t.filename;m=[o.requestLoadedStream(),o.ensureCatalog("acroForm"),o.ensureCatalog("acroFormRef"),o.ensureDoc("startXRef"),o.ensureDoc("linearization")];w=r?null:(0,l.getNewAnnotationsMap)(y);R.next=5;return o.ensureDoc("xref");case 5:k=R.sent;if(!w){R.next=24;break}S=d.AnnotationFactory.generateImages(y.values(),k,o.evaluatorOptions.isOffscreenCanvasSupported);C=_createForOfIteratorHelper(w);R.prev=9;O=_regeneratorRuntime().mark((function _loop(){var t,r,c;return _regeneratorRuntime().wrap((function _loop$(l){for(;;)switch(l.prev=l.next){case 0:t=_slicedToArray(x.value,2),r=t[0],c=t[1];m.push(o.getPage(r).then((function(t){var o=new _("Save (editor): page ".concat(r));return t.saveNewAnnotations(L,o,c,S).finally((function(){finishWorkerTask(o)}))})));case 2:case"end":return l.stop()}}),_loop)}));C.s();case 12:if((x=C.n()).done){R.next=16;break}return R.delegateYield(O(),"t0",14);case 14:R.next=12;break;case 16:R.next=21;break;case 18:R.prev=18;R.t1=R.catch(9);C.e(R.t1);case 21:R.prev=21;C.f();return R.finish(21);case 24:if(!r){R.next=28;break}m.push(o.serializeXfaData(y));R.next=35;break;case 28:T=_regeneratorRuntime().mark((function _loop2(t){return _regeneratorRuntime().wrap((function _loop2$(r){for(;;)switch(r.prev=r.next){case 0:m.push(o.getPage(t).then((function(r){var o=new _("Save: page ".concat(t));return r.save(L,o,y).finally((function(){finishWorkerTask(o)}))})));case 1:case"end":return r.stop()}}),_loop2)}));E=0;case 30:if(!(E<h)){R.next=35;break}return R.delegateYield(T(E),"t2",32);case 32:E++;R.next=30;break;case 35:return R.abrupt("return",Promise.all(m).then((function(t){var o=_toArray(t),l=o[0],h=o[1],d=o[2],y=o[3],m=o[4],_=o.slice(5),w=[],S=null;if(r){if(!(S=_[0]))return l.bytes}else if(0===(w=_.flat(2)).length)return l.bytes;var C=d&&h instanceof u.Dict&&w.some((function(t){return t.needAppearances})),x=h instanceof u.Dict&&h.get("XFA")||null,O=null,T=!1;if(Array.isArray(x)){for(var E=0,R=x.length;E<R;E+=2)if("datasets"===x[E]){O=x[E+1];T=!0}null===O&&(O=k.getNewTemporaryRef())}else x&&(0,c.warn)("Unsupported XFA type.");var M=Object.create(null);if(k.trailer){var j,L=Object.create(null),D=k.trailer.get("Info")||null;D instanceof u.Dict&&D.forEach((function(t,r){"string"==typeof r&&(L[t]=(0,c.stringToPDFString)(r))}));M={rootRef:k.trailer.getRaw("Root")||null,encryptRef:k.trailer.getRaw("Encrypt")||null,newRef:k.getNewTemporaryRef(),infoRef:k.trailer.getRaw("Info")||null,info:L,fileIds:k.trailer.get("ID")||null,startXRef:m?y:null!==(j=k.lastXRefStreamPos)&&void 0!==j?j:y,filename:v}}return(0,g.incrementalUpdate)({originalData:l.bytes,xrefInfo:M,newRefs:w,xref:k,hasXfa:!!x,xfaDatasetsRef:O,hasXfaDatasetsEntry:T,needAppearances:C,acroFormRef:d,acroForm:h,xfaData:S}).finally((function(){k.resetNewTemporaryRef()}))})));case 36:case"end":return R.stop()}}),_callee,null,[[9,18,21,24]])})));return function(r){return t.apply(this,arguments)}}());L.on("GetOperatorList",(function(t,r){var l=t.pageIndex;o.getPage(l).then((function(o){var u=new _("GetOperatorList: page ".concat(l));startWorkerTask(u);var h=C>=c.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,c.info)("page=".concat(l+1," - getOperatorList: time=")+"".concat(Date.now()-h,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));L.on("GetTextContent",(function(t,r){var l=t.pageIndex,u=t.includeMarkedContent,h=t.disableNormalization;o.getPage(l).then((function(t){var o=new _("GetTextContent: page "+l);startWorkerTask(o);var d=C>=c.VerbosityLevel.INFOS?Date.now():0;t.extractTextContent({handler:L,task:o,sink:r,includeMarkedContent:u,disableNormalization:h}).then((function(){finishWorkerTask(o);d&&(0,c.info)("page=".concat(l+1," - getTextContent: time=")+"".concat(Date.now()-d,"ms"));r.close()}),(function(t){finishWorkerTask(o);o.terminated||r.error(t)}))}))}));L.on("GetStructTree",(function(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(t){return o.cleanup(!0)}));L.on("Terminate",(function(t){w=!0;var r=[];if(o){o.terminate(new c.AbortException("Worker was terminated."));var l=o.cleanup();r.push(l);o=null}else(0,y.clearGlobalCaches)();k&&k(new c.AbortException("Worker was terminated."));var u,h=_createForOfIteratorHelper(S);try{for(h.s();!(u=h.n()).done;){var d=u.value;r.push(d.finished);d.terminate()}}catch(t){h.e(t)}finally{h.f()}return Promise.all(r).then((function(){L.destroy();L=null}))}));L.on("Ready",(function(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();L.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof c.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 c.InvalidPDFException||t instanceof c.MissingPDFException||t instanceof c.UnexpectedResponseException||t instanceof c.UnknownErrorException?L.send("DocException",t):L.send("DocException",new c.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();t instanceof l.XRefParseException?o.requestLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(t)}))}ensureNotTerminated();getPdfManager(t).then((function(t){if(w){t.terminate(new c.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).requestLoadedStream(!0).then((function(t){L.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));L.on("showUnverifiedSignatures",(function wphReady(t){t&&(0,c.info)("showUnverifiedSignatures="+t+". This is an incompletely implemented feature. Signatures cannot be validated, so use it at own risk.");self.showUnverifiedSignatures=t}));return j}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new v.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=w;"undefined"==typeof window&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&w.initializeFromPort(self)},(t,r,o)=>{var c=o(3),l=o(43);c("toPrimitive");l()},(t,r,o)=>{var c=o(4),l=o(6),u=o(13),h=o(24).f;t.exports=function(t){var r=c.Symbol||(c.Symbol={});l(r,t)||h(r,t,{value:u.f(t)})}},(t,r,o)=>{var c=o(5);t.exports=c},function(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}()||this||Function("return this")()},(t,r,o)=>{var c=o(7),l=o(10),u=c({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return u(l(t),r)}},(t,r,o)=>{var c=o(8),l=Function.prototype,u=l.call,h=c&&l.bind.bind(u,u);t.exports=c?h:function(t){return function(){return u.apply(t,arguments)}}},(t,r,o)=>{var c=o(9);t.exports=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,r,o)=>{var c=o(11),l=Object;t.exports=function(t){return l(c(t))}},(t,r,o)=>{var c=o(12),l=TypeError;t.exports=function(t){if(c(t))throw l("Can't call method on "+t);return t}},t=>{t.exports=function(t){return null==t}},(t,r,o)=>{var c=o(14);r.f=c},(t,r,o)=>{var c=o(5),l=o(15),u=o(6),h=o(19),d=o(20),y=o(23),g=c.Symbol,v=l("wks"),m=y?g.for||g:g&&g.withoutSetter||h;t.exports=function(t){u(v,t)||(v[t]=d&&u(g,t)?g[t]:m("Symbol."+t));return v[t]}},(t,r,o)=>{var c=o(16),l=o(17);(t.exports=function(t,r){return l[t]||(l[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.32.1",mode:c?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,r,o)=>{var c=o(5),l=o(18),u="__core-js_shared__",h=c[u]||l(u,{});t.exports=h},(t,r,o)=>{var c=o(5),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(7),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(21),l=o(9),u=o(5).String;t.exports=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&c&&c<41}))},(t,r,o)=>{var c,l,u=o(5),h=o(22),d=u.process,y=u.Deno,g=d&&d.versions||y&&y.version,v=g&&g.v8;v&&(l=(c=v.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=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(t,r,o)=>{var c=o(20);t.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var c=o(25),l=o(26),u=o(31),h=o(32),d=o(33),y=TypeError,g=Object.defineProperty,v=Object.getOwnPropertyDescriptor,m="enumerable",_="configurable",w="writable";r.f=c?u?function defineProperty(t,r,o){h(t);r=d(r);h(o);if("function"==typeof t&&"prototype"===r&&"value"in o&&w in o&&!o[w]){var c=v(t,r);if(c&&c[w]){t[r]=o.value;o={configurable:_ in o?o[_]:c[_],enumerable:m in o?o[m]:c[m],writable:!1}}}return g(t,r,o)}:g:function defineProperty(t,r,o){h(t);r=d(r);h(o);if(l)try{return g(t,r,o)}catch(t){}if("get"in o||"set"in o)throw y("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var c=o(9);t.exports=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(t,r,o)=>{var c=o(25),l=o(9),u=o(27);t.exports=!c&&!l((function(){return 7!==Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var c=o(5),l=o(28),u=c.document,h=l(u)&&l(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var c=o(29),l=o(30),u=l.all;t.exports=l.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:c(t)||t===u}:function(t){return"object"==typeof t?null!==t:c(t)}},(t,r,o)=>{var c=o(30),l=c.all;t.exports=c.IS_HTMLDDA?function(t){return"function"==typeof t||t===l}:function(t){return"function"==typeof t}},t=>{var r="object"==typeof document&&document.all,o=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:o}},(t,r,o)=>{var c=o(25),l=o(9);t.exports=c&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,r,o)=>{var c=o(28),l=String,u=TypeError;t.exports=function(t){if(c(t))return t;throw u(l(t)+" is not an object")}},(t,r,o)=>{var c=o(34),l=o(36);t.exports=function(t){var r=c(t,"string");return l(r)?r:r+""}},(t,r,o)=>{var c=o(35),l=o(28),u=o(36),h=o(39),d=o(42),y=o(14),g=TypeError,v=y("toPrimitive");t.exports=function(t,r){if(!l(t)||u(t))return t;var o,y=h(t,v);if(y){void 0===r&&(r="default");o=c(y,t,r);if(!l(o)||u(o))return o;throw g("Can't convert object to primitive value")}void 0===r&&(r="number");return d(t,r)}},(t,r,o)=>{var c=o(8),l=Function.prototype.call;t.exports=c?l.bind(l):function(){return l.apply(l,arguments)}},(t,r,o)=>{var c=o(37),l=o(29),u=o(38),h=o(23),d=Object;t.exports=h?function(t){return"symbol"==typeof t}:function(t){var r=c("Symbol");return l(r)&&u(r.prototype,d(t))}},(t,r,o)=>{var c=o(5),l=o(29);t.exports=function(t,r){return arguments.length<2?(o=c[t],l(o)?o:void 0):c[t]&&c[t][r];var o}},(t,r,o)=>{var c=o(7);t.exports=c({}.isPrototypeOf)},(t,r,o)=>{var c=o(40),l=o(12);t.exports=function(t,r){var o=t[r];return l(o)?void 0:c(o)}},(t,r,o)=>{var c=o(29),l=o(41),u=TypeError;t.exports=function(t){if(c(t))return t;throw u(l(t)+" is not a function")}},t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},(t,r,o)=>{var c=o(35),l=o(29),u=o(28),h=TypeError;t.exports=function(t,r){var o,d;if("string"===r&&l(o=t.toString)&&!u(d=c(o,t)))return d;if(l(o=t.valueOf)&&!u(d=c(o,t)))return d;if("string"!==r&&l(o=t.toString)&&!u(d=c(o,t)))return d;throw h("Can't convert object to primitive value")}},(t,r,o)=>{var c=o(35),l=o(37),u=o(14),h=o(44);t.exports=function(){var t=l("Symbol"),r=t&&t.prototype,o=r&&r.valueOf,d=u("toPrimitive");r&&!r[d]&&h(r,d,(function(t){return c(o,this)}),{arity:1})}},(t,r,o)=>{var c=o(29),l=o(24),u=o(45),h=o(18);t.exports=function(t,r,o,d){d||(d={});var y=d.enumerable,g=void 0!==d.name?d.name:r;c(o)&&u(o,g,d);if(d.global)y?t[r]=o:h(r,o);else{try{d.unsafe?t[r]&&(y=!0):delete t[r]}catch(t){}y?t[r]=o:l.f(t,r,{value:o,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return t}},(t,r,o)=>{var c=o(7),l=o(9),u=o(29),h=o(6),d=o(25),y=o(46).CONFIGURABLE,g=o(47),v=o(48),m=v.enforce,_=v.get,w=String,k=Object.defineProperty,S=c("".slice),C=c("".replace),x=c([].join),O=d&&!l((function(){return 8!==k((function(){}),"length",{value:8}).length})),T=String(String).split("String"),E=t.exports=function(t,r,o){"Symbol("===S(w(r),0,7)&&(r="["+C(w(r),/^Symbol\(([^)]*)\)/,"$1")+"]");o&&o.getter&&(r="get "+r);o&&o.setter&&(r="set "+r);(!h(t,"name")||y&&t.name!==r)&&(d?k(t,"name",{value:r,configurable:!0}):t.name=r);O&&o&&h(o,"arity")&&t.length!==o.arity&&k(t,"length",{value:o.arity});try{o&&h(o,"constructor")&&o.constructor?d&&k(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var c=m(t);h(c,"source")||(c.source=x(T,"string"==typeof r?r:""));return t};Function.prototype.toString=E((function toString(){return u(this)&&_(this).source||g(this)}),"toString")},(t,r,o)=>{var c=o(25),l=o(6),u=Function.prototype,h=c&&Object.getOwnPropertyDescriptor,d=l(u,"name"),y=d&&"something"===function something(){}.name,g=d&&(!c||c&&h(u,"name").configurable);t.exports={EXISTS:d,PROPER:y,CONFIGURABLE:g}},(t,r,o)=>{var c=o(7),l=o(29),u=o(17),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(49),d=o(5),y=o(28),g=o(50),v=o(6),m=o(17),_=o(52),w=o(53),k="Object already initialized",S=d.TypeError,C=d.WeakMap;if(h||m.state){var x=m.state||(m.state=new C);x.get=x.get;x.has=x.has;x.set=x.set;c=function(t,r){if(x.has(t))throw S(k);r.facade=t;x.set(t,r);return r};l=function(t){return x.get(t)||{}};u=function(t){return x.has(t)}}else{var O=_("state");w[O]=!0;c=function(t,r){if(v(t,O))throw S(k);r.facade=t;g(t,O,r);return r};l=function(t){return v(t,O)?t[O]:{}};u=function(t){return v(t,O)}}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(!y(r)||(o=l(r)).type!==t)throw S("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var c=o(5),l=o(29),u=c.WeakMap;t.exports=l(u)&&/native code/.test(String(u))},(t,r,o)=>{var c=o(25),l=o(24),u=o(51);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=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,o)=>{var c=o(15),l=o(19),u=c("keys");t.exports=function(t){return u[t]||(u[t]=l(t))}},t=>{t.exports={}},(t,r,o)=>{var c=o(6),l=o(44),u=o(55),h=o(14)("toPrimitive"),d=Date.prototype;c(d,h)||l(d,h,u)},(t,r,o)=>{var c=o(32),l=o(42),u=TypeError;t.exports=function(t){c(this);if("string"===t||"default"===t)t="string";else if("number"!==t)throw u("Incorrect hint");return l(this,t)}},(t,r,o)=>{o(57);o(96);o(98);o(99);o(103)},(t,r,o)=>{var c=o(58),l=o(5),u=o(35),h=o(7),d=o(16),y=o(25),g=o(20),v=o(9),m=o(6),_=o(38),w=o(32),k=o(61),S=o(33),C=o(77),x=o(51),O=o(80),T=o(82),E=o(66),R=o(84),M=o(75),j=o(59),L=o(24),D=o(81),N=o(60),U=o(44),G=o(87),$=o(15),H=o(52),X=o(53),q=o(19),z=o(14),W=o(13),V=o(3),K=o(43),Y=o(88),J=o(48),Z=o(89).forEach,Q=H("hidden"),ee="Symbol",te="prototype",re=J.set,ne=J.getterFor(ee),ae=Object[te],ie=l.Symbol,oe=ie&&ie[te],se=l.TypeError,ce=l.QObject,le=j.f,ue=L.f,fe=R.f,he=N.f,pe=h([].push),de=$("symbols"),ye=$("op-symbols"),ge=$("wks"),ve=!ce||!ce[te]||!ce[te].findChild,me=y&&v((function(){return 7!==O(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a}))?function(t,r,o){var c=le(ae,r);c&&delete ae[r];ue(t,r,o);c&&t!==ae&&ue(ae,r,c)}:ue,wrap=function(t,r){var o=de[t]=O(oe);re(o,{type:ee,tag:t,description:r});y||(o.description=r);return o},be=function defineProperty(t,r,o){t===ae&&be(ye,r,o);w(t);var c=S(r);w(o);if(m(de,c)){if(o.enumerable){m(t,Q)&&t[Q][c]&&(t[Q][c]=!1);o=O(o,{enumerable:x(0,!1)})}else{m(t,Q)||ue(t,Q,x(1,{}));t[Q][c]=!0}return me(t,c,o)}return ue(t,c,o)},_e=function defineProperties(t,r){w(t);var o=k(r),c=T(o).concat($getOwnPropertySymbols(o));Z(c,(function(r){y&&!u(we,o,r)||be(t,r,o[r])}));return t},we=function propertyIsEnumerable(t){var r=S(t),o=u(he,this,r);return!(this===ae&&m(de,r)&&!m(ye,r))&&(!(o||!m(this,r)||!m(de,r)||m(this,Q)&&this[Q][r])||o)},ke=function getOwnPropertyDescriptor(t,r){var o=k(t),c=S(r);if(o!==ae||!m(de,c)||m(ye,c)){var l=le(o,c);!l||!m(de,c)||m(o,Q)&&o[Q][c]||(l.enumerable=!0);return l}},Se=function getOwnPropertyNames(t){var r=fe(k(t)),o=[];Z(r,(function(t){m(de,t)||m(X,t)||pe(o,t)}));return o},$getOwnPropertySymbols=function(t){var r=t===ae,o=fe(r?ye:k(t)),c=[];Z(o,(function(t){!m(de,t)||r&&!m(ae,t)||pe(c,de[t])}));return c};if(!g){U(oe=(ie=function Symbol(){if(_(oe,this))throw se("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?C(arguments[0]):void 0,r=q(t),setter=function(t){this===ae&&u(setter,ye,t);m(this,Q)&&m(this[Q],r)&&(this[Q][r]=!1);me(this,r,x(1,t))};y&&ve&&me(ae,r,{configurable:!0,set:setter});return wrap(r,t)})[te],"toString",(function toString(){return ne(this).tag}));U(ie,"withoutSetter",(function(t){return wrap(q(t),t)}));N.f=we;L.f=be;D.f=_e;j.f=ke;E.f=R.f=Se;M.f=$getOwnPropertySymbols;W.f=function(t){return wrap(z(t),t)};if(y){G(oe,"description",{configurable:!0,get:function description(){return ne(this).description}});d||U(ae,"propertyIsEnumerable",we,{unsafe:!0})}}c({global:!0,constructor:!0,wrap:!0,forced:!g,sham:!g},{Symbol:ie});Z(T(ge),(function(t){V(t)}));c({target:ee,stat:!0,forced:!g},{useSetter:function(){ve=!0},useSimple:function(){ve=!1}});c({target:"Object",stat:!0,forced:!g,sham:!y},{create:function create(t,r){return void 0===r?O(t):_e(O(t),r)},defineProperty:be,defineProperties:_e,getOwnPropertyDescriptor:ke});c({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:Se});K();Y(ie,ee);X[Q]=!0},(t,r,o)=>{var c=o(5),l=o(59).f,u=o(50),h=o(44),d=o(18),y=o(64),g=o(76);t.exports=function(t,r){var o,v,m,_,w,k=t.target,S=t.global,C=t.stat;if(o=S?c:C?c[k]||d(k,{}):(c[k]||{}).prototype)for(v in r){_=r[v];m=t.dontCallGetSet?(w=l(o,v))&&w.value:o[v];if(!g(S?v:k+(C?".":"#")+v,t.forced)&&void 0!==m){if(typeof _==typeof m)continue;y(_,m)}(t.sham||m&&m.sham)&&u(_,"sham",!0);h(o,v,_,t)}}},(t,r,o)=>{var c=o(25),l=o(35),u=o(60),h=o(51),d=o(61),y=o(33),g=o(6),v=o(26),m=Object.getOwnPropertyDescriptor;r.f=c?m:function getOwnPropertyDescriptor(t,r){t=d(t);r=y(r);if(v)try{return m(t,r)}catch(t){}if(g(t,r))return h(!l(u.f,t,r),t[r])}},(t,r)=>{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,r,o)=>{var c=o(62),l=o(11);t.exports=function(t){return c(l(t))}},(t,r,o)=>{var c=o(7),l=o(9),u=o(63),h=Object,d=c("".split);t.exports=l((function(){return!h("z").propertyIsEnumerable(0)}))?function(t){return"String"===u(t)?d(t,""):h(t)}:h},(t,r,o)=>{var c=o(7),l=c({}.toString),u=c("".slice);t.exports=function(t){return u(l(t),8,-1)}},(t,r,o)=>{var c=o(6),l=o(65),u=o(59),h=o(24);t.exports=function(t,r,o){for(var d=l(r),y=h.f,g=u.f,v=0;v<d.length;v++){var m=d[v];c(t,m)||o&&c(o,m)||y(t,m,g(r,m))}}},(t,r,o)=>{var c=o(37),l=o(7),u=o(66),h=o(75),d=o(32),y=l([].concat);t.exports=c("Reflect","ownKeys")||function ownKeys(t){var r=u.f(d(t)),o=h.f;return o?y(r,o(t)):r}},(t,r,o)=>{var c=o(67),l=o(74).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return c(t,l)}},(t,r,o)=>{var c=o(7),l=o(6),u=o(61),h=o(68).indexOf,d=o(53),y=c([].push);t.exports=function(t,r){var o,c=u(t),g=0,v=[];for(o in c)!l(d,o)&&l(c,o)&&y(v,o);for(;r.length>g;)l(c,o=r[g++])&&(~h(v,o)||y(v,o));return v}},(t,r,o)=>{var c=o(61),l=o(69),u=o(72),createMethod=function(t){return function(r,o,h){var d,y=c(r),g=u(y),v=l(h,g);if(t&&o!=o){for(;g>v;)if((d=y[v++])!=d)return!0}else for(;g>v;v++)if((t||v in y)&&y[v]===o)return t||v||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var c=o(70),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,r,o)=>{var c=o(71);t.exports=function(t){var r=+t;return r!=r||0===r?0:c(r)}},t=>{var r=Math.ceil,o=Math.floor;t.exports=Math.trunc||function trunc(t){var c=+t;return(c>0?o:r)(c)}},(t,r,o)=>{var c=o(73);t.exports=function(t){return c(t.length)}},(t,r,o)=>{var c=o(70),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(9),l=o(29),u=/#|\.prototype\./,isForced=function(t,r){var o=d[h(t)];return o===g||o!==y&&(l(r)?c(r):!!r)},h=isForced.normalize=function(t){return String(t).replace(u,".").toLowerCase()},d=isForced.data={},y=isForced.NATIVE="N",g=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{var c=o(78),l=String;t.exports=function(t){if("Symbol"===c(t))throw TypeError("Cannot convert a Symbol value to a string");return l(t)}},(t,r,o)=>{var c=o(79),l=o(29),u=o(63),h=o(14)("toStringTag"),d=Object,y="Arguments"===u(function(){return arguments}());t.exports=c?u: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=d(t),h))?o:y?u(r):"Object"===(c=u(r))&&l(r.callee)?"Arguments":c}},(t,r,o)=>{var c={};c[o(14)("toStringTag")]="z";t.exports="[object z]"===String(c)},(t,r,o)=>{var c,l=o(32),u=o(81),h=o(74),d=o(53),y=o(83),g=o(27),v=o(52),m="prototype",_="script",w=v("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<"+_+">"+t+"</"+_+">"},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=g("iframe"),o="java"+_+":";r.style.display="none";y.appendChild(r);r.src=String(o);(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[m][h[t]];return NullProtoObject()};d[w]=!0;t.exports=Object.create||function create(t,r){var o;if(null!==t){EmptyConstructor[m]=l(t);o=new EmptyConstructor;EmptyConstructor[m]=null;o[w]=t}else o=NullProtoObject();return void 0===r?o:u.f(o,r)}},(t,r,o)=>{var c=o(25),l=o(31),u=o(24),h=o(32),d=o(61),y=o(82);r.f=c&&!l?Object.defineProperties:function defineProperties(t,r){h(t);for(var o,c=d(r),l=y(r),g=l.length,v=0;g>v;)u.f(t,o=l[v++],c[o]);return t}},(t,r,o)=>{var c=o(67),l=o(74);t.exports=Object.keys||function keys(t){return c(t,l)}},(t,r,o)=>{var c=o(37);t.exports=c("document","documentElement")},(t,r,o)=>{var c=o(63),l=o(61),u=o(66).f,h=o(85),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(69),l=o(72),u=o(86),h=Array,d=Math.max;t.exports=function(t,r,o){for(var y=l(t),g=c(r,y),v=c(void 0===o?y:o,y),m=h(d(v-g,0)),_=0;g<v;g++,_++)u(m,_,t[g]);m.length=_;return m}},(t,r,o)=>{var c=o(33),l=o(24),u=o(51);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(45),l=o(24);t.exports=function(t,r,o){o.get&&c(o.get,r,{getter:!0});o.set&&c(o.set,r,{setter:!0});return l.f(t,r,o)}},(t,r,o)=>{var c=o(24).f,l=o(6),u=o(14)("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(90),l=o(7),u=o(62),h=o(10),d=o(72),y=o(92),g=l([].push),createMethod=function(t){var r=1===t,o=2===t,l=3===t,v=4===t,m=6===t,_=7===t,w=5===t||m;return function(k,S,C,x){for(var O,T,E=h(k),R=u(E),M=c(S,C),j=d(R),L=0,D=x||y,N=r?D(k,j):o||_?D(k,0):void 0;j>L;L++)if(w||L in R){T=M(O=R[L],L,E);if(t)if(r)N[L]=T;else if(T)switch(t){case 3:return!0;case 5:return O;case 6:return L;case 2:g(N,O)}else switch(t){case 4:return!1;case 7:g(N,O)}}return m?-1:l||v?v:N}};t.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},(t,r,o)=>{var c=o(91),l=o(40),u=o(8),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(63),l=o(7);t.exports=function(t){if("Function"===c(t))return l(t)}},(t,r,o)=>{var c=o(93);t.exports=function(t,r){return new(c(t))(0===r?0:r)}},(t,r,o)=>{var c=o(94),l=o(95),u=o(28),h=o(14)("species"),d=Array;t.exports=function(t){var r;if(c(t)){r=t.constructor;(l(r)&&(r===d||c(r.prototype))||u(r)&&null===(r=r[h]))&&(r=void 0)}return void 0===r?d:r}},(t,r,o)=>{var c=o(63);t.exports=Array.isArray||function isArray(t){return"Array"===c(t)}},(t,r,o)=>{var c=o(7),l=o(9),u=o(29),h=o(78),d=o(37),y=o(47),noop=function(){},g=[],v=d("Reflect","construct"),m=/^\s*(?:class|function)\b/,_=c(m.exec),w=!m.exec(noop),k=function isConstructor(t){if(!u(t))return!1;try{v(noop,g,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 w||!!_(m,y(t))}catch(t){return!0}};S.sham=!0;t.exports=!v||l((function(){var t;return k(k.call)||!k(Object)||!k((function(){t=!0}))||t}))?S:k},(t,r,o)=>{var c=o(58),l=o(37),u=o(6),h=o(77),d=o(15),y=o(97),g=d("string-to-symbol-registry"),v=d("symbol-to-string-registry");c({target:"Symbol",stat:!0,forced:!y},{for:function(t){var r=h(t);if(u(g,r))return g[r];var o=l("Symbol")(r);g[r]=o;v[o]=r;return o}})},(t,r,o)=>{var c=o(20);t.exports=c&&!!Symbol.for&&!!Symbol.keyFor},(t,r,o)=>{var c=o(58),l=o(6),u=o(36),h=o(41),d=o(15),y=o(97),g=d("symbol-to-string-registry");c({target:"Symbol",stat:!0,forced:!y},{keyFor:function keyFor(t){if(!u(t))throw TypeError(h(t)+" is not a symbol");if(l(g,t))return g[t]}})},(t,r,o)=>{var c=o(58),l=o(37),u=o(100),h=o(35),d=o(7),y=o(9),g=o(29),v=o(36),m=o(101),_=o(102),w=o(20),k=String,S=l("JSON","stringify"),C=d(/./.exec),x=d("".charAt),O=d("".charCodeAt),T=d("".replace),E=d(1..toString),R=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,L=!w||y((function(){var t=l("Symbol")("stringify detection");return"[null]"!==S([t])||"{}"!==S({a:t})||"{}"!==S(Object(t))})),D=y((function(){return'"\\udf06\\ud834"'!==S("\udf06\ud834")||'"\\udead"'!==S("\udead")})),stringifyWithSymbolsFix=function(t,r){var o=m(arguments),c=_(r);if(g(c)||void 0!==t&&!v(t)){o[1]=function(t,r){g(c)&&(r=h(c,this,k(t),r));if(!v(r))return r};return u(S,null,o)}},fixIllFormed=function(t,r,o){var c=x(o,r-1),l=x(o,r+1);return C(M,t)&&!C(j,l)||C(j,t)&&!C(M,c)?"\\u"+E(O(t,0),16):t};S&&c({target:"JSON",stat:!0,arity:3,forced:L||D},{stringify:function stringify(t,r,o){var c=m(arguments),l=u(L?stringifyWithSymbolsFix:S,null,c);return D&&"string"==typeof l?T(l,R,fixIllFormed):l}})},(t,r,o)=>{var c=o(8),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(7);t.exports=c([].slice)},(t,r,o)=>{var c=o(7),l=o(94),u=o(29),h=o(63),d=o(77),y=c([].push);t.exports=function(t){if(u(t))return t;if(l(t)){for(var r=t.length,o=[],c=0;c<r;c++){var g=t[c];"string"==typeof g?y(o,g):"number"!=typeof g&&"Number"!==h(g)&&"String"!==h(g)||y(o,d(g))}var v=o.length,m=!0;return function(t,r){if(m){m=!1;return r}if(l(this))return r;for(var c=0;c<v;c++)if(o[c]===t)return r}}}},(t,r,o)=>{var c=o(58),l=o(20),u=o(9),h=o(75),d=o(10);c({target:"Object",stat:!0,forced:!l||u((function(){h.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){var r=h.f;return r?r(d(t)):[]}})},(t,r,o)=>{var c=o(58),l=o(25),u=o(5),h=o(7),d=o(6),y=o(29),g=o(38),v=o(77),m=o(87),_=o(64),w=u.Symbol,k=w&&w.prototype;if(l&&y(w)&&(!("description"in k)||void 0!==w().description)){var S={},C=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:v(arguments[0]),r=g(k,this)?new w(t):void 0===t?w():w(t);""===t&&(S[r]=!0);return r};_(C,w);C.prototype=k;k.constructor=C;var x="Symbol(description detection)"===String(w("description detection")),O=h(k.valueOf),T=h(k.toString),E=/^Symbol\((.*)\)[^)]+$/,R=h("".replace),M=h("".slice);m(k,"description",{configurable:!0,get:function description(){var t=O(this);if(d(S,t))return"";var r=T(t),o=x?M(r,7,-1):R(r,E,"$1");return""===o?void 0:o}});c({global:!0,constructor:!0,forced:!0},{Symbol:C})}},(t,r,o)=>{var c=o(58),l=o(16),u=o(25),h=o(5),d=o(4),y=o(7),g=o(76),v=o(6),m=o(106),_=o(38),w=o(36),k=o(34),S=o(9),C=o(66).f,x=o(59).f,O=o(24).f,T=o(110),E=o(111).trim,R="Number",M=h[R],j=d[R],L=M.prototype,D=h.TypeError,N=y("".slice),U=y("".charCodeAt),toNumber=function(t){var r,o,c,l,u,h,d,y,g=k(t,"number");if(w(g))throw D("Cannot convert a Symbol value to a number");if("string"==typeof g&&g.length>2){g=E(g);if(43===(r=U(g,0))||45===r){if(88===(o=U(g,2))||120===o)return NaN}else if(48===r){switch(U(g,1)){case 66:case 98:c=2;l=49;break;case 79:case 111:c=8;l=55;break;default:return+g}h=(u=N(g,2)).length;for(d=0;d<h;d++)if((y=U(u,d))<48||y>l)return NaN;return parseInt(u,c)}}return+g},G=g(R,!M(" 0o1")||!M("0b1")||M("+0x1")),$=function Number(t){var r,o=arguments.length<1?0:M(function(t){var r=k(t,"number");return"bigint"==typeof r?r:toNumber(r)}(t));return _(L,r=this)&&S((function(){T(r)}))?m(Object(o),this,$):o};$.prototype=L;G&&!l&&(L.constructor=$);c({global:!0,constructor:!0,wrap:!0,forced:G},{Number:$});var copyConstructorProperties=function(t,r){for(var o,c=u?C(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),l=0;c.length>l;l++)v(r,o=c[l])&&!v(t,o)&&O(t,o,x(r,o))};l&&j&©ConstructorProperties(d[R],j);(G||l)&©ConstructorProperties(d[R],M)},(t,r,o)=>{var c=o(29),l=o(28),u=o(107);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)=>{var c=o(108),l=o(32),u=o(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,o={};try{(t=c(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(7),l=o(40);t.exports=function(t,r,o){try{return c(l(Object.getOwnPropertyDescriptor(t,r)[o]))}catch(t){}}},(t,r,o)=>{var c=o(29),l=String,u=TypeError;t.exports=function(t){if("object"==typeof t||c(t))return t;throw u("Can't set "+l(t)+" as a prototype")}},(t,r,o)=>{var c=o(7);t.exports=c(1..valueOf)},(t,r,o)=>{var c=o(7),l=o(11),u=o(77),h=o(112),d=c("".replace),y=RegExp("^["+h+"]+"),g=RegExp("(^|[^"+h+"])["+h+"]+$"),createMethod=function(t){return function(r){var o=u(l(r));1&t&&(o=d(o,y,""));2&t&&(o=d(o,g,"$1"));return o}};t.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},(t,r,o)=>{o(3)("iterator")},(t,r,o)=>{var c=o(58),l=o(115);c({target:"Array",stat:!0,forced:!o(122)((function(t){Array.from(t)}))},{from:l})},(t,r,o)=>{var c=o(90),l=o(35),u=o(10),h=o(116),d=o(118),y=o(95),g=o(72),v=o(86),m=o(120),_=o(121),w=Array;t.exports=function from(t){var r=u(t),o=y(this),k=arguments.length,S=k>1?arguments[1]:void 0,C=void 0!==S;C&&(S=c(S,k>2?arguments[2]:void 0));var x,O,T,E,R,M,j=_(r),L=0;if(!j||this===w&&d(j)){x=g(r);O=o?new this(x):w(x);for(;x>L;L++){M=C?S(r[L],L):r[L];v(O,L,M)}}else{R=(E=m(r,j)).next;O=o?new this:[];for(;!(T=l(R,E)).done;L++){M=C?h(E,S,[T.value,L],!0):T.value;v(O,L,M)}}O.length=L;return O}},(t,r,o)=>{var c=o(32),l=o(117);t.exports=function(t,r,o,u){try{return u?r(c(o)[0],o[1]):r(o)}catch(r){l(t,"throw",r)}}},(t,r,o)=>{var c=o(35),l=o(32),u=o(39);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(14),l=o(119),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(35),l=o(40),u=o(32),h=o(41),d=o(121),y=TypeError;t.exports=function(t,r){var o=arguments.length<2?d(t):r;if(l(o))return u(c(o,t));throw y(h(t)+" is not iterable")}},(t,r,o)=>{var c=o(78),l=o(39),u=o(12),h=o(119),d=o(14)("iterator");t.exports=function(t){if(!u(t))return l(t,d)||l(t,"@@iterator")||h[c(t)]}},(t,r,o)=>{var c=o(14)("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(58),l=o(124);c({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},(t,r,o)=>{var c=o(35),l=o(7),u=o(77),h=o(125),d=o(126),y=o(15),g=o(80),v=o(48).get,m=o(127),_=o(128),w=y("native-string-replace",String.prototype.replace),k=RegExp.prototype.exec,S=k,C=l("".charAt),x=l("".indexOf),O=l("".replace),T=l("".slice),E=function(){var t=/a/,r=/b*/g;c(k,t,"a");c(k,r,"a");return 0!==t.lastIndex||0!==r.lastIndex}(),R=d.BROKEN_CARET,M=void 0!==/()??/.exec("")[1];(E||M||R||m||_)&&(S=function exec(t){var r,o,l,d,y,m,_,j=this,L=v(j),D=u(t),N=L.raw;if(N){N.lastIndex=j.lastIndex;r=c(S,N,D);j.lastIndex=N.lastIndex;return r}var U=L.groups,G=R&&j.sticky,$=c(h,j),H=j.source,X=0,q=D;if(G){$=O($,"y","");-1===x($,"g")&&($+="g");q=T(D,j.lastIndex);if(j.lastIndex>0&&(!j.multiline||j.multiline&&"\n"!==C(D,j.lastIndex-1))){H="(?: "+H+")";q=" "+q;X++}o=new RegExp("^(?:"+H+")",$)}M&&(o=new RegExp("^"+H+"$(?!\\s)",$));E&&(l=j.lastIndex);d=c(k,G?o:j,q);if(G)if(d){d.input=T(d.input,X);d[0]=T(d[0],X);d.index=j.lastIndex;j.lastIndex+=d[0].length}else j.lastIndex=0;else E&&d&&(j.lastIndex=j.global?d.index+d[0].length:l);M&&d&&d.length>1&&c(w,d[0],o,(function(){for(y=1;y<arguments.length-2;y++)void 0===arguments[y]&&(d[y]=void 0)}));if(d&&U){d.groups=m=g(null);for(y=0;y<U.length;y++)m[(_=U[y])[0]]=d[_[1]]}return d});t.exports=S},(t,r,o)=>{var c=o(32);t.exports=function(){var t=c(this),r="";t.hasIndices&&(r+="d");t.global&&(r+="g");t.ignoreCase&&(r+="i");t.multiline&&(r+="m");t.dotAll&&(r+="s");t.unicode&&(r+="u");t.unicodeSets&&(r+="v");t.sticky&&(r+="y");return r}},(t,r,o)=>{var c=o(9),l=o(5).RegExp,u=c((function(){var t=l("a","y");t.lastIndex=2;return null!==t.exec("abcd")})),h=u||c((function(){return!l("a","y").sticky})),d=u||c((function(){var t=l("^r","gy");t.lastIndex=2;return null!==t.exec("str")}));t.exports={BROKEN_CARET:d,MISSED_STICKY:h,UNSUPPORTED_Y:u}},(t,r,o)=>{var c=o(9),l=o(5).RegExp;t.exports=c((function(){var t=l(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},(t,r,o)=>{var c=o(9),l=o(5).RegExp;t.exports=c((function(){var t=l("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},(t,r,o)=>{o(123);var c=o(58),l=o(35),u=o(29),h=o(32),d=o(77),y=function(){var t=!1,r=/[ac]/;r.exec=function(){t=!0;return/./.exec.apply(this,arguments)};return!0===r.test("abc")&&t}(),g=/./.test;c({target:"RegExp",proto:!0,forced:!y},{test:function(t){var r=h(this),o=d(t),c=r.exec;if(!u(c))return l(g,r,o);var y=l(c,r,o);if(null===y)return!1;h(y);return!0}})},(t,r,o)=>{o(3)("asyncIterator")},(t,r,o)=>{var c=o(37),l=o(3),u=o(88);l("toStringTag");u(c("Symbol"),"Symbol")},(t,r,o)=>{var c=o(5);o(88)(c.JSON,"JSON",!0)},(t,r,o)=>{o(88)(Math,"Math",!0)},(t,r,o)=>{var c=o(58),l=o(9),u=o(10),h=o(135),d=o(136);c({target:"Object",stat:!0,forced:l((function(){h(1)})),sham:!d},{getPrototypeOf:function getPrototypeOf(t){return h(u(t))}})},(t,r,o)=>{var c=o(6),l=o(29),u=o(10),h=o(52),d=o(136),y=h("IE_PROTO"),g=Object,v=g.prototype;t.exports=d?g.getPrototypeOf:function(t){var r=u(t);if(c(r,y))return r[y];var o=r.constructor;return l(o)&&r instanceof o?o.prototype:r instanceof g?v:null}},(t,r,o)=>{var c=o(9);t.exports=!c((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,o)=>{var c=o(61),l=o(138),u=o(119),h=o(48),d=o(24).f,y=o(139),g=o(142),v=o(16),m=o(25),_="Array Iterator",w=h.set,k=h.getterFor(_);t.exports=y(Array,"Array",(function(t,r){w(this,{type:_,target:c(t),index:0,kind:r})}),(function(){var t=k(this),r=t.target,o=t.kind,c=t.index++;if(!r||c>=r.length){t.target=void 0;return g(void 0,!0)}switch(o){case"keys":return g(c,!1);case"values":return g(r[c],!1)}return g([c,r[c]],!1)}),"values");var S=u.Arguments=u.Array;l("keys");l("values");l("entries");if(!v&&m&&"values"!==S.name)try{d(S,"name",{value:"values"})}catch(t){}},(t,r,o)=>{var c=o(14),l=o(80),u=o(24).f,h=c("unscopables"),d=Array.prototype;void 0===d[h]&&u(d,h,{configurable:!0,value:l(null)});t.exports=function(t){d[h][t]=!0}},(t,r,o)=>{var c=o(58),l=o(35),u=o(16),h=o(46),d=o(29),y=o(140),g=o(135),v=o(107),m=o(88),_=o(50),w=o(44),k=o(14),S=o(119),C=o(141),x=h.PROPER,O=h.CONFIGURABLE,T=C.IteratorPrototype,E=C.BUGGY_SAFARI_ITERATORS,R=k("iterator"),M="keys",j="values",L="entries",returnThis=function(){return this};t.exports=function(t,r,o,h,k,C,D){y(o,r,h);var N,U,G,getIterationMethod=function(t){if(t===k&&z)return z;if(!E&&t in X)return X[t];switch(t){case M:return function keys(){return new o(this,t)};case j:return function values(){return new o(this,t)};case L:return function entries(){return new o(this,t)}}return function(){return new o(this)}},$=r+" Iterator",H=!1,X=t.prototype,q=X[R]||X["@@iterator"]||k&&X[k],z=!E&&q||getIterationMethod(k),W="Array"===r&&X.entries||q;if(W&&(N=g(W.call(new t)))!==Object.prototype&&N.next){u||g(N)===T||(v?v(N,T):d(N[R])||w(N,R,returnThis));m(N,$,!0,!0);u&&(S[$]=returnThis)}if(x&&k===j&&q&&q.name!==j)if(!u&&O)_(X,"name",j);else{H=!0;z=function values(){return l(q,this)}}if(k){U={values:getIterationMethod(j),keys:C?z:getIterationMethod(M),entries:getIterationMethod(L)};if(D)for(G in U)(E||H||!(G in X))&&w(X,G,U[G]);else c({target:r,proto:!0,forced:E||H},U)}u&&!D||X[R]===z||w(X,R,z,{name:k});S[r]=z;return U}},(t,r,o)=>{var c=o(141).IteratorPrototype,l=o(80),u=o(51),h=o(88),d=o(119),returnThis=function(){return this};t.exports=function(t,r,o,y){var g=r+" Iterator";t.prototype=l(c,{next:u(+!y,o)});h(t,g,!1,!0);d[g]=returnThis;return t}},(t,r,o)=>{var c,l,u,h=o(9),d=o(29),y=o(28),g=o(80),v=o(135),m=o(44),_=o(14),w=o(16),k=_("iterator"),S=!1;[].keys&&("next"in(u=[].keys())?(l=v(v(u)))!==Object.prototype&&(c=l):S=!0);!y(c)||h((function(){var t={};return c[k].call(t)!==t}))?c={}:w&&(c=g(c));d(c[k])||m(c,k,(function(){return this}));t.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:S}},t=>{t.exports=function(t,r){return{value:t,done:r}}},(t,r,o)=>{var c=o(79),l=o(44),u=o(144);c||l(Object.prototype,"toString",u,{unsafe:!0})},(t,r,o)=>{var c=o(79),l=o(78);t.exports=c?{}.toString:function toString(){return"[object "+l(this)+"]"}},(t,r,o)=>{o(146);o(166);o(169);o(170);o(171);o(172)},(t,r,o)=>{var c,l,u,h=o(58),d=o(16),y=o(147),g=o(5),v=o(35),m=o(44),_=o(107),w=o(88),k=o(148),S=o(40),C=o(29),x=o(28),O=o(149),T=o(150),E=o(152).set,R=o(155),M=o(159),j=o(160),L=o(156),D=o(48),N=o(161),U=o(162),G=o(165),$="Promise",H=U.CONSTRUCTOR,X=U.REJECTION_EVENT,q=U.SUBCLASSING,z=D.getterFor($),W=D.set,V=N&&N.prototype,K=N,Y=V,J=g.TypeError,Z=g.document,Q=g.process,ee=G.f,te=ee,re=!!(Z&&Z.createEvent&&g.dispatchEvent),ne="unhandledrejection",isThenable=function(t){var r;return!(!x(t)||!C(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,y=t.resolve,g=t.reject,m=t.domain;try{if(d){if(!h){2===r.rejection&&onHandleUnhandled(r);r.rejection=1}if(!0===d)o=u;else{m&&m.enter();o=d(u);if(m){m.exit();l=!0}}o===t.promise?g(J("Promise-chain cycle")):(c=isThenable(o))?v(c,o,y,g):y(o)}else g(u)}catch(t){m&&!l&&m.exit();g(t)}},notify=function(t,r){if(!t.notified){t.notified=!0;R((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(re){(c=Z.createEvent("Event")).promise=r;c.reason=o;c.initEvent(t,!1,!0);g.dispatchEvent(c)}else c={promise:r,reason:o};!X&&(l=g["on"+t])?l(c):t===ne&&M("Unhandled promise rejection",o)},onUnhandled=function(t){v(E,g,(function(){var r,o=t.facade,c=t.value;if(isUnhandled(t)){r=j((function(){y?Q.emit("unhandledRejection",c,o):dispatchEvent(ne,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(E,g,(function(){var r=t.facade;y?Q.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 J("Promise can't be resolved itself");var c=isThenable(r);if(c)R((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(H){Y=(K=function Promise(t){O(this,Y);S(t);v(c,this);var r=z(this);try{t(bind(internalResolve,r),bind(internalReject,r))}catch(t){internalReject(r,t)}}).prototype;(c=function Promise(t){W(this,{type:$,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=m(Y,"then",(function then(t,r){var o=z(this),c=ee(T(this,K));o.parent=!0;c.ok=!C(t)||t;c.fail=C(r)&&r;c.domain=y?Q.domain:void 0;0===o.state?o.reactions.add(c):R((function(){callReaction(c,o)}));return c.promise}));l=function(){var t=new c,r=z(t);this.promise=t;this.resolve=bind(internalResolve,r);this.reject=bind(internalReject,r)};G.f=ee=function(t){return t===K||undefined===t?new l(t):te(t)};if(!d&&C(N)&&V!==Object.prototype){u=V.then;q||m(V,"then",(function then(t,r){var o=this;return new K((function(t,r){v(u,o,t,r)})).then(t,r)}),{unsafe:!0});try{delete V.constructor}catch(t){}_&&_(V,Y)}}h({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:K});w(K,$,!1,!0);k($)},(t,r,o)=>{var c=o(5),l=o(63);t.exports="process"===l(c.process)},(t,r,o)=>{var c=o(37),l=o(87),u=o(14),h=o(25),d=u("species");t.exports=function(t){var r=c(t);h&&r&&!r[d]&&l(r,d,{configurable:!0,get:function(){return this}})}},(t,r,o)=>{var c=o(38),l=TypeError;t.exports=function(t,r){if(c(r,t))return t;throw l("Incorrect invocation")}},(t,r,o)=>{var c=o(32),l=o(151),u=o(12),h=o(14)("species");t.exports=function(t,r){var o,d=c(t).constructor;return void 0===d||u(o=c(d)[h])?r:l(o)}},(t,r,o)=>{var c=o(95),l=o(41),u=TypeError;t.exports=function(t){if(c(t))return t;throw u(l(t)+" is not a constructor")}},(t,r,o)=>{var c,l,u,h,d=o(5),y=o(100),g=o(90),v=o(29),m=o(6),_=o(9),w=o(83),k=o(101),S=o(27),C=o(153),x=o(154),O=o(147),T=d.setImmediate,E=d.clearImmediate,R=d.process,M=d.Dispatch,j=d.Function,L=d.MessageChannel,D=d.String,N=0,U={},G="onreadystatechange";_((function(){c=d.location}));var run=function(t){if(m(U,t)){var r=U[t];delete U[t];r()}},runner=function(t){return function(){run(t)}},eventListener=function(t){run(t.data)},globalPostMessageDefer=function(t){d.postMessage(D(t),c.protocol+"//"+c.host)};if(!T||!E){T=function setImmediate(t){C(arguments.length,1);var r=v(t)?t:j(t),o=k(arguments,1);U[++N]=function(){y(r,void 0,o)};l(N);return N};E=function clearImmediate(t){delete U[t]};if(O)l=function(t){R.nextTick(runner(t))};else if(M&&M.now)l=function(t){M.now(runner(t))};else if(L&&!x){h=(u=new L).port2;u.port1.onmessage=eventListener;l=g(h.postMessage,h)}else if(d.addEventListener&&v(d.postMessage)&&!d.importScripts&&c&&"file:"!==c.protocol&&!_(globalPostMessageDefer)){l=globalPostMessageDefer;d.addEventListener("message",eventListener,!1)}else l=G in S("script")?function(t){w.appendChild(S("script"))[G]=function(){w.removeChild(this);run(t)}}:function(t){setTimeout(runner(t),0)}}t.exports={set:T,clear:E}},t=>{var r=TypeError;t.exports=function(t,o){if(t<o)throw r("Not enough arguments");return t}},(t,r,o)=>{var c=o(22);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},(t,r,o)=>{var c,l,u,h,d,y=o(5),g=o(90),v=o(59).f,m=o(152).set,_=o(156),w=o(154),k=o(157),S=o(158),C=o(147),x=y.MutationObserver||y.WebKitMutationObserver,O=y.document,T=y.process,E=y.Promise,R=v(y,"queueMicrotask"),M=R&&R.value;if(!M){var j=new _,flush=function(){var t,r;C&&(t=T.domain)&&t.exit();for(;r=j.get();)try{r()}catch(t){j.head&&c();throw t}t&&t.enter()};if(w||C||S||!x||!O)if(!k&&E&&E.resolve){(h=E.resolve(void 0)).constructor=E;d=g(h.then,h);c=function(){d(flush)}}else if(C)c=function(){T.nextTick(flush)};else{m=g(m,y);c=function(){m(flush)}}else{l=!0;u=O.createTextNode("");new x(flush).observe(u,{characterData:!0});c=function(){u.data=l=!l}}M=function(t){j.head||c();j.add(t)}}t.exports=M},t=>{var Queue=function(){this.head=null;this.tail=null};Queue.prototype={add:function(t){var r={item:t,next:null},o=this.tail;o?o.next=r:this.head=r;this.tail=r},get:function(){var t=this.head;if(t){null===(this.head=t.next)&&(this.tail=null);return t.item}}};t.exports=Queue},(t,r,o)=>{var c=o(22);t.exports=/ipad|iphone|ipod/i.test(c)&&"undefined"!=typeof Pebble},(t,r,o)=>{var c=o(22);t.exports=/web0s(?!.*chrome)/i.test(c)},t=>{t.exports=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}},t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},(t,r,o)=>{var c=o(5);t.exports=c.Promise},(t,r,o)=>{var c=o(5),l=o(161),u=o(29),h=o(76),d=o(47),y=o(14),g=o(163),v=o(164),m=o(16),_=o(21),w=l&&l.prototype,k=y("species"),S=!1,C=u(c.PromiseRejectionEvent),x=h("Promise",(function(){var t=d(l),r=t!==String(l);if(!r&&66===_)return!0;if(m&&(!w.catch||!w.finally))return!0;if(!_||_<51||!/native code/.test(t)){var o=new l((function(t){t(1)})),FakePromise=function(t){t((function(){}),(function(){}))};(o.constructor={})[k]=FakePromise;if(!(S=o.then((function(){}))instanceof FakePromise))return!0}return!r&&(g||v)&&!C}));t.exports={CONSTRUCTOR:x,REJECTION_EVENT:C,SUBCLASSING:S}},(t,r,o)=>{var c=o(164),l=o(147);t.exports=!c&&!l&&"object"==typeof window&&"object"==typeof document},t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},(t,r,o)=>{var c=o(40),l=TypeError,PromiseCapability=function(t){var r,o;this.promise=new t((function(t,c){if(void 0!==r||void 0!==o)throw l("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(58),l=o(35),u=o(40),h=o(165),d=o(160),y=o(167);c({target:"Promise",stat:!0,forced:o(168)},{all:function all(t){var r=this,o=h.f(r),c=o.resolve,g=o.reject,v=d((function(){var o=u(r.resolve),h=[],d=0,v=1;y(t,(function(t){var u=d++,y=!1;v++;l(o,r,t).then((function(t){if(!y){y=!0;h[u]=t;--v||c(h)}}),g)}));--v||c(h)}));v.error&&g(v.value);return o.promise}})},(t,r,o)=>{var c=o(90),l=o(35),u=o(32),h=o(41),d=o(118),y=o(72),g=o(38),v=o(120),m=o(121),_=o(117),w=TypeError,Result=function(t,r){this.stopped=t;this.result=r},k=Result.prototype;t.exports=function(t,r,o){var S,C,x,O,T,E,R,M=o&&o.that,j=!(!o||!o.AS_ENTRIES),L=!(!o||!o.IS_RECORD),D=!(!o||!o.IS_ITERATOR),N=!(!o||!o.INTERRUPTED),U=c(r,M),stop=function(t){S&&_(S,"normal",t);return new Result(!0,t)},callFn=function(t){if(j){u(t);return N?U(t[0],t[1],stop):U(t[0],t[1])}return N?U(t,stop):U(t)};if(L)S=t.iterator;else if(D)S=t;else{if(!(C=m(t)))throw w(h(t)+" is not iterable");if(d(C)){for(x=0,O=y(t);O>x;x++)if((T=callFn(t[x]))&&g(k,T))return T;return new Result(!1)}S=v(t,C)}E=L?t.next:S.next;for(;!(R=l(E,S)).done;){try{T=callFn(R.value)}catch(t){_(S,"throw",t)}if("object"==typeof T&&T&&g(k,T))return T}return new Result(!1)}},(t,r,o)=>{var c=o(161),l=o(122),u=o(162).CONSTRUCTOR;t.exports=u||!l((function(t){c.all(t).then(void 0,(function(){}))}))},(t,r,o)=>{var c=o(58),l=o(16),u=o(162).CONSTRUCTOR,h=o(161),d=o(37),y=o(29),g=o(44),v=h&&h.prototype;c({target:"Promise",proto:!0,forced:u,real:!0},{catch:function(t){return this.then(void 0,t)}});if(!l&&y(h)){var m=d("Promise").prototype.catch;v.catch!==m&&g(v,"catch",m,{unsafe:!0})}},(t,r,o)=>{var c=o(58),l=o(35),u=o(40),h=o(165),d=o(160),y=o(167);c({target:"Promise",stat:!0,forced:o(168)},{race:function race(t){var r=this,o=h.f(r),c=o.reject,g=d((function(){var h=u(r.resolve);y(t,(function(t){l(h,r,t).then(o.resolve,c)}))}));g.error&&c(g.value);return o.promise}})},(t,r,o)=>{var c=o(58),l=o(35),u=o(165);c({target:"Promise",stat:!0,forced:o(162).CONSTRUCTOR},{reject:function reject(t){var r=u.f(this);l(r.reject,void 0,t);return r.promise}})},(t,r,o)=>{var c=o(58),l=o(37),u=o(16),h=o(161),d=o(162).CONSTRUCTOR,y=o(173),g=l("Promise"),v=u&&!d;c({target:"Promise",stat:!0,forced:u||d},{resolve:function resolve(t){return y(v&&this===g?h:this,t)}})},(t,r,o)=>{var c=o(32),l=o(28),u=o(165);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)=>{var c=o(58),l=o(35),u=o(40),h=o(165),d=o(160),y=o(167);c({target:"Promise",stat:!0,forced:o(168)},{allSettled:function allSettled(t){var r=this,o=h.f(r),c=o.resolve,g=o.reject,v=d((function(){var o=u(r.resolve),h=[],d=0,g=1;y(t,(function(t){var u=d++,y=!1;g++;l(o,r,t).then((function(t){if(!y){y=!0;h[u]={status:"fulfilled",value:t};--g||c(h)}}),(function(t){if(!y){y=!0;h[u]={status:"rejected",reason:t};--g||c(h)}}))}));--g||c(h)}));v.error&&g(v.value);return o.promise}})},(t,r,o)=>{var c=o(176).charAt,l=o(77),u=o(48),h=o(139),d=o(142),y="String Iterator",g=u.set,v=u.getterFor(y);h(String,"String",(function(t){g(this,{type:y,string:l(t),index:0})}),(function next(){var t,r=v(this),o=r.string,l=r.index;if(l>=o.length)return d(void 0,!0);t=c(o,l);r.index+=t.length;return d(t,!1)}))},(t,r,o)=>{var c=o(7),l=o(70),u=o(77),h=o(11),d=c("".charAt),y=c("".charCodeAt),g=c("".slice),createMethod=function(t){return function(r,o){var c,v,m=u(h(r)),_=l(o),w=m.length;return _<0||_>=w?t?"":void 0:(c=y(m,_))<55296||c>56319||_+1===w||(v=y(m,_+1))<56320||v>57343?t?d(m,_):c:t?g(m,_,_+2):v-56320+(c-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},(t,r,o)=>{var c=o(5),l=o(178),u=o(179),h=o(137),d=o(50),y=o(14),g=y("iterator"),v=y("toStringTag"),m=h.values,handlePrototype=function(t,r){if(t){if(t[g]!==m)try{d(t,g,m)}catch(r){t[g]=m}t[v]||d(t,v,r);if(l[r])for(var o in h)if(t[o]!==h[o])try{d(t,o,h[o])}catch(r){t[o]=h[o]}}};for(var _ in l)handlePrototype(c[_]&&c[_].prototype,_);handlePrototype(u,"DOMTokenList")},t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},(t,r,o)=>{var c=o(27)("span").classList,l=c&&c.constructor&&c.constructor.prototype;t.exports=l===Object.prototype?void 0:l},(t,r,o)=>{var c=o(58),l=o(89).map;c({target:"Array",proto:!0,forced:!o(181)("map")},{map:function map(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,o)=>{var c=o(9),l=o(14),u=o(21),h=l("species");t.exports=function(t){return u>=51||!c((function(){var r=[];(r.constructor={})[h]=function(){return{foo:1}};return 1!==r[t](Boolean).foo}))}},(t,r,o)=>{var c=o(58),l=o(89).filter;c({target:"Array",proto:!0,forced:!o(181)("filter")},{filter:function filter(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,o)=>{var c=o(58),l=o(5),u=o(100),h=o(184),d="WebAssembly",y=l[d],g=7!==Error("e",{cause:7}).cause,exportGlobalErrorCauseWrapper=function(t,r){var o={};o[t]=h(t,r,g);c({global:!0,constructor:!0,arity:1,forced:g},o)},exportWebAssemblyErrorCauseWrapper=function(t,r){if(y&&y[t]){var o={};o[t]=h(d+"."+t,r,g);c({target:d,stat:!0,constructor:!0,arity:1,forced:g},o)}};exportGlobalErrorCauseWrapper("Error",(function(t){return function Error(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("EvalError",(function(t){return function EvalError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("RangeError",(function(t){return function RangeError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("ReferenceError",(function(t){return function ReferenceError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("SyntaxError",(function(t){return function SyntaxError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("TypeError",(function(t){return function TypeError(r){return u(t,this,arguments)}}));exportGlobalErrorCauseWrapper("URIError",(function(t){return function URIError(r){return u(t,this,arguments)}}));exportWebAssemblyErrorCauseWrapper("CompileError",(function(t){return function CompileError(r){return u(t,this,arguments)}}));exportWebAssemblyErrorCauseWrapper("LinkError",(function(t){return function LinkError(r){return u(t,this,arguments)}}));exportWebAssemblyErrorCauseWrapper("RuntimeError",(function(t){return function RuntimeError(r){return u(t,this,arguments)}}))},(t,r,o)=>{var c=o(37),l=o(6),u=o(50),h=o(38),d=o(107),y=o(64),g=o(185),v=o(106),m=o(186),_=o(187),w=o(188),k=o(25),S=o(16);t.exports=function(t,r,o,C){var x="stackTraceLimit",O=C?2:1,T=t.split("."),E=T[T.length-1],R=c.apply(null,T);if(R){var M=R.prototype;!S&&l(M,"cause")&&delete M.cause;if(!o)return R;var j=c("Error"),L=r((function(t,r){var o=m(C?r:t,void 0),c=C?new R(t):new R;void 0!==o&&u(c,"message",o);w(c,L,c.stack,2);this&&h(M,this)&&v(c,this,L);arguments.length>O&&_(c,arguments[O]);return c}));L.prototype=M;if("Error"!==E)d?d(L,j):y(L,j,{name:!0});else if(k&&x in R){g(L,R,x);g(L,R,"prepareStackTrace")}y(L,R);if(!S)try{M.name!==E&&u(M,"name",E);M.constructor=L}catch(t){}return L}}},(t,r,o)=>{var c=o(24).f;t.exports=function(t,r,o){o in t||c(t,o,{configurable:!0,get:function(){return r[o]},set:function(t){r[o]=t}})}},(t,r,o)=>{var c=o(77);t.exports=function(t,r){return void 0===t?arguments.length<2?"":r:c(t)}},(t,r,o)=>{var c=o(28),l=o(50);t.exports=function(t,r){c(r)&&"cause"in r&&l(t,"cause",r.cause)}},(t,r,o)=>{var c=o(50),l=o(189),u=o(190),h=Error.captureStackTrace;t.exports=function(t,r,o,d){u&&(h?h(t,r):c(t,"stack",l(o,d)))}},(t,r,o)=>{var c=o(7),l=Error,u=c("".replace),h=String(l("zxcasd").stack),d=/\n\s*at [^:]*:[^\n]*/,y=d.test(h);t.exports=function(t,r){if(y&&"string"==typeof t&&!l.prepareStackTrace)for(;r--;)t=u(t,d,"");return t}},(t,r,o)=>{var c=o(9),l=o(51);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)=>{o(192)("Uint8",(function(t){return function Uint8Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{var c=o(58),l=o(5),u=o(35),h=o(25),d=o(193),y=o(194),g=o(196),v=o(149),m=o(51),_=o(50),w=o(202),k=o(73),S=o(198),C=o(203),x=o(205),O=o(33),T=o(6),E=o(78),R=o(28),M=o(36),j=o(80),L=o(38),D=o(107),N=o(66).f,U=o(206),G=o(89).forEach,$=o(148),H=o(87),X=o(24),q=o(59),z=o(48),W=o(106),V=z.get,K=z.set,Y=z.enforce,J=X.f,Z=q.f,Q=l.RangeError,ee=g.ArrayBuffer,te=ee.prototype,re=g.DataView,ne=y.NATIVE_ARRAY_BUFFER_VIEWS,ae=y.TYPED_ARRAY_TAG,ie=y.TypedArray,oe=y.TypedArrayPrototype,se=y.aTypedArrayConstructor,ce=y.isTypedArray,le="BYTES_PER_ELEMENT",ue="Wrong length",fromList=function(t,r){se(t);for(var o=0,c=r.length,l=new t(c);c>o;)l[o]=r[o++];return l},addGetter=function(t,r){H(t,r,{configurable:!0,get:function(){return V(this)[r]}})},isArrayBuffer=function(t){var r;return L(te,t)||"ArrayBuffer"===(r=E(t))||"SharedArrayBuffer"===r},isTypedArrayIndex=function(t,r){return ce(t)&&!M(r)&&r in t&&w(+r)&&r>=0},fe=function getOwnPropertyDescriptor(t,r){r=O(r);return isTypedArrayIndex(t,r)?m(2,t[r]):Z(t,r)},he=function defineProperty(t,r,o){r=O(r);if(isTypedArrayIndex(t,r)&&R(o)&&T(o,"value")&&!T(o,"get")&&!T(o,"set")&&!o.configurable&&(!T(o,"writable")||o.writable)&&(!T(o,"enumerable")||o.enumerable)){t[r]=o.value;return t}return J(t,r,o)};if(h){if(!ne){q.f=fe;X.f=he;addGetter(oe,"buffer");addGetter(oe,"byteOffset");addGetter(oe,"byteLength");addGetter(oe,"length")}c({target:"Object",stat:!0,forced:!ne},{getOwnPropertyDescriptor:fe,defineProperty:he});t.exports=function(t,r,o){var h=t.match(/\d+/)[0]/8,y=t+(o?"Clamped":"")+"Array",g="get"+t,m="set"+t,w=l[y],O=w,T=O&&O.prototype,E={},addElement=function(t,r){J(t,r,{get:function(){return function(t,r){var o=V(t);return o.view[g](r*h+o.byteOffset,!0)}(this,r)},set:function(t){return function(t,r,c){var l=V(t);l.view[m](r*h+l.byteOffset,o?x(c):c,!0)}(this,r,t)},enumerable:!0})};if(ne){if(d){O=r((function(t,r,o,c){v(t,T);return W(R(r)?isArrayBuffer(r)?void 0!==c?new w(r,C(o,h),c):void 0!==o?new w(r,C(o,h)):new w(r):ce(r)?fromList(O,r):u(U,O,r):new w(S(r)),t,O)}));D&&D(O,ie);G(N(w),(function(t){t in O||_(O,t,w[t])}));O.prototype=T}}else{O=r((function(t,r,o,c){v(t,T);var l,d,y,g=0,m=0;if(R(r)){if(!isArrayBuffer(r))return ce(r)?fromList(O,r):u(U,O,r);l=r;m=C(o,h);var _=r.byteLength;if(void 0===c){if(_%h)throw Q(ue);if((d=_-m)<0)throw Q(ue)}else if((d=k(c)*h)+m>_)throw Q(ue);y=d/h}else{y=S(r);l=new ee(d=y*h)}K(t,{buffer:l,byteOffset:m,byteLength:d,length:y,view:new re(l)});for(;g<y;)addElement(t,g++)}));D&&D(O,ie);T=O.prototype=j(oe)}T.constructor!==O&&_(T,"constructor",O);Y(T).TypedArrayConstructor=O;ae&&_(T,ae,y);var M=O!==w;E[y]=O;c({global:!0,constructor:!0,forced:M,sham:!ne},E);le in O||_(O,le,h);le in T||_(T,le,h);$(y)}}else t.exports=function(){}},(t,r,o)=>{var c=o(5),l=o(9),u=o(122),h=o(194).NATIVE_ARRAY_BUFFER_VIEWS,d=c.ArrayBuffer,y=c.Int8Array;t.exports=!h||!l((function(){y(1)}))||!l((function(){new y(-1)}))||!u((function(t){new y;new y(null);new y(1.5);new y(t)}),!0)||l((function(){return 1!==new y(new d(2),1,void 0).length}))},(t,r,o)=>{var c,l,u,h=o(195),d=o(25),y=o(5),g=o(29),v=o(28),m=o(6),_=o(78),w=o(41),k=o(50),S=o(44),C=o(87),x=o(38),O=o(135),T=o(107),E=o(14),R=o(19),M=o(48),j=M.enforce,L=M.get,D=y.Int8Array,N=D&&D.prototype,U=y.Uint8ClampedArray,G=U&&U.prototype,$=D&&O(D),H=N&&O(N),X=Object.prototype,q=y.TypeError,z=E("toStringTag"),W=R("TYPED_ARRAY_TAG"),V="TypedArrayConstructor",K=h&&!!T&&"Opera"!==_(y.opera),Y=!1,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Z={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(t){var r=O(t);if(v(r)){var o=L(r);return o&&m(o,V)?o[V]:getTypedArrayConstructor(r)}},isTypedArray=function(t){if(!v(t))return!1;var r=_(t);return m(J,r)||m(Z,r)};for(c in J)(u=(l=y[c])&&l.prototype)?j(u)[V]=l:K=!1;for(c in Z)(u=(l=y[c])&&l.prototype)&&(j(u)[V]=l);if(!K||!g($)||$===Function.prototype){$=function TypedArray(){throw q("Incorrect invocation")};if(K)for(c in J)y[c]&&T(y[c],$)}if(!K||!H||H===X){H=$.prototype;if(K)for(c in J)y[c]&&T(y[c].prototype,H)}K&&O(G)!==H&&T(G,H);if(d&&!m(H,z)){Y=!0;C(H,z,{configurable:!0,get:function(){return v(this)?this[W]:void 0}});for(c in J)y[c]&&k(y[c],W,c)}t.exports={NATIVE_ARRAY_BUFFER_VIEWS:K,TYPED_ARRAY_TAG:Y&&W,aTypedArray:function(t){if(isTypedArray(t))return t;throw q("Target is not a typed array")},aTypedArrayConstructor:function(t){if(g(t)&&(!T||x($,t)))return t;throw q(w(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,r,o,c){if(d){if(o)for(var l in J){var u=y[l];if(u&&m(u.prototype,t))try{delete u.prototype[t]}catch(o){try{u.prototype[t]=r}catch(t){}}}H[t]&&!o||S(H,t,o?r:K&&N[t]||r,c)}},exportTypedArrayStaticMethod:function(t,r,o){var c,l;if(d){if(T){if(o)for(c in J)if((l=y[c])&&m(l,t))try{delete l[t]}catch(t){}if($[t]&&!o)return;try{return S($,t,o?r:K&&$[t]||r)}catch(t){}}for(c in J)!(l=y[c])||l[t]&&!o||S(l,t,r)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(t){if(!v(t))return!1;var r=_(t);return"DataView"===r||m(J,r)||m(Z,r)},isTypedArray:isTypedArray,TypedArray:$,TypedArrayPrototype:H}},t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(t,r,o)=>{var c=o(5),l=o(7),u=o(25),h=o(195),d=o(46),y=o(50),g=o(87),v=o(197),m=o(9),_=o(149),w=o(70),k=o(73),S=o(198),C=o(199),x=o(135),O=o(107),T=o(66).f,E=o(201),R=o(85),M=o(88),j=o(48),L=d.PROPER,D=d.CONFIGURABLE,N="ArrayBuffer",U="DataView",G="prototype",$="Wrong index",H=j.getterFor(N),X=j.getterFor(U),q=j.set,z=c[N],W=z,V=W&&W[G],K=c[U],Y=K&&K[G],J=Object.prototype,Z=c.Array,Q=c.RangeError,ee=l(E),te=l([].reverse),re=C.pack,ne=C.unpack,packInt8=function(t){return[255&t]},packInt16=function(t){return[255&t,t>>8&255]},packInt32=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},unpackInt32=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},packFloat32=function(t){return re(t,23,4)},packFloat64=function(t){return re(t,52,8)},addGetter=function(t,r,o){g(t[G],r,{configurable:!0,get:function(){return o(this)[r]}})},get=function(t,r,o,c){var l=X(t),u=S(o),h=!!c;if(u+r>l.byteLength)throw Q($);var d=l.bytes,y=u+l.byteOffset,g=R(d,y,y+r);return h?g:te(g)},set=function(t,r,o,c,l,u){var h=X(t),d=S(o),y=c(+l),g=!!u;if(d+r>h.byteLength)throw Q($);for(var v=h.bytes,m=d+h.byteOffset,_=0;_<r;_++)v[m+_]=y[g?_:r-_-1]};if(h){var ae=L&&z.name!==N;if(m((function(){z(1)}))&&m((function(){new z(-1)}))&&!m((function(){new z;new z(1.5);new z(NaN);return 1!==z.length||ae&&!D})))ae&&D&&y(z,"name",N);else{(W=function ArrayBuffer(t){_(this,V);return new z(S(t))})[G]=V;for(var ie,oe=T(z),se=0;oe.length>se;)(ie=oe[se++])in W||y(W,ie,z[ie]);V.constructor=W}O&&x(Y)!==J&&O(Y,J);var ce=new K(new W(2)),le=l(Y.setInt8);ce.setInt8(0,2147483648);ce.setInt8(1,2147483649);!ce.getInt8(0)&&ce.getInt8(1)||v(Y,{setInt8:function setInt8(t,r){le(this,t,r<<24>>24)},setUint8:function setUint8(t,r){le(this,t,r<<24>>24)}},{unsafe:!0})}else{V=(W=function ArrayBuffer(t){_(this,V);var r=S(t);q(this,{type:N,bytes:ee(Z(r),0),byteLength:r});if(!u){this.byteLength=r;this.detached=!1}})[G];Y=(K=function DataView(t,r,o){_(this,Y);_(t,V);var c=H(t),l=c.byteLength,h=w(r);if(h<0||h>l)throw Q("Wrong offset");if(h+(o=void 0===o?l-h:k(o))>l)throw Q("Wrong length");q(this,{type:U,buffer:t,byteLength:o,byteOffset:h,bytes:c.bytes});if(!u){this.buffer=t;this.byteLength=o;this.byteOffset=h}})[G];if(u){addGetter(W,"byteLength",H);addGetter(K,"buffer",X);addGetter(K,"byteLength",X);addGetter(K,"byteOffset",X)}v(Y,{getInt8:function getInt8(t){return get(this,1,t)[0]<<24>>24},getUint8:function getUint8(t){return get(this,1,t)[0]},getInt16:function getInt16(t){var r=get(this,2,t,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function getUint16(t){var r=get(this,2,t,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function getInt32(t){return unpackInt32(get(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function getUint32(t){return unpackInt32(get(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function getFloat32(t){return ne(get(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function getFloat64(t){return ne(get(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function setInt8(t,r){set(this,1,t,packInt8,r)},setUint8:function setUint8(t,r){set(this,1,t,packInt8,r)},setInt16:function setInt16(t,r){set(this,2,t,packInt16,r,arguments.length>2&&arguments[2])},setUint16:function setUint16(t,r){set(this,2,t,packInt16,r,arguments.length>2&&arguments[2])},setInt32:function setInt32(t,r){set(this,4,t,packInt32,r,arguments.length>2&&arguments[2])},setUint32:function setUint32(t,r){set(this,4,t,packInt32,r,arguments.length>2&&arguments[2])},setFloat32:function setFloat32(t,r){set(this,4,t,packFloat32,r,arguments.length>2&&arguments[2])},setFloat64:function setFloat64(t,r){set(this,8,t,packFloat64,r,arguments.length>2&&arguments[2])}})}M(W,N);M(K,U);t.exports={ArrayBuffer:W,DataView:K}},(t,r,o)=>{var c=o(44);t.exports=function(t,r,o){for(var l in r)c(t,l,r[l],o);return t}},(t,r,o)=>{var c=o(70),l=o(73),u=RangeError;t.exports=function(t){if(void 0===t)return 0;var r=c(t),o=l(r);if(r!==o)throw u("Wrong length or index");return o}},(t,r,o)=>{var c=o(200),l=o(71),u=Array,h=Math.abs,d=Math.pow,y=Math.floor,g=Math.log,v=Math.LN2,roundToEven=function(t){var r=l(t),o=h(t-r);return o>.5||.5===o&&r%2!=0?r+c(t):r};t.exports={pack:function(t,r,o){var c,l,m,_=u(o),w=8*o-r-1,k=(1<<w)-1,S=k>>1,C=23===r?d(2,-24)-d(2,-77):0,x=t<0||0===t&&1/t<0?1:0,O=0;if((t=h(t))!=t||t===1/0){l=t!=t?1:0;c=k}else{c=y(g(t)/v);if(t*(m=d(2,-c))<1){c--;m*=2}if((t+=c+S>=1?C/m:C*d(2,1-S))*m>=2){c++;m/=2}if(c+S>=k){l=0;c=k}else if(c+S>=1){l=roundToEven((t*m-1)*d(2,r));c+=S}else{l=roundToEven(t*d(2,S-1)*d(2,r));c=0}}for(;r>=8;){_[O++]=255&l;l/=256;r-=8}c=c<<r|l;w+=r;for(;w>0;){_[O++]=255&c;c/=256;w-=8}_[--O]|=128*x;return _},unpack:function(t,r){var o,c=t.length,l=8*c-r-1,u=(1<<l)-1,h=u>>1,y=l-7,g=c-1,v=t[g--],m=127&v;v>>=7;for(;y>0;){m=256*m+t[g--];y-=8}o=m&(1<<-y)-1;m>>=-y;y+=r;for(;y>0;){o=256*o+t[g--];y-=8}if(0===m)m=1-h;else{if(m===u)return o?NaN:v?-1/0:1/0;o+=d(2,r);m-=h}return(v?-1:1)*o*d(2,m-r)}}},t=>{t.exports=Math.sign||function sign(t){var r=+t;return 0===r||r!=r?r:r<0?-1:1}},(t,r,o)=>{var c=o(10),l=o(69),u=o(72);t.exports=function fill(t){for(var r=c(this),o=u(r),h=arguments.length,d=l(h>1?arguments[1]:void 0,o),y=h>2?arguments[2]:void 0,g=void 0===y?o:l(y,o);g>d;)r[d++]=t;return r}},(t,r,o)=>{var c=o(28),l=Math.floor;t.exports=Number.isInteger||function isInteger(t){return!c(t)&&isFinite(t)&&l(t)===t}},(t,r,o)=>{var c=o(204),l=RangeError;t.exports=function(t,r){var o=c(t);if(o%r)throw l("Wrong offset");return o}},(t,r,o)=>{var c=o(70),l=RangeError;t.exports=function(t){var r=c(t);if(r<0)throw l("The argument can't be less than 0");return r}},t=>{var r=Math.round;t.exports=function(t){var o=r(t);return o<0?0:o>255?255:255&o}},(t,r,o)=>{var c=o(90),l=o(35),u=o(151),h=o(10),d=o(72),y=o(120),g=o(121),v=o(118),m=o(207),_=o(194).aTypedArrayConstructor,w=o(208);t.exports=function from(t){var r,o,k,S,C,x,O,T,E=u(this),R=h(t),M=arguments.length,j=M>1?arguments[1]:void 0,L=void 0!==j,D=g(R);if(D&&!v(D)){T=(O=y(R,D)).next;R=[];for(;!(x=l(T,O)).done;)R.push(x.value)}L&&M>2&&(j=c(j,arguments[2]));o=d(R);k=new(_(E))(o);S=m(k);for(r=0;o>r;r++){C=L?j(R[r],r):R[r];k[r]=S?w(C):+C}return k}},(t,r,o)=>{var c=o(78);t.exports=function(t){var r=c(t);return"BigInt64Array"===r||"BigUint64Array"===r}},(t,r,o)=>{var c=o(34),l=TypeError;t.exports=function(t){var r=c(t,"number");if("number"==typeof r)throw l("Can't convert number to bigint");return BigInt(r)}},(t,r,o)=>{var c=o(194),l=o(72),u=o(70),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("at",(function at(t){var r=h(this),o=l(r),c=u(t),d=c>=0?c:o+c;return d<0||d>=o?void 0:r[d]}))},(t,r,o)=>{var c=o(7),l=o(194),u=c(o(211)),h=l.aTypedArray;(0,l.exportTypedArrayMethod)("copyWithin",(function copyWithin(t,r){return u(h(this),t,r,arguments.length>2?arguments[2]:void 0)}))},(t,r,o)=>{var c=o(10),l=o(69),u=o(72),h=o(212),d=Math.min;t.exports=[].copyWithin||function copyWithin(t,r){var o=c(this),y=u(o),g=l(t,y),v=l(r,y),m=arguments.length>2?arguments[2]:void 0,_=d((void 0===m?y:l(m,y))-v,y-g),w=1;if(v<g&&g<v+_){w=-1;v+=_-1;g+=_-1}for(;_-- >0;){v in o?o[g]=o[v]:h(o,g);g+=w;v+=w}return o}},(t,r,o)=>{var c=o(41),l=TypeError;t.exports=function(t,r){if(!delete t[r])throw l("Cannot delete property "+c(r)+" of "+c(t))}},(t,r,o)=>{var c=o(194),l=o(89).every,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",(function every(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=o(201),u=o(208),h=o(78),d=o(35),y=o(7),g=o(9),v=c.aTypedArray,m=c.exportTypedArrayMethod,_=y("".slice);m("fill",(function fill(t){var r=arguments.length;v(this);var o="Big"===_(h(this),0,3)?u(t):+t;return d(l,this,o,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)}),g((function(){var t=0;new Int8Array(2).fill({valueOf:function(){return t++}});return 1!==t})))},(t,r,o)=>{var c=o(194),l=o(89).filter,u=o(216),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",(function filter(t){var r=l(h(this),t,arguments.length>1?arguments[1]:void 0);return u(this,r)}))},(t,r,o)=>{var c=o(217),l=o(218);t.exports=function(t,r){return c(l(t),r)}},(t,r,o)=>{var c=o(72);t.exports=function(t,r){for(var o=0,l=c(r),u=new t(l);l>o;)u[o]=r[o++];return u}},(t,r,o)=>{var c=o(194),l=o(150),u=c.aTypedArrayConstructor,h=c.getTypedArrayConstructor;t.exports=function(t){return u(l(t,h(t)))}},(t,r,o)=>{var c=o(194),l=o(89).find,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",(function find(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=o(89).findIndex,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",(function findIndex(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=o(222).findLast,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("findLast",(function findLast(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(90),l=o(62),u=o(10),h=o(72),createMethod=function(t){var r=1===t;return function(o,d,y){for(var g,v=u(o),m=l(v),_=c(d,y),w=h(m);w-- >0;)if(_(g=m[w],w,v))switch(t){case 0:return g;case 1:return w}return r?-1:void 0}};t.exports={findLast:createMethod(0),findLastIndex:createMethod(1)}},(t,r,o)=>{var c=o(194),l=o(222).findLastIndex,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("findLastIndex",(function findLastIndex(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=o(89).forEach,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",(function forEach(t){l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=o(68).includes,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",(function includes(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=o(68).indexOf,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",(function indexOf(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(5),l=o(9),u=o(7),h=o(194),d=o(137),y=o(14)("iterator"),g=c.Uint8Array,v=u(d.values),m=u(d.keys),_=u(d.entries),w=h.aTypedArray,k=h.exportTypedArrayMethod,S=g&&g.prototype,C=!l((function(){S[y].call([1])})),x=!!S&&S.values&&S[y]===S.values&&"values"===S.values.name,O=function values(){return v(w(this))};k("entries",(function entries(){return _(w(this))}),C);k("keys",(function keys(){return m(w(this))}),C);k("values",O,C||!x,{name:"values"});k(y,O,C||!x,{name:"values"})},(t,r,o)=>{var c=o(194),l=o(7),u=c.aTypedArray,h=c.exportTypedArrayMethod,d=l([].join);h("join",(function join(t){return d(u(this),t)}))},(t,r,o)=>{var c=o(194),l=o(100),u=o(230),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(t){var r=arguments.length;return l(u,h(this),r>1?[t,arguments[1]]:[t])}))},(t,r,o)=>{var c=o(100),l=o(61),u=o(70),h=o(72),d=o(231),y=Math.min,g=[].lastIndexOf,v=!!g&&1/[1].lastIndexOf(1,-0)<0,m=d("lastIndexOf"),_=v||!m;t.exports=_?function lastIndexOf(t){if(v)return c(g,this,arguments)||0;var r=l(this),o=h(r),d=o-1;arguments.length>1&&(d=y(d,u(arguments[1])));d<0&&(d=o+d);for(;d>=0;d--)if(d in r&&r[d]===t)return d||0;return-1}:g},(t,r,o)=>{var c=o(9);t.exports=function(t,r){var o=[][t];return!!o&&c((function(){o.call(null,r||function(){return 1},1)}))}},(t,r,o)=>{var c=o(194),l=o(89).map,u=o(218),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",(function map(t){return l(h(this),t,arguments.length>1?arguments[1]:void 0,(function(t,r){return new(u(t))(r)}))}))},(t,r,o)=>{var c=o(194),l=o(234).left,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",(function reduce(t){var r=arguments.length;return l(u(this),t,r,r>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(40),l=o(10),u=o(62),h=o(72),d=TypeError,createMethod=function(t){return function(r,o,y,g){c(o);var v=l(r),m=u(v),_=h(v),w=t?_-1:0,k=t?-1:1;if(y<2)for(;;){if(w in m){g=m[w];w+=k;break}w+=k;if(t?w<0:_<=w)throw d("Reduce of empty array with no initial value")}for(;t?w>=0:_>w;w+=k)w in m&&(g=o(g,m[w],w,v));return g}};t.exports={left:createMethod(!1),right:createMethod(!0)}},(t,r,o)=>{var c=o(194),l=o(234).right,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",(function reduceRight(t){var r=arguments.length;return l(u(this),t,r,r>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(194),l=c.aTypedArray,u=c.exportTypedArrayMethod,h=Math.floor;u("reverse",(function reverse(){for(var t,r=this,o=l(r).length,c=h(o/2),u=0;u<c;){t=r[u];r[u++]=r[--o];r[o]=t}return r}))},(t,r,o)=>{var c=o(5),l=o(35),u=o(194),h=o(72),d=o(203),y=o(10),g=o(9),v=c.RangeError,m=c.Int8Array,_=m&&m.prototype,w=_&&_.set,k=u.aTypedArray,S=u.exportTypedArrayMethod,C=!g((function(){var t=new Uint8ClampedArray(2);l(w,t,{length:1,0:3},1);return 3!==t[1]})),x=C&&u.NATIVE_ARRAY_BUFFER_VIEWS&&g((function(){var t=new m(2);t.set(1);t.set("2",1);return 0!==t[0]||2!==t[1]}));S("set",(function set(t){k(this);var r=d(arguments.length>1?arguments[1]:void 0,1),o=y(t);if(C)return l(w,this,o,r);var c=this.length,u=h(o),g=0;if(u+r>c)throw v("Wrong length");for(;g<u;)this[r+g]=o[g++]}),!C||x)},(t,r,o)=>{var c=o(194),l=o(218),u=o(9),h=o(101),d=c.aTypedArray;(0,c.exportTypedArrayMethod)("slice",(function slice(t,r){for(var o=h(d(this),t,r),c=l(this),u=0,y=o.length,g=new c(y);y>u;)g[u]=o[u++];return g}),u((function(){new Int8Array(1).slice()})))},(t,r,o)=>{var c=o(194),l=o(89).some,u=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",(function some(t){return l(u(this),t,arguments.length>1?arguments[1]:void 0)}))},(t,r,o)=>{var c=o(5),l=o(91),u=o(9),h=o(40),d=o(241),y=o(194),g=o(242),v=o(243),m=o(21),_=o(244),w=y.aTypedArray,k=y.exportTypedArrayMethod,S=c.Uint16Array,C=S&&l(S.prototype.sort),x=!(!C||u((function(){C(new S(2),null)}))&&u((function(){C(new S(2),{})}))),O=!!C&&!u((function(){if(m)return m<74;if(g)return g<67;if(v)return!0;if(_)return _<602;var t,r,o=new S(516),c=Array(516);for(t=0;t<516;t++){r=t%4;o[t]=515-t;c[t]=t-2*r+3}C(o,(function(t,r){return(t/4|0)-(r/4|0)}));for(t=0;t<516;t++)if(o[t]!==c[t])return!0}));k("sort",(function sort(t){void 0!==t&&h(t);return O?C(this,t):d(w(this),function(t){return function(r,o){return void 0!==t?+t(r,o)||0:o!=o?-1:r!=r?1:0===r&&0===o?1/r>0&&1/o<0?1:-1:r>o}}(t))}),!O||x)},(t,r,o)=>{var c=o(85),l=Math.floor,mergeSort=function(t,r){var o=t.length,u=l(o/2);return o<8?insertionSort(t,r):merge(t,mergeSort(c(t,0,u),r),mergeSort(c(t,u),r),r)},insertionSort=function(t,r){for(var o,c,l=t.length,u=1;u<l;){c=u;o=t[u];for(;c&&r(t[c-1],o)>0;)t[c]=t[--c];c!==u++&&(t[c]=o)}return t},merge=function(t,r,o,c){for(var l=r.length,u=o.length,h=0,d=0;h<l||d<u;)t[h+d]=h<l&&d<u?c(r[h],o[d])<=0?r[h++]:o[d++]:h<l?r[h++]:o[d++];return t};t.exports=mergeSort},(t,r,o)=>{var c=o(22).match(/firefox\/(\d+)/i);t.exports=!!c&&+c[1]},(t,r,o)=>{var c=o(22);t.exports=/MSIE|Trident/.test(c)},(t,r,o)=>{var c=o(22).match(/AppleWebKit\/(\d+)\./);t.exports=!!c&&+c[1]},(t,r,o)=>{var c=o(5),l=o(100),u=o(194),h=o(9),d=o(101),y=c.Int8Array,g=u.aTypedArray,v=u.exportTypedArrayMethod,m=[].toLocaleString,_=!!y&&h((function(){m.call(new y(1))}));v("toLocaleString",(function toLocaleString(){return l(m,_?d(g(this)):g(this),d(arguments))}),h((function(){return[1,2].toLocaleString()!==new y([1,2]).toLocaleString()}))||!h((function(){y.prototype.toLocaleString.call([1,2])})))},(t,r,o)=>{var c=o(247),l=o(194),u=l.aTypedArray,h=l.exportTypedArrayMethod,d=l.getTypedArrayConstructor;h("toReversed",(function toReversed(){return c(u(this),d(this))}))},(t,r,o)=>{var c=o(72);t.exports=function(t,r){for(var o=c(t),l=new r(o),u=0;u<o;u++)l[u]=t[o-u-1];return l}},(t,r,o)=>{var c=o(194),l=o(7),u=o(40),h=o(217),d=c.aTypedArray,y=c.getTypedArrayConstructor,g=c.exportTypedArrayMethod,v=l(c.TypedArrayPrototype.sort);g("toSorted",(function toSorted(t){void 0!==t&&u(t);var r=d(this),o=h(y(r),r);return v(o,t)}))},(t,r,o)=>{var c=o(194).exportTypedArrayMethod,l=o(9),u=o(5),h=o(7),d=u.Uint8Array,y=d&&d.prototype||{},g=[].toString,v=h([].join);l((function(){g.call({})}))&&(g=function toString(){return v(this)});var m=y.toString!==g;c("toString",g,m)},(t,r,o)=>{var c=o(251),l=o(194),u=o(207),h=o(70),d=o(208),y=l.aTypedArray,g=l.getTypedArrayConstructor,v=l.exportTypedArrayMethod,m=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();v("with",{with:function(t,r){var o=y(this),l=h(t),v=u(o)?d(r):+r;return c(o,g(o),l,v)}}.with,!m)},(t,r,o)=>{var c=o(72),l=o(70),u=RangeError;t.exports=function(t,r,o,h){var d=c(t),y=l(o),g=y<0?d+y:y;if(g>=d||g<0)throw u("Incorrect index");for(var v=new r(d),m=0;m<d;m++)v[m]=m===g?h:t[m];return v}},(t,r,o)=>{var c=o(25),l=o(87),u=o(253),h=ArrayBuffer.prototype;c&&!("detached"in h)&&l(h,"detached",{configurable:!0,get:function detached(){return u(this)}})},(t,r,o)=>{var c=o(7),l=o(254),u=c(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==l(t))return!1;try{u(t,0,0);return!1}catch(t){return!0}}},(t,r,o)=>{var c=o(108),l=o(63),u=TypeError;t.exports=c(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==l(t))throw u("ArrayBuffer expected");return t.byteLength}},(t,r,o)=>{var c=o(58),l=o(256);l&&c({target:"ArrayBuffer",proto:!0},{transfer:function transfer(){return l(this,arguments.length?arguments[0]:void 0,!0)}})},(t,r,o)=>{var c=o(5),l=o(7),u=o(108),h=o(198),d=o(253),y=o(254),g=o(257),v=c.TypeError,m=c.structuredClone,_=c.ArrayBuffer,w=c.DataView,k=Math.min,S=_.prototype,C=w.prototype,x=l(S.slice),O=u(S,"resizable","get"),T=u(S,"maxByteLength","get"),E=l(C.getInt8),R=l(C.setInt8);t.exports=g&&function(t,r,o){var c=y(t),l=void 0===r?c:h(r),u=!O||!O(t);if(d(t))throw v("ArrayBuffer is detached");var g=m(t,{transfer:[t]});if(c===l&&(o||u))return g;if(c>=l&&(!o||u))return x(g,0,l);for(var S=o&&!u&&T?{maxByteLength:T(g)}:void 0,C=new _(l,S),M=new w(g),j=new w(C),L=k(l,c),D=0;D<L;D++)R(j,D,E(M,D));return C}},(t,r,o)=>{var c=o(5),l=o(9),u=o(21),h=o(163),d=o(164),y=o(147),g=c.structuredClone;t.exports=!!g&&!l((function(){if(d&&u>92||y&&u>94||h&&u>97)return!1;var t=new ArrayBuffer(8),r=g(t,{transfer:[t]});return 0!==t.byteLength||8!==r.byteLength}))},(t,r,o)=>{var c=o(58),l=o(256);l&&c({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function transferToFixedLength(){return l(this,arguments.length?arguments[0]:void 0,!1)}})},(t,r,o)=>{o(260)},(t,r,o)=>{o(261)("Set",(function(t){return function Set(){return t(this,arguments.length?arguments[0]:void 0)}}),o(266))},(t,r,o)=>{var c=o(58),l=o(5),u=o(7),h=o(76),d=o(44),y=o(262),g=o(167),v=o(149),m=o(29),_=o(12),w=o(28),k=o(9),S=o(122),C=o(88),x=o(106);t.exports=function(t,r,o){var O=-1!==t.indexOf("Map"),T=-1!==t.indexOf("Weak"),E=O?"set":"add",R=l[t],M=R&&R.prototype,j=R,L={},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!(T&&!w(t))&&r(this,0===t?0:t)}:"get"===t?function get(t){return T&&!w(t)?void 0:r(this,0===t?0:t)}:"has"===t?function has(t){return!(T&&!w(t))&&r(this,0===t?0:t)}:function set(t,o){r(this,0===t?0:t,o);return this})};if(h(t,!m(R)||!(T||M.forEach&&!k((function(){(new R).entries().next()}))))){j=o.getConstructor(r,t,O,E);y.enable()}else if(h(t,!0)){var D=new j,N=D[E](T?{}:-0,1)!==D,U=k((function(){D.has(1)})),G=S((function(t){new R(t)})),$=!T&&k((function(){for(var t=new R,r=5;r--;)t[E](r,r);return!t.has(-0)}));if(!G){(j=r((function(t,r){v(t,M);var o=x(new R,t,j);_(r)||g(r,o[E],{that:o,AS_ENTRIES:O});return o}))).prototype=M;M.constructor=j}if(U||$){fixMethod("delete");fixMethod("has");O&&fixMethod("get")}($||N)&&fixMethod(E);T&&M.clear&&delete M.clear}L[t]=j;c({global:!0,constructor:!0,forced:j!==R},L);C(j,t);T||o.setStrong(j,t,O);return j}},(t,r,o)=>{var c=o(58),l=o(7),u=o(53),h=o(28),d=o(6),y=o(24).f,g=o(66),v=o(84),m=o(263),_=o(19),w=o(265),k=!1,S=_("meta"),C=0,setMetadata=function(t){y(t,S,{value:{objectID:"O"+C++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){};k=!0;var t=g.f,r=l([].splice),o={};o[S]=1;if(t(o).length){g.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:v.f})}},fastKey:function(t,r){if(!h(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!d(t,S)){if(!m(t))return"F";if(!r)return"E";setMetadata(t)}return t[S].objectID},getWeakData:function(t,r){if(!d(t,S)){if(!m(t))return!0;if(!r)return!1;setMetadata(t)}return t[S].weakData},onFreeze:function(t){w&&k&&m(t)&&!d(t,S)&&setMetadata(t);return t}};u[S]=!0},(t,r,o)=>{var c=o(9),l=o(28),u=o(63),h=o(264),d=Object.isExtensible,y=c((function(){d(1)}));t.exports=y||h?function isExtensible(t){return!!l(t)&&((!h||"ArrayBuffer"!==u(t))&&(!d||d(t)))}:d},(t,r,o)=>{var c=o(9);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(9);t.exports=!c((function(){return Object.isExtensible(Object.preventExtensions({}))}))},(t,r,o)=>{var c=o(80),l=o(87),u=o(197),h=o(90),d=o(149),y=o(12),g=o(167),v=o(139),m=o(142),_=o(148),w=o(25),k=o(262).fastKey,S=o(48),C=S.set,x=S.getterFor;t.exports={getConstructor:function(t,r,o,v){var m=t((function(t,l){d(t,_);C(t,{type:r,index:c(null),first:void 0,last:void 0,size:0});w||(t.size=0);y(l)||g(l,t[v],{that:t,AS_ENTRIES:o})})),_=m.prototype,S=x(r),define=function(t,r,o){var c,l,u=S(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);w?u.size++:t.size++;"F"!==l&&(u.index[l]=h)}return t},getEntry=function(t,r){var o,c=S(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=S(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;w?t.size=0:this.size=0},delete:function(t){var r=this,o=S(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);w?o.size--:r.size--}return!!c},forEach:function forEach(t){for(var r,o=S(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)}});w&&l(_,"size",{configurable:!0,get:function(){return S(this).size}});return m},setStrong:function(t,r,o){var c=r+" Iterator",l=x(r),u=x(c);v(t,r,(function(t,r){C(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 m(void 0,!0)}return m("keys"===r?o.key:"values"===r?o.value:[o.key,o.value],!1)}),o?"entries":"values",!o,!0);_(r)}}},(t,r,o)=>{var c=o(58),l=o(268);c({target:"Set",proto:!0,real:!0,forced:!o(277)("difference")},{difference:l})},(t,r,o)=>{var c=o(269),l=o(270),u=o(271),h=o(274),d=o(275),y=o(272),g=o(273),v=l.has,m=l.remove;t.exports=function difference(t){var r=c(this),o=d(t),l=u(r);h(r)<=o.size?y(r,(function(t){o.includes(t)&&m(l,t)})):g(o.getIterator(),(function(t){v(r,t)&&m(l,t)}));return l}},(t,r,o)=>{var c=o(270).has;t.exports=function(t){c(t);return t}},(t,r,o)=>{var c=o(7),l=Set.prototype;t.exports={Set:Set,add:c(l.add),has:c(l.has),remove:c(l.delete),proto:l}},(t,r,o)=>{var c=o(270),l=o(272),u=c.Set,h=c.add;t.exports=function(t){var r=new u;l(t,(function(t){h(r,t)}));return r}},(t,r,o)=>{var c=o(7),l=o(273),u=o(270),h=u.Set,d=u.proto,y=c(d.forEach),g=c(d.keys),v=g(new h).next;t.exports=function(t,r,o){return o?l({iterator:g(t),next:v},r):y(t,r)}},(t,r,o)=>{var c=o(35);t.exports=function(t,r,o){for(var l,u,h=o?t:t.iterator,d=t.next;!(l=c(d,h)).done;)if(void 0!==(u=r(l.value)))return u}},(t,r,o)=>{var c=o(108),l=o(270);t.exports=c(l.proto,"size","get")||function(t){return t.size}},(t,r,o)=>{var c=o(40),l=o(32),u=o(35),h=o(70),d=o(276),y="Invalid size",g=RangeError,v=TypeError,m=Math.max,SetRecord=function(t,r,o,c){this.set=t;this.size=r;this.has=o;this.keys=c};SetRecord.prototype={getIterator:function(){return d(l(u(this.keys,this.set)))},includes:function(t){return u(this.has,this.set,t)}};t.exports=function(t){l(t);var r=+t.size;if(r!=r)throw v(y);var o=h(r);if(o<0)throw g(y);return new SetRecord(t,m(o,0),c(t.has),c(t.keys))}},t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},(t,r,o)=>{var c=o(37),createSetLike=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var r=c("Set");try{(new r)[t](createSetLike(0));try{(new r)[t](createSetLike(-1));return!1}catch(t){return!0}}catch(t){return!1}}},(t,r,o)=>{var c=o(58),l=o(9),u=o(279);c({target:"Set",proto:!0,real:!0,forced:!o(277)("intersection")||l((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:u})},(t,r,o)=>{var c=o(269),l=o(270),u=o(274),h=o(275),d=o(272),y=o(273),g=l.Set,v=l.add,m=l.has;t.exports=function intersection(t){var r=c(this),o=h(t),l=new g;u(r)>o.size?y(o.getIterator(),(function(t){m(r,t)&&v(l,t)})):d(r,(function(t){o.includes(t)&&v(l,t)}));return l}},(t,r,o)=>{var c=o(58),l=o(281);c({target:"Set",proto:!0,real:!0,forced:!o(277)("isDisjointFrom")},{isDisjointFrom:l})},(t,r,o)=>{var c=o(269),l=o(270).has,u=o(274),h=o(275),d=o(272),y=o(273),g=o(117);t.exports=function isDisjointFrom(t){var r=c(this),o=h(t);if(u(r)<=o.size)return!1!==d(r,(function(t){if(o.includes(t))return!1}),!0);var v=o.getIterator();return!1!==y(v,(function(t){if(l(r,t))return g(v,"normal",!1)}))}},(t,r,o)=>{var c=o(58),l=o(283);c({target:"Set",proto:!0,real:!0,forced:!o(277)("isSubsetOf")},{isSubsetOf:l})},(t,r,o)=>{var c=o(269),l=o(274),u=o(272),h=o(275);t.exports=function isSubsetOf(t){var r=c(this),o=h(t);return!(l(r)>o.size)&&!1!==u(r,(function(t){if(!o.includes(t))return!1}),!0)}},(t,r,o)=>{var c=o(58),l=o(285);c({target:"Set",proto:!0,real:!0,forced:!o(277)("isSupersetOf")},{isSupersetOf:l})},(t,r,o)=>{var c=o(269),l=o(270).has,u=o(274),h=o(275),d=o(273),y=o(117);t.exports=function isSupersetOf(t){var r=c(this),o=h(t);if(u(r)<o.size)return!1;var g=o.getIterator();return!1!==d(g,(function(t){if(!l(r,t))return y(g,"normal",!1)}))}},(t,r,o)=>{var c=o(58),l=o(287);c({target:"Set",proto:!0,real:!0,forced:!o(277)("symmetricDifference")},{symmetricDifference:l})},(t,r,o)=>{var c=o(269),l=o(270),u=o(271),h=o(275),d=o(273),y=l.add,g=l.has,v=l.remove;t.exports=function symmetricDifference(t){var r=c(this),o=h(t).getIterator(),l=u(r);d(o,(function(t){g(r,t)?v(l,t):y(l,t)}));return l}},(t,r,o)=>{var c=o(58),l=o(289);c({target:"Set",proto:!0,real:!0,forced:!o(277)("union")},{union:l})},(t,r,o)=>{var c=o(269),l=o(270).add,u=o(271),h=o(275),d=o(273);t.exports=function union(t){var r=c(this),o=h(t).getIterator(),y=u(r);d(o,(function(t){l(y,t)}));return y}},(t,r,o)=>{var c=o(58),l=o(10),u=o(72),h=o(291),d=o(292);c({target:"Array",proto:!0,arity:1,forced:o(9)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function push(t){var r=l(this),o=u(r),c=arguments.length;d(o+c);for(var y=0;y<c;y++){r[o]=arguments[y];o++}h(r,o);return o}})},(t,r,o)=>{var c=o(25),l=o(94),u=TypeError,h=Object.getOwnPropertyDescriptor,d=c&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=d?function(t,r){if(l(t)&&!h(t,"length").writable)throw u("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},(t,r,o)=>{var c=o(46).PROPER,l=o(44),u=o(32),h=o(77),d=o(9),y=o(294),g="toString",v=RegExp.prototype[g],m=d((function(){return"/a/b"!==v.call({source:"a",flags:"b"})})),_=c&&v.name!==g;(m||_)&&l(RegExp.prototype,g,(function toString(){var t=u(this);return"/"+h(t.source)+"/"+h(y(t))}),{unsafe:!0})},(t,r,o)=>{var c=o(35),l=o(6),u=o(38),h=o(125),d=RegExp.prototype;t.exports=function(t){var r=t.flags;return void 0!==r||"flags"in d||l(t,"flags")||!u(d,t)?r:c(h,t)}},(t,r,o)=>{var c=o(58),l=o(16),u=o(161),h=o(9),d=o(37),y=o(29),g=o(150),v=o(173),m=o(44),_=u&&u.prototype;c({target:"Promise",proto:!0,real:!0,forced:!!u&&h((function(){_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=g(this,d("Promise")),o=y(t);return this.then(o?function(o){return v(r,t()).then((function(){return o}))}:t,o?function(o){return v(r,t()).then((function(){throw o}))}:t)}});if(!l&&y(u)){var w=d("Promise").prototype.finally;_.finally!==w&&m(_,"finally",w,{unsafe:!0})}},(t,r,o)=>{var c=o(58),l=o(94),u=o(95),h=o(28),d=o(69),y=o(72),g=o(61),v=o(86),m=o(14),_=o(181),w=o(101),k=_("slice"),S=m("species"),C=Array,x=Math.max;c({target:"Array",proto:!0,forced:!k},{slice:function slice(t,r){var o,c,m,_=g(this),k=y(_),O=d(t,k),T=d(void 0===r?k:r,k);if(l(_)){o=_.constructor;(u(o)&&(o===C||l(o.prototype))||h(o)&&null===(o=o[S]))&&(o=void 0);if(o===C||void 0===o)return w(_,O,T)}c=new(void 0===o?C:o)(x(T-O,0));for(m=0;O<T;O++,m++)O in _&&v(c,m,_[O]);c.length=m;return c}})},(t,r,o)=>{var c=o(58),l=o(298),u=o(10),h=o(72),d=o(70),y=o(92);c({target:"Array",proto:!0},{flat:function flat(){var t=arguments.length?arguments[0]:void 0,r=u(this),o=h(r),c=y(r,0);c.length=l(c,r,r,o,0,void 0===t?1:d(t));return c}})},(t,r,o)=>{var c=o(94),l=o(72),u=o(292),h=o(90),flattenIntoArray=function(t,r,o,d,y,g,v,m){for(var _,w,k=y,S=0,C=!!v&&h(v,m);S<d;){if(S in o){_=C?C(o[S],S,r):o[S];if(g>0&&c(_)){w=l(_);k=flattenIntoArray(t,r,_,w,k,g-1)-1}else{u(k+1);t[k]=_}k++}S++}return k};t.exports=flattenIntoArray},(t,r,o)=>{o(138)("flat")},(t,r,o)=>{var c=o(5),l=o(178),u=o(179),h=o(301),d=o(50),handlePrototype=function(t){if(t&&t.forEach!==h)try{d(t,"forEach",h)}catch(r){t.forEach=h}};for(var y in l)l[y]&&handlePrototype(c[y]&&c[y].prototype);handlePrototype(u)},(t,r,o)=>{var c=o(89).forEach,l=o(231)("forEach");t.exports=l?[].forEach:function forEach(t){return c(this,t,arguments.length>1?arguments[1]:void 0)}},(t,r,o)=>{var c=o(58),l=o(9),u=o(94),h=o(28),d=o(10),y=o(72),g=o(292),v=o(86),m=o(92),_=o(181),w=o(14),k=o(21),S=w("isConcatSpreadable"),C=k>=51||!l((function(){var t=[];t[S]=!1;return t.concat()[0]!==t})),isConcatSpreadable=function(t){if(!h(t))return!1;var r=t[S];return void 0!==r?!!r:u(t)};c({target:"Array",proto:!0,arity:1,forced:!C||!_("concat")},{concat:function concat(t){var r,o,c,l,u,h=d(this),_=m(h,0),w=0;for(r=-1,c=arguments.length;r<c;r++)if(isConcatSpreadable(u=-1===r?h:arguments[r])){l=y(u);g(w+l);for(o=0;o<l;o++,w++)o in u&&v(_,w,u[o])}else{g(w+1);v(_,w++,u)}_.length=w;return _}})},(t,r,o)=>{var c=o(58),l=o(5),u=o(87),h=o(25),d=TypeError,y=Object.defineProperty,g=l.self!==l;try{if(h){var v=Object.getOwnPropertyDescriptor(l,"self");!g&&v&&v.get&&v.enumerable||u(l,"self",{get:function self(){return l},set:function self(t){if(this!==l)throw d("Illegal invocation");y(l,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else c({global:!0,simple:!0,forced:g},{self:l})}catch(t){}},(t,r,o)=>{o(134);o(305);o(306);o(2);o(54);o(114);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.TextRenderingMode=r.RenderingIntentFlag=r.PromiseCapability=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.MAX_IMAGE_SIZE_TO_CACHE=r.LINE_FACTOR=r.LINE_DESCENT_FACTOR=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FeatureTest=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.BASELINE_FACTOR=r.AnnotationType=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationEditorType=r.AnnotationEditorPrefix=r.AnnotationEditorParamsType=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0;r.assert=function assert(t,r){t||unreachable(r)};r.bytesToString=bytesToString;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);(null==c?void 0: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(function _isValidProtocol(t){switch(null==t?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":case"capacitor":return!0;default:return!1}}(l))return l}catch(t){}return null};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[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")].join("")};r.getUuid=function getUuid(){var t,r;if("undefined"!=typeof crypto&&"function"==typeof(null===(t=crypto)||void 0===t?void 0:t.randomUUID))return crypto.randomUUID();var o=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof(null===(r=crypto)||void 0===r?void 0:r.getRandomValues))crypto.getRandomValues(o);else for(var c=0;c<32;c++)o[c]=Math.floor(255*Math.random());return bytesToString(o)};r.getVerbosityLevel=function getVerbosityLevel(){return u};r.info=function info(t){u>=l.INFOS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log("Info: ".concat(t)):Window&&globalThis.ngxConsole?globalThis.ngxConsole.log("Info: ".concat(t)):console.log("Info: ".concat(t)))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&void 0!==(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.isNodeJS=void 0;r.normalizeUnicode=function normalizeUnicode(t){if(!E){E=/([\xA0\xB5\u037E\u0EB3\u2000-\u200A\u202F\u2126\uFB00-\uFB04\uFB06\uFB20-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBA1\uFBA4-\uFBA9\uFBAE-\uFBB1\uFBD3-\uFBDC\uFBDE-\uFBE7\uFBEA-\uFBF8\uFBFC\uFBFD\uFC00-\uFC5D\uFC64-\uFCF1\uFCF5-\uFD3D\uFD88\uFDF4\uFDFA\uFDFB\uFE71\uFE77\uFE79\uFE7B\uFE7D]+)|(\uFB05+)/g;R=new Map([["ſt","ſt"]])}return t.replaceAll(E,(function(t,r,o){return r?r.normalize("NFKC"):R.get(o)}))};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,y=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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(d,y)||_unsupportedIterableToArray(d,y)||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,y;return o};r.objectSize=function objectSize(t){return Object.keys(t).length};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(u=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.stringToUTF8String=stringToUTF8String;r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;o(105);o(303);o(308);o(183);o(309);o(123);o(313);o(137);o(143);o(175);o(177);o(317);o(323);o(324);o(325);o(326);o(290);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(327);o(328);o(329);o(330);o(180);o(331);o(293);o(302);o(296);o(145);o(335);o(337);o(339);o(56);o(104);o(113);o(340);function _classPrivateFieldInitSpec(t,r,o){!function _checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.set(t,o)}function _classPrivateFieldSet(t,r,o){!function _classApplyDescriptorSet(t,r,o){if(r.set)r.set.call(t,o);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=o}}(t,_classExtractFieldDescriptor(t,r,"set"),o);return o}function _classExtractFieldDescriptor(t,r,o){if(!r.has(t))throw new TypeError("attempted to "+o+" private field on non-instance");return r.get(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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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)}var c=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=c;r.IDENTITY_MATRIX=[1,0,0,1,0,0];r.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];r.MAX_IMAGE_SIZE_TO_CACHE=1e7;r.LINE_FACTOR=1.35;r.LINE_DESCENT_FACTOR=.35;r.BASELINE_FACTOR=.25925925925925924;r.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};r.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};r.AnnotationEditorPrefix="pdfjs_internal_editor_";r.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};r.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};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.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"};var l={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=l;r.CMapCompressionType={NONE:0,BINARY:1};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,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var u=l.WARNINGS;function warn(t){u>=l.WARNINGS&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?console.log("Warning: ".concat(t)):Window&&globalThis.ngxConsole?globalThis.ngxConsole.log("Warning: ".concat(t)):console.log("Warning: ".concat(t)))}function unreachable(t){throw new Error(t)}function shadow(t,r,o){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(t,r,{value:o,enumerable:!c,configurable:!0,writable:!1});return o}var h=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=h;var d=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)}(h);r.PasswordException=d;var y=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)}(h);r.UnknownErrorException=y;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)}(h);r.InvalidPDFException=g;var v=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return _createClass(MissingPDFException)}(h);r.MissingPDFException=v;var m=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)}(h);r.UnexpectedResponseException=m;var _=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return _createClass(FormatError)}(h);r.FormatError=_;var w=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(t){_classCallCheck(this,AbortException);return r.call(this,t,"AbortException")}return _createClass(AbortException)}(h);r.AbortException=w;function bytesToString(t){"object"===_typeof(t)&&void 0!==(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("")}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}var k=function(){function FeatureTest(){_classCallCheck(this,FeatureTest)}_createClass(FeatureTest,null,[{key:"isLittleEndian",get:function get(){return shadow(this,"isLittleEndian",function isLittleEndian(){var t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}},{key:"isEvalSupported",get:function get(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function get(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function get(){return"undefined"==typeof navigator?shadow(this,"platform",{isWin:!1,isMac:!1}):shadow(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}},{key:"isCSSRoundSupported",get:function get(){var t,r;return shadow(this,"isCSSRoundSupported",null===(t=globalThis.CSS)||void 0===t||null===(r=t.supports)||void 0===r?void 0:r.call(t,"width: round(1.5px, 1px)"))}}]);return FeatureTest}();r.FeatureTest=k;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:"scaleMinMax",value:function scaleMinMax(t,r){var o;if(t[0]){if(t[0]<0){o=r[0];r[0]=r[1];r[1]=o}r[0]*=t[0];r[1]*=t[0];if(t[3]<0){o=r[2];r[2]=r[3];r[3]=o}r[2]*=t[3];r[3]*=t[3]}else{o=r[0];r[0]=r[2];r[2]=o;o=r[1];r[1]=r[3];r[3]=o;if(t[1]<0){o=r[2];r[2]=r[3];r[3]=o}r[2]*=t[1];r[3]*=t[1];if(t[2]<0){o=r[0];r[0]=r[1];r[1]=o}r[0]*=t[2];r[1]*=t[2]}r[0]+=t[4];r[1]+=t[4];r[2]+=t[5];r[3]+=t[5]}},{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=this.applyTransform(t,r),c=this.applyTransform(t.slice(2,4),r),l=this.applyTransform([t[0],t[3]],r),u=this.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:"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,y=h+d||1,g=h-d||1;return[Math.sqrt(y),Math.sqrt(g)]}},{key:"normalizeRect",value:function normalizeRect(t){var r=t.slice(0);if(t[0]>t[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){var o=Math.max(Math.min(t[0],t[2]),Math.min(r[0],r[2])),c=Math.min(Math.max(t[0],t[2]),Math.max(r[0],r[2]));if(o>c)return null;var l=Math.max(Math.min(t[1],t[3]),Math.min(r[1],r[3])),u=Math.min(Math.max(t[1],t[3]),Math.max(r[1],r[3]));return l>u?null:[o,l,c,u]}},{key:"bezierBoundingBox",value:function bezierBoundingBox(t,r,o,c,l,u,h,d){for(var y,g,v,m,_,w,k,S,C=[],x=[[],[]],O=0;O<2;++O){if(0===O){g=6*t-12*o+6*l;y=-3*t+9*o-9*l+3*h;v=3*o-3*t}else{g=6*r-12*c+6*u;y=-3*r+9*c-9*u+3*d;v=3*c-3*r}if(Math.abs(y)<1e-12){if(Math.abs(g)<1e-12)continue;0<(m=-v/g)&&m<1&&C.push(m)}else{k=g*g-4*v*y;S=Math.sqrt(k);if(!(k<0)){0<(_=(-g+S)/(2*y))&&_<1&&C.push(_);0<(w=(-g-S)/(2*y))&&w<1&&C.push(w)}}}for(var T,E=C.length,R=E;E--;){T=1-(m=C[E]);x[0][E]=T*T*T*t+3*T*T*m*o+3*T*m*m*l+m*m*m*h;x[1][E]=T*T*T*r+3*T*T*m*c+3*T*m*m*u+m*m*m*d}x[0][R]=t;x[1][R]=r;x[0][R+1]=h;x[1][R+1]=d;x[0].length=x[1].length=R+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))}var O=new WeakMap,T=function(){function PromiseCapability(){var t=this;_classCallCheck(this,PromiseCapability);_classPrivateFieldInitSpec(this,O,{writable:!0,value:!1});this.promise=new Promise((function(r,o){t.resolve=function(o){_classPrivateFieldSet(t,O,!0);r(o)};t.reject=function(r){_classPrivateFieldSet(t,O,!0);o(r)}}))}_createClass(PromiseCapability,[{key:"settled",get:function get(){return function _classPrivateFieldGet(t,r){return function _classApplyDescriptorGet(t,r){return r.get?r.get.call(t):r.value}(t,_classExtractFieldDescriptor(t,r,"get"))}(this,O)}}]);return PromiseCapability}();r.PromiseCapability=T;var E=null,R=null},(t,r,o)=>{var c=o(58),l=o(5),u=o(88);c({global:!0},{Reflect:{}});u(l.Reflect,"Reflect",!0)},(t,r,o)=>{var c=o(58),l=o(37),u=o(100),h=o(307),d=o(151),y=o(32),g=o(28),v=o(80),m=o(9),_=l("Reflect","construct"),w=Object.prototype,k=[].push,S=m((function(){function F(){}return!(_((function(){}),[],F)instanceof F)})),C=!m((function(){_((function(){}))})),x=S||C;c({target:"Reflect",stat:!0,forced:x,sham:x},{construct:function construct(t,r){d(t);y(r);var o=arguments.length<3?t:d(arguments[2]);if(C&&!S)return _(t,r,o);if(t===o){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var c=[null];u(k,c,r);return new(u(h,t,c))}var l=o.prototype,m=v(g(l)?l:w),x=u(t,m,r);return g(x)?x:m}})},(t,r,o)=>{var c=o(7),l=o(40),u=o(28),h=o(6),d=o(101),y=o(8),g=Function,v=c([].concat),m=c([].join),_={};t.exports=y?g.bind:function bind(t){var r=l(this),o=r.prototype,c=d(arguments,1),y=function bound(){var o=v(c,d(arguments));return this instanceof y?function(t,r,o){if(!h(_,r)){for(var c=[],l=0;l<r;l++)c[l]="a["+l+"]";_[r]=g("C,a","return new C("+m(c,",")+")")}return _[r](t,o)}(r,o.length,o):r.apply(t,o)};u(o)&&(y.prototype=o);return y}},(t,r,o)=>{var c=o(58),l=o(5);c({global:!0,forced:l.globalThis!==l},{globalThis:l})},(t,r,o)=>{var c,l=o(58),u=o(91),h=o(59).f,d=o(73),y=o(77),g=o(310),v=o(11),m=o(312),_=o(16),w=u("".startsWith),k=u("".slice),S=Math.min,C=m("startsWith");l({target:"String",proto:!0,forced:!(!_&&!C&&!!(c=h(String.prototype,"startsWith"),c&&!c.writable))&&!C},{startsWith:function startsWith(t){var r=y(v(this));g(t);var o=d(S(arguments.length>1?arguments[1]:void 0,r.length)),c=y(t);return w?w(r,c,o):k(r,o,o+c.length)===c}})},(t,r,o)=>{var c=o(311),l=TypeError;t.exports=function(t){if(c(t))throw l("The method doesn't accept regular expressions");return t}},(t,r,o)=>{var c=o(28),l=o(63),u=o(14)("match");t.exports=function(t){var r;return c(t)&&(void 0!==(r=t[u])?!!r:"RegExp"===l(t))}},(t,r,o)=>{var c=o(14)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(o){try{r[c]=!1;return"/./"[t](r)}catch(t){}}return!1}},(t,r,o)=>{var c=o(35),l=o(314),u=o(32),h=o(12),d=o(73),y=o(77),g=o(11),v=o(39),m=o(315),_=o(316);l("match",(function(t,r,o){return[function match(r){var o=g(this),l=h(r)?void 0:v(r,t);return l?c(l,r,o):new RegExp(r)[t](y(o))},function(t){var c=u(this),l=y(t),h=o(r,c,l);if(h.done)return h.value;if(!c.global)return _(c,l);var g=c.unicode;c.lastIndex=0;for(var v,w=[],k=0;null!==(v=_(c,l));){var S=y(v[0]);w[k]=S;""===S&&(c.lastIndex=m(l,d(c.lastIndex),g));k++}return 0===k?null:w}]}))},(t,r,o)=>{o(123);var c=o(91),l=o(44),u=o(124),h=o(9),d=o(14),y=o(50),g=d("species"),v=RegExp.prototype;t.exports=function(t,r,o,m){var _=d(t),w=!h((function(){var r={};r[_]=function(){return 7};return 7!==""[t](r)})),k=w&&!h((function(){var r=!1,o=/a/;if("split"===t){(o={}).constructor={};o.constructor[g]=function(){return o};o.flags="";o[_]=/./[_]}o.exec=function(){r=!0;return null};o[_]("");return!r}));if(!w||!k||o){var S=c(/./[_]),C=r(_,""[t],(function(t,r,o,l,h){var d=c(t),y=r.exec;return y===u||y===v.exec?w&&!h?{done:!0,value:S(r,o,l)}:{done:!0,value:d(o,r,l)}:{done:!1}}));l(String.prototype,t,C[0]);l(v,_,C[1])}m&&y(v[_],"sham",!0)}},(t,r,o)=>{var c=o(176).charAt;t.exports=function(t,r,o){return r+(o?c(t,r).length:1)}},(t,r,o)=>{var c=o(35),l=o(32),u=o(29),h=o(63),d=o(124),y=TypeError;t.exports=function(t,r){var o=t.exec;if(u(o)){var g=c(o,t,r);null!==g&&l(g);return g}if("RegExp"===h(t))return c(d,t,r);throw y("RegExp#exec called on incompatible receiver")}},(t,r,o)=>{o(318)},(t,r,o)=>{o(175);var c,l=o(58),u=o(25),h=o(319),d=o(5),y=o(90),g=o(7),v=o(44),m=o(87),_=o(149),w=o(6),k=o(320),S=o(115),C=o(85),x=o(176).codeAt,O=o(321),T=o(77),E=o(88),R=o(153),M=o(322),j=o(48),L=j.set,D=j.getterFor("URL"),N=M.URLSearchParams,U=M.getState,G=d.URL,$=d.TypeError,H=d.parseInt,X=Math.floor,q=Math.pow,z=g("".charAt),W=g(/./.exec),V=g([].join),K=g(1..toString),Y=g([].pop),J=g([].push),Z=g("".replace),Q=g([].shift),ee=g("".split),te=g("".slice),re=g("".toLowerCase),ne=g([].unshift),ae="Invalid scheme",ie="Invalid host",oe="Invalid port",se=/[a-z]/i,ce=/[\d+-.a-z]/i,le=/\d/,ue=/^0x/i,fe=/^[0-7]+$/,he=/^\d+$/,pe=/^[\da-f]+$/i,de=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ye=/[\0\t\n\r #/:<>?@[\\\]^|]/,ge=/^[\u0000-\u0020]+/,ve=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,me=/[\t\n\r]/g,serializeHost=function(t){var r,o,c,l;if("number"==typeof t){r=[];for(o=0;o<4;o++){ne(r,t%256);t=X(t/256)}return V(r,".")}if("object"==typeof t){r="";c=function(t){for(var r=null,o=1,c=null,l=0,u=0;u<8;u++)if(0!==t[u]){if(l>o){r=c;o=l}c=null;l=0}else{null===c&&(c=u);++l}if(l>o){r=c;o=l}return r}(t);for(o=0;o<8;o++)if(!l||0!==t[o]){l&&(l=!1);if(c===o){r+=o?":":"::";l=!0}else{r+=K(t[o],16);o<7&&(r+=":")}}return"["+r+"]"}return t},be={},_e=k({},be,{" ":1,'"':1,"<":1,">":1,"`":1}),we=k({},_e,{"#":1,"?":1,"{":1,"}":1}),ke=k({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(t,r){var o=x(t,0);return o>32&&o<127&&!w(r,t)?t:encodeURIComponent(t)},Se={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function(t,r){var o;return 2===t.length&&W(se,z(t,0))&&(":"===(o=z(t,1))||!r&&"|"===o)},startsWithWindowsDriveLetter=function(t){var r;return t.length>1&&isWindowsDriveLetter(te(t,0,2))&&(2===t.length||"/"===(r=z(t,2))||"\\"===r||"?"===r||"#"===r)},isSingleDot=function(t){return"."===t||"%2e"===re(t)},Ce={},xe={},Ae={},Oe={},Pe={},Te={},Ie={},Fe={},Ee={},Re={},Me={},je={},Le={},De={},Ne={},Be={},Ue={},Ge={},$e={},He={},Xe={},URLState=function(t,r,o){var c,l,u,h=T(t);if(r){if(l=this.parse(h))throw $(l);this.searchParams=null}else{void 0!==o&&(c=new URLState(o,!0));if(l=this.parse(h,null,c))throw $(l);(u=U(new N)).bindURL(this);this.searchParams=u}};URLState.prototype={type:"URL",parse:function(t,r,o){var l,u,h,d,y,g=this,v=r||Ce,m=0,_="",k=!1,x=!1,O=!1;t=T(t);if(!r){g.scheme="";g.username="";g.password="";g.host=null;g.port=null;g.path=[];g.query=null;g.fragment=null;g.cannotBeABaseURL=!1;t=Z(t,ge,"");t=Z(t,ve,"$1")}t=Z(t,me,"");l=S(t);for(;m<=l.length;){u=l[m];switch(v){case Ce:if(!u||!W(se,u)){if(r)return ae;v=Ae;continue}_+=re(u);v=xe;break;case xe:if(u&&(W(ce,u)||"+"===u||"-"===u||"."===u))_+=re(u);else{if(":"!==u){if(r)return ae;_="";v=Ae;m=0;continue}if(r&&(g.isSpecial()!==w(Se,_)||"file"===_&&(g.includesCredentials()||null!==g.port)||"file"===g.scheme&&!g.host))return;g.scheme=_;if(r){g.isSpecial()&&Se[g.scheme]===g.port&&(g.port=null);return}_="";if("file"===g.scheme)v=De;else if(g.isSpecial()&&o&&o.scheme===g.scheme)v=Oe;else if(g.isSpecial())v=Fe;else if("/"===l[m+1]){v=Pe;m++}else{g.cannotBeABaseURL=!0;J(g.path,"");v=$e}}break;case Ae:if(!o||o.cannotBeABaseURL&&"#"!==u)return ae;if(o.cannotBeABaseURL&&"#"===u){g.scheme=o.scheme;g.path=C(o.path);g.query=o.query;g.fragment="";g.cannotBeABaseURL=!0;v=Xe;break}v="file"===o.scheme?De:Te;continue;case Oe:if("/"!==u||"/"!==l[m+1]){v=Te;continue}v=Ee;m++;break;case Pe:if("/"===u){v=Re;break}v=Ge;continue;case Te:g.scheme=o.scheme;if(u===c){g.username=o.username;g.password=o.password;g.host=o.host;g.port=o.port;g.path=C(o.path);g.query=o.query}else if("/"===u||"\\"===u&&g.isSpecial())v=Ie;else if("?"===u){g.username=o.username;g.password=o.password;g.host=o.host;g.port=o.port;g.path=C(o.path);g.query="";v=He}else{if("#"!==u){g.username=o.username;g.password=o.password;g.host=o.host;g.port=o.port;g.path=C(o.path);g.path.length--;v=Ge;continue}g.username=o.username;g.password=o.password;g.host=o.host;g.port=o.port;g.path=C(o.path);g.query=o.query;g.fragment="";v=Xe}break;case Ie:if(!g.isSpecial()||"/"!==u&&"\\"!==u){if("/"!==u){g.username=o.username;g.password=o.password;g.host=o.host;g.port=o.port;v=Ge;continue}v=Re}else v=Ee;break;case Fe:v=Ee;if("/"!==u||"/"!==z(_,m+1))continue;m++;break;case Ee:if("/"!==u&&"\\"!==u){v=Re;continue}break;case Re:if("@"===u){k&&(_="%40"+_);k=!0;h=S(_);for(var E=0;E<h.length;E++){var R=h[E];if(":"!==R||O){var M=percentEncode(R,ke);O?g.password+=M:g.username+=M}else O=!0}_=""}else if(u===c||"/"===u||"?"===u||"#"===u||"\\"===u&&g.isSpecial()){if(k&&""===_)return"Invalid authority";m-=S(_).length+1;_="";v=Me}else _+=u;break;case Me:case je:if(r&&"file"===g.scheme){v=Be;continue}if(":"!==u||x){if(u===c||"/"===u||"?"===u||"#"===u||"\\"===u&&g.isSpecial()){if(g.isSpecial()&&""===_)return ie;if(r&&""===_&&(g.includesCredentials()||null!==g.port))return;if(d=g.parseHost(_))return d;_="";v=Ue;if(r)return;continue}"["===u?x=!0:"]"===u&&(x=!1);_+=u}else{if(""===_)return ie;if(d=g.parseHost(_))return d;_="";v=Le;if(r===je)return}break;case Le:if(!W(le,u)){if(u===c||"/"===u||"?"===u||"#"===u||"\\"===u&&g.isSpecial()||r){if(""!==_){var j=H(_,10);if(j>65535)return oe;g.port=g.isSpecial()&&j===Se[g.scheme]?null:j;_=""}if(r)return;v=Ue;continue}return oe}_+=u;break;case De:g.scheme="file";if("/"===u||"\\"===u)v=Ne;else{if(!o||"file"!==o.scheme){v=Ge;continue}switch(u){case c:g.host=o.host;g.path=C(o.path);g.query=o.query;break;case"?":g.host=o.host;g.path=C(o.path);g.query="";v=He;break;case"#":g.host=o.host;g.path=C(o.path);g.query=o.query;g.fragment="";v=Xe;break;default:if(!startsWithWindowsDriveLetter(V(C(l,m),""))){g.host=o.host;g.path=C(o.path);g.shortenPath()}v=Ge;continue}}break;case Ne:if("/"===u||"\\"===u){v=Be;break}o&&"file"===o.scheme&&!startsWithWindowsDriveLetter(V(C(l,m),""))&&(isWindowsDriveLetter(o.path[0],!0)?J(g.path,o.path[0]):g.host=o.host);v=Ge;continue;case Be:if(u===c||"/"===u||"\\"===u||"?"===u||"#"===u){if(!r&&isWindowsDriveLetter(_))v=Ge;else if(""===_){g.host="";if(r)return;v=Ue}else{if(d=g.parseHost(_))return d;"localhost"===g.host&&(g.host="");if(r)return;_="";v=Ue}continue}_+=u;break;case Ue:if(g.isSpecial()){v=Ge;if("/"!==u&&"\\"!==u)continue}else if(r||"?"!==u)if(r||"#"!==u){if(u!==c){v=Ge;if("/"!==u)continue}}else{g.fragment="";v=Xe}else{g.query="";v=He}break;case Ge:if(u===c||"/"===u||"\\"===u&&g.isSpecial()||!r&&("?"===u||"#"===u)){if(".."===(y=re(y=_))||"%2e."===y||".%2e"===y||"%2e%2e"===y){g.shortenPath();"/"===u||"\\"===u&&g.isSpecial()||J(g.path,"")}else if(isSingleDot(_))"/"===u||"\\"===u&&g.isSpecial()||J(g.path,"");else{if("file"===g.scheme&&!g.path.length&&isWindowsDriveLetter(_)){g.host&&(g.host="");_=z(_,0)+":"}J(g.path,_)}_="";if("file"===g.scheme&&(u===c||"?"===u||"#"===u))for(;g.path.length>1&&""===g.path[0];)Q(g.path);if("?"===u){g.query="";v=He}else if("#"===u){g.fragment="";v=Xe}}else _+=percentEncode(u,we);break;case $e:if("?"===u){g.query="";v=He}else if("#"===u){g.fragment="";v=Xe}else u!==c&&(g.path[0]+=percentEncode(u,be));break;case He:if(r||"#"!==u)u!==c&&("'"===u&&g.isSpecial()?g.query+="%27":g.query+="#"===u?"%23":percentEncode(u,be));else{g.fragment="";v=Xe}break;case Xe:u!==c&&(g.fragment+=percentEncode(u,_e))}m++}},parseHost:function(t){var r,o,c;if("["===z(t,0)){if("]"!==z(t,t.length-1))return ie;r=function(t){var r,o,c,l,u,h,d,y=[0,0,0,0,0,0,0,0],g=0,v=null,m=0,chr=function(){return z(t,m)};if(":"===chr()){if(":"!==z(t,1))return;m+=2;v=++g}for(;chr();){if(8===g)return;if(":"!==chr()){r=o=0;for(;o<4&&W(pe,chr());){r=16*r+H(chr(),16);m++;o++}if("."===chr()){if(0===o)return;m-=o;if(g>6)return;c=0;for(;chr();){l=null;if(c>0){if(!("."===chr()&&c<4))return;m++}if(!W(le,chr()))return;for(;W(le,chr());){u=H(chr(),10);if(null===l)l=u;else{if(0===l)return;l=10*l+u}if(l>255)return;m++}y[g]=256*y[g]+l;2!=++c&&4!==c||g++}if(4!==c)return;break}if(":"===chr()){m++;if(!chr())return}else if(chr())return;y[g++]=r}else{if(null!==v)return;m++;v=++g}}if(null!==v){h=g-v;g=7;for(;0!==g&&h>0;){d=y[g];y[g--]=y[v+h-1];y[v+--h]=d}}else if(8!==g)return;return y}(te(t,1,-1));if(!r)return ie;this.host=r}else if(this.isSpecial()){t=O(t);if(W(de,t))return ie;r=function(t){var r,o,c,l,u,h,d,y=ee(t,".");y.length&&""===y[y.length-1]&&y.length--;if((r=y.length)>4)return t;o=[];for(c=0;c<r;c++){if(""===(l=y[c]))return t;u=10;if(l.length>1&&"0"===z(l,0)){u=W(ue,l)?16:8;l=te(l,8===u?1:2)}if(""===l)h=0;else{if(!W(10===u?he:8===u?fe:pe,l))return t;h=H(l,u)}J(o,h)}for(c=0;c<r;c++){h=o[c];if(c===r-1){if(h>=q(256,5-r))return null}else if(h>255)return null}d=Y(o);for(c=0;c<o.length;c++)d+=o[c]*q(256,3-c);return d}(t);if(null===r)return ie;this.host=r}else{if(W(ye,t))return ie;r="";o=S(t);for(c=0;c<o.length;c++)r+=percentEncode(o[c],be);this.host=r}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return w(Se,this.scheme)},shortenPath:function(){var t=this.path,r=t.length;!r||"file"===this.scheme&&1===r&&isWindowsDriveLetter(t[0],!0)||t.length--},serialize:function(){var t=this,r=t.scheme,o=t.username,c=t.password,l=t.host,u=t.port,h=t.path,d=t.query,y=t.fragment,g=r+":";if(null!==l){g+="//";t.includesCredentials()&&(g+=o+(c?":"+c:"")+"@");g+=serializeHost(l);null!==u&&(g+=":"+u)}else"file"===r&&(g+="//");g+=t.cannotBeABaseURL?h[0]:h.length?"/"+V(h,"/"):"";null!==d&&(g+="?"+d);null!==y&&(g+="#"+y);return g},setHref:function(t){var r=this.parse(t);if(r)throw $(r);this.searchParams.update()},getOrigin:function(){var t=this.scheme,r=this.port;if("blob"===t)try{return new qe(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+serializeHost(this.host)+(null!==r?":"+r:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(T(t)+":",Ce)},getUsername:function(){return this.username},setUsername:function(t){var r=S(T(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var o=0;o<r.length;o++)this.username+=percentEncode(r[o],ke)}},getPassword:function(){return this.password},setPassword:function(t){var r=S(T(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var o=0;o<r.length;o++)this.password+=percentEncode(r[o],ke)}},getHost:function(){var t=this.host,r=this.port;return null===t?"":null===r?serializeHost(t):serializeHost(t)+":"+r},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Me)},getHostname:function(){var t=this.host;return null===t?"":serializeHost(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,je)},getPort:function(){var t=this.port;return null===t?"":T(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=T(t))?this.port=null:this.parse(t,Le))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+V(t,"/"):""},setPathname:function(t){if(!this.cannotBeABaseURL){this.path=[];this.parse(t,Ue)}},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){if(""===(t=T(t)))this.query=null;else{"?"===z(t,0)&&(t=te(t,1));this.query="";this.parse(t,He)}this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){if(""!==(t=T(t))){"#"===z(t,0)&&(t=te(t,1));this.fragment="";this.parse(t,Xe)}else this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function URL(t){var r=_(this,ze),o=R(arguments.length,1)>1?arguments[1]:void 0,c=L(r,new URLState(t,!1,o));if(!u){r.href=c.serialize();r.origin=c.getOrigin();r.protocol=c.getProtocol();r.username=c.getUsername();r.password=c.getPassword();r.host=c.getHost();r.hostname=c.getHostname();r.port=c.getPort();r.pathname=c.getPathname();r.search=c.getSearch();r.searchParams=c.getSearchParams();r.hash=c.getHash()}},ze=qe.prototype,accessorDescriptor=function(t,r){return{get:function(){return D(this)[t]()},set:r&&function(t){return D(this)[r](t)},configurable:!0,enumerable:!0}};if(u){m(ze,"href",accessorDescriptor("serialize","setHref"));m(ze,"origin",accessorDescriptor("getOrigin"));m(ze,"protocol",accessorDescriptor("getProtocol","setProtocol"));m(ze,"username",accessorDescriptor("getUsername","setUsername"));m(ze,"password",accessorDescriptor("getPassword","setPassword"));m(ze,"host",accessorDescriptor("getHost","setHost"));m(ze,"hostname",accessorDescriptor("getHostname","setHostname"));m(ze,"port",accessorDescriptor("getPort","setPort"));m(ze,"pathname",accessorDescriptor("getPathname","setPathname"));m(ze,"search",accessorDescriptor("getSearch","setSearch"));m(ze,"searchParams",accessorDescriptor("getSearchParams"));m(ze,"hash",accessorDescriptor("getHash","setHash"))}v(ze,"toJSON",(function toJSON(){return D(this).serialize()}),{enumerable:!0});v(ze,"toString",(function toString(){return D(this).serialize()}),{enumerable:!0});if(G){var We=G.createObjectURL,Ve=G.revokeObjectURL;We&&v(qe,"createObjectURL",y(We,G));Ve&&v(qe,"revokeObjectURL",y(Ve,G))}E(qe,"URL");l({global:!0,constructor:!0,forced:!h,sham:!u},{URL:qe})},(t,r,o)=>{var c=o(9),l=o(14),u=o(25),h=o(16),d=l("iterator");t.exports=!c((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),c="";t.pathname="c%20d";r.forEach((function(t,o){r.delete("b");c+=o+t}));o.delete("a",2);o.delete("b",void 0);return h&&(!t.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!r.size&&(h||!u)||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[d]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==c||"x"!==new URL("http://x",void 0).host}))},(t,r,o)=>{var c=o(25),l=o(7),u=o(35),h=o(9),d=o(82),y=o(75),g=o(60),v=o(10),m=o(62),_=Object.assign,w=Object.defineProperty,k=l([].concat);t.exports=!_||h((function(){if(c&&1!==_({b:1},_(w({},"a",{enumerable:!0,get:function(){w(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},o=Symbol("assign detection"),l="abcdefghijklmnopqrst";t[o]=7;l.split("").forEach((function(t){r[t]=t}));return 7!==_({},t)[o]||d(_({},r)).join("")!==l}))?function assign(t,r){for(var o=v(t),l=arguments.length,h=1,_=y.f,w=g.f;l>h;)for(var S,C=m(arguments[h++]),x=_?k(d(C),_(C)):d(C),O=x.length,T=0;O>T;){S=x[T++];c&&!u(w,C,S)||(o[S]=C[S])}return o}:_},(t,r,o)=>{var c=o(7),l=2147483647,u=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,d="Overflow: input needs wider integers to process",y=RangeError,g=c(h.exec),v=Math.floor,m=String.fromCharCode,_=c("".charCodeAt),w=c([].join),k=c([].push),S=c("".replace),C=c("".split),x=c("".toLowerCase),digitToBasic=function(t){return t+22+75*(t<26)},adapt=function(t,r,o){var c=0;t=o?v(t/700):t>>1;t+=v(t/r);for(;t>455;){t=v(t/35);c+=36}return v(c+36*t/(t+38))},encode=function(t){var r=[];t=function(t){for(var r=[],o=0,c=t.length;o<c;){var l=_(t,o++);if(l>=55296&&l<=56319&&o<c){var u=_(t,o++);if(56320==(64512&u))k(r,((1023&l)<<10)+(1023&u)+65536);else{k(r,l);o--}}else k(r,l)}return r}(t);var o,c,u=t.length,h=128,g=0,S=72;for(o=0;o<t.length;o++)(c=t[o])<128&&k(r,m(c));var C=r.length,x=C;C&&k(r,"-");for(;x<u;){var O=l;for(o=0;o<t.length;o++)(c=t[o])>=h&&c<O&&(O=c);var T=x+1;if(O-h>v((l-g)/T))throw y(d);g+=(O-h)*T;h=O;for(o=0;o<t.length;o++){if((c=t[o])<h&&++g>l)throw y(d);if(c===h){for(var E=g,R=36;;){var M=R<=S?1:R>=S+26?26:R-S;if(E<M)break;var j=E-M,L=36-M;k(r,m(digitToBasic(M+j%L)));E=v(j/L);R+=36}k(r,m(digitToBasic(E)));S=adapt(g,T,x===C);g=0;x++}}g++;h++}return w(r,"")};t.exports=function(t){var r,o,c=[],l=C(S(x(t),h,"."),".");for(r=0;r<l.length;r++){o=l[r];k(c,g(u,o)?"xn--"+encode(o):o)}return w(c,".")}},(t,r,o)=>{o(137);var c=o(58),l=o(5),u=o(35),h=o(7),d=o(25),y=o(319),g=o(44),v=o(87),m=o(197),_=o(88),w=o(140),k=o(48),S=o(149),C=o(29),x=o(6),O=o(90),T=o(78),E=o(32),R=o(28),M=o(77),j=o(80),L=o(51),D=o(120),N=o(121),U=o(153),G=o(14),$=o(241),H=G("iterator"),X="URLSearchParams",q=X+"Iterator",z=k.set,W=k.getterFor(X),V=k.getterFor(q),K=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(t){if(!d)return l[t];var r=K(l,t);return r&&r.value},Y=safeGetBuiltIn("fetch"),J=safeGetBuiltIn("Request"),Z=safeGetBuiltIn("Headers"),Q=J&&J.prototype,ee=Z&&Z.prototype,te=l.RegExp,re=l.TypeError,ne=l.decodeURIComponent,ae=l.encodeURIComponent,ie=h("".charAt),oe=h([].join),se=h([].push),ce=h("".replace),le=h([].shift),ue=h([].splice),fe=h("".split),he=h("".slice),pe=/\+/g,de=Array(4),percentSequence=function(t){return de[t-1]||(de[t-1]=te("((?:%[\\da-f]{2}){"+t+"})","gi"))},percentDecode=function(t){try{return ne(t)}catch(r){return t}},deserialize=function(t){var r=ce(t,pe," "),o=4;try{return ne(r)}catch(t){for(;o;)r=ce(r,percentSequence(o--),percentDecode);return r}},ye=/[!'()~]|%20/g,ge={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(t){return ge[t]},serialize=function(t){return ce(ae(t),ye,replacer)},ve=w((function Iterator(t,r){z(this,{type:q,iterator:D(W(t).entries),kind:r})}),"Iterator",(function next(){var t=V(this),r=t.kind,o=t.iterator.next(),c=o.value;o.done||(o.value="keys"===r?c.key:"values"===r?c.value:[c.key,c.value]);return o}),!0),URLSearchParamsState=function(t){this.entries=[];this.url=null;void 0!==t&&(R(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===ie(t,0)?he(t,1):t:M(t)))};URLSearchParamsState.prototype={type:X,bindURL:function(t){this.url=t;this.update()},parseObject:function(t){var r,o,c,l,h,d,y,g=N(t);if(g){o=(r=D(t,g)).next;for(;!(c=u(o,r)).done;){h=(l=D(E(c.value))).next;if((d=u(h,l)).done||(y=u(h,l)).done||!u(h,l).done)throw re("Expected sequence with length 2");se(this.entries,{key:M(d.value),value:M(y.value)})}}else for(var v in t)x(t,v)&&se(this.entries,{key:v,value:M(t[v])})},parseQuery:function(t){if(t)for(var r,o,c=fe(t,"&"),l=0;l<c.length;)if((r=c[l++]).length){o=fe(r,"=");se(this.entries,{key:deserialize(le(o)),value:deserialize(oe(o,"="))})}},serialize:function(){for(var t,r=this.entries,o=[],c=0;c<r.length;){t=r[c++];se(o,serialize(t.key)+"="+serialize(t.value))}return oe(o,"&")},update:function(){this.entries.length=0;this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var me=function URLSearchParams(){S(this,be);var t=z(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));d||(this.size=t.entries.length)},be=me.prototype;m(be,{append:function append(t,r){var o=W(this);U(arguments.length,2);se(o.entries,{key:M(t),value:M(r)});d||this.length++;o.updateURL()},delete:function(t){for(var r=W(this),o=U(arguments.length,1),c=r.entries,l=M(t),u=o<2?void 0:arguments[1],h=void 0===u?u:M(u),y=0;y<c.length;){var g=c[y];if(g.key!==l||void 0!==h&&g.value!==h)y++;else{ue(c,y,1);if(void 0!==h)break}}d||(this.size=c.length);r.updateURL()},get:function get(t){var r=W(this).entries;U(arguments.length,1);for(var o=M(t),c=0;c<r.length;c++)if(r[c].key===o)return r[c].value;return null},getAll:function getAll(t){var r=W(this).entries;U(arguments.length,1);for(var o=M(t),c=[],l=0;l<r.length;l++)r[l].key===o&&se(c,r[l].value);return c},has:function has(t){for(var r=W(this).entries,o=U(arguments.length,1),c=M(t),l=o<2?void 0:arguments[1],u=void 0===l?l:M(l),h=0;h<r.length;){var d=r[h++];if(d.key===c&&(void 0===u||d.value===u))return!0}return!1},set:function set(t,r){var o=W(this);U(arguments.length,1);for(var c,l=o.entries,u=!1,h=M(t),y=M(r),g=0;g<l.length;g++)if((c=l[g]).key===h)if(u)ue(l,g--,1);else{u=!0;c.value=y}u||se(l,{key:h,value:y});d||(this.size=l.length);o.updateURL()},sort:function sort(){var t=W(this);$(t.entries,(function(t,r){return t.key>r.key?1:-1}));t.updateURL()},forEach:function forEach(t){for(var r,o=W(this).entries,c=O(t,arguments.length>1?arguments[1]:void 0),l=0;l<o.length;)c((r=o[l++]).value,r.key,this)},keys:function keys(){return new ve(this,"keys")},values:function values(){return new ve(this,"values")},entries:function entries(){return new ve(this,"entries")}},{enumerable:!0});g(be,H,be.entries,{name:"entries"});g(be,"toString",(function toString(){return W(this).serialize()}),{enumerable:!0});d&&v(be,"size",{get:function size(){return W(this).entries.length},configurable:!0,enumerable:!0});_(me,X);c({global:!0,constructor:!0,forced:!y},{URLSearchParams:me});if(!y&&C(Z)){var _e=h(ee.has),we=h(ee.set),wrapRequestOptions=function(t){if(R(t)){var r,o=t.body;if(T(o)===X){r=t.headers?new Z(t.headers):new Z;_e(r,"content-type")||we(r,"content-type","application/x-www-form-urlencoded;charset=UTF-8");return j(t,{body:L(0,M(o)),headers:L(0,r)})}}return t};C(Y)&&c({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function fetch(t){return Y(t,arguments.length>1?wrapRequestOptions(arguments[1]):{})}});if(C(J)){var ke=function Request(t){S(this,Q);return new J(t,arguments.length>1?wrapRequestOptions(arguments[1]):{})};Q.constructor=ke;ke.prototype=Q;c({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ke})}}t.exports={URLSearchParams:me,getState:W}},(t,r,o)=>{o(322)},(t,r,o)=>{var c=o(44),l=o(7),u=o(77),h=o(153),d=URLSearchParams,y=d.prototype,g=l(y.append),v=l(y.delete),m=l(y.forEach),_=l([].push),w=new d("a=1&a=2&b=3");w.delete("a",1);w.delete("b",void 0);w+""!="a=2"&&c(y,"delete",(function(t){var r=arguments.length,o=r<2?void 0:arguments[1];if(r&&void 0===o)return v(this,t);var c=[];m(this,(function(t,r){_(c,{key:r,value:t})}));h(r,1);for(var l,d=u(t),y=u(o),w=0,k=0,S=!1,C=c.length;w<C;){l=c[w++];if(S||l.key===d){S=!0;v(this,l.key)}else k++}for(;k<C;)(l=c[k++]).key===d&&l.value===y||g(this,l.key,l.value)}),{enumerable:!0,unsafe:!0})},(t,r,o)=>{var c=o(44),l=o(7),u=o(77),h=o(153),d=URLSearchParams,y=d.prototype,g=l(y.getAll),v=l(y.has),m=new d("a=1");!m.has("a",2)&&m.has("a",void 0)||c(y,"has",(function has(t){var r=arguments.length,o=r<2?void 0:arguments[1];if(r&&void 0===o)return v(this,t);var c=g(this,t);h(r,1);for(var l=u(o),d=0;d<c.length;)if(c[d++]===l)return!0;return!1}),{enumerable:!0,unsafe:!0})},(t,r,o)=>{var c=o(25),l=o(7),u=o(87),h=URLSearchParams.prototype,d=l(h.forEach);c&&!("size"in h)&&u(h,"size",{get:function size(){var t=0;d(this,(function(){t++}));return t},configurable:!0,enumerable:!0})},(t,r,o)=>{var c=o(58),l=o(10),u=o(82);c({target:"Object",stat:!0,forced:o(9)((function(){u(1)}))},{keys:function keys(t){return u(l(t))}})},(t,r,o)=>{o(192)("Uint32",(function(t){return function Uint32Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{var c=o(58),l=o(68).includes,u=o(9),h=o(138);c({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function includes(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}});h("includes")},(t,r,o)=>{var c=o(58),l=o(7),u=o(310),h=o(11),d=o(77),y=o(312),g=l("".indexOf);c({target:"String",proto:!0,forced:!y("includes")},{includes:function includes(t){return!!~g(d(h(this)),d(u(t)),arguments.length>1?arguments[1]:void 0)}})},(t,r,o)=>{var c=o(58),l=o(332).start;c({target:"String",proto:!0,forced:o(334)},{padStart:function padStart(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,o)=>{var c=o(7),l=o(73),u=o(77),h=o(333),d=o(11),y=c(h),g=c("".slice),v=Math.ceil,createMethod=function(t){return function(r,o,c){var h,m,_=u(d(r)),w=l(o),k=_.length,S=void 0===c?" ":u(c);if(w<=k||""===S)return _;(m=y(S,v((h=w-k)/S.length))).length>h&&(m=g(m,0,h));return t?_+m:m+_}};t.exports={start:createMethod(!1),end:createMethod(!0)}},(t,r,o)=>{var c=o(70),l=o(77),u=o(11),h=RangeError;t.exports=function repeat(t){var r=l(u(this)),o="",d=c(t);if(d<0||d===1/0)throw h("Wrong number of repetitions");for(;d>0;(d>>>=1)&&(r+=r))1&d&&(o+=r);return o}},(t,r,o)=>{var c=o(22);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(c)},(t,r,o)=>{o(336)},(t,r,o)=>{o(261)("Map",(function(t){return function Map(){return t(this,arguments.length?arguments[0]:void 0)}}),o(266))},(t,r,o)=>{var c=o(100),l=o(35),u=o(7),h=o(314),d=o(9),y=o(32),g=o(29),v=o(12),m=o(70),_=o(73),w=o(77),k=o(11),S=o(315),C=o(39),x=o(338),O=o(316),T=o(14)("replace"),E=Math.max,R=Math.min,M=u([].concat),j=u([].push),L=u("".indexOf),D=u("".slice),N="$0"==="a".replace(/./,"$0"),U=!!/./[T]&&""===/./[T]("a","$0");h("replace",(function(t,r,o){var u=U?"$":"$0";return[function replace(t,o){var c=k(this),u=v(t)?void 0:C(t,T);return u?l(u,t,c,o):l(r,w(c),t,o)},function(t,l){var h=y(this),d=w(t);if("string"==typeof l&&-1===L(l,u)&&-1===L(l,"$<")){var v=o(r,h,d,l);if(v.done)return v.value}var k=g(l);k||(l=w(l));var C,T=h.global;if(T){C=h.unicode;h.lastIndex=0}for(var N,U=[];null!==(N=O(h,d));){j(U,N);if(!T)break;""===w(N[0])&&(h.lastIndex=S(d,_(h.lastIndex),C))}for(var G,$="",H=0,X=0;X<U.length;X++){for(var q,z=w((N=U[X])[0]),W=E(R(m(N.index),d.length),0),V=[],K=1;K<N.length;K++)j(V,void 0===(G=N[K])?G:String(G));var Y=N.groups;if(k){var J=M([z],V,W,d);void 0!==Y&&j(J,Y);q=w(c(l,void 0,J))}else q=x(z,d,W,V,Y,l);if(W>=H){$+=D(d,H,W)+q;H=W+z.length}}return $+D(d,H)}]}),!!d((function(){var t=/./;t.exec=function(){var t=[];t.groups={a:"7"};return t};return"7"!=="".replace(t,"$<a>")}))||!N||U)},(t,r,o)=>{var c=o(7),l=o(10),u=Math.floor,h=c("".charAt),d=c("".replace),y=c("".slice),g=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,o,c,m,_){var w=o+t.length,k=c.length,S=v;if(void 0!==m){m=l(m);S=g}return d(_,S,(function(l,d){var g;switch(h(d,0)){case"$":return"$";case"&":return t;case"`":return y(r,0,o);case"'":return y(r,w);case"<":g=m[y(d,1,-1)];break;default:var v=+d;if(0===v)return l;if(v>k){var _=u(v/10);return 0===_?l:_<=k?void 0===c[_-1]?h(d,1):c[_-1]+h(d,1):l}g=c[v-1]}return void 0===g?"":g}))}},(t,r,o)=>{var c=o(58),l=o(35),u=o(7),h=o(11),d=o(29),y=o(12),g=o(311),v=o(77),m=o(39),_=o(294),w=o(338),k=o(14),S=o(16),C=k("replace"),x=TypeError,O=u("".indexOf),T=u("".replace),E=u("".slice),R=Math.max,stringIndexOf=function(t,r,o){return o>t.length?-1:""===r?o:O(t,r,o)};c({target:"String",proto:!0},{replaceAll:function replaceAll(t,r){var o,c,u,k,M,j,L,D,N,U=h(this),G=0,$=0,H="";if(!y(t)){if(o=g(t)){c=v(h(_(t)));if(!~O(c,"g"))throw x("`.replaceAll` does not allow non-global regexes")}if(u=m(t,C))return l(u,t,U,r);if(S&&o)return T(v(U),t,r)}k=v(U);M=v(t);(j=d(r))||(r=v(r));L=M.length;D=R(1,L);G=stringIndexOf(k,M,0);for(;-1!==G;){N=j?v(r(M,G,k)):w(M,k,G,[],void 0,r);H+=E(k,$,G)+N;$=G+L;G=stringIndexOf(k,M,G+D)}$<k.length&&(H+=E(k,$));return H}})},(t,r,o)=>{o(341)},(t,r,o)=>{var c,l=o(265),u=o(5),h=o(7),d=o(197),y=o(262),g=o(261),v=o(342),m=o(28),_=o(48).enforce,w=o(9),k=o(49),S=Object,C=Array.isArray,x=S.isExtensible,O=S.isFrozen,T=S.isSealed,E=S.freeze,R=S.seal,M={},j={},L=!u.ActiveXObject&&"ActiveXObject"in u,wrapper=function(t){return function WeakMap(){return t(this,arguments.length?arguments[0]:void 0)}},D=g("WeakMap",wrapper,v),N=D.prototype,U=h(N.set);if(k)if(L){c=v.getConstructor(wrapper,"WeakMap",!0);y.enable();var G=h(N.delete),$=h(N.has),H=h(N.get);d(N,{delete:function(t){if(m(t)&&!x(t)){var r=_(this);r.frozen||(r.frozen=new c);return G(this,t)||r.frozen.delete(t)}return G(this,t)},has:function has(t){if(m(t)&&!x(t)){var r=_(this);r.frozen||(r.frozen=new c);return $(this,t)||r.frozen.has(t)}return $(this,t)},get:function get(t){if(m(t)&&!x(t)){var r=_(this);r.frozen||(r.frozen=new c);return $(this,t)?H(this,t):r.frozen.get(t)}return H(this,t)},set:function set(t,r){if(m(t)&&!x(t)){var o=_(this);o.frozen||(o.frozen=new c);$(this,t)?U(this,t,r):o.frozen.set(t,r)}else U(this,t,r);return this}})}else l&&w((function(){var t=E([]);U(new D,t,1);return!O(t)}))&&d(N,{set:function set(t,r){var o;C(t)&&(O(t)?o=M:T(t)&&(o=j));U(this,t,r);o===M&&E(t);o===j&&R(t);return this}})},(t,r,o)=>{var c=o(7),l=o(197),u=o(262).getWeakData,h=o(149),d=o(32),y=o(12),g=o(28),v=o(167),m=o(89),_=o(6),w=o(48),k=w.set,S=w.getterFor,C=m.find,x=m.findIndex,O=c([].splice),T=0,uncaughtFrozenStore=function(t){return t.frozen||(t.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(t,r){return C(t.entries,(function(t){return t[0]===r}))};UncaughtFrozenStore.prototype={get:function(t){var r=findUncaughtFrozen(this,t);if(r)return r[1]},has:function(t){return!!findUncaughtFrozen(this,t)},set:function(t,r){var o=findUncaughtFrozen(this,t);o?o[1]=r:this.entries.push([t,r])},delete:function(t){var r=x(this.entries,(function(r){return r[0]===t}));~r&&O(this.entries,r,1);return!!~r}};t.exports={getConstructor:function(t,r,o,c){var m=t((function(t,l){h(t,w);k(t,{type:r,id:T++,frozen:void 0});y(l)||v(l,t[c],{that:t,AS_ENTRIES:o})})),w=m.prototype,C=S(r),define=function(t,r,o){var c=C(t),l=u(d(r),!0);!0===l?uncaughtFrozenStore(c).set(r,o):l[c.id]=o;return t};l(w,{delete:function(t){var r=C(this);if(!g(t))return!1;var o=u(t);return!0===o?uncaughtFrozenStore(r).delete(t):o&&_(o,r.id)&&delete o[r.id]},has:function has(t){var r=C(this);if(!g(t))return!1;var o=u(t);return!0===o?uncaughtFrozenStore(r).has(t):o&&_(o,r.id)}});l(w,o?{get:function get(t){var r=C(this);if(g(t)){var o=u(t);return!0===o?uncaughtFrozenStore(r).get(t):o?o[r.id]:void 0}},set:function set(t,r){return define(this,t,r)}}:{add:function add(t){return define(this,t,!0)}});return m}}},(t,r,o)=>{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)}o(305);o(306);o(2);o(54);o(56);o(104);o(114);o(113);Object.defineProperty(r,"__esModule",{value:!0});r.XRefParseException=r.XRefEntryException=r.ParserEOFException=r.PDF_VERSION_REGEXP=r.MissingDataException=void 0;r.arrayBuffersToBytes=function arrayBuffersToBytes(t){var r=t.length;if(0===r)return new Uint8Array(0);if(1===r)return new Uint8Array(t[0]);for(var o=0,c=0;c<r;c++)o+=t[c].byteLength;for(var l=new Uint8Array(o),u=0,h=0;h<r;h++){var d=new Uint8Array(t[h]);l.set(d,u);u+=d.byteLength}return l};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 y=h[d];if(y instanceof l.Dict){var g,v=_createForOfIteratorHelper(y.getKeys());try{for(v.s();!(g=v.n()).done;){var m=g.value,_=o[m];if(_){var w=y.getRaw(m),k=new l.RefSet,S=[];_collectJS(w,t,S,k);S.length>0&&(u[_]=S)}}}catch(t){v.e(t)}finally{v.f()}}}if(r.has("A")){var C=[];_collectJS(r.get("A"),t,C,new l.RefSet);C.length>0&&(u.Action=C)}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=m[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.escapeString=function escapeString(t){return t.replaceAll(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};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.getNewAnnotationsMap=function getNewAnnotationsMap(t){if(!t)return null;var r,o=new Map,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var u=(g=r.value,v=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(g)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(g,v)||_unsupportedIterableToArray(g,v)||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.")}()),h=u[0],d=u[1];if(h.startsWith(c.AnnotationEditorPrefix)){var y=o.get(d.pageIndex);if(!y){y=[];o.set(d.pageIndex,y)}y.push(d)}}}catch(t){l.e(t)}finally{l.f()}var g,v;return o.size>0?o:null};r.getRotationMatrix=function getRotationMatrix(t,r,o){switch(t){case 90:return[0,1,-1,0,r,0];case 180:return[-1,0,0,-1,r,o];case 270:return[0,-1,1,0,0,o];default:throw new Error("Invalid rotation")}};r.isAscii=function isAscii(t){return/^[\x00-\x7F]*$/.test(t)};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.numberToString=function numberToString(t){if(Number.isInteger(t))return t.toString();var r=Math.round(100*t);if(r%100==0)return(r/100).toString();if(r%10==0)return t.toFixed(1);return t.toFixed(2)};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("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(t);if(null!=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.stringToUTF16HexString=function stringToUTF16HexString(t){for(var r=[],o=0,c=t.length;o<c;o++){var l=t.charCodeAt(o);r.push((l>>8&255).toString(16).padStart(2,"0"),(255&l).toString(16).padStart(2,"0"))}return r.join("")};r.stringToUTF16String=function stringToUTF16String(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];r&&o.push("þÿ");for(var c=0,l=t.length;c<l;c++){var u=t.charCodeAt(c);o.push(String.fromCharCode(u>>8&255),String.fromCharCode(255&u))}return o.join("")};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,c=t.fontWeight,l=t.italicAngle;if(!validateFontName(o,!0))return!1;var u=c?c.toString():"";t.fontWeight=r.has(u)?u:"400";var h=parseFloat(l);t.italicAngle=isNaN(h)||h<-90||h>90?"14":l.toString();return!0};r.validateFontName=validateFontName;o(302);o(134);o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(290);o(105);o(344);o(180);o(123);o(313);o(293);o(337);o(339);o(345);o(346);o(347);o(348);o(129);o(296);o(349);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(335);o(309);o(331);o(183);var c=o(304),l=o(350),u=o(354);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}r.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;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 y=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=y;var g=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=g;function getInheritableProperty(t){for(var r,o=t.dict,c=t.key,u=t.getArray,h=void 0!==u&&u,d=t.stopWhenFound,y=void 0===d||d,g=new l.RefSet;o instanceof l.Dict&&(!o.objId||!g.has(o.objId));){o.objId&&g.put(o.objId);var v=h?o.getArray(c):o.get(c);if(void 0!==v){if(y)return v;(r||(r=[])).push(v)}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 y,g=_createForOfIteratorHelper(t);try{for(g.s();!(y=g.n()).done;){_collectJS(y.value,r,o,h)}}catch(t){g.e(t)}finally{g.f()}}else if(t instanceof l.Dict){if((0,l.isName)(t.get("S"),"JavaScript")){var v,m=t.get("JS");m instanceof u.BaseStream?v=m.getString():"string"==typeof m&&(v=m);v&&(v=(0,c.stringToPDFString)(v).replaceAll("\0",""));v&&o.push(v)}_collectJS(t.getRaw("Next"),r,o,h)}d&&h.remove(d)}}var m={60:"<",62:">",38:"&",34:""",39:"'"};function validateFontName(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=/^("|').*("|')$/.exec(t);if(o&&o[1]===o[2]){if(new RegExp("[^\\\\]".concat(o[1])).test(t.slice(1,-1))){r&&(0,c.warn)("FontFamily contains unescaped ".concat(o[1],": ").concat(t,"."));return!1}}else{var l,u=_createForOfIteratorHelper(t.split(/[ \t]+/));try{for(u.s();!(l=u.n()).done;){var h=l.value;if(/^(\d|(-(\d|-)))/.test(h)||!/^[\w-\\]+$/.test(h)){r&&(0,c.warn)("FontFamily contains invalid <custom-ident>: ".concat(t,"."));return!1}}}catch(t){u.e(t)}finally{u.f()}}return!0}},(t,r,o)=>{var c=o(58),l=Math.log,u=Math.LN2;c({target:"Math",stat:!0},{log2:function log2(t){return l(t)/u}})},(t,r,o)=>{var c=o(58),l=o(176).codeAt;c({target:"String",proto:!0},{codePointAt:function codePointAt(t){return l(this,t)}})},(t,r,o)=>{var c=o(25),l=o(5),u=o(7),h=o(76),d=o(106),y=o(50),g=o(66).f,v=o(38),m=o(311),_=o(77),w=o(294),k=o(126),S=o(185),C=o(44),x=o(9),O=o(6),T=o(48).enforce,E=o(148),R=o(14),M=o(127),j=o(128),L=R("match"),D=l.RegExp,N=D.prototype,U=l.SyntaxError,G=u(N.exec),$=u("".charAt),H=u("".replace),X=u("".indexOf),q=u("".slice),z=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,W=/a/g,V=/a/g,K=new D(W)!==W,Y=k.MISSED_STICKY,J=k.UNSUPPORTED_Y,Z=c&&(!K||Y||M||j||x((function(){V[L]=!1;return D(W)!==W||D(V)===V||"/a/i"!==String(D(W,"i"))})));if(h("RegExp",Z)){for(var Q=function RegExp(t,r){var o,c,l,u,h,g,k=v(N,this),S=m(t),C=void 0===r,x=[],E=t;if(!k&&S&&C&&t.constructor===Q)return t;if(S||v(N,t)){t=t.source;C&&(r=w(E))}t=void 0===t?"":_(t);r=void 0===r?"":_(r);E=t;M&&"dotAll"in W&&(c=!!r&&X(r,"s")>-1)&&(r=H(r,/s/g,""));o=r;Y&&"sticky"in W&&(l=!!r&&X(r,"y")>-1)&&J&&(r=H(r,/y/g,""));if(j){u=function(t){for(var r,o=t.length,c=0,l="",u=[],h={},d=!1,y=!1,g=0,v="";c<=o;c++){if("\\"===(r=$(t,c)))r+=$(t,++c);else if("]"===r)d=!1;else if(!d)switch(!0){case"["===r:d=!0;break;case"("===r:if(G(z,q(t,c+1))){c+=2;y=!0}l+=r;g++;continue;case">"===r&&y:if(""===v||O(h,v))throw new U("Invalid capture group name");h[v]=!0;u[u.length]=[v,g];y=!1;v="";continue}y?v+=r:l+=r}return[l,u]}(t);t=u[0];x=u[1]}h=d(D(t,r),k?this:N,Q);if(c||l||x.length){g=T(h);if(c){g.dotAll=!0;g.raw=Q(function(t){for(var r,o=t.length,c=0,l="",u=!1;c<=o;c++)if("\\"!==(r=$(t,c)))if(u||"."!==r){"["===r?u=!0:"]"===r&&(u=!1);l+=r}else l+="[\\s\\S]";else l+=r+$(t,++c);return l}(t),o)}l&&(g.sticky=!0);x.length&&(g.groups=x)}if(t!==E)try{y(h,"source",""===E?"(?:)":E)}catch(t){}return h},ee=g(D),te=0;ee.length>te;)S(Q,D,ee[te++]);N.constructor=Q;Q.prototype=N;C(l,"RegExp",Q,{constructor:!0})}E("RegExp")},(t,r,o)=>{var c=o(25),l=o(127),u=o(63),h=o(87),d=o(48).get,y=RegExp.prototype,g=TypeError;c&&l&&h(y,"dotAll",{configurable:!0,get:function dotAll(){if(this!==y){if("RegExp"===u(this))return!!d(this).dotAll;throw g("Incompatible receiver, RegExp required")}}})},(t,r,o)=>{var c=o(25),l=o(126).MISSED_STICKY,u=o(63),h=o(87),d=o(48).get,y=RegExp.prototype,g=TypeError;c&&l&&h(y,"sticky",{configurable:!0,get:function sticky(){if(this!==y){if("RegExp"===u(this))return!!d(this).sticky;throw g("Incompatible receiver, RegExp required")}}})},(t,r,o)=>{var c=o(100),l=o(35),u=o(7),h=o(314),d=o(32),y=o(12),g=o(311),v=o(11),m=o(150),_=o(315),w=o(73),k=o(77),S=o(39),C=o(85),x=o(316),O=o(124),T=o(126),E=o(9),R=T.UNSUPPORTED_Y,M=4294967295,j=Math.min,L=[].push,D=u(/./.exec),N=u(L),U=u("".slice);h("split",(function(t,r,o){var u;u="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,o){var u=k(v(this)),h=void 0===o?M:o>>>0;if(0===h)return[];if(void 0===t)return[u];if(!g(t))return l(r,u,t,h);for(var d,y,m,_=[],w=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),S=0,x=new RegExp(t.source,w+"g");d=l(O,x,u);){if((y=x.lastIndex)>S){N(_,U(u,S,d.index));d.length>1&&d.index<u.length&&c(L,_,C(d,1));m=d[0].length;S=y;if(_.length>=h)break}x.lastIndex===d.index&&x.lastIndex++}S===u.length?!m&&D(x,"")||N(_,""):N(_,U(u,S));return _.length>h?C(_,0,h):_}:"0".split(void 0,0).length?function(t,o){return void 0===t&&0===o?[]:l(r,this,t,o)}:r;return[function split(r,o){var c=v(this),h=y(r)?void 0:S(r,t);return h?l(h,r,c,o):l(u,k(c),r,o)},function(t,c){var l=d(this),h=k(t),y=o(u,l,h,c,u!==r);if(y.done)return y.value;var g=m(l,RegExp),v=l.unicode,S=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(R?"g":"y"),C=new g(R?"^(?:"+l.source+")":l,S),O=void 0===c?M:c>>>0;if(0===O)return[];if(0===h.length)return null===x(C,h)?[h]:[];for(var T=0,E=0,L=[];E<h.length;){C.lastIndex=R?0:E;var D,G=x(C,R?U(h,E):h);if(null===G||(D=j(w(C.lastIndex+(R?E:0)),h.length))===T)E=_(h,E,v);else{N(L,U(h,T,E));if(L.length===O)return L;for(var $=1;$<=G.length-1;$++){N(L,G[$]);if(L.length===O)return L}E=T=D}}N(L,U(h,T));return L}]}),!!E((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var o="ab".split(t);return 2!==o.length||"a"!==o[0]||"b"!==o[1]})),R)},(t,r,o)=>{o(2);o(54);o(183);o(105);o(145);o(130);o(131);o(132);o(133);o(134);o(300);o(114);o(129);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.RefSetCache=r.RefSet=r.Ref=r.Name=r.EOF=r.Dict=r.Cmd=r.CIRCULAR_REF=void 0;r.clearPrimitiveCaches=function clearPrimitiveCaches(){h=Object.create(null);d=Object.create(null);y=Object.create(null)};r.isCmd=function isCmd(t,r){return t instanceof v&&(void 0===r||t.cmd===r)};r.isDict=function isDict(t,r){return t instanceof _&&(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};o(56);o(104);o(143);o(327);o(296);o(351);o(137);o(335);o(175);o(177);o(353);o(290);o(302);o(123);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(293);o(113);var c=o(304);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var l=Symbol("CIRCULAR_REF");r.CIRCULAR_REF=l;var u=Symbol("EOF");r.EOF=u;var h=Object.create(null),d=Object.create(null),y=Object.create(null);var g=function(){function Name(t){_classCallCheck(this,Name);this.name=t}_createClass(Name,null,[{key:"get",value:function get(t){var r;return(r=d)[t]||(r[t]=new Name(t))}}]);return Name}();r.Name=g;var v=function(){function Cmd(t){_classCallCheck(this,Cmd);this.cmd=t}_createClass(Cmd,null,[{key:"get",value:function get(t){var r;return(r=h)[t]||(r[t]=new Cmd(t))}}]);return Cmd}();r.Cmd=v;var m=function nonSerializableClosure(){return m},_=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 w&&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)}))}}(_regeneratorRuntime().mark((function _callee(t,r,o){var c;return _regeneratorRuntime().wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:void 0===(c=this._map[t])&&void 0!==r&&void 0===(c=this._map[r])&&void 0!==o&&(c=this._map[o]);if(!(c instanceof w&&this.xref)){l.next=4;break}return l.abrupt("return",this.xref.fetchAsync(c,this.suppressEncryption));case 4:return l.abrupt("return",c);case 5:case"end":return l.stop()}}),_callee,this)}))),function getAsync(r,o,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 w&&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 w&&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,c.unreachable)("Should not call `set` on the empty dictionary.")};return(0,c.shadow)(this,"empty",t)}},{key:"merge",value:function merge(t){var r,o=t.xref,c=t.dictArray,l=t.mergeSubDicts,u=void 0!==l&&l,h=new Dict(o),d=new Map,y=_createForOfIteratorHelper(c);try{for(y.s();!(r=y.n()).done;){var g=r.value;if(g instanceof Dict)for(var v=0,m=Object.entries(g._map);v<m.length;v++){var _=_slicedToArray(m[v],2),w=_[0],k=_[1],S=d.get(w);if(void 0===S){S=[];d.set(w,S)}else if(!(u&&k instanceof Dict))continue;S.push(k)}}}catch(t){y.e(t)}finally{y.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 R,M=new Dict(o),j=_createForOfIteratorHelper(E);try{for(j.s();!(R=j.n()).done;)for(var L=R.value,D=0,N=Object.entries(L._map);D<N.length;D++){var U=_slicedToArray(N[D],2),G=U[0],$=U[1];void 0===M._map[G]&&(M._map[G]=$)}}catch(t){j.e(t)}finally{j.f()}M.size>0&&(h._map[T]=M)}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=_;var w=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:"fromString",value:function fromString(t){var r=y[t];if(r)return r;var o=/^(\d+)R(\d*)$/.exec(t);return o&&"0"!==o[1]?y[t]=new Ref(parseInt(o[1]),o[2]?parseInt(o[2]):0):null}},{key:"get",value:function get(t,r){var o,c=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r);return(o=y)[c]||(o[c]=new Ref(t,r))}}]);return Ref}();r.Ref=w;var k=function(t){function RefSet(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,RefSet);this._set=new Set(null==t?void 0: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:Symbol.iterator,value:function value(){return this._set.values()}},{key:"clear",value:function clear(){this._set.clear()}}]);return RefSet}();r.RefSet=k;var S=function(t){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:Symbol.iterator,value:function value(){return this._map.values()}},{key:"clear",value:function clear(){this._map.clear()}}]);return RefSetCache}();r.RefSetCache=S;function isName(t,r){return t instanceof g&&(void 0===r||t.name===r)}},(t,r,o)=>{var c=o(58),l=o(352).values;c({target:"Object",stat:!0},{values:function values(t){return l(t)}})},(t,r,o)=>{var c=o(25),l=o(9),u=o(7),h=o(135),d=o(82),y=o(61),g=u(o(60).f),v=u([].push),m=c&&l((function(){var t=Object.create(null);t[2]=2;return!g(t,2)})),createMethod=function(t){return function(r){for(var o,l=y(r),u=d(l),_=m&&null===h(l),w=u.length,k=0,S=[];w>k;){o=u[k++];c&&!(_?o in l:g(l,o))||v(S,t?[o,l[o]]:l[o])}return S}};t.exports={entries:createMethod(!0),values:createMethod(!1)}},(t,r,o)=>{var c=o(58),l=o(352).entries;c({target:"Object",stat:!0},{entries:function entries(t){return l(t)}})},(t,r,o)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.BaseStream=void 0;o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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=this.getBytes(t);this.pos-=r.length;return r}},{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))}},{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)=>{o(113);o(137);o(175);o(177);o(130);o(131);o(132);o(133);o(134);o(290);o(300);o(296);o(305);o(306);Object.defineProperty(r,"__esModule",{value:!0});r.NetworkPdfManager=r.LocalPdfManager=void 0;o(2);o(54);o(56);o(104);o(143);o(183);o(105);o(145);var c=o(304),l=o(356),u=o(343),h=o(359),d=o(358);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?Object.setPrototypeOf.bind():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 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)}(this,o)}}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.bind():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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var y=function(){function BasePdfManager(t){var r;_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&(0,c.unreachable)("Cannot initialize BasePdfManager.");this._docBaseUrl=function parseDocBaseUrl(t){if(t){var r=(0,c.createValidAbsoluteUrl)(t);if(r)return r.href;(0,c.warn)('Invalid absolute docBaseUrl: "'.concat(t,'".'))}return null}(t.docBaseUrl);this._docId=t.docId;this._password=t.password;this.enableXfa=t.enableXfa;(r=t.evaluatorOptions).isOffscreenCanvasSupported&&(r.isOffscreenCanvasSupported=c.FeatureTest.isOffscreenCanvasSupported);this.evaluatorOptions=t.evaluatorOptions}_createClass(BasePdfManager,[{key:"docId",get:function get(){return this._docId}},{key:"password",get:function get(){return this._password}},{key:"docBaseUrl",get:function get(){var t=this.pdfDocument.catalog;return(0,c.shadow)(this,"docBaseUrl",t.baseUrl||this._docBaseUrl)}},{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(_regeneratorRuntime().mark((function _callee(t,r,o){return _regeneratorRuntime().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:(0,c.unreachable)("Abstract method `ensure` called");case 1:case"end":return t.stop()}}),_callee)}))),function ensure(r,o,c){return t.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){(0,c.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function requestLoadedStream(){(0,c.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function sendProgressiveData(t){(0,c.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function updatePassword(t){this._password=t}},{key:"terminate",value:function terminate(t){(0,c.unreachable)("Abstract method `terminate` called")}}]);var t;return BasePdfManager}(),g=function(t){_inherits(LocalPdfManager,t);var r,o=_createSuper(LocalPdfManager);function LocalPdfManager(t){var r;_classCallCheck(this,LocalPdfManager);r=o.call(this,t);var c=new d.Stream(t.source);r.pdfDocument=new h.PDFDocument(_assertThisInitialized(r),c);r._loadedStreamPromise=Promise.resolve(c);return r}_createClass(LocalPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t,r,o){var c;return _regeneratorRuntime().wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if("function"!=typeof(c=t[r])){l.next=3;break}return l.abrupt("return",c.apply(t,o));case 3:return l.abrupt("return",c);case 4:case"end":return l.stop()}}),_callee2)}))),function ensure(t,o,c){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return Promise.resolve()}},{key:"requestLoadedStream",value:function requestLoadedStream(){return this._loadedStreamPromise}},{key:"terminate",value:function terminate(t){}}]);return LocalPdfManager}(y);r.LocalPdfManager=g;var v=function(t){_inherits(NetworkPdfManager,t);var r,o=_createSuper(NetworkPdfManager);function NetworkPdfManager(t){var r;_classCallCheck(this,NetworkPdfManager);(r=o.call(this,t)).streamManager=new l.ChunkedStreamManager(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize});r.pdfDocument=new h.PDFDocument(_assertThisInitialized(r),r.streamManager.getStream());return r}_createClass(NetworkPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t,r,o){var c;return _regeneratorRuntime().wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:l.prev=0;if("function"!=typeof(c=t[r])){l.next=4;break}return l.abrupt("return",c.apply(t,o));case 4:return l.abrupt("return",c);case 7:l.prev=7;l.t0=l.catch(0);if(l.t0 instanceof u.MissingDataException){l.next=11;break}throw l.t0;case 11:l.next=13;return this.requestRange(l.t0.begin,l.t0.end);case 13:return l.abrupt("return",this.ensure(t,r,o));case 14:case"end":return l.stop()}}),_callee3,this,[[0,7]])}))),function ensure(t,o,c){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return this.streamManager.requestRange(t,r)}},{key:"requestLoadedStream",value:function requestLoadedStream(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(t)}},{key:"sendProgressiveData",value:function sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}},{key:"terminate",value:function terminate(t){this.streamManager.abort(t)}}]);return NetworkPdfManager}(y);r.NetworkPdfManager=v},(t,r,o)=>{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)}o(305);o(306);o(2);o(54);o(56);o(104);o(296);o(293);o(114);o(123);o(129);o(113);Object.defineProperty(r,"__esModule",{value:!0});r.ChunkedStreamManager=r.ChunkedStream=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(290);o(183);o(134);o(335);o(145);o(357);o(329);o(105);var c=o(343),l=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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 c.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 l=Math.min(Math.floor((r-1)/this.chunkSize)+1,this.numChunks),u=o;u<l;++u)if(!this._loadedChunks.has(u))throw new c.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=this.bytes,o=this.pos,c=this.end;if(!t){c>this.progressiveDataLength&&this.ensureRange(o,c);return r.subarray(o,c)}var l=o+t;l>c&&(l=c);l>this.progressiveDataLength&&this.ensureRange(o,l);this.pos=l;return r.subarray(o,l)}},{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(358).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=new l.PromiseCapability}_createClass(ChunkedStreamManager,[{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){var y=d.value,g=d.done;try{if(g){var v=(0,c.arrayBuffersToBytes)(u);u=null;t(v);return}h+=y.byteLength;l.isStreamingSupported&&o.onProgress({loaded:h});u.push(y);l.read().then(readChunk,r)}catch(t){r(t)}}),r)})).then((function(r){o.aborted||o.onReceiveData({chunk:r,begin:t})}))}},{key:"requestAllChunks",value:function requestAllChunks(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])){var t=this.stream.getMissingChunks();this._requestChunks(t)}return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function _requestChunks(t){var r=this,o=this.currRequestId++,c=new Set;this._chunksNeededByRequest.set(o,c);var u,h=_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){var d=u.value;this.stream.hasChunk(d)||c.add(d)}}catch(t){h.e(t)}finally{h.f()}if(0===c.size)return Promise.resolve();var y=new l.PromiseCapability;this._promisesByRequest.set(o,y);var g,v=[],m=_createForOfIteratorHelper(c);try{for(m.s();!(g=m.n()).done;){var _=g.value,w=this._requestsByChunk.get(_);if(!w){w=[];this._requestsByChunk.set(_,w);v.push(_)}w.push(o)}}catch(t){m.e(t)}finally{m.f()}if(v.length>0){var k,S=_createForOfIteratorHelper(this.groupChunks(v));try{for(S.s();!(k=S.n()).done;){var C=k.value,x=C.beginChunk*this.chunkSize,O=Math.min(C.endChunk*this.chunkSize,this.length);this.sendRequest(x,O).catch(y.reject)}}catch(t){S.e(t)}finally{S.f()}}return y.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=[],o=_createForOfIteratorHelper(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);try{for(o.s();!(t=o.n()).done;)for(var c=t.value,l=this.getBeginChunk(c.begin),u=this.getEndChunk(c.end),h=l;h<u;++h)r.includes(h)||r.push(h)}catch(t){o.e(t)}finally{o.f()}r.sort((function(t,r){return t-r}));return this._requestChunks(r)}},{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=[],y=u;y<h;++y){var g=this._requestsByChunk.get(y);if(g){this._requestsByChunk.delete(y);var v,m=_createForOfIteratorHelper(g);try{for(m.s();!(v=m.n()).done;){var _=v.value,w=this._chunksNeededByRequest.get(_);w.has(y)&&w.delete(y);w.size>0||d.push(_)}}catch(t){m.e(t)}finally{m.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var k;if(1===this.stream.numChunksLoaded){var S=this.stream.numChunks-1;this.stream.hasChunk(S)||(k=S)}else k=this.stream.nextEmptyChunk(h);Number.isInteger(k)&&this._requestChunks([k])}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){var r;this.aborted=!0;null===(r=this.pdfNetworkStream)||void 0===r||r.cancelAllRequests(t);var o,c=_createForOfIteratorHelper(this._promisesByRequest.values());try{for(c.s();!(o=c.n()).done;){o.value.reject(t)}}catch(t){c.e(t)}finally{c.f()}}}]);return ChunkedStreamManager}();r.ChunkedStreamManager=h},(t,r,o)=>{var c=o(58),l=o(7),u=o(40),h=o(10),d=o(72),y=o(212),g=o(77),v=o(9),m=o(241),_=o(231),w=o(242),k=o(243),S=o(21),C=o(244),x=[],O=l(x.sort),T=l(x.push),E=v((function(){x.sort(void 0)})),R=v((function(){x.sort(null)})),M=_("sort"),j=!v((function(){if(S)return S<70;if(!(w&&w>3)){if(k)return!0;if(C)return C<603;var t,r,o,c,l="";for(t=65;t<76;t++){r=String.fromCharCode(t);switch(t){case 66:case 69:case 70:case 72:o=3;break;case 68:case 71:o=4;break;default:o=2}for(c=0;c<47;c++)x.push({k:r+c,v:o})}x.sort((function(t,r){return r.v-t.v}));for(c=0;c<x.length;c++){r=x[c].k.charAt(0);l.charAt(l.length-1)!==r&&(l+=r)}return"DGBEFHACIJK"!==l}}));c({target:"Array",proto:!0,forced:E||!R||!M||!j},{sort:function sort(t){void 0!==t&&u(t);var r=h(this);if(j)return void 0===t?O(r):O(r,t);var o,c,l=[],v=d(r);for(c=0;c<v;c++)c in r&&T(l,r[c]);m(l,function(t){return function(r,o){return void 0===o?-1:void 0===r?1:void 0!==t?+t(r,o)||0:g(r)>g(o)?1:-1}}(t));o=d(l);c=0;for(;c<o;)r[c]=l[c++];for(;c<v;)y(r,c++);return r}})},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.StringStream=r.Stream=r.NullStream=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(134);var c=o(354),l=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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=this.bytes,o=this.pos,c=this.end;if(!t)return r.subarray(o,c);var l=o+t;l>c&&(l=c);this.pos=l;return r.subarray(o,l)}},{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)=>{o(2);o(54);o(56);o(104);o(134);o(305);o(306);o(114);o(113);o(130);o(131);o(132);o(133);Object.defineProperty(r,"__esModule",{value:!0});r.Page=r.PDFDocument=void 0;o(302);o(143);o(293);o(183);o(182);o(290);o(137);o(145);o(175);o(177);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(296);o(309);o(360);o(361);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(335);o(123);o(129);o(353);o(362);o(363);o(300);o(337);o(339);o(364);o(331);o(105);o(351);o(365);var c=o(304),l=o(367),u=o(343),h=o(350),d=o(430),y=o(354),g=o(450),v=o(453),m=o(455),_=o(493),w=o(391),k=o(358),S=o(459),C=o(446),x=o(383),O=o(393),T=o(458),E=o(448),R=o(460),M=o(494);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 _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},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 asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,_toPropertyKey(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 _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}function _classPrivateMethodInitSpec(t,r){!function _checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function _classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}var j=[0,0,612,792],L=new WeakSet,D=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,y=t.builtInCMapCache,g=t.standardFontDataCache,v=t.globalImageCache,m=t.systemFontCache,_=t.nonBlendModesSet,w=t.xfaFactory;_classCallCheck(this,Page);_classPrivateMethodInitSpec(this,L);this.pdfManager=r;this.pageIndex=c;this.pageDict=l;this.xref=o;this.ref=u;this.fontCache=d;this.builtInCMapCache=y;this.standardFontDataCache=g;this.globalImageCache=v;this.systemFontCache=m;this.nonBlendModesSet=_;this.evaluatorOptions=r.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=w;var k={obj:0};this._localIdFactory=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});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(++k.obj)}},{key:"getPageObjId",value:function getPageObjId(){return"p".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(){var t=this._getInheritableProperty("Resources");return(0,c.shadow)(this,"resources",t instanceof h.Dict?t: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=c.Util.normalizeRect(r))[2]-r[0]>0&&r[3]-r[1]>0)return r;(0,c.warn)("Empty, or invalid, /".concat(t," entry."))}return null}},{key:"mediaBox",get:function get(){return(0,c.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||j)}},{key:"cropBox",get:function get(){return(0,c.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function get(){var t=this.pageDict.get("UserUnit");("number"!=typeof t||t<=0)&&(t=1);return(0,c.shadow)(this,"userUnit",t)}},{key:"view",get:function get(){var t=this.cropBox,r=this.mediaBox;if(t!==r&&!(0,c.isArrayEqual)(t,r)){var o=c.Util.intersect(t,r);if(o&&o[2]-o[0]>0&&o[3]-o[1]>0)return(0,c.shadow)(this,"view",o);(0,c.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,c.shadow)(this,"view",r)}},{key:"rotate",get:function get(){var t=this._getInheritableProperty("Rotate")||0;t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360);return(0,c.shadow)(this,"rotate",t)}},{key:"_onSubStreamError",value:function _onSubStreamError(t,r){if(!this.evaluatorOptions.ignoreErrors)throw t;(0,c.warn)("getContentStream - ignoring sub-stream (".concat(r,'): "').concat(t,'".'))}},{key:"getContentStream",value:function getContentStream(){var t=this;return this.pdfManager.ensure(this,"content").then((function(r){return r instanceof y.BaseStream?r:Array.isArray(r)?new O.StreamsSequenceStream(r,t._onSubStreamError.bind(t)):new k.NullStream}))}},{key:"xfaData",get:function get(){return(0,c.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}},{key:"saveNewAnnotations",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t,r,o,c){var u,d,y,g,v,m,_,w,k,S,C,O,T;return _regeneratorRuntime().wrap((function _callee$(R){for(;;)switch(R.prev=R.next){case 0:if(!this.xfaFactory){R.next=2;break}throw new Error("XFA: Cannot save new annotations.");case 2:u=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,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});d=new h.RefSet;y=new h.RefSet;_classPrivateMethodGet(this,L,_replaceIdByRef2).call(this,o,d,y);g=this.pageDict;v=this.annotations.filter((function(t){return!(t instanceof h.Ref&&d.has(t))}));R.next=10;return l.AnnotationFactory.saveNewAnnotations(u,r,o,c);case 10:m=R.sent;_=_createForOfIteratorHelper(m.annotations);try{for(_.s();!(w=_.n()).done;)(k=w.value.ref)instanceof h.Ref&&!y.has(k)&&v.push(k)}catch(t){_.e(t)}finally{_.f()}S=g.get("Annots");g.set("Annots",v);C=[];O=null;this.xref.encrypt&&(O=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen));R.next=20;return(0,E.writeObject)(this.ref,g,C,O);case 20:S&&g.set("Annots",S);(T=m.dependencies).push.apply(T,[{ref:this.ref,data:C.join("")}].concat(_toConsumableArray(m.annotations)));return R.abrupt("return",T);case 24:case"end":return R.stop()}}),_callee,this)}))),function saveNewAnnotations(t,r,c,l){return o.apply(this,arguments)})},{key:"save",value:function save(t,r,o){var l=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,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){var u,h=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var y=u.value;y.mustBePrinted(o)&&h.push(y.save(l,r,o).catch((function(t){(0,c.warn)("save - ignoring annotation data during "+'"'.concat(r.name,'" task: "').concat(t,'".'));return null})))}}catch(t){d.e(t)}finally{d.f()}return Promise.all(h).then((function(t){return t.filter((function(t){return!!t}))}))}))}},{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,d=t.sink,y=t.task,g=t.intent,v=t.cacheKey,m=t.annotationStorage,_=void 0===m?null:m,w=this.getContentStream(),k=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),S=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,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),O=this.xfaFactory?null:(0,u.getNewAnnotationsMap)(_),T=null,E=Promise.resolve(null);if(O){var R,M=O.get(this.pageIndex);if(M){var j,D=new Set,N=_createForOfIteratorHelper(M);try{for(N.s();!(j=N.n()).done;){var U=j.value,G=U.bitmapId,$=U.bitmap;!G||$||D.has(G)||D.add(G)}}catch(t){N.e(t)}finally{N.f()}var H=this.evaluatorOptions.isOffscreenCanvasSupported;if(D.size>0){var X,q=M.slice(),z=_createForOfIteratorHelper(_);try{for(z.s();!(X=z.n()).done;){var W=_slicedToArray(X.value,2),V=W[0],K=W[1];V.startsWith(c.AnnotationEditorPrefix)&&(K.bitmap&&D.has(K.bitmapId)&&q.push(K))}}catch(t){z.e(t)}finally{z.f()}R=l.AnnotationFactory.generateImages(q,this.xref,H)}else R=l.AnnotationFactory.generateImages(M,this.xref,H);T=new h.RefSet;_classPrivateMethodGet(this,L,_replaceIdByRef2).call(this,M,T,null);E=l.AnnotationFactory.printNewAnnotations(S,y,M,R)}}var Y=Promise.all([w,k]).then((function(t){var c=_slicedToArray(t,1)[0],l=new C.OperatorList(g,d);o.send("StartRenderPage",{transparency:S.hasBlendModes(r.resources,r.nonBlendModesSet),pageIndex:r.pageIndex,cacheKey:v});return S.getOperatorList({stream:c,task:y,resources:r.resources,operatorList:l}).then((function(){return l}))}));return Promise.all([Y,this._parsedAnnotations,E]).then((function(t){var r=_slicedToArray(t,3),o=r[0],l=r[1],u=r[2];if(u){l=l.filter((function(t){return!(t.ref&&T.has(t.ref))}));for(var d=function _loop(t,r){var o=u[t];if(o.refToReplace){var c=l.findIndex((function(t){return t.ref&&(0,h.isRefsEqual)(t.ref,o.refToReplace)}));if(c>=0){l.splice(c,1,o);u.splice(t--,1);r--}}v=t,m=r},v=0,m=u.length;v<m;v++)d(v,m);l=l.concat(u)}if(0===l.length||g&c.RenderingIntentFlag.ANNOTATIONS_DISABLE){o.flush(!0);return{length:o.totalLength}}var w,k=!!(g&c.RenderingIntentFlag.ANNOTATIONS_FORMS),C=!!(g&c.RenderingIntentFlag.ANY),x=!!(g&c.RenderingIntentFlag.DISPLAY),O=!!(g&c.RenderingIntentFlag.PRINT),E=[],R=_createForOfIteratorHelper(l);try{for(R.s();!(w=R.n()).done;){var M=w.value;(C||x&&M.mustBeViewed(_,k)||O&&M.mustBePrinted(_))&&E.push(M.getOperatorList(S,y,g,k,_).catch((function(t){(0,c.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(y.name,'" task: "').concat(t,'".'));return{opList:null,separateForm:!1,separateCanvas:!1}})))}}catch(t){R.e(t)}finally{R.f()}return Promise.all(E).then((function(t){var r,c=!1,l=!1,u=_createForOfIteratorHelper(t);try{for(u.s();!(r=u.n()).done;){var h=r.value,d=h.opList,y=h.separateForm,g=h.separateCanvas;o.addOpList(d);c||(c=y);l||(l=g)}}catch(t){u.e(t)}finally{u.f()}o.flush(!0,{form:c,canvas:l});return{length:o.totalLength}}))}))}},{key:"extractTextContent",value:function extractTextContent(t){var r=this,o=t.handler,c=t.task,l=t.includeMarkedContent,u=t.disableNormalization,h=t.sink,d=this.getContentStream(),y=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([d,y]).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,systemFontCache:r.systemFontCache,options:r.evaluatorOptions}).getTextContent({stream:d,task:c,resources:r.resources,includeMarkedContent:l,disableNormalization:u,sink:h,viewBox:r.view})}))}},{key:"getStructTree",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(){var t,r;return _regeneratorRuntime().wrap((function _callee2$(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()}}),_callee2,this)}))),function getStructTree(){return r.apply(this,arguments)})},{key:"_parseStructTree",value:function _parseStructTree(t){var r=new T.StructTreePage(t,this.pageDict);r.parse();return r}},{key:"getAnnotationsData",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t,r,o){var l,u,h,d,y,g,v,m,_,w,k;return _regeneratorRuntime().wrap((function _callee3$(S){for(;;)switch(S.prev=S.next){case 0:S.next=2;return this._parsedAnnotations;case 2:if(0!==(l=S.sent).length){S.next=5;break}return S.abrupt("return",[]);case 5:u=[],h=[];y=!!(o&c.RenderingIntentFlag.ANY),g=!!(o&c.RenderingIntentFlag.DISPLAY),v=!!(o&c.RenderingIntentFlag.PRINT);m=_createForOfIteratorHelper(l);try{for(m.s();!(_=m.n()).done;){w=_.value;((k=y||g&&w.viewable)||v&&w.printable)&&u.push(w.data);if(w.hasTextContent&&k){d||(d=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,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}));h.push(w.extractTextContent(d,r,[-1/0,-1/0,1/0,1/0]).catch((function(t){(0,c.warn)('getAnnotationsData - ignoring textContent during "'.concat(r.name,'" task: "').concat(t,'".'))})))}}}catch(t){m.e(t)}finally{m.f()}S.next=11;return Promise.all(h);case 11:return S.abrupt("return",u);case 12:case"end":return S.stop()}}),_callee3,this)}))),function getAnnotationsData(r,o,c){return t.apply(this,arguments)})},{key:"annotations",get:function get(){var t=this._getInheritableProperty("Annots");return(0,c.shadow)(this,"annotations",Array.isArray(t)?t:[])}},{key:"_parsedAnnotations",get:function get(){var t=this,r=this.pdfManager.ensure(this,"annotations").then((function(){var r,o=[],u=_createForOfIteratorHelper(t.annotations);try{for(u.s();!(r=u.n()).done;){var h=r.value;o.push(l.AnnotationFactory.create(t.xref,h,t.pdfManager,t._localIdFactory,!1).catch((function(t){(0,c.warn)('_parsedAnnotations: "'.concat(t,'".'));return null})))}}catch(t){u.e(t)}finally{u.f()}return Promise.all(o).then((function(t){if(0===t.length)return t;var r,o,c=[],u=_createForOfIteratorHelper(t);try{for(u.s();!(o=u.n()).done;){var h=o.value;h&&(h instanceof l.PopupAnnotation?(r||(r=[])).push(h):c.push(h))}}catch(t){u.e(t)}finally{u.f()}r&&c.push.apply(c,_toConsumableArray(r));return c}))}));return(0,c.shadow)(this,"_parsedAnnotations",r)}},{key:"jsActions",get:function get(){var t=(0,u.collectActions)(this.xref,this.pageDict,c.PageActionEventType);return(0,c.shadow)(this,"jsActions",t)}}]);var t,r,o;return Page}();r.Page=D;function _replaceIdByRef2(t,r,o){var l,u=_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(d.id){var y=h.Ref.fromString(d.id);if(!y){(0,c.warn)("A non-linked annotation cannot be modified: ".concat(d.id));continue}if(d.deleted){r.put(y);continue}null==o||o.put(y);d.ref=y;delete d.id}}}catch(t){u.e(t)}finally{u.f()}}var N=new Uint8Array([37,80,68,70,45]),U=new Uint8Array([115,116,97,114,116,120,114,101,102]),G=new Uint8Array([101,110,100,111,98,106]);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,y=u.length-1;y>=d;){for(var g=0;g<l&&u[y-g]===r[d-g];)g++;if(g>=l){t.pos+=y-d;return!0}y--}else for(var v=0;v<=h;){for(var m=0;m<l&&u[v+m]===r[m];)m++;if(m>=l){t.pos+=v;return!0}v++}return!1}var $=function(){function PDFDocument(t,r){_classCallCheck(this,PDFDocument);if(r.length<=0)throw new c.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t;this.stream=r;this.xref=new M.XRef(r,t);this._pagePromises=new Map;this._version=null;var o={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(++o.font)}},{key:"createObjId",value:function createObjId(){(0,c.unreachable)("Abstract method `createObjId` called.")}},{key:"getPageObjId",value:function getPageObjId(){(0,c.unreachable)("Abstract method `getPageObjId` called.")}}]);return _class2}()}_createClass(PDFDocument,[{key:"parse",value:function parse(t){this.xref.parse(t);this.catalog=new v.Catalog(this.pdfManager,this.xref)}},{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,c.info)(t)}return(0,c.shadow)(this,"linearization",t)}},{key:"startXRef",get:function get(){var t=this.stream,r=0;if(this.linearization){t.reset();find(t,G)&&(r=t.pos+6-t.start)}else{for(var o=U.length,l=!1,h=t.end;!l&&h>0;){(h-=1024-o)<0&&(h=0);t.pos=h;l=find(t,U,1024,!0)}if(l){t.skip(9);var d;do{d=t.getByte()}while((0,u.isWhiteSpace)(d));for(var y="";d>=32&&d<=57;){y+=String.fromCharCode(d);d=t.getByte()}r=parseInt(y,10);isNaN(r)&&(r=0)}}return(0,c.shadow)(this,"startXRef",r)}},{key:"checkHeader",value:function checkHeader(){var t=this.stream;t.reset();if(find(t,N)){t.moveStart();t.skip(N.length);for(var r,o="";(r=t.getByte())>32&&o.length<7;)o+=String.fromCharCode(r);u.PDF_VERSION_REGEXP.test(o)?this._version=o:(0,c.warn)("Invalid PDF header version: ".concat(o))}}},{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,c.shadow)(this,"numPages",t)}},{key:"_hasOnlyDocumentSignatures",value:function _hasOnlyDocumentSignatures(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;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>10){(0,c.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return r._hasOnlyDocumentSignatures(t.get("Kids"),o)}var l=(0,h.isName)(t.get("FT"),"Sig"),u=t.get("Rect"),d=Array.isArray(u)&&u.every((function(t){return 0===t}));return l&&d}))}},{key:"_xfaStreams",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){o["xdp:xdp"]=r;return o}if(!Array.isArray(r)||0===r.length)return null;for(var c=0,l=r.length;c<l;c+=2){var u=void 0;u=0===c?"xdp:xdp":c===l-2?"/xdp:xdp":r[c];if(o.hasOwnProperty(u)){var h=this.xref.fetchIfRef(r[c+1]);h instanceof y.BaseStream&&!h.isEmpty&&(o[u]=h)}}return o}},{key:"xfaDatasets",get:function get(){var t=this._xfaStreams;if(!t)return(0,c.shadow)(this,"xfaDatasets",null);for(var r=0,o=["datasets","xdp:xdp"];r<o.length;r++){var l=o[r],u=t[l];if(u)try{var h=_defineProperty({},l,(0,c.stringToUTF8String)(u.getString()));return(0,c.shadow)(this,"xfaDatasets",new _.DatasetReader(h))}catch(t){(0,c.warn)("XFA - Invalid utf-8 string.");break}}return(0,c.shadow)(this,"xfaDatasets",null)}},{key:"xfaData",get:function get(){var t=this._xfaStreams;if(!t)return null;for(var r=Object.create(null),o=0,l=Object.entries(t);o<l.length;o++){var u=_slicedToArray(l[o],2),h=u[0],d=u[1];if(d)try{r[h]=(0,c.stringToUTF8String)(d.getString())}catch(t){(0,c.warn)("XFA - Invalid utf-8 string.");return null}}return r}},{key:"xfaFactory",get:function get(){var t;this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(t=this.xfaData);return(0,c.shadow)(this,"xfaFactory",t?new R.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:(j=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(){var t,r,o,c,l,u,h,d;return _regeneratorRuntime().wrap((function _callee4$(g){for(;;)switch(g.prev=g.next){case 0:g.next=2;return this.pdfManager.ensureCatalog("xfaImages");case 2:if(t=g.sent){g.next=5;break}return g.abrupt("return");case 5:r=t.getKeys();o=new S.ObjectLoader(t,r,this.xref);g.next=9;return o.load();case 9:c=new Map;l=_createForOfIteratorHelper(r);try{for(l.s();!(u=l.n()).done;){h=u.value;(d=t.get(h))instanceof y.BaseStream&&c.set(h,d.getBytes())}}catch(t){l.e(t)}finally{l.f()}this.xfaFactory.setImages(c);case 13:case"end":return g.stop()}}),_callee4,this)}))),function loadXfaImages(){return j.apply(this,arguments)})},{key:"loadXfaFonts",value:(E=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(t,r){var o,l,y,g,v,m,_,w,k,O,T,E,R,M,j,L,D,N,U,G,$,H,X,q,z,W,V,K,Y,J,Z,Q,ee,te;return _regeneratorRuntime().wrap((function _callee5$(re){for(;;)switch(re.prev=re.next){case 0:re.next=2;return this.pdfManager.ensureCatalog("acroForm");case 2:if(o=re.sent){re.next=5;break}return re.abrupt("return");case 5:re.next=7;return o.getAsync("DR");case 7:if((l=re.sent)instanceof h.Dict){re.next=10;break}return re.abrupt("return");case 10:y=new S.ObjectLoader(l,["Font"],this.xref);re.next=13;return y.load();case 13:if((g=l.get("Font"))instanceof h.Dict){re.next=16;break}return re.abrupt("return");case 16:(v=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions)).useSystemFonts=!1;m=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=[];re.t0=function clone(){return this};k={get font(){return w.at(-1)},set font(t){w.push(t)},clone:re.t0};O=new Map;g.forEach((function(t,r){O.set(t,r)}));T=[];E=_createForOfIteratorHelper(O);re.prev=27;E.s();case 29:if((R=E.n()).done){re.next=44;break}M=_slicedToArray(R.value,2),j=M[0],L=M[1];if((D=L.get("FontDescriptor"))instanceof h.Dict){re.next=34;break}return re.abrupt("continue",42);case 34:N=(N=D.get("FontFamily")).replaceAll(/[ ]+(\d)/g,"$1");U=D.get("FontWeight");G=-D.get("ItalicAngle");$={fontFamily:N,fontWeight:U,italicAngle:G};if((0,u.validateCSSFont)($)){re.next=41;break}return re.abrupt("continue",42);case 41:T.push(m.handleSetFont(l,[h.Name.get(j),1],null,_,r,k,null,$).catch((function(t){(0,c.warn)('loadXfaFonts: "'.concat(t,'".'));return null})));case 42:re.next=29;break;case 44:re.next=49;break;case 46:re.prev=46;re.t1=re.catch(27);E.e(re.t1);case 49:re.prev=49;E.f();return re.finish(49);case 52:re.next=54;return Promise.all(T);case 54:if(H=this.xfaFactory.setFonts(w)){re.next=57;break}return re.abrupt("return");case 57:v.ignoreErrors=!0;T.length=0;w.length=0;X=new Set;q=_createForOfIteratorHelper(H);try{for(q.s();!(z=q.n()).done;){W=z.value;(0,d.getXfaFontName)("".concat(W,"-Regular"))||X.add(W)}}catch(t){q.e(t)}finally{q.f()}X.size&&H.push("PdfJS-Fallback");V=_createForOfIteratorHelper(H);re.prev=65;V.s();case 67:if((K=V.n()).done){re.next=74;break}Y=K.value;if(!X.has(Y)){re.next=71;break}return re.abrupt("continue",72);case 71:for(J=0,Z=[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}];J<Z.length;J++){Q=Z[J];ee="".concat(Y,"-").concat(Q.name);te=(0,d.getXfaFontDict)(ee);T.push(m.handleSetFont(l,[h.Name.get(ee),1],null,_,r,k,te,{fontFamily:Y,fontWeight:Q.fontWeight,italicAngle:Q.italicAngle}).catch((function(t){(0,c.warn)('loadXfaFonts: "'.concat(t,'".'));return null})))}case 72:re.next=67;break;case 74:re.next=79;break;case 76:re.prev=76;re.t2=re.catch(65);V.e(re.t2);case 79:re.prev=79;V.f();return re.finish(79);case 82:re.next=84;return Promise.all(T);case 84:this.xfaFactory.appendFonts(w,X);case 85:case"end":return re.stop()}}),_callee5,this,[[27,46,49,52],[65,76,79,82]])}))),function loadXfaFonts(t,r){return E.apply(this,arguments)})},{key:"serializeXfaData",value:(T=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(t){return _regeneratorRuntime().wrap((function _callee6$(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()}}),_callee6,this)}))),function serializeXfaData(t){return T.apply(this,arguments)})},{key:"version",get:function get(){return this.catalog.version||this._version}},{key:"formInfo",get:function get(){var t={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},r=this.catalog.acroForm;if(!r)return(0,c.shadow)(this,"formInfo",t);try{var o=r.get("Fields"),l=Array.isArray(o)&&o.length>0;t.hasFields=l;var 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=l&&!g;t.hasSignatures=d}catch(t){if(t instanceof u.MissingDataException)throw t;(0,c.warn)('Cannot fetch form information: "'.concat(t,'".'))}return(0,c.shadow)(this,"formInfo",t)}},{key:"documentInfo",get:function get(){var t,r={PDFFormatVersion:this.version,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{t=this.xref.trailer.get("Info")}catch(t){if(t instanceof u.MissingDataException)throw t;(0,c.info)("The document information dictionary is invalid.")}if(!(t instanceof h.Dict))return(0,c.shadow)(this,"documentInfo",r);var o,l=_createForOfIteratorHelper(t.getKeys());try{for(l.s();!(o=l.n()).done;){var d=o.value,y=t.get(d);switch(d){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof y){r[d]=(0,c.stringToPDFString)(y);continue}break;case"Trapped":if(y instanceof h.Name){r[d]=y;continue}break;default:var g=void 0;switch(_typeof(y)){case"string":g=(0,c.stringToPDFString)(y);break;case"number":case"boolean":g=y;break;default:y instanceof h.Name&&(g=y)}if(void 0===g){(0,c.warn)('Bad value, for custom key "'.concat(d,'", in Info: ').concat(y,"."));continue}r.Custom||(r.Custom=Object.create(null));r.Custom[d]=g;continue}(0,c.warn)('Bad value, for key "'.concat(d,'", in Info: ').concat(y,"."))}}catch(t){l.e(t)}finally{l.f()}return(0,c.shadow)(this,"documentInfo",r)}},{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){var r,o=[],c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value.toString(16);o.push(l.padStart(2,"0"))}}catch(t){c.e(t)}finally{c.f()}return o.join("")}var t,r,o=this.xref.trailer.get("ID");if(Array.isArray(o)&&validate(o[0])){t=(0,c.stringToBytes)(o[0]);o[1]!==o[0]&&validate(o[1])&&(r=(0,c.stringToBytes)(o[1]))}else t=(0,g.calculateMD5)(this.stream.getByteRange(0,1024),0,1024);return(0,c.shadow)(this,"fingerprints",[hexString(t),r?hexString(r):null])}},{key:"_getLinearizationPage",value:(O=_asyncToGenerator(_regeneratorRuntime().mark((function _callee7(t){var r,o,l,u,d,y;return _regeneratorRuntime().wrap((function _callee7$(g){for(;;)switch(g.prev=g.next){case 0:r=this.catalog,o=this.linearization,l=this.xref;u=h.Ref.get(o.objectNumberFirst,0);g.prev=2;g.next=5;return l.fetchAsync(u);case 5:if(!((d=g.sent)instanceof h.Dict)){g.next=16;break}if(!((y=d.getRaw("Type"))instanceof h.Ref)){g.next=12;break}g.next=11;return l.fetchAsync(y);case 11:y=g.sent;case 12:if(!(0,h.isName)(y,"Page")&&(d.has("Type")||d.has("Kids"))){g.next=16;break}r.pageKidsCountCache.has(u)||r.pageKidsCountCache.put(u,1);r.pageIndexCache.has(u)||r.pageIndexCache.put(u,0);return g.abrupt("return",[d,u]);case 16:throw new c.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.");case 19:g.prev=19;g.t0=g.catch(2);(0,c.warn)('_getLinearizationPage: "'.concat(g.t0.message,'".'));return g.abrupt("return",r.getPageDict(t));case 23:case"end":return g.stop()}}),_callee7,this,[[2,19]])}))),function _getLinearizationPage(t){return O.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]):(null==u?void 0: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 D({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,systemFontCache:l.systemFontCache,nonBlendModesSet:l.nonBlendModesSet,xfaFactory:d})}));this._pagePromises.set(t,c);return c}},{key:"checkFirstPage",value:(k=_asyncToGenerator(_regeneratorRuntime().mark((function _callee8(){var t=arguments;return _regeneratorRuntime().wrap((function _callee8$(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()}}),_callee8,this,[[3,8]])}))),function checkFirstPage(){return k.apply(this,arguments)})},{key:"checkLastPage",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee9(){var t,r,o,l,h,d,y,g,v,m,_,w,k,S=arguments;return _regeneratorRuntime().wrap((function _callee9$(C){for(;;)switch(C.prev=C.next){case 0:t=S.length>0&&void 0!==S[0]&&S[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:l=this.linearization?this.linearization.numPages:r.numPages;case 11:if(Number.isInteger(l)){C.next=15;break}throw new c.FormatError("Page count is not an integer.");case 15:if(!(l<=1)){C.next=17;break}return C.abrupt("return");case 17:C.next=19;return this.getPage(l-1);case 19:C.next=44;break;case 21:C.prev=21;C.t0=C.catch(3);this._pagePromises.delete(l-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,c.warn)("checkLastPage - invalid /Pages tree /Count: ".concat(l,"."));C.prev=29;C.next=32;return r.getAllPageDicts(t);case 32:h=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:d=_createForOfIteratorHelper(h);try{for(d.s();!(y=d.n()).done;){g=_slicedToArray(y.value,2),v=g[0],m=_slicedToArray(g[1],2),_=m[0],w=m[1];k=void 0;_ instanceof Error?(k=Promise.reject(_)).catch((function(){})):k=Promise.resolve(new D({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,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null}));this._pagePromises.set(v,k)}}catch(t){d.e(t)}finally{d.f()}r.setActualNumPages(h.size);case 44:case"end":return C.stop()}}),_callee9,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(_regeneratorRuntime().mark((function _callee10(){var t,r=arguments;return _regeneratorRuntime().wrap((function _callee10$(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,m.clearGlobalCaches)());case 2:case"end":return o.stop()}}),_callee10,this)}))),function cleanup(){return r.apply(this,arguments)})},{key:"_collectFieldObjects",value:function _collectFieldObjects(t,r,o){var u=this.xref.fetchIfRef(r);if(u.has("T")){var h=(0,c.stringToPDFString)(u.get("T"));t=""===t?h:"".concat(t,".").concat(h)}o.has(t)||o.set(t,[]);o.get(t).push(l.AnnotationFactory.create(this.xref,r,this.pdfManager,this._localIdFactory,!0).then((function(t){return null==t?void 0:t.getFieldObject()})).catch((function(t){(0,c.warn)('_collectFieldObjects: "'.concat(t,'".'));return null})));if(u.has("Kids")){var d,y=_createForOfIteratorHelper(u.get("Kids"));try{for(y.s();!(d=y.n()).done;){var g=d.value;this._collectFieldObjects(t,g,o)}}catch(t){y.e(t)}finally{y.f()}}}},{key:"fieldObjects",get:function get(){if(!this.formInfo.hasFields)return(0,c.shadow)(this,"fieldObjects",Promise.resolve(null));var t,r=Object.create(null),o=new Map,l=_createForOfIteratorHelper(this.catalog.acroForm.get("Fields"));try{for(l.s();!(t=l.n()).done;){var u=t.value;this._collectFieldObjects("",u,o)}}catch(t){l.e(t)}finally{l.f()}var h,d=[],y=_createForOfIteratorHelper(o);try{var g=function _loop2(){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(y.s();!(h=y.n()).done;)g()}catch(t){y.e(t)}finally{y.f()}return(0,c.shadow)(this,"fieldObjects",Promise.all(d).then((function(){return r})))}},{key:"hasJSActions",get:function get(){var t=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,c.shadow)(this,"hasJSActions",t)}},{key:"_parseHasJSActions",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee11(){var t,r,o,c;return _regeneratorRuntime().wrap((function _callee11$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:t=l.sent;r=_slicedToArray(t,2);o=r[0];c=r[1];if(!o){l.next=8;break}return l.abrupt("return",!0);case 8:if(!c){l.next=10;break}return l.abrupt("return",Object.values(c).some((function(t){return t.some((function(t){return null!==t.actions}))})));case 10:return l.abrupt("return",!1);case 11:case"end":return l.stop()}}),_callee11,this)}))),function _parseHasJSActions(){return t.apply(this,arguments)})},{key:"calculationOrderIds",get:function get(){var t=this.catalog.acroForm;if(null==t||!t.has("CO"))return(0,c.shadow)(this,"calculationOrderIds",null);var r=t.get("CO");if(!Array.isArray(r)||0===r.length)return(0,c.shadow)(this,"calculationOrderIds",null);var o,l=[],u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){var d=o.value;d instanceof h.Ref&&l.push(d.toString())}}catch(t){u.e(t)}finally{u.f()}return 0===l.length?(0,c.shadow)(this,"calculationOrderIds",null):(0,c.shadow)(this,"calculationOrderIds",l)}}]);var t,r,o,k,O,T,E,j;return PDFDocument}();r.PDFDocument=$},(t,r,o)=>{var c=o(58),l=o(89).findIndex,u=o(138),h="findIndex",d=!0;h in[]&&Array(1)[h]((function(){d=!1}));c({target:"Array",proto:!0,forced:d},{findIndex:function findIndex(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}});u(h)},(t,r,o)=>{var c=o(58),l=o(10),u=o(69),h=o(70),d=o(72),y=o(291),g=o(292),v=o(92),m=o(86),_=o(212),w=o(181)("splice"),k=Math.max,S=Math.min;c({target:"Array",proto:!0,forced:!w},{splice:function splice(t,r){var o,c,w,C,x,O,T=l(this),E=d(T),R=u(t,E),M=arguments.length;if(0===M)o=c=0;else if(1===M){o=0;c=E-R}else{o=M-2;c=S(k(h(r),0),E-R)}g(E+o-c);w=v(T,c);for(C=0;C<c;C++)(x=R+C)in T&&m(w,C,T[x]);w.length=c;if(o<c){for(C=R;C<E-c;C++){O=C+o;(x=C+c)in T?T[O]=T[x]:_(T,O)}for(C=E;C>E-c+o;C--)_(T,C-1)}else if(o>c)for(C=E-c;C>R;C--){O=C+o-1;(x=C+c-1)in T?T[O]=T[x]:_(T,O)}for(C=0;C<o;C++)T[C+R]=arguments[C+2];y(T,E-c+o);return w}})},(t,r,o)=>{var c=o(58),l=o(320);c({target:"Object",stat:!0,arity:2,forced:Object.assign!==l},{assign:l})},(t,r,o)=>{var c=o(58),l=o(10),u=o(72),h=o(70),d=o(138);c({target:"Array",proto:!0},{at:function at(t){var r=l(this),o=u(r),c=h(t),d=c>=0?c:o+c;return d<0||d>=o?void 0:r[d]}});d("at")},(t,r,o)=>{var c=o(58),l=o(7),u=o(11),h=o(70),d=o(77),y=o(9),g=l("".charAt);c({target:"String",proto:!0,forced:y((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function at(t){var r=d(u(this)),o=r.length,c=h(t),l=c>=0?c:o+c;return l<0||l>=o?void 0:g(r,l)}})},(t,r,o)=>{o(366)},(t,r,o)=>{o(261)("WeakSet",(function(t){return function WeakSet(){return t(this,arguments.length?arguments[0]:void 0)}}),o(342))},(t,r,o)=>{o(113);o(129);o(130);o(131);o(132);o(133);o(134);o(300);o(305);o(306);o(368);o(370);Object.defineProperty(r,"__esModule",{value:!0});r.PopupAnnotation=r.MarkupAnnotation=r.AnnotationFactory=r.AnnotationBorderStyle=r.Annotation=void 0;r.getQuadPoints=getQuadPoints;o(137);o(143);o(145);o(175);o(177);o(293);o(303);o(335);o(290);o(2);o(54);o(56);o(104);o(183);o(105);o(371);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(114);o(372);o(296);o(373);o(309);o(302);o(180);o(182);o(374);o(376);o(123);o(349);o(337);o(362);o(377);o(329);o(330);o(328);o(191);var c=o(304),l=o(343),u=o(378),h=o(350),d=o(358),y=o(448),g=o(354),v=o(442),m=o(453),_=o(380),w=o(456),k=o(403),S=o(459),C=o(446),x=o(460);function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(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 _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?Object.setPrototypeOf.bind():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.bind():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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},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),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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"),o.ensureCatalog("baseUrl"),o.ensureCatalog("attachments"),o.ensureDoc("xfaDatasets"),l?this._getPageIndex(t,r,o):-1]).then((function(h){var d=_slicedToArray(h,5),y=d[0],g=(d[1],d[2]),v=d[3],m=d[4];return o.ensure(u,"_create",[t,r,o,c,y,g,v,l,m])}))}},{key:"_create",value:function _create(t,r,o,u,d){var y=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,g=arguments.length>6?arguments[6]:void 0,v=arguments.length>7?arguments[7]:void 0,m=arguments.length>8&&void 0!==arguments[8]?arguments[8]:-1,_=t.fetchIfRef(r);if(_ instanceof h.Dict){var w=r instanceof h.Ref?r.toString():"annot_".concat(u.createObjId()),k=_.get("Subtype");k=k instanceof h.Name?k.name:null;var S=d instanceof h.Dict?d:h.Dict.empty,C={xref:t,ref:r,dict:_,subtype:k,id:w,pdfManager:o,acroForm:S,attachments:y,xfaDatasets:g,collectFields:v,needAppearances:!v&&!0===S.get("NeedAppearances"),pageIndex:m,evaluatorOptions:o.evaluatorOptions};switch(k){case"Link":return new G(C);case"Text":return new U(C);case"Widget":var x=(0,l.getInheritableProperty)({dict:_,key:"FT"});switch(x=x instanceof h.Name?x.name:null){case"Tx":return new j(C);case"Btn":return new L(C);case"Ch":return new D(C);case"Sig":if(self.showUnverifiedSignatures){(0,c.info)("The PDF file contains a signature. Please take into account that it can't be verified yet. ngx-extended-pdf-viewer also displays forged signatures, so use this feature only if you're sure what you're doing.");return new N(C)}}(0,c.warn)('Unimplemented widget field type "'.concat(x,'", ')+"falling back to base field type.");return new M(C);case"Popup":return new $(C);case"FreeText":return new H(C);case"Line":return new X(C);case"Square":return new q(C);case"Circle":return new z(C);case"PolyLine":return new W(C);case"Polygon":return new V(C);case"Caret":return new K(C);case"Ink":return new Y(C);case"Highlight":return new J(C);case"Underline":return new Z(C);case"Squiggly":return new Q(C);case"StrikeOut":return new ee(C);case"Stamp":return new te(C);case"FileAttachment":return new re(C);default:v||(k?(0,c.warn)('Unimplemented annotation type "'.concat(k,'", ')+"falling back to base annotation."):(0,c.warn)("Annotation is missing the required /Subtype."));return new T(C)}}}},{key:"_getPageIndex",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t,r,o){var l,u,d,y,g,v,m,_,w,k;return _regeneratorRuntime().wrap((function _callee$(S){for(;;)switch(S.prev=S.next){case 0:S.prev=0;S.next=3;return t.fetchIfRefAsync(r);case 3:if((l=S.sent)instanceof h.Dict){S.next=6;break}return S.abrupt("return",-1);case 6:if(!((u=l.getRaw("P"))instanceof h.Ref)){S.next=18;break}S.prev=8;S.next=11;return o.ensureCatalog("getPageIndex",[u]);case 11:d=S.sent;return S.abrupt("return",d);case 15:S.prev=15;S.t0=S.catch(8);(0,c.info)('_getPageIndex -- not a valid page reference: "'.concat(S.t0,'".'));case 18:if(!l.has("Kids")){S.next=20;break}return S.abrupt("return",-1);case 20:S.next=22;return o.ensureDoc("numPages");case 22:y=S.sent;g=0;case 24:if(!(g<y)){S.next=51;break}S.next=27;return o.getPage(g);case 27:v=S.sent;S.next=30;return o.ensure(v,"annotations");case 30:m=S.sent;_=_createForOfIteratorHelper(m);S.prev=32;_.s();case 34:if((w=_.n()).done){S.next=40;break}if(!((k=w.value)instanceof h.Ref&&(0,h.isRefsEqual)(k,r))){S.next=38;break}return S.abrupt("return",g);case 38:S.next=34;break;case 40:S.next=45;break;case 42:S.prev=42;S.t1=S.catch(32);_.e(S.t1);case 45:S.prev=45;_.f();return S.finish(45);case 48:g++;S.next=24;break;case 51:S.next=56;break;case 53:S.prev=53;S.t2=S.catch(0);(0,c.warn)('_getPageIndex: "'.concat(S.t2,'".'));case 56:return S.abrupt("return",-1);case 57:case"end":return S.stop()}}),_callee,null,[[0,53],[8,15],[32,42,45,48]])}))),function _getPageIndex(t,r,c){return o.apply(this,arguments)})},{key:"generateImages",value:function generateImages(t,r,o){if(!o){(0,c.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images.");return null}var l,u,h=_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){var d=u.value,y=d.bitmapId,g=d.bitmap;if(g){l||(l=new Map);l.set(y,te.createImage(g,r))}}}catch(t){h.e(t)}finally{h.f()}return l}},{key:"saveNewAnnotations",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t,r,o,l){var u,d,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D;return _regeneratorRuntime().wrap((function _callee2$(N){for(;;)switch(N.prev=N.next){case 0:u=t.xref;g=[];v=[];m=t.options.isOffscreenCanvasSupported;_=_createForOfIteratorHelper(o);N.prev=5;_.s();case 7:if((w=_.n()).done){N.next=56;break}if(!(k=w.value).deleted){N.next=11;break}return N.abrupt("continue",54);case 11:N.t0=k.annotationType;N.next=N.t0===c.AnnotationEditorType.FREETEXT?14:N.t0===c.AnnotationEditorType.INK?28:N.t0===c.AnnotationEditorType.STAMP?30:54;break;case 14:if(d){N.next=26;break}(S=new h.Dict(u)).set("BaseFont",h.Name.get("Helvetica"));S.set("Type",h.Name.get("Font"));S.set("Subtype",h.Name.get("Type1"));S.set("Encoding",h.Name.get("WinAnsiEncoding"));C=[];d=u.getNewTemporaryRef();x=u.encrypt?u.encrypt.createCipherTransform(d.num,d.gen):null;N.next=25;return(0,y.writeObject)(d,S,C,x);case 25:g.push({ref:d,data:C.join("")});case 26:v.push(H.createNewAnnotation(u,k,g,{evaluator:t,task:r,baseFontRef:d}));return N.abrupt("break",54);case 28:v.push(Y.createNewAnnotation(u,k,g));return N.abrupt("break",54);case 30:if(m){N.next=32;break}return N.abrupt("break",54);case 32:N.next=34;return l.get(k.bitmapId);case 34:if(!(O=N.sent).imageStream){N.next=52;break}T=O.imageStream,E=O.smaskStream;R=[];if(!E){N.next=46;break}M=u.getNewTemporaryRef();j=u.encrypt?u.encrypt.createCipherTransform(M.num,M.gen):null;N.next=43;return(0,y.writeObject)(M,E,R,j);case 43:g.push({ref:M,data:R.join("")});T.dict.set("SMask",M);R.length=0;case 46:L=O.imageRef=u.getNewTemporaryRef();D=u.encrypt?u.encrypt.createCipherTransform(L.num,L.gen):null;N.next=50;return(0,y.writeObject)(L,T,R,D);case 50:g.push({ref:L,data:R.join("")});O.imageStream=O.smaskStream=null;case 52:v.push(te.createNewAnnotation(u,k,g,{image:O}));return N.abrupt("break",54);case 54:N.next=7;break;case 56:N.next=61;break;case 58:N.prev=58;N.t1=N.catch(5);_.e(N.t1);case 61:N.prev=61;_.f();return N.finish(61);case 64:N.next=66;return Promise.all(v);case 66:N.t2=N.sent;N.t3=g;return N.abrupt("return",{annotations:N.t2,dependencies:N.t3});case 69:case"end":return N.stop()}}),_callee2,null,[[5,58,61,64]])}))),function saveNewAnnotations(t,o,c,l){return r.apply(this,arguments)})},{key:"printNewAnnotations",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t,r,o,l){var u,h,d,y,g,v,m,_,w;return _regeneratorRuntime().wrap((function _callee3$(S){for(;;)switch(S.prev=S.next){case 0:if(o){S.next=2;break}return S.abrupt("return",null);case 2:u=t.options,h=t.xref;d=[];y=_createForOfIteratorHelper(o);S.prev=5;y.s();case 7:if((g=y.n()).done){S.next=28;break}if(!(v=g.value).deleted){S.next=11;break}return S.abrupt("continue",26);case 11:S.t0=v.annotationType;S.next=S.t0===c.AnnotationEditorType.FREETEXT?14:S.t0===c.AnnotationEditorType.INK?16:S.t0===c.AnnotationEditorType.STAMP?18:26;break;case 14:d.push(H.createNewPrintAnnotation(h,v,{evaluator:t,task:r,evaluatorOptions:u}));return S.abrupt("break",26);case 16:d.push(Y.createNewPrintAnnotation(h,v,{evaluatorOptions:u}));return S.abrupt("break",26);case 18:if(u.isOffscreenCanvasSupported){S.next=20;break}return S.abrupt("break",26);case 20:S.next=22;return l.get(v.bitmapId);case 22:if((m=S.sent).imageStream){_=m.imageStream;(w=m.smaskStream)&&_.dict.set("SMask",w);m.imageRef=new k.JpegStream(_,_.length);m.imageStream=m.smaskStream=null}d.push(te.createNewPrintAnnotation(h,v,{image:m,evaluatorOptions:u}));return S.abrupt("break",26);case 26:S.next=7;break;case 28:S.next=33;break;case 30:S.prev=30;S.t1=S.catch(5);y.e(S.t1);case 33:S.prev=33;y.f();return S.finish(33);case 36:return S.abrupt("return",Promise.all(d));case 37:case"end":return S.stop()}}),_callee3,null,[[5,30,33,36]])}))),function printNewAnnotations(r,o,c,l){return t.apply(this,arguments)})}]);var t,r,o;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:_.ColorSpace.singletons.gray.getRgbItem(t,0,o,0);return o;case 3:_.ColorSpace.singletons.rgb.getRgbItem(t,0,o,0);return o;case 4:_.ColorSpace.singletons.cmyk.getRgbItem(t,0,o,0);return o;default:return r}}function getPdfColorArray(t){return Array.from(t,(function(t){return t/255}))}function getQuadPoints(t,r){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++){for(var h=1/0,d=-1/0,y=1/0,g=-1/0,v=8*l,m=8*l+8;v<m;v+=2){var _=o[v],w=o[v+1];h=Math.min(_,h);d=Math.max(_,d);y=Math.min(w,y);g=Math.max(w,g)}if(null!==r&&(h<r[0]||d>r[2]||y<r[1]||g>r[3]))return null;c.push([{x:h,y:g},{x:d,y:g},{x:h,y:y},{x:d,y:y}])}return c}function getTransformMatrix(t,r,o){var l=_slicedToArray(c.Util.getAxialAlignedBoundingBox(r,o),4),u=l[0],h=l[1],d=l[2],y=l[3];if(u===d||h===y)return[1,0,0,1,t[0],t[1]];var g=(t[2]-t[0])/(d-u),v=(t[3]-t[1])/(y-h);return[g,0,0,v,t[0]-u*g,t[1]-h*v]}var T=function(){function Annotation(t){_classCallCheck(this,Annotation);var r=t.dict,o=t.xref;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.setOptionalContent(r);var u=r.get("MK");this.setBorderAndBackgroundColors(u);this.setRotation(u,r);this.ref=t.ref instanceof h.Ref?t.ref:null;this._streams=[];this.appearance&&this._streams.push(this.appearance);var d=!!(this.flags&c.AnnotationFlag.LOCKED),y=!!(this.flags&c.AnnotationFlag.LOCKEDCONTENTS);this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&c.AnnotationFlag.NOROTATE),noHTML:d&&y};if(t.collectFields){var g=r.get("Kids");if(Array.isArray(g)){var v,m=[],_=_createForOfIteratorHelper(g);try{for(_.s();!(v=_.n()).done;){var w=v.value;w instanceof h.Ref&&m.push(w.toString())}}catch(t){_.e(t)}finally{_.f()}0!==m.length&&(this.data.kidIds=m)}this.data.actions=(0,l.collectActions)(o,r,c.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(r);this.data.pageIndex=t.pageIndex}this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported;this._fallbackFontDict=null;this._needAppearances=!1}_createClass(Annotation,[{key:"_hasFlag",value:function _hasFlag(t,r){return!!(t&r)}},{key:"_isViewable",value:function _isViewable(t){return!this._hasFlag(t,c.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,c.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function _isPrintable(t){return this._hasFlag(t,c.AnnotationFlag.PRINT)&&!this._hasFlag(t,c.AnnotationFlag.HIDDEN)&&!this._hasFlag(t,c.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function mustBeViewed(t,r){var o,l=null==t||null===(o=t.get(this.data.id))||void 0===o?void 0:o.noView;return void 0!==l?!l:this.viewable&&!this._hasFlag(this.flags,c.AnnotationFlag.HIDDEN)}},{key:"mustBePrinted",value:function mustBePrinted(t){var r,o=null==t||null===(r=t.get(this.data.id))||void 0===r?void 0:r.noPrint;return void 0!==o?!o: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,c.stringToPDFString)(t):"";return{str:r,dir:r&&"rtl"===(0,v.bidi)(r).dir?"rtl":"ltr"}}},{key:"setDefaultAppearance",value:function setDefaultAppearance(t){var r=(0,l.getInheritableProperty)({dict:t.dict,key:"DA"})||t.acroForm.get("DA");this._defaultAppearance="string"==typeof r?r:"";this.data.defaultAppearanceData=(0,u.parseDefaultAppearance)(this._defaultAppearance)}},{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){this.rectangle=Array.isArray(t)&&4===t.length?c.Util.normalizeRect(t):[0,0,0,0]}},{key:"setColor",value:function setColor(t){this.color=getRgbColor(t)}},{key:"setLineEndings",value:function setLineEndings(t){this.lineEndings=["None","None"];if(Array.isArray(t)&&2===t.length)for(var r=0;r<2;r++){var o=t[r];if(o instanceof h.Name)switch(o.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[r]=o.name;continue}(0,c.warn)("Ignoring invalid lineEnding: ".concat(o))}}},{key:"setRotation",value:function setRotation(t,r){this.rotation=0;var o=t instanceof h.Dict?t.get("R")||0:r.get("Rotate")||0;if(Number.isInteger(o)&&0!==o){(o%=360)<0&&(o+=360);o%90==0&&(this.rotation=o)}}},{key:"setBorderAndBackgroundColors",value:function setBorderAndBackgroundColors(t){if(t instanceof h.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 h.Dict)if(t.has("BS")){var r=t.get("BS"),o=r.get("Type");if(!o||(0,h.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 h.Dict){var o=r.get("N");if(o instanceof g.BaseStream)this.appearance=o;else if(o instanceof h.Dict){var c=t.get("AS");if(c instanceof h.Name&&o.has(c.name)){var l=o.get(c.name);l instanceof g.BaseStream&&(this.appearance=l)}}}}},{key:"setOptionalContent",value:function setOptionalContent(t){this.oc=null;var r=t.get("OC");r instanceof h.Name?(0,c.warn)("setOptionalContent: Support for /Name-entry is not implemented."):r instanceof h.Dict&&(this.oc=r)}},{key:"loadResources",value:function loadResources(t,r){return r.dict.getAsync("Resources").then((function(r){if(r){return new S.ObjectLoader(r,t,r.xref).load().then((function(){return r}))}}))}},{key:"getOperatorList",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(t,r,o,l,u){var y,g,v,m,_,w,k,S,x,O;return _regeneratorRuntime().wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:y=this.data;g=this.appearance;v=!!(this.data.hasOwnCanvas&&o&c.RenderingIntentFlag.DISPLAY);if(g){l.next=8;break}if(v){l.next=6;break}return l.abrupt("return",{opList:new C.OperatorList,separateForm:!1,separateCanvas:!1});case 6:(g=new d.StringStream("")).dict=new h.Dict;case 8:m=g.dict;l.next=11;return this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],g);case 11:_=l.sent;w=m.getArray("BBox")||[0,0,1,1];k=m.getArray("Matrix")||[1,0,0,1,0,0];S=getTransformMatrix(y.rect,w,k);x=new C.OperatorList;if(!this.oc){l.next=20;break}l.next=19;return t.parseMarkedContentProps(this.oc,null);case 19:O=l.sent;case 20:void 0!==O&&x.addOp(c.OPS.beginMarkedContentProps,["OC",O]);x.addOp(c.OPS.beginAnnotation,[y.id,y.rect,S,k,v]);l.next=24;return t.getOperatorList({stream:g,task:r,resources:_,operatorList:x,fallbackFontDict:this._fallbackFontDict});case 24:x.addOp(c.OPS.endAnnotation,[]);void 0!==O&&x.addOp(c.OPS.endMarkedContent,[]);this.reset();return l.abrupt("return",{opList:x,separateForm:!1,separateCanvas:v});case 28:case"end":return l.stop()}}),_callee4,this)}))),function getOperatorList(t,r,c,l,u){return o.apply(this,arguments)})},{key:"save",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(t,r,o){return _regeneratorRuntime().wrap((function _callee5$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),_callee5)}))),function save(t,o,c){return r.apply(this,arguments)})},{key:"hasTextContent",get:function get(){return!1}},{key:"extractTextContent",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(t,r,o){var l,u,h,d,y,g,v,m,_,w;return _regeneratorRuntime().wrap((function _callee6$(k){for(;;)switch(k.prev=k.next){case 0:if(this.appearance){k.next=2;break}return k.abrupt("return");case 2:k.next=4;return this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);case 4:l=k.sent;u=[];h=[];d=null;y={desiredSize:Math.Infinity,ready:!0,enqueue:function enqueue(t,r){var o,c=_createForOfIteratorHelper(t.items);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(void 0!==l.str){d||(d=l.transform.slice(-2));h.push(l.str);if(l.hasEOL){u.push(h.join(""));h.length=0}}}}catch(t){c.e(t)}finally{c.f()}}};k.next=11;return t.getTextContent({stream:this.appearance,task:r,resources:l,includeMarkedContent:!0,sink:y,viewBox:o});case 11:this.reset();h.length&&u.push(h.join(""));if(u.length>1||u[0]){g=this.appearance.dict;v=g.getArray("BBox")||[0,0,1,1];m=g.getArray("Matrix")||[1,0,0,1,0,0];_=this.data.rect;(w=getTransformMatrix(_,v,m))[4]-=_[0];w[5]-=_[1];d=c.Util.applyTransform(d,w);d=c.Util.applyTransform(d,m);this.data.textPosition=d;this.data.textContent=u}case 14:case"end":return k.stop()}}),_callee6,this)}))),function extractTextContent(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,rotation:this.rotation}:null}},{key:"reset",value:function reset(){var t,r=_createForOfIteratorHelper(this._streams);try{for(r.s();!(t=r.n()).done;){t.value.reset()}}catch(t){r.e(t)}finally{r.f()}}},{key:"_constructFieldName",value:function _constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){(0,c.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent"))return(0,c.stringToPDFString)(t.get("T"));var r=[];t.has("T")&&r.unshift((0,c.stringToPDFString)(t.get("T")));var o=t,l=new h.RefSet;t.objId&&l.put(t.objId);for(;o.has("Parent")&&(o=o.get("Parent"))instanceof h.Dict&&(!o.objId||!l.has(o.objId));){o.objId&&l.put(o.objId);if(o.has("T")){var u=(0,c.stringToPDFString)(o.get("T"));u.startsWith("#")||r.unshift(u)}}return r.join(".")}}]);var t,r,o;return Annotation}();r.Annotation=T;var E=function(){function AnnotationBorderStyle(){_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=c.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}_createClass(AnnotationBorderStyle,[{key:"setWidth",value:function setWidth(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(t instanceof h.Name)this.width=0;else if("number"==typeof t){if(t>0){var o=(r[2]-r[0])/2,l=(r[3]-r[1])/2;if(o>0&&l>0&&(t>o||t>l)){(0,c.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(t));t=1}}this.width=t}}},{key:"setStyle",value:function setStyle(t){if(t instanceof h.Name)switch(t.name){case"S":this.style=c.AnnotationBorderStyleType.SOLID;break;case"D":this.style=c.AnnotationBorderStyleType.DASHED;break;case"B":this.style=c.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=c.AnnotationBorderStyleType.INSET;break;case"U":this.style=c.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function setDashArray(t){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 d=o.value;if(!(+d>=0)){c=!1;break}d>0&&(l=!1)}}catch(t){u.e(t)}finally{u.f()}if(c&&!l){this.dashArray=t;r&&this.setStyle(h.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 R=function(t){_inherits(MarkupAnnotation,t);var r,o,l=_createSuper(MarkupAnnotation);function MarkupAnnotation(t){var r;_classCallCheck(this,MarkupAnnotation);r=l.call(this,t);var o=t.dict;if(o.has("IRT")){var u=o.getRaw("IRT");r.data.inReplyTo=u instanceof h.Ref?u.toString():null;var d=o.get("RT");r.data.replyType=d instanceof h.Name?d.name:c.AnnotationReplyType.REPLY}var y=null;if(r.data.replyType===c.AnnotationReplyType.GROUP){var g=o.get("IRT");r.setTitle(g.get("T"));r.data.titleObj=r._title;r.setContents(g.get("Contents"));r.data.contentsObj=r._contents;if(g.has("CreationDate")){r.setCreationDate(g.get("CreationDate"));r.data.creationDate=r.creationDate}else r.data.creationDate=null;if(g.has("M")){r.setModificationDate(g.get("M"));r.data.modificationDate=r.modificationDate}else r.data.modificationDate=null;y=g.getRaw("Popup");if(g.has("C")){r.setColor(g.getArray("C"));r.data.color=r.color}else r.data.color=null}else{r.data.titleObj=r._title;r.setCreationDate(o.get("CreationDate"));r.data.creationDate=r.creationDate;y=o.getRaw("Popup");o.has("C")||(r.data.color=null)}r.data.popupRef=y instanceof h.Ref?y.toString():null;o.has("RC")&&(r.data.richText=x.XFAFactory.getRichTextAsHtml(o.get("RC")));return r}_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,y=t.strokeAlpha,g=t.fillAlpha,v=t.pointsCallback,m=Number.MAX_VALUE,_=Number.MAX_VALUE,w=Number.MIN_VALUE,k=Number.MIN_VALUE,S=["q"];o&&S.push(o);c&&S.push("".concat(c[0]," ").concat(c[1]," ").concat(c[2]," RG"));l&&S.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(v(S,x.value),4),E=T[0],R=T[1],M=T[2],j=T[3];m=Math.min(m,E);w=Math.max(w,R);_=Math.min(_,M);k=Math.max(k,j)}}catch(t){O.e(t)}finally{O.f()}S.push("Q");var L=new h.Dict(r),D=new h.Dict(r);D.set("Subtype",h.Name.get("Form"));var N=new d.StringStream(S.join(" "));N.dict=D;L.set("Fm0",N);var U=new h.Dict(r);u&&U.set("BM",h.Name.get(u));"number"==typeof y&&U.set("CA",y);"number"==typeof g&&U.set("ca",g);var G=new h.Dict(r);G.set("GS0",U);var $=new h.Dict(r);$.set("ExtGState",G);$.set("XObject",L);var H=new h.Dict(r);H.set("Resources",$);var X=this.data.rect=[m,_,w,k];H.set("BBox",X);this.appearance=new d.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=H;this._streams.push(this.appearance,N)}}],[{key:"createNewAnnotation",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee7(t,r,o,c){var l,u,h,d,g,v,m;return _regeneratorRuntime().wrap((function _callee7$(_){for(;;)switch(_.prev=_.next){case 0:l=r.ref||t.getNewTemporaryRef();_.next=3;return this.createNewAppearanceStream(r,t,c);case 3:u=_.sent;h=[];if(!u){_.next=14;break}g=t.getNewTemporaryRef();d=this.createNewDict(r,t,{apRef:g});v=t.encrypt?t.encrypt.createCipherTransform(g.num,g.gen):null;_.next=11;return(0,y.writeObject)(g,u,h,v);case 11:o.push({ref:g,data:h.join("")});_.next=15;break;case 14:d=this.createNewDict(r,t,{});case 15:h.length=0;m=t.encrypt?t.encrypt.createCipherTransform(l.num,l.gen):null;_.next=19;return(0,y.writeObject)(l,d,h,m);case 19:return _.abrupt("return",{ref:l,data:h.join("")});case 20:case"end":return _.stop()}}),_callee7,this)}))),function createNewAnnotation(t,r,c,l){return o.apply(this,arguments)})},{key:"createNewPrintAnnotation",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee8(t,r,o){var c,l,u;return _regeneratorRuntime().wrap((function _callee8$(h){for(;;)switch(h.prev=h.next){case 0:h.next=2;return this.createNewAppearanceStream(r,t,o);case 2:c=h.sent;l=this.createNewDict(r,t,{ap:c});u=new this.prototype.constructor({dict:l,xref:t,evaluatorOptions:o.evaluatorOptions});r.ref&&(u.ref=u.refToReplace=r.ref);return h.abrupt("return",u);case 7:case"end":return h.stop()}}),_callee8,this)}))),function createNewPrintAnnotation(t,o,c){return r.apply(this,arguments)})}]);return MarkupAnnotation}(T);r.MarkupAnnotation=R;var M=function(t){_inherits(WidgetAnnotation,t);var r,o,g,v,m=_createSuper(WidgetAnnotation);function WidgetAnnotation(t){var r,o;_classCallCheck(this,WidgetAnnotation);o=m.call(this,t);var u=t.dict,d=t.xref,y=o.data;o._needAppearances=t.needAppearances;y.annotationType=c.AnnotationType.WIDGET;void 0===y.fieldName&&(y.fieldName=o._constructFieldName(u));void 0===y.actions&&(y.actions=(0,l.collectActions)(d,u,c.AnnotationActionEventType));var g=(0,l.getInheritableProperty)({dict:u,key:"V",getArray:!0});y.fieldValue=o._decodeFormValue(g);var v=(0,l.getInheritableProperty)({dict:u,key:"DV",getArray:!0});y.defaultFieldValue=o._decodeFormValue(v);if(void 0===g&&t.xfaDatasets){var _=o._title.str;if(_){o._hasValueFromXFA=!0;y.fieldValue=g=t.xfaDatasets.getValue(_)}}void 0===g&&null!==y.defaultFieldValue&&(y.fieldValue=y.defaultFieldValue);y.alternativeText=(0,c.stringToPDFString)(u.get("TU")||"");o.setDefaultAppearance(t);y.hasAppearance||(y.hasAppearance=o._needAppearances&&void 0!==y.fieldValue&&null!==y.fieldValue);var w=(0,l.getInheritableProperty)({dict:u,key:"FT"});y.fieldType=w instanceof h.Name?w.name:null;var k=(0,l.getInheritableProperty)({dict:u,key:"DR"}),S=t.acroForm.get("DR"),C=null===(r=o.appearance)||void 0===r?void 0:r.dict.get("Resources");o._fieldResources={localResources:k,acroFormResources:S,appearanceResources:C,mergedResources:h.Dict.merge({xref:d,dictArray:[k,C,S],mergeSubDicts:!0})};y.fieldFlags=(0,l.getInheritableProperty)({dict:u,key:"Ff"});(!Number.isInteger(y.fieldFlags)||y.fieldFlags<0)&&(y.fieldFlags=0);y.readOnly=o.hasFieldFlag(c.AnnotationFieldFlag.READONLY);y.required=o.hasFieldFlag(c.AnnotationFieldFlag.REQUIRED);y.hidden=o._hasFlag(y.annotationFlags,c.AnnotationFlag.HIDDEN)||o._hasFlag(y.annotationFlags,c.AnnotationFlag.NOVIEW);if("Sig"===y.fieldType&&!self.showUnverifiedSignatures){o.setFlags(c.AnnotationFlag.HIDDEN);(0,c.info)("The PDF file contains a signature. Please take into account that it can't be verified yet. By default, ngx-extended-pdf-viewer hides signatures until you configure it otherwise.")}return o}_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,c.stringToPDFString)(t)})):t instanceof h.Name?(0,c.stringToPDFString)(t.name):"string"==typeof t?(0,c.stringToPDFString)(t):null}},{key:"hasFieldFlag",value:function hasFieldFlag(t){return!!(this.data.fieldFlags&t)}},{key:"_isViewable",value:function _isViewable(t){return!this._hasFlag(t,c.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function mustBeViewed(t,r){return r?this.viewable:_get(_getPrototypeOf(WidgetAnnotation.prototype),"mustBeViewed",this).call(this,t,r)&&!this._hasFlag(this.flags,c.AnnotationFlag.NOVIEW)}},{key:"getRotationMatrix",value:function getRotationMatrix(t){var r,o=null==t||null===(r=t.get(this.data.id))||void 0===r?void 0:r.rotation;void 0===o&&(o=this.rotation);if(0===o)return c.IDENTITY_MATRIX;var u=this.data.rect[2]-this.data.rect[0],h=this.data.rect[3]-this.data.rect[1];return(0,l.getRotationMatrix)(o,u,h)}},{key:"getBorderAndBackgroundAppearances",value:function getBorderAndBackgroundAppearances(t){var r,o=null==t||null===(r=t.get(this.data.id))||void 0===r?void 0:r.rotation;void 0===o&&(o=this.rotation);if(!this.backgroundColor&&!this.borderColor)return"";var c=this.data.rect[2]-this.data.rect[0],l=this.data.rect[3]-this.data.rect[1],h=0===o||180===o?"0 0 ".concat(c," ").concat(l," re"):"0 0 ".concat(l," ").concat(c," re"),d="";this.backgroundColor&&(d="".concat((0,u.getPdfColor)(this.backgroundColor,!0)," ").concat(h," f "));if(this.borderColor){var y=this.borderStyle.width||1;d+="".concat(y," w ").concat((0,u.getPdfColor)(this.borderColor,!1)," ").concat(h," S ")}return d}},{key:"getOperatorList",value:(v=_asyncToGenerator(_regeneratorRuntime().mark((function _callee9(t,r,o,l,u){var h,y,g,v,m,_,w,k;return _regeneratorRuntime().wrap((function _callee9$(S){for(;;)switch(S.prev=S.next){case 0:if(!l||this instanceof N||this.data.noHTML||this.data.hasOwnCanvas){S.next=2;break}return S.abrupt("return",{opList:new C.OperatorList,separateForm:!0,separateCanvas:!1});case 2:if(this._hasText){S.next=4;break}return S.abrupt("return",_get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l,u));case 4:S.next=6;return this._getAppearance(t,r,o,u);case 6:h=S.sent;if(!this.appearance||null!==h){S.next=9;break}return S.abrupt("return",_get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l,u));case 9:y=new C.OperatorList;if(this._defaultAppearance&&null!==h){S.next=12;break}return S.abrupt("return",{opList:y,separateForm:!1,separateCanvas:!1});case 12:g=!!(this.data.hasOwnCanvas&&o&c.RenderingIntentFlag.DISPLAY);v=[1,0,0,1,0,0];m=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];_=getTransformMatrix(this.data.rect,m,v);if(!this.oc){S.next=20;break}S.next=19;return t.parseMarkedContentProps(this.oc,null);case 19:w=S.sent;case 20:void 0!==w&&y.addOp(c.OPS.beginMarkedContentProps,["OC",w]);y.addOp(c.OPS.beginAnnotation,[this.data.id,this.data.rect,_,this.getRotationMatrix(u),g]);k=new d.StringStream(h);S.next=25;return t.getOperatorList({stream:k,task:r,resources:this._fieldResources.mergedResources,operatorList:y});case 25:y.addOp(c.OPS.endAnnotation,[]);void 0!==w&&y.addOp(c.OPS.endMarkedContent,[]);return S.abrupt("return",{opList:y,separateForm:!1,separateCanvas:g});case 28:case"end":return S.stop()}}),_callee9,this)}))),function getOperatorList(t,r,o,c,l){return v.apply(this,arguments)})},{key:"_getMKDict",value:function _getMKDict(t){var r=new h.Dict(null);t&&r.set("R",t);this.borderColor&&r.set("BC",getPdfColorArray(this.borderColor));this.backgroundColor&&r.set("BG",getPdfColorArray(this.backgroundColor));return r.size>0?r:null}},{key:"amendSavedDict",value:function amendSavedDict(t,r){}},{key:"save",value:(g=_asyncToGenerator(_regeneratorRuntime().mark((function _callee10(t,r,o){var u,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D,N,U,G,$,H,X,q,z,W=this;return _regeneratorRuntime().wrap((function _callee10$(V){for(;;)switch(V.prev=V.next){case 0:g=null==o?void 0:o.get(this.data.id);v=null==g?void 0:g.value,m=null==g?void 0:g.rotation;if(v!==this.data.fieldValue&&void 0!==v){V.next=6;break}if(this._hasValueFromXFA||void 0!==m){V.next=5;break}return V.abrupt("return",null);case 5:v||(v=this.data.fieldValue);case 6:if(void 0!==m||this._hasValueFromXFA||!Array.isArray(v)||!Array.isArray(this.data.fieldValue)||v.length!==this.data.fieldValue.length||!v.every((function(t,r){return t===W.data.fieldValue[r]}))){V.next=8;break}return V.abrupt("return",null);case 8:void 0===m&&(m=this.rotation);_=null;if(this._needAppearances){V.next=18;break}V.next=13;return this._getAppearance(t,r,c.RenderingIntentFlag.SAVE,o);case 13:if(null!==(_=V.sent)){V.next=16;break}return V.abrupt("return",null);case 16:V.next=18;break;case 18:w=!1;if(null!==(u=_)&&void 0!==u&&u.needAppearances){w=!0;_=null}k=t.xref;if((S=k.fetchIfRef(this.ref))instanceof h.Dict){V.next=24;break}return V.abrupt("return",null);case 24:C=new h.Dict(k);x=_createForOfIteratorHelper(S.getKeys());try{for(x.s();!(O=x.n()).done;)"AP"!==(T=O.value)&&C.set(T,S.getRaw(T))}catch(t){x.e(t)}finally{x.f()}E={path:this.data.fieldName,value:v};R=function encoder(t){return(0,l.isAscii)(t)?t:(0,l.stringToUTF16String)(t,!0)};C.set("V",Array.isArray(v)?v.map(R):R(v));this.amendSavedDict(o,C);(M=this._getMKDict(m))&&C.set("MK",M);j=k.encrypt;L=j?j.createCipherTransform(this.ref.num,this.ref.gen):null;D=[];N=[{ref:this.ref,data:"",xfa:E,needAppearances:w}];if(null===_){V.next=56;break}U=k.getNewTemporaryRef();G=new h.Dict(k);C.set("AP",G);G.set("N",U);$=null;j&&($=j.createCipherTransform(U.num,U.gen));H=this._getSaveFieldResources(k);X=new d.StringStream(_);(q=X.dict=new h.Dict(k)).set("Subtype",h.Name.get("Form"));q.set("Resources",H);q.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);(z=this.getRotationMatrix(o))!==c.IDENTITY_MATRIX&&q.set("Matrix",z);V.next=54;return(0,y.writeObject)(U,X,D,$);case 54:N.push({ref:U,data:D.join(""),xfa:null,needAppearances:!1});D.length=0;case 56:C.set("M","D:".concat((0,c.getModificationDate)()));V.next=59;return(0,y.writeObject)(this.ref,C,D,L);case 59:N[0].data=D.join("");return V.abrupt("return",N);case 61:case"end":return V.stop()}}),_callee10,this)}))),function save(t,r,o){return g.apply(this,arguments)})},{key:"_getAppearance",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee11(t,r,o,h){var d,y,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D,N,U,G,$,H,X,q,z,W,V,K,Y,J,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce,le;return _regeneratorRuntime().wrap((function _callee11$(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!this.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD)){ue.next=3;break}return ue.abrupt("return",null);case 3:if(d=null==h?void 0:h.get(this.data.id)){y=d.formattedValue||d.value;g=d.rotation}if(void 0!==g||void 0!==y||this._needAppearances){ue.next=8;break}if(this._hasValueFromXFA&&!this.appearance){ue.next=8;break}return ue.abrupt("return",null);case 8:v=this.getBorderAndBackgroundAppearances(h);if(void 0!==y){ue.next=13;break}if(y=this.data.fieldValue){ue.next=13;break}return ue.abrupt("return","/Tx BMC q ".concat(v,"Q EMC"));case 13:Array.isArray(y)&&1===y.length&&(y=y[0]);(0,c.assert)("string"==typeof y,"Expected `value` to be a string.");y=y.trim();if(this.data.combo){m=this.data.options.find((function(t){var r=t.exportValue;return y===r}));y=(null==m?void 0:m.displayValue)||y}if(""!==y){ue.next=19;break}return ue.abrupt("return","/Tx BMC q ".concat(v,"Q EMC"));case 19:void 0===g&&(g=this.rotation);_=-1;if(this.data.multiLine){w=y.split(/\r\n?|\n/).map((function(t){return t.normalize("NFC")}));_=w.length}else w=[y.replace(/\r\n?|\n/,"").normalize("NFC")];k=1;S=2;C=this.data.rect[3]-this.data.rect[1];x=this.data.rect[2]-this.data.rect[0];if(90===g||270===g){x=(O=[C,x])[0];C=O[1]}this._defaultAppearance||(this.data.defaultAppearanceData=(0,u.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));ue.next=30;return WidgetAnnotation._getFontData(t,r,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 30:T=ue.sent;j=[];L=!1;D=_createForOfIteratorHelper(w);try{for(D.s();!(N=D.n()).done;){U=N.value;(G=T.encodeString(U)).length>1&&(L=!0);j.push(G.join(""))}}catch(t){D.e(t)}finally{D.f()}if(!(L&&o&c.RenderingIntentFlag.SAVE)){ue.next=37;break}return ue.abrupt("return",{needAppearances:!0});case 37:if(!L||!this._isOffscreenCanvasSupported){ue.next=59;break}$=this.data.comb?"monospace":"sans-serif";H=new u.FakeUnicodeFont(t.xref,$);X=H.createFontResources(w.join(""));q=X.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){z=this._fieldResources.mergedResources.get("Font");W=_createForOfIteratorHelper(q.getKeys());try{for(W.s();!(V=W.n()).done;){K=V.value;z.set(K,q.getRaw(K))}}catch(t){W.e(t)}finally{W.f()}}else this._fieldResources.mergedResources.set("Font",q);Y=H.fontName.name;ue.next=46;return WidgetAnnotation._getFontData(t,r,{fontName:Y,fontSize:0},X);case 46:T=ue.sent;for(J=0,Z=j.length;J<Z;J++)j[J]=(0,l.stringToUTF16String)(w[J]);Q=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0;this.data.defaultAppearanceData.fontName=Y;ee=this._computeFontSize(C-2*k,x-2*S,y,T,_);te=_slicedToArray(ee,3);E=te[0];R=te[1];M=te[2];this.data.defaultAppearanceData=Q;ue.next=65;break;case 59:this._isOffscreenCanvasSupported||(0,c.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly.");re=this._computeFontSize(C-2*k,x-2*S,y,T,_);ne=_slicedToArray(re,3);E=ne[0];R=ne[1];M=ne[2];case 65:ae=T.descent;ae=isNaN(ae)?c.BASELINE_FACTOR*M:Math.max(c.BASELINE_FACTOR*M,Math.abs(ae)*R);ie=Math.min(Math.floor((C-R)/2),k);oe=this.data.textAlignment;if(!this.data.multiLine){ue.next=71;break}return ue.abrupt("return",this._getMultilineAppearance(E,j,T,R,x,C,oe,S,ie,ae,M,h));case 71:if(!this.data.comb){ue.next=73;break}return ue.abrupt("return",this._getCombAppearance(E,T,j[0],R,x,C,S,ie,ae,M,h));case 73:se=ie+ae;if(!(0===oe||oe>2)){ue.next=76;break}return ue.abrupt("return","/Tx BMC q ".concat(v,"BT ")+E+" 1 0 0 1 ".concat((0,l.numberToString)(S)," ").concat((0,l.numberToString)(se)," Tm (").concat((0,l.escapeString)(j[0]),") Tj")+" ET Q EMC");case 76:ce={shift:0};le=this._renderText(j[0],T,R,x,oe,ce,S,se);return ue.abrupt("return","/Tx BMC q ".concat(v,"BT ")+E+" 1 0 0 1 0 0 Tm ".concat(le)+" ET Q EMC");case 79:case"end":return ue.stop()}}),_callee11,this)}))),function _getAppearance(t,r,c,l){return o.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,l,h){var d=this,y=this.data.defaultAppearanceData.fontSize,g=(y||12)*c.LINE_FACTOR,v=Math.round(t/g);if(!y){var m=function roundWithTwoDigits(t){return Math.floor(100*t)/100};if(-1===h){var _=this._getTextWidth(o,l);y=m(Math.min(t/c.LINE_FACTOR,_>r?r/_:1/0));v=1}else{var w,k=o.split(/\r\n?|\n/),S=[],C=_createForOfIteratorHelper(k);try{for(C.s();!(w=C.n()).done;){var x=w.value,O=l.encodeString(x).join(""),T=l.charsToGlyphs(O),E=l.getCharPositions(O);S.push({line:O,glyphs:T,positions:E})}}catch(t){C.e(t)}finally{C.f()}var R=function isTooBig(o){for(var c=0,u=0,h=S;u<h.length;u++){var y=h[u];if((c+=d._splitLine(null,l,o,r,y).length*o)>t)return!0}return!1};v=Math.max(v,h);for(;R(y=m((g=t/v)/c.LINE_FACTOR));)v++}var M=this.data.defaultAppearanceData,j=M.fontName,L=M.fontColor;this._defaultAppearance=(0,u.createDefaultAppearance)({fontSize:y,fontName:j,fontColor:L})}return[this._defaultAppearance,y,t/v]}},{key:"_renderText",value:function _renderText(t,r,o,c,u,h,d,y){var g;if(1===u){g=(c-this._getTextWidth(t,r)*o)/2}else if(2===u){g=c-this._getTextWidth(t,r)*o-d}else g=d;var v=(0,l.numberToString)(g-h.shift);h.shift=g;y=(0,l.numberToString)(y);return"".concat(v," ").concat(y," Td (").concat((0,l.escapeString)(t),") Tj")}},{key:"_getSaveFieldResources",value:function _getSaveFieldResources(t){var r,o=this._fieldResources,c=o.localResources,l=o.appearanceResources,u=o.acroFormResources,d=null===(r=this.data.defaultAppearanceData)||void 0===r?void 0:r.fontName;if(!d)return c||h.Dict.empty;for(var y=0,g=[c,l];y<g.length;y++){var v=g[y];if(v instanceof h.Dict){var m=v.get("Font");if(m instanceof h.Dict&&m.has(d))return v}}if(u instanceof h.Dict){var _=u.get("Font");if(_ instanceof h.Dict&&_.has(d)){var w=new h.Dict(t);w.set(d,_.getRaw(d));var k=new h.Dict(t);k.set("Font",w);return h.Dict.merge({xref:t,dictArray:[k,c],mergeSubDicts:!0})}}return c||h.Dict.empty}},{key:"getFieldObject",value:function getFieldObject(){return null}}],[{key:"_getFontData",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee12(t,r,o,c){var l,u,d,y;return _regeneratorRuntime().wrap((function _callee12$(g){for(;;)switch(g.prev=g.next){case 0:l=new C.OperatorList;u={font:null,clone:function clone(){return this}};d=o.fontName,y=o.fontSize;g.next=5;return t.handleSetFont(c,[d&&h.Name.get(d),y],null,l,r,u,null);case 5:return g.abrupt("return",u.font);case 6:case"end":return g.stop()}}),_callee12)}))),function _getFontData(t,o,c,l){return r.apply(this,arguments)})}]);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)).data.hasOwnCanvas=o.data.readOnly&&!o.data.noHTML;o._hasText=!0;var u=t.dict;"string"!=typeof o.data.fieldValue&&(o.data.fieldValue="");var h=(0,l.getInheritableProperty)({dict:u,key:"Q"});(!Number.isInteger(h)||h<0||h>2)&&(h=null);o.data.textAlignment=h;var d=(0,l.getInheritableProperty)({dict:u,key:"MaxLen"});(!Number.isInteger(d)||d<0)&&(d=0);o.data.maxLen=d;o.data.multiLine=o.hasFieldFlag(c.AnnotationFieldFlag.MULTILINE);o.data.comb=o.hasFieldFlag(c.AnnotationFieldFlag.COMB)&&!o.hasFieldFlag(c.AnnotationFieldFlag.MULTILINE)&&!o.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD)&&!o.hasFieldFlag(c.AnnotationFieldFlag.FILESELECT)&&0!==o.data.maxLen;o.data.doNotScroll=o.hasFieldFlag(c.AnnotationFieldFlag.DONOTSCROLL);return o}_createClass(TextWidgetAnnotation,[{key:"hasTextContent",get:function get(){return!!this.appearance&&!this._needAppearances}},{key:"_getCombAppearance",value:function _getCombAppearance(t,r,o,c,u,h,d,y,g,v,m){var _,w=u/this.data.maxLen,k=this.getBorderAndBackgroundAppearances(m),S=[],C=_createForOfIteratorHelper(r.getCharPositions(o));try{for(C.s();!(_=C.n()).done;){var x=_slicedToArray(_.value,2),O=x[0],T=x[1];S.push("(".concat((0,l.escapeString)(o.substring(O,T)),") Tj"))}}catch(t){C.e(t)}finally{C.f()}var E=S.join(" ".concat((0,l.numberToString)(w)," 0 Td "));return"/Tx BMC q ".concat(k,"BT ")+t+" 1 0 0 1 ".concat((0,l.numberToString)(d)," ").concat((0,l.numberToString)(y+g)," Tm ").concat(E)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function _getMultilineAppearance(t,r,o,c,u,h,d,y,g,v,m,_){for(var w=[],k=u-2*y,S={shift:0},C=0,x=r.length;C<x;C++)for(var O=r[C],T=this._splitLine(O,o,c,k),E=0,R=T.length;E<R;E++){var M=T[E],j=0===C&&0===E?-g-(m-v):-m;w.push(this._renderText(M,o,c,u,d,S,y,j))}var L=this.getBorderAndBackgroundAppearances(_),D=w.join("\n");return"/Tx BMC q ".concat(L,"BT ")+t+" 1 0 0 1 0 ".concat((0,l.numberToString)(h)," Tm ").concat(D)+" 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||t;var u=l.glyphs||r.charsToGlyphs(t);if(u.length<=1)return[t];for(var h=l.positions||r.getCharPositions(t),d=o/1e3,y=[],g=-1,v=-1,m=-1,_=0,w=0,k=0,S=u.length;k<S;k++){var C=_slicedToArray(h[k],2),x=C[0],O=C[1],T=u[k],E=T.width*d;if(" "===T.unicode)if(w+E>c){y.push(t.substring(_,x));_=x;w=E;g=-1;m=-1}else{w+=E;g=x;v=O;m=k}else if(w+E>c)if(-1!==g){y.push(t.substring(_,v));_=v;k=m+1;g=-1;w=0}else{y.push(t.substring(_,x));_=x;w=E}else w+=E}_<t.length&&y.push(t.substring(_,t.length));return y}},{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}]);return TextWidgetAnnotation}(M),L=function(t){_inherits(ButtonWidgetAnnotation,t);var r,o,u,v,_=_createSuper(ButtonWidgetAnnotation);function ButtonWidgetAnnotation(t){var r;_classCallCheck(this,ButtonWidgetAnnotation);(r=_.call(this,t)).checkedAppearance=null;r.uncheckedAppearance=null;r.data.checkBox=!r.hasFieldFlag(c.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.radioButton=r.hasFieldFlag(c.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.pushButton=r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.isTooltipOnly=!1;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,c.warn)("Invalid field flags for button widget annotation");return r}_createClass(ButtonWidgetAnnotation,[{key:"getOperatorList",value:(v=_asyncToGenerator(_regeneratorRuntime().mark((function _callee13(t,r,o,l,u){var h,d,y,g,v,m,_;return _regeneratorRuntime().wrap((function _callee13$(w){for(;;)switch(w.prev=w.next){case 0:if(!this.data.pushButton){w.next=2;break}return w.abrupt("return",_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,!1,u));case 2:h=null;d=null;if(u){y=u.get(this.data.id);h=y?y.value:null;d=y?y.rotation:null}if(null!==h||!this.appearance){w.next=7;break}return w.abrupt("return",_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l,u));case 7:null==h&&(h=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);if(!(g=h?this.checkedAppearance:this.uncheckedAppearance)){w.next=18;break}v=this.appearance;m=g.dict.getArray("Matrix")||c.IDENTITY_MATRIX;d&&g.dict.set("Matrix",this.getRotationMatrix(u));this.appearance=g;_=_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l,u);this.appearance=v;g.dict.set("Matrix",m);return w.abrupt("return",_);case 18:return w.abrupt("return",{opList:new C.OperatorList,separateForm:!1,separateCanvas:!1});case 19:case"end":return w.stop()}}),_callee13,this)}))),function getOperatorList(t,r,o,c,l){return v.apply(this,arguments)})},{key:"save",value:(u=_asyncToGenerator(_regeneratorRuntime().mark((function _callee14(t,r,o){return _regeneratorRuntime().wrap((function _callee14$(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()}}),_callee14,this)}))),function save(t,r,o){return u.apply(this,arguments)})},{key:"_saveCheckbox",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee15(t,r,o){var l,u,d,g,v,m,_,w,k,S;return _regeneratorRuntime().wrap((function _callee15$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:l=o.get(this.data.id);u=null==l?void 0:l.rotation,d=null==l?void 0:l.value;if(void 0!==u){r.next=10;break}if(void 0!==d){r.next=7;break}return r.abrupt("return",null);case 7:if(this.data.fieldValue===this.data.exportValue!==d){r.next=10;break}return r.abrupt("return",null);case 10:if((g=t.xref.fetchIfRef(this.ref))instanceof h.Dict){r.next=13;break}return r.abrupt("return",null);case 13:void 0===u&&(u=this.rotation);void 0===d&&(d=this.data.fieldValue===this.data.exportValue);v={path:this.data.fieldName,value:d?this.data.exportValue:""};m=h.Name.get(d?this.data.exportValue:"Off");g.set("V",m);g.set("AS",m);g.set("M","D:".concat((0,c.getModificationDate)()));(_=this._getMKDict(u))&&g.set("MK",_);w=t.xref.encrypt;k=null;w&&(k=w.createCipherTransform(this.ref.num,this.ref.gen));S=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];r.next=28;return(0,y.writeDict)(g,S,k);case 28:S.push("\nendobj\n");return r.abrupt("return",[{ref:this.ref,data:S.join(""),xfa:v}]);case 30:case"end":return r.stop()}}),_callee15,this)}))),function _saveCheckbox(t,r,c){return o.apply(this,arguments)})},{key:"_saveRadioButton",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee16(t,r,o){var l,u,d,g,v,m,_,w,k,S,C,x,O,T;return _regeneratorRuntime().wrap((function _callee16$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:l=o.get(this.data.id);u=null==l?void 0:l.rotation,d=null==l?void 0:l.value;if(void 0!==u){r.next=10;break}if(void 0!==d){r.next=7;break}return r.abrupt("return",null);case 7:if(this.data.fieldValue===this.data.buttonValue!==d){r.next=10;break}return r.abrupt("return",null);case 10:if((g=t.xref.fetchIfRef(this.ref))instanceof h.Dict){r.next=13;break}return r.abrupt("return",null);case 13:void 0===d&&(d=this.data.fieldValue===this.data.buttonValue);void 0===u&&(u=this.rotation);v={path:this.data.fieldName,value:d?this.data.buttonValue:""};m=h.Name.get(d?this.data.buttonValue:"Off");_=null;w=t.xref.encrypt;if(!d){r.next=32;break}if(!(this.parent instanceof h.Ref)){r.next=31;break}k=t.xref.fetch(this.parent);S=null;w&&(S=w.createCipherTransform(this.parent.num,this.parent.gen));k.set("V",m);_=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")];r.next=28;return(0,y.writeDict)(k,_,S);case 28:_.push("\nendobj\n");r.next=32;break;case 31:this.parent instanceof h.Dict&&this.parent.set("V",m);case 32:g.set("AS",m);g.set("M","D:".concat((0,c.getModificationDate)()));(C=this._getMKDict(u))&&g.set("MK",C);x=null;w&&(x=w.createCipherTransform(this.ref.num,this.ref.gen));O=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];r.next=41;return(0,y.writeDict)(g,O,x);case 41:O.push("\nendobj\n");T=[{ref:this.ref,data:O.join(""),xfa:v}];null!==_&&T.push({ref:this.parent,data:_.join(""),xfa:null});return r.abrupt("return",T);case 45:case"end":return r.stop()}}),_callee16,this)}))),function _saveRadioButton(t,o,c){return r.apply(this,arguments)})},{key:"_getDefaultCheckedAppearance",value:function _getDefaultCheckedAppearance(t,r){var o,u,y=this.data.rect[2]-this.data.rect[0],g=this.data.rect[3]-this.data.rect[1],v=[0,0,y,g],m=.8*Math.min(y,g);if("check"===r){o={width:.755*m,height:.705*m};u="3"}else if("disc"===r){o={width:.791*m,height:.705*m};u="l"}else(0,c.unreachable)("_getDefaultCheckedAppearance - unsupported type: ".concat(r));var _=(0,l.numberToString)((y-o.width)/2),w=(0,l.numberToString)((g-o.height)/2),k="q BT /PdfJsZaDb ".concat(m," Tf 0 g ").concat(_," ").concat(w," Td (").concat(u,") Tj ET Q"),S=new h.Dict(t.xref);S.set("FormType",1);S.set("Subtype",h.Name.get("Form"));S.set("Type",h.Name.get("XObject"));S.set("BBox",v);S.set("Matrix",[1,0,0,1,0,0]);S.set("Length",k.length);var C=new h.Dict(t.xref),x=new h.Dict(t.xref);x.set("PdfJsZaDb",this.fallbackFontDict);C.set("Font",x);S.set("Resources",C);this.checkedAppearance=new d.StringStream(k);this.checkedAppearance.dict=S;this._streams.push(this.checkedAppearance)}},{key:"_processCheckBox",value:function _processCheckBox(t){var r=t.dict.get("AP");if(r instanceof h.Dict){var o=r.get("N");if(o instanceof h.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 d=u.find((function(t){return"Off"!==t}));u.length=0;u.push("Off",d)}u.includes(this.data.fieldValue)||(this.data.fieldValue="Off");this.data.exportValue=u[1];var y=o.get(this.data.exportValue);this.checkedAppearance=y instanceof g.BaseStream?y:null;var v=o.get("Off");this.uncheckedAppearance=v instanceof g.BaseStream?v:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"check");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}},{key:"_processRadioButton",value:function _processRadioButton(t){this.data.fieldValue=this.data.buttonValue=null;var r=t.dict.get("Parent");if(r instanceof h.Dict){this.parent=t.dict.getRaw("Parent");var o=r.get("V");o instanceof h.Name&&(this.data.fieldValue=this._decodeFormValue(o))}var c=t.dict.get("AP");if(c instanceof h.Dict){var l=c.get("N");if(l instanceof h.Dict){var u,d=_createForOfIteratorHelper(l.getKeys());try{for(d.s();!(u=d.n()).done;){var y=u.value;if("Off"!==y){this.data.buttonValue=this._decodeFormValue(y);break}}}catch(t){d.e(t)}finally{d.f()}var v=l.get(this.data.buttonValue);this.checkedAppearance=v instanceof g.BaseStream?v:null;var m=l.get("Off");this.uncheckedAppearance=m instanceof g.BaseStream?m:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(t,"disc");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}},{key:"_processPushButton",value:function _processPushButton(t){if(t.dict.has("A")||t.dict.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!t.dict.has("A")&&!t.dict.has("AA");m.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl,docAttachments:t.attachments})}else(0,c.warn)("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function getFieldObject(){var t,r="button";if(this.data.checkBox){r="checkbox";t=this.data.exportValue}else if(this.data.radioButton){r="radiobutton";t=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:r}}},{key:"fallbackFontDict",get:function get(){var t=new h.Dict;t.set("BaseFont",h.Name.get("ZapfDingbats"));t.set("Type",h.Name.get("FallbackType"));t.set("Subtype",h.Name.get("FallbackType"));t.set("Encoding",h.Name.get("ZapfDingbatsEncoding"));return(0,c.shadow)(this,"fallbackFontDict",t)}}]);return ButtonWidgetAnnotation}(M),D=function(t){_inherits(ChoiceWidgetAnnotation,t);var r,o=_createSuper(ChoiceWidgetAnnotation);function ChoiceWidgetAnnotation(t){var r;_classCallCheck(this,ChoiceWidgetAnnotation);r=o.call(this,t);var u=t.dict,h=t.xref;r.indices=u.getArray("I");r.hasIndices=Array.isArray(r.indices)&&r.indices.length>0;r.data.options=[];var d=(0,l.getInheritableProperty)({dict:u,key:"Opt"});if(Array.isArray(d))for(var y=0,g=d.length;y<g;y++){var v=h.fetchIfRef(d[y]),m=Array.isArray(v);r.data.options[y]={exportValue:r._decodeFormValue(m?h.fetchIfRef(v[0]):v),displayValue:r._decodeFormValue(m?h.fetchIfRef(v[1]):v)}}if(r.hasIndices){r.data.fieldValue=[];var _,w=r.data.options.length,k=_createForOfIteratorHelper(r.indices);try{for(k.s();!(_=k.n()).done;){var S=_.value;Number.isInteger(S)&&S>=0&&S<w&&r.data.fieldValue.push(r.data.options[S].exportValue)}}catch(t){k.e(t)}finally{k.f()}}else"string"==typeof r.data.fieldValue?r.data.fieldValue=[r.data.fieldValue]:r.data.fieldValue||(r.data.fieldValue=[]);r.data.combo=r.hasFieldFlag(c.AnnotationFieldFlag.COMBO);r.data.multiSelect=r.hasFieldFlag(c.AnnotationFieldFlag.MULTISELECT);r._hasText=!0;return r}_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,rotation:this.rotation,type:t}}},{key:"amendSavedDict",value:function amendSavedDict(t,r){var o;if(this.hasIndices){var c=null==t||null===(o=t.get(this.data.id))||void 0===o?void 0:o.value;Array.isArray(c)||(c=[c]);for(var l=[],u=this.data.options,h=0,d=0,y=u.length;h<y;h++)if(u[h].exportValue===c[d]){l.push(h);d+=1}r.set("I",l)}}},{key:"_getAppearance",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee17(t,r,o,l){var h,d,y,g,v,m,_,w,k,S,C,x,O,T,E,R,j,L,D,N,U,G,$,H,X,q,z,W,V,K,Y,J,Z,Q,ee,te,re,ne,ae;return _regeneratorRuntime().wrap((function _callee17$(ie){for(;;)switch(ie.prev=ie.next){case 0:if(!this.data.combo){ie.next=2;break}return ie.abrupt("return",_get(_getPrototypeOf(ChoiceWidgetAnnotation.prototype),"_getAppearance",this).call(this,t,r,o,l));case 2:if(y=null==l?void 0:l.get(this.data.id)){d=y.rotation;h=y.value}if(void 0!==d||void 0!==h||this._needAppearances){ie.next=6;break}return ie.abrupt("return",null);case 6:void 0===h?h=this.data.fieldValue:Array.isArray(h)||(h=[h]);g=1;v=2;m=this.data.rect[3]-this.data.rect[1];_=this.data.rect[2]-this.data.rect[0];if(90===d||270===d){_=(w=[m,_])[0];m=w[1]}k=this.data.options.length;S=[];for(C=0;C<k;C++){x=this.data.options[C].exportValue;h.includes(x)&&S.push(C)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,u.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));ie.next=18;return M._getFontData(t,r,this.data.defaultAppearanceData,this._fieldResources.mergedResources);case 18:O=ie.sent;if(E=this.data.defaultAppearanceData.fontSize)T=this._defaultAppearance;else{R=(m-g)/k;j=-1;D=_createForOfIteratorHelper(this.data.options);try{for(D.s();!(N=D.n()).done;){U=N.value.displayValue;if((G=this._getTextWidth(U,O))>j){j=G;L=U}}}catch(t){D.e(t)}finally{D.f()}$=this._computeFontSize(R,_-2*v,L,O,-1);H=_slicedToArray($,2);T=H[0];E=H[1]}X=E*c.LINE_FACTOR;q=(X-E)/2;z=Math.floor(m/X);W=0;if(S.length>0){V=Math.min.apply(Math,S);K=Math.max.apply(Math,S);(W=Math.max(0,K-z+1))>V&&(W=V)}Y=Math.min(W+z+1,k);J=["/Tx BMC q","1 1 ".concat(_," ").concat(m," re W n")];if(S.length){J.push("0.600006 0.756866 0.854904 rg");Z=_createForOfIteratorHelper(S);try{for(Z.s();!(Q=Z.n()).done;){ee=Q.value;W<=ee&&ee<Y&&J.push("1 ".concat(m-(ee-W+1)*X," ").concat(_," ").concat(X," re f"))}}catch(t){Z.e(t)}finally{Z.f()}}J.push("BT",T,"1 0 0 1 0 ".concat(m," Tm"));te={shift:0};for(re=W;re<Y;re++){ne=this.data.options[re].displayValue;ae=re===W?q:0;J.push(this._renderText(ne,O,E,_,0,te,v,-X+ae))}J.push("ET Q EMC");return ie.abrupt("return",J.join("\n"));case 34:case"end":return ie.stop()}}),_callee17,this)}))),function _getAppearance(t,o,c,l){return r.apply(this,arguments)})}]);return ChoiceWidgetAnnotation}(M),N=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;o.data.hasOwnCanvas=o.data.noRotate;return o}_createClass(SignatureWidgetAnnotation,[{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}]);return SignatureWidgetAnnotation}(M),U=function(t){_inherits(TextAnnotation,t);var r=_createSuper(TextAnnotation);function TextAnnotation(t){var o;_classCallCheck(this,TextAnnotation);(o=r.call(this,t)).data.noRotate=!0;o.data.hasOwnCanvas=o.data.noRotate;var l=t.dict;o.data.annotationType=c.AnnotationType.TEXT;if(o.data.hasAppearance)o.data.name="NoIcon";else{o.data.rect[1]=o.data.rect[3]-22;o.data.rect[2]=o.data.rect[0]+22;o.data.name=l.has("Name")?l.get("Name").name:"Note"}if(l.has("State")){o.data.state=l.get("State")||null;o.data.stateModel=l.get("StateModel")||null}else{o.data.state=null;o.data.stateModel=null}return o}return _createClass(TextAnnotation)}(R),G=function(t){_inherits(LinkAnnotation,t);var r=_createSuper(LinkAnnotation);function LinkAnnotation(t){var o,l;_classCallCheck(this,LinkAnnotation);(l=r.call(this,t)).data.annotationType=c.AnnotationType.LINK;var u=getQuadPoints(t.dict,l.rectangle);u&&(l.data.quadPoints=u);(o=l.data).borderColor||(o.borderColor=l.data.color);m.Catalog.parseDestDictionary({destDict:t.dict,resultObj:l.data,docBaseUrl:t.pdfManager.docBaseUrl,docAttachments:t.attachments});return l}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);var l=t.dict;o.data.annotationType=c.AnnotationType.POPUP;o.data.rect[0]!==o.data.rect[2]&&o.data.rect[1]!==o.data.rect[3]||(o.data.rect=null);var u=l.get("Parent");if(!u){(0,c.warn)("Popup annotation has a missing or invalid parent annotation.");return _possibleConstructorReturn(o)}var d=u.getArray("Rect");o.data.parentRect=Array.isArray(d)&&4===d.length?c.Util.normalizeRect(d):null;var y=u.get("RT");(0,h.isName)(y,c.AnnotationReplyType.GROUP)&&(u=u.get("IRT"));if(u.has("M")){o.setModificationDate(u.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;if(u.has("C")){o.setColor(u.getArray("C"));o.data.color=o.color}else o.data.color=null;if(!o.viewable){var g=u.get("F");o._isViewable(g)&&o.setFlags(g)}o.setTitle(u.get("T"));o.data.titleObj=o._title;o.setContents(u.get("Contents"));o.data.contentsObj=o._contents;u.has("RC")&&(o.data.richText=x.XFAFactory.getRichTextAsHtml(u.get("RC")));o.data.open=!!l.get("Open");return o}return _createClass(PopupAnnotation)}(T);r.PopupAnnotation=$;var H=function(t){_inherits(FreeTextAnnotation,t);var r,o=_createSuper(FreeTextAnnotation);function FreeTextAnnotation(t){var r;_classCallCheck(this,FreeTextAnnotation);(r=o.call(this,t)).data.hasOwnCanvas=!0;var l=t.evaluatorOptions,h=t.xref;r.data.annotationType=c.AnnotationType.FREETEXT;r.setDefaultAppearance(t);if(r.appearance){var d=(0,u.parseAppearanceStream)(r.appearance,l,h),y=d.fontColor,g=d.fontSize;r.data.defaultAppearanceData.fontColor=y;r.data.defaultAppearanceData.fontSize=g||10}else if(r._isOffscreenCanvasSupported){var v,m=t.dict.get("CA"),_=new u.FakeUnicodeFont(h,"sans-serif");(v=r.data.defaultAppearanceData).fontSize||(v.fontSize=10);var w=r.data.defaultAppearanceData,k=w.fontColor,S=w.fontSize;r.appearance=_.createAppearance(r._contents.str,r.rectangle,r.rotation,S,k,m);r._streams.push(r.appearance,u.FakeUnicodeFont.toUnicodeStream)}else(0,c.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.");return r}_createClass(FreeTextAnnotation,[{key:"hasTextContent",get:function get(){return!!this.appearance}}],[{key:"createNewDict",value:function createNewDict(t,r,o){var d=o.apRef,y=o.ap,g=t.color,v=t.fontSize,m=t.rect,_=t.rotation,w=t.user,k=t.value,S=new h.Dict(r);S.set("Type",h.Name.get("Annot"));S.set("Subtype",h.Name.get("FreeText"));S.set("CreationDate","D:".concat((0,c.getModificationDate)()));S.set("Rect",m);var C="/Helv ".concat(v," Tf ").concat((0,u.getPdfColor)(g,!0));S.set("DA",C);S.set("Contents",(0,l.isAscii)(k)?k:(0,l.stringToUTF16String)(k,!0));S.set("F",4);S.set("Border",[0,0,0]);S.set("Rotate",_);w&&S.set("T",(0,l.isAscii)(w)?w:(0,l.stringToUTF16String)(w,!0));if(d||y){var x=new h.Dict(r);S.set("AP",x);d?x.set("N",d):x.set("N",y)}return S}},{key:"createNewAppearanceStream",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee18(t,r,o){var y,g,v,m,_,w,k,S,C,x,O,T,E,R,j,L,D,N,U,G,$,H,X,q,z,W,V,K,Y,J,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce,le,ue,fe,he,pe,de,ye,ge,ve,me;return _regeneratorRuntime().wrap((function _callee18$(be){for(;;)switch(be.prev=be.next){case 0:y=o.baseFontRef,g=o.evaluator,v=o.task;m=t.color,_=t.fontSize,w=t.rect,k=t.rotation,S=t.value;C=new h.Dict(r);x=new h.Dict(r);if(y)x.set("Helv",y);else{(O=new h.Dict(r)).set("BaseFont",h.Name.get("Helvetica"));O.set("Type",h.Name.get("Font"));O.set("Subtype",h.Name.get("Type1"));O.set("Encoding",h.Name.get("WinAnsiEncoding"));x.set("Helv",O)}C.set("Font",x);be.next=8;return M._getFontData(g,v,{fontName:"Helv",fontSize:_},C);case 8:T=be.sent;E=_slicedToArray(w,4),R=E[0],j=E[1],L=E[2],D=E[3];N=L-R;U=D-j;if(k%180!=0){N=(G=[U,N])[0];U=G[1]}$=S.split("\n");H=_/1e3;X=-1/0;q=[];z=_createForOfIteratorHelper($);be.prev=18;z.s();case 20:if((W=z.n()).done){be.next=34;break}V=W.value;if(!((K=T.encodeString(V)).length>1)){be.next=25;break}return be.abrupt("return",null);case 25:V=K.join("");q.push(V);Y=0;J=T.charsToGlyphs(V);Z=_createForOfIteratorHelper(J);try{for(Z.s();!(Q=Z.n()).done;){ee=Q.value;Y+=ee.width*H}}catch(t){Z.e(t)}finally{Z.f()}X=Math.max(X,Y);case 32:be.next=20;break;case 34:be.next=39;break;case 36:be.prev=36;be.t0=be.catch(18);z.e(be.t0);case 39:be.prev=39;z.f();return be.finish(39);case 42:te=1;X>N&&(te=N/X);re=1;ne=c.LINE_FACTOR*_;ae=(c.LINE_FACTOR-c.LINE_DESCENT_FACTOR)*_;(ie=ne*$.length)>U&&(re=U/ie);oe=Math.min(te,re);se=_*oe;be.t1=k;be.next=0===be.t1?54:90===be.t1?58:180===be.t1?62:270===be.t1?66:70;break;case 54:ue=[1,0,0,1];le=[w[0],w[1],N,U];ce=[w[0],w[3]-ae];return be.abrupt("break",70);case 58:ue=[0,1,-1,0];le=[w[1],-w[2],N,U];ce=[w[1],-w[0]-ae];return be.abrupt("break",70);case 62:ue=[-1,0,0,-1];le=[-w[2],-w[3],N,U];ce=[-w[2],-w[1]-ae];return be.abrupt("break",70);case 66:ue=[0,-1,1,0];le=[-w[3],w[0],N,U];ce=[-w[3],w[2]-ae];return be.abrupt("break",70);case 70:(fe=["q","".concat(ue.join(" ")," 0 0 cm"),"".concat(le.join(" ")," re W n"),"BT","".concat((0,u.getPdfColor)(m,!0)),"0 Tc /Helv ".concat((0,l.numberToString)(se)," Tf")]).push("".concat(ce.join(" ")," Td (").concat((0,l.escapeString)(q[0]),") Tj"));he=(0,l.numberToString)(ne);for(pe=1,de=q.length;pe<de;pe++){ye=q[pe];fe.push("0 -".concat(he," Td (").concat((0,l.escapeString)(ye),") Tj"))}fe.push("ET","Q");ge=fe.join("\n");(ve=new h.Dict(r)).set("FormType",1);ve.set("Subtype",h.Name.get("Form"));ve.set("Type",h.Name.get("XObject"));ve.set("BBox",w);ve.set("Resources",C);ve.set("Matrix",[1,0,0,1,-w[0],-w[1]]);(me=new d.StringStream(ge)).dict=ve;return be.abrupt("return",me);case 86:case"end":return be.stop()}}),_callee18,null,[[18,36,39,42]])}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return FreeTextAnnotation}(R),X=function(t){_inherits(LineAnnotation,t);var r=_createSuper(LineAnnotation);function LineAnnotation(t){var o;_classCallCheck(this,LineAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.LINE;o.data.hasOwnCanvas=o.data.noRotate;var h=l.getArray("L");o.data.lineCoordinates=c.Util.normalizeRect(h);o.setLineEndings(l.getArray("LE"));o.data.lineEndings=o.lineEndings;if(!o.appearance){var d=o.color?getPdfColorArray(o.color):[0,0,0],y=l.get("CA"),g=getRgbColor(l.getArray("IC"),null),v=g?getPdfColorArray(g):null,m=v?y:null,_=o.borderStyle.width||1,w=2*_,k=[o.data.lineCoordinates[0]-w,o.data.lineCoordinates[1]-w,o.data.lineCoordinates[2]+w,o.data.lineCoordinates[3]+w];c.Util.intersect(o.rectangle,k)||(o.rectangle=k);o._setDefaultAppearance({xref:u,extra:"".concat(_," w"),strokeColor:d,fillColor:v,strokeAlpha:y,fillAlpha:m,pointsCallback:function pointsCallback(t,r){t.push("".concat(h[0]," ").concat(h[1]," m"),"".concat(h[2]," ").concat(h[3]," l"),"S");return[r[0].x-_,r[1].x+_,r[3].y-_,r[1].y+_]}})}return o}return _createClass(LineAnnotation)}(R),q=function(t){_inherits(SquareAnnotation,t);var r=_createSuper(SquareAnnotation);function SquareAnnotation(t){var o;_classCallCheck(this,SquareAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.SQUARE;o.data.hasOwnCanvas=o.data.noRotate;if(!o.appearance){var h=o.color?getPdfColorArray(o.color):[0,0,0],d=l.get("CA"),y=getRgbColor(l.getArray("IC"),null),g=y?getPdfColorArray(y):null,v=g?d:null;if(0===o.borderStyle.width&&!g)return _possibleConstructorReturn(o);o._setDefaultAppearance({xref:u,extra:"".concat(o.borderStyle.width," w"),strokeColor:h,fillColor:g,strokeAlpha:d,fillAlpha:v,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,h=r[1].y-r[3].y-o.borderStyle.width;t.push("".concat(c," ").concat(l," ").concat(u," ").concat(h," re"));g?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return _createClass(SquareAnnotation)}(R),z=function(t){_inherits(CircleAnnotation,t);var r=_createSuper(CircleAnnotation);function CircleAnnotation(t){var o;_classCallCheck(this,CircleAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.CIRCLE;if(!o.appearance){var h=o.color?getPdfColorArray(o.color):[0,0,0],d=l.get("CA"),y=getRgbColor(l.getArray("IC"),null),g=y?getPdfColorArray(y):null,v=g?d:null;if(0===o.borderStyle.width&&!g)return _possibleConstructorReturn(o);var m=4/3*Math.tan(Math.PI/8);o._setDefaultAppearance({xref:u,extra:"".concat(o.borderStyle.width," w"),strokeColor:h,fillColor:g,strokeAlpha:d,fillAlpha:v,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,h=r[3].y+o.borderStyle.width/2,d=c+(u-c)/2,y=l+(h-l)/2,v=(u-c)/2*m,_=(h-l)/2*m;t.push("".concat(d," ").concat(h," m"),"".concat(d+v," ").concat(h," ").concat(u," ").concat(y+_," ").concat(u," ").concat(y," c"),"".concat(u," ").concat(y-_," ").concat(d+v," ").concat(l," ").concat(d," ").concat(l," c"),"".concat(d-v," ").concat(l," ").concat(c," ").concat(y-_," ").concat(c," ").concat(y," c"),"".concat(c," ").concat(y+_," ").concat(d-v," ").concat(h," ").concat(d," ").concat(h," c"),"h");g?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return _createClass(CircleAnnotation)}(R),W=function(t){_inherits(PolylineAnnotation,t);var r=_createSuper(PolylineAnnotation);function PolylineAnnotation(t){var o;_classCallCheck(this,PolylineAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.POLYLINE;o.data.hasOwnCanvas=o.data.noRotate;o.data.vertices=[];if(!(_assertThisInitialized(o)instanceof V)){o.setLineEndings(l.getArray("LE"));o.data.lineEndings=o.lineEndings}var h=l.getArray("Vertices");if(!Array.isArray(h))return _possibleConstructorReturn(o);for(var d=0,y=h.length;d<y;d+=2)o.data.vertices.push({x:h[d],y:h[d+1]});if(!o.appearance){var g,v=o.color?getPdfColorArray(o.color):[0,0,0],m=l.get("CA"),_=o.borderStyle.width||1,w=2*_,k=[1/0,1/0,-1/0,-1/0],S=_createForOfIteratorHelper(o.data.vertices);try{for(S.s();!(g=S.n()).done;){var C=g.value;k[0]=Math.min(k[0],C.x-w);k[1]=Math.min(k[1],C.y-w);k[2]=Math.max(k[2],C.x+w);k[3]=Math.max(k[3],C.y+w)}}catch(t){S.e(t)}finally{S.f()}c.Util.intersect(o.rectangle,k)||(o.rectangle=k);o._setDefaultAppearance({xref:u,extra:"".concat(_," w"),strokeColor:v,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)}(R),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=c.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=c.AnnotationType.CARET;return o}return _createClass(CaretAnnotation)}(R),Y=function(t){_inherits(InkAnnotation,t);var r,o=_createSuper(InkAnnotation);function InkAnnotation(t){var r;_classCallCheck(this,InkAnnotation);(r=o.call(this,t)).data.hasOwnCanvas=r.data.noRotate;var l=t.dict,u=t.xref;r.data.annotationType=c.AnnotationType.INK;r.data.inkLists=[];var h=l.getArray("InkList");if(!Array.isArray(h))return _possibleConstructorReturn(r);for(var d=0,y=h.length;d<y;++d){r.data.inkLists.push([]);for(var g=0,v=h[d].length;g<v;g+=2)r.data.inkLists[d].push({x:u.fetchIfRef(h[d][g]),y:u.fetchIfRef(h[d][g+1])})}if(!r.appearance){var m,_=r.color?getPdfColorArray(r.color):[0,0,0],w=l.get("CA"),k=r.borderStyle.width||1,S=2*k,C=[1/0,1/0,-1/0,-1/0],x=_createForOfIteratorHelper(r.data.inkLists);try{for(x.s();!(m=x.n()).done;){var O,T=_createForOfIteratorHelper(m.value);try{for(T.s();!(O=T.n()).done;){var E=O.value;C[0]=Math.min(C[0],E.x-S);C[1]=Math.min(C[1],E.y-S);C[2]=Math.max(C[2],E.x+S);C[3]=Math.max(C[3],E.y+S)}}catch(t){T.e(t)}finally{T.f()}}}catch(t){x.e(t)}finally{x.f()}c.Util.intersect(r.rectangle,C)||(r.rectangle=C);r._setDefaultAppearance({xref:u,extra:"".concat(k," w"),strokeColor:_,strokeAlpha:w,pointsCallback:function pointsCallback(t,o){var c,l=_createForOfIteratorHelper(r.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[o[0].x,o[1].x,o[3].y,o[1].y]}})}return r}_createClass(InkAnnotation,null,[{key:"createNewDict",value:function createNewDict(t,r,o){var l=o.apRef,u=o.ap,d=t.color,y=t.opacity,g=t.paths,v=t.rect,m=t.rotation,_=t.thickness,w=new h.Dict(r);w.set("Type",h.Name.get("Annot"));w.set("Subtype",h.Name.get("Ink"));w.set("CreationDate","D:".concat((0,c.getModificationDate)()));w.set("Rect",v);w.set("InkList",g.map((function(t){return t.points})));w.set("F",4);w.set("Rotate",m);var k=new h.Dict(r);w.set("BS",k);k.set("W",_);w.set("C",Array.from(d,(function(t){return t/255})));w.set("CA",y);var S=new h.Dict(r);w.set("AP",S);l?S.set("N",l):S.set("N",u);return w}},{key:"createNewAppearanceStream",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee19(t,r,o){var c,y,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D;return _regeneratorRuntime().wrap((function _callee19$(o){for(;;)switch(o.prev=o.next){case 0:c=t.color,y=t.rect,g=t.paths,v=t.thickness,m=t.opacity;_=["".concat(v," w 1 J 1 j"),"".concat((0,u.getPdfColor)(c,!1))];1!==m&&_.push("/R0 gs");w=[];k=_createForOfIteratorHelper(g);try{for(k.s();!(S=k.n()).done;){C=S.value.bezier;w.length=0;w.push("".concat((0,l.numberToString)(C[0])," ").concat((0,l.numberToString)(C[1])," m"));for(x=2,O=C.length;x<O;x+=6){T=C.slice(x,x+6).map(l.numberToString).join(" ");w.push("".concat(T," c"))}w.push("S");_.push(w.join("\n"))}}catch(t){k.e(t)}finally{k.f()}E=_.join("\n");(R=new h.Dict(r)).set("FormType",1);R.set("Subtype",h.Name.get("Form"));R.set("Type",h.Name.get("XObject"));R.set("BBox",y);R.set("Length",E.length);if(1!==m){M=new h.Dict(r);j=new h.Dict(r);(L=new h.Dict(r)).set("CA",m);L.set("Type",h.Name.get("ExtGState"));j.set("R0",L);M.set("ExtGState",j);R.set("Resources",M)}(D=new d.StringStream(E)).dict=R;return o.abrupt("return",D);case 17:case"end":return o.stop()}}),_callee19)}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return InkAnnotation}(R),J=function(t){_inherits(HighlightAnnotation,t);var r=_createSuper(HighlightAnnotation);function HighlightAnnotation(t){var o;_classCallCheck(this,HighlightAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.HIGHLIGHT;if(o.data.quadPoints=getQuadPoints(l,null)){var h,d=null===(h=o.appearance)||void 0===h?void 0:h.dict.get("Resources");if(!o.appearance||null==d||!d.has("ExtGState")){o.appearance&&(0,c.warn)("HighlightAnnotation - ignoring built-in appearance stream.");var y=o.color?getPdfColorArray(o.color):[1,1,0],g=l.get("CA");o._setDefaultAppearance({xref:u,fillColor:y,blendMode:"Multiply",fillAlpha:g,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.popupRef=null;return o}return _createClass(HighlightAnnotation)}(R),Z=function(t){_inherits(UnderlineAnnotation,t);var r=_createSuper(UnderlineAnnotation);function UnderlineAnnotation(t){var o;_classCallCheck(this,UnderlineAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.UNDERLINE;if(o.data.quadPoints=getQuadPoints(l,null)){if(!o.appearance){var h=o.color?getPdfColorArray(o.color):[0,0,0],d=l.get("CA");o._setDefaultAppearance({xref:u,extra:"[] 0 d 0.571 w",strokeColor:h,strokeAlpha:d,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[2].x," ").concat(r[2].y+1.3," m"),"".concat(r[3].x," ").concat(r[3].y+1.3," l"),"S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.popupRef=null;return o}return _createClass(UnderlineAnnotation)}(R),Q=function(t){_inherits(SquigglyAnnotation,t);var r=_createSuper(SquigglyAnnotation);function SquigglyAnnotation(t){var o;_classCallCheck(this,SquigglyAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.SQUIGGLY;if(o.data.quadPoints=getQuadPoints(l,null)){if(!o.appearance){var h=o.color?getPdfColorArray(o.color):[0,0,0],d=l.get("CA");o._setDefaultAppearance({xref:u,extra:"[] 0 d 1 w",strokeColor:h,strokeAlpha:d,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.popupRef=null;return o}return _createClass(SquigglyAnnotation)}(R),ee=function(t){_inherits(StrikeOutAnnotation,t);var r=_createSuper(StrikeOutAnnotation);function StrikeOutAnnotation(t){var o;_classCallCheck(this,StrikeOutAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref;o.data.annotationType=c.AnnotationType.STRIKEOUT;if(o.data.quadPoints=getQuadPoints(l,null)){if(!o.appearance){var h=o.color?getPdfColorArray(o.color):[0,0,0],d=l.get("CA");o._setDefaultAppearance({xref:u,extra:"[] 0 d 1 w",strokeColor:h,strokeAlpha:d,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.popupRef=null;return o}return _createClass(StrikeOutAnnotation)}(R),te=function(t){_inherits(StampAnnotation,t);var r,o,u=_createSuper(StampAnnotation);function StampAnnotation(t){var r;_classCallCheck(this,StampAnnotation);(r=u.call(this,t)).data.annotationType=c.AnnotationType.STAMP;r.data.hasOwnCanvas=r.data.noRotate;return r}_createClass(StampAnnotation,null,[{key:"createImage",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee20(t,r){var o,l,u,y,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j;return _regeneratorRuntime().wrap((function _callee20$(L){for(;;)switch(L.prev=L.next){case 0:o=t.width,l=t.height;u=new OffscreenCanvas(o,l);(y=u.getContext("2d",{alpha:!0})).drawImage(t,0,0);g=y.getImageData(0,0,o,l).data;v=new Uint32Array(g.buffer);if(m=v.some(c.FeatureTest.isLittleEndian?function(t){return t>>>24!=255}:function(t){return 255!=(255&t)})){y.fillStyle="white";y.fillRect(0,0,o,l);y.drawImage(t,0,0)}_=u.convertToBlob({type:"image/jpeg",quality:1}).then((function(t){return t.arrayBuffer()}));w=h.Name.get("XObject");k=h.Name.get("Image");(S=new h.Dict(r)).set("Type",w);S.set("Subtype",k);S.set("BitsPerComponent",8);S.set("ColorSpace",h.Name.get("DeviceRGB"));S.set("Filter",h.Name.get("DCTDecode"));S.set("BBox",[0,0,o,l]);S.set("Width",o);S.set("Height",l);C=null;if(m){x=new Uint8Array(v.length);if(c.FeatureTest.isLittleEndian)for(O=0,T=v.length;O<T;O++)x[O]=v[O]>>>24;else for(E=0,R=v.length;E<R;E++)x[E]=255&v[E];(M=new h.Dict(r)).set("Type",w);M.set("Subtype",k);M.set("BitsPerComponent",8);M.set("ColorSpace",h.Name.get("DeviceGray"));M.set("Width",o);M.set("Height",l);C=new d.Stream(x,0,0,M)}L.t0=d.Stream;L.next=25;return _;case 25:L.t1=L.sent;L.t2=S;j=new L.t0(L.t1,0,0,L.t2);return L.abrupt("return",{imageStream:j,smaskStream:C,width:o,height:l});case 29:case"end":return L.stop()}}),_callee20)}))),function createImage(t,r){return o.apply(this,arguments)})},{key:"createNewDict",value:function createNewDict(t,r,o){var u=o.apRef,d=o.ap,y=t.rect,g=t.rotation,v=t.user,m=new h.Dict(r);m.set("Type",h.Name.get("Annot"));m.set("Subtype",h.Name.get("Stamp"));m.set("CreationDate","D:".concat((0,c.getModificationDate)()));m.set("Rect",y);m.set("F",4);m.set("Border",[0,0,0]);m.set("Rotate",g);v&&m.set("T",(0,l.isAscii)(v)?v:(0,l.stringToUTF16String)(v,!0));if(u||d){var _=new h.Dict(r);m.set("AP",_);u?_.set("N",u):_.set("N",d)}return m}},{key:"createNewAppearanceStream",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee21(t,r,o){var c,u,y,g,v,m,_,w,k,S,C;return _regeneratorRuntime().wrap((function _callee21$(x){for(;;)switch(x.prev=x.next){case 0:c=t.rotation;u=o.image,y=u.imageRef,g=u.width,v=u.height;m=new h.Dict(r);_=new h.Dict(r);m.set("XObject",_);_.set("Im0",y);w="q ".concat(g," 0 0 ").concat(v," 0 0 cm /Im0 Do Q");(k=new h.Dict(r)).set("FormType",1);k.set("Subtype",h.Name.get("Form"));k.set("Type",h.Name.get("XObject"));k.set("BBox",[0,0,g,v]);k.set("Resources",m);if(c){S=(0,l.getRotationMatrix)(c,g,v);k.set("Matrix",S)}(C=new d.StringStream(w)).dict=k;return x.abrupt("return",C);case 17:case"end":return x.stop()}}),_callee21)}))),function createNewAppearanceStream(t,o,c){return r.apply(this,arguments)})}]);return StampAnnotation}(R),re=function(t){_inherits(FileAttachmentAnnotation,t);var r=_createSuper(FileAttachmentAnnotation);function FileAttachmentAnnotation(t){var o;_classCallCheck(this,FileAttachmentAnnotation);o=r.call(this,t);var l=t.dict,u=t.xref,d=new w.FileSpec(l.get("FS"),u);o.data.annotationType=c.AnnotationType.FILEATTACHMENT;o.data.hasOwnCanvas=o.data.noRotate;o.data.file=d.serializable;var y=l.get("Name");o.data.name=y instanceof h.Name?(0,c.stringToPDFString)(y.name):"PushPin";var g=l.get("ca");o.data.fillAlpha="number"==typeof g&&g>=0&&g<=1?g:null;return o}return _createClass(FileAttachmentAnnotation)}(R)},(t,r,o)=>{var c=o(58),l=o(35),u=o(28),h=o(32),d=o(369),y=o(59),g=o(135);c({target:"Reflect",stat:!0},{get:function get(t,r){var o,c,v=arguments.length<3?t:arguments[2];return h(t)===v?t[r]:(o=y.f(t,r))?d(o)?o.value:void 0===o.get?void 0:l(o.get,v):u(c=g(t))?get(c,r,v):void 0}})},(t,r,o)=>{var c=o(6);t.exports=function(t){return void 0!==t&&(c(t,"value")||c(t,"writable"))}},(t,r,o)=>{var c=o(58),l=o(9),u=o(61),h=o(59).f,d=o(25);c({target:"Object",stat:!0,forced:!d||l((function(){h(1)})),sham:!d},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(t,r){return h(u(t),r)}})},(t,r,o)=>{o(192)("Uint8",(function(t){return function Uint8ClampedArray(r,o,c){return t(this,r,o,c)}}),!0)},(t,r,o)=>{var c=o(5),l=o(25),u=o(87),h=o(125),d=o(9),y=c.RegExp,g=y.prototype;l&&d((function(){var t=!0;try{y(".","d")}catch(r){t=!1}var r={},o="",c=t?"dgimsy":"gimsy",addGetter=function(t,c){Object.defineProperty(r,t,{get:function(){o+=c;return!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(l.hasIndices="d");for(var u in l)addGetter(u,l[u]);return Object.getOwnPropertyDescriptor(g,"flags").get.call(r)!==c||o!==c}))&&u(g,"flags",{configurable:!0,get:h})},(t,r,o)=>{var c=o(58),l=o(10),u=o(72),h=o(291),d=o(212),y=o(292);c({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function unshift(t){var r=l(this),o=u(r),c=arguments.length;if(c){y(o+c);for(var g=o;g--;){var v=g+c;g in r?r[v]=r[g]:d(r,v)}for(var m=0;m<c;m++)r[m]=arguments[m]}return h(r,o+c)}})},(t,r,o)=>{var c=o(58),l=o(111).trim;c({target:"String",proto:!0,forced:o(375)("trim")},{trim:function trim(){return l(this)}})},(t,r,o)=>{var c=o(46).PROPER,l=o(9),u=o(112);t.exports=function(t){return l((function(){return!!u[t]()||"
"!=="
"[t]()||c&&u[t].name!==t}))}},(t,r,o)=>{var c=o(58),l=o(89).find,u=o(138),h="find",d=!0;h in[]&&Array(1)[h]((function(){d=!1}));c({target:"Array",proto:!0,forced:d},{find:function find(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}});u(h)},(t,r,o)=>{var c=o(58),l=o(234).left,u=o(231),h=o(21);c({target:"Array",proto:!0,forced:!o(147)&&h>79&&h<83||!u("reduce")},{reduce:function reduce(t){var r=arguments.length;return l(this,t,r,r>1?arguments[1]:void 0)}})},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(293);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.FakeUnicodeFont=void 0;r.createDefaultAppearance=function createDefaultAppearance(t){var r=t.fontSize,o=t.fontName,c=t.fontColor;return"/".concat((0,l.escapePDFName)(o)," ").concat(r," Tf ").concat(getPdfColor(c,!0))};r.getPdfColor=getPdfColor;r.parseAppearanceStream=function parseAppearanceStream(t,r,o){return new _(t,r,o).parse()};r.parseDefaultAppearance=function parseDefaultAppearance(t){return new m(t).parse()};o(137);o(143);o(371);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(134);o(290);o(296);o(379);o(302);o(114);o(175);o(357);o(177);o(335);o(123);o(349);var c=o(350),l=o(343),u=o(304),h=o(380),d=o(383),y=o(441),g=o(436),v=o(358);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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var m=function(t){_inherits(DefaultAppearanceEvaluator,t);var r=_createSuper(DefaultAppearanceEvaluator);function DefaultAppearanceEvaluator(t){_classCallCheck(this,DefaultAppearanceEvaluator);return r.call(this,new v.StringStream(t))}_createClass(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,l=t.args;switch(0|o){case u.OPS.setFont:var d=_slicedToArray(l,2),y=d[0],g=d[1];y instanceof c.Name&&(r.fontName=y.name);"number"==typeof g&&g>0&&(r.fontSize=g);break;case u.OPS.setFillRGBColor:h.ColorSpace.singletons.rgb.getRgbItem(l,0,r.fontColor,0);break;case u.OPS.setFillGray:h.ColorSpace.singletons.gray.getRgbItem(l,0,r.fontColor,0);break;case u.OPS.setFillCMYKColor:h.ColorSpace.singletons.cmyk.getRgbItem(l,0,r.fontColor,0)}}}}catch(t){(0,u.warn)('parseDefaultAppearance - ignoring errors: "'.concat(t,'".'))}return r}}]);return DefaultAppearanceEvaluator}(d.EvaluatorPreprocessor);var _=function(t){_inherits(AppearanceStreamEvaluator,t);var r=_createSuper(AppearanceStreamEvaluator);function AppearanceStreamEvaluator(t,o,c){var l,u;_classCallCheck(this,AppearanceStreamEvaluator);(u=r.call(this,t)).stream=t;u.evaluatorOptions=o;u.xref=c;u.resources=null===(l=t.dict)||void 0===l?void 0:l.get("Resources");return u}_createClass(AppearanceStreamEvaluator,[{key:"parse",value:function parse(){var t={fn:0,args:[]},r={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:h.ColorSpace.singletons.gray},o=!1,l=[];try{for(;;){t.args.length=0;if(o||!this.read(t))break;var d=t.fn,y=t.args;switch(0|d){case u.OPS.save:l.push({scaleFactor:r.scaleFactor,fontSize:r.fontSize,fontName:r.fontName,fontColor:r.fontColor.slice(),fillColorSpace:r.fillColorSpace});break;case u.OPS.restore:r=l.pop()||r;break;case u.OPS.setTextMatrix:r.scaleFactor*=Math.hypot(y[0],y[1]);break;case u.OPS.setFont:var g=_slicedToArray(y,2),v=g[0],m=g[1];v instanceof c.Name&&(r.fontName=v.name);"number"==typeof m&&m>0&&(r.fontSize=m*r.scaleFactor);break;case u.OPS.setFillColorSpace:r.fillColorSpace=h.ColorSpace.parse({cs:y[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case u.OPS.setFillColor:r.fillColorSpace.getRgbItem(y,0,r.fontColor,0);break;case u.OPS.setFillRGBColor:h.ColorSpace.singletons.rgb.getRgbItem(y,0,r.fontColor,0);break;case u.OPS.setFillGray:h.ColorSpace.singletons.gray.getRgbItem(y,0,r.fontColor,0);break;case u.OPS.setFillCMYKColor:h.ColorSpace.singletons.cmyk.getRgbItem(y,0,r.fontColor,0);break;case u.OPS.showText:case u.OPS.showSpacedText:case u.OPS.nextLineShowText:case u.OPS.nextLineSetSpacingShowText:o=!0}}}catch(t){(0,u.warn)('parseAppearanceStream - ignoring errors: "'.concat(t,'".'))}this.stream.reset();delete r.scaleFactor;delete r.fillColorSpace;return r}},{key:"_localColorSpaceCache",get:function get(){return(0,u.shadow)(this,"_localColorSpaceCache",new y.LocalColorSpaceCache)}},{key:"_pdfFunctionFactory",get:function get(){var t=new g.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,u.shadow)(this,"_pdfFunctionFactory",t)}}]);return AppearanceStreamEvaluator}(d.EvaluatorPreprocessor);function getPdfColor(t,r){if(t[0]===t[1]&&t[1]===t[2]){var o=t[0]/255;return"".concat((0,l.numberToString)(o)," ").concat(r?"g":"G")}return Array.from(t,(function(t){return(0,l.numberToString)(t/255)})).join(" ")+" ".concat(r?"rg":"RG")}var w=function(){function FakeUnicodeFont(t,r){_classCallCheck(this,FakeUnicodeFont);this.xref=t;this.widths=null;this.firstChar=1/0;this.lastChar=-1/0;this.fontFamily=r;var o=new OffscreenCanvas(1,1);this.ctxMeasure=o.getContext("2d");FakeUnicodeFont._fontNameId||(FakeUnicodeFont._fontNameId=1);this.fontName=c.Name.get("InvalidPDFjsFont_".concat(r,"_").concat(FakeUnicodeFont._fontNameId++))}_createClass(FakeUnicodeFont,[{key:"toUnicodeRef",get:function get(){if(!FakeUnicodeFont._toUnicodeRef){var t="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> <FFFF>\nendcodespacerange\n1 beginbfrange\n<0000> <FFFF> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end",r=FakeUnicodeFont.toUnicodeStream=new v.StringStream(t),o=new c.Dict(this.xref);r.dict=o;o.set("Length",346);FakeUnicodeFont._toUnicodeRef=this.xref.getNewPersistentRef(r)}return FakeUnicodeFont._toUnicodeRef}},{key:"fontDescriptorRef",get:function get(){if(!FakeUnicodeFont._fontDescriptorRef){var t=new c.Dict(this.xref);t.set("Type",c.Name.get("FontDescriptor"));t.set("FontName",this.fontName);t.set("FontFamily","MyriadPro Regular");t.set("FontBBox",[0,0,0,0]);t.set("FontStretch",c.Name.get("Normal"));t.set("FontWeight",400);t.set("ItalicAngle",0);FakeUnicodeFont._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return FakeUnicodeFont._fontDescriptorRef}},{key:"descendantFontRef",get:function get(){var t=new c.Dict(this.xref);t.set("BaseFont",this.fontName);t.set("Type",c.Name.get("Font"));t.set("Subtype",c.Name.get("CIDFontType0"));t.set("CIDToGIDMap",c.Name.get("Identity"));t.set("FirstChar",this.firstChar);t.set("LastChar",this.lastChar);t.set("FontDescriptor",this.fontDescriptorRef);t.set("DW",1e3);var r,o=[],l=null,u=null,h=_createForOfIteratorHelper(_toConsumableArray(this.widths.entries()).sort());try{for(h.s();!(r=h.n()).done;){var d=_slicedToArray(r.value,2),y=d[0],g=d[1];if(l)if(y===l+u.length)u.push(g);else{o.push(l,u);l=y;u=[g]}else{l=y;u=[g]}}}catch(t){h.e(t)}finally{h.f()}l&&o.push(l,u);t.set("W",o);var v=new c.Dict(this.xref);v.set("Ordering","Identity");v.set("Registry","Adobe");v.set("Supplement",0);t.set("CIDSystemInfo",v);return this.xref.getNewPersistentRef(t)}},{key:"baseFontRef",get:function get(){var t=new c.Dict(this.xref);t.set("BaseFont",this.fontName);t.set("Type",c.Name.get("Font"));t.set("Subtype",c.Name.get("Type0"));t.set("Encoding",c.Name.get("Identity-H"));t.set("DescendantFonts",[this.descendantFontRef]);t.set("ToUnicode",this.toUnicodeRef);return this.xref.getNewPersistentRef(t)}},{key:"resources",get:function get(){var t=new c.Dict(this.xref),r=new c.Dict(this.xref);r.set(this.fontName.name,this.baseFontRef);t.set("Font",r);return t}},{key:"_createContext",value:function _createContext(){this.widths=new Map;this.ctxMeasure.font="1000px ".concat(this.fontFamily);return this.ctxMeasure}},{key:"createFontResources",value:function createFontResources(t){var r,o=this._createContext(),c=_createForOfIteratorHelper(t.split(/\r\n?|\n/));try{for(c.s();!(r=c.n()).done;){var l,u=_createForOfIteratorHelper(r.value.split(""));try{for(u.s();!(l=u.n()).done;){var h=l.value,d=h.charCodeAt(0);if(!this.widths.has(d)){var y=o.measureText(h),g=Math.ceil(y.width);this.widths.set(d,g);this.firstChar=Math.min(d,this.firstChar);this.lastChar=Math.max(d,this.lastChar)}}}catch(t){u.e(t)}finally{u.f()}}}catch(t){c.e(t)}finally{c.f()}return this.resources}},{key:"createAppearance",value:function createAppearance(t,r,o,h,d,y){var g,m=this._createContext(),_=[],w=-1/0,k=_createForOfIteratorHelper(t.split(/\r\n?|\n/));try{for(k.s();!(g=k.n()).done;){var S=g.value;_.push(S);var C=m.measureText(S).width;w=Math.max(w,C);var x,O=_createForOfIteratorHelper(S.split(""));try{for(O.s();!(x=O.n()).done;){var T=x.value,E=T.charCodeAt(0),R=this.widths.get(E);if(void 0===R){var M=m.measureText(T);R=Math.ceil(M.width);this.widths.set(E,R);this.firstChar=Math.min(E,this.firstChar);this.lastChar=Math.max(E,this.lastChar)}}}catch(t){O.e(t)}finally{O.f()}}}catch(t){k.e(t)}finally{k.f()}w*=h/1e3;var j=_slicedToArray(r,4),L=j[0],D=j[1],N=j[2]-L,U=j[3]-D;if(o%180!=0){var G=[U,N];N=G[0];U=G[1]}var $=1;w>N&&($=N/w);var H=1,X=u.LINE_FACTOR*h,q=u.LINE_DESCENT_FACTOR*h,z=X*_.length;z>U&&(H=U/z);var W=h*Math.min($,H),V=["q","0 0 ".concat((0,l.numberToString)(N)," ").concat((0,l.numberToString)(U)," re W n"),"BT","1 0 0 1 0 ".concat((0,l.numberToString)(U+q)," Tm 0 Tc ").concat(getPdfColor(d,!0)),"/".concat(this.fontName.name," ").concat((0,l.numberToString)(W)," Tf")],K=this.resources;if(1!==(y="number"==typeof y&&y>=0&&y<=1?y:1)){V.push("/R0 gs");var Y=new c.Dict(this.xref),J=new c.Dict(this.xref);J.set("ca",y);J.set("CA",y);J.set("Type",c.Name.get("ExtGState"));Y.set("R0",J);K.set("ExtGState",Y)}for(var Z=(0,l.numberToString)(X),Q=0,ee=_;Q<ee.length;Q++){var te=ee[Q];V.push("0 -".concat(Z," Td <").concat((0,l.stringToUTF16HexString)(te),"> Tj"))}V.push("ET","Q");var re=V.join("\n"),ne=new c.Dict(this.xref);ne.set("Subtype",c.Name.get("Form"));ne.set("Type",c.Name.get("XObject"));ne.set("BBox",[0,0,N,U]);ne.set("Length",re.length);ne.set("Resources",K);if(o){var ae=(0,l.getRotationMatrix)(o,N,U);ne.set("Matrix",ae)}var ie=new v.StringStream(re);ie.dict=ne;return ie}}]);return FakeUnicodeFont}();r.FakeUnicodeFont=w},(t,r,o)=>{var c=o(58),l=Math.hypot,u=Math.abs,h=Math.sqrt;c({target:"Math",stat:!0,arity:2,forced:!!l&&l(1/0,NaN)!==1/0},{hypot:function hypot(t,r){for(var o,c,l=0,d=0,y=arguments.length,g=0;d<y;)if(g<(o=u(arguments[d++]))){l=l*(c=g/o)*c+1;g=o}else l+=o>0?(c=o/g)*c:o;return g===1/0?1/0:g*h(l)}})},(t,r,o)=>{o(2);o(54);o(56);o(104);o(145);o(113);o(175);o(177);o(130);o(131);o(132);o(133);o(134);o(290);o(300);o(296);o(305);o(306);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;o(137);o(143);o(381);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(371);o(191);o(183);o(382);o(105);o(302);var c=o(304),l=o(350),u=o(354),h=o(343);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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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(){function ColorSpace(t,r){_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&(0,c.unreachable)("Cannot initialize ColorSpace.");this.name=t;this.numComps=r}_createClass(ColorSpace,[{key:"getRgb",value:function getRgb(t,r){var o=new Uint8ClampedArray(3);this.getRgbItem(t,r,o,0);return o}},{key:"getRgbItem",value:function getRgbItem(t,r,o,l){(0,c.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,u,h,d){(0,c.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function getOutputLength(t,r){(0,c.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function isPassthrough(t){return!1}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return ColorSpace.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function fillRgb(t,r,o,c,l,u,h,d,y){var g=r*o,v=null,m=1<<h,_=o!==l||r!==c;if(this.isPassthrough(h))v=d;else if(1===this.numComps&&g>m&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var w=h<=8?new Uint8Array(m):new Uint16Array(m),k=0;k<m;k++)w[k]=k;var S=new Uint8ClampedArray(3*m);this.getRgbBuffer(w,0,m,S,0,h,0);if(_){v=new Uint8Array(3*g);for(var C=0,x=0;x<g;++x){var O=3*d[x];v[C++]=S[O];v[C++]=S[O+1];v[C++]=S[O+2]}}else for(var T=0,E=0;E<g;++E){var R=3*d[E];t[T++]=S[R];t[T++]=S[R+1];t[T++]=S[R+2];T+=y}}else if(_){v=new Uint8ClampedArray(3*g);this.getRgbBuffer(d,0,g,v,0,h,0)}else this.getRgbBuffer(d,0,c*u,t,0,h,y);if(v)if(_)!function resizeRgbImage(t,r,o,c,l,u,h){h=1!==h?0:h;for(var d,y=o/l,g=c/u,v=0,m=new Uint16Array(l),_=3*o,w=0;w<l;w++)m[w]=3*Math.floor(w*y);for(var k=0;k<u;k++)for(var S=Math.floor(k*g)*_,C=0;C<l;C++){d=S+m[C];r[v++]=t[d++];r[v++]=t[d++];r[v++]=t[d++];v+=h}}(v,t,r,o,c,l,y);else for(var M=0,j=0,L=0,D=c*u;L<D;L++){t[M++]=v[j++];t[M++]=v[j++];t[M++]=v[j++];M+=y}}},{key:"usesZeroToOneRange",get:function get(){return(0,c.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 u,h;if(t instanceof l.Ref){h=t;t=r.fetch(t)}t instanceof l.Name&&(u=t.name);(u||h)&&o.set(u,h,c)}},{key:"getCached",value:function getCached(t,r,o){if(!o)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(t instanceof l.Ref){var c=o.getByRef(t);if(c)return c;try{t=r.fetch(t)}catch(t){if(t instanceof h.MissingDataException)throw t}}if(t instanceof l.Name){var u=o.getByName(t.name);if(u)return u}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)}))}}(_regeneratorRuntime().mark((function _callee(t){var r,o,c,l,u,h,d;return _regeneratorRuntime().wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:r=t.cs,o=t.xref,c=t.resources,l=void 0===c?null:c,u=t.pdfFunctionFactory,h=t.localColorSpaceCache;d=this._parse(r,o,l,u);this._cache(r,o,h,d);return y.abrupt("return",d);case 4:case"end":return y.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 y=this._parse(r,o,l,u);this._cache(r,o,h,y);return y}},{key:"_parse",value:function _parse(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3?arguments[3]:void 0;if((t=r.fetchIfRef(t))instanceof l.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 g(null);default:if(o instanceof l.Dict){var h=o.get("ColorSpace");if(h instanceof l.Dict){var d=h.get(t.name);if(d){if(d instanceof l.Name)return this._parse(d,r,o,u);t=d;break}}}throw new c.FormatError("Unrecognized ColorSpace: ".concat(t.name))}if(Array.isArray(t)){var m,_,w,x,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":x=(m=r.fetchIfRef(t[1])).getArray("WhitePoint");O=m.getArray("BlackPoint");T=m.get("Gamma");return new k(x,O,T);case"CalRGB":x=(m=r.fetchIfRef(t[1])).getArray("WhitePoint");O=m.getArray("BlackPoint");T=m.getArray("Gamma");var R=m.getArray("Matrix");return new S(x,O,T,R);case"ICCBased":var M=r.fetchIfRef(t[1]).dict;_=M.get("N");var j=M.get("Alternate");if(j){var L=this._parse(j,r,o,u);if(L.numComps===_)return L;(0,c.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===_)return this.singletons.gray;if(3===_)return this.singletons.rgb;if(4===_)return this.singletons.cmyk;break;case"Pattern":(w=t[1]||null)&&(w=this._parse(w,r,o,u));return new g(w);case"I":case"Indexed":w=this._parse(t[1],r,o,u);var D=r.fetchIfRef(t[2])+1,N=r.fetchIfRef(t[3]);return new v(w,D,N);case"Separation":case"DeviceN":var U=r.fetchIfRef(t[1]);_=Array.isArray(U)?U.length:1;w=this._parse(t[2],r,o,u);var G=u.create(t[3]);return new y(_,w,G);case"Lab":x=(m=r.fetchIfRef(t[1])).getArray("WhitePoint");O=m.getArray("BlackPoint");var $=m.getArray("Range");return new C(x,O,$);default:throw new c.FormatError("Unimplemented ColorSpace object: ".concat(E))}}throw new c.FormatError("Unrecognized ColorSpace object: ".concat(t))}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2*r!==t.length){(0,c.warn)("The decode map is not the correct length");return!0}for(var o=0,l=t.length;o<l;o+=2)if(0!==t[o]||1!==t[o+1])return!1;return!0}},{key:"singletons",get:function get(){return(0,c.shadow)(this,"singletons",{get gray(){return(0,c.shadow)(this,"gray",new m)},get rgb(){return(0,c.shadow)(this,"rgb",new _)},get cmyk(){return(0,c.shadow)(this,"cmyk",new w)}})}}]);var t;return ColorSpace}();r.ColorSpace=d;var y=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,y,g=this.tintFn,v=this.base,m=1/((1<<u)-1),_=v.numComps,w=v.usesZeroToOneRange,k=(v.isPassthrough(8)||!w)&&0===h,S=k?l:0,C=k?c:new Uint8ClampedArray(_*o),x=this.numComps,O=new Float32Array(x),T=new Float32Array(_);for(d=0;d<o;d++){for(y=0;y<x;y++)O[y]=t[r++]*m;g(O,0,T,0);if(w)for(y=0;y<_;y++)C[S++]=255*T[y];else{v.getRgbItem(T,0,C,S);S+=_}}k||v.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}(d),g=function(t){_inherits(PatternCS,t);var r=_createSuper(PatternCS);function PatternCS(t){var o;_classCallCheck(this,PatternCS);(o=r.call(this,"Pattern",null)).base=t;return o}_createClass(PatternCS,[{key:"isDefaultDecode",value:function isDefaultDecode(t,r){(0,c.unreachable)("Should not call PatternCS.isDefaultDecode")}}]);return PatternCS}(d),v=function(t){_inherits(IndexedCS,t);var r=_createSuper(IndexedCS);function IndexedCS(t,o,l){var h;_classCallCheck(this,IndexedCS);(h=r.call(this,"Indexed",1)).base=t;h.highVal=o;var d=t.numComps*o;h.lookup=new Uint8Array(d);if(l instanceof u.BaseStream){var y=l.getBytes(d);h.lookup.set(y)}else{if("string"!=typeof l)throw new c.FormatError("IndexedCS - unrecognized lookup table: ".concat(l));for(var g=0;g<d;++g)h.lookup[g]=255&l.charCodeAt(g)}return h}_createClass(IndexedCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,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,y=d.numComps,g=d.getOutputLength(y,h),v=this.lookup,m=0;m<o;++m){var _=t[r++]*y;d.getRgbBuffer(v,_,1,c,l,8,h);l+=g}}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps,r)}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2!==t.length){(0,c.warn)("Decode map length is not correct");return!0}if(!Number.isInteger(r)||r<1){(0,c.warn)("Bits per component is not correct");return!0}return 0===t[0]&&t[1]===(1<<r)-1}}]);return IndexedCS}(d),m=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),y=r,g=l,v=0;v<o;++v){var m=d*t[y++];c[g++]=m;c[g++]=m;c[g++]=m;g+=h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return DeviceGrayCS}(d),_=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),y=r,g=l,v=0;v<o;++v){c[g++]=d*t[y++];c[g++]=d*t[y++];c[g++]=d*t[y++];g+=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}(d),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,y=t[r+3]*o;c[l]=255+u*(-4.387332384609988*u+54.48615194189176*h+18.82290502165302*d+212.25662451639585*y-285.2331026137004)+h*(1.7149763477362134*h-5.6096736904047315*d+-17.873870861415444*y-5.497006427196366)+d*(-2.5217340131683033*d-21.248923337353073*y+17.5119270841813)+y*(-21.86122147463605*y-189.48180835922747);c[l+1]=255+u*(8.841041422036149*u+60.118027045597366*h+6.871425592049007*d+31.159100130055922*y-79.2970844816548)+h*(-15.310361306967817*h+17.575251261109482*d+131.35250912493976*y-190.9453302588951)+d*(4.444339102852739*d+9.8632861493405*y-24.86741582555878)+y*(-20.737325471181034*y-187.80453709719578);c[l+2]=255+u*(.8842522430003296*u+8.078677503112928*h+30.89978309703729*d-.23883238689178934*y-14.183576799673286)+h*(10.49593273432072*h+63.02378494754052*d+50.606957656360734*y-112.23884253719248)+d*(.03296041114873217*d+115.60384449646641*y-193.58209356861505)+y*(-22.33816807309886*y-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),y=0;y<o;y++){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}(d)}(),k=function CalGrayCSClosure(){function convertToRgb(t,r,o,c,l,u){var h=r[o]*u,d=Math.pow(h,t.G),y=t.YW*d,g=Math.max(295.8*Math.pow(y,.3333333333333333)-40.8,0);c[l]=g;c[l+1]=g;c[l+2]=g}return function(t){_inherits(CalGrayCS,t);var r=_createSuper(CalGrayCS);function CalGrayCS(t,o,l){var u;_classCallCheck(this,CalGrayCS);u=r.call(this,"CalGray",1);if(!t)throw new c.FormatError("WhitePoint missing - required for color space CalGray");o||(o=[0,0,0]);l||(l=1);u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.XB=o[0];u.YB=o[1];u.ZB=o[2];u.G=l;if(u.XW<0||u.ZW<0||1!==u.YW)throw new c.FormatError("Invalid WhitePoint components for ".concat(u.name)+", no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,c.info)("Invalid BlackPoint for ".concat(u.name,", falling back to default."));u.XB=u.YB=u.ZB=0}0===u.XB&&0===u.YB&&0===u.ZB||(0,c.warn)("".concat(u.name,", BlackPoint: XB: ").concat(u.XB,", YB: ").concat(u.YB,", ")+"ZB: ".concat(u.ZB,", only default values are supported."));if(u.G<1){(0,c.info)("Invalid Gamma: ".concat(u.G," for ").concat(u.name,", ")+"falling back to default.");u.G=1}return u}_createClass(CalGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,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),y=0;y<o;++y){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}(d)}(),S=function CalRGBCSClosure(){var t=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),r=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),o=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),l=new Float32Array([1,1,1]),u=new Float32Array(3),h=new Float32Array(3),y=new Float32Array(3),g=Math.pow(24/116,3)/8;function matrixProduct(t,r,o){o[0]=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];o[1]=t[3]*r[0]+t[4]*r[1]+t[5]*r[2];o[2]=t[6]*r[0]+t[7]*r[1]+t[8]*r[2]}function sRGBTransferFunction(t){return t<=.0031308?adjustToRange(0,1,12.92*t):t>=.99554525?1:adjustToRange(0,1,1.055*Math.pow(t,1/2.4)-.055)}function adjustToRange(t,r,o){return Math.max(t,Math.min(r,o))}function decodeL(t){return t<0?-decodeL(-t):t>8?Math.pow((t+16)/116,3):t*g}function convertToRgb(c,d,g,v,m,_){var w=adjustToRange(0,1,d[g]*_),k=adjustToRange(0,1,d[g+1]*_),S=adjustToRange(0,1,d[g+2]*_),C=1===w?1:Math.pow(w,c.GR),x=1===k?1:Math.pow(k,c.GG),O=1===S?1:Math.pow(S,c.GB),T=c.MXA*C+c.MXB*x+c.MXC*O,E=c.MYA*C+c.MYB*x+c.MYC*O,R=c.MZA*C+c.MZB*x+c.MZC*O,M=h;M[0]=T;M[1]=E;M[2]=R;var j=y;!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]}}(c.whitePoint,M,j);var L=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,y=(1-c)/(1-decodeL(t[2])),g=1-y;o[0]=r[0]*l+u;o[1]=r[1]*h+d;o[2]=r[2]*y+g}else{o[0]=r[0];o[1]=r[1];o[2]=r[2]}}(c.blackPoint,j,L);var D=y;!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)}(l,L,D);var N=h;matrixProduct(o,D,N);v[m]=255*sRGBTransferFunction(N[0]);v[m+1]=255*sRGBTransferFunction(N[1]);v[m+2]=255*sRGBTransferFunction(N[2])}return function(t){_inherits(CalRGBCS,t);var r=_createSuper(CalRGBCS);function CalRGBCS(t,o,l,u){var h;_classCallCheck(this,CalRGBCS);h=r.call(this,"CalRGB",3);if(!t)throw new c.FormatError("WhitePoint missing - required for color space CalRGB");o||(o=new Float32Array(3));l||(l=new Float32Array([1,1,1]));u||(u=new Float32Array([1,0,0,0,1,0,0,0,1]));var d=t[0],y=t[1],g=t[2];h.whitePoint=t;var v=o[0],m=o[1],_=o[2];h.blackPoint=o;h.GR=l[0];h.GG=l[1];h.GB=l[2];h.MXA=u[0];h.MYA=u[1];h.MZA=u[2];h.MXB=u[3];h.MYB=u[4];h.MZB=u[5];h.MXC=u[6];h.MYC=u[7];h.MZC=u[8];if(d<0||g<0||1!==y)throw new c.FormatError("Invalid WhitePoint components for ".concat(h.name)+", no fallback available");if(v<0||m<0||_<0){(0,c.info)("Invalid BlackPoint for ".concat(h.name," [").concat(v,", ").concat(m,", ").concat(_,"], ")+"falling back to default.");h.blackPoint=new Float32Array(3)}if(h.GR<0||h.GG<0||h.GB<0){(0,c.info)("Invalid Gamma [".concat(h.GR,", ").concat(h.GG,", ").concat(h.GB,"] for ")+"".concat(h.name,", falling back to default."));h.GR=h.GG=h.GB=1}return h}_createClass(CalRGBCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,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),y=0;y<o;++y){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}(d)}(),C=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],y=r[o+2];if(!1!==c){h=decode(h,c,0,100);d=decode(d,c,t.amin,t.amax);y=decode(y,c,t.bmin,t.bmax)}d>t.amax?d=t.amax:d<t.amin&&(d=t.amin);y>t.bmax?y=t.bmax:y<t.bmin&&(y=t.bmin);var g,v,m,_=(h+16)/116,w=_+d/500,k=_-y/200,S=t.XW*fn_g(w),C=t.YW*fn_g(_),x=t.ZW*fn_g(k);if(t.ZW<1){g=3.1339*S+-1.617*C+-.4906*x;v=-.9785*S+1.916*C+.0333*x;m=.072*S+-.229*C+1.4057*x}else{g=3.2406*S+-1.5372*C+-.4986*x;v=-.9689*S+1.8758*C+.0415*x;m=.0557*S+-.204*C+1.057*x}l[u]=255*Math.sqrt(g);l[u+1]=255*Math.sqrt(v);l[u+2]=255*Math.sqrt(m)}return function(t){_inherits(LabCS,t);var r=_createSuper(LabCS);function LabCS(t,o,l){var u;_classCallCheck(this,LabCS);u=r.call(this,"Lab",3);if(!t)throw new c.FormatError("WhitePoint missing - required for color space Lab");o||(o=[0,0,0]);l||(l=[-100,100,-100,100]);u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.amin=l[0];u.amax=l[1];u.bmin=l[2];u.bmax=l[3];u.XB=o[0];u.YB=o[1];u.ZB=o[2];if(u.XW<0||u.ZW<0||1!==u.YW)throw new c.FormatError("Invalid WhitePoint components, no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,c.info)("Invalid BlackPoint, falling back to default");u.XB=u.YB=u.ZB=0}if(u.amin>u.amax||u.bmin>u.bmax){(0,c.info)("Invalid Range, falling back to defaults");u.amin=-100;u.amax=100;u.bmin=-100;u.bmax=100}return u}_createClass(LabCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,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,y=0;y<o;y++){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,c.shadow)(this,"usesZeroToOneRange",!1)}}]);return LabCS}(d)}()},(t,r,o)=>{o(192)("Uint16",(function(t){return function Uint16Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{o(192)("Float32",(function(t){return function Float32Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{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)}o(114);o(56);o(104);o(113);o(2);o(54);o(130);o(131);o(132);o(133);o(134);Object.defineProperty(r,"__esModule",{value:!0});r.PartialEvaluator=r.EvaluatorPreprocessor=void 0;o(384);o(143);o(145);o(362);o(290);o(302);o(183);o(137);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(382);o(175);o(177);o(309);o(293);o(335);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(379);o(385);o(296);o(105);o(372);o(123);o(129);o(337);o(339);o(386);o(300);o(361);o(373);o(387);var c=o(304),l=o(388),u=o(350),h=o(412),d=o(416),y=o(420),g=o(429),v=o(430),m=o(421),_=o(436),w=o(391),k=o(441),S=o(358),C=o(354),x=o(442),O=o(380),T=o(393),E=o(417),R=o(443),M=o(418),j=o(343),L=o(424),D=o(419),N=o(444),U=o(445),G=o(446),$=o(447);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,_toPropertyKey(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 _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}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 H=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),X=1,q=2,z=Promise.resolve();function normalizeBlendMode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)){var o,l=_createForOfIteratorHelper(t);try{for(l.s();!(o=l.n()).done;){var h=normalizeBlendMode(o.value,!0);if(h)return h}}catch(t){l.e(t)}finally{l.f()}(0,c.warn)("Unsupported blend mode Array: ".concat(t));return"source-over"}if(!(t instanceof u.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,c.warn)("Unsupported blend mode: ".concat(t.name));return"source-over"}function incrementCachedImageMaskCount(t){var r;t.fn===c.OPS.paintImageMaskXObject&&(null===(r=t.args[0])||void 0===r?void 0:r.count)>0&&t.args[0].count++}var W=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}}]);return TimeSlotManager}();_defineProperty(W,"TIME_SLOT_DURATION_MS",20);_defineProperty(W,"CHECK_TIME_EVERY",100);var V=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,y=t.globalImageCache,g=t.systemFontCache,v=t.options,m=void 0===v?null:v;_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=y;this.systemFontCache=g;this.options=m||H;this.parsingType3Font=!1;this._regionalImageCache=new k.RegionalImageCache;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this);N.ImageResizer.setMaxArea(this.options.canvasMaxAreaInBytes)}_createClass(PartialEvaluator,[{key:"_pdfFunctionFactory",get:function get(){var t=new _.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,c.shadow)(this,"_pdfFunctionFactory",t)}},{key:"clone",value:function clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.create(this);r.options=Object.assign(Object.create(null),this.options,t);return r}},{key:"hasBlendModes",value:function hasBlendModes(t,r){if(!(t instanceof u.Dict))return!1;if(t.objId&&r.has(t.objId))return!1;var o=new u.RefSet(r);t.objId&&o.put(t.objId);for(var l=[t],h=this.xref;l.length;){var d=l.shift(),y=d.get("ExtGState");if(y instanceof u.Dict){var g,v=_createForOfIteratorHelper(y.getRawValues());try{for(v.s();!(g=v.n()).done;){var m=g.value;if(m instanceof u.Ref){if(o.has(m))continue;try{m=h.fetch(m)}catch(t){o.put(m);(0,c.info)('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(m instanceof u.Dict){m.objId&&o.put(m.objId);var _=m.get("BM");if(_ instanceof u.Name){if("Normal"!==_.name)return!0}else if(void 0!==_&&Array.isArray(_)){var w,k=_createForOfIteratorHelper(_);try{for(k.s();!(w=k.n()).done;){var S=w.value;if(S instanceof u.Name&&"Normal"!==S.name)return!0}}catch(t){k.e(t)}finally{k.f()}}}}}catch(t){v.e(t)}finally{v.f()}}var x=d.get("XObject");if(x instanceof u.Dict){var O,T=_createForOfIteratorHelper(x.getRawValues());try{for(T.s();!(O=T.n()).done;){var E=O.value;if(E instanceof u.Ref){if(o.has(E))continue;try{E=h.fetch(E)}catch(t){o.put(E);(0,c.info)('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if(E instanceof C.BaseStream){E.dict.objId&&o.put(E.dict.objId);var R=E.dict.get("Resources");if(R instanceof u.Dict&&(!R.objId||!o.has(R.objId))){l.push(R);R.objId&&o.put(R.objId)}}}}catch(t){T.e(t)}finally{T.f()}}}var M,j=_createForOfIteratorHelper(o);try{for(j.s();!(M=j.n()).done;){var L=M.value;r.put(L)}}catch(t){j.e(t)}finally{j.f()}return!1}},{key:"fetchBuiltInCMap",value:(te=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t){var r,o,l,u,h,d;return _regeneratorRuntime().wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:if(!(o=this.builtInCMapCache.get(t))){y.next=3;break}return y.abrupt("return",o);case 3:u=this.options.cMapUrl;"Function"===(null===(r=u)||void 0===r?void 0:r.constructor.name)&&(u=u());if(null===u){y.next=21;break}h="".concat(u).concat(t,".bcmap");y.next=9;return fetch(h);case 9:if((d=y.sent).ok){y.next=12;break}throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(h,'" with "').concat(d.statusText,'".'));case 12:y.t0=Uint8Array;y.next=15;return d.arrayBuffer();case 15:y.t1=y.sent;y.t2=new y.t0(y.t1);y.t3=c.CMapCompressionType.BINARY;l={cMapData:y.t2,compressionType:y.t3};y.next=24;break;case 21:y.next=23;return this.handler.sendWithPromise("FetchBuiltInCMap",{name:t});case 23:l=y.sent;case 24:l.compressionType!==c.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,l);return y.abrupt("return",l);case 26:case"end":return y.stop()}}),_callee,this)}))),function fetchBuiltInCMap(t){return te.apply(this,arguments)})},{key:"fetchStandardFontData",value:(ee=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t){var r,o,l,u,h,d;return _regeneratorRuntime().wrap((function _callee2$(g){for(;;)switch(g.prev=g.next){case 0:if(!(r=this.standardFontDataCache.get(t))){g.next=3;break}return g.abrupt("return",new S.Stream(r));case 3:if(!this.options.useSystemFonts||"Symbol"===t||"ZapfDingbats"===t){g.next=5;break}return g.abrupt("return",null);case 5:o=(0,y.getFontNameToFileMap)(),l=o[t];if(null===this.options.standardFontDataUrl){g.next=20;break}h="".concat(this.options.standardFontDataUrl).concat(l);g.next=10;return fetch(h);case 10:if((d=g.sent).ok){g.next=15;break}(0,c.warn)('fetchStandardFontData: failed to fetch file "'.concat(h,'" with "').concat(d.statusText,'".'));g.next=18;break;case 15:g.next=17;return d.arrayBuffer();case 17:u=g.sent;case 18:g.next=29;break;case 20:g.prev=20;g.next=23;return this.handler.sendWithPromise("FetchStandardFontData",{filename:l});case 23:u=g.sent;g.next=29;break;case 26:g.prev=26;g.t0=g.catch(20);(0,c.warn)('fetchStandardFontData: failed to fetch file "'.concat(l,'" with "').concat(g.t0,'".'));case 29:if(u){g.next=31;break}return g.abrupt("return",null);case 31:this.standardFontDataCache.set(t,u);return g.abrupt("return",new S.Stream(u));case 33:case"end":return g.stop()}}),_callee2,this,[[20,26]])}))),function fetchStandardFontData(t){return ee.apply(this,arguments)})},{key:"buildFormXObject",value:(V=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t,r,o,l,h,d,y){var g,v,m,_,w,k,S,C,x,T,E;return _regeneratorRuntime().wrap((function _callee3$(R){for(;;)switch(R.prev=R.next){case 0:g=r.dict;v=g.getArray("Matrix");m=g.getArray("BBox");m=Array.isArray(m)&&4===m.length?c.Util.normalizeRect(m):null;if(!g.has("OC")){R.next=8;break}R.next=7;return this.parseMarkedContentProps(g.get("OC"),t);case 7:_=R.sent;case 8:void 0!==_&&l.addOp(c.OPS.beginMarkedContentProps,["OC",_]);if(!(k=g.get("Group"))){R.next=29;break}w={matrix:v,bbox:m,smask:o,isolated:!1,knockout:!1};S=k.get("S");C=null;if(!(0,u.isName)(S,"Transparency")){R.next=27;break}w.isolated=k.get("I")||!1;w.knockout=k.get("K")||!1;if(!k.has("CS")){R.next=27;break}x=k.getRaw("CS");if(!(T=O.ColorSpace.getCached(x,this.xref,y))){R.next=24;break}C=T;R.next=27;break;case 24:R.next=26;return this.parseColorSpace({cs:x,resources:t,localColorSpaceCache:y});case 26:C=R.sent;case 27:if(null!=o&&o.backdrop){C||(C=O.ColorSpace.singletons.rgb);o.backdrop=C.getRgb(o.backdrop,0)}l.addOp(c.OPS.beginGroup,[w]);case 29:E=k?[v,null]:[v,m];l.addOp(c.OPS.paintFormXObjectBegin,E);return R.abrupt("return",this.getOperatorList({stream:r,task:h,resources:g.get("Resources")||t,operatorList:l,initialState:d}).then((function(){l.addOp(c.OPS.paintFormXObjectEnd,[]);k&&l.addOp(c.OPS.endGroup,[w]);void 0!==_&&l.addOp(c.OPS.endMarkedContent,[])})));case 32:case"end":return R.stop()}}),_callee3,this)}))),function buildFormXObject(t,r,o,c,l,u,h){return V.apply(this,arguments)})},{key:"_sendImgData",value:function _sendImgData(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=r?[r.bitmap||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:(j=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(t){var r,o,l,u,h,d,y,g,v,m,_,w,k,S,C,x,O,E,R,M,j,L,D,N,U,G,H,X,q,z=this;return _regeneratorRuntime().wrap((function _callee5$(W){for(;;)switch(W.prev=W.next){case 0:r=t.resources,o=t.image,l=t.isInline,u=void 0!==l&&l,h=t.operatorList,d=t.cacheKey,y=t.localImageCache,g=t.localColorSpaceCache;v=o.dict;m=v.objId;_=v.get("W","Width");w=v.get("H","Height");if(_&&"number"==typeof _&&w&&"number"==typeof w){W.next=8;break}(0,c.warn)("Image dimensions are missing, or not numbers.");return W.abrupt("return");case 8:if(!(-1!==(k=this.options.maxImageSize)&&_*w>k)){W.next=15;break}S="Image exceeded maximum allowed size and was removed.";if(!this.options.ignoreErrors){W.next=14;break}(0,c.warn)(S);return W.abrupt("return");case 14:throw new Error(S);case 15:if(!v.has("OC")){W.next=19;break}W.next=18;return this.parseMarkedContentProps(v.get("OC"),r);case 18:C=W.sent;case 19:if(!v.get("IM","ImageMask")){W.next=46;break}E=v.get("I","Interpolate");R=_+7>>3;M=o.getBytes(R*w);j=v.getArray("D","Decode");if(!this.parsingType3Font){W.next=32;break}(x=$.PDFImage.createRawMask({imgArray:M,width:_,height:w,imageIsFromDecodeStream:o instanceof T.DecodeStream,inverseDecode:(null==j?void 0:j[0])>0,interpolate:E})).cached=!!d;O=[x];h.addImageOps(c.OPS.paintImageMaskXObject,O,C);if(d){L={fn:c.OPS.paintImageMaskXObject,args:O,optionalContent:C};y.set(d,m,L);m&&this._regionalImageCache.set(null,m,L)}return W.abrupt("return");case 32:W.next=34;return $.PDFImage.createMask({imgArray:M,width:_,height:w,imageIsFromDecodeStream:o instanceof T.DecodeStream,inverseDecode:(null==j?void 0:j[0])>0,interpolate:E,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});case 34:if(!(x=W.sent).isSingleOpaquePixel){W.next=39;break}h.addImageOps(c.OPS.paintSolidColorImageMask,[],C);if(d){D={fn:c.OPS.paintSolidColorImageMask,args:[],optionalContent:C};y.set(d,m,D);m&&this._regionalImageCache.set(null,m,D)}return W.abrupt("return");case 39:N="mask_".concat(this.idFactory.createObjId());h.addDependency(N);this._sendImgData(N,x);O=[{data:N,width:x.width,height:x.height,interpolate:x.interpolate,count:1}];h.addImageOps(c.OPS.paintImageMaskXObject,O,C);if(d){U={fn:c.OPS.paintImageMaskXObject,args:O,optionalContent:C};y.set(d,m,U);m&&this._regionalImageCache.set(null,m,U)}return W.abrupt("return");case 46:if(!u||v.has("SMask")||v.has("Mask")||!(_+w<200)){W.next=55;break}G=new $.PDFImage({xref:this.xref,res:r,image:o,isInline:u,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:g});W.next=51;return G.createImageData(!0,!1);case 51:x=W.sent;h.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported;h.addImageOps(c.OPS.paintInlineImageXObject,[x],C);return W.abrupt("return");case 55:H="img_".concat(this.idFactory.createObjId()),X=!1;this.parsingType3Font?H="".concat(this.idFactory.getDocId(),"_type3_").concat(H):m&&(X=this.globalImageCache.shouldCache(m,this.pageIndex))&&(H="".concat(this.idFactory.getDocId(),"_").concat(H));h.addDependency(H);O=[H,_,w];$.PDFImage.buildImage({xref:this.xref,res:r,image:o,isInline:u,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:g}).then(function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(t){var r;return _regeneratorRuntime().wrap((function _callee4$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return t.createImageData(!1,z.options.isOffscreenCanvasSupported);case 2:x=o.sent;if(d&&m&&X){r=x.bitmap?x.width*x.height*4:x.data.length;z.globalImageCache.addByteSize(m,r)}return o.abrupt("return",z._sendImgData(H,x,X));case 5:case"end":return o.stop()}}),_callee4)})));return function(r){return t.apply(this,arguments)}}()).catch((function(t){(0,c.warn)('Unable to decode image "'.concat(H,'": "').concat(t,'".'));return z._sendImgData(H,null,X)}));h.addImageOps(c.OPS.paintImageXObject,O,C);if(d){q={fn:c.OPS.paintImageXObject,args:O,optionalContent:C};y.set(d,m,q);if(m){this._regionalImageCache.set(null,m,q);if(X){(0,c.assert)(!u,"Cannot cache an inline image globally.");this.globalImageCache.setData(m,{objId:H,fn:c.OPS.paintImageXObject,args:O,optionalContent:C,byteSize:0})}}}case 62:case"end":return W.stop()}}),_callee5,this)}))),function buildPaintImageXObject(t){return j.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")},y=t.get("TR");if((0,_.isPDFFunction)(y)){for(var g=this._pdfFunctionFactory.create(y),v=new Uint8Array(256),m=new Float32Array(1),w=0;w<256;w++){m[0]=w/255;g(m,0,m,0);v[w]=255*m[0]|0}d.transferMap=v}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,_.isPDFFunction)(t))return null;r=[t]}var o,c=[],l=0,h=0,d=_createForOfIteratorHelper(r);try{for(d.s();!(o=d.n()).done;){var y=o.value,g=this.xref.fetchIfRef(y);l++;if((0,u.isName)(g,"Identity"))c.push(null);else{if(!(0,_.isPDFFunction)(g))return null;for(var v=this._pdfFunctionFactory.create(g),m=new Uint8Array(256),w=new Float32Array(1),k=0;k<256;k++){w[0]=k/255;v(w,0,w,0);m[k]=255*w[0]|0}c.push(m);h++}}}catch(t){d.e(t)}finally{d.f()}return 1!==l&&4!==l||0===h?null:c}},{key:"handleTilingType",value:function handleTilingType(t,r,o,l,h,d,y,v){var m=this,_=new G.OperatorList,w=u.Dict.merge({xref:this.xref,dictArray:[h.get("Resources"),o]});return this.getOperatorList({stream:l,task:y,resources:w,operatorList:_}).then((function(){var o=_.getIR(),c=(0,g.getTilingPatternIR)(o,h,r);d.addDependencies(_.dependencies);d.addOp(t,c);h.objId&&v.set(null,h.objId,{operatorListIR:o,dict:h})})).catch((function(t){if(!(t instanceof c.AbortException)){if(!m.options.ignoreErrors)throw t;(0,c.warn)('handleTilingType - ignoring pattern: "'.concat(t,'".'))}}))}},{key:"handleSetFont",value:function handleSetFont(t,r,o,c,l,d){var y=this,g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,v=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,m=(null==r?void 0:r[0])instanceof u.Name?r[0].name:null;return this.loadFont(m,o,t,g,v).then((function(r){return r.font.isType3Font?r.loadType3Data(y,t,l).then((function(){c.addDependencies(r.type3Dependencies);return r})).catch((function(t){return new K({loadedName:"g_font_error",font:new h.ErrorFont("Type3 font load error: ".concat(t)),dict:r.font,evaluatorOptions:y.options})})):r})).then((function(t){d.font=t.font;t.send(y.handler);return t.loadedName}))}},{key:"handleText",value:function handleText(t,r){var o=r.font,l=o.charsToGlyphs(t);if(o.data){(!!(r.textRenderingMode&c.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===r.fillColorSpace.name||o.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(o,l,this.handler,this.options)}return l}},{key:"ensureStateFont",value:function ensureStateFont(t){if(!t.font){var r=new c.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw r;(0,c.warn)('ensureStateFont: "'.concat(r,'".'))}}},{key:"setGState",value:(w=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(t){var r,o,l,h,d,y,g,v,m,_,w,k,S,C,x,O=this;return _regeneratorRuntime().wrap((function _callee6$(T){for(;;)switch(T.prev=T.next){case 0:r=t.resources,o=t.gState,l=t.operatorList,h=t.cacheKey,d=t.task,y=t.stateManager,g=t.localGStateCache,v=t.localColorSpaceCache;m=o.objId;_=!0;w=[];k=Promise.resolve();S=_createForOfIteratorHelper(o.getKeys());T.prev=6;x=_regeneratorRuntime().mark((function _loop(){var t,h,g;return _regeneratorRuntime().wrap((function _loop$(m){for(;;)switch(m.prev=m.next){case 0:t=C.value;h=o.get(t);m.t0=t;m.next="Type"===m.t0?5:"LW"===m.t0||"LC"===m.t0||"LJ"===m.t0||"ML"===m.t0||"D"===m.t0||"RI"===m.t0||"FL"===m.t0||"CA"===m.t0||"ca"===m.t0?6:"Font"===m.t0?8:"BM"===m.t0?11:"SMask"===m.t0?13:"TR"===m.t0?18:"OP"===m.t0||"op"===m.t0||"OPM"===m.t0||"BG"===m.t0||"BG2"===m.t0||"UCR"===m.t0||"UCR2"===m.t0||"TR2"===m.t0||"HT"===m.t0||"SM"===m.t0||"SA"===m.t0||"AIS"===m.t0||"TK"===m.t0?21:23;break;case 5:return m.abrupt("break",25);case 6:w.push([t,h]);return m.abrupt("break",25);case 8:_=!1;k=k.then((function(){return O.handleSetFont(r,null,h[0],l,d,y.state).then((function(r){l.addDependency(r);w.push([t,[r,h[1]]])}))}));return m.abrupt("break",25);case 11:w.push([t,normalizeBlendMode(h)]);return m.abrupt("break",25);case 13:if(!(0,u.isName)(h,"None")){m.next=16;break}w.push([t,!1]);return m.abrupt("break",25);case 16:if(h instanceof u.Dict){_=!1;k=k.then((function(){return O.handleSMask(h,r,l,d,y,v)}));w.push([t,!0])}else(0,c.warn)("Unsupported SMask type");return m.abrupt("break",25);case 18:g=O.handleTransferFunction(h);w.push([t,g]);return m.abrupt("break",25);case 21:(0,c.info)("graphic state operator "+t);return m.abrupt("break",25);case 23:(0,c.info)("Unknown graphic state operator "+t);return m.abrupt("break",25);case 25:case"end":return m.stop()}}),_loop)}));S.s();case 9:if((C=S.n()).done){T.next=13;break}return T.delegateYield(x(),"t0",11);case 11:T.next=9;break;case 13:T.next=18;break;case 15:T.prev=15;T.t1=T.catch(6);S.e(T.t1);case 18:T.prev=18;S.f();return T.finish(18);case 21:return T.abrupt("return",k.then((function(){w.length>0&&l.addOp(c.OPS.setGState,[w]);_&&g.set(h,m,w)})));case 22:case"end":return T.stop()}}),_callee6,null,[[6,15,18,21]])}))),function setGState(t){return w.apply(this,arguments)})},{key:"loadFont",value:function loadFont(t,r,o){var l,d,y=this,g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,v=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,m=function(){var o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee7(){return _regeneratorRuntime().wrap((function _callee7$(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new K({loadedName:"g_font_error",font:new h.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:y.options}));case 1:case"end":return o.stop()}}),_callee7)})));return function errorFont(){return o.apply(this,arguments)}}();if(r)r instanceof u.Ref&&(d=r);else{var _=o.get("Font");_&&(d=_.getRaw(t))}if(d){if(this.parsingType3Font&&this.type3FontRefs.has(d))return m();if(this.fontCache.has(d))return this.fontCache.get(d);r=this.xref.fetchIfRef(d)}if(!(r instanceof u.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,c.warn)('Font "'.concat(t,'" is not available.'));return m()}(0,c.warn)('Font "'.concat(t,'" is not available -- attempting to fallback to a default font.'));r=g||PartialEvaluator.fallbackFontDict}if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var w,k=new c.PromiseCapability;try{(w=this.preEvaluateFont(r)).cssFontInfo=v}catch(t){(0,c.warn)('loadFont - preEvaluateFont failed: "'.concat(t,'".'));return m()}var S,C=w,x=C.descriptor,O=C.hash,T=d instanceof u.Ref;if(O&&x instanceof u.Dict){var E=x.fontAliases||(x.fontAliases=Object.create(null));if(E[O]){var R=E[O].aliasRef;if(T&&R&&this.fontCache.has(R)){this.fontCache.putAlias(d,R);return this.fontCache.get(d)}}else E[O]={fontID:this.idFactory.createFontId()};T&&(E[O].aliasRef=d);S=E[O].fontID}else S=this.idFactory.createFontId();(0,c.assert)(null===(l=S)||void 0===l?void 0:l.startsWith("f"),'The "fontID" must be (correctly) defined.');if(T)this.fontCache.put(d,k.promise);else{r.cacheKey="cacheKey_".concat(S);this.fontCache.put(r.cacheKey,k.promise)}r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(S);this.translateFont(w).then((function(t){k.resolve(new K({loadedName:r.loadedName,font:t,dict:r,evaluatorOptions:y.options}))})).catch((function(t){(0,c.warn)('loadFont - translateFont failed: "'.concat(t,'".'));k.resolve(new K({loadedName:r.loadedName,font:new h.ErrorFont(t instanceof Error?t.message:t),dict:r,evaluatorOptions:y.options}))}));return k.promise}},{key:"buildPath",value:function buildPath(t,r,o){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=t.length-1;o||(o=[]);if(u<0||t.fnArray[u]!==c.OPS.constructPath){if(l){(0,c.warn)('Encountered path operator "'.concat(r,'" inside of a text object.'));t.addOp(c.OPS.save,null)}var h;switch(r){case c.OPS.rectangle:var d=o[0]+o[2],y=o[1]+o[3];h=[Math.min(o[0],d),Math.max(o[0],d),Math.min(o[1],y),Math.max(o[1],y)];break;case c.OPS.moveTo:case c.OPS.lineTo:h=[o[0],o[0],o[1],o[1]];break;default:h=[1/0,-1/0,1/0,-1/0]}t.addOp(c.OPS.constructPath,[[r],o,h]);l&&t.addOp(c.OPS.restore,null)}else{var g,v=t.argsArray[u];v[0].push(r);(g=v[1]).push.apply(g,_toConsumableArray(o));var m=v[2];switch(r){case c.OPS.rectangle:var _=o[0]+o[2],w=o[1]+o[3];m[0]=Math.min(m[0],o[0],_);m[1]=Math.max(m[1],o[0],_);m[2]=Math.min(m[2],o[1],w);m[3]=Math.max(m[3],o[1],w);break;case c.OPS.moveTo:case c.OPS.lineTo:m[0]=Math.min(m[0],o[0]);m[1]=Math.max(m[1],o[0]);m[2]=Math.min(m[2],o[1]);m[3]=Math.max(m[3],o[1])}}}},{key:"parseColorSpace",value:function parseColorSpace(t){var r=this,o=t.cs,l=t.resources,u=t.localColorSpaceCache;return O.ColorSpace.parseAsync({cs:o,xref:this.xref,resources:l,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).catch((function(t){if(t instanceof c.AbortException)return null;if(r.options.ignoreErrors){(0,c.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=g.Pattern.parseShading(r,this.xref,o,this._pdfFunctionFactory,c).getIR();u="pattern_".concat(this.idFactory.createObjId());this.parsingType3Font&&(u="".concat(this.idFactory.getDocId(),"_type3_").concat(u));l.set(r,u);this.parsingType3Font?this.handler.send("commonobj",[u,"Pattern",h]):this.handler.send("obj",[u,this.pageIndex,"Pattern",h])}return u}},{key:"handleColorN",value:function handleColorN(t,r,o,l,h,d,y,v,m,_){var w=o.pop();if(w instanceof u.Name){var k=h.getRaw(w.name),S=k instanceof u.Ref&&m.getByRef(k);if(S)try{var x=l.base?l.base.getRgb(o,0):null,O=(0,g.getTilingPatternIR)(S.operatorListIR,S.dict,x);t.addOp(r,O);return}catch(t){}var T=this.xref.fetchIfRef(k);if(T){var E=T instanceof C.BaseStream?T.dict:T,R=E.get("PatternType");if(R===X){var M=l.base?l.base.getRgb(o,0):null;return this.handleTilingType(r,M,d,T,E,t,y,m)}if(R===q){var j=E.get("Shading"),L=E.getArray("Matrix"),D=this.parseShading({shading:j,resources:d,localColorSpaceCache:v,localShadingPatternCache:_});t.addOp(r,["Shading",D,L]);return}throw new c.FormatError("Unknown PatternType: ".concat(R))}}throw new c.FormatError("Unknown PatternName: ".concat(w))}},{key:"_parseVisibilityExpression",value:function _parseVisibilityExpression(t,r,o){if(++r>10)(0,c.warn)("Visibility expression is too deeply nested");else{var l=t.length,h=this.xref.fetchIfRef(t[0]);if(!(l<2)&&h instanceof u.Name){switch(h.name){case"And":case"Or":case"Not":o.push(h.name);break;default:(0,c.warn)("Invalid operator ".concat(h.name," in visibility expression"));return}for(var d=1;d<l;d++){var y=t[d],g=this.xref.fetchIfRef(y);if(Array.isArray(g)){var v=[];o.push(v);this._parseVisibilityExpression(g,r,v)}else y instanceof u.Ref&&o.push(y.toString())}}else(0,c.warn)("Invalid visibility expression")}}},{key:"parseMarkedContentProps",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee8(t,r){var o,l,h,d,y,g,v,m,_,w;return _regeneratorRuntime().wrap((function _callee8$(k){for(;;)switch(k.prev=k.next){case 0:if(!(t instanceof u.Name)){k.next=5;break}l=r.get("Properties");o=l.get(t.name);k.next=10;break;case 5:if(!(t instanceof u.Dict)){k.next=9;break}o=t;k.next=10;break;case 9:throw new c.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(h=o.get("Type").name)){k.next=15;break}return k.abrupt("return",{type:h,id:o.objId});case 15:if("OCMD"!==h){k.next=31;break}d=o.get("VE");if(!Array.isArray(d)){k.next=22;break}y=[];this._parseVisibilityExpression(d,0,y);if(!(y.length>0)){k.next=22;break}return k.abrupt("return",{type:"OCMD",expression:y});case 22:g=o.get("OCGs");if(!(Array.isArray(g)||g instanceof u.Dict)){k.next=29;break}v=[];if(Array.isArray(g)){m=_createForOfIteratorHelper(g);try{for(m.s();!(_=m.n()).done;){w=_.value;v.push(w.toString())}}catch(t){m.e(t)}finally{m.f()}}else v.push(g.objId);return k.abrupt("return",{type:h,ids:v,policy:o.get("P")instanceof u.Name?o.get("P").name:null,expression:null});case 29:if(!(g instanceof u.Ref)){k.next=31;break}return k.abrupt("return",{type:h,id:g.toString()});case 31:return k.abrupt("return",null);case 32:case"end":return k.stop()}}),_callee8,this)}))),function parseMarkedContentProps(t,r){return o.apply(this,arguments)})},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.stream,l=t.task,h=t.resources,d=t.operatorList,y=t.initialState,g=void 0===y?null:y,v=t.fallbackFontDict,m=void 0===v?null:v;h||(h=u.Dict.empty);g||(g=new Z);if(!d)throw new Error('getOperatorList: missing "operatorList" parameter');var _=this,w=this.xref,S=!1,x=new k.LocalImageCache,T=new k.LocalColorSpaceCache,E=new k.LocalGStateCache,R=new k.LocalTilingPatternCache,M=new Map,j=h.get("XObject")||u.Dict.empty,L=h.get("Pattern")||u.Dict.empty,D=new Y(g),N=new Q(o,w,D),U=new W;function closePendingRestoreOPS(t){for(var r=0,o=N.savedStatesDepth;r<o;r++)d.addOp(c.OPS.restore,[])}return new Promise((function promiseBody(t,r){var o=function next(o){Promise.all([o,d.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};l.ensureNotTerminated();U.reset();for(var y,g,v,k,G,$,H={};!(y=U.check());){H.args=null;if(!N.read(H))break;var X=H.args,q=H.fn;switch(0|q){case c.OPS.paintXObject:$=X[0]instanceof u.Name;G=X[0].name;if($){var W=x.getByName(G);if(W){d.addImageOps(W.fn,W.args,W.optionalContent);incrementCachedImageMaskCount(W);X=null;continue}}o(new Promise((function(t,r){if(!$)throw new c.FormatError("XObject must be referred to by name.");var o=j.getRaw(G);if(o instanceof u.Ref){var y=x.getByRef(o)||_._regionalImageCache.getByRef(o);if(y){d.addImageOps(y.fn,y.args,y.optionalContent);incrementCachedImageMaskCount(y);t();return}var g=_.globalImageCache.getData(o,_.pageIndex);if(g){d.addDependency(g.objId);d.addImageOps(g.fn,g.args,g.optionalContent);t();return}o=w.fetch(o)}if(!(o instanceof C.BaseStream))throw new c.FormatError("XObject should be a stream");var v=o.dict.get("Subtype");if(!(v instanceof u.Name))throw new c.FormatError("XObject should have a Name subtype");if("Form"!==v.name)if("Image"!==v.name){if("PS"!==v.name)throw new c.FormatError("Unhandled XObject subtype ".concat(v.name));(0,c.info)("Ignored XObject subtype PS");t()}else _.buildPaintImageXObject({resources:h,image:o,operatorList:d,cacheKey:G,localImageCache:x,localColorSpaceCache:T}).then(t,r);else{D.save();_.buildFormXObject(h,o,null,d,l,D.state.clone(),T).then((function(){D.restore();t()}),r)}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!_.options.ignoreErrors)throw t;(0,c.warn)('getOperatorList - ignoring XObject: "'.concat(t,'".'))}})));return;case c.OPS.setFont:var V=X[1];o(_.handleSetFont(h,X,null,d,l,D.state,m).then((function(t){d.addDependency(t);d.addOp(c.OPS.setFont,[t,V])})));return;case c.OPS.beginText:S=!0;break;case c.OPS.endText:S=!1;break;case c.OPS.endInlineImage:var K=X[0].cacheKey;if(K){var Y=x.getByName(K);if(Y){d.addImageOps(Y.fn,Y.args,Y.optionalContent);incrementCachedImageMaskCount(Y);X=null;continue}}o(_.buildPaintImageXObject({resources:h,image:X[0],isInline:!0,operatorList:d,cacheKey:K,localImageCache:x,localColorSpaceCache:T}));return;case c.OPS.showText:if(!D.state.font){_.ensureStateFont(D.state);continue}X[0]=_.handleText(X[0],D.state);break;case c.OPS.showSpacedText:if(!D.state.font){_.ensureStateFont(D.state);continue}var J,Z=[],Q=D.state,ee=_createForOfIteratorHelper(X[0]);try{for(ee.s();!(J=ee.n()).done;){var te=J.value;if("string"==typeof te){var re;(re=Z).push.apply(re,_toConsumableArray(_.handleText(te,Q)))}else"number"==typeof te&&Z.push(te)}}catch(t){ee.e(t)}finally{ee.f()}X[0]=Z;q=c.OPS.showText;break;case c.OPS.nextLineShowText:if(!D.state.font){_.ensureStateFont(D.state);continue}d.addOp(c.OPS.nextLine);X[0]=_.handleText(X[0],D.state);q=c.OPS.showText;break;case c.OPS.nextLineSetSpacingShowText:if(!D.state.font){_.ensureStateFont(D.state);continue}d.addOp(c.OPS.nextLine);d.addOp(c.OPS.setWordSpacing,[X.shift()]);d.addOp(c.OPS.setCharSpacing,[X.shift()]);X[0]=_.handleText(X[0],D.state);q=c.OPS.showText;break;case c.OPS.setTextRenderingMode:D.state.textRenderingMode=X[0];break;case c.OPS.setFillColorSpace:var ne=O.ColorSpace.getCached(X[0],w,T);if(ne){D.state.fillColorSpace=ne;continue}o(_.parseColorSpace({cs:X[0],resources:h,localColorSpaceCache:T}).then((function(t){t&&(D.state.fillColorSpace=t)})));return;case c.OPS.setStrokeColorSpace:var ae=O.ColorSpace.getCached(X[0],w,T);if(ae){D.state.strokeColorSpace=ae;continue}o(_.parseColorSpace({cs:X[0],resources:h,localColorSpaceCache:T}).then((function(t){t&&(D.state.strokeColorSpace=t)})));return;case c.OPS.setFillColor:X=(k=D.state.fillColorSpace).getRgb(X,0);q=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeColor:X=(k=D.state.strokeColorSpace).getRgb(X,0);q=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillGray:D.state.fillColorSpace=O.ColorSpace.singletons.gray;X=O.ColorSpace.singletons.gray.getRgb(X,0);q=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeGray:D.state.strokeColorSpace=O.ColorSpace.singletons.gray;X=O.ColorSpace.singletons.gray.getRgb(X,0);q=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillCMYKColor:D.state.fillColorSpace=O.ColorSpace.singletons.cmyk;X=O.ColorSpace.singletons.cmyk.getRgb(X,0);q=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeCMYKColor:D.state.strokeColorSpace=O.ColorSpace.singletons.cmyk;X=O.ColorSpace.singletons.cmyk.getRgb(X,0);q=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillRGBColor:D.state.fillColorSpace=O.ColorSpace.singletons.rgb;X=O.ColorSpace.singletons.rgb.getRgb(X,0);break;case c.OPS.setStrokeRGBColor:D.state.strokeColorSpace=O.ColorSpace.singletons.rgb;X=O.ColorSpace.singletons.rgb.getRgb(X,0);break;case c.OPS.setFillColorN:if("Pattern"===(k=D.state.fillColorSpace).name){o(_.handleColorN(d,c.OPS.setFillColorN,X,k,L,h,l,T,R,M));return}X=k.getRgb(X,0);q=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeColorN:if("Pattern"===(k=D.state.strokeColorSpace).name){o(_.handleColorN(d,c.OPS.setStrokeColorN,X,k,L,h,l,T,R,M));return}X=k.getRgb(X,0);q=c.OPS.setStrokeRGBColor;break;case c.OPS.shadingFill:var ie=h.get("Shading");if(!ie)throw new c.FormatError("No shading resource found");var oe=ie.get(X[0].name);if(!oe)throw new c.FormatError("No shading object found");X=[_.parseShading({shading:oe,resources:h,localColorSpaceCache:T,localShadingPatternCache:M})];q=c.OPS.shadingFill;break;case c.OPS.setGState:$=X[0]instanceof u.Name;G=X[0].name;if($){var se=E.getByName(G);if(se){se.length>0&&d.addOp(c.OPS.setGState,[se]);X=null;continue}}o(new Promise((function(t,r){if(!$)throw new c.FormatError("GState must be referred to by name.");var o=h.get("ExtGState");if(!(o instanceof u.Dict))throw new c.FormatError("ExtGState should be a dictionary.");var y=o.get(G);if(!(y instanceof u.Dict))throw new c.FormatError("GState should be a dictionary.");_.setGState({resources:h,gState:y,operatorList:d,cacheKey:G,task:l,stateManager:D,localGStateCache:E,localColorSpaceCache:T}).then(t,r)})).catch((function(t){if(!(t instanceof c.AbortException)){if(!_.options.ignoreErrors)throw t;(0,c.warn)('getOperatorList - ignoring ExtGState: "'.concat(t,'".'))}})));return;case c.OPS.moveTo:case c.OPS.lineTo:case c.OPS.curveTo:case c.OPS.curveTo2:case c.OPS.curveTo3:case c.OPS.closePath:case c.OPS.rectangle:_.buildPath(d,q,X,S);continue;case c.OPS.markPoint:case c.OPS.markPointProps:case c.OPS.beginCompat:case c.OPS.endCompat:continue;case c.OPS.beginMarkedContentProps:if(!(X[0]instanceof u.Name)){(0,c.warn)("Expected name for beginMarkedContentProps arg0=".concat(X[0]));continue}if("OC"===X[0].name){o(_.parseMarkedContentProps(X[1],h).then((function(t){d.addOp(c.OPS.beginMarkedContentProps,["OC",t])})).catch((function(t){if(!(t instanceof c.AbortException)){if(!_.options.ignoreErrors)throw t;(0,c.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(t,'".'))}})));return}X=[X[0].name,X[1]instanceof u.Dict?X[1].get("MCID"):null];break;case c.OPS.beginMarkedContent:case c.OPS.endMarkedContent:default:if(null!==X){for(g=0,v=X.length;g<v&&!(X[g]instanceof u.Dict);g++);if(g<v){(0,c.warn)("getOperatorList - ignoring operator: "+q);continue}}}d.addOp(q,X)}if(y)o(z);else{closePendingRestoreOPS();t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!r.options.ignoreErrors)throw t;(0,c.warn)('getOperatorList - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(t,'".'));closePendingRestoreOPS()}}))}},{key:"getTextContent",value:function getTextContent(t){var r=this,o=t.stream,l=t.task,h=t.resources,d=t.stateManager,y=void 0===d?null:d,g=t.includeMarkedContent,v=void 0!==g&&g,m=t.sink,_=t.seenStyles,w=void 0===_?new Set:_,S=t.viewBox,O=t.markedContentData,T=void 0===O?null:O,E=t.disableNormalization,R=void 0!==E&&E;h||(h=u.Dict.empty);y||(y=new Y(new J));v&&(T||(T={level:0}));var M={items:[],styles:Object.create(null)},j={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,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},L=[" "," "],D=0;function saveLastChar(t){var r=(D+1)%2,o=" "!==L[D]&&" "===L[r];L[D]=t;D=r;return o}function shouldAddWhitepsace(){return" "!==L[D]&&" "===L[(D+1)%2]}function resetLastChars(){L[0]=L[1]=" ";D=0}var N,U=.102,G=.03,$=-.2,H=.102,X=.6,q=.25,V=this,K=this.xref,Z=[],ee=null,te=new k.LocalImageCache,re=new k.LocalGStateCache,ne=new Q(o,K,y);function pushWhitespace(t){var r=t.width,o=void 0===r?0:r,c=t.height,l=void 0===c?0:c,u=t.transform,h=void 0===u?j.prevTransform:u,d=t.fontName,y=void 0===d?j.fontName:d;M.items.push({str:" ",dir:"ltr",width:o,height:l,transform:h,fontName:y,hasEOL:!1})}function getCurrentTextTransform(){var t=N.font,r=[N.fontSize*N.textHScale,0,0,N.fontSize,0,N.textRise];if(t.isType3Font&&(N.fontSize<=1||t.isCharBBox)&&!(0,c.isArrayEqual)(N.fontMatrix,c.FONT_IDENTITY_MATRIX)){var o=t.bbox[3]-t.bbox[1];o>0&&(r[3]*=o*N.fontMatrix[3])}return c.Util.transform(N.ctm,c.Util.transform(N.textMatrix,r))}function ensureTextContentItem(){if(j.initialized)return j;var t=N,r=t.font,o=t.loadedName;if(!w.has(o)){w.add(o);M.styles[o]={fontFamily:r.fallbackName,ascent:r.ascent,descent:r.descent,vertical:r.vertical}}j.fontName=o;var c=j.transform=getCurrentTextTransform();if(r.vertical){j.width=j.totalWidth=Math.hypot(c[0],c[1]);j.height=j.totalHeight=0;j.vertical=!0}else{j.width=j.totalWidth=0;j.height=j.totalHeight=Math.hypot(c[2],c[3]);j.vertical=!1}var l=Math.hypot(N.textLineMatrix[0],N.textLineMatrix[1]),u=Math.hypot(N.ctm[0],N.ctm[1]);j.textAdvanceScale=u*l;var h=N.fontSize;j.trackingSpaceMin=h*U;j.notASpace=h*G;j.negativeSpaceMax=h*$;j.spaceInFlowMin=h*H;j.spaceInFlowMax=h*X;j.hasEOL=!1;j.initialized=!0;return j}function updateAdvanceScale(){if(j.initialized){var t=Math.hypot(N.textLineMatrix[0],N.textLineMatrix[1]),r=Math.hypot(N.ctm[0],N.ctm[1])*t;if(r!==j.textAdvanceScale){if(j.vertical){j.totalHeight+=j.height*j.textAdvanceScale;j.height=0}else{j.totalWidth+=j.width*j.textAdvanceScale;j.width=0}j.textAdvanceScale=r}}}function handleSetFont(t,r){return V.loadFont(t,r,h).then((function(t){return t.font.isType3Font?t.loadType3Data(V,h,l).catch((function(){})).then((function(){return t})):t})).then((function(t){N.loadedName=t.loadedName;N.font=t.font;N.fontMatrix=t.font.fontMatrix||c.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(t){var r,o=getCurrentTextTransform(),c=o[4],l=o[5];if(null!==(r=N.font)&&void 0!==r&&r.vertical){if(c<S[0]||c>S[2]||l+t<S[1]||l>S[3])return!1}else if(c+t<S[0]||c>S[2]||l<S[1]||l>S[3])return!1;if(!N.font||!j.prevTransform)return!0;var u=j.prevTransform[4],h=j.prevTransform[5];if(u===c&&h===l)return!0;var d=-1;o[0]&&0===o[1]&&0===o[2]?d=o[0]>0?0:180:o[1]&&0===o[0]&&0===o[3]&&(d=o[1]>0?90:270);switch(d){case 0:break;case 90:var y=[l,c];c=y[0];l=y[1];var g=[h,u];u=g[0];h=g[1];break;case 180:var v=[-c,-l,-u,-h];c=v[0];l=v[1];u=v[2];h=v[3];break;case 270:var m=[-l,-c];c=m[0];l=m[1];var _=[-h,-u];u=_[0];h=_[1];break;default:var w=_slicedToArray(applyInverseRotation(c,l,o),2);c=w[0];l=w[1];var k=_slicedToArray(applyInverseRotation(u,h,j.prevTransform),2);u=k[0];h=k[1]}if(N.font.vertical){var C=(h-l)/j.textAdvanceScale,x=c-u,O=Math.sign(j.height);if(C<O*j.negativeSpaceMax){if(Math.abs(x)>.5*j.width){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(x)>j.width){appendEOL();return!0}C<=O*j.notASpace&&resetLastChars();if(C<=O*j.trackingSpaceMin)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({height:Math.abs(C)})}else j.height+=C;else if(!addFakeSpaces(C,j.prevTransform,O))if(0===j.str.length){resetLastChars();pushWhitespace({height:Math.abs(C)})}else j.height+=C;Math.abs(x)>j.width*q&&flushTextContentItem();return!0}var T=(c-u)/j.textAdvanceScale,E=l-h,R=Math.sign(j.width);if(T<R*j.negativeSpaceMax){if(Math.abs(E)>.5*j.height){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(E)>j.height){appendEOL();return!0}T<=R*j.notASpace&&resetLastChars();if(T<=R*j.trackingSpaceMin)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({width:Math.abs(T)})}else j.width+=T;else if(!addFakeSpaces(T,j.prevTransform,R))if(0===j.str.length){resetLastChars();pushWhitespace({width:Math.abs(T)})}else j.width+=T;Math.abs(E)>j.height*q&&flushTextContentItem();return!0}function buildTextContentItem(t){var r=t.chars,o=t.extraSpacing,c=N.font;if(r)for(var l=c.charsToGlyphs(r),u=N.fontMatrix[0]*N.fontSize,h=0,d=l.length;h<d;h++){var y=l[h],g=y.category;if(!g.isInvisibleFormatMark){var v=N.charSpacing+(h+1===d?o:0),m=y.width;c.vertical&&(m=y.vmetric?y.vmetric[0]:-m);var _=m*u;if(g.isWhitespace){if(c.vertical){v+=-_+N.wordSpacing;N.translateTextMatrix(0,-v)}else{v+=_+N.wordSpacing;N.translateTextMatrix(v*N.textHScale,0)}saveLastChar(" ")}else if(g.isZeroWidthDiacritic||compareWithLastPosition(_)){var w=ensureTextContentItem();g.isZeroWidthDiacritic&&(_=0);if(c.vertical){N.translateTextMatrix(0,_);_=Math.abs(_);w.height+=_}else{_*=N.textHScale;N.translateTextMatrix(_,0);w.width+=_}_&&(w.prevTransform=getCurrentTextTransform());var k=y.unicode;saveLastChar(k)&&w.str.push(" ");w.str.push(k);v&&(c.vertical?N.translateTextMatrix(0,-v):N.translateTextMatrix(v*N.textHScale,0))}else c.vertical?N.translateTextMatrix(0,_):N.translateTextMatrix(_*N.textHScale,0)}}else{var S=N.charSpacing+o;S&&(c.vertical?N.translateTextMatrix(0,-S):N.translateTextMatrix(S*N.textHScale,0))}}function appendEOL(){resetLastChars();if(j.initialized){j.hasEOL=!0;flushTextContentItem()}else M.items.push({str:"",dir:"ltr",width:0,height:0,transform:getCurrentTextTransform(),fontName:N.loadedName,hasEOL:!0})}function addFakeSpaces(t,r,o){if(o*j.spaceInFlowMin<=t&&t<=o*j.spaceInFlowMax){if(j.initialized){resetLastChars();j.str.push(" ")}return!1}var c=j.fontName,l=0;if(j.vertical){l=t;t=0}flushTextContentItem();resetLastChars();pushWhitespace({width:Math.abs(t),height:Math.abs(l),transform:r||getCurrentTextTransform(),fontName:c});return!0}function flushTextContentItem(){if(j.initialized&&j.str){j.vertical?j.totalHeight+=j.height*j.textAdvanceScale:j.totalWidth+=j.width*j.textAdvanceScale;M.items.push(function runBidiTransform(t){var r=t.str.join("");R||(r=(0,c.normalizeUnicode)(r));var o=(0,x.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}}(j));j.initialized=!1;j.str.length=0}}function enqueueChunk(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=M.items.length;if(0!==r&&!(t&&r<10)){m.enqueue(M,r);M.items=[];M.styles=Object.create(null)}}var ae=new W;return new Promise((function promiseBody(t,r){var o=function next(o){enqueueChunk(!0);Promise.all([o,m.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};l.ensureNotTerminated();ae.reset();for(var d,g={},_=[];!(d=ae.check());){_.length=0;g.args=_;if(!ne.read(g))break;var k=N;N=y.state;var x=g.fn;_=g.args;switch(0|x){case c.OPS.setFont:var O=_[0].name,E=_[1];if(N.font&&O===N.fontName&&E===N.fontSize)break;flushTextContentItem();N.fontName=O;N.fontSize=E;o(handleSetFont(O,null));return;case c.OPS.setTextRise:N.textRise=_[0];break;case c.OPS.setHScale:N.textHScale=_[0]/100;break;case c.OPS.setLeading:N.leading=_[0];break;case c.OPS.moveText:N.translateTextLineMatrix(_[0],_[1]);N.textMatrix=N.textLineMatrix.slice();break;case c.OPS.setLeadingMoveText:N.leading=-_[1];N.translateTextLineMatrix(_[0],_[1]);N.textMatrix=N.textLineMatrix.slice();break;case c.OPS.nextLine:N.carriageReturn();break;case c.OPS.setTextMatrix:N.setTextMatrix(_[0],_[1],_[2],_[3],_[4],_[5]);N.setTextLineMatrix(_[0],_[1],_[2],_[3],_[4],_[5]);updateAdvanceScale();break;case c.OPS.setCharSpacing:N.charSpacing=_[0];break;case c.OPS.setWordSpacing:N.wordSpacing=_[0];break;case c.OPS.beginText:N.textMatrix=c.IDENTITY_MATRIX.slice();N.textLineMatrix=c.IDENTITY_MATRIX.slice();break;case c.OPS.showSpacedText:if(!y.state.font){V.ensureStateFont(y.state);continue}for(var j=(N.font.vertical?1:-1)*N.fontSize/1e3,L=_[0],D=0,U=L.length;D<U;D++){var G=L[D];if("string"==typeof G)Z.push(G);else if("number"==typeof G&&0!==G){var $=Z.join("");Z.length=0;buildTextContentItem({chars:$,extraSpacing:G*j})}}if(Z.length>0){var H=Z.join("");Z.length=0;buildTextContentItem({chars:H,extraSpacing:0})}break;case c.OPS.showText:if(!y.state.font){V.ensureStateFont(y.state);continue}buildTextContentItem({chars:_[0],extraSpacing:0});break;case c.OPS.nextLineShowText:if(!y.state.font){V.ensureStateFont(y.state);continue}N.carriageReturn();buildTextContentItem({chars:_[0],extraSpacing:0});break;case c.OPS.nextLineSetSpacingShowText:if(!y.state.font){V.ensureStateFont(y.state);continue}N.wordSpacing=_[0];N.charSpacing=_[1];N.carriageReturn();buildTextContentItem({chars:_[2],extraSpacing:0});break;case c.OPS.paintXObject:flushTextContentItem();ee||(ee=h.get("XObject")||u.Dict.empty);var X=_[0]instanceof u.Name,q=_[0].name;if(X&&te.getByName(q))break;o(new Promise((function(t,r){if(!X)throw new c.FormatError("XObject must be referred to by name.");var o=ee.getRaw(q);if(o instanceof u.Ref){if(te.getByRef(o)){t();return}if(V.globalImageCache.getData(o,V.pageIndex)){t();return}o=K.fetch(o)}if(!(o instanceof C.BaseStream))throw new c.FormatError("XObject should be a stream");var d=o.dict.get("Subtype");if(!(d instanceof u.Name))throw new c.FormatError("XObject should have a Name subtype");if("Form"===d.name){var g=y.state.clone(),_=new Y(g),k=o.dict.getArray("Matrix");Array.isArray(k)&&6===k.length&&_.transform(k);enqueueChunk();var x={enqueueInvoked:!1,enqueue:function enqueue(t,r){this.enqueueInvoked=!0;m.enqueue(t,r)},get desiredSize(){return m.desiredSize},get ready(){return m.ready}};V.getTextContent({stream:o,task:l,resources:o.dict.get("Resources")||h,stateManager:_,includeMarkedContent:v,sink:x,seenStyles:w,viewBox:S,markedContentData:T,disableNormalization:R}).then((function(){x.enqueueInvoked||te.set(q,o.dict.objId,!0);t()}),r)}else{te.set(q,o.dict.objId,!0);t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!V.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring XObject: "'.concat(t,'".'))}})));return;case c.OPS.setGState:X=_[0]instanceof u.Name;q=_[0].name;if(X&&re.getByName(q))break;o(new Promise((function(t,r){if(!X)throw new c.FormatError("GState must be referred to by name.");var o=h.get("ExtGState");if(!(o instanceof u.Dict))throw new c.FormatError("ExtGState should be a dictionary.");var l=o.get(q);if(!(l instanceof u.Dict))throw new c.FormatError("GState should be a dictionary.");var d=l.get("Font");if(d){flushTextContentItem();N.fontName=null;N.fontSize=d[1];handleSetFont(null,d[0]).then(t,r)}else{re.set(q,l.objId,!0);t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!V.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring ExtGState: "'.concat(t,'".'))}})));return;case c.OPS.beginMarkedContent:flushTextContentItem();if(v){T.level++;M.items.push({type:"beginMarkedContent",tag:_[0]instanceof u.Name?_[0].name:null})}break;case c.OPS.beginMarkedContentProps:flushTextContentItem();if(v){T.level++;var W=null;_[1]instanceof u.Dict&&(W=_[1].get("MCID"));M.items.push({type:"beginMarkedContentProps",id:Number.isInteger(W)?"".concat(V.idFactory.getPageObjId(),"_mc").concat(W):null,tag:_[0]instanceof u.Name?_[0].name:null})}break;case c.OPS.endMarkedContent:flushTextContentItem();if(v){if(0===T.level)break;T.level--;M.items.push({type:"endMarkedContent"})}break;case c.OPS.restore:!k||k.font===N.font&&k.fontSize===N.fontSize&&k.fontName===N.fontName||flushTextContentItem()}if(M.items.length>=m.desiredSize){d=!0;break}}if(d)o(z);else{flushTextContentItem();enqueueChunk();t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!r.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(t,'".'));flushTextContentItem();enqueueChunk()}}))}},{key:"extractDataStructures",value:function extractDataStructures(t,r,o){var l,h=this,g=this.xref,v=this.readToUnicode(o.toUnicode||t.get("ToUnicode")||r.get("ToUnicode"));if(o.composite){var m=t.get("CIDSystemInfo");m instanceof u.Dict&&(o.cidSystemInfo={registry:(0,c.stringToPDFString)(m.get("Registry")),ordering:(0,c.stringToPDFString)(m.get("Ordering")),supplement:m.get("Supplement")});try{var _=t.get("CIDToGIDMap");_ instanceof C.BaseStream&&(l=_.getBytes())}catch(t){if(!this.options.ignoreErrors)throw t;(0,c.warn)('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(t,'".'))}}var w,k=[],S=null;if(t.has("Encoding")){if((w=t.get("Encoding"))instanceof u.Dict){S=(S=w.get("BaseEncoding"))instanceof u.Name?S.name:null;if(w.has("Differences")){var x,O=0,T=_createForOfIteratorHelper(w.get("Differences"));try{for(T.s();!(x=T.n()).done;){var R=x.value,M=g.fetchIfRef(R);if("number"==typeof M)O=M;else{if(!(M instanceof u.Name))throw new c.FormatError("Invalid entry in 'Differences' array: ".concat(M));k[O++]=M.name}}}catch(t){T.e(t)}finally{T.f()}}}else if(w instanceof u.Name)S=w.name;else{var j="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new c.FormatError(j);(0,c.warn)(j)}"MacRomanEncoding"!==S&&"MacExpertEncoding"!==S&&"WinAnsiEncoding"!==S&&(S=null)}var L=!o.file||o.isInternalFont,D=(0,y.getSymbolsFonts)()[o.name];S&&L&&D&&(S=null);if(S)o.defaultEncoding=(0,d.getEncoding)(S);else{var N=!!(o.flags&E.FontFlags.Symbolic),U=!!(o.flags&E.FontFlags.Nonsymbolic);w=d.StandardEncoding;"TrueType"!==o.type||U||(w=d.WinAnsiEncoding);if(N||D){w=d.MacRomanEncoding;L&&(/Symbol/i.test(o.name)?w=d.SymbolSetEncoding:/Dingbats/i.test(o.name)?w=d.ZapfDingbatsEncoding:/Wingdings/i.test(o.name)&&(w=d.WinAnsiEncoding))}o.defaultEncoding=w}o.differences=k;o.baseEncodingName=S;o.hasEncoding=!!S||k.length>0;o.dict=t;return v.then((function(t){o.toUnicode=t;return h.buildToUnicode(o)})).then((function(t){o.toUnicode=t;l&&(o.cidToGidMap=h.readCidToGidMap(l,t));return o}))}},{key:"_simpleFontToUnicode",value:function _simpleFontToUnicode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.assert)(!t.composite,"Must be a simple font.");var o=[],l=t.defaultEncoding.slice(),u=t.baseEncodingName,h=t.differences;for(var y in h){var g=h[y];".notdef"!==g&&(l[y]=g)}var v=(0,M.getGlyphsUnicode)();for(var m in l){var _=l[m];if(""!==_){var w=v[_];if(void 0===w){var k=0;switch(_[0]){case"G":3===_.length&&(k=parseInt(_.substring(1),16));break;case"g":5===_.length&&(k=parseInt(_.substring(1),16));break;case"C":case"c":if(_.length>=3&&_.length<=4){var S=_.substring(1);if(r){k=parseInt(S,16);break}k=+S;if(Number.isNaN(k)&&Number.isInteger(parseInt(S,16)))return this._simpleFontToUnicode(t,!0)}break;case"u":-1!==(w=(0,D.getUnicodeForGlyph)(_,v))&&(k=w);break;default:switch(_){case"f_h":case"f_t":case"T_h":o[m]=_.replaceAll("_","");continue}}if(k>0&&k<=1114111&&Number.isInteger(k)){if(u&&k===+m){var C=(0,d.getEncoding)(u);if(C&&(_=C[m])){o[m]=String.fromCharCode(v[_]);continue}}o[m]=String.fromCodePoint(k)}}else o[m]=String.fromCharCode(w)}}return o}},{key:"buildToUnicode",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee9(t){var r,o,h,d,y,g,v,_;return _regeneratorRuntime().wrap((function _callee9$(w){for(;;)switch(w.prev=w.next){case 0:t.hasIncludedToUnicodeMap=(null===(r=t.toUnicode)||void 0===r?void 0:r.length)>0;if(!t.hasIncludedToUnicodeMap){w.next=4;break}!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._simpleFontToUnicode(t));return w.abrupt("return",t.toUnicode);case 4:if(t.composite){w.next=6;break}return w.abrupt("return",new m.ToUnicodeMap(this._simpleFontToUnicode(t)));case 6:if(!t.composite||(!t.cMap.builtInCMap||t.cMap instanceof l.IdentityCMap)&&("Adobe"!==t.cidSystemInfo.registry||"GB1"!==t.cidSystemInfo.ordering&&"CNS1"!==t.cidSystemInfo.ordering&&"Japan1"!==t.cidSystemInfo.ordering&&"Korea1"!==t.cidSystemInfo.ordering)){w.next=15;break}o=t.cidSystemInfo,h=o.registry,d=o.ordering;y=u.Name.get("".concat(h,"-").concat(d,"-UCS2"));w.next=11;return l.CMapFactory.create({encoding:y,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 11:g=w.sent;v=[],_=[];t.cMap.forEach((function(t,r){if(r>65535)throw new c.FormatError("Max size of CID is 65,535");var o=g.lookup(r);if(o){_.length=0;for(var l=0,u=o.length;l<u;l+=2)_.push((o.charCodeAt(l)<<8)+o.charCodeAt(l+1));v[t]=String.fromCharCode.apply(String,_)}}));return w.abrupt("return",new m.ToUnicodeMap(v));case 15:return w.abrupt("return",new m.IdentityToUnicodeMap(t.firstChar,t.lastChar));case 16:case"end":return w.stop()}}),_callee9,this)}))),function buildToUnicode(t){return r.apply(this,arguments)})},{key:"readToUnicode",value:function readToUnicode(t){var r=this;return t?t instanceof u.Name?l.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){return t instanceof l.IdentityCMap?new m.IdentityToUnicodeMap(0,65535):new m.ToUnicodeMap(t.getMap())})):t instanceof C.BaseStream?l.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof l.IdentityCMap)return new m.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 m.ToUnicodeMap(r)}),(function(t){if(t instanceof c.AbortException)return null;if(r.options.ignoreErrors){(0,c.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(t,'".'));return null}throw t})):Promise.resolve(null):Promise.resolve(null)}},{key:"readCidToGidMap",value:function readCidToGidMap(t,r){for(var o=[],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,h,d,y,g,v,m,_=this.xref,w=[],k=0,S=[];if(o.composite){k=t.has("DW")?t.get("DW"):1e3;if(m=t.get("W"))for(l=0,h=m.length;l<h;l++){g=_.fetchIfRef(m[l++]);v=_.fetchIfRef(m[l]);if(Array.isArray(v))for(d=0,y=v.length;d<y;d++)w[g++]=_.fetchIfRef(v[d]);else{var C=_.fetchIfRef(m[++l]);for(d=g;d<=v;d++)w[d]=C}}if(o.vertical){var x=t.getArray("DW2")||[880,-1e3];c=[x[1],.5*k,x[0]];if(x=t.get("W2"))for(l=0,h=x.length;l<h;l++){g=_.fetchIfRef(x[l++]);v=_.fetchIfRef(x[l]);if(Array.isArray(v))for(d=0,y=v.length;d<y;d++)S[g++]=[_.fetchIfRef(v[d++]),_.fetchIfRef(v[d++]),_.fetchIfRef(v[d])];else{var O=[_.fetchIfRef(x[++l]),_.fetchIfRef(x[++l]),_.fetchIfRef(x[++l])];for(d=g;d<=v;d++)S[d]=O}}}}else{var T=o.firstChar;if(m=t.get("Widths")){d=T;for(l=0,h=m.length;l<h;l++)w[d++]=_.fetchIfRef(m[l]);k=parseFloat(r.get("MissingWidth"))||0}else{var R=t.get("BaseFont");if(R instanceof u.Name){var M=this.getBaseFontMetrics(R.name);w=this.buildCharCodeToWidth(M.widths,o);k=M.defaultWidth}}}var j=!0,L=k;for(var D in w){var N=w[D];if(N)if(L){if(L!==N){j=!1;break}}else L=N}j?o.flags|=E.FontFlags.FixedPitch:o.flags&=~E.FontFlags.FixedPitch;o.defaultWidth=k;o.widths=w;o.defaultVMetrics=c;o.vmetrics=S}},{key:"isSerifFont",value:function isSerifFont(t){var r=t.split("-")[0];return r in(0,y.getSerifFonts)()||/serif/gi.test(r)}},{key:"getBaseFontMetrics",value:function getBaseFontMetrics(t){var r=0,o=Object.create(null),c=!1,l=(0,y.getStdFontMap)()[t]||t,u=(0,L.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 u.Name))throw new c.FormatError("invalid font Subtype");var l,h,d=!1;if("Type0"===o.name){var y=t.get("DescendantFonts");if(!y)throw new c.FormatError("Descendant fonts are not specified");if(!((t=Array.isArray(y)?this.xref.fetchIfRef(y[0]):y)instanceof u.Dict))throw new c.FormatError("Descendant font is not a dictionary.");if(!((o=t.get("Subtype"))instanceof u.Name))throw new c.FormatError("invalid font Subtype");d=!0}var g=t.get("FirstChar")||0,v=t.get("LastChar")||(d?65535:255),m=t.get("FontDescriptor");if(m){l=new U.MurmurHash3_64;var _=r.getRaw("Encoding");if(_ instanceof u.Name)l.update(_.name);else if(_ instanceof u.Ref)l.update(_.toString());else if(_ instanceof u.Dict){var w,k=_createForOfIteratorHelper(_.getRawValues());try{for(k.s();!(w=k.n()).done;){var S=w.value;if(S instanceof u.Name)l.update(S.name);else if(S instanceof u.Ref)l.update(S.toString());else if(Array.isArray(S)){for(var x=S.length,O=new Array(x),T=0;T<x;T++){var E=S[T];E instanceof u.Name?O[T]=E.name:("number"==typeof E||E instanceof u.Ref)&&(O[T]=E.toString())}l.update(O.join())}}}catch(t){k.e(t)}finally{k.f()}}l.update("".concat(g,"-").concat(v));if((h=t.get("ToUnicode")||r.get("ToUnicode"))instanceof C.BaseStream){var R=h.str||h,M=R.buffer?new Uint8Array(R.buffer.buffer,0,R.bufferLength):new Uint8Array(R.bytes.buffer,R.start,R.end-R.start);l.update(M)}else h instanceof u.Name&&l.update(h.name);var j=t.get("Widths")||r.get("Widths");if(Array.isArray(j)){var L,D=[],N=_createForOfIteratorHelper(j);try{for(N.s();!(L=N.n()).done;){var G=L.value;("number"==typeof G||G instanceof u.Ref)&&D.push(G.toString())}}catch(t){N.e(t)}finally{N.f()}l.update(D.join())}if(d){l.update("compositeFont");var $=t.get("W")||r.get("W");if(Array.isArray($)){var H,X=[],q=_createForOfIteratorHelper($);try{for(q.s();!(H=q.n()).done;){var z=H.value;if("number"==typeof z||z instanceof u.Ref)X.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 u.Ref)&&V.push(Y.toString())}}catch(t){K.e(t)}finally{K.f()}X.push("[".concat(V.join(),"]"))}}}catch(t){q.e(t)}finally{q.f()}l.update(X.join())}var J=t.getRaw("CIDToGIDMap")||r.getRaw("CIDToGIDMap");J instanceof u.Name?l.update(J.name):J instanceof u.Ref?l.update(J.toString()):J instanceof C.BaseStream&&l.update(J.peekBytes())}}return{descriptor:m,dict:t,baseDict:r,composite:d,type:o.name,firstChar:g,lastChar:v,toUnicode:h,hash:l?l.hexdigest():""}}},{key:"translateFont",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee10(t){var r,o,d,g,m,_,w,k,C,x,O,T,M,j,L,D,N,U,G,$,H,X,q,z,W,V,K,Y,J,Z,Q,ee,te,re,ne,ae,ie,oe=this;return _regeneratorRuntime().wrap((function _callee10$(se){for(;;)switch(se.prev=se.next){case 0:d=t.descriptor,g=t.dict,m=t.baseDict,_=t.composite,w=t.type,k=t.firstChar,C=t.lastChar,x=t.toUnicode,O=t.cssFontInfo;T="Type3"===w;if(d){se.next=27;break}if(!T){se.next=9;break}(d=new u.Dict(null)).set("FontName",u.Name.get(w));d.set("FontBBox",g.getArray("FontBBox")||[0,0,0,0]);se.next=27;break;case 9:if((j=g.get("BaseFont"))instanceof u.Name){se.next=12;break}throw new c.FormatError("Base font is not specified");case 12:j=j.name.replaceAll(/[,_]/g,"-");L=this.getBaseFontMetrics(j);D=j.split("-")[0];N=(this.isSerifFont(D)?E.FontFlags.Serif:0)|(L.monospace?E.FontFlags.FixedPitch:0)|((0,y.getSymbolsFonts)()[D]?E.FontFlags.Symbolic:E.FontFlags.Nonsymbolic);M={type:w,name:j,loadedName:m.loadedName,systemFontInfo:null,widths:L.widths,defaultWidth:L.defaultWidth,isSimulatedFlags:!0,flags:N,firstChar:k,lastChar:C,toUnicode:x,xHeight:0,capHeight:0,italicAngle:0,isType3Font:T};U=g.get("Widths");G=(0,y.getStandardFontName)(j);$=null;if(!G){se.next=25;break}se.next=23;return this.fetchStandardFontData(G);case 23:$=se.sent;M.isInternalFont=!!$;case 25:!M.isInternalFont&&this.options.useSystemFonts&&(M.systemFontInfo=(0,R.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,j,G));return se.abrupt("return",this.extractDataStructures(g,g,M).then((function(t){if(U){var r,o=[],c=k,l=_createForOfIteratorHelper(U);try{for(l.s();!(r=l.n()).done;){var u=r.value;o[c++]=oe.xref.fetchIfRef(u)}}catch(t){l.e(t)}finally{l.f()}t.widths=o}else t.widths=oe.buildCharCodeToWidth(L.widths,t);return new h.Font(j,$,t)})));case 27:H=d.get("FontName");X=g.get("BaseFont");"string"==typeof H&&(H=u.Name.get(H));"string"==typeof X&&(X=u.Name.get(X));q=null===(r=H)||void 0===r?void 0:r.name;z=null===(o=X)||void 0===o?void 0:o.name;if(!T&&q!==z){(0,c.info)("The FontDescriptor's FontName is \"".concat(q,'" but ')+"should be the same as the Font's BaseFont \"".concat(z,'".'));q&&z&&(z.startsWith(q)||!(0,y.isKnownFontName)(q)&&(0,y.isKnownFontName)(z))&&(H=null)}H||(H=X);if(H instanceof u.Name){se.next=37;break}throw new c.FormatError("invalid font name");case 37:se.prev=37;W=d.get("FontFile","FontFile2","FontFile3");se.next=47;break;case 41:se.prev=41;se.t0=se.catch(37);if(this.options.ignoreErrors){se.next=45;break}throw se.t0;case 45:(0,c.warn)('translateFont - fetching "'.concat(H.name,'" font file: "').concat(se.t0,'".'));W=new S.NullStream;case 47:Z=!1;Q=null;ee=null;if(!W){se.next=54;break}if(W.dict){(te=W.dict.get("Subtype"))instanceof u.Name&&(V=te.name);K=W.dict.get("Length1");Y=W.dict.get("Length2");J=W.dict.get("Length3")}se.next=76;break;case 54:if(!O){se.next=68;break}if(!(re=(0,v.getXfaFontName)(H.name))){se.next=66;break}O.fontFamily="".concat(O.fontFamily,"-PdfJS-XFA");O.metrics=re.metrics||null;Q=re.factors||null;se.next=62;return this.fetchStandardFontData(re.name);case 62:W=se.sent;Z=!!W;m=g=(0,v.getXfaFontDict)(H.name);_=!0;case 66:se.next=76;break;case 68:if(T){se.next=76;break}if(!(ne=(0,y.getStandardFontName)(H.name))){se.next=75;break}se.next=73;return this.fetchStandardFontData(ne);case 73:W=se.sent;Z=!!W;case 75:!Z&&this.options.useSystemFonts&&(ee=(0,R.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,H.name,ne));case 76:M={type:w,name:H.name,subtype:V,file:W,length1:K,length2:Y,length3:J,isInternalFont:Z,loadedName:m.loadedName,composite:_,fixedPitch:!1,fontMatrix:g.getArray("FontMatrix")||c.FONT_IDENTITY_MATRIX,firstChar:k,lastChar:C,toUnicode:x,bbox:d.getArray("FontBBox")||g.getArray("FontBBox"),ascent:d.get("Ascent"),descent:d.get("Descent"),xHeight:d.get("XHeight")||0,capHeight:d.get("CapHeight")||0,flags:d.get("Flags"),italicAngle:d.get("ItalicAngle")||0,isType3Font:T,cssFontInfo:O,scaleFactors:Q,systemFontInfo:ee};if(!_){se.next=85;break}(ae=m.get("Encoding"))instanceof u.Name&&(M.cidEncoding=ae.name);se.next=82;return l.CMapFactory.create({encoding:ae,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 82:ie=se.sent;M.cMap=ie;M.vertical=M.cMap.vertical;case 85:return se.abrupt("return",this.extractDataStructures(g,m,M).then((function(t){oe.extractWidths(g,d,t);return new h.Font(H.name,W,t)})));case 86:case"end":return se.stop()}}),_callee10,this,[[37,41]])}))),function translateFont(r){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function buildFontPaths(t,r,o,l){function buildPath(r){var u="".concat(t.loadedName,"_path_").concat(r);try{if(t.renderer.hasBuiltPath(r))return;o.send("commonobj",[u,"FontPath",t.renderer.getPathJs(r)])}catch(t){if(l.ignoreErrors){(0,c.warn)("buildFontPaths - ignoring ".concat(u,' glyph: "').concat(t,'".'));return}throw t}}var u,h=_createForOfIteratorHelper(r);try{for(h.s();!(u=h.n()).done;){var d=u.value;buildPath(d.fontChar);var y=d.accent;null!=y&&y.fontChar&&buildPath(y.fontChar)}}catch(t){h.e(t)}finally{h.f()}}},{key:"fallbackFontDict",get:function get(){var t=new u.Dict;t.set("BaseFont",u.Name.get("Helvetica"));t.set("Type",u.Name.get("FallbackType"));t.set("Subtype",u.Name.get("FallbackType"));t.set("Encoding",u.Name.get("WinAnsiEncoding"));return(0,c.shadow)(this,"fallbackFontDict",t)}}]);var t,r,o,w,j,V,ee,te;return PartialEvaluator}();r.PartialEvaluator=V;var K=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||H;this.type3Loaded=null;this.type3Dependencies=o.isType3Font?new Set:null;this.sent=!1}_createClass(TranslatedFont,[{key:"send",value:function send(t){if(!this.sent){this.sent=!0;t.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)])}}},{key:"fallback",value:function fallback(t){if(this.font.data){this.font.disableFontFace=!0;V.buildFontPaths(this.font,this.font.glyphCacheValues,t,this._evaluatorOptions)}}},{key:"loadType3Data",value:function loadType3Data(t,r,o){var l=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var h=t.clone({ignoreErrors:!1});h.parsingType3Font=!0;var d=new u.RefSet(t.type3FontRefs);this.dict.objId&&!d.has(this.dict.objId)&&d.put(this.dict.objId);h.type3FontRefs=d;var y,g=this.font,v=this.type3Dependencies,m=Promise.resolve(),_=this.dict.get("CharProcs"),w=this.dict.get("Resources")||r,k=Object.create(null),S=c.Util.normalizeRect(g.bbox||[0,0,0,0]),C=S[2]-S[0],x=S[3]-S[1],O=Math.hypot(C,x),T=_createForOfIteratorHelper(_.getKeys());try{var E=function _loop2(){var t=y.value;m=m.then((function(){var r=_.get(t),u=new G.OperatorList;return h.getOperatorList({stream:r,task:o,resources:w,operatorList:u}).then((function(){u.fnArray[0]===c.OPS.setCharWidthAndBounds&&l._removeType3ColorOperators(u,O);k[t]=u.getIR();var r,o=_createForOfIteratorHelper(u.dependencies);try{for(o.s();!(r=o.n()).done;){var h=r.value;v.add(h)}}catch(t){o.e(t)}finally{o.f()}})).catch((function(r){(0,c.warn)('Type3 font resource "'.concat(t,'" is not available.'));var o=new G.OperatorList;k[t]=o.getIR()}))}))};for(T.s();!(y=T.n()).done;)E()}catch(t){T.e(t)}finally{T.f()}this.type3Loaded=m.then((function(){g.charProcOperatorList=k;if(l._bbox){g.isCharBBox=!0;g.bbox=l._bbox}}));return this.type3Loaded}},{key:"_removeType3ColorOperators",value:function _removeType3ColorOperators(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,o=c.Util.normalizeRect(t.argsArray[0].slice(2)),l=o[2]-o[0],u=o[3]-o[1],h=Math.hypot(l,u);if(0===l||0===u){t.fnArray.splice(0,1);t.argsArray.splice(0,1)}else if(0===r||Math.round(h/r)>=10){this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]);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 d=0,y=t.length;d<y;){switch(t.fnArray[d]){case c.OPS.setCharWidthAndBounds:break;case c.OPS.setStrokeColorSpace:case c.OPS.setFillColorSpace:case c.OPS.setStrokeColor:case c.OPS.setStrokeColorN:case c.OPS.setFillColor:case c.OPS.setFillColorN:case c.OPS.setStrokeGray:case c.OPS.setFillGray:case c.OPS.setStrokeRGBColor:case c.OPS.setFillRGBColor:case c.OPS.setStrokeCMYKColor:case c.OPS.setFillCMYKColor:case c.OPS.shadingFill:case c.OPS.setRenderingIntent:t.fnArray.splice(d,1);t.argsArray.splice(d,1);y--;continue;case c.OPS.setGState:for(var g=_slicedToArray(t.argsArray[d],1)[0],v=0,m=g.length;v<m;){switch(_slicedToArray(g[v],1)[0]){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":g.splice(v,1);m--;continue}v++}}d++}}}]);return TranslatedFont}(),Y=function(){function StateManager(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Z;_classCallCheck(this,StateManager);this.state=t;this.stateStack=[]}_createClass(StateManager,[{key:"save",value:function save(){var t=this.state;this.stateStack.push(this.state);this.state=t.clone()}},{key:"restore",value:function restore(){var t=this.stateStack.pop();t&&(this.state=t)}},{key:"transform",value:function transform(t){this.state.ctm=c.Util.transform(this.state.ctm,t)}}]);return StateManager}(),J=function(){function TextState(){_classCallCheck(this,TextState);this.ctm=new Float32Array(c.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.loadedName=null;this.font=null;this.fontMatrix=c.FONT_IDENTITY_MATRIX;this.textMatrix=c.IDENTITY_MATRIX.slice();this.textLineMatrix=c.IDENTITY_MATRIX.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}_createClass(TextState,[{key:"setTextMatrix",value:function setTextMatrix(t,r,o,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}(),Z=function(){function EvalState(){_classCallCheck(this,EvalState);this.ctm=new Float32Array(c.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=c.TextRenderingMode.FILL;this.fillColorSpace=O.ColorSpace.singletons.gray;this.strokeColorSpace=O.ColorSpace.singletons.gray}_createClass(EvalState,[{key:"clone",value:function clone(){return Object.create(this)}}]);return EvalState}(),Q=function(){function EvaluatorPreprocessor(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Y;_classCallCheck(this,EvaluatorPreprocessor);this.parser=new w.Parser({lexer:new w.Lexer(t,EvaluatorPreprocessor.opMap),xref:r});this.stateManager=o;this.nonProcessedArgs=[];this._isPathOp=!1;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 u.Cmd){var l=o.cmd,h=EvaluatorPreprocessor.opMap[l];if(!h){(0,c.warn)('Unknown command "'.concat(l,'".'));continue}var d=h.id,y=h.numArgs,g=null!==r?r.length:0;this._isPathOp||(this._numInvalidPathOPS=0);this._isPathOp=d>=c.OPS.moveTo&&d<=c.OPS.endPath;if(h.variableArgs)g>y&&(0,c.info)("Command ".concat(l,": expected [0, ").concat(y,"] args, ")+"but received ".concat(g," args."));else{if(g!==y){for(var v=this.nonProcessedArgs;g>y;){v.push(r.shift());g--}for(;g<y&&0!==v.length;){null===r&&(r=[]);r.unshift(v.pop());g++}}if(g<y){var m="command ".concat(l,": expected ").concat(y," args, ")+"but received ".concat(g," args.");if(this._isPathOp&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new c.FormatError("Invalid ".concat(m));(0,c.warn)("Skipping ".concat(m));null!==r&&(r.length=0);continue}}this.preprocessCommand(d,r);t.fn=d;t.args=r;return!0}if(o===u.EOF)return!1;if(null!==o){null===r&&(r=[]);r.push(o);if(r.length>33)throw new c.FormatError("Too many arguments")}}}},{key:"preprocessCommand",value:function preprocessCommand(t,r){switch(0|t){case c.OPS.save:this.stateManager.save();break;case c.OPS.restore:this.stateManager.restore();break;case c.OPS.transform:this.stateManager.transform(r)}}}],[{key:"opMap",get:function get(){var t=(0,j.getLookupTableFactory)((function(t){t.w={id:c.OPS.setLineWidth,numArgs:1,variableArgs:!1};t.J={id:c.OPS.setLineCap,numArgs:1,variableArgs:!1};t.j={id:c.OPS.setLineJoin,numArgs:1,variableArgs:!1};t.M={id:c.OPS.setMiterLimit,numArgs:1,variableArgs:!1};t.d={id:c.OPS.setDash,numArgs:2,variableArgs:!1};t.ri={id:c.OPS.setRenderingIntent,numArgs:1,variableArgs:!1};t.i={id:c.OPS.setFlatness,numArgs:1,variableArgs:!1};t.gs={id:c.OPS.setGState,numArgs:1,variableArgs:!1};t.q={id:c.OPS.save,numArgs:0,variableArgs:!1};t.Q={id:c.OPS.restore,numArgs:0,variableArgs:!1};t.cm={id:c.OPS.transform,numArgs:6,variableArgs:!1};t.m={id:c.OPS.moveTo,numArgs:2,variableArgs:!1};t.l={id:c.OPS.lineTo,numArgs:2,variableArgs:!1};t.c={id:c.OPS.curveTo,numArgs:6,variableArgs:!1};t.v={id:c.OPS.curveTo2,numArgs:4,variableArgs:!1};t.y={id:c.OPS.curveTo3,numArgs:4,variableArgs:!1};t.h={id:c.OPS.closePath,numArgs:0,variableArgs:!1};t.re={id:c.OPS.rectangle,numArgs:4,variableArgs:!1};t.S={id:c.OPS.stroke,numArgs:0,variableArgs:!1};t.s={id:c.OPS.closeStroke,numArgs:0,variableArgs:!1};t.f={id:c.OPS.fill,numArgs:0,variableArgs:!1};t.F={id:c.OPS.fill,numArgs:0,variableArgs:!1};t["f*"]={id:c.OPS.eoFill,numArgs:0,variableArgs:!1};t.B={id:c.OPS.fillStroke,numArgs:0,variableArgs:!1};t["B*"]={id:c.OPS.eoFillStroke,numArgs:0,variableArgs:!1};t.b={id:c.OPS.closeFillStroke,numArgs:0,variableArgs:!1};t["b*"]={id:c.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1};t.n={id:c.OPS.endPath,numArgs:0,variableArgs:!1};t.W={id:c.OPS.clip,numArgs:0,variableArgs:!1};t["W*"]={id:c.OPS.eoClip,numArgs:0,variableArgs:!1};t.BT={id:c.OPS.beginText,numArgs:0,variableArgs:!1};t.ET={id:c.OPS.endText,numArgs:0,variableArgs:!1};t.Tc={id:c.OPS.setCharSpacing,numArgs:1,variableArgs:!1};t.Tw={id:c.OPS.setWordSpacing,numArgs:1,variableArgs:!1};t.Tz={id:c.OPS.setHScale,numArgs:1,variableArgs:!1};t.TL={id:c.OPS.setLeading,numArgs:1,variableArgs:!1};t.Tf={id:c.OPS.setFont,numArgs:2,variableArgs:!1};t.Tr={id:c.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1};t.Ts={id:c.OPS.setTextRise,numArgs:1,variableArgs:!1};t.Td={id:c.OPS.moveText,numArgs:2,variableArgs:!1};t.TD={id:c.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1};t.Tm={id:c.OPS.setTextMatrix,numArgs:6,variableArgs:!1};t["T*"]={id:c.OPS.nextLine,numArgs:0,variableArgs:!1};t.Tj={id:c.OPS.showText,numArgs:1,variableArgs:!1};t.TJ={id:c.OPS.showSpacedText,numArgs:1,variableArgs:!1};t["'"]={id:c.OPS.nextLineShowText,numArgs:1,variableArgs:!1};t['"']={id:c.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1};t.d0={id:c.OPS.setCharWidth,numArgs:2,variableArgs:!1};t.d1={id:c.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1};t.CS={id:c.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1};t.cs={id:c.OPS.setFillColorSpace,numArgs:1,variableArgs:!1};t.SC={id:c.OPS.setStrokeColor,numArgs:4,variableArgs:!0};t.SCN={id:c.OPS.setStrokeColorN,numArgs:33,variableArgs:!0};t.sc={id:c.OPS.setFillColor,numArgs:4,variableArgs:!0};t.scn={id:c.OPS.setFillColorN,numArgs:33,variableArgs:!0};t.G={id:c.OPS.setStrokeGray,numArgs:1,variableArgs:!1};t.g={id:c.OPS.setFillGray,numArgs:1,variableArgs:!1};t.RG={id:c.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1};t.rg={id:c.OPS.setFillRGBColor,numArgs:3,variableArgs:!1};t.K={id:c.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1};t.k={id:c.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1};t.sh={id:c.OPS.shadingFill,numArgs:1,variableArgs:!1};t.BI={id:c.OPS.beginInlineImage,numArgs:0,variableArgs:!1};t.ID={id:c.OPS.beginImageData,numArgs:0,variableArgs:!1};t.EI={id:c.OPS.endInlineImage,numArgs:1,variableArgs:!1};t.Do={id:c.OPS.paintXObject,numArgs:1,variableArgs:!1};t.MP={id:c.OPS.markPoint,numArgs:1,variableArgs:!1};t.DP={id:c.OPS.markPointProps,numArgs:2,variableArgs:!1};t.BMC={id:c.OPS.beginMarkedContent,numArgs:1,variableArgs:!1};t.BDC={id:c.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1};t.EMC={id:c.OPS.endMarkedContent,numArgs:0,variableArgs:!1};t.BX={id:c.OPS.beginCompat,numArgs:0,variableArgs:!1};t.EX={id:c.OPS.endCompat,numArgs:0,variableArgs:!1};t.BM=null;t.BD=null;t.true=null;t.fa=null;t.fal=null;t.fals=null;t.false=null;t.nu=null;t.nul=null;t.null=null}));return(0,c.shadow)(this,"opMap",t())}}]);return EvaluatorPreprocessor}();r.EvaluatorPreprocessor=Q;_defineProperty(Q,"MAX_INVALID_PATH_OPS",10)},(t,r,o)=>{var c=o(58),l=o(265),u=o(9),h=o(28),d=o(262).onFreeze,y=Object.freeze;c({target:"Object",stat:!0,forced:u((function(){y(1)})),sham:!l},{freeze:function freeze(t){return y&&h(t)?y(d(t)):t}})},(t,r,o)=>{o(58)({target:"Math",stat:!0},{sign:o(200)})},(t,r,o)=>{var c=o(58),l=o(7),u=o(69),h=RangeError,d=String.fromCharCode,y=String.fromCodePoint,g=l([].join);c({target:"String",stat:!0,arity:1,forced:!!y&&1!==y.length},{fromCodePoint:function fromCodePoint(t){for(var r,o=[],c=arguments.length,l=0;c>l;){r=+arguments[l++];if(u(r,1114111)!==r)throw h(r+" is not a valid code point");o[l]=r<65536?d(r):d(55296+((r-=65536)>>10),r%1024+56320)}return g(o,"")}})},(t,r,o)=>{var c=o(58),l=o(201),u=o(138);c({target:"Array",proto:!0},{fill:l});u("fill")},(t,r,o)=>{o(113);o(137);o(175);o(177);o(134);o(305);o(306);o(145);o(130);o(131);o(132);o(133);Object.defineProperty(r,"__esModule",{value:!0});r.IdentityCMap=r.CMapFactory=r.CMap=void 0;o(290);o(183);o(389);o(2);o(54);o(56);o(104);o(143);o(105);o(296);o(300);o(329);var c=o(304),l=o(350),u=o(354),h=o(390),d=o(391),y=o(343),g=o(358);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var v=["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"],m=Math.pow(2,24)-1,_=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>m)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>m)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>m)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],y=0,g=d.length;y<g;){var v=d[y++],m=d[y++];if(c>=v&&c<=m){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++],y=l[u++];if(t>=d&&t<=y)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=_;var w=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,c.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function mapBfRange(t,r,o){(0,c.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){(0,c.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function mapOne(t,r){(0,c.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}},{key:"contains",value:function contains(t){return Number.isInteger(t)&&t<=65535}},{key:"forEach",value:function forEach(t){for(var r=0;r<=65535;r++)t(r,r)}},{key:"charCodeOf",value:function charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}},{key:"getMap",value:function getMap(){for(var t=new Array(65536),r=0;r<=65535;r++)t[r]=r;return t}},{key:"length",get:function get(){return 65536}},{key:"isIdentityCMap",get:function get(){(0,c.unreachable)("should not access .isIdentityCMap")}}]);return IdentityCMap}(_);r.IdentityCMap=w;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 c.FormatError("Malformed CMap: expected string.")}function expectInt(t){if(!Number.isInteger(t))throw new c.FormatError("Malformed CMap: expected int.")}function parseBfChar(t,r){for(;;){var o=r.getObj();if(o===l.EOF)break;if((0,l.isCmd)(o,"endbfchar"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var u=o;t.mapOne(c,u)}}function parseBfRange(t,r){for(;;){var o=r.getObj();if(o===l.EOF)break;if((0,l.isCmd)(o,"endbfrange"))return;expectString(o);var u=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(u,h,d)}else{if(!(0,l.isCmd)(o,"["))break;o=r.getObj();for(var y=[];!(0,l.isCmd)(o,"]")&&o!==l.EOF;){y.push(o);o=r.getObj()}t.mapBfRangeToArray(u,h,y)}}throw new c.FormatError("Invalid bf range.")}function parseCidChar(t,r){for(;;){var o=r.getObj();if(o===l.EOF)break;if((0,l.isCmd)(o,"endcidchar"))return;expectString(o);var c=strToInt(o);expectInt(o=r.getObj());var u=o;t.mapOne(c,u)}}function parseCidRange(t,r){for(;;){var o=r.getObj();if(o===l.EOF)break;if((0,l.isCmd)(o,"endcidrange"))return;expectString(o);var c=strToInt(o);expectString(o=r.getObj());var u=strToInt(o);expectInt(o=r.getObj());var h=o;t.mapCidRange(c,u,h)}}function parseCodespaceRange(t,r){for(;;){var o=r.getObj();if(o===l.EOF)break;if((0,l.isCmd)(o,"endcodespacerange"))return;if("string"!=typeof o)break;var u=strToInt(o);if("string"!=typeof(o=r.getObj()))break;var h=strToInt(o);t.addCodespaceRange(o.length,u,h)}throw new c.FormatError("Invalid codespace range.")}function parseWMode(t,r){var o=r.getObj();Number.isInteger(o)&&(t.vertical=!!o)}function parseCMapName(t,r){var o=r.getObj();o instanceof l.Name&&(t.name=o.name)}function parseCMap(t,r,o,c){return _parseCMap.apply(this,arguments)}function _parseCMap(){return(_parseCMap=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t,r,o,u){var h,d,g;return _regeneratorRuntime().wrap((function _callee2$(v){for(;;)switch(v.prev=v.next){case 0:0;v.prev=1;if((g=r.getObj())!==l.EOF){v.next=7;break}return v.abrupt("break",39);case 7:if(!(g instanceof l.Name)){v.next=12;break}"WMode"===g.name?parseWMode(t,r):"CMapName"===g.name&&parseCMapName(t,r);h=g;v.next=29;break;case 12:if(!(g instanceof l.Cmd)){v.next=29;break}v.t0=g.cmd;v.next="endcmap"===v.t0?16:"usecmap"===v.t0?17:"begincodespacerange"===v.t0?19:"beginbfchar"===v.t0?21:"begincidchar"===v.t0?23:"beginbfrange"===v.t0?25:"begincidrange"===v.t0?27:29;break;case 16:return v.abrupt("break",39);case 17:h instanceof l.Name&&(d=h.name);return v.abrupt("break",29);case 19:parseCodespaceRange(t,r);return v.abrupt("break",29);case 21:parseBfChar(t,r);return v.abrupt("break",29);case 23:parseCidChar(t,r);return v.abrupt("break",29);case 25:parseBfRange(t,r);return v.abrupt("break",29);case 27:parseCidRange(t,r);return v.abrupt("break",29);case 29:v.next=37;break;case 31:v.prev=31;v.t1=v.catch(1);if(!(v.t1 instanceof y.MissingDataException)){v.next=35;break}throw v.t1;case 35:(0,c.warn)("Invalid cMap data: "+v.t1);return v.abrupt("continue",0);case 37:v.next=0;break;case 39:!u&&d&&(u=d);if(!u){v.next=42;break}return v.abrupt("return",extendCMap(t,o,u));case 42:return v.abrupt("return",t);case 43:case"end":return v.stop()}}),_callee2,null,[[1,31]])})))).apply(this,arguments)}function extendCMap(t,r,o){return _extendCMap.apply(this,arguments)}function _extendCMap(){return(_extendCMap=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t,r,o){var c,l;return _regeneratorRuntime().wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:u.next=2;return createBuiltInCMap(o,r);case 2:t.useCMap=u.sent;if(0===t.numCodespaceRanges){c=t.useCMap.codespaceRanges;for(l=0;l<c.length;l++)t.codespaceRanges[l]=c[l].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(r,o){t.contains(r)||t.mapOne(r,t.useCMap.lookup(r))}));return u.abrupt("return",t);case 6:case"end":return u.stop()}}),_callee3)})))).apply(this,arguments)}function createBuiltInCMap(t,r){return _createBuiltInCMap.apply(this,arguments)}function _createBuiltInCMap(){return(_createBuiltInCMap=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(t,r){var o,l,u,y,m;return _regeneratorRuntime().wrap((function _callee4$(k){for(;;)switch(k.prev=k.next){case 0:if("Identity-H"!==t){k.next=4;break}return k.abrupt("return",new w(!1,2));case 4:if("Identity-V"!==t){k.next=6;break}return k.abrupt("return",new w(!0,2));case 6:if(v.includes(t)){k.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){k.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:k.next=12;return r(t);case 12:o=k.sent;l=o.cMapData;u=o.compressionType;y=new _(!0);if(u!==c.CMapCompressionType.BINARY){k.next=18;break}return k.abrupt("return",(new h.BinaryCMapReader).process(l,y,(function(t){return extendCMap(y,r,t)})));case 18:if(u!==c.CMapCompressionType.NONE){k.next=21;break}m=new d.Lexer(new g.Stream(l));return k.abrupt("return",parseCMap(y,m,r,null));case 21:throw new Error('Invalid CMap "compressionType" value: '.concat(u));case 22:case"end":return k.stop()}}),_callee4)})))).apply(this,arguments)}var k=function(){function CMapFactory(){_classCallCheck(this,CMapFactory)}_createClass(CMapFactory,null,[{key:"create",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t){var r,o,c,h;return _regeneratorRuntime().wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:r=t.encoding,o=t.fetchBuiltInCMap,c=t.useCMap;if(!(r instanceof l.Name)){y.next=5;break}return y.abrupt("return",createBuiltInCMap(r.name,o));case 5:if(!(r instanceof u.BaseStream)){y.next=12;break}y.next=8;return parseCMap(new _,new d.Lexer(r),o,c);case 8:if(!(h=y.sent).isIdentityCMap){y.next=11;break}return y.abrupt("return",createBuiltInCMap(h.name,o));case 11:return y.abrupt("return",h);case 12:throw new Error("Encoding required.");case 13:case"end":return y.stop()}}),_callee)}))),function create(r){return t.apply(this,arguments)})}]);var t;return CMapFactory}();r.CMapFactory=k},(t,r,o)=>{var c=o(58),l=o(91),u=o(68).indexOf,h=o(231),d=l([].indexOf),y=!!d&&1/d([1],1,-0)<0;c({target:"Array",proto:!0,forced:y||!h("indexOf")},{indexOf:function indexOf(t){var r=arguments.length>1?arguments[1]:void 0;return y?d(this,t,r)||0:u(this,t,r)}})},(t,r,o)=>{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)}o(56);o(104);o(113);o(175);o(177);o(114);o(296);o(293);o(123);o(129);o(2);o(54);o(105);o(145);o(130);o(131);o(132);o(133);o(134);o(290);o(300);Object.defineProperty(r,"__esModule",{value:!0});r.BinaryCMapReader=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(183);var c=o(304);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return 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)||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)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=t[o];return c}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(String,_toConsumableArray(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 l=16,u=function(){function BinaryCMapStream(t){_classCallCheck(this,BinaryCMapStream);this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(19)}_createClass(BinaryCMapStream,[{key:"readByte",value:function readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function readNumber(){var t,r=0;do{var o=this.readByte();if(o<0)throw new c.FormatError("unexpected EOF in bcmap");t=!(128&o);r=r<<7|127&o}while(!t);return r}},{key:"readSigned",value:function readSigned(){var t=this.readNumber();return 1&t?~(t>>>1):t>>>1}},{key:"readHex",value:function readHex(t,r){t.set(this.buffer.subarray(this.pos,this.pos+r+1));this.pos+=r+1}},{key:"readHexNumber",value:function readHexNumber(t,r){var o,l=this.tmpBuf,u=0;do{var h=this.readByte();if(h<0)throw new c.FormatError("unexpected EOF in bcmap");o=!(128&h);l[u++]=127&h}while(!o);for(var d=r,y=0,g=0;d>=0;){for(;g<8&&l.length>0;){y|=l[--u]<<g;g+=7}t[d]=255&y;d--;y>>=8;g-=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=new Array(t),o=0;o<t;o++)r[o]=this.readNumber();return String.fromCharCode.apply(String,r)}}]);return BinaryCMapStream}(),h=function(){function BinaryCMapReader(){_classCallCheck(this,BinaryCMapReader)}_createClass(BinaryCMapReader,[{key:"process",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)}))}}(_regeneratorRuntime().mark((function _callee(t,r,o){var c,h,d,y,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D;return _regeneratorRuntime().wrap((function _callee$(N){for(;;)switch(N.prev=N.next){case 0:c=new u(t);h=c.readByte();r.vertical=!!(1&h);d=null;y=new Uint8Array(l);g=new Uint8Array(l);v=new Uint8Array(l);m=new Uint8Array(l);_=new Uint8Array(l);case 9:if(!((k=c.readByte())>=0)){N.next=68;break}if(7!=(S=k>>5)){N.next=20;break}N.t0=31&k;N.next=0===N.t0?15:1===N.t0?17:19;break;case 15:c.readString();return N.abrupt("break",19);case 17:d=c.readString();return N.abrupt("break",19);case 19:return N.abrupt("continue",9);case 20:C=!!(16&k);if(!(1+(x=15&k)>l)){N.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:O=1;T=c.readNumber();N.t1=S;N.next=0===N.t1?29:1===N.t1?35:2===N.t1?41:3===N.t1?46:4===N.t1?53:5===N.t1?58:65;break;case 29:c.readHex(y,x);c.readHexNumber(g,x);addHex(g,y,x);r.addCodespaceRange(x+1,hexToInt(y,x),hexToInt(g,x));for(E=1;E<T;E++){incHex(g,x);c.readHexNumber(y,x);addHex(y,g,x);c.readHexNumber(g,x);addHex(g,y,x);r.addCodespaceRange(x+1,hexToInt(y,x),hexToInt(g,x))}return N.abrupt("break",66);case 35:c.readHex(y,x);c.readHexNumber(g,x);addHex(g,y,x);c.readNumber();for(R=1;R<T;R++){incHex(g,x);c.readHexNumber(y,x);addHex(y,g,x);c.readHexNumber(g,x);addHex(g,y,x);c.readNumber()}return N.abrupt("break",66);case 41:c.readHex(v,x);w=c.readNumber();r.mapOne(hexToInt(v,x),w);for(M=1;M<T;M++){incHex(v,x);if(!C){c.readHexNumber(_,x);addHex(v,_,x)}w=c.readSigned()+(w+1);r.mapOne(hexToInt(v,x),w)}return N.abrupt("break",66);case 46:c.readHex(y,x);c.readHexNumber(g,x);addHex(g,y,x);w=c.readNumber();r.mapCidRange(hexToInt(y,x),hexToInt(g,x),w);for(j=1;j<T;j++){incHex(g,x);if(C)y.set(g);else{c.readHexNumber(y,x);addHex(y,g,x)}c.readHexNumber(g,x);addHex(g,y,x);w=c.readNumber();r.mapCidRange(hexToInt(y,x),hexToInt(g,x),w)}return N.abrupt("break",66);case 53:c.readHex(v,O);c.readHex(m,x);r.mapOne(hexToInt(v,O),hexToStr(m,x));for(L=1;L<T;L++){incHex(v,O);if(!C){c.readHexNumber(_,O);addHex(v,_,O)}incHex(m,x);c.readHexSigned(_,x);addHex(m,_,x);r.mapOne(hexToInt(v,O),hexToStr(m,x))}return N.abrupt("break",66);case 58:c.readHex(y,O);c.readHexNumber(g,O);addHex(g,y,O);c.readHex(m,x);r.mapBfRange(hexToInt(y,O),hexToInt(g,O),hexToStr(m,x));for(D=1;D<T;D++){incHex(g,O);if(C)y.set(g);else{c.readHexNumber(y,O);addHex(y,g,O)}c.readHexNumber(g,O);addHex(g,y,O);c.readHex(m,x);r.mapBfRange(hexToInt(y,O),hexToInt(g,O),hexToStr(m,x))}return N.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(S));case 66:N.next=9;break;case 68:if(!d){N.next=70;break}return N.abrupt("return",o(d));case 70:return N.abrupt("return",r);case 71:case"end":return N.stop()}}),_callee)}))),function process(r,o,c){return t.apply(this,arguments)})}]);var t;return BinaryCMapReader}();r.BinaryCMapReader=h},(t,r,o)=>{o(2);o(54);o(56);o(104);o(113);o(175);o(177);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.Parser=r.Linearization=r.Lexer=void 0;o(290);o(105);o(296);o(182);o(143);o(293);o(137);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(302);o(183);var c=o(304),l=o(350),u=o(343),h=o(358),d=o(392),y=o(394),g=o(395),v=o(397),m=o(399),_=o(403),w=o(407),k=o(409),S=o(410),C=o(411);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}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._imageId=0;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 y=l.Ref.get(r,this.buf1);this.shift();this.shift();return y}return r}return"string"==typeof r&&t?t.decryptString(r):r}},{key:"findDefaultInlineStreamEnd",value:function findDefaultInlineStreamEnd(t){for(var r,o,d=this.lexer.knownCommands,y=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 if(32===r||10===r||13===r){o=t.pos;var v=t.peekBytes(15),m=v.length;if(0===m)break;for(var _=0;_<m;_++)if((0!==(r=v[_])||0===v[_+1])&&10!==r&&13!==r&&(r<32||r>127)){g=0;break}if(2!==g)continue;if(!d){(0,c.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}var w=new T(new h.Stream(v.slice()),d);w._hexStringWarn=function(){};for(var k=0;;){var S=w.getObj();if(S===l.EOF){g=0;break}if(S instanceof l.Cmd){var C=d[S.cmd];if(!C){g=0;break}if(C.variableArgs?k<=C.numArgs:k===C.numArgs)break;k=0}else k++}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 x=4;t.skip(-x);r=t.peekByte();t.skip(x);(0,u.isWhiteSpace)(r)||x--;return t.pos-x-y}},{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=Object.create(null);!(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[d]=this.getObj(t)}-1!==o.beginInlineImagePos&&(r=u.pos-o.beginInlineImagePos);var y,g=this.xref.fetchIfRef(h.F||h.Filter);if(g instanceof l.Name)y=g.name;else if(Array.isArray(g)){var v=this.xref.fetchIfRef(g[0]);v instanceof l.Name&&(y=v.name)}var m,_,w=u.pos;switch(y){case"DCT":case"DCTDecode":m=this.findDCTDecodeInlineStreamEnd(u);break;case"A85":case"ASCII85Decode":m=this.findASCII85DecodeInlineStreamEnd(u);break;case"AHx":case"ASCIIHexDecode":m=this.findASCIIHexDecodeInlineStreamEnd(u);break;default:m=this.findDefaultInlineStreamEnd(u)}if(m<1e3&&r>0){var k=u.pos;u.pos=o.beginInlineImagePos;_=function getInlineImageCacheKey(t){for(var r=[],o=t.length,c=0;c<o-1;)r.push(t[c++]<<8|t[c++]);c<o&&r.push(t[c]);return o+"_"+String.fromCharCode.apply(null,r)}(u.getBytes(r+m));u.pos=k;var S=this.imageCache[_];if(void 0!==S){this.buf2=l.Cmd.get("EI");this.shift();S.reset();return S}}var C=new l.Dict(this.xref);for(var x in h)C.set(x,h[x]);var O=u.makeSubStream(w,m,C);t&&(O=t.createStream(O,m));(O=this.filter(O,C,m)).dict=C;if(void 0!==_){O.cacheKey="inline_img_".concat(++this._imageId);this.imageCache[_]=O}this.buf2=l.Cmd.get("EI");this.shift();return O}},{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,y=t.get("Length");if(!Number.isInteger(y)){(0,c.info)('Bad length "'.concat(y&&y.toString(),'" in stream.'));y=0}h.pos=d+y;o.nextChar();if(this.tryShift()&&(0,l.isCmd)(this.buf2,"endstream"))this.shift();else{var g=new Uint8Array([101,110,100,115,116,114,101,97,109]),v=this._findStreamLength(d,g);if(v<0){for(var m=1;m<=1;m++){var _=g.length-m,w=g.slice(0,_),k=this._findStreamLength(d,w);if(k>=0){var S=h.peekBytes(_+1)[_];if(!(0,u.isWhiteSpace)(S))break;(0,c.info)('Found "'.concat((0,c.bytesToString)(w),'" when ')+"searching for endstream command.");v=k;break}}if(v<0)throw new c.FormatError("Missing endstream command.")}y=v;o.nextChar();this.shift();this.shift()}this.shift();h=h.makeSubStream(d,y,t);r&&(h=r.createStream(h,y));(h=this.filter(h,t,y)).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,y=u,g=0,v=d.length;g<v;++g){filter=this.xref.fetchIfRef(d[g]);if(!(filter instanceof l.Name))throw new c.FormatError('Bad filter name "'.concat(filter,'"'));u=null;Array.isArray(y)&&g in y&&(u=this.xref.fetchIfRef(y[g]));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 h.NullStream}try{switch(r){case"Fl":case"FlateDecode":return l?new S.PredictorStream(new v.FlateStream(t,o),o,l):new v.FlateStream(t,o);case"LZW":case"LZWDecode":var x=1;if(l){l.has("EarlyChange")&&(x=l.get("EarlyChange"));return new S.PredictorStream(new k.LZWStream(t,o,x),o,l)}return new k.LZWStream(t,o,x);case"DCT":case"DCTDecode":return new _.JpegStream(t,o,l);case"JPX":case"JPXDecode":return new w.JpxStream(t,o,l);case"A85":case"ASCII85Decode":return new d.Ascii85Stream(t,o);case"AHx":case"ASCIIHexDecode":return new y.AsciiHexStream(t,o);case"CCF":case"CCITTFaxDecode":return new g.CCITTFaxStream(t,o,l);case"RL":case"RunLengthDecode":return new C.RunLengthStream(t,o);case"JBIG2Decode":return new m.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 h.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=1;if(45===t){l=-1;45===(t=this.nextChar())&&(t=this.nextChar())}else 43===t&&(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){var h="Invalid number: ".concat(String.fromCharCode(t)," (charCode ").concat(t,")");if((0,u.isWhiteSpace)(t)||-1===t){(0,c.info)('Lexer.getNumber - "'.concat(h,'".'));return 0}throw new c.FormatError(h)}for(var d=t-48,y=0,g=1;(t=this.nextChar())>=0;)if(t>=48&&t<=57){var v=t-48;if(r)y=10*y+v;else{0!==o&&(o*=10);d=10*d+v}}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&&(d/=o);r&&(d*=Math.pow(10,g*y));return l*d}},{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=void 0!==(null==h?void 0:h[o]);(r=this.nextChar())>=0&&!O[r];){var y=o+String.fromCharCode(r);if(d&&void 0===h[y])break;if(128===o.length)throw new c.FormatError("Command token too long: ".concat(o.length));o=y;d=void 0!==(null==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:"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(),y=c.getObj();if(!(Number.isInteger(u)&&Number.isInteger(h)&&(0,l.isCmd)(d,"obj")&&y instanceof l.Dict&&"number"==typeof(r=y.get("Linearized"))&&r>0))return null;if((o=getInt(y,"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.")}(y),objectNumberFirst:getInt(y,"O"),endFirst:getInt(y,"E"),numPages:getInt(y,"N"),mainXRefEntriesOffset:getInt(y,"T"),pageFirst:y.has("P")?getInt(y,"P",!0):0}}}]);return Linearization}();r.Linearization=E},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.Ascii85Stream=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(134);var c=o(393),l=o(343);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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)=>{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)}o(134);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(296);o(293);o(114);o(175);o(123);o(129);o(113);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.StreamsSequenceStream=r.DecodeStream=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(290);var c=o(354),l=o(358);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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=this.pos;if(t){this.ensureBuffer(o+t);r=o+t;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var c=this.bufferLength;r>c&&(r=c)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;return this.buffer.subarray(o,r)}},{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 y=l.value;u+=y instanceof h?y._rawMinBufferLength:y.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){var c;this._onError(t,null===(c=o.dict)||void 0===c?void 0:c.objId);return}throw t}var l=this.bufferLength,u=l+r.length;this.ensureBuffer(u).set(r,l);this.bufferLength=u}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)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(296);o(293);o(114);o(175);o(123);o(129);o(113);o(137);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.AsciiHexStream=void 0;o(134);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,y=void 0;if(d>=48&&d<=57)y=15&d;else{if(!(d>=65&&d<=70||d>=97&&d<=102)){if(62===d){this.eof=!0;break}continue}y=9+(15&d)}if(u<0)u=y;else{c[l++]=u<<4|y;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(393).DecodeStream);r.AsciiHexStream=c},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxStream=void 0;o(134);var c=o(396),l=o(393),u=o(350);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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)=>{o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxDecoder=void 0;o(183);o(137);o(143);o(328);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(2);o(54);o(56);o(104);o(105);var c=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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]],y=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],g=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],v=[[-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]],m=function(){function CCITTFaxDecoder(t){var r,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,CCITTFaxDecoder);if(!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t;this.eof=!1;this.encoding=c.K||0;this.eoline=c.EndOfLine||!1;this.byteAlign=c.EncodedByteAlign||!1;this.columns=c.Columns||1728;this.rows=c.Rows||0;this.eoblock=null===(r=c.EndOfBlock)||void 0===r||r;this.black=c.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,y=this.codingLine,g=this.columns;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var v,m,_;if(this.nextLine2D){for(u=0;y[u]<g;++u)d[u]=y[u];d[u++]=g;d[u]=g;y[0]=0;this.codingPos=0;t=0;r=0;for(;y[this.codingPos]<g;)switch(v=this._getTwoDimCode()){case 0:this._addPixels(d[t+1],r);d[t+1]<g&&(t+=2);break;case 1:v=m=0;if(r){do{v+=_=this._getBlackCode()}while(_>=64);do{m+=_=this._getWhiteCode()}while(_>=64)}else{do{v+=_=this._getWhiteCode()}while(_>=64);do{m+=_=this._getBlackCode()}while(_>=64)}this._addPixels(y[this.codingPos]+v,r);y[this.codingPos]<g&&this._addPixels(y[this.codingPos]+m,1^r);for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2;break;case 7:this._addPixels(d[t]+3,r);r^=1;if(y[this.codingPos]<g){++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case 5:this._addPixels(d[t]+2,r);r^=1;if(y[this.codingPos]<g){++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case 3:this._addPixels(d[t]+1,r);r^=1;if(y[this.codingPos]<g){++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case 2:this._addPixels(d[t],r);r^=1;if(y[this.codingPos]<g){++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case 8:this._addPixelsNeg(d[t]-3,r);r^=1;if(y[this.codingPos]<g){t>0?--t:++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case 6:this._addPixelsNeg(d[t]-2,r);r^=1;if(y[this.codingPos]<g){t>0?--t:++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case 4:this._addPixelsNeg(d[t]-1,r);r^=1;if(y[this.codingPos]<g){t>0?--t:++t;for(;d[t]<=y[this.codingPos]&&d[t]<g;)t+=2}break;case l:this._addPixels(g,0);this.eof=!0;break;default:(0,c.info)("bad 2d code");this._addPixels(g,0);this.err=!0}}else{y[0]=0;this.codingPos=0;r=0;for(;y[this.codingPos]<g;){v=0;if(r)do{v+=_=this._getBlackCode()}while(_>=64);else do{v+=_=this._getWhiteCode()}while(_>=64);this._addPixels(y[this.codingPos]+v,r);r^=1}}var w=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){v=this._lookBits(12);if(this.eoline)for(;v!==l&&1!==v;){this._eatBits(1);v=this._lookBits(12)}else for(;0===v;){this._eatBits(1);v=this._lookBits(12)}if(1===v){this._eatBits(12);w=!0}else v===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&&w&&this.byteAlign){if(1===(v=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!==(v=this._lookBits(12))&&(0,c.info)("bad rtc code: "+v);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((v=this._lookBits(13))===l){this.eof=!0;return-1}if(v>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&v)}}this.outputBits=y[0]>0?y[this.codingPos=0]:y[this.codingPos=1];this.row++}if(this.outputBits>=8){h=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&y[this.codingPos]<g){this.codingPos++;this.outputBits=y[this.codingPos]-y[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(y[this.codingPos]<g){this.codingPos++;this.outputBits=y[this.codingPos]-y[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 y=o[d-u];if(y[0]===h){this._eatBits(h);return[!0,y[1],!0]}}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function _getTwoDimCode(){var t,r=0;if(this.eoblock){var o;r=this._lookBits(7);if((null===(o=t=u[r])||void 0===o?void 0:o[0])>0){this._eatBits(t[0]);return t[1]}}else{var h=this._findTableCode(1,7,u);if(h[0]&&h[2])return h[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?y[t]:t>>9==0&&t>>7!=0?g[(t>>1)-64]:v[t>>7])[0]>0){this._eatBits(r[0]);return r[1]}}else{var o=this._findTableCode(2,6,v);if(o[0])return o[1];if((o=this._findTableCode(7,12,g,64))[0])return o[1];if((o=this._findTableCode(10,13,y))[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=m},(t,r,o)=>{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)}o(134);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.FlateStream=void 0;o(137);o(143);o(398);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(302);o(191);var c=o(393),l=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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]),y=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],g=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],v=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 y=c[d&(1<<u)-1],g=y>>16,v=65535&y;if(g<1||h<g)throw new l.FormatError("Bad encoding in flate stream");this.codeBuf=d>>g;this.codeSize=h-g;return v}},{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,y=2;h<=c;++h,d<<=1,y<<=1)for(var g=0;g<o;++g)if(t[g]===h){var v=0,m=d;for(r=0;r<h;++r){v=v<<1|1&m;m>>=1}for(r=v;r<l;r+=y)u[r]=h<<16|g;++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 v,m;if(1===c){v=y;m=g}else{if(2!==c)throw new l.FormatError("Unknown block type in flate stream");var _,w=this.getBits(5)+257,k=this.getBits(5)+1,S=this.getBits(4)+4,C=new Uint8Array(u.length);for(_=0;_<S;++_)C[u[_]]=this.getBits(3);var x=this.generateHuffmanTable(C);r=0;_=0;for(var O,T,E,R=w+k,M=new Uint8Array(R);_<R;){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){M[_++]=r=j;continue}O=7;T=11;E=r=0}for(var L=this.getBits(O)+T;L-- >0;)M[_++]=E}v=this.generateHuffmanTable(M.subarray(0,w));m=this.generateHuffmanTable(M.subarray(w,R))}for(var D=(t=this.buffer)?t.length:0,N=this.bufferLength;;){var U=this.getCode(v);if(U<256){N+1>=D&&(D=(t=this.ensureBuffer(N+1)).length);t[N++]=U}else{if(256===U){this.bufferLength=N;return}var G=(U=h[U-=257])>>16;G>0&&(G=this.getBits(G));r=(65535&U)+G;U=this.getCode(m);(G=(U=d[U])>>16)>0&&(G=this.getBits(G));var $=(65535&U)+G;N+r>=D&&(D=(t=this.ensureBuffer(N+r)).length);for(var H=0;H<r;++H,++N)t[N]=t[N-$]}}}else{var X;if(-1===(X=o.getByte()))throw new l.FormatError("Bad block header in flate stream");var q=X;if(-1===(X=o.getByte()))throw new l.FormatError("Bad block header in flate stream");q|=X<<8;if(-1===(X=o.getByte()))throw new l.FormatError("Bad block header in flate stream");var z=X;if(-1===(X=o.getByte()))throw new l.FormatError("Bad block header in flate stream");if((z|=X<<8)!==(65535&~q)&&(0!==q||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+q;t=this.ensureBuffer(V);this.bufferLength=V;if(0===q)-1===o.peekByte()&&(this.eof=!0);else{var K=o.getBytes(q);t.set(K,W);K.length<q&&(this.eof=!0)}}}}]);return FlateStream}(c.DecodeStream);r.FlateStream=v},(t,r,o)=>{o(192)("Int32",(function(t){return function Int32Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Stream=void 0;o(290);o(134);var c=o(354),l=o(393),u=o(350),h=o(400),d=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var y=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});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),y=d.length,g=0;g<y;g++)d[g]^=255;this.buffer=d;this.bufferLength=y;this.eof=!0}}}]);return Jbig2Stream}(l.DecodeStream);r.Jbig2Stream=y},(t,r,o)=>{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)}o(305);o(306);o(2);o(54);o(56);o(104);o(105);o(296);o(293);o(114);o(175);o(123);o(129);o(113);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Image=void 0;o(134);o(137);o(143);o(401);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(191);o(302);o(357);o(290);o(381);o(398);o(183);o(371);o(387);o(363);o(364);o(328);var c=o(304),l=o(343),u=o(402),h=o(396);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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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),y=function(){function ContextCache(){_classCallCheck(this,ContextCache)}_createClass(ContextCache,[{key:"getContexts",value:function getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}}]);return ContextCache}(),g=function(){function DecodingContext(t,r,o){_classCallCheck(this,DecodingContext);this.data=t;this.start=r;this.end=o}_createClass(DecodingContext,[{key:"decoder",get:function get(){var t=new u.ArithmeticDecoder(this.data,this.start,this.end);return(0,c.shadow)(this,"decoder",t)}},{key:"contextCache",get:function get(){var t=new y;return(0,c.shadow)(this,"contextCache",t)}}]);return DecodingContext}(),v=Math.pow(2,31)-1,m=-Math.pow(2,31);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,h=readBits(1),d=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);0===h?u=d:d>0&&(u=-d);return u>=m&&u<=v?u: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 _=["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"],w=[[{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}]}],S=[39717,1941,229,405],C=[32,8];function decodeBitmap(t,r,o,c,l,u,h,d){if(t){return decodeMMRBitmap(new j(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,y,g,v=o.decoder,m=o.contextCache.getContexts("GB"),_=[];for(l=0;l<r;l++){d=_[l]=new Uint8Array(t);y=l<1?d:_[l-1];c=(g=l<2?d:_[l-2])[0]<<13|g[1]<<12|g[2]<<11|y[0]<<7|y[1]<<6|y[2]<<5|y[3]<<4;for(u=0;u<t;u++){d[u]=h=v.readBit(m,c);c=(31735&c)<<1|(u+3<t?g[u+3]<<11:0)|(u+4<t?y[u+4]<<4:0)|h}}return _}(r,o,d);var y=!!u,g=w[c].concat(h);g.sort((function(t,r){return t.y-r.y||t.x-r.x}));var v,m,_=g.length,k=new Int8Array(_),C=new Int8Array(_),x=[],O=0,T=0,E=0,R=0;for(m=0;m<_;m++){k[m]=g[m].x;C[m]=g[m].y;T=Math.min(T,g[m].x);E=Math.max(E,g[m].x);R=Math.min(R,g[m].y);m<_-1&&g[m].y===g[m+1].y&&g[m].x===g[m+1].x-1?O|=1<<_-1-m:x.push(m)}var M=x.length,L=new Int8Array(M),D=new Int8Array(M),N=new Uint16Array(M);for(v=0;v<M;v++){m=x[v];L[v]=g[m].x;D[v]=g[m].y;N[v]=1<<_-1-m}for(var U,G,$,H,X,q=-T,z=-R,W=r-E,V=S[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(y&&u[te][U])K[U]=0;else{if(U>=q&&U<W&&te>=z){ee=ee<<1&O;for(m=0;m<M;m++){G=te+D[m];$=U+L[m];(H=Y[G][$])&&(ee|=H=N[m])}}else{ee=0;X=_-1;for(m=0;m<_;m++,X--)($=U+k[m])>=0&&$<r&&(G=te+C[m])>=0&&(H=Y[G][$])&&(ee|=H<<X)}var re=J.readBit(Z,ee);K[U]=re}}return Y}function decodeRefinement(t,r,o,c,l,u,h,y,g){var v=k[o].coding;0===o&&(v=v.concat([y[0]]));var m,_=v.length,w=new Int32Array(_),S=new Int32Array(_);for(m=0;m<_;m++){w[m]=v[m].x;S[m]=v[m].y}var x=k[o].reference;0===o&&(x=x.concat([y[1]]));var O=x.length,T=new Int32Array(O),E=new Int32Array(O);for(m=0;m<O;m++){T[m]=x[m].x;E[m]=x[m].y}for(var R=c[0].length,M=c.length,j=C[o],L=[],D=g.decoder,N=g.contextCache.getContexts("GR"),U=0,G=0;G<r;G++){if(h){if(U^=D.readBit(N,j))throw new d("prediction is not supported")}var $=new Uint8Array(t);L.push($);for(var H=0;H<t;H++){var X=void 0,q=void 0,z=0;for(m=0;m<_;m++){X=G+S[m];q=H+w[m];X<0||q<0||q>=t?z<<=1:z=z<<1|L[X][q]}for(m=0;m<O;m++){X=G+E[m]-u;q=H+T[m]-l;X<0||X>=M||q<0||q>=R?z<<=1:z=z<<1|c[X][q]}var W=D.readBit(N,z);$[H]=W}}return L}function decodeTextRegion(t,r,o,c,l,u,h,y,g,v,m,_,w,k,S,C,x,O,T){if(t&&r)throw new d("refinement with Huffman is not supported");var E,R,M=[];for(E=0;E<c;E++){R=new Uint8Array(o);if(l)for(var j=0;j<o;j++)R[j]=l;M.push(R)}var L=x.decoder,D=x.contextCache,N=t?-k.tableDeltaT.decode(T):-decodeInteger(D,"IADT",L),U=0;E=0;for(;E<u;){N+=t?k.tableDeltaT.decode(T):decodeInteger(D,"IADT",L);for(var G=U+=t?k.tableFirstS.decode(T):decodeInteger(D,"IAFS",L);;){var $=0;h>1&&($=t?T.readBits(O):decodeInteger(D,"IAIT",L));var H=h*N+$,X=t?k.symbolIDTable.decode(T):decodeIAID(D,L,g),q=r&&(t?T.readBit():decodeInteger(D,"IARI",L)),z=y[X],W=z[0].length,V=z.length;if(q){var K=decodeInteger(D,"IARDW",L),Y=decodeInteger(D,"IARDH",L);z=decodeRefinement(W+=K,V+=Y,S,z,(K>>1)+decodeInteger(D,"IARDX",L),(Y>>1)+decodeInteger(D,"IARDY",L),!1,C,x)}var J=H-(1&_?0:V-1),Z=G-(2&_?W-1:0),Q=void 0,ee=void 0,te=void 0;if(v){for(Q=0;Q<V;Q++)if(R=M[Z+Q]){te=z[Q];var re=Math.min(o-J,W);switch(w){case 0:for(ee=0;ee<re;ee++)R[J+ee]|=te[ee];break;case 2:for(ee=0;ee<re;ee++)R[J+ee]^=te[ee];break;default:throw new d("operator ".concat(w," is not supported"))}}G+=V-1}else{for(ee=0;ee<V;ee++)if(R=M[J+ee]){te=z[ee];switch(w){case 0:for(Q=0;Q<W;Q++)R[Z+Q]|=te[Q];break;case 2:for(Q=0;Q<W;Q++)R[Z+Q]^=te[Q];break;default:throw new d("operator ".concat(w," is not supported"))}}G+=W-1}E++;var ne=t?k.tableDeltaS.decode(T):decodeInteger(D,"IADS",L);if(null===ne)break;G+=ne+m}}return M}function readSegmentHeader(t,r){var o={};o.number=(0,l.readUint32)(t,r);var c=t[r+4],u=63&c;if(!_[u])throw new d("invalid segment type: "+u);o.type=u;o.typeName=_[u];o.deferredNonRetain=!!(128&c);var h=!!(64&c),y=t[r+5],g=y>>5&7,v=[31&y],m=r+6;if(7===y){g=536870911&(0,l.readUint32)(t,m-1);m+=3;var w=g+7>>3;v[0]=t[m++];for(;--w>0;)v.push(t[m++])}else if(5===y||6===y)throw new d("invalid referred-to flags");o.retainBits=v;var k=4;o.number<=256?k=1:o.number<=65536&&(k=2);var S,C,O=[];for(S=0;S<g;S++){var T=void 0;T=1===k?t[m]:2===k?(0,l.readUint16)(t,m):(0,l.readUint32)(t,m);O.push(T);m+=k}o.referredTo=O;if(h){o.pageAssociation=(0,l.readUint32)(t,m);m+=4}else o.pageAssociation=t[m++];o.length=(0,l.readUint32)(t,m);m+=4;if(4294967295===o.length){if(38!==u)throw new d("invalid unknown segment length");var E=readRegionSegmentInformation(t,m),R=!!(1&t[m+x]),M=new Uint8Array(6);if(!R){M[0]=255;M[1]=172}M[2]=E.height>>>24&255;M[3]=E.height>>16&255;M[4]=E.height>>8&255;M[5]=255&E.height;for(S=m,C=t.length;S<C;S++){for(var j=0;j<6&&M[j]===t[S+j];)j++;if(6===j){o.length=S+6;break}}if(4294967295===o.length)throw new d("segment end was not found")}o.headerEnd=m;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 y=0,g=l.length;y<g;y++){l[y].start=u;u+=l[y].header.length;l[y].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 x=17;function processSegment(t,r){var o,c,u,h,y=t.header,g=t.data,v=t.end,m=t.start;switch(y.type){case 0:var _={},w=(0,l.readUint16)(g,m);_.huffman=!!(1&w);_.refinement=!!(2&w);_.huffmanDHSelector=w>>2&3;_.huffmanDWSelector=w>>4&3;_.bitmapSizeSelector=w>>6&1;_.aggregationInstancesSelector=w>>7&1;_.bitmapCodingContextUsed=!!(256&w);_.bitmapCodingContextRetained=!!(512&w);_.template=w>>10&3;_.refinementTemplate=w>>12&1;m+=2;if(!_.huffman){h=0===_.template?4:1;c=[];for(u=0;u<h;u++){c.push({x:(0,l.readInt8)(g,m),y:(0,l.readInt8)(g,m+1)});m+=2}_.at=c}if(_.refinement&&!_.refinementTemplate){c=[];for(u=0;u<2;u++){c.push({x:(0,l.readInt8)(g,m),y:(0,l.readInt8)(g,m+1)});m+=2}_.refinementAt=c}_.numberOfExportedSymbols=(0,l.readUint32)(g,m);m+=4;_.numberOfNewSymbols=(0,l.readUint32)(g,m);m+=4;o=[_,y.number,y.referredTo,g,m,v];break;case 6:case 7:var k={};k.info=readRegionSegmentInformation(g,m);m+=x;var S=(0,l.readUint16)(g,m);m+=2;k.huffman=!!(1&S);k.refinement=!!(2&S);k.logStripSize=S>>2&3;k.stripSize=1<<k.logStripSize;k.referenceCorner=S>>4&3;k.transposed=!!(64&S);k.combinationOperator=S>>7&3;k.defaultPixelValue=S>>9&1;k.dsOffset=S<<17>>27;k.refinementTemplate=S>>15&1;if(k.huffman){var C=(0,l.readUint16)(g,m);m+=2;k.huffmanFS=3&C;k.huffmanDS=C>>2&3;k.huffmanDT=C>>4&3;k.huffmanRefinementDW=C>>6&3;k.huffmanRefinementDH=C>>8&3;k.huffmanRefinementDX=C>>10&3;k.huffmanRefinementDY=C>>12&3;k.huffmanRefinementSizeSelector=!!(16384&C)}if(k.refinement&&!k.refinementTemplate){c=[];for(u=0;u<2;u++){c.push({x:(0,l.readInt8)(g,m),y:(0,l.readInt8)(g,m+1)});m+=2}k.refinementAt=c}k.numberOfSymbolInstances=(0,l.readUint32)(g,m);m+=4;o=[k,y.referredTo,g,m,v];break;case 16:var O={},T=g[m++];O.mmr=!!(1&T);O.template=T>>1&3;O.patternWidth=g[m++];O.patternHeight=g[m++];O.maxPatternIndex=(0,l.readUint32)(g,m);m+=4;o=[O,y.number,g,m,v];break;case 22:case 23:var E={};E.info=readRegionSegmentInformation(g,m);m+=x;var R=g[m++];E.mmr=!!(1&R);E.template=R>>1&3;E.enableSkip=!!(8&R);E.combinationOperator=R>>4&7;E.defaultPixelValue=R>>7&1;E.gridWidth=(0,l.readUint32)(g,m);m+=4;E.gridHeight=(0,l.readUint32)(g,m);m+=4;E.gridOffsetX=4294967295&(0,l.readUint32)(g,m);m+=4;E.gridOffsetY=4294967295&(0,l.readUint32)(g,m);m+=4;E.gridVectorX=(0,l.readUint16)(g,m);m+=2;E.gridVectorY=(0,l.readUint16)(g,m);m+=2;o=[E,y.referredTo,g,m,v];break;case 38:case 39:var M={};M.info=readRegionSegmentInformation(g,m);m+=x;var j=g[m++];M.mmr=!!(1&j);M.template=j>>1&3;M.prediction=!!(8&j);if(!M.mmr){h=0===M.template?4:1;c=[];for(u=0;u<h;u++){c.push({x:(0,l.readInt8)(g,m),y:(0,l.readInt8)(g,m+1)});m+=2}M.at=c}o=[M,g,m,v];break;case 48:var L={width:(0,l.readUint32)(g,m),height:(0,l.readUint32)(g,m+4),resolutionX:(0,l.readUint32)(g,m+8),resolutionY:(0,l.readUint32)(g,m+12)};4294967295===L.height&&delete L.height;var D=g[m+16];(0,l.readUint16)(g,m+17);L.lossless=!!(1&D);L.refinement=!!(2&D);L.defaultPixelValue=D>>2&1;L.combinationOperator=D>>3&3;L.requiresBuffer=!!(32&D);L.combinationOperatorOverride=!!(64&D);o=[L];break;case 49:case 50:case 51:case 62:break;case 53:o=[y.number,g,m,v];break;default:throw new d("segment type ".concat(y.typeName,"(").concat(y.type,") is not implemented"))}var N="on"+y.typeName;N in r&&r[N].apply(r,o)}function processSegments(t,r){for(var o=0,c=t.length;o<c;o++)processSegment(t[o],r)}var O=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);t.defaultPixelValue&&o.fill(255);this.buffer=o}},{key:"drawBitmap",value:function drawBitmap(t,r){var o,c,l,u,h=this.currentPageInfo,y=t.width,g=t.height,v=h.width+7>>3,m=h.combinationOperatorOverride?t.combinationOperator:h.combinationOperator,_=this.buffer,w=128>>(7&t.x),k=t.y*v+(t.x>>3);switch(m){case 0:for(o=0;o<g;o++){l=w;u=k;for(c=0;c<y;c++){r[o][c]&&(_[u]|=l);if(!(l>>=1)){l=128;u++}}k+=v}break;case 2:for(o=0;o<g;o++){l=w;u=k;for(c=0;c<y;c++){r[o][c]&&(_[u]^=l);if(!(l>>=1)){l=128;u++}}k+=v}break;default:throw new d("operator ".concat(m," is not supported"))}}},{key:"onImmediateGenericRegion",value:function onImmediateGenericRegion(t,r,o,c){var l=t.info,u=new g(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 y,v;if(t.huffman){y=function getSymbolDictionaryHuffmanTables(t,r,o){var c,l,u,h,y=0;switch(t.huffmanDHSelector){case 0:case 1:c=getStandardTable(t.huffmanDHSelector+4);break;case 3:c=getCustomHuffmanTable(y,r,o);y++;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(y,r,o);y++;break;default:throw new d("invalid Huffman DW selector")}if(t.bitmapSizeSelector){u=getCustomHuffmanTable(y,r,o);y++}else u=getStandardTable(1);h=t.aggregationInstancesSelector?getCustomHuffmanTable(y,r,o):getStandardTable(1);return{tableDeltaHeight:c,tableDeltaWidth:l,tableBitmapSize:u,tableAggregateInstances:h}}(t,o,this.customTables);v=new j(c,u,h)}var m=this.symbols;m||(this.symbols=m={});var _,w=[],k=_createForOfIteratorHelper(o);try{for(k.s();!(_=k.n()).done;){var S=m[_.value];S&&w.push.apply(w,_toConsumableArray(S))}}catch(t){k.e(t)}finally{k.f()}var C=new g(c,u,h);m[r]=function decodeSymbolDictionary(t,r,o,c,u,h,y,g,v,m,_,w){if(t&&r)throw new d("symbol refinement with Huffman is not supported");var k,S,C=[],x=0,O=(0,l.log2)(o.length+c),T=_.decoder,E=_.contextCache;if(t){k=getStandardTable(1);S=[];O=Math.max(O,1)}for(;C.length<c;){x+=t?h.tableDeltaHeight.decode(w):decodeInteger(E,"IADH",T);for(var R=0,M=0,j=t?S.length:0;;){var L=t?h.tableDeltaWidth.decode(w):decodeInteger(E,"IADW",T);if(null===L)break;M+=R+=L;var D=void 0;if(r){var N=decodeInteger(E,"IAAI",T);if(N>1)D=decodeTextRegion(t,r,R,x,0,N,1,o.concat(C),O,0,0,1,0,h,v,m,_,0,w);else{var U=decodeIAID(E,T,O),G=decodeInteger(E,"IARDX",T),$=decodeInteger(E,"IARDY",T);D=decodeRefinement(R,x,v,U<o.length?o[U]:C[U-o.length],G,$,!1,m,_)}C.push(D)}else if(t)S.push(R);else{D=decodeBitmap(!1,R,x,y,!1,null,g,_);C.push(D)}}if(t&&!r){var H=h.tableBitmapSize.decode(w);w.byteAlign();var X=void 0;if(0===H)X=readUncompressedBitmap(w,M,x);else{var q=w.end,z=w.position+H;w.end=z;X=decodeMMRBitmap(w,M,x,!1);w.end=q;w.position=z}var W=S.length;if(j===W-1)C.push(X);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(X[K].subarray(Y,J));C.push(Z);Y=J}}}}for(var Q,ee,te=[],re=[],ne=!1,ae=o.length+c;re.length<ae;){for(var ie=t?k.decode(w):decodeInteger(E,"IAEX",T);ie--;)re.push(ne);ne=!ne}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,w,t.numberOfNewSymbols,t.numberOfExportedSymbols,y,t.template,t.at,t.refinementTemplate,t.refinementAt,C,v)}},{key:"onImmediateTextRegion",value:function onImmediateTextRegion(t,r,o,c,u){var h,y,v,m=t.info,_=this.symbols,w=[],k=_createForOfIteratorHelper(r);try{for(k.s();!(v=k.n()).done;){var S=_[v.value];S&&w.push.apply(w,_toConsumableArray(S))}}catch(t){k.e(t)}finally{k.f()}var C=(0,l.log2)(w.length);if(t.huffman){y=new j(o,c,u);h=function getTextRegionHuffmanTables(t,r,o,c,l){for(var u=[],h=0;h<=34;h++){var y=l.readBits(4);u.push(new T([h,y,0,0]))}var g=new R(u,!1);u.length=0;for(var v=0;v<c;){var m=g.decode(l);if(m>=32){var _=void 0,w=void 0,k=void 0;switch(m){case 32:if(0===v)throw new d("no previous value in symbol ID table");w=l.readBits(2)+3;_=u[v-1].prefixLength;break;case 33:w=l.readBits(3)+3;_=0;break;case 34:w=l.readBits(7)+11;_=0;break;default:throw new d("invalid code length in symbol ID table")}for(k=0;k<w;k++){u.push(new T([v,_,0,0]));v++}}else{u.push(new T([v,m,0,0]));v++}}l.byteAlign();var S,C,x,O=new R(u,!1),E=0;switch(t.huffmanFS){case 0:case 1:S=getStandardTable(t.huffmanFS+6);break;case 3:S=getCustomHuffmanTable(E,r,o);E++;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(E,r,o);E++;break;default:throw new d("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:x=getStandardTable(t.huffmanDT+11);break;case 3:x=getCustomHuffmanTable(E,r,o);E++;break;default:throw new d("invalid Huffman DT selector")}if(t.refinement)throw new d("refinement with Huffman is not supported");return{symbolIDTable:O,tableFirstS:S,tableDeltaS:C,tableDeltaT:x}}(t,r,this.customTables,w.length,y)}var x=new g(o,c,u),O=decodeTextRegion(t.huffman,t.refinement,m.width,m.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,w,C,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,h,t.refinementTemplate,t.refinementAt,x,t.logStripSize,y);this.drawBitmap(m,O)}},{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 g(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),y=[],g=0;g<=c;g++){for(var v=[],m=r*g,_=m+r,w=0;w<o;w++)v.push(d[w].subarray(m,_));y.push(v)}return y}(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]],y=t.info,v=new g(o,c,u),m=function decodeHalftoneRegion(t,r,o,c,u,h,y,g,v,m,_,w,k,S,C){if(y)throw new d("skip is not supported");if(0!==g)throw new d('operator "'.concat(g,'" is not supported in halftone region'));var x,O,T,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,M=r[0],L=M[0].length,D=M.length,N=(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 G,$,H,X,q,z,W,V,K,Y,J,Z=[];t&&(G=new j(C.data,C.start,C.end));for(x=N-1;x>=0;x--){$=t?decodeMMRBitmap(G,v,m,!0):decodeBitmap(!1,v,m,o,!1,null,U,C);Z[x]=$}for(H=0;H<m;H++)for(X=0;X<v;X++){q=0;z=0;for(O=N-1;O>=0;O--)z|=(q^=Z[O][H][X])<<O;W=r[z];K=w+H*k-X*S>>8;if((V=_+H*S+X*k>>8)>=0&&V+L<=c&&K>=0&&K+D<=u)for(x=0;x<D;x++){J=E[K+x];Y=W[x];for(O=0;O<L;O++)J[V+O]|=Y[O]}else{var Q=void 0,ee=void 0;for(x=0;x<D;x++)if(!((ee=K+x)<0||ee>=u)){J=E[ee];Y=W[x];for(O=0;O<L;O++)(Q=V+O)>=0&&Q<c&&(J[Q]|=Y[O])}}}return E}(t.mmr,h,t.template,y.width,y.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,v);this.drawBitmap(y,m)}},{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),y=4294967295&(0,l.readUint32)(t,r+5),g=new j(t,r+9,o),v=1+(h>>1&7),m=1+(h>>4&7),_=[],w=d;do{c=g.readBits(v);u=g.readBits(m);_.push(new T([w,c,u,0]));w+=1<<u}while(w<y);c=g.readBits(v);_.push(new T([d-1,c,32,0,"lower"]));c=g.readBits(v);_.push(new T([y,c,32,0]));if(1&h){c=g.readBits(v);_.push(new T([c,0]))}return new R(_,!1)}(r,o,c)}}]);return SimpleSegmentVisitor}(),T=_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]}})),E=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}(),R=function(){function HuffmanTable(t,r){_classCallCheck(this,HuffmanTable);r||this.assignPrefixCodes(t);this.rootNode=new E(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,y,g=1,v=0;l[0]=0;for(;g<=o;){h=v=v+l[g-1]<<1;d=0;for(;d<r;){if((y=t[d]).prefixLength===g){y.prefixCode=h;h++}d++}g++}}}]);return HuffmanTable}();var M={};function getStandardTable(t){var r,o=M[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 T(r[c]);o=new R(r,!0);M[t]=o;return o}var j=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),y=[],g=!1,v=0;v<o;v++){var m=new Uint8Array(r);y.push(m);for(var _=-1,w=0;w<r;w++){if(_<0){if(-1===(l=d.readNextChar())){l=0;g=!0}_=7}m[w]=l>>_&1;_--}}if(c&&!g)for(var k=0;k<5&&-1!==d.readNextChar();k++);return y}var L=function(){function Jbig2Image(){_classCallCheck(this,Jbig2Image)}_createClass(Jbig2Image,[{key:"parseChunks",value:function parseChunks(t){return function parseJbig2Chunks(t){for(var r=new O,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){throw new Error("Not implemented: Jbig2Image.parse")}}]);return Jbig2Image}();r.Jbig2Image=L},(t,r,o)=>{o(192)("Int8",(function(t){return function Int8Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.ArithmeticDecoder=void 0;o(2);o(54);o(56);o(104);o(143);o(183);o(105);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}var c=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],l=function(){function ArithmeticDecoder(t,r,o){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ArithmeticDecoder);this.data=t;this.bp=r;this.dataEnd=o;this.chigh=t[r];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);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 o,l=t[r]>>1,u=1&t[r],h=c[l],d=h.qe,y=this.a-d;if(this.chigh<d)if(y<d){y=d;o=u;l=h.nmps}else{y=d;o=1^u;1===h.switchFlag&&(u=o);l=h.nlps}else{this.chigh-=d;if(0!=(32768&y)){this.a=y;return u}if(y<d){o=1^u;1===h.switchFlag&&(u=o);l=h.nlps}else{o=u;l=h.nmps}}do{0===this.ct&&this.byteIn();y<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&y));this.a=y;t[r]=l<<1|u;return o}}]);return ArithmeticDecoder}();r.ArithmeticDecoder=l},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.JpegStream=void 0;o(137);o(143);o(398);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(105);o(134);var c=o(393),l=o(350),u=o(404),h=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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.forceRGBA||this.forceRGB)&&Array.isArray(r)){for(var o=this.dict.get("BPC","BitsPerComponent")||8,c=r.length,h=new Int32Array(c),d=!1,y=(1<<o)-1,g=0;g<c;g+=2){h[g]=256*(r[g+1]-r[g])|0;h[g+1]=r[g]*y|0;256===h[g]&&0===h[g+1]||(d=!0)}d&&(t.decodeTransform=h)}if(this.params instanceof l.Dict){var v=this.params.get("ColorTransform");Number.isInteger(v)&&(t.colorTransform=v)}var m=new u.JpegImage(t);m.parse(this.bytes);var _=m.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=_;this.bufferLength=_.length;this.eof=!0}}}]);return JpegStream}(c.DecodeStream);r.JpegStream=d},(t,r,o)=>{o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);o(296);o(114);o(123);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.JpegImage=void 0;o(134);o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(290);o(293);o(302);o(405);o(381);o(371);o(328);o(398);var c=o(304),l=o(406),u=o(343);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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var h=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),d=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),y=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]),v=4017,m=799,_=3406,w=2276,k=1567,S=3784,C=5793,x=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}],y=d[0];for(o=0;o<u;o++){for(c=0;c<t[o];c++){(y=d.pop()).children[y.index]=r[l];for(;y.index>0;)y=d.pop();y.index++;d.push(y);for(;d.length<=o;){d.push(h={children:[],index:0});y.children[y.index]=h.children;y=h}l++}if(o+1<u){d.push(h={children:[],index:0});y.children[y.index]=h.children;y=h}}return d[0].children}function getBlockBufferOffset(t,r,o){return 64*((t.blocksPerLine+1)*r+o)}function decodeScan(t,r,o,l,v,m,_,w,k){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 l=(0,u.readUint16)(t,r);r+=2;if(l>0&&l!==o.scanLines)throw new d("Found DNL marker (0xFFDC) while parsing scan data",l)}else if(217===c){if(S){var g=L*(8===o.precision?8:0);if(g>0&&Math.round(o.scanLines/g)>=5)throw new d("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",g)}throw new y("Found EOI marker (0xFFD9) while parsing scan data")}throw new h("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 h("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}var R=0;var M,j=0;var L=0;function decodeMcu(t,r,o,c,l){var u=o%C;L=(o/C|0)*t.v+c;var h=u*t.h+l;r(t,getBlockBufferOffset(t,L,h))}function decodeBlock(t,r,o){L=o/t.blocksPerLine|0;var c=o%t.blocksPerLine;r(t,getBlockBufferOffset(t,L,c))}var D,N,U,G,$,H,X=l.length;H=x?0===m?0===w?function decodeDCFirst(t,r){var o=decodeHuffman(t.huffmanTableDC),c=0===o?0:receiveAndExtend(o)<<k;t.blockData[r]=t.pred+=c}:function decodeDCSuccessive(t,r){t.blockData[r]|=readBit()<<k}:0===w?function decodeACFirst(t,r){if(R>0)R--;else for(var o=m,c=_;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<<k);o++}else{if(h<15){R=receive(h)+(1<<h)-1;break}o+=16}}}:function decodeACSuccessive(t,r){for(var o,c,l=m,u=_,d=0;l<=u;){var y=r+g[l],v=t.blockData[y]<0?-1:1;switch(j){case 0:d=(c=decodeHuffman(t.huffmanTableAC))>>4;if(0==(o=15&c))if(d<15){R=receive(d)+(1<<d);j=4}else{d=16;j=1}else{if(1!==o)throw new h("invalid ACn encoding");M=receiveAndExtend(o);j=d?2:3}continue;case 1:case 2:t.blockData[y]?t.blockData[y]+=v*(readBit()<<k):0==--d&&(j=2===j?3:0);break;case 3:if(t.blockData[y])t.blockData[y]+=v*(readBit()<<k);else{t.blockData[y]=M<<k;j=0}break;case 4:t.blockData[y]&&(t.blockData[y]+=v*(readBit()<<k))}l++}4===j&&0==--R&&(j=0)}: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 y=g[l+=d];t.blockData[r+y]=receiveAndExtend(h);l++}else{if(d<15)break;l+=16}}};for(var q,z,W,V=0,K=1===X?l[0].blocksPerLine*l[0].blocksPerColumn:C*o.mcusPerColumn;V<=K;){var Y=v?Math.min(K-V,v):K;if(Y>0){for(N=0;N<X;N++)l[N].pred=0;R=0;if(1===X){D=l[0];for($=0;$<Y;$++){decodeBlock(D,H,V);V++}}else for($=0;$<Y;$++){for(N=0;N<X;N++){z=(D=l[N]).h;W=D.v;for(U=0;U<W;U++)for(G=0;G<z;G++)decodeMcu(D,H,V,U,G)}V++}}E=0;if(!(q=findNextFileMarker(t,r)))break;if(q.invalid){var J=Y>0?"unexpected":"excessive";(0,c.warn)("decodeScan - ".concat(J," MCU data, current marker is: ").concat(q.invalid));r=q.offset}if(!(q.marker>=65488&&q.marker<=65495))break;r+=2}return r-O}function quantizeAndInverse(t,r,o){var c,l,u,d,y,g,O,T,E,R,M,j,L,D,N,U,G,$=t.quantizationTable,H=t.blockData;if(!$)throw new h("missing required Quantization Table.");for(var X=0;X<64;X+=8){E=H[r+X];R=H[r+X+1];M=H[r+X+2];j=H[r+X+3];L=H[r+X+4];D=H[r+X+5];N=H[r+X+6];U=H[r+X+7];E*=$[X];if(0!=(R|M|j|L|D|N|U)){R*=$[X+1];M*=$[X+2];j*=$[X+3];L*=$[X+4];D*=$[X+5];N*=$[X+6];U*=$[X+7];l=(c=(c=C*E+128>>8)+(l=C*L+128>>8)+1>>1)-l;G=(u=M)*S+(d=N)*k+128>>8;u=u*k-d*S+128>>8;O=(y=(y=x*(R-U)+128>>8)+(O=D<<4)+1>>1)-O;g=(T=(T=x*(R+U)+128>>8)+(g=j<<4)+1>>1)-g;d=(c=c+(d=G)+1>>1)-d;u=(l=l+u+1>>1)-u;G=y*w+T*_+2048>>12;y=y*_-T*w+2048>>12;T=G;G=g*m+O*v+2048>>12;g=g*v-O*m+2048>>12;O=G;o[X]=c+T;o[X+7]=c-T;o[X+1]=l+O;o[X+6]=l-O;o[X+2]=u+g;o[X+5]=u-g;o[X+3]=d+y;o[X+4]=d-y}else{G=C*E+512>>10;o[X]=G;o[X+1]=G;o[X+2]=G;o[X+3]=G;o[X+4]=G;o[X+5]=G;o[X+6]=G;o[X+7]=G}}for(var q=0;q<8;++q){E=o[q];if(0!=((R=o[q+8])|(M=o[q+16])|(j=o[q+24])|(L=o[q+32])|(D=o[q+40])|(N=o[q+48])|(U=o[q+56]))){l=(c=4112+((c=C*E+2048>>12)+(l=C*L+2048>>12)+1>>1))-l;G=(u=M)*S+(d=N)*k+2048>>12;u=u*k-d*S+2048>>12;d=G;O=(y=(y=x*(R-U)+2048>>12)+(O=D)+1>>1)-O;g=(T=(T=x*(R+U)+2048>>12)+(g=j)+1>>1)-g;G=y*w+T*_+2048>>12;y=y*_-T*w+2048>>12;T=G;G=g*m+O*v+2048>>12;g=g*v-O*m+2048>>12;(E=(c=c+d+1>>1)+T)<16?E=0:E>=4080?E=255:E>>=4;(R=(l=l+u+1>>1)+(O=G))<16?R=0:R>=4080?R=255:R>>=4;(M=(u=l-u)+g)<16?M=0:M>=4080?M=255:M>>=4;(j=(d=c-d)+y)<16?j=0:j>=4080?j=255:j>>=4;(L=d-y)<16?L=0:L>=4080?L=255:L>>=4;(D=u-g)<16?D=0:D>=4080?D=255:D>>=4;(N=l-O)<16?N=0:N>=4080?N=255:N>>=4;(U=c-T)<16?U=0:U>=4080?U=255:U>>=4;H[r+q]=E;H[r+q+8]=R;H[r+q+16]=M;H[r+q+24]=j;H[r+q+32]=L;H[r+q+40]=D;H[r+q+48]=N;H[r+q+56]=U}else{G=(G=C*E+8192>>14)<-2040?0:G>=2024?255:G+2056>>4;H[r+q]=G;H[r+q+8]=G;H[r+q+16]=G;H[r+q+24]=G;H[r+q+32]=G;H[r+q+40]=G;H[r+q+48]=G;H[r+q+56]=G}}}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,l=o<r?o:r;if(r>=c)return null;var h=(0,u.readUint16)(t,r);if(h>=65472&&h<=65534)return{invalid:null,marker:h,offset:r};for(var d=(0,u.readUint16)(t,l);!(d>=65472&&d<=65534);){if(++l>=c)return null;d=(0,u.readUint16)(t,l)}return{invalid:h.toString(16),marker:d,offset:l}}var O=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]:{}).dnlScanLines,o=void 0===r?null:r;function readDataBlock(){var r=(0,u.readUint16)(t,m),o=(m+=2)+r-2,l=findNextFileMarker(t,o,m);if(null!=l&&l.invalid){(0,c.warn)("readDataBlock - incorrect length, current marker is: "+l.invalid);o=l.offset}var h=t.subarray(m,o);m+=h.length;return h}function prepareComponents(t){var r,o=Math.ceil(t.samplesPerLine/8/t.maxH),c=Math.ceil(t.scanLines/8/t.maxV),l=_createForOfIteratorHelper(t.components);try{for(l.s();!(r=l.n()).done;){var u=r.value,h=Math.ceil(Math.ceil(t.samplesPerLine/8)*u.h/t.maxH),d=Math.ceil(Math.ceil(t.scanLines/8)*u.v/t.maxV),y=o*u.h,g=64*(c*u.v)*(y+1);u.blockData=new Int16Array(g);u.blocksPerLine=h;u.blocksPerColumn=d}}catch(t){l.e(t)}finally{l.f()}t.mcusPerLine=o;t.mcusPerColumn=c}var l,v,m=0,_=null,w=null,k=0,S=[],C=[],x=[],O=(0,u.readUint16)(t,m);m+=2;if(65496!==O)throw new h("SOI not found");O=(0,u.readUint16)(t,m);m+=2;e:for(;65497!==O;){var T=void 0,E=void 0,R=void 0;switch(O){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 M=readDataBlock();65504===O&&74===M[0]&&70===M[1]&&73===M[2]&&70===M[3]&&0===M[4]&&(_={version:{major:M[5],minor:M[6]},densityUnits:M[7],xDensity:M[8]<<8|M[9],yDensity:M[10]<<8|M[11],thumbWidth:M[12],thumbHeight:M[13],thumbData:M.subarray(14,14+3*M[12]*M[13])});65518===O&&65===M[0]&&100===M[1]&&111===M[2]&&98===M[3]&&101===M[4]&&(w={version:M[5]<<8|M[6],flags0:M[7]<<8|M[8],flags1:M[9]<<8|M[10],transformCode:M[11]});break;case 65499:for(var j=(0,u.readUint16)(t,m)+(m+=2)-2;m<j;){var L=t[m++],D=new Uint16Array(64);if(L>>4==0)for(E=0;E<64;E++)D[g[E]]=t[m++];else{if(L>>4!=1)throw new h("DQT - invalid table spec");for(E=0;E<64;E++){D[g[E]]=(0,u.readUint16)(t,m);m+=2}}S[15&L]=D}break;case 65472:case 65473:case 65474:if(l)throw new h("Only single frame JPEGs supported");m+=2;(l={}).extended=65473===O;l.progressive=65474===O;l.precision=t[m++];var N=(0,u.readUint16)(t,m);m+=2;l.scanLines=o||N;l.samplesPerLine=(0,u.readUint16)(t,m);m+=2;l.components=[];l.componentIds={};var U=t[m++],G=0,$=0;for(T=0;T<U;T++){var H=t[m],X=t[m+1]>>4,q=15&t[m+1];G<X&&(G=X);$<q&&($=q);var z=t[m+2];R=l.components.push({h:X,v:q,quantizationId:z,quantizationTable:null});l.componentIds[H]=R-1;m+=3}l.maxH=G;l.maxV=$;prepareComponents(l);break;case 65476:var W=(0,u.readUint16)(t,m);m+=2;for(T=2;T<W;){var V=t[m++],K=new Uint8Array(16),Y=0;for(E=0;E<16;E++,m++)Y+=K[E]=t[m];var J=new Uint8Array(Y);for(E=0;E<Y;E++,m++)J[E]=t[m];T+=17+Y;(V>>4==0?x:C)[15&V]=buildHuffmanTable(K,J)}break;case 65501:m+=2;v=(0,u.readUint16)(t,m);m+=2;break;case 65498:var Z=1==++k&&!o;m+=2;var Q=t[m++],ee=[];for(T=0;T<Q;T++){var te=t[m++],re=l.componentIds[te],ne=l.components[re];ne.index=te;var ae=t[m++];ne.huffmanTableDC=x[ae>>4];ne.huffmanTableAC=C[15&ae];ee.push(ne)}var ie=t[m++],oe=t[m++],se=t[m++];try{var ce=decodeScan(t,m,l,ee,v,ie,oe,se>>4,15&se,Z);m+=ce}catch(r){if(r instanceof d){(0,c.warn)("".concat(r.message," -- attempting to re-parse the JPEG image."));return this.parse(t,{dnlScanLines:r.scanLines})}if(r instanceof y){(0,c.warn)("".concat(r.message," -- ignoring the rest of the image data."));break e}throw r}break;case 65500:m+=4;break;case 65535:255!==t[m]&&m--;break;default:var le=findNextFileMarker(t,m-2,m-3);if(null!=le&&le.invalid){(0,c.warn)("JpegImage.parse - unexpected data, current marker is: "+le.invalid);m=le.offset;break}if(!le||m>=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 h("JpegImage.parse - unknown marker: "+O.toString(16))}O=(0,u.readUint16)(t,m);m+=2}this.width=l.samplesPerLine;this.height=l.scanLines;this.jfif=_;this.adobe=w;this.components=[];var ue,fe=_createForOfIteratorHelper(l.components);try{for(fe.s();!(ue=fe.n()).done;){var he=ue.value,pe=S[he.quantizationId];pe&&(he.quantizationTable=pe);this.components.push({index:he.index,output:buildComponentData(0,he),scaleX:he.h/l.maxH,scaleY:he.v/l.maxV,blocksPerLine:he.blocksPerLine,blocksPerColumn:he.blocksPerColumn})}}catch(t){fe.e(t)}finally{fe.f()}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function _getLinearizedBlockData(t,r){var o,c,l,u,h,d,y,g,v,m,_,w,k=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),R=new Uint32Array(t),M=4294967288;for(y=0;y<O;y++){c=(o=this.components[y]).scaleX*S;l=o.scaleY*C;x=y;_=o.output;u=o.blocksPerLine+1<<3;if(c!==w){for(h=0;h<t;h++){g=0|h*c;R[h]=(g&M)<<3|7&g}w=c}for(d=0;d<r;d++){m=u*((g=0|d*l)&M)|(7&g)<<3;for(h=0;h<t;h++){E[x]=_[m+R[h]];x+=O}}}var j=this._decodeTransform;k||4!==O||j||(j=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(j)for(y=0;y<T;)for(g=0,v=0;g<O;g++,y++,v+=2)E[y]=(E[y]*j[v]>>8)+j[v+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:"_convertYccToRgba",value:function _convertYccToRgba(t,r){for(var o=0,c=0,l=t.length;o<l;o+=3,c+=4){var u=t[o],h=t[o+1],d=t[o+2];r[c]=u-179.456+1.402*d;r[c+1]=u+135.459-.344*h-.714*d;r[c+2]=u-226.816+1.772*h;r[c+3]=255}return r}},{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:"_convertYcckToRgba",value:function _convertYcckToRgba(t){for(var r=0,o=t.length;r<o;r+=4){var c=t[r],l=t[r+1],u=t[r+2],h=t[r+3];t[r]=l*(-660635669420364e-19*l+.000437130475926232*u-54080610064599e-18*c+.00048449797120281*h-.154362151871126)-122.67195406894+u*(-.000957964378445773*u+.000817076911346625*c-.00477271405408747*h+1.53380253221734)+c*(.000961250184130688*c-.00266257332283933*h+.48357088451265)+h*(-.000336197177618394*h+.484791561490776);t[r+1]=107.268039397724+l*(219927104525741e-19*l-.000640992018297945*u+.000659397001245577*c+.000426105652938837*h-.176491792462875)+u*(-.000778269941513683*u+.00130872261408275*c+.000770482631801132*h-.151051492775562)+c*(.00126935368114843*c-.00265090189010898*h+.25802910206845)+h*(-.000318913117588328*h-.213742400323665);t[r+2]=l*(-.000570115196973677*l-263409051004589e-19*u+.0020741088115012*c-.00288260236853442*h+.814272968359295)-20.810012546947+u*(-153496057440975e-19*u-.000132689043961446*c+.000560833691242812*h-.195152027534049)+c*(.00174418132927582*c-.00255243321439347*h+.116935020465145)+h*(-.000343531996510555*h+.24165260232407);t[r+3]=255}return t}},{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:"_convertCmykToRgba",value:function _convertCmykToRgba(t){for(var r=0,o=t.length;r<o;r+=4){var c=t[r],l=t[r+1],u=t[r+2],h=t[r+3];t[r]=255+c*(-6747147073602441e-20*c+.0008379262121013727*l+.0002894718188643294*u+.003264231057537806*h-1.1185611867203937)+l*(26374107616089405e-21*l-8626949158638572e-20*u-.0002748769067499491*h-.02155688794978967)+u*(-3878099212869363e-20*u-.0003267808279485286*h+.0686742238595345)-h*(.0003361971776183937*h+.7430659151342254);t[r+1]=255+c*(.00013596372813588848*c+.000924537132573585*l+.00010567359618683593*u+.0004791864687436512*h-.3109689587515875)+l*(-.00023545346108370344*l+.0002702845253534714*u+.0020200308977307156*h-.7488052167015494)+u*(6834815998235662e-20*u+.00015168452363460973*h-.09751927774728933)-h*(.0003189131175883281*h+.7364883807733168);t[r+2]=255+c*(13598650411385307e-21*c+.00012423956175490851*l+.0004751985097583589*u-36729317476630422e-22*h-.05562186980264034)+l*(.00016141380598724676*l+.0009692239130725186*u+.0007782692450036253*h-.44015232367526463)+u*(5.068882914068769e-7*u+.0017778369011375071*h-.7591454649749609)-h*(.0003435319965105553*h+.7063770186160144);t[r+3]=255}return t}},{key:"getData",value:function getData(t){var r=t.width,o=t.height,c=t.forceRGBA,u=void 0!==c&&c,d=t.forceRGB,y=void 0!==d&&d,g=t.isSourcePDF,v=void 0!==g&&g;if(this.numComponents>4)throw new h("Unsupported color mode");var m=this._getLinearizedBlockData(r,o,v);if(1===this.numComponents&&(u||y)){var _=m.length*(u?4:3),w=new Uint8ClampedArray(_),k=0;if(u)(0,l.grayToRGBA)(m,new Uint32Array(w.buffer));else{var S,C=_createForOfIteratorHelper(m);try{for(C.s();!(S=C.n()).done;){var x=S.value;w[k++]=x;w[k++]=x;w[k++]=x}}catch(t){C.e(t)}finally{C.f()}}return w}if(3===this.numComponents&&this._isColorConversionNeeded){if(u){var O=new Uint8ClampedArray(m.length/3*4);return this._convertYccToRgba(m,O)}return this._convertYccToRgb(m)}if(4===this.numComponents){if(this._isColorConversionNeeded)return u?this._convertYcckToRgba(m):y?this._convertYcckToRgb(m):this._convertYcckToCmyk(m);if(u)return this._convertCmykToRgba(m);if(y)return this._convertCmykToRgb(m)}return m}}]);return JpegImage}();r.JpegImage=O},(t,r,o)=>{o(192)("Int16",(function(t){return function Int16Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{o(56);o(104);o(113);o(175);o(177);o(290);o(296);o(293);o(114);o(123);o(129);o(183);Object.defineProperty(r,"__esModule",{value:!0});r.convertBlackAndWhiteToRGBA=convertBlackAndWhiteToRGBA;r.convertToRGBA=function convertToRGBA(t){switch(t.kind){case c.ImageKind.GRAYSCALE_1BPP:return convertBlackAndWhiteToRGBA(t);case c.ImageKind.RGB_24BPP:return function convertRGBToRGBA(t){var r=t.src,o=t.srcPos,l=void 0===o?0:o,u=t.dest,h=t.destPos,d=void 0===h?0:h,y=(t.width,t.height,0),g=r.length>>2,v=new Uint32Array(r.buffer,l,g);if(c.FeatureTest.isLittleEndian){for(;y<g-2;y+=3,d+=4){var m=v[y],_=v[y+1],w=v[y+2];u[d]=4278190080|m;u[d+1]=m>>>24|_<<8|4278190080;u[d+2]=_>>>16|w<<16|4278190080;u[d+3]=w>>>8|4278190080}for(var k=4*y,S=r.length;k<S;k+=3)u[d++]=r[k]|r[k+1]<<8|r[k+2]<<16|4278190080}else{for(;y<g-2;y+=3,d+=4){var C=v[y],x=v[y+1],O=v[y+2];u[d]=255|C;u[d+1]=C<<24|x>>>8|255;u[d+2]=x<<16|O>>>16|255;u[d+3]=O<<8|255}for(var T=4*y,E=r.length;T<E;T+=3)u[d++]=r[T]<<24|r[T+1]<<16|r[T+2]<<8|255}return{srcPos:l,destPos:d}}(t)}return null};r.grayToRGBA=function grayToRGBA(t,r){if(c.FeatureTest.isLittleEndian)for(var o=0,l=t.length;o<l;o++)r[o]=65793*t[o]|4278190080;else for(var u=0,h=t.length;u<h;u++)r[u]=16843008*t[u]|255};o(137);o(143);o(328);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);var c=o(304);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 convertBlackAndWhiteToRGBA(t){var r=t.src,o=t.srcPos,l=void 0===o?0:o,u=t.dest,h=t.width,d=t.height,y=t.nonBlackColor,g=void 0===y?4294967295:y,v=t.inverseDecode,m=void 0!==v&&v,_=c.FeatureTest.isLittleEndian?4278190080:255,w=_slicedToArray(m?[g,_]:[_,g],2),k=w[0],S=w[1],C=h>>3,x=7&h,O=r.length;u=new Uint32Array(u.buffer);for(var T=0,E=0;E<d;E++){for(var R=l+C;l<R;l++){var M=l<O?r[l]:255;u[T++]=128&M?S:k;u[T++]=64&M?S:k;u[T++]=32&M?S:k;u[T++]=16&M?S:k;u[T++]=8&M?S:k;u[T++]=4&M?S:k;u[T++]=2&M?S:k;u[T++]=1&M?S:k}if(0!==x)for(var j=l<O?r[l++]:255,L=0;L<x;L++)u[T++]=j&1<<7-L?S:k}return{srcPos:l,destPos:T}}},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.JpxStream=void 0;o(137);o(143);o(371);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(134);var c=o(393),l=o(408),u=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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 y=t.tiles[d],g=y.width,v=y.height,m=y.left,_=y.top,w=y.items,k=0,S=(r*_+m)*c,C=r*c,x=g*c,O=0;O<v;O++){var T=w.subarray(k,k+x);h.set(T,S);k+=x;S+=C}this.buffer=h}this.bufferLength=this.buffer.length;this.eof=!0}}}]);return JpxStream}(c.DecodeStream);r.JpxStream=h},(t,r,o)=>{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)}o(305);o(306);o(2);o(54);o(56);o(104);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.JpxImage=void 0;o(134);o(302);o(290);o(183);o(296);o(143);o(293);o(137);o(398);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(105);o(191);o(382);o(371);o(328);o(381);o(401);o(182);var c=o(304),l=o(343),u=o(402);function _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return 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,_toPropertyKey(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 _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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},y=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),y=(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 g=d-u,v=!0;switch(y){case 1785737832:v=!1;break;case 1668246642:var m=t[o];if(1===m){var _=(0,l.readUint32)(t,o+3);switch(_){case 16:case 17:case 18:break;default:(0,c.warn)("Unknown colorspace "+_)}}else 2===m&&(0,c.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(t,o,o+g);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 w=String.fromCharCode(y>>24&255,y>>16&255,y>>8&255,255&y);(0,c.warn)("Unsupported header type ".concat(y," (").concat(w,")."))}v&&(o+=g)}else this.parseCodestream(t,0,t.length)}},{key:"parseImageProperties",value:function parseImageProperties(t){for(var r=t.getByte();r>=0;){if(65361===(r<<8|(r=t.getByte()))){t.skip(4);var o=t.getInt32()>>>0,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 y=r;y+1<o;){var g=(0,l.readUint16)(t,y);y+=2;var v=0,m=void 0,_=void 0,w=void 0,k=void 0,S=void 0,C=void 0;switch(g){case 65359:u.mainHeader=!0;break;case 65497:break;case 65361:v=(0,l.readUint16)(t,y);var x={};x.Xsiz=(0,l.readUint32)(t,y+4);x.Ysiz=(0,l.readUint32)(t,y+8);x.XOsiz=(0,l.readUint32)(t,y+12);x.YOsiz=(0,l.readUint32)(t,y+16);x.XTsiz=(0,l.readUint32)(t,y+20);x.YTsiz=(0,l.readUint32)(t,y+24);x.XTOsiz=(0,l.readUint32)(t,y+28);x.YTOsiz=(0,l.readUint32)(t,y+32);var O=(0,l.readUint16)(t,y+36);x.Csiz=O;var T=[];m=y+38;for(var E=0;E<O;E++){var R={precision:1+(127&t[m]),isSigned:!!(128&t[m]),XRsiz:t[m+1],YRsiz:t[m+2]};m+=3;calculateComponentDimensions(R,x);T.push(R)}u.SIZ=x;u.components=T;calculateTileGrids(u,T);u.QCC=[];u.COC=[];break;case 65372:v=(0,l.readUint16)(t,y);var M={};m=y+2;switch(31&(_=t[m++])){case 0:k=8;S=!0;break;case 1:k=16;S=!1;break;case 2:k=16;S=!0;break;default:throw new Error("Invalid SQcd value "+_)}M.noQuantization=8===k;M.scalarExpounded=S;M.guardBits=_>>5;w=[];for(;m<v+y;){var j={};if(8===k){j.epsilon=t[m++]>>3;j.mu=0}else{j.epsilon=t[m]>>3;j.mu=(7&t[m])<<8|t[m+1];m+=2}w.push(j)}M.SPqcds=w;if(u.mainHeader)u.QCD=M;else{u.currentTile.QCD=M;u.currentTile.QCC=[]}break;case 65373:v=(0,l.readUint16)(t,y);var L={};m=y+2;var D=void 0;if(u.SIZ.Csiz<257)D=t[m++];else{D=(0,l.readUint16)(t,m);m+=2}switch(31&(_=t[m++])){case 0:k=8;S=!0;break;case 1:k=16;S=!1;break;case 2:k=16;S=!0;break;default:throw new Error("Invalid SQcd value "+_)}L.noQuantization=8===k;L.scalarExpounded=S;L.guardBits=_>>5;w=[];for(;m<v+y;){var N={};if(8===k){N.epsilon=t[m++]>>3;N.mu=0}else{N.epsilon=t[m]>>3;N.mu=(7&t[m])<<8|t[m+1];m+=2}w.push(N)}L.SPqcds=w;u.mainHeader?u.QCC[D]=L:u.currentTile.QCC[D]=L;break;case 65362:v=(0,l.readUint16)(t,y);var U={};m=y+2;var G=t[m++];U.entropyCoderWithCustomPrecincts=!!(1&G);U.sopMarkerUsed=!!(2&G);U.ephMarkerUsed=!!(4&G);U.progressionOrder=t[m++];U.layersCount=(0,l.readUint16)(t,m);m+=2;U.multipleComponentTransform=t[m++];U.decompositionLevelsCount=t[m++];U.xcb=2+(15&t[m++]);U.ycb=2+(15&t[m++]);var $=t[m++];U.selectiveArithmeticCodingBypass=!!(1&$);U.resetContextProbabilities=!!(2&$);U.terminationOnEachCodingPass=!!(4&$);U.verticallyStripe=!!(8&$);U.predictableTermination=!!(16&$);U.segmentationSymbolUsed=!!(32&$);U.reversibleTransformation=t[m++];if(U.entropyCoderWithCustomPrecincts){for(var H=[];m<v+y;){var X=t[m++];H.push({PPx:15&X,PPy:X>>4})}U.precinctsSizes=H}var q=[];U.selectiveArithmeticCodingBypass&&q.push("selectiveArithmeticCodingBypass");U.terminationOnEachCodingPass&&q.push("terminationOnEachCodingPass");U.verticallyStripe&&q.push("verticallyStripe");U.predictableTermination&&q.push("predictableTermination");if(q.length>0){d=!0;(0,c.warn)("JPX: Unsupported COD options (".concat(q.join(", "),")."))}if(u.mainHeader)u.COD=U;else{u.currentTile.COD=U;u.currentTile.COC=[]}break;case 65424:v=(0,l.readUint16)(t,y);(C={}).index=(0,l.readUint16)(t,y+2);C.length=(0,l.readUint32)(t,y+4);C.dataEnd=C.length+y-2;C.partIndex=t[y+8];C.partsCount=t[y+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,y,v=C.dataEnd-y);break;case 65363:(0,c.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:v=(0,l.readUint16)(t,y);break;default:throw new Error("Unknown codestream code: "+g.toString(16))}y+=v}}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],y=[],g=0;g<c;g++)y[g]=transformTile(t,d,g);var v=y[0],m=new Uint8ClampedArray(v.items.length*c),_={left:v.left,top:v.top,width:v.width,height:v.height,items:m},w=void 0,k=void 0,S=0,C=void 0,x=void 0,O=void 0,T=void 0,E=void 0;if(d.codingStyleDefaultParameters.multipleComponentTransform){var R=4===c,M=y[0].items,j=y[1].items,L=y[2].items,D=R?y[3].items:null;k=.5+(128<<(w=o[0].precision-8));var N=d.components[0],U=c-3;x=M.length;if(N.codingStyleParameters.reversibleTransformation)for(C=0;C<x;C++,S+=U){O=M[C]+k;T=j[C];var G=O-((E=L[C])+T>>2);m[S++]=G+E>>w;m[S++]=G>>w;m[S++]=G+T>>w}else for(C=0;C<x;C++,S+=U){O=M[C]+k;T=j[C];E=L[C];m[S++]=O+1.402*E>>w;m[S++]=O-.34413*T-.71414*E>>w;m[S++]=O+1.772*T>>w}if(R)for(C=0,S=3;C<x;C++,S+=4)m[S]=D[C]+k>>w}else for(var $=0;$<c;$++){var H=y[$].items;k=.5+(128<<(w=o[$].precision-8));for(S=$,C=0,x=H.length;C<x;C++){m[S]=H[C]+k>>w;S+=c}}l.push(_)}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=y;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 y=0;y<u;y++){(o={}).tx0=Math.max(c.XTOsiz+y*c.XTsiz,c.XOsiz);o.ty0=Math.max(c.YTOsiz+d*c.YTsiz,c.YOsiz);o.tx1=Math.min(c.XTOsiz+(y+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 g=0,v=c.Csiz;g<v;g++)for(var m=r[g],_=0,w=l.length;_<w;_++){var k={};o=l[_];k.tcx0=Math.ceil(o.tx0/m.XRsiz);k.tcy0=Math.ceil(o.ty0/m.YRsiz);k.tcx1=Math.ceil(o.tx1/m.XRsiz);k.tcy1=Math.ceil(o.ty1/m.YRsiz);k.width=k.tcx1-k.tcx0;k.height=k.tcy1-k.tcy0;o.components[g]=k}}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),y=r.trx1>r.trx0?Math.ceil(r.trx1/c)-Math.floor(r.trx0/c):0,g=r.try1>r.try0?Math.ceil(r.try1/l)-Math.floor(r.try0/l):0,v=y*g;r.precinctParameters={precinctWidth:c,precinctHeight:l,numprecinctswide:y,numprecinctshigh:g,numprecincts:v,precinctWidthInSubband:h,precinctHeightInSubband:d}}function buildCodeblocks(t,r,o){var c,l,u,h,d=o.xcb_,y=o.ycb_,g=1<<d,v=1<<y,m=r.tbx0>>d,_=r.tby0>>y,w=r.tbx1+g-1>>d,k=r.tby1+v-1>>y,S=r.resolution.precinctParameters,C=[],x=[];for(l=_;l<k;l++)for(c=m;c<w;c++){(u={cbx:c,cby:l,tbx0:g*c,tby0:v*l,tbx1:g*(c+1),tby1:v*(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:y,numcodeblockwide:w-m+1,numcodeblockhigh: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,y=0,g=d.length;y<g;y++){var v=d[y];v.precinctNumber===r&&c.push(v)}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,y=0;y<u;y++)d=Math.max(d,c.components[y].codingStyleParameters.decompositionLevelsCount);var g=0,v=0,m=0,_=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<l;g++){for(;v<=d;v++){for(;m<u;m++){var t=c.components[m];if(!(v>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[v],o=r.precinctParameters.numprecincts;_<o;){var y=createPacket(r,_,g);_++;return y}_=0}}m=0}v=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,y=0;y<u;y++)d=Math.max(d,c.components[y].codingStyleParameters.decompositionLevelsCount);var g=0,v=0,m=0,_=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<=d;g++){for(;v<l;v++){for(;m<u;m++){var t=c.components[m];if(!(g>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[g],o=r.precinctParameters.numprecincts;_<o;){var y=createPacket(r,_,v);_++;return y}_=0}}m=0}v=0}throw new h("Out of packets")}}function ResolutionPositionComponentLayerIterator(t){var r,o,c,l,u=t.SIZ,d=t.currentTile.index,y=t.tiles[d],g=y.codingStyleDefaultParameters.layersCount,v=u.Csiz,m=0;for(c=0;c<v;c++){var _=y.components[c];m=Math.max(m,_.codingStyleParameters.decompositionLevelsCount)}var w=new Int32Array(m+1);for(o=0;o<=m;++o){var k=0;for(c=0;c<v;++c){var S=y.components[c].resolutions;o<S.length&&(k=Math.max(k,S[o].precinctParameters.numprecincts))}w[o]=k}r=0;o=0;c=0;l=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=m;o++){for(;l<w[o];l++){for(;c<v;c++){var t=y.components[c];if(!(o>t.codingStyleParameters.decompositionLevelsCount)){var u=t.resolutions[o],d=u.precinctParameters.numprecincts;if(!(l>=d)){for(;r<g;){var _=createPacket(u,l,r);r++;return _}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),y=d,g=0,v=0,m=0,_=0,w=0;this.nextPacket=function JpxImage_nextPacket(){for(;w<y.maxNumHigh;w++){for(;_<y.maxNumWide;_++){for(;m<u;m++){for(var t=c.components[m],r=t.codingStyleParameters.decompositionLevelsCount;v<=r;v++){var o=t.resolutions[v],k=d.components[m].resolutions[v],S=getPrecinctIndexIfExist(_,w,k,y,o);if(null!==S){for(;g<l;){var C=createPacket(o,S,g);g++;return C}g=0}}v=0}m=0}_=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),y=0,g=0,v=0,m=0,_=0;this.nextPacket=function JpxImage_nextPacket(){for(;v<u;++v){for(var t=c.components[v],r=d.components[v],o=t.codingStyleParameters.decompositionLevelsCount;_<r.maxNumHigh;_++){for(;m<r.maxNumWide;m++){for(;g<=o;g++){var w=t.resolutions[g],k=r.resolutions[g],S=getPrecinctIndexIfExist(m,_,k,r,w);if(null!==S){for(;y<l;){var C=createPacket(w,S,y);y++;return C}y=0}}g=0}m=0}_=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 y=t.components[d],g=y.codingStyleParameters.decompositionLevelsCount,v=new Array(g+1),m=Number.MAX_VALUE,_=Number.MAX_VALUE,w=0,k=0,S=1,C=g;C>=0;--C){var x=y.resolutions[C],O=S*x.precinctParameters.precinctWidth,T=S*x.precinctParameters.precinctHeight;m=Math.min(m,O);_=Math.min(_,T);w=Math.max(w,x.precinctParameters.numprecinctswide);k=Math.max(k,x.precinctParameters.numprecinctshigh);v[C]={width:O,height:T};S<<=1}o=Math.min(o,m);c=Math.min(c,_);l=Math.max(l,w);u=Math.max(u,k);h[d]={resolutions:v,minWidth:m,minHeight:_,maxNumWide:w,maxNumHigh:k}}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],y=d.codingStyleParameters.decompositionLevelsCount,g=[],v=[],m=0;m<=y;m++){var _=getBlocksDimensions(0,d,m),w={},k=1<<y-m;w.trx0=Math.ceil(d.tcx0/k);w.try0=Math.ceil(d.tcy0/k);w.trx1=Math.ceil(d.tcx1/k);w.try1=Math.ceil(d.tcy1/k);w.resLevel=m;buildPrecincts(0,w,_);g.push(w);var S=void 0;if(0===m){(S={}).type="LL";S.tbx0=Math.ceil(d.tcx0/k);S.tby0=Math.ceil(d.tcy0/k);S.tbx1=Math.ceil(d.tcx1/k);S.tby1=Math.ceil(d.tcy1/k);S.resolution=w;buildCodeblocks(0,S,_);v.push(S);w.subbands=[S]}else{var C=1<<y-m+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=w;buildCodeblocks(0,S,_);v.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=w;buildCodeblocks(0,S,_);v.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=w;buildCodeblocks(0,S,_);v.push(S);x.push(S);w.subbands=x}}d.resolutions=g;d.subbands=v}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,y=0,m=!1;function readBits(t){for(;y<t;){var c=r[o+d];d++;if(m){u=u<<7|c;y+=7;m=!1}else{u=u<<8|c;y+=8}255===c&&(m=!0)}return u>>>(y-=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(){y=0;if(m){d++;m=!1}}function readCodingpasses(){if(0===readBits(1))return 1;if(0===readBits(1))return 2;var t=readBits(2);return t<3?t+3:(t=readBits(5))<31?t+6:(t=readBits(7))+37}for(var _=t.currentTile.index,w=t.tiles[_],k=t.COD.sopMarkerUsed,S=t.COD.ephMarkerUsed,C=w.packetsIterator;d<c;){alignToByte();k&&skipMarkerIfEqual(145)&&skipBytes(4);var x=C.nextPacket();if(readBits(1)){for(var O=x.layerNumber,T=[],E=void 0,R=0,M=x.codeblocks.length;R<M;R++){var j=(E=x.codeblocks[R]).precinct,L=E.cbx-j.cbxMin,D=E.cby-j.cbyMin,N=!1,U=!1,G=void 0;if(void 0!==E.included)N=!!readBits(1);else{var $=void 0;if(void 0!==(j=E.precinct).inclusionTree)$=j.inclusionTree;else{var H=j.cbxMax-j.cbxMin+1,X=j.cbyMax-j.cbyMin+1;$=new v(H,X,O);G=new g(H,X);j.inclusionTree=$;j.zeroBitPlanesTree=G;for(var q=0;q<O;q++)if(0!==readBits(1))throw new h("Invalid tag tree")}if($.reset(L,D,O))for(;;){if(!readBits(1)){$.incrementValue(O);break}if(!$.nextLevel()){E.included=!0;N=U=!0;break}}}if(N){if(U){(G=j.zeroBitPlanesTree).reset(L,D);for(;;)if(readBits(1)){if(!G.nextLevel())break}else G.incrementValue();E.zeroBitPlanes=G.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,y,g){for(var v=c.tbx0,_=c.tby0,w=c.tbx1-c.tbx0,k=c.codeblocks,S="H"===c.type.charAt(0)?1:0,C="H"===c.type.charAt(1)?r:0,x=0,O=k.length;x<O;++x){var T=k[x],E=T.tbx1_-T.tbx0_,R=T.tby1_-T.tby0_;if(0!==E&&0!==R&&void 0!==T.data){var M=new m(E,R,T.subbandType,T.zeroBitPlanes,h),j=2,L=T.data,D=0,N=0,U=void 0,G=void 0,$=void 0;for(U=0,G=L.length;U<G;U++){D+=($=L[U]).end-$.start;N+=$.codingpasses}var H=new Uint8Array(D),X=0;for(U=0,G=L.length;U<G;U++){var q=($=L[U]).data.subarray($.start,$.end);H.set(q,X);X+=q.length}var z=new u.ArithmeticDecoder(H,0,D);M.setDecoder(z);for(U=0;U<N;U++){switch(j){case 0:M.runSignificancePropagationPass();break;case 1:M.runMagnitudeRefinementPass();break;case 2:M.runCleanupPass();y&&M.checkSegmentationSymbol()}g&&M.reset();j=(j+1)%3}var W=T.tbx0_-v+(T.tby0_-_)*w,V=M.coefficentsSign,K=M.coefficentsMagnitude,Y=M.bitsDecoded,J=d?0:.5,Z=void 0,Q=void 0,ee=void 0;X=0;var te="LL"!==c.type;for(U=0;U<R;U++){var re=2*(W/w|0)*(r-w)+S+C;for(Z=0;Z<E;Z++){if(0!==(Q=K[X])){Q=(Q+J)*l;0!==V[X]&&(Q=-Q);ee=Y[X];t[te?re+(W<<1):W]=d&&ee>=h?Q:Q*(1<<h-ee)}W++;X++}W+=w-E}}}}function transformTile(t,r,o){for(var c=r.components[o],l=c.codingStyleParameters,u=c.quantizationParameters,h=l.decompositionLevelsCount,y=u.SPqcds,g=u.scalarExpounded,v=u.guardBits,m=l.segmentationSymbolUsed,_=l.resetContextProbabilities,S=t.components[o].precision,C=l.reversibleTransformation,x=C?new k:new w,O=[],T=0,E=0;E<=h;E++){for(var R=c.resolutions[E],M=R.trx1-R.trx0,j=R.try1-R.try0,L=new Float32Array(M*j),D=0,N=R.subbands.length;D<N;D++){var U=void 0,G=void 0;if(g){U=y[T].mu;G=y[T].epsilon;T++}else{U=y[0].mu;G=y[0].epsilon+(E>0?1-E:0)}var $=R.subbands[D],H=d[$.type];copyCoefficients(L,M,0,$,C?1:Math.pow(2,S+H-G)*(1+U/2048),v+G-1,C,m,_)}O.push({width:M,height:j,items:L})}var X=x.calculate(O,c.tcx0,c.tcy0);return{left:c.tcx0,top:c.tcy0,width:X.width,height:X.height,items:X.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 g=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}(),v=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,y=h.length;d<y;d++)h[d]=o;var g={width:t,height:r,items:h};this.levels.push(g);t=Math.ceil(t/2);r=Math.ceil(r/2)}}_createClass(InclusionTree,[{key:"reset",value:function reset(t,r,o){for(var 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}(),m=function(){function BitModel(t,r,o,c,l){_classCallCheck(this,BitModel);this.width=t;this.height=r;var u;u="HH"===o?BitModel.HHContextLabel:"HL"===o?BitModel.HLContextLabel:BitModel.LLAndLHContextsLabel;this.contextLabelTable=u;var h,d=t*r;this.neighborsSignificance=new Uint8Array(d);this.coefficentsSign=new Uint8Array(d);h=l>14?new Uint32Array(d):l>6?new Uint16Array(d):new Uint8Array(d);this.coefficentsMagnitude=h;this.processingFlags=new Uint8Array(d);var y=new Uint8Array(d);if(0!==c)for(var g=0;g<d;g++)y[g]=c;this.bitsDecoded=y;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[BitModel.UNIFORM_CONTEXT]=92;this.contexts[BitModel.RUNLENGTH_CONTEXT]=6}},{key:"setNeighborsSignificance",value:function setNeighborsSignificance(t,r,o){var c,l=this.neighborsSignificance,u=this.width,h=this.height,d=r>0,y=r+1<u;if(t>0){c=o-u;d&&(l[c-1]+=16);y&&(l[c+1]+=16);l[c]+=4}if(t+1<h){c=o+u;d&&(l[c-1]+=16);y&&(l[c+1]+=16);l[c]+=4}d&&(l[o-1]+=1);y&&(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,y=this.contextLabelTable,g=this.bitsDecoded,v=0;v<o;v+=4)for(var m=0;m<r;m++)for(var _=v*r+m,w=0;w<4;w++,_+=r){var k=v+w;if(k>=o)break;h[_]&=-2;if(!c[_]&&u[_]){var S=y[u[_]];if(t.readBit(d,S)){var C=this.decodeSignBit(k,m,_);l[_]=C;c[_]=1;this.setNeighborsSignificance(k,m,_);h[_]|=2}g[_]++;h[_]|=1}}}},{key:"decodeSignBit",value:function decodeSignBit(t,r,o){var c,l,u,h,d,y,g=this.width,v=this.height,m=this.coefficentsMagnitude,_=this.coefficentsSign;h=r>0&&0!==m[o-1];if(r+1<g&&0!==m[o+1]){u=_[o+1];c=h?1-u-(l=_[o-1]):1-u-u}else c=h?1-(l=_[o-1])-l:0;var w=3*c;h=t>0&&0!==m[o-g];if(t+1<v&&0!==m[o+g]){u=_[o+g];c=h?1-u-(l=_[o-g])+w:1-u-u+w}else c=h?1-(l=_[o-g])-l+w:w;if(c>=0){d=9+c;y=this.decoder.readBit(this.contexts,d)}else{d=9-c;y=1^this.decoder.readBit(this.contexts,d)}return y}},{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,y=this.processingFlags,g=o*c,v=4*o,m=0;m<g;m=t){t=Math.min(g,m+v);for(var _=0;_<o;_++)for(var w=m+_;w<t;w+=o)if(l[w]&&0==(1&y[w])){var k=16;if(0!=(2&y[w])){y[w]^=2;k=0===(127&u[w])?15:14}var S=r.readBit(h,k);l[w]=l[w]<<1|S;d[w]++;y[w]|=1}}}},{key:"runCleanupPass",value:function runCleanupPass(){for(var t,r=this.decoder,o=this.width,c=this.height,l=this.neighborsSignificance,u=this.coefficentsMagnitude,h=this.coefficentsSign,d=this.contexts,y=this.contextLabelTable,g=this.bitsDecoded,v=this.processingFlags,m=o,_=2*o,w=3*o,k=0;k<c;k=t){t=Math.min(k+4,c);for(var S=k*o,C=k+3<c,x=0;x<o;x++){var O=S+x,T=0,E=O,R=k,M=void 0;if(C&&0===v[O]&&0===v[O+m]&&0===v[O+_]&&0===v[O+w]&&0===l[O]&&0===l[O+m]&&0===l[O+_]&&0===l[O+w]){if(!r.readBit(d,BitModel.RUNLENGTH_CONTEXT)){g[O]++;g[O+m]++;g[O+_]++;g[O+w]++;continue}if(0!==(T=r.readBit(d,BitModel.UNIFORM_CONTEXT)<<1|r.readBit(d,BitModel.UNIFORM_CONTEXT))){R=k+T;E+=T*o}M=this.decodeSignBit(R,x,E);h[E]=M;u[E]=1;this.setNeighborsSignificance(R,x,E);v[E]|=2;E=O;for(var j=k;j<=R;j++,E+=o)g[E]++;T++}for(R=k+T;R<t;R++,E+=o)if(!u[E]&&0==(1&v[E])){var L=y[l[E]];if(1===r.readBit(d,L)){M=this.decodeSignBit(R,x,E);h[E]=M;u[E]=1;this.setNeighborsSignificance(R,x,E);v[E]|=2}g[E]++}}}}},{key:"checkSegmentationSymbol",value:function checkSegmentationSymbol(){var t=this.decoder,r=this.contexts;if(10!==(t.readBit(r,BitModel.UNIFORM_CONTEXT)<<3|t.readBit(r,BitModel.UNIFORM_CONTEXT)<<2|t.readBit(r,BitModel.UNIFORM_CONTEXT)<<1|t.readBit(r,BitModel.UNIFORM_CONTEXT)))throw new h("Invalid segmentation symbol")}}]);return BitModel}();_defineProperty(m,"UNIFORM_CONTEXT",17);_defineProperty(m,"RUNLENGTH_CONTEXT",18);_defineProperty(m,"LLAndLHContextsLabel",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]));_defineProperty(m,"HLContextLabel",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]));_defineProperty(m,"HHContextLabel",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]));var _=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,y,g,v=t.width,m=t.height,_=t.items,w=r.width,k=r.height,S=r.items;for(h=0,l=0;l<m;l++){d=2*l*w;for(u=0;u<v;u++,h++,d+=2)S[d]=_[h]}_=t.items=null;var C=new Float32Array(w+8);if(1===w){if(0!=(1&o))for(g=0,h=0;g<k;g++,h+=w)S[h]*=.5}else for(g=0,h=0;g<k;g++,h+=w){C.set(S.subarray(h,h+w),4);this.extend(C,4,w);this.filter(C,4,w);S.set(C.subarray(4,4+w),h)}var x=16,O=[];for(l=0;l<x;l++)O.push(new Float32Array(k+8));var T,E=0;t=4+k;if(1===k){if(0!=(1&c))for(y=0;y<w;y++)S[y]*=.5}else for(y=0;y<w;y++){if(0===E){x=Math.min(w-y,x);for(h=y,d=4;d<t;h+=w,d++)for(T=0;T<x;T++)O[T][d]=S[h+T];E=x}var R=O[--E];this.extend(R,4,k);this.filter(R,4,k);if(0===E){h=y-x+1;for(d=4;d<t;h+=w,d++)for(T=0;T<x;T++)S[h+T]=O[T][d]}}return{width:w,height:k,items:S}}}]);return Transform}(),w=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,y=-1.586134342059924,g=-.052980118572961,v=.882911075530934,m=.443506852043971,_=1.230174104914001;c=(r|=0)-3;for(l=d+4;l--;c+=2)t[c]*=.8128930661159609;u=m*t[(c=r-2)-1];for(l=d+3;l--;c+=2){h=m*t[c+1];t[c]=_*t[c]-u-h;if(!l--)break;u=m*t[(c+=2)+1];t[c]=_*t[c]-u-h}u=v*t[(c=r-1)-1];for(l=d+2;l--;c+=2){h=v*t[c+1];t[c]-=u+h;if(!l--)break;u=v*t[(c+=2)+1];t[c]-=u+h}u=g*t[(c=r)-1];for(l=d+1;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}if(0!==d){u=y*t[(c=r+1)-1];for(l=d;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}}}}]);return IrreversibleTransform}(_),k=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}(_)},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.LZWStream=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(381);o(134);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,y=l.dictionaryLengths,g=l.dictionaryPrevCodes,v=l.codeLength,m=l.prevCode,_=l.currentSequence,w=l.currentSequenceLength,k=0,S=this.bufferLength,C=this.ensureBuffer(this.bufferLength+c);for(t=0;t<512;t++){var x=this.readBits(v),O=w>0;if(x<256){_[0]=x;w=1}else{if(!(x>=258)){if(256===x){v=9;h=258;w=0;continue}this.eof=!0;delete this.lzwState;break}if(x<h)for(r=(w=y[x])-1,o=x;r>=0;r--){_[r]=d[o];o=g[o]}else _[w++]=_[0]}if(O){g[h]=m;y[h]=y[m]+1;d[h]=_[0];v=++h+u&h+u-1?v:0|Math.min(Math.log(h+u)/.6931471805599453+1,12)}m=x;if(c<(k+=w)){do{c+=512}while(c<k);C=this.ensureBuffer(this.bufferLength+c)}for(r=0;r<w;r++)C[S++]=_[r]}l.nextCode=h;l.codeLength=v;l.prevCode=m;l.currentSequenceLength=w;this.bufferLength=S}}}]);return LZWStream}(o(393).DecodeStream);r.LZWStream=c},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.PredictorStream=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(134);var c=o(393),l=o(350),u=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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.bind():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 y=h.colors=c.get("Colors")||1,g=h.bits=c.get("BPC","BitsPerComponent")||8,v=h.columns=c.get("Columns")||1;h.pixBytes=y*g+7>>3;h.rowBytes=v*y*g+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,y=0,g=0,v=0,m=r;if(1===c&&1===l)for(h=0;h<t;++h){var _=u[h]^d;_^=_>>1;_^=_>>2;d=(1&(_^=_>>4))<<7;o[m++]=_}else if(8===c){for(h=0;h<l;++h)o[m++]=u[h];for(;h<t;++h){o[m]=o[m-l]+u[h];m++}}else if(16===c){var w=2*l;for(h=0;h<w;++h)o[m++]=u[h];for(;h<t;h+=2){var k=((255&u[h])<<8)+(255&u[h+1])+((255&o[m-w])<<8)+(255&o[m-w+1]);o[m++]=k>>8&255;o[m++]=255&k}}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(g<c){d=d<<8|255&u[x++];g+=8}S[E]=S[E]+(d>>g-c)&C;g-=c;y=y<<c|S[E];if((v+=c)>=8){o[O++]=y>>v-8&255;v-=8}}v>0&&(o[O++]=(y<<8-v)+(d&(1<<8-v)-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 y,g,v,m=l;switch(o){case 0:for(y=0;y<t;++y)h[m++]=c[y];break;case 1:for(y=0;y<r;++y)h[m++]=c[y];for(;y<t;++y){h[m]=h[m-r]+c[y]&255;m++}break;case 2:for(y=0;y<t;++y)h[m++]=d[y]+c[y]&255;break;case 3:for(y=0;y<r;++y)h[m++]=(d[y]>>1)+c[y];for(;y<t;++y){h[m]=(d[y]+h[m-r]>>1)+c[y]&255;m++}break;case 4:for(y=0;y<r;++y){g=d[y];v=c[y];h[m++]=g+v}for(;y<t;++y){g=d[y];var _=d[y-r],w=h[m-r],k=w+g-_,S=k-w;S<0&&(S=-S);var C=k-g;C<0&&(C=-C);var x=k-_;x<0&&(x=-x);v=c[y];h[m++]=S<=C&&S<=x?w+v:C<=x?g+v:_+v}break;default:throw new u.FormatError("Unsupported predictor: ".concat(o))}this.bufferLength+=t}}}]);return PredictorStream}(c.DecodeStream);r.PredictorStream=h},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.RunLengthStream=void 0;o(134);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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(393).DecodeStream);r.RunLengthStream=c},(t,r,o)=>{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)}o(293);o(114);o(56);o(104);o(113);o(183);o(2);o(54);o(105);Object.defineProperty(r,"__esModule",{value:!0});r.Font=r.ErrorFont=void 0;o(302);o(137);o(335);o(143);o(175);o(177);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(345);o(290);o(357);o(363);o(364);o(296);o(123);o(337);o(339);o(372);o(313);o(129);o(327);o(309);o(300);o(329);o(361);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(389);o(145);o(386);o(351);var c=o(304),l=o(413),u=o(417),h=o(419),d=o(418),y=o(416),g=o(420),v=o(421),m=o(422),_=o(423),w=o(424),k=o(425),S=o(388),C=o(426),x=o(343),O=o(358),T=o(427);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return 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}var E=[[57344,63743],[1048576,1114109]],R=1e3,M=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","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 v.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 L=function(){function Glyph(t,r,o,c,l,u,h,d,y){_classCallCheck(this,Glyph);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=y}_createClass(Glyph,[{key:"category",get:function get(){return(0,c.shadow)(this,"category",(0,h.getCharUnicodeCategory)(this.unicode),!0)}}]);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 y in o)-1!==(c=(0,h.getUnicodeForGlyph)(o[y],r))&&(l[+y]=c);return l}function isMacNameRecord(t){return 1===t.platform&&0===t.encoding&&0===t.language}function isWinNameRecord(t){return 3===t.platform&&1===t.encoding&&1033===t.language}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,l){var u=Object.create(null),h=new Map,d=[],y=new Set,g=0,v=E[g][0],m=E[g][1],_=function isInPrivateArea(t){return E[0][0]<=t&&t<=E[0][1]||E[1][0]<=t&&t<=E[1][1]};for(var w in t){var k=t[w|=0];if(r(k)){if(v>m){if(++g>=E.length){(0,c.warn)("Ran out of space in font private use area.");break}v=E[g][0];m=E[g][1]}var S=v++;0===k&&(k=o);var C=l.get(w);"string"==typeof C&&(C=C.codePointAt(0));if(C&&!_(C)&&!y.has(k)){h.set(C,k);y.add(k)}u[S]=k;d[w]=S}}return{toFontChar:d,charCodeToGlyphId:u,toUnicodeExtraMap:h,nextAvailableFontCharCode:v}}function createCmapTable(t,r,o){var l,u,h,d,y=function getRanges(t,r,o){var c=[];for(var l in t)t[l]>=o||c.push({fontCharCode:0|l,glyphId:t[l]});if(r){var u,h=_createForOfIteratorHelper(r);try{for(h.s();!(u=h.n()).done;){var d=_slicedToArray(u.value,2),y=d[0],g=d[1];g>=o||c.push({fontCharCode:y,glyphId:g})}}catch(t){h.e(t)}finally{h.f()}}0===c.length&&c.push({fontCharCode:0,glyphId:0});c.sort((function fontGetRangesSort(t,r){return t.fontCharCode-r.fontCharCode}));for(var v=[],m=c.length,_=0;_<m;){var w=c[_].fontCharCode,k=[c[_].glyphId];++_;for(var S=w;_<m&&S+1===c[_].fontCharCode;){k.push(c[_].glyphId);++_;if(65535==++S)break}v.push([w,S,k])}return v}(t,r,o),g=y.at(-1)[1]>65535?2:1,v="\0\0"+string16(g)+"\0\0"+(0,c.string32)(4+8*g);for(l=y.length-1;l>=0&&!(y[l][0]<=65535);--l);var m=l+1;y[l][0]<65535&&65535===y[l][1]&&(y[l][1]=65534);var _,w,k,S,x=y[l][1]<65535?1:0,O=m+x,T=C.OpenTypeFileBuilder.getSearchParams(O,2),E="",R="",M="",j="",L="",D=0;for(l=0,u=m;l<u;l++){w=(_=y[l])[0];k=_[1];E+=string16(w);R+=string16(k);var N=!0;for(h=1,d=(S=_[2]).length;h<d;++h)if(S[h]!==S[h-1]+1){N=!1;break}if(N){M+=string16(S[0]-w&65535);j+=string16(0)}else{var U=2*(O-l)+2*D;D+=k-w+1;M+=string16(0);j+=string16(U);for(h=0,d=S.length;h<d;++h)L+=string16(S[h])}}if(x>0){R+="ÿÿ";E+="ÿÿ";M+="\0";j+="\0\0"}var G="\0\0"+string16(2*O)+string16(T.range)+string16(T.entry)+string16(T.rangeShift)+R+"\0\0"+E+M+j+L,$="",H="";if(g>1){v+="\0\0\n"+(0,c.string32)(4+8*g+4+G.length);$="";for(l=0,u=y.length;l<u;l++){w=(_=y[l])[0];var X=(S=_[2])[0];for(h=1,d=S.length;h<d;++h)if(S[h]!==S[h-1]+1){k=_[0]+h-1;$+=(0,c.string32)(w)+(0,c.string32)(k)+(0,c.string32)(X);w=k+1;X=S[h]}$+=(0,c.string32)(w)+(0,c.string32)(_[1])+(0,c.string32)(X)}H="\0\f\0\0"+(0,c.string32)($.length+16)+"\0\0\0\0"+(0,c.string32)($.length/12)}return v+"\0"+string16(G.length+4)+G+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,y=0,g=null,v=0,m=-1;if(r){for(var _ in r){(g>(_|=0)||!g)&&(g=_);v<_&&(v=_);if((m=(0,h.getUnicodeRangeFor)(_,m))<32)l|=1<<m;else if(m<64)u|=1<<m-32;else if(m<96)d|=1<<m-64;else{if(!(m<123))throw new c.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");y|=1<<m-96}}v>65535&&(v=65535)}else{g=0;v=255}var w=t.bbox||[0,0,0,0],k=o.unitsPerEm||1/(t.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],S=t.ascentScaled?1:k/R,C=o.ascent||Math.round(S*(t.ascent||w[3])),x=o.descent||Math.round(S*(t.descent||w[1]));x>0&&t.descent>0&&w[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)(y)+"*21*"+string16(t.italicAngle?1:0)+string16(g||t.firstChar)+string16(v||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(g||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.replaceAll(/[^\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"],y=[];for(o=0,c=d.length;o<c;o++){var g=[];for(l=0,u=(h=r[1][o]||d[o]).length;l<u;l++)g.push(string16(h.charCodeAt(l)));y.push(g.join(""))}var v=[d,y],m=["\0","\0"],_=["\0\0","\0"],w=["\0\0","\t"],k=d.length*m.length,S="\0\0"+string16(k)+string16(12*k+6),C=0;for(o=0,c=m.length;o<c;o++){var x=v[o];for(l=0,u=x.length;l<u;l++){h=x[l];S+=m[o]+_[o]+w[o]+string16(l)+string16(h.length)+string16(C);C+=h.length}}return S+=d.join("")+y.join("")}var D=function(){function Font(t,r,o){var l;_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 h=!!(o.flags&u.FontFlags.Serif);if(!h&&!o.isSimulatedFlags){var d,y=t.replaceAll(/[,_]/g,"-").split("-")[0],v=(0,g.getSerifFonts)(),_=_createForOfIteratorHelper(y.split("+"));try{for(_.s();!(d=_.n()).done;){if(v[d.value]){h=!0;break}}}catch(t){_.e(t)}finally{_.f()}}this.isSerifFont=h;this.isSymbolicFont=!!(o.flags&u.FontFlags.Symbolic);this.isMonospace=!!(o.flags&u.FontFlags.FixedPitch);var w=o.type,k=o.subtype;this.type=w;this.subtype=k;this.systemFontInfo=o.systemFontInfo;var S=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);this.isInvalidPDFjsFont=!!S;this.isInvalidPDFjsFont?this.fallbackName=S[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif";if(null!==(l=this.systemFontInfo)&&void 0!==l&&l.guessFallback){this.systemFontInfo.guessFallback=!1;this.systemFontInfo.css+=",".concat(this.fallbackName)}this.differences=o.differences;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.composite=o.composite;this.cMap=o.cMap;this.capHeight=o.capHeight/R;this.ascent=o.ascent/R;this.descent=o.descent/R;this.lineHeight=this.ascent-this.descent;this.fontMatrix=o.fontMatrix;this.bbox=o.bbox;this.defaultEncoding=o.defaultEncoding;this.toUnicode=o.toUnicode;this.toFontChar=[];if("Type3"!==o.type){this.cidEncoding=o.cidEncoding||"";this.vertical=!!o.vertical;if(this.vertical){this.vmetrics=o.vmetrics;this.defaultVMetrics=o.defaultVMetrics}if(r&&!r.isEmpty){var C,x=_slicedToArray(getFontFileType(r,o),2);w=x[0];k=x[1];w===this.type&&k===this.subtype||(0,c.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(w,"/").concat(k,"."));try{switch(w){case"MMType1":(0,c.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var O="Type1C"===k||"CIDFontType0C"===k?new m.CFFFont(r,o):new T.Type1Font(t,r,o);adjustWidths(o);C=this.convert(t,O,o);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";C=this.checkAndRepair(t,r,o);if(this.isOpenType){adjustWidths(o);w="OpenType"}break;default:throw new c.FormatError("Font ".concat(w," is not supported"))}}catch(t){(0,c.warn)(t);this.fallbackToSystemFont(o);return}amendFallbackToUnicode(o);this.data=C;this.type=w;this.subtype=k;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 E=0;E<256;E++)this.toFontChar[E]=this.differences[E]||o.defaultEncoding[E]}_createClass(Font,[{key:"renderer",get:function get(){var t=_.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]?[].concat(M,j):M,l=Object.create(null),u=_createForOfIteratorHelper(c);try{for(u.s();!(o=u.n()).done;)void 0!==(r=this[t=o.value])&&(l[t]=r)}catch(t){u.e(t)}finally{u.f()}return l}},{key:"fallbackToSystemFont",value:function fallbackToSystemFont(t){var r=this;this.missingFile=!0;var o=this.name,c=this.type,l=(0,u.normalizeFontName)(o),m=(0,g.getStdFontMap)(),_=(0,g.getNonStdFontMap)(),k=!!m[l],S=!(!_[l]||!m[_[l]]);l=m[l]||_[l]||l;var C=(0,w.getFontBasicMetrics)()[l];if(C){isNaN(this.ascent)&&(this.ascent=C.ascent/R);isNaN(this.descent)&&(this.descent=C.descent/R);isNaN(this.capHeight)&&(this.capHeight=C.capHeight/R)}this.bold=/bold/gi.test(l);this.italic=/oblique|italic/gi.test(l);this.black=/Black/g.test(o);var x=/Narrow/g.test(o);this.remeasure=(!k||x)&&Object.keys(this.widths).length>0;if((k||S)&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var O=t.cidToGidMap,T=[];applyStandardFontGlyphMap(T,(0,g.getGlyphMapForStandardFonts)());/Arial-?Black/i.test(o)?applyStandardFontGlyphMap(T,(0,g.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(o)&&applyStandardFontGlyphMap(T,(0,g.getSupplementalGlyphMapForCalibri)());if(O){for(var E in T){var M=T[E];void 0!==O[M]&&(T[+E]=O[M])}O.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof v.IdentityToUnicodeMap&&this.toUnicode.forEach((function(t,r){var o=T[t];void 0===O[o]&&(T[+t]=r)}))}this.toUnicode instanceof v.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,r){T[+t]=r}));this.toFontChar=T;this.toUnicode=new v.ToUnicodeMap(T)}else if(/Symbol/i.test(l))this.toFontChar=buildToFontChar(y.SymbolSetEncoding,(0,d.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(l))this.toFontChar=buildToFontChar(y.ZapfDingbatsEncoding,(0,d.getDingbatsGlyphsUnicode)(),this.differences);else if(k){var j=buildToFontChar(this.defaultEncoding,(0,d.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==c||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof v.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,r){j[+t]=r}));this.toFontChar=j}else{var L=(0,d.getGlyphsUnicode)(),D=[];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)}D[+t]=o}));this.composite&&this.toUnicode instanceof v.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(o)&&applyStandardFontGlyphMap(D,(0,g.getGlyphMapForStandardFonts)());this.toFontChar=D}amendFallbackToUnicode(t);this.loadedName=l.split("-")[0]}},{key:"checkAndRepair",value:function checkAndRepair(t,r,o){var h,g,_=["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);_.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||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(r<0||r>=t.length||o>t.length||o-r<=12)return h;var d=t.subarray(r,o),y=signedInt16(d[2],d[3]),g=signedInt16(d[4],d[5]),v=signedInt16(d[6],d[7]),m=signedInt16(d[8],d[9]);if(y>v){writeSignedInt16(d,2,v);writeSignedInt16(d,6,y)}if(g>m){writeSignedInt16(d,4,m);writeSignedInt16(d,8,g)}var _=signedInt16(d[0],d[1]);if(_<0){if(_<-1)return h;c.set(d,l);h.length=d.length;return h}var w,k=10,S=0;for(w=0;w<_;w++){S=(d[k]<<8|d[k+1])+1;k+=2}var C=k,x=d[k]<<8|d[k+1];h.sizeOfInstructions=x;var O=k+=2+x,T=0;for(w=0;w<S;w++){var E=d[k++];192&E&&(d[k-1]=63&E);var R=2;2&E?R=1:16&E&&(R=0);var M=2;4&E?M=1:32&E&&(M=0);var j=R+M;T+=j;if(8&E){var L=d[k++];0===L&&(d[k-1]^=8);w+=L;T+=L*j}}if(0===T)return h;var D=k+T;if(D>d.length)return h;if(!u&&x>0){c.set(d.subarray(0,C),l);c.set([0,0],l+C);c.set(d.subarray(O,D),l+C+2);D-=x;d.length-D>3&&(D=D+3&-4);h.length=D;return h}if(d.length-D>3){D=D+3&-4;c.set(d.subarray(0,D),l);h.length=D;return h}c.set(d,l);h.length=d.length;return h}function readNameTable(t){var o=(r.start||0)+t.offset;r.pos=o;var c=[[],[]],l=[],u=t.length,h=o+u;if(0!==r.getUint16()||u<6)return[c,l];var d,y,g=r.getUint16(),v=r.getUint16();for(d=0;d<g&&r.pos+12<=h;d++){var m={platform:r.getUint16(),encoding:r.getUint16(),language:r.getUint16(),name:r.getUint16(),length:r.getUint16(),offset:r.getUint16()};(isMacNameRecord(m)||isWinNameRecord(m))&&l.push(m)}for(d=0,y=l.length;d<y;d++){var _=l[d];if(!(_.length<=0)){var w=o+v+_.offset;if(!(w+_.length>h)){r.pos=w;var k=_.name;if(_.encoding){for(var S="",C=0,x=_.length;C<x;C+=2)S+=String.fromCharCode(r.getUint16());c[1][k]=S}else c[0][k]=r.getString(_.length)}}}return[c,l]}var w,x,T,E,R=[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,y=t.data,g=0,v=0,m=0,_=[],w=[],k=[],S=r.tooComplexToFollowFunctions,C=!1,x=0,O=0,T=y.length;g<T;){var E=y[g++];if(64===E){l=y[g++];if(C||O)g+=l;else for(o=0;o<l;o++)_.push(y[g++])}else if(65===E){l=y[g++];if(C||O)g+=2*l;else for(o=0;o<l;o++){u=y[g++];_.push(u<<8|y[g++])}}else if(176==(248&E)){l=E-176+1;if(C||O)g+=l;else for(o=0;o<l;o++)_.push(y[g++])}else if(184==(248&E)){l=E-184+1;if(C||O)g+=2*l;else for(o=0;o<l;o++){u=y[g++];_.push(u<<8|y[g++])}}else if(43!==E||S)if(44!==E||S){if(45===E)if(C){C=!1;v=g}else{if(!(d=w.pop())){(0,c.warn)("TT: ENDF bad stack");r.hintsValid=!1;return}h=k.pop();y=d.data;g=d.i;r.functionsStackDeltas[h]=_.length-d.stackTop}else if(137===E){if(C||O){(0,c.warn)("TT: nested IDEFs not allowed");S=!0}C=!0;m=g}else if(88===E)++x;else if(27===E)O=x;else if(89===E){O===x&&(O=0);--x}else if(28===E&&!C&&!O){var M=_.at(-1);M>0&&(g+=M-1)}}else{if(C||O){(0,c.warn)("TT: nested FDEFs not allowed");S=!0}C=!0;m=g;h=_.pop();r.functionsDefined[h]={data:y,i:g}}else if(!C&&!O){h=_.at(-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=_.length+r.functionsStackDeltas[h];if(j<0){(0,c.warn)("TT: CALL invalid functions stack delta.");r.hintsValid=!1;return}_.length=j}else if(h in r.functionsDefined&&!k.includes(h)){w.push({data:y,i:g,stackTop:_.length-1});k.push(h);if(!(d=r.functionsDefined[h])){(0,c.warn)("TT: CALL non-existent function");r.hintsValid=!1;return}y=d.data;g=d.i}}}if(!C&&!O){var L=0;E<=142?L=R[E]:E>=192&&E<=223?L=-1:E>=224&&(L=-2);if(E>=113&&E<=117){l=_.pop();isNaN(l)||(L=2*-l)}for(;L<0&&_.length>0;){_.pop();L++}for(;L>0;){_.push(NaN);L--}}}r.tooComplexToFollowFunctions=S;var D=[y];g>y.length&&D.push(new Uint8Array(g-y.length));if(m>v){(0,c.warn)("TT: complementing a missing function tail");D.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,D)}if(isTrueTypeCollectionFile(r=new O.Stream(new Uint8Array(r.getBytes())))){var M=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 y={ttcTag:r,majorVersion:o,minorVersion:l,numFonts:u,offsetTable:h};switch(o){case 1:return y;case 2:y.dsigTag=t.getInt32()>>>0;y.dsigLength=t.getInt32()>>>0;y.dsigOffset=t.getInt32()>>>0;return y}throw new c.FormatError("Invalid TrueType Collection majorVersion: ".concat(o,"."))}(t),u=l.numFonts,h=l.offsetTable,d=r.split("+"),y=0;y<u;y++){t.pos=(t.start||0)+h[y];var g=readOpenTypeHeader(t),v=readTables(t,g.numTables);if(!v.name)throw new c.FormatError('TrueType Collection font must contain a "name" table.');for(var m=_slicedToArray(readNameTable(v.name),1)[0],_=0,w=m.length;_<w;_++)for(var k=0,S=m[_].length;k<S;k++){var C,x=null===(C=m[_][k])||void 0===C?void 0:C.replaceAll(/\s/g,"");if(x){if(x===r)return{header:g,tables:v};if(!(d.length<2)){var O,T=_createForOfIteratorHelper(d);try{for(T.s();!(O=T.n()).done;){var E=O.value;x===E&&(o={name:E,header:g,tables:v})}}catch(t){T.e(t)}finally{T.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);w=M.header;x=M.tables}else{w=readOpenTypeHeader(r);x=readTables(r,w.numTables)}var j=!x["CFF "];if(j){if(!x.loca)throw new c.FormatError('Required "loca" table is not found');if(!x.glyf){(0,c.warn)('Required "glyf" table is not found -- trying to recover.');x.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{var L,D=o.composite&&((null===(L=o.cidToGidMap)||void 0===L?void 0:L.length)>0||!(o.cMap instanceof S.IdentityCMap));if("OTTO"===w.version&&!D||!x.head||!x.hhea||!x.maxp||!x.post){E=new O.Stream(x["CFF "].data);T=new m.CFFFont(E,o);adjustWidths(o);return this.convert(t,T,o)}delete x.glyf;delete x.loca;delete x.fpgm;delete x.prep;delete x["cvt "];this.isOpenType=!0}if(!x.maxp)throw new c.FormatError('Required "maxp" table is not found');r.pos=(r.start||0)+x.maxp.offset;var N=r.getInt32(),U=r.getUint16();if((null===(h=o.scaleFactors)||void 0===h?void 0:h.length)===U&&j){var G=o.scaleFactors,$=int16(x.head.data[50],x.head.data[51]),H=new k.GlyfTable({glyfTable:x.glyf.data,isGlyphLocationsLong:$,locaTable:x.loca.data,numGlyphs:U});H.scale(G);var X=H.write(),q=X.glyf,z=X.loca,W=X.isLocationLong;x.glyf.data=q;x.loca.data=z;if(W!==!!$){x.head.data[50]=0;x.head.data[51]=W?1:0}for(var V=x.hmtx.data,K=0;K<U;K++){var Y=4*K,J=Math.round(G[K]*int16(V[Y],V[Y+1]));V[Y]=J>>8&255;V[Y+1]=255&J;writeSignedInt16(V,Y+2,Math.round(G[K]*signedInt16(V[Y+2],V[Y+3])))}}var Z=U+1,Q=!0;if(Z>65535){Q=!1;Z=U;(0,c.warn)("Not enough space in glyfs to duplicate first glyph.")}var ee=0,te=0;if(N>=65536&&x.maxp.length>=22){r.pos+=8;if(r.getUint16()>2){x.maxp.data[14]=0;x.maxp.data[15]=2}r.pos+=4;ee=r.getUint16();r.pos+=4;te=r.getUint16()}x.maxp.data[4]=Z>>8;x.maxp.data[5]=255&Z;var re=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}(x.fpgm,x.prep,x["cvt "],ee);if(!re){delete x.fpgm;delete x.prep;delete x["cvt "]}!function sanitizeMetrics(t,r,o,l,u,h){if(r){t.pos=(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 y=t.getUint16();if(0!==d){if(!(2&int16(l.data[44],l.data[45]))){r.data[22]=0;r.data[23]=0}}if(y>u){(0,c.info)("The numOfMetrics (".concat(y,") should not be ")+"greater than the numGlyphs (".concat(u,")."));y=u;r.data[34]=(65280&y)>>8;r.data[35]=255&y}var g=u-y-(o.length-4*y>>1);if(g>0){var v=new Uint8Array(o.length+2*g);v.set(o.data);if(h){v[o.length]=o.data[2];v[o.length+1]=o.data[3]}o.data=v}}else o&&(o.data=null)}(r,x.hhea,x.hmtx,x.head,Z,Q);if(!x.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}}}(x.head,U,j?x.loca.length:0);var ne=Object.create(null);if(j){var ae=int16(x.head.data[50],x.head.data[51]),ie=function sanitizeGlyphLocations(t,r,o,c,l,u,h){var d,y,g;if(c){d=4;y=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};g=function fontItemEncodeLong(t,r,o){t[r]=o>>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}}else{d=2;y=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1};g=function fontItemEncode(t,r,o){t[r]=o>>9&255;t[r+1]=o>>1&255}}var v=u?o+1:o,m=d*(1+v),_=new Uint8Array(m);_.set(t.data.subarray(0,m));t.data=_;var w,k,S=r.data,C=S.length,x=new Uint8Array(C),O=[];for(w=0,k=0;w<o+1;w++,k+=d){var T=y(_,k);T>C&&(T=C);O.push({index:w,offset:T,endOffset:0})}O.sort((function(t,r){return t.offset-r.offset}));for(w=0;w<o;w++)O[w].endOffset=O[w+1].offset;O.sort((function(t,r){return t.index-r.index}));for(w=0;w<o;w++){var E=O[w],R=E.offset,M=E.endOffset;if(0!==R||0!==M)break;var j=O[w+1].offset;if(0!==j){O[w].endOffset=j;break}}var L=Object.create(null),D=0;g(_,0,D);for(w=0,k=d;w<o;w++,k+=d){var N=sanitizeGlyph(S,O[w].offset,O[w].endOffset,x,D,l),U=N.length;0===U&&(L[w]=!0);N.sizeOfInstructions>h&&(h=N.sizeOfInstructions);g(_,k,D+=U)}if(0===D){var G=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(w=0,k=d;w<v;w++,k+=d)g(_,k,G.length);r.data=G}else if(u){var $=y(_,d);if(x.length>$+D)r.data=x.subarray(0,$+D);else{r.data=new Uint8Array($+D);r.data.set(x.subarray(0,D))}r.data.set(x.subarray(0,$),D);g(t.data,_.length-d,D+$)}else r.data=x.subarray(0,D);return{missingGlyphs:L,maxSizeOfInstructions:h}}(x.loca,x.glyf,U,ae,re,Q,te);ne=ie.missingGlyphs;if(N>=65536&&x.maxp.length>=22){x.maxp.data[26]=ie.maxSizeOfInstructions>>8;x.maxp.data[27]=255&ie.maxSizeOfInstructions}}if(!x.hhea)throw new c.FormatError('Required "hhea" table is not found');if(0===x.hhea.data[10]&&0===x.hhea.data[11]){x.hhea.data[10]=255;x.hhea.data[11]=255}var oe={unitsPerEm:int16(x.head.data[18],x.head.data[19]),yMax:signedInt16(x.head.data[42],x.head.data[43]),yMin:signedInt16(x.head.data[38],x.head.data[39]),ascent:signedInt16(x.hhea.data[4],x.hhea.data[5]),descent:signedInt16(x.hhea.data[6],x.hhea.data[7]),lineGap:signedInt16(x.hhea.data[8],x.hhea.data[9])};this.ascent=oe.ascent/oe.unitsPerEm;this.descent=oe.descent/oe.unitsPerEm;this.lineGap=oe.lineGap/oe.unitsPerEm;if(null!==(g=this.cssFontInfo)&&void 0!==g&&g.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else this.lineHeight=this.ascent-this.descent+this.lineGap;x.post&&function readPostScriptTable(t,o,l){var h=(r.start||0)+t.offset;r.pos=h;var d,y=h+t.length,g=r.getInt32();r.skip(28);var v,m=!0;switch(g){case 65536:d=u.MacStandardGlyphOrdering;break;case 131072:var _=r.getUint16();if(_!==l){m=!1;break}var w=[];for(v=0;v<_;++v){var k=r.getUint16();if(k>=32768){m=!1;break}w.push(k)}if(!m)break;for(var S=[],C=[];r.pos<y;){var x=r.getByte();C.length=x;for(v=0;v<x;++v)C[v]=String.fromCharCode(r.getByte());S.push(C.join(""))}d=[];for(v=0;v<_;++v){var O=w[v];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 "+g);m=!1;o.defaultEncoding&&(d=o.defaultEncoding)}o.glyphNames=d;return m}(x.post,o,U);x.post={tag:"post",data:createPostTable(o)};var se=[];function hasGlyph(t){return!ne[t]}if(o.composite){var ce=o.cidToGidMap||[],le=0===ce.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;le?o=r:void 0!==ce[r]&&(o=ce[r]);o>=0&&o<U&&hasGlyph(o)&&(se[t]=o)}))}else{var ue=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||0)+t.offset;r.pos=h;r.skip(2);for(var d,y=r.getUint16(),g=!1,v=0;v<y;v++){var m,_,w=r.getUint16(),k=r.getUint16(),S=r.getInt32()>>>0,C=!1;if((null===(m=d)||void 0===m?void 0:m.platformId)!==w||(null===(_=d)||void 0===_?void 0:_.encodingId)!==k){if(0!==w||0!==k&&1!==k&&3!==k)if(1===w&&0===k)C=!0;else if(3!==w||1!==k||!l&&d){if(o&&3===w&&0===k){C=!0;var x=!0;if(v<y-1){var O=r.peekBytes(2);int16(O[0],O[1])<w&&(x=!1)}x&&(g=!0)}}else{C=!0;o||(g=!0)}else C=!0;C&&(d={platformId:w,encodingId:k,offset:S});if(g)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 T,E,R=r.getUint16(),M=!1,j=[];if(0===R){r.skip(4);for(T=0;T<256;T++){var L=r.getByte();L&&j.push({charCode:T,glyphId:L})}M=!0}else if(2===R){r.skip(4);for(var D=[],N=0,U=0;U<256;U++){var G=r.getUint16()>>3;D.push(G);N=Math.max(G,N)}for(var $=[],H=0;H<=N;H++)$.push({firstCode:r.getUint16(),entryCount:r.getUint16(),idDelta:signedInt16(r.getByte(),r.getByte()),idRangePos:r.pos+r.getUint16()});for(var X=0;X<256;X++)if(0===D[X]){r.pos=$[0].idRangePos+2*X;E=r.getUint16();j.push({charCode:X,glyphId:E})}else{var q=$[D[X]];for(T=0;T<q.entryCount;T++){var z=(X<<8)+T+q.firstCode;r.pos=q.idRangePos+2*T;0!==(E=r.getUint16())&&(E=(E+q.idDelta)%65536);j.push({charCode:z,glyphId:E})}}}else if(4===R){r.skip(4);var W=r.getUint16()>>1;r.skip(6);var V,K=[];for(V=0;V<W;V++)K.push({end:r.getUint16()});r.skip(2);for(V=0;V<W;V++)K[V].start=r.getUint16();for(V=0;V<W;V++)K[V].delta=r.getUint16();var Y,J=0;for(V=0;V<W;V++){u=K[V];var Z=r.getUint16();if(Z){Y=(Z>>1)-(W-V);u.offsetIndex=Y;J=Math.max(J,Y+u.end-u.start+1)}else u.offsetIndex=-1}var Q=[];for(T=0;T<J;T++)Q.push(r.getUint16());for(V=0;V<W;V++){h=(u=K[V]).start;var ee=u.end,te=u.delta;Y=u.offsetIndex;for(T=h;T<=ee;T++)if(65535!==T){E=(E=Y<0?T:Q[Y+T-h])+te&65535;j.push({charCode:T,glyphId:E})}}}else if(6===R){r.skip(4);var re=r.getUint16(),ne=r.getUint16();for(T=0;T<ne;T++){E=r.getUint16();var ae=re+T;j.push({charCode:ae,glyphId:E})}}else{if(12!==R){(0,c.warn)("cmap table has unsupported format: "+R);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}r.skip(10);var ie=r.getInt32()>>>0;for(T=0;T<ie;T++)for(var oe=r.getInt32()>>>0,se=r.getInt32()>>>0,ce=r.getInt32()>>>0,le=oe;le<=se;le++)j.push({charCode:le,glyphId:ce++})}j.sort((function(t,r){return t.charCode-r.charCode}));for(var ue=1;ue<j.length;ue++)if(j[ue-1].charCode===j[ue].charCode){j.splice(ue,1);ue--}return{platformId:d.platformId,encodingId:d.encodingId,mappings:j,hasShortCmap:M}}(x.cmap,r,this.isSymbolicFont,o.hasEncoding),fe=ue.platformId,he=ue.encodingId,pe=ue.mappings,de=[],ye=!1;!o.hasEncoding||"MacRomanEncoding"!==o.baseEncodingName&&"WinAnsiEncoding"!==o.baseEncodingName||(de=(0,y.getEncoding)(o.baseEncodingName));if(o.hasEncoding&&!this.isSymbolicFont&&(3===fe&&1===he||1===fe&&0===he))for(var ge=(0,d.getGlyphsUnicode)(),ve=0;ve<256;ve++){var me=void 0;if(me=void 0!==this.differences[ve]?this.differences[ve]:de.length&&""!==de[ve]?de[ve]:y.StandardEncoding[ve]){var be=(0,u.recoverGlyphName)(me,ge),_e=void 0;3===fe&&1===he?_e=ge[be]:1===fe&&0===he&&(_e=y.MacRomanEncoding.indexOf(be));if(void 0===_e){if(!o.glyphNames&&o.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof v.IdentityToUnicodeMap)){var we=this.toUnicode.get(ve);we&&(_e=we.codePointAt(0))}if(void 0===_e)continue}var ke,Se=_createForOfIteratorHelper(pe);try{for(Se.s();!(ke=Se.n()).done;){var Ce=ke.value;if(Ce.charCode===_e){se[ve]=Ce.glyphId;break}}}catch(t){Se.e(t)}finally{Se.f()}}}else if(0===fe){var xe,Ae=_createForOfIteratorHelper(pe);try{for(Ae.s();!(xe=Ae.n()).done;){var Oe=xe.value;se[Oe.charCode]=Oe.glyphId}}catch(t){Ae.e(t)}finally{Ae.f()}ye=!0}else{var Pe,Te=_createForOfIteratorHelper(pe);try{for(Te.s();!(Pe=Te.n()).done;){var Ie=Pe.value,Fe=Ie.charCode;3===fe&&Fe>=61440&&Fe<=61695&&(Fe&=255);se[Fe]=Ie.glyphId}}catch(t){Te.e(t)}finally{Te.f()}}if(o.glyphNames&&(de.length||this.differences.length))for(var Ee=0;Ee<256;++Ee)if(ye||void 0===se[Ee]){var Re=this.differences[Ee]||de[Ee];if(Re){var Me=o.glyphNames.indexOf(Re);Me>0&&hasGlyph(Me)&&(se[Ee]=Me)}}}0===se.length&&(se[0]=0);var je=Z-1;Q||(je=0);if(!o.cssFontInfo){var Le=adjustMapping(se,hasGlyph,je,this.toUnicode);this.toFontChar=Le.toFontChar;x.cmap={tag:"cmap",data:createCmapTable(Le.charCodeToGlyphId,Le.toUnicodeExtraMap,Z)};x["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}(x["OS/2"],r)||(x["OS/2"]={tag:"OS/2",data:createOS2Table(o,Le.charCodeToGlyphId,oe)})}if(!j)try{E=new O.Stream(x["CFF "].data);(T=new l.CFFParser(E,o,u.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();var De=new l.CFFCompiler(T);x["CFF "].data=De.compile()}catch(t){(0,c.warn)("Failed to compile font "+o.loadedName)}if(x.name){var Ne=_slicedToArray(readNameTable(x.name),2),Be=Ne[0],Ue=Ne[1];x.name.data=createNameTable(t,Be);this.psName=Be[0][6]||null;o.composite||function adjustTrueTypeToUnicode(t,r,o){if(!t.isInternalFont&&!t.hasIncludedToUnicodeMap&&!t.hasEncoding&&!(t.toUnicode instanceof v.IdentityToUnicodeMap)&&r&&0!==o.length&&t.defaultEncoding!==y.WinAnsiEncoding){var c,l=_createForOfIteratorHelper(o);try{for(l.s();!(c=l.n()).done;)if(!isWinNameRecord(c.value))return}catch(t){l.e(t)}finally{l.f()}var u=y.WinAnsiEncoding,h=[],g=(0,d.getGlyphsUnicode)();for(var m in u){var _=u[m];if(""!==_){var w=g[_];void 0!==w&&(h[m]=String.fromCharCode(w))}}h.length>0&&t.toUnicode.amend(h)}}(o,this.isSymbolicFont,Ue)}else x.name={tag:"name",data:createNameTable(this.name)};var Ge=new C.OpenTypeFileBuilder(w.version);for(var $e in x)Ge.addTable($e,x[$e].data);return Ge.toArray()}},{key:"convert",value:function convert(t,r,o){o.fixedPitch=!1;o.builtInEncoding&&function adjustType1ToUnicode(t,r){if(!t.isInternalFont&&!(t.hasIncludedToUnicodeMap||r===t.defaultEncoding||t.toUnicode instanceof v.IdentityToUnicodeMap)){var o=[],c=(0,d.getGlyphsUnicode)();for(var l in r)if(!t.hasEncoding||!t.baseEncodingName&&void 0===t.differences[l]){var u=r[l],y=(0,h.getUnicodeForGlyph)(u,c);-1!==y&&(o[l]=String.fromCharCode(y))}o.length>0&&t.toUnicode.amend(o)}}(o,o.builtInEncoding);var l=1;r instanceof m.CFFFont&&(l=r.numGlyphs-1);var g=r.getGlyphMapping(o),_=null,w=g,k=null;if(!o.cssFontInfo){_=adjustMapping(g,r.hasGlyphId.bind(r),l,this.toUnicode);this.toFontChar=_.toFontChar;w=_.charCodeToGlyphId;k=_.toUnicodeExtraMap}var S=r.numGlyphs;function getCharCodes(t,r){var o=null;for(var c in t)r===t[c]&&(o||(o=[])).push(0|c);return o}function createCharCode(t,r){for(var o in t)if(r===t[o])return 0|o;_.charCodeToGlyphId[_.nextAvailableFontCharCode]=r;return _.nextAvailableFontCharCode++}var x=r.seacs;if(_&&u.SEAC_ANALYSIS_ENABLED&&null!=x&&x.length){var O=o.fontMatrix||c.FONT_IDENTITY_MATRIX,T=r.getCharset(),E=Object.create(null);for(var R in x){var M=x[R|=0],j=y.StandardEncoding[M[2]],L=y.StandardEncoding[M[3]],D=T.indexOf(j),N=T.indexOf(L);if(!(D<0||N<0)){var U={x:M[0]*O[0]+M[1]*O[2]+O[4],y:M[0]*O[1]+M[1]*O[3]+O[5]},G=getCharCodes(g,R);if(G){var $,H=_createForOfIteratorHelper(G);try{for(H.s();!($=H.n()).done;){var X=$.value,q=_.charCodeToGlyphId,z=createCharCode(q,D),W=createCharCode(q,N);E[X]={baseFontCharCode:z,accentFontCharCode:W,accentOffset:U}}}catch(t){H.e(t)}finally{H.f()}}}}o.seacMap=E}var V=1/(o.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],K=new C.OpenTypeFileBuilder("OTTO");K.addTable("CFF ",r.data);K.addTable("OS/2",createOS2Table(o,w));K.addTable("cmap",createCmapTable(w,k,S));K.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(V)+"\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");K.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(S));K.addTable("hmtx",function fontFieldsHmtx(){for(var t=r.charstrings,o=r.cff?r.cff.widths:null,c="\0\0\0\0",l=1,u=S;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}());K.addTable("maxp","\0\0P\0"+string16(S));K.addTable("name",createNameTable(t));K.addTable("post",createPostTable(o));return K.toArray()}},{key:"spaceWidth",get:function get(){for(var t,r=0,o=["space","minus","one","i","I"];r<o.length;r++){var l=o[r];if(l in this.widths){t=this.widths[l];break}var u=(0,d.getGlyphsUnicode)()[l],h=0;this.composite&&this.cMap.contains(u)&&"string"==typeof(h=this.cMap.lookup(u))&&(h=convertCidString(u,h));!h&&this.toUnicode&&(h=this.toUnicode.charCodeOf(u));h<=0&&(h=u);if(t=this.widths[h])break}return(0,c.shadow)(this,"spaceWidth",t||this.defaultWidth)}},{key:"_charToGlyph",value:function _charToGlyph(t){var r,o,l,u,d,y,g,v=arguments.length>1&&void 0!==arguments[1]&&arguments[1],m=this._glyphCache[t];if((null===(r=m)||void 0===r?void 0:r.isSpace)===v)return m;var _=t;null!==(o=this.cMap)&&void 0!==o&&o.contains(t)&&"string"==typeof(_=this.cMap.lookup(t))&&(_=convertCidString(t,_));"number"!=typeof(y=this.widths[_])&&(y=this.defaultWidth);var w=null===(l=this.vmetrics)||void 0===l?void 0:l[_],k=this.toUnicode.get(t)||t;"number"==typeof k&&(k=String.fromCharCode(k));var S=void 0!==this.toFontChar[t];d=this.toFontChar[t]||t;if(this.missingFile){var C=this.differences[t]||this.defaultEncoding[t];".notdef"!==C&&""!==C||"Type1"!==this.type||(d=32);d=(0,h.mapSpecialUnicodeValues)(d)}this.isType3Font&&(g=d);var x=null;if(null!==(u=this.seacMap)&&void 0!==u&&u[t]){S=!0;var O=this.seacMap[t];d=O.baseFontCharCode;x={fontChar:String.fromCodePoint(O.accentFontCharCode),offset:O.accentOffset}}var T="";"number"==typeof d&&(d<=1114111?T=String.fromCodePoint(d):(0,c.warn)("charToGlyph - invalid fontCharCode: ".concat(d)));m=new L(t,T,k,x,y,w,g,v,S);return this._glyphCache[t]=m}},{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 y=0,g=t.length;y<g;++y){var v=t.charCodeAt(y),m=this._charToGlyph(v,32===v);r.push(m)}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 v.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 y=t.codePointAt(h);y>55295&&(y<57344||y>65533)&&h++;if(this.toUnicode){var g=u(y);if(-1!==g){if(l()){o.push(c.join(""));c.length=0}for(var m=(this.cMap?this.cMap.getCharCodeLength(g):1)-1;m>=0;m--)c.push(String.fromCharCode(g>>8*m&255));continue}}if(!l()){o.push(c.join(""));c.length=0}c.push(String.fromCodePoint(y))}o.push(c.join(""));return o}}]);return Font}();r.Font=D;var N=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=N},(t,r,o)=>{o(129);o(113);o(134);o(305);o(306);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;o(290);o(296);o(414);o(387);o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(389);o(2);o(54);o(56);o(104);o(183);o(105);o(177);o(302);o(293);o(123);o(114);o(175);var c=o(304),l=o(415),u=o(416);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 _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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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,y=[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}],g=[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 stackFn(t,r){t[r-2]=t[r-2]+t[r-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function stackFn(t,r){t[r-2]=t[r-2]-t[r-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function stackFn(t,r){t[r-2]=t[r-2]/t[r-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function stackFn(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 stackFn(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}],v=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)),y=this.createDict(x,d,r.strings);r.header=o.obj;r.names=this.parseNameIndex(c.obj);r.strings=this.parseStringIndex(u.obj);r.topDict=y;r.globalSubrIndex=h.obj;this.parsePrivateDict(r.topDict);r.isCIDFont=y.hasName("ROS");var g=y.getByName("CharStrings"),v=this.parseIndex(g).obj,_=y.getByName("FontMatrix");_&&(t.fontMatrix=_);var w,k,S=y.getByName("FontBBox");if(S){t.ascent=Math.max(S[3],S[1]);t.descent=Math.min(S[1],S[3]);t.ascentScaled=!0}if(r.isCIDFont){for(var C=this.parseIndex(y.getByName("FDArray")).obj,O=0,T=C.count;O<T;++O){var E=C.get(O),R=this.createDict(x,this.parseDict(E),r.strings);this.parsePrivateDict(R);r.fdArray.push(R)}k=null;w=this.parseCharsets(y.getByName("charset"),v.count,r.strings,!0);r.fdSelect=this.parseFDSelect(y.getByName("FDSelect"),v.count)}else{w=this.parseCharsets(y.getByName("charset"),v.count,r.strings,!1);k=this.parseEncoding(y.getByName("Encoding"),t,r.strings,w.charset)}r.charset=w;r.encoding=k;var M=this.parseCharStrings({charStrings:v,localSubrIndex:y.privateDict.subrsIndex,globalSubrIndex:h.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:y.privateDict});r.charStrings=M.charStrings;r.seacs=M.seacs;r.widths=M.widths;return r}},{key:"parseHeader",value:function parseHeader(){for(var t=this.bytes,r=t.length,o=0;o<r&&1!==t[o];)++o;if(o>=r)throw new 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 _(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,y=15&h;if(d===c)break;o+=l[d];if(y===c)break;o+=l[y]}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 y=l[t++],g=t+(u+1)*y-1;for(r=0,o=u+1;r<o;++r){for(var v=0,m=0;m<y;++m){v<<=8;v+=l[t++]}h.push(g+v)}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 w,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){var c,l=new t(o),u=_createForOfIteratorHelper(r);try{for(u.s();!(c=u.n()).done;){var h=_slicedToArray(c.value,2),d=h[0],y=h[1];l.setByKey(d,y)}}catch(t){u.e(t)}finally{u.f()}return l}},{key:"parseCharString",value:function parseCharString(t,r,o,l){if(!r||t.callDepth>10)return!1;for(var u=t.stackSize,h=t.stack,d=r.length,v=0;v<d;){var m=r[v++],_=null;if(12===m){var w=r[v++];if(0===w){r[v-2]=139;r[v-1]=22;u=0}else _=g[w]}else if(28===m){h[u]=(r[v]<<24|r[v+1]<<16)>>16;v+=2;u++}else if(14===m){if(u>=4){u-=4;if(this.seacAnalysisEnabled){t.seac=h.slice(u,u+4);return!1}}_=y[m]}else if(m>=32&&m<=246){h[u]=m-139;u++}else if(m>=247&&m<=254){h[u]=m<251?(m-247<<8)+r[v]+108:-(m-251<<8)-r[v]-108;v++;u++}else if(255===m){h[u]=(r[v]<<24|r[v+1]<<16|r[v+2]<<8|r[v+3])/65536;v+=4;u++}else if(19===m||20===m){t.hints+=u>>1;if(0===t.hints){r.copyWithin(v-1,v,-1);v-=1;d-=1;continue}v+=t.hints+7>>3;u%=2;_=y[m]}else{if(10===m||29===m){var k=10===m?o:l;if(!k){_=y[m];(0,c.warn)("Missing subrsIndex for "+_.id);return!1}var S=32768;k.count<1240?S=107:k.count<33900&&(S=1131);var C=h[--u]+S;if(C<0||C>=k.count||isNaN(C)){_=y[m];(0,c.warn)("Out of bounds subrIndex for "+_.id);return!1}t.stackSize=u;t.callDepth++;if(!this.parseCharString(t,k.get(C),o,l))return!1;t.callDepth--;u=t.stackSize;continue}if(11===m){t.stackSize=u;return!0}if(0===m&&v===r.length){r[v-1]=14;_=y[14]}else{if(9===m){r.copyWithin(v-1,v,-1);v-=1;d-=1;continue}_=y[m]}}if(_){if(_.stem){t.hints+=u>>1;if(3===m||23===m)t.hasVStems=!0;else if(t.hasVStems&&(1===m||18===m)){(0,c.warn)("CFF stem hints are in wrong order");r[v-1]=1===m?3:23}}if("min"in _&&!t.undefStack&&u<_.min){(0,c.warn)("Not enough parameters for "+_.id+"; actual: "+u+", expected: "+_.min);if(0===u){r[v-1]=14;return!0}return!1}if(t.firstStackClearing&&_.stackClearing){t.firstStackClearing=!1;(u-=_.min)>=2&&_.stem?u%=2:u>1&&(0,c.warn)("Found too many parameters for stack-clearing command");u>0&&(t.width=h[u-1])}if("stackDelta"in _){"stackFn"in _&&_.stackFn(h,u);u+=_.stackDelta}else if(_.stackClearing)u=0;else if(_.resetStack){u=0;t.undefStack=!1}else if(_.undefStack){u=0;t.undefStack=!0;t.firstStackClearing=!1}}}d<r.length&&r.fill(14,d);t.stackSize=u;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,y=[],g=[],v=r.count,m=0;m<v;m++){var _=r.get(m),w={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},k=!0,S=null,C=d;if(u&&h.length){var x=u.getFDIndex(m);if(-1===x){(0,c.warn)("Glyph index is not in fd select.");k=!1}if(x>=h.length){(0,c.warn)("Invalid fd index for glyph index.");k=!1}k&&(S=(C=h[x].privateDict).subrsIndex)}else o&&(S=o);k&&(k=this.parseCharString(w,_,S,l));if(null!==w.width){var O=C.getByName("nominalWidthX");g[m]=O+w.width}else{var T=C.getByName("defaultWidthX");g[m]=T}null!==w.seac&&(y[m]=w.seac);k||r.set(m,new Uint8Array([14]))}return{charStrings:r,seacs:y,widths:g}}},{key:"emptyPrivateDictionary",value:function emptyPrivateDictionary(t){var r=this.createDict(T,[],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(T,h,t.strings);t.privateDict=d;0===d.getByName("ExpansionFactor")&&d.setByName("ExpansionFactor",.06);if(d.getByName("Subrs")){var y=d.getByName("Subrs"),g=c+y;if(0===y||g>=this.bytes.length)this.emptyPrivateDictionary(t);else{var v=this.parseIndex(g);d.subrsIndex=v.obj}}}}else t.removeByName("Private")}else this.emptyPrivateDictionary(t)}},{key:"parseCharsets",value:function parseCharsets(t,r,o,u){if(0===t)return new R(!0,E.ISO_ADOBE,l.ISOAdobeCharset);if(1===t)return new R(!0,E.EXPERT,l.ExpertCharset);if(2===t)return new R(!0,E.EXPERT_SUBSET,l.ExpertSubsetCharset);var h,d,y,g=this.bytes,v=t,m=g[t++],_=[u?0:".notdef"];r-=1;switch(m){case 0:for(y=0;y<r;y++){h=g[t++]<<8|g[t++];_.push(u?h:o.get(h))}break;case 1:for(;_.length<=r;){h=g[t++]<<8|g[t++];d=g[t++];for(y=0;y<=d;y++)_.push(u?h++:o.get(h++))}break;case 2:for(;_.length<=r;){h=g[t++]<<8|g[t++];d=g[t++]<<8|g[t++];for(y=0;y<=d;y++)_.push(u?h++:o.get(h++))}break;default:throw new c.FormatError("Unknown charset format")}var w=t,k=g.subarray(v,w);return new R(!1,m,_,k)}},{key:"parseEncoding",value:function parseEncoding(t,r,o,l){var h,d,y,g=Object.create(null),v=this.bytes,m=!1,_=null;if(0===t||1===t){m=!0;h=t;var w=t?u.ExpertEncoding:u.StandardEncoding;for(d=0,y=l.length;d<y;d++){var k=w.indexOf(l[d]);-1!==k&&(g[k]=d)}}else{var S=t;switch(127&(h=v[t++])){case 0:var C=v[t++];for(d=1;d<=C;d++)g[v[t++]]=d;break;case 1:var x=v[t++],O=1;for(d=0;d<x;d++)for(var T=v[t++],E=v[t++],R=T;R<=T+E;R++)g[R]=O++;break;default:throw new c.FormatError("Unknown encoding format: ".concat(h," in CFF"))}var j=t;if(128&h){v[S]&=127;!function readSupplement(){var r=v[t++];for(d=0;d<r;d++){var c=v[t++],u=(v[t++]<<8)+(255&v[t++]);g[c]=l.indexOf(o.get(u))}}()}_=v.subarray(S,j)}return new M(m,h&=127,g,_)}},{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 y=l[t++]<<8|l[t++];for(o=0;o<y;++o){var g=l[t++]<<8|l[t++];if(0===o&&0!==g){(0,c.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");g=0}for(var v=l[t++],m=l[t]<<8|l[t+1],_=g;_<m;++_)h.push(v)}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 j(u,h)}}]);return CFFParser}();r.CFFParser=v;var m=function(){function CFF(){_classCallCheck(this,CFF);this.header=null;this.names=[];this.topDict=null;this.strings=new w;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 _=_createClass((function CFFHeader(t,r,o,c){_classCallCheck(this,CFFHeader);this.major=t;this.minor=r;this.hdrSize=o;this.offSize=c}));r.CFFHeader=_;var w=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=w;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 S=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;if(0===r.length)return!0;var o,l=_createForOfIteratorHelper(r);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(isNaN(u)){(0,c.warn)('Invalid CFFDict value: "'.concat(r,'" for key "').concat(t,'".'));return!0}}}catch(t){l.e(t)}finally{l.f()}var h=this.types[t];"num"!==h&&"sid"!==h&&"offset"!==h||(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){var r,o={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value,u=Array.isArray(l[0])?(l[0][0]<<8)+l[0][1]:l[0];o.keyToNameMap[u]=l[1];o.nameToKeyMap[l[1]]=u;o.types[u]=l[2];o.defaults[u]=l[3];o.opcodes[u]=Array.isArray(l[0])?l[0]:[l[0]];o.order.push(u)}}catch(t){c.e(t)}finally{c.f()}return o}}]);return CFFDict}(),C=[[[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]],x=function(t){_inherits(CFFTopDict,t);var r=_createSuper(CFFTopDict);function CFFTopDict(t){var o;_classCallCheck(this,CFFTopDict);(o=r.call(this,CFFTopDict.tables,t)).privateDict=null;return o}_createClass(CFFTopDict,null,[{key:"tables",get:function get(){return(0,c.shadow)(this,"tables",this.createTables(C))}}]);return CFFTopDict}(S);r.CFFTopDict=x;var O=[[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]],T=function(t){_inherits(CFFPrivateDict,t);var r=_createSuper(CFFPrivateDict);function CFFPrivateDict(t){var o;_classCallCheck(this,CFFPrivateDict);(o=r.call(this,CFFPrivateDict.tables,t)).subrsIndex=null;return o}_createClass(CFFPrivateDict,null,[{key:"tables",get:function get(){return(0,c.shadow)(this,"tables",this.createTables(O))}}]);return CFFPrivateDict}(S);r.CFFPrivateDict=T;var E={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},R=_createClass((function CFFCharset(t,r,o,c){_classCallCheck(this,CFFCharset);this.predefined=t;this.format=r;this.charset=o;this.raw=c}));r.CFFCharset=R;var M=_createClass((function CFFEncoding(t,r,o,c){_classCallCheck(this,CFFEncoding);this.predefined=t;this.format=r;this.encoding=o;this.raw=c})),j=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=j;var L=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 y=5*h+u,g=y+1,v=y+2,m=y+3,_=y+4;if(29!==l[y]||0!==l[g]||0!==l[v]||0!==l[m]||0!==l[_])throw new c.FormatError("writing to an offset that is not empty");var w=r[h];l[y]=29;l[g]=w>>24&255;l[v]=w>>16&255;l[m]=w>>8&255;l[_]=255&w}}}]);return CFFOffsetTracker}(),D=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 add(t){try{var r;(r=this.data).push.apply(r,_toConsumableArray(t))}catch(r){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");var h,d=_createForOfIteratorHelper(t.fdArray);try{for(d.s();!(h=d.n()).done;){var y=h.value,g=u.slice(0);y.hasName("FontMatrix")&&(g=c.Util.transform(g,y.getByName("FontMatrix")));y.setByName("FontMatrix",g)}}catch(t){d.e(t)}finally{d.f()}}var v=t.topDict.getByName("XUID");(null==v?void 0:v.length)>16&&t.topDict.removeByName("XUID");t.topDict.setByName("charset",0);var m=this.compileTopDicts([t.topDict],r.length,t.isCIDFont);r.add(m.output);var _=m.trackers[0],w=this.compileStringIndex(t.strings.strings);r.add(w);var k=this.compileIndex(t.globalSubrIndex);r.add(k);if(t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)_.setEntryLocation("Encoding",[t.encoding.format],r);else{var S=this.compileEncoding(t.encoding);_.setEntryLocation("Encoding",[r.length],r);r.add(S)}var C=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);_.setEntryLocation("charset",[r.length],r);r.add(C);var x=this.compileCharStrings(t.charStrings);_.setEntryLocation("CharStrings",[r.length],r);r.add(x);if(t.isCIDFont){_.setEntryLocation("FDSelect",[r.length],r);var O=this.compileFDSelect(t.fdSelect);r.add(O);m=this.compileTopDicts(t.fdArray,r.length,!0);_.setEntryLocation("FDArray",[r.length],r);r.add(m.output);var T=m.trackers;this.compilePrivateDicts(t.fdArray,T,r)}this.compilePrivateDicts([t.topDict],[_],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 y=[30];for(l=0,u=(h+=1&h.length?"f":"ff").length;l<u;l+=2)y.push(parseInt(h.substring(l,l+2),16));return y}},{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){var r,o=new k,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){for(var u=r.value,h=Math.min(u.length,127),d=new Array(h),y=0;y<h;y++){var g=u[y];(g<"!"||g>"~"||"["===g||"]"===g||"("===g||")"===g||"{"===g||"}"===g||"<"===g||">"===g||"/"===g||"%"===g)&&(g="_");d[y]=g}""===(d=d.join(""))&&(d="Bad_Font_Name");o.add((0,c.stringToBytes)(d))}}catch(t){l.e(t)}finally{l.f()}return this.compileIndex(o)}},{key:"compileTopDicts",value:function compileTopDicts(t,r,o){var c,l=[],u=new k,h=_createForOfIteratorHelper(t);try{for(h.s();!(c=h.n()).done;){var d=c.value;if(o){d.removeByName("CIDFontVersion");d.removeByName("CIDFontRevision");d.removeByName("CIDFontType");d.removeByName("CIDCount");d.removeByName("UIDBase")}var y=new L,g=this.compileDict(d,y);l.push(y);u.add(g);y.offset(r)}}catch(t){h.e(t)}finally{h.f()}return{trackers:l,output:u=this.compileIndex(u,l)}}},{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 y=new L,g=this.compileDict(d,y),v=o.length;y.offset(v);g.length||(v=0);r[l].setEntryLocation("Private",[g.length,v],o);o.add(g);if(d.subrsIndex&&d.hasName("Subrs")){var m=this.compileIndex(d.subrsIndex);y.setEntryLocation("Subrs",[g.length],o);o.add(m)}}}},{key:"compileDict",value:function compileDict(t,r){var o,l=[],u=_createForOfIteratorHelper(t.order);try{for(u.s();!(o=u.n()).done;){var h=o.value;if(h in t.values){var d=t.values[h],y=t.types[h];Array.isArray(y)||(y=[y]);Array.isArray(d)||(d=[d]);if(0!==d.length){for(var g=0,v=y.length;g<v;++g){var m=y[g],_=d[g];switch(m){case"num":case"sid":l.push.apply(l,_toConsumableArray(this.encodeNumber(_)));break;case"offset":var w=t.keyToNameMap[h];r.isTracking(w)||r.track(w,l.length);l.push(29,0,0,0,0);break;case"array":case"delta":l.push.apply(l,_toConsumableArray(this.encodeNumber(_)));for(var k=1,S=d.length;k<S;++k)l.push.apply(l,_toConsumableArray(this.encodeNumber(d[k])));break;default:throw new c.FormatError("Unknown data type of ".concat(m))}}l.push.apply(l,_toConsumableArray(t.opcodes[h]))}}}}catch(t){u.e(t)}finally{u.f()}return l}},{key:"compileStringIndex",value:function compileStringIndex(t){var r,o=new k,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var u=r.value;o.add((0,c.stringToBytes)(u))}}catch(t){l.e(t)}finally{l.f()}return this.compileIndex(o)}},{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,y=t.charset.length,g=!1,v=1;v<u.length;v+=2){var m=0;if(d<y){var _=t.charset[d++];if(-1===(m=o.getSID(_))){m=0;if(!g){g=!0;(0,c.warn)("Couldn't find ".concat(_," in CFF strings"))}}}u[v]=m>>8&255;u[v+1]=255&m}}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){return Array.from(t)}},{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];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 y=1;for(l=0;l<c+1;l++){1===u?h.push(255&y):2===u?h.push(y>>8&255,255&y):3===u?h.push(y>>16&255,y>>8&255,255&y):h.push(y>>>24&255,y>>16&255,y>>8&255,255&y);o[l]&&(y+=o[l].length)}for(l=0;l<c;l++){r[l]&&r[l].offset(h.length);h.push.apply(h,_toConsumableArray(o[l]))}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=D},(t,r,o)=>{var c=o(58),l=o(211),u=o(138);c({target:"Array",proto:!0},{copyWithin:l});u("copyWithin")},(t,r)=>{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)=>{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 y;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 y=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=y},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});r.SEAC_ANALYSIS_ENABLED=r.MacStandardGlyphOrdering=r.FontFlags=void 0;r.normalizeFontName=function normalizeFontName(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")};r.recoverGlyphName=recoverGlyphName;r.type1FontGlyphMapping=function type1FontGlyphMapping(t,r,o){var u,h,y,g=Object.create(null),v=!!(t.flags&d.Symbolic);if(t.isInternalFont){y=r;for(h=0;h<y.length;h++){u=o.indexOf(y[h]);g[h]=u>=0?u:0}}else if(t.baseEncodingName){y=(0,c.getEncoding)(t.baseEncodingName);for(h=0;h<y.length;h++){u=o.indexOf(y[h]);g[h]=u>=0?u:0}}else if(v)for(h in r)g[h]=r[h];else{y=c.StandardEncoding;for(h=0;h<y.length;h++){u=o.indexOf(y[h]);g[h]=u>=0?u:0}}var m,_=t.differences;if(_)for(h in _){var w=_[h];if(-1===(u=o.indexOf(w))){m||(m=(0,l.getGlyphsUnicode)());var k=recoverGlyphName(w,m);k!==w&&(u=o.indexOf(k))}g[h]=u>=0?u:0}return g};o(372);o(389);o(123);o(337);o(339);var c=o(416),l=o(418),u=o(419),h=o(304);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,u.getUnicodeForGlyph)(t,r);if(-1!==o)for(var c in r)if(r[c]===o)return c;(0,h.info)("Unable to recover a standard glyph name for: "+t);return t}},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});r.getGlyphsUnicode=r.getDingbatsGlyphsUnicode=void 0;o(363);o(364);var c=o(343),l=(0,c.getLookupTableFactory)((function(t){t.A=65;t.AE=198;t.AEacute=508;t.AEmacron=482;t.AEsmall=63462;t.Aacute=193;t.Aacutesmall=63457;t.Abreve=258;t.Abreveacute=7854;t.Abrevecyrillic=1232;t.Abrevedotbelow=7862;t.Abrevegrave=7856;t.Abrevehookabove=7858;t.Abrevetilde=7860;t.Acaron=461;t.Acircle=9398;t.Acircumflex=194;t.Acircumflexacute=7844;t.Acircumflexdotbelow=7852;t.Acircumflexgrave=7846;t.Acircumflexhookabove=7848;t.Acircumflexsmall=63458;t.Acircumflextilde=7850;t.Acute=63177;t.Acutesmall=63412;t.Acyrillic=1040;t.Adblgrave=512;t.Adieresis=196;t.Adieresiscyrillic=1234;t.Adieresismacron=478;t.Adieresissmall=63460;t.Adotbelow=7840;t.Adotmacron=480;t.Agrave=192;t.Agravesmall=63456;t.Ahookabove=7842;t.Aiecyrillic=1236;t.Ainvertedbreve=514;t.Alpha=913;t.Alphatonos=902;t.Amacron=256;t.Amonospace=65313;t.Aogonek=260;t.Aring=197;t.Aringacute=506;t.Aringbelow=7680;t.Aringsmall=63461;t.Asmall=63329;t.Atilde=195;t.Atildesmall=63459;t.Aybarmenian=1329;t.B=66;t.Bcircle=9399;t.Bdotaccent=7682;t.Bdotbelow=7684;t.Becyrillic=1041;t.Benarmenian=1330;t.Beta=914;t.Bhook=385;t.Blinebelow=7686;t.Bmonospace=65314;t.Brevesmall=63220;t.Bsmall=63330;t.Btopbar=386;t.C=67;t.Caarmenian=1342;t.Cacute=262;t.Caron=63178;t.Caronsmall=63221;t.Ccaron=268;t.Ccedilla=199;t.Ccedillaacute=7688;t.Ccedillasmall=63463;t.Ccircle=9400;t.Ccircumflex=264;t.Cdot=266;t.Cdotaccent=266;t.Cedillasmall=63416;t.Chaarmenian=1353;t.Cheabkhasiancyrillic=1212;t.Checyrillic=1063;t.Chedescenderabkhasiancyrillic=1214;t.Chedescendercyrillic=1206;t.Chedieresiscyrillic=1268;t.Cheharmenian=1347;t.Chekhakassiancyrillic=1227;t.Cheverticalstrokecyrillic=1208;t.Chi=935;t.Chook=391;t.Circumflexsmall=63222;t.Cmonospace=65315;t.Coarmenian=1361;t.Csmall=63331;t.D=68;t.DZ=497;t.DZcaron=452;t.Daarmenian=1332;t.Dafrican=393;t.Dcaron=270;t.Dcedilla=7696;t.Dcircle=9401;t.Dcircumflexbelow=7698;t.Dcroat=272;t.Ddotaccent=7690;t.Ddotbelow=7692;t.Decyrillic=1044;t.Deicoptic=1006;t.Delta=8710;t.Deltagreek=916;t.Dhook=394;t.Dieresis=63179;t.DieresisAcute=63180;t.DieresisGrave=63181;t.Dieresissmall=63400;t.Digammagreek=988;t.Djecyrillic=1026;t.Dlinebelow=7694;t.Dmonospace=65316;t.Dotaccentsmall=63223;t.Dslash=272;t.Dsmall=63332;t.Dtopbar=395;t.Dz=498;t.Dzcaron=453;t.Dzeabkhasiancyrillic=1248;t.Dzecyrillic=1029;t.Dzhecyrillic=1039;t.E=69;t.Eacute=201;t.Eacutesmall=63465;t.Ebreve=276;t.Ecaron=282;t.Ecedillabreve=7708;t.Echarmenian=1333;t.Ecircle=9402;t.Ecircumflex=202;t.Ecircumflexacute=7870;t.Ecircumflexbelow=7704;t.Ecircumflexdotbelow=7878;t.Ecircumflexgrave=7872;t.Ecircumflexhookabove=7874;t.Ecircumflexsmall=63466;t.Ecircumflextilde=7876;t.Ecyrillic=1028;t.Edblgrave=516;t.Edieresis=203;t.Edieresissmall=63467;t.Edot=278;t.Edotaccent=278;t.Edotbelow=7864;t.Efcyrillic=1060;t.Egrave=200;t.Egravesmall=63464;t.Eharmenian=1335;t.Ehookabove=7866;t.Eightroman=8551;t.Einvertedbreve=518;t.Eiotifiedcyrillic=1124;t.Elcyrillic=1051;t.Elevenroman=8554;t.Emacron=274;t.Emacronacute=7702;t.Emacrongrave=7700;t.Emcyrillic=1052;t.Emonospace=65317;t.Encyrillic=1053;t.Endescendercyrillic=1186;t.Eng=330;t.Enghecyrillic=1188;t.Enhookcyrillic=1223;t.Eogonek=280;t.Eopen=400;t.Epsilon=917;t.Epsilontonos=904;t.Ercyrillic=1056;t.Ereversed=398;t.Ereversedcyrillic=1069;t.Escyrillic=1057;t.Esdescendercyrillic=1194;t.Esh=425;t.Esmall=63333;t.Eta=919;t.Etarmenian=1336;t.Etatonos=905;t.Eth=208;t.Ethsmall=63472;t.Etilde=7868;t.Etildebelow=7706;t.Euro=8364;t.Ezh=439;t.Ezhcaron=494;t.Ezhreversed=440;t.F=70;t.Fcircle=9403;t.Fdotaccent=7710;t.Feharmenian=1366;t.Feicoptic=996;t.Fhook=401;t.Fitacyrillic=1138;t.Fiveroman=8548;t.Fmonospace=65318;t.Fourroman=8547;t.Fsmall=63334;t.G=71;t.GBsquare=13191;t.Gacute=500;t.Gamma=915;t.Gammaafrican=404;t.Gangiacoptic=1002;t.Gbreve=286;t.Gcaron=486;t.Gcedilla=290;t.Gcircle=9404;t.Gcircumflex=284;t.Gcommaaccent=290;t.Gdot=288;t.Gdotaccent=288;t.Gecyrillic=1043;t.Ghadarmenian=1346;t.Ghemiddlehookcyrillic=1172;t.Ghestrokecyrillic=1170;t.Gheupturncyrillic=1168;t.Ghook=403;t.Gimarmenian=1331;t.Gjecyrillic=1027;t.Gmacron=7712;t.Gmonospace=65319;t.Grave=63182;t.Gravesmall=63328;t.Gsmall=63335;t.Gsmallhook=667;t.Gstroke=484;t.H=72;t.H18533=9679;t.H18543=9642;t.H18551=9643;t.H22073=9633;t.HPsquare=13259;t.Haabkhasiancyrillic=1192;t.Hadescendercyrillic=1202;t.Hardsigncyrillic=1066;t.Hbar=294;t.Hbrevebelow=7722;t.Hcedilla=7720;t.Hcircle=9405;t.Hcircumflex=292;t.Hdieresis=7718;t.Hdotaccent=7714;t.Hdotbelow=7716;t.Hmonospace=65320;t.Hoarmenian=1344;t.Horicoptic=1e3;t.Hsmall=63336;t.Hungarumlaut=63183;t.Hungarumlautsmall=63224;t.Hzsquare=13200;t.I=73;t.IAcyrillic=1071;t.IJ=306;t.IUcyrillic=1070;t.Iacute=205;t.Iacutesmall=63469;t.Ibreve=300;t.Icaron=463;t.Icircle=9406;t.Icircumflex=206;t.Icircumflexsmall=63470;t.Icyrillic=1030;t.Idblgrave=520;t.Idieresis=207;t.Idieresisacute=7726;t.Idieresiscyrillic=1252;t.Idieresissmall=63471;t.Idot=304;t.Idotaccent=304;t.Idotbelow=7882;t.Iebrevecyrillic=1238;t.Iecyrillic=1045;t.Ifraktur=8465;t.Igrave=204;t.Igravesmall=63468;t.Ihookabove=7880;t.Iicyrillic=1048;t.Iinvertedbreve=522;t.Iishortcyrillic=1049;t.Imacron=298;t.Imacroncyrillic=1250;t.Imonospace=65321;t.Iniarmenian=1339;t.Iocyrillic=1025;t.Iogonek=302;t.Iota=921;t.Iotaafrican=406;t.Iotadieresis=938;t.Iotatonos=906;t.Ismall=63337;t.Istroke=407;t.Itilde=296;t.Itildebelow=7724;t.Izhitsacyrillic=1140;t.Izhitsadblgravecyrillic=1142;t.J=74;t.Jaarmenian=1345;t.Jcircle=9407;t.Jcircumflex=308;t.Jecyrillic=1032;t.Jheharmenian=1355;t.Jmonospace=65322;t.Jsmall=63338;t.K=75;t.KBsquare=13189;t.KKsquare=13261;t.Kabashkircyrillic=1184;t.Kacute=7728;t.Kacyrillic=1050;t.Kadescendercyrillic=1178;t.Kahookcyrillic=1219;t.Kappa=922;t.Kastrokecyrillic=1182;t.Kaverticalstrokecyrillic=1180;t.Kcaron=488;t.Kcedilla=310;t.Kcircle=9408;t.Kcommaaccent=310;t.Kdotbelow=7730;t.Keharmenian=1364;t.Kenarmenian=1343;t.Khacyrillic=1061;t.Kheicoptic=998;t.Khook=408;t.Kjecyrillic=1036;t.Klinebelow=7732;t.Kmonospace=65323;t.Koppacyrillic=1152;t.Koppagreek=990;t.Ksicyrillic=1134;t.Ksmall=63339;t.L=76;t.LJ=455;t.LL=63167;t.Lacute=313;t.Lambda=923;t.Lcaron=317;t.Lcedilla=315;t.Lcircle=9409;t.Lcircumflexbelow=7740;t.Lcommaaccent=315;t.Ldot=319;t.Ldotaccent=319;t.Ldotbelow=7734;t.Ldotbelowmacron=7736;t.Liwnarmenian=1340;t.Lj=456;t.Ljecyrillic=1033;t.Llinebelow=7738;t.Lmonospace=65324;t.Lslash=321;t.Lslashsmall=63225;t.Lsmall=63340;t.M=77;t.MBsquare=13190;t.Macron=63184;t.Macronsmall=63407;t.Macute=7742;t.Mcircle=9410;t.Mdotaccent=7744;t.Mdotbelow=7746;t.Menarmenian=1348;t.Mmonospace=65325;t.Msmall=63341;t.Mturned=412;t.Mu=924;t.N=78;t.NJ=458;t.Nacute=323;t.Ncaron=327;t.Ncedilla=325;t.Ncircle=9411;t.Ncircumflexbelow=7754;t.Ncommaaccent=325;t.Ndotaccent=7748;t.Ndotbelow=7750;t.Nhookleft=413;t.Nineroman=8552;t.Nj=459;t.Njecyrillic=1034;t.Nlinebelow=7752;t.Nmonospace=65326;t.Nowarmenian=1350;t.Nsmall=63342;t.Ntilde=209;t.Ntildesmall=63473;t.Nu=925;t.O=79;t.OE=338;t.OEsmall=63226;t.Oacute=211;t.Oacutesmall=63475;t.Obarredcyrillic=1256;t.Obarreddieresiscyrillic=1258;t.Obreve=334;t.Ocaron=465;t.Ocenteredtilde=415;t.Ocircle=9412;t.Ocircumflex=212;t.Ocircumflexacute=7888;t.Ocircumflexdotbelow=7896;t.Ocircumflexgrave=7890;t.Ocircumflexhookabove=7892;t.Ocircumflexsmall=63476;t.Ocircumflextilde=7894;t.Ocyrillic=1054;t.Odblacute=336;t.Odblgrave=524;t.Odieresis=214;t.Odieresiscyrillic=1254;t.Odieresissmall=63478;t.Odotbelow=7884;t.Ogoneksmall=63227;t.Ograve=210;t.Ogravesmall=63474;t.Oharmenian=1365;t.Ohm=8486;t.Ohookabove=7886;t.Ohorn=416;t.Ohornacute=7898;t.Ohorndotbelow=7906;t.Ohorngrave=7900;t.Ohornhookabove=7902;t.Ohorntilde=7904;t.Ohungarumlaut=336;t.Oi=418;t.Oinvertedbreve=526;t.Omacron=332;t.Omacronacute=7762;t.Omacrongrave=7760;t.Omega=8486;t.Omegacyrillic=1120;t.Omegagreek=937;t.Omegaroundcyrillic=1146;t.Omegatitlocyrillic=1148;t.Omegatonos=911;t.Omicron=927;t.Omicrontonos=908;t.Omonospace=65327;t.Oneroman=8544;t.Oogonek=490;t.Oogonekmacron=492;t.Oopen=390;t.Oslash=216;t.Oslashacute=510;t.Oslashsmall=63480;t.Osmall=63343;t.Ostrokeacute=510;t.Otcyrillic=1150;t.Otilde=213;t.Otildeacute=7756;t.Otildedieresis=7758;t.Otildesmall=63477;t.P=80;t.Pacute=7764;t.Pcircle=9413;t.Pdotaccent=7766;t.Pecyrillic=1055;t.Peharmenian=1354;t.Pemiddlehookcyrillic=1190;t.Phi=934;t.Phook=420;t.Pi=928;t.Piwrarmenian=1363;t.Pmonospace=65328;t.Psi=936;t.Psicyrillic=1136;t.Psmall=63344;t.Q=81;t.Qcircle=9414;t.Qmonospace=65329;t.Qsmall=63345;t.R=82;t.Raarmenian=1356;t.Racute=340;t.Rcaron=344;t.Rcedilla=342;t.Rcircle=9415;t.Rcommaaccent=342;t.Rdblgrave=528;t.Rdotaccent=7768;t.Rdotbelow=7770;t.Rdotbelowmacron=7772;t.Reharmenian=1360;t.Rfraktur=8476;t.Rho=929;t.Ringsmall=63228;t.Rinvertedbreve=530;t.Rlinebelow=7774;t.Rmonospace=65330;t.Rsmall=63346;t.Rsmallinverted=641;t.Rsmallinvertedsuperior=694;t.S=83;t.SF010000=9484;t.SF020000=9492;t.SF030000=9488;t.SF040000=9496;t.SF050000=9532;t.SF060000=9516;t.SF070000=9524;t.SF080000=9500;t.SF090000=9508;t.SF100000=9472;t.SF110000=9474;t.SF190000=9569;t.SF200000=9570;t.SF210000=9558;t.SF220000=9557;t.SF230000=9571;t.SF240000=9553;t.SF250000=9559;t.SF260000=9565;t.SF270000=9564;t.SF280000=9563;t.SF360000=9566;t.SF370000=9567;t.SF380000=9562;t.SF390000=9556;t.SF400000=9577;t.SF410000=9574;t.SF420000=9568;t.SF430000=9552;t.SF440000=9580;t.SF450000=9575;t.SF460000=9576;t.SF470000=9572;t.SF480000=9573;t.SF490000=9561;t.SF500000=9560;t.SF510000=9554;t.SF520000=9555;t.SF530000=9579;t.SF540000=9578;t.Sacute=346;t.Sacutedotaccent=7780;t.Sampigreek=992;t.Scaron=352;t.Scarondotaccent=7782;t.Scaronsmall=63229;t.Scedilla=350;t.Schwa=399;t.Schwacyrillic=1240;t.Schwadieresiscyrillic=1242;t.Scircle=9416;t.Scircumflex=348;t.Scommaaccent=536;t.Sdotaccent=7776;t.Sdotbelow=7778;t.Sdotbelowdotaccent=7784;t.Seharmenian=1357;t.Sevenroman=8550;t.Shaarmenian=1351;t.Shacyrillic=1064;t.Shchacyrillic=1065;t.Sheicoptic=994;t.Shhacyrillic=1210;t.Shimacoptic=1004;t.Sigma=931;t.Sixroman=8549;t.Smonospace=65331;t.Softsigncyrillic=1068;t.Ssmall=63347;t.Stigmagreek=986;t.T=84;t.Tau=932;t.Tbar=358;t.Tcaron=356;t.Tcedilla=354;t.Tcircle=9417;t.Tcircumflexbelow=7792;t.Tcommaaccent=354;t.Tdotaccent=7786;t.Tdotbelow=7788;t.Tecyrillic=1058;t.Tedescendercyrillic=1196;t.Tenroman=8553;t.Tetsecyrillic=1204;t.Theta=920;t.Thook=428;t.Thorn=222;t.Thornsmall=63486;t.Threeroman=8546;t.Tildesmall=63230;t.Tiwnarmenian=1359;t.Tlinebelow=7790;t.Tmonospace=65332;t.Toarmenian=1337;t.Tonefive=444;t.Tonesix=388;t.Tonetwo=423;t.Tretroflexhook=430;t.Tsecyrillic=1062;t.Tshecyrillic=1035;t.Tsmall=63348;t.Twelveroman=8555;t.Tworoman=8545;t.U=85;t.Uacute=218;t.Uacutesmall=63482;t.Ubreve=364;t.Ucaron=467;t.Ucircle=9418;t.Ucircumflex=219;t.Ucircumflexbelow=7798;t.Ucircumflexsmall=63483;t.Ucyrillic=1059;t.Udblacute=368;t.Udblgrave=532;t.Udieresis=220;t.Udieresisacute=471;t.Udieresisbelow=7794;t.Udieresiscaron=473;t.Udieresiscyrillic=1264;t.Udieresisgrave=475;t.Udieresismacron=469;t.Udieresissmall=63484;t.Udotbelow=7908;t.Ugrave=217;t.Ugravesmall=63481;t.Uhookabove=7910;t.Uhorn=431;t.Uhornacute=7912;t.Uhorndotbelow=7920;t.Uhorngrave=7914;t.Uhornhookabove=7916;t.Uhorntilde=7918;t.Uhungarumlaut=368;t.Uhungarumlautcyrillic=1266;t.Uinvertedbreve=534;t.Ukcyrillic=1144;t.Umacron=362;t.Umacroncyrillic=1262;t.Umacrondieresis=7802;t.Umonospace=65333;t.Uogonek=370;t.Upsilon=933;t.Upsilon1=978;t.Upsilonacutehooksymbolgreek=979;t.Upsilonafrican=433;t.Upsilondieresis=939;t.Upsilondieresishooksymbolgreek=980;t.Upsilonhooksymbol=978;t.Upsilontonos=910;t.Uring=366;t.Ushortcyrillic=1038;t.Usmall=63349;t.Ustraightcyrillic=1198;t.Ustraightstrokecyrillic=1200;t.Utilde=360;t.Utildeacute=7800;t.Utildebelow=7796;t.V=86;t.Vcircle=9419;t.Vdotbelow=7806;t.Vecyrillic=1042;t.Vewarmenian=1358;t.Vhook=434;t.Vmonospace=65334;t.Voarmenian=1352;t.Vsmall=63350;t.Vtilde=7804;t.W=87;t.Wacute=7810;t.Wcircle=9420;t.Wcircumflex=372;t.Wdieresis=7812;t.Wdotaccent=7814;t.Wdotbelow=7816;t.Wgrave=7808;t.Wmonospace=65335;t.Wsmall=63351;t.X=88;t.Xcircle=9421;t.Xdieresis=7820;t.Xdotaccent=7818;t.Xeharmenian=1341;t.Xi=926;t.Xmonospace=65336;t.Xsmall=63352;t.Y=89;t.Yacute=221;t.Yacutesmall=63485;t.Yatcyrillic=1122;t.Ycircle=9422;t.Ycircumflex=374;t.Ydieresis=376;t.Ydieresissmall=63487;t.Ydotaccent=7822;t.Ydotbelow=7924;t.Yericyrillic=1067;t.Yerudieresiscyrillic=1272;t.Ygrave=7922;t.Yhook=435;t.Yhookabove=7926;t.Yiarmenian=1349;t.Yicyrillic=1031;t.Yiwnarmenian=1362;t.Ymonospace=65337;t.Ysmall=63353;t.Ytilde=7928;t.Yusbigcyrillic=1130;t.Yusbigiotifiedcyrillic=1132;t.Yuslittlecyrillic=1126;t.Yuslittleiotifiedcyrillic=1128;t.Z=90;t.Zaarmenian=1334;t.Zacute=377;t.Zcaron=381;t.Zcaronsmall=63231;t.Zcircle=9423;t.Zcircumflex=7824;t.Zdot=379;t.Zdotaccent=379;t.Zdotbelow=7826;t.Zecyrillic=1047;t.Zedescendercyrillic=1176;t.Zedieresiscyrillic=1246;t.Zeta=918;t.Zhearmenian=1338;t.Zhebrevecyrillic=1217;t.Zhecyrillic=1046;t.Zhedescendercyrillic=1174;t.Zhedieresiscyrillic=1244;t.Zlinebelow=7828;t.Zmonospace=65338;t.Zsmall=63354;t.Zstroke=437;t.a=97;t.aabengali=2438;t.aacute=225;t.aadeva=2310;t.aagujarati=2694;t.aagurmukhi=2566;t.aamatragurmukhi=2622;t.aarusquare=13059;t.aavowelsignbengali=2494;t.aavowelsigndeva=2366;t.aavowelsigngujarati=2750;t.abbreviationmarkarmenian=1375;t.abbreviationsigndeva=2416;t.abengali=2437;t.abopomofo=12570;t.abreve=259;t.abreveacute=7855;t.abrevecyrillic=1233;t.abrevedotbelow=7863;t.abrevegrave=7857;t.abrevehookabove=7859;t.abrevetilde=7861;t.acaron=462;t.acircle=9424;t.acircumflex=226;t.acircumflexacute=7845;t.acircumflexdotbelow=7853;t.acircumflexgrave=7847;t.acircumflexhookabove=7849;t.acircumflextilde=7851;t.acute=180;t.acutebelowcmb=791;t.acutecmb=769;t.acutecomb=769;t.acutedeva=2388;t.acutelowmod=719;t.acutetonecmb=833;t.acyrillic=1072;t.adblgrave=513;t.addakgurmukhi=2673;t.adeva=2309;t.adieresis=228;t.adieresiscyrillic=1235;t.adieresismacron=479;t.adotbelow=7841;t.adotmacron=481;t.ae=230;t.aeacute=509;t.aekorean=12624;t.aemacron=483;t.afii00208=8213;t.afii08941=8356;t.afii10017=1040;t.afii10018=1041;t.afii10019=1042;t.afii10020=1043;t.afii10021=1044;t.afii10022=1045;t.afii10023=1025;t.afii10024=1046;t.afii10025=1047;t.afii10026=1048;t.afii10027=1049;t.afii10028=1050;t.afii10029=1051;t.afii10030=1052;t.afii10031=1053;t.afii10032=1054;t.afii10033=1055;t.afii10034=1056;t.afii10035=1057;t.afii10036=1058;t.afii10037=1059;t.afii10038=1060;t.afii10039=1061;t.afii10040=1062;t.afii10041=1063;t.afii10042=1064;t.afii10043=1065;t.afii10044=1066;t.afii10045=1067;t.afii10046=1068;t.afii10047=1069;t.afii10048=1070;t.afii10049=1071;t.afii10050=1168;t.afii10051=1026;t.afii10052=1027;t.afii10053=1028;t.afii10054=1029;t.afii10055=1030;t.afii10056=1031;t.afii10057=1032;t.afii10058=1033;t.afii10059=1034;t.afii10060=1035;t.afii10061=1036;t.afii10062=1038;t.afii10063=63172;t.afii10064=63173;t.afii10065=1072;t.afii10066=1073;t.afii10067=1074;t.afii10068=1075;t.afii10069=1076;t.afii10070=1077;t.afii10071=1105;t.afii10072=1078;t.afii10073=1079;t.afii10074=1080;t.afii10075=1081;t.afii10076=1082;t.afii10077=1083;t.afii10078=1084;t.afii10079=1085;t.afii10080=1086;t.afii10081=1087;t.afii10082=1088;t.afii10083=1089;t.afii10084=1090;t.afii10085=1091;t.afii10086=1092;t.afii10087=1093;t.afii10088=1094;t.afii10089=1095;t.afii10090=1096;t.afii10091=1097;t.afii10092=1098;t.afii10093=1099;t.afii10094=1100;t.afii10095=1101;t.afii10096=1102;t.afii10097=1103;t.afii10098=1169;t.afii10099=1106;t.afii10100=1107;t.afii10101=1108;t.afii10102=1109;t.afii10103=1110;t.afii10104=1111;t.afii10105=1112;t.afii10106=1113;t.afii10107=1114;t.afii10108=1115;t.afii10109=1116;t.afii10110=1118;t.afii10145=1039;t.afii10146=1122;t.afii10147=1138;t.afii10148=1140;t.afii10192=63174;t.afii10193=1119;t.afii10194=1123;t.afii10195=1139;t.afii10196=1141;t.afii10831=63175;t.afii10832=63176;t.afii10846=1241;t.afii299=8206;t.afii300=8207;t.afii301=8205;t.afii57381=1642;t.afii57388=1548;t.afii57392=1632;t.afii57393=1633;t.afii57394=1634;t.afii57395=1635;t.afii57396=1636;t.afii57397=1637;t.afii57398=1638;t.afii57399=1639;t.afii57400=1640;t.afii57401=1641;t.afii57403=1563;t.afii57407=1567;t.afii57409=1569;t.afii57410=1570;t.afii57411=1571;t.afii57412=1572;t.afii57413=1573;t.afii57414=1574;t.afii57415=1575;t.afii57416=1576;t.afii57417=1577;t.afii57418=1578;t.afii57419=1579;t.afii57420=1580;t.afii57421=1581;t.afii57422=1582;t.afii57423=1583;t.afii57424=1584;t.afii57425=1585;t.afii57426=1586;t.afii57427=1587;t.afii57428=1588;t.afii57429=1589;t.afii57430=1590;t.afii57431=1591;t.afii57432=1592;t.afii57433=1593;t.afii57434=1594;t.afii57440=1600;t.afii57441=1601;t.afii57442=1602;t.afii57443=1603;t.afii57444=1604;t.afii57445=1605;t.afii57446=1606;t.afii57448=1608;t.afii57449=1609;t.afii57450=1610;t.afii57451=1611;t.afii57452=1612;t.afii57453=1613;t.afii57454=1614;t.afii57455=1615;t.afii57456=1616;t.afii57457=1617;t.afii57458=1618;t.afii57470=1607;t.afii57505=1700;t.afii57506=1662;t.afii57507=1670;t.afii57508=1688;t.afii57509=1711;t.afii57511=1657;t.afii57512=1672;t.afii57513=1681;t.afii57514=1722;t.afii57519=1746;t.afii57534=1749;t.afii57636=8362;t.afii57645=1470;t.afii57658=1475;t.afii57664=1488;t.afii57665=1489;t.afii57666=1490;t.afii57667=1491;t.afii57668=1492;t.afii57669=1493;t.afii57670=1494;t.afii57671=1495;t.afii57672=1496;t.afii57673=1497;t.afii57674=1498;t.afii57675=1499;t.afii57676=1500;t.afii57677=1501;t.afii57678=1502;t.afii57679=1503;t.afii57680=1504;t.afii57681=1505;t.afii57682=1506;t.afii57683=1507;t.afii57684=1508;t.afii57685=1509;t.afii57686=1510;t.afii57687=1511;t.afii57688=1512;t.afii57689=1513;t.afii57690=1514;t.afii57694=64298;t.afii57695=64299;t.afii57700=64331;t.afii57705=64287;t.afii57716=1520;t.afii57717=1521;t.afii57718=1522;t.afii57723=64309;t.afii57793=1460;t.afii57794=1461;t.afii57795=1462;t.afii57796=1467;t.afii57797=1464;t.afii57798=1463;t.afii57799=1456;t.afii57800=1458;t.afii57801=1457;t.afii57802=1459;t.afii57803=1474;t.afii57804=1473;t.afii57806=1465;t.afii57807=1468;t.afii57839=1469;t.afii57841=1471;t.afii57842=1472;t.afii57929=700;t.afii61248=8453;t.afii61289=8467;t.afii61352=8470;t.afii61573=8236;t.afii61574=8237;t.afii61575=8238;t.afii61664=8204;t.afii63167=1645;t.afii64937=701;t.agrave=224;t.agujarati=2693;t.agurmukhi=2565;t.ahiragana=12354;t.ahookabove=7843;t.aibengali=2448;t.aibopomofo=12574;t.aideva=2320;t.aiecyrillic=1237;t.aigujarati=2704;t.aigurmukhi=2576;t.aimatragurmukhi=2632;t.ainarabic=1593;t.ainfinalarabic=65226;t.aininitialarabic=65227;t.ainmedialarabic=65228;t.ainvertedbreve=515;t.aivowelsignbengali=2504;t.aivowelsigndeva=2376;t.aivowelsigngujarati=2760;t.akatakana=12450;t.akatakanahalfwidth=65393;t.akorean=12623;t.alef=1488;t.alefarabic=1575;t.alefdageshhebrew=64304;t.aleffinalarabic=65166;t.alefhamzaabovearabic=1571;t.alefhamzaabovefinalarabic=65156;t.alefhamzabelowarabic=1573;t.alefhamzabelowfinalarabic=65160;t.alefhebrew=1488;t.aleflamedhebrew=64335;t.alefmaddaabovearabic=1570;t.alefmaddaabovefinalarabic=65154;t.alefmaksuraarabic=1609;t.alefmaksurafinalarabic=65264;t.alefmaksurainitialarabic=65267;t.alefmaksuramedialarabic=65268;t.alefpatahhebrew=64302;t.alefqamatshebrew=64303;t.aleph=8501;t.allequal=8780;t.alpha=945;t.alphatonos=940;t.amacron=257;t.amonospace=65345;t.ampersand=38;t.ampersandmonospace=65286;t.ampersandsmall=63270;t.amsquare=13250;t.anbopomofo=12578;t.angbopomofo=12580;t.angbracketleft=12296;t.angbracketright=12297;t.angkhankhuthai=3674;t.angle=8736;t.anglebracketleft=12296;t.anglebracketleftvertical=65087;t.anglebracketright=12297;t.anglebracketrightvertical=65088;t.angleleft=9001;t.angleright=9002;t.angstrom=8491;t.anoteleia=903;t.anudattadeva=2386;t.anusvarabengali=2434;t.anusvaradeva=2306;t.anusvaragujarati=2690;t.aogonek=261;t.apaatosquare=13056;t.aparen=9372;t.apostrophearmenian=1370;t.apostrophemod=700;t.apple=63743;t.approaches=8784;t.approxequal=8776;t.approxequalorimage=8786;t.approximatelyequal=8773;t.araeaekorean=12686;t.araeakorean=12685;t.arc=8978;t.arighthalfring=7834;t.aring=229;t.aringacute=507;t.aringbelow=7681;t.arrowboth=8596;t.arrowdashdown=8675;t.arrowdashleft=8672;t.arrowdashright=8674;t.arrowdashup=8673;t.arrowdblboth=8660;t.arrowdbldown=8659;t.arrowdblleft=8656;t.arrowdblright=8658;t.arrowdblup=8657;t.arrowdown=8595;t.arrowdownleft=8601;t.arrowdownright=8600;t.arrowdownwhite=8681;t.arrowheaddownmod=709;t.arrowheadleftmod=706;t.arrowheadrightmod=707;t.arrowheadupmod=708;t.arrowhorizex=63719;t.arrowleft=8592;t.arrowleftdbl=8656;t.arrowleftdblstroke=8653;t.arrowleftoverright=8646;t.arrowleftwhite=8678;t.arrowright=8594;t.arrowrightdblstroke=8655;t.arrowrightheavy=10142;t.arrowrightoverleft=8644;t.arrowrightwhite=8680;t.arrowtableft=8676;t.arrowtabright=8677;t.arrowup=8593;t.arrowupdn=8597;t.arrowupdnbse=8616;t.arrowupdownbase=8616;t.arrowupleft=8598;t.arrowupleftofdown=8645;t.arrowupright=8599;t.arrowupwhite=8679;t.arrowvertex=63718;t.asciicircum=94;t.asciicircummonospace=65342;t.asciitilde=126;t.asciitildemonospace=65374;t.ascript=593;t.ascriptturned=594;t.asmallhiragana=12353;t.asmallkatakana=12449;t.asmallkatakanahalfwidth=65383;t.asterisk=42;t.asteriskaltonearabic=1645;t.asteriskarabic=1645;t.asteriskmath=8727;t.asteriskmonospace=65290;t.asterisksmall=65121;t.asterism=8258;t.asuperior=63209;t.asymptoticallyequal=8771;t.at=64;t.atilde=227;t.atmonospace=65312;t.atsmall=65131;t.aturned=592;t.aubengali=2452;t.aubopomofo=12576;t.audeva=2324;t.augujarati=2708;t.augurmukhi=2580;t.aulengthmarkbengali=2519;t.aumatragurmukhi=2636;t.auvowelsignbengali=2508;t.auvowelsigndeva=2380;t.auvowelsigngujarati=2764;t.avagrahadeva=2365;t.aybarmenian=1377;t.ayin=1506;t.ayinaltonehebrew=64288;t.ayinhebrew=1506;t.b=98;t.babengali=2476;t.backslash=92;t.backslashmonospace=65340;t.badeva=2348;t.bagujarati=2732;t.bagurmukhi=2604;t.bahiragana=12400;t.bahtthai=3647;t.bakatakana=12496;t.bar=124;t.barmonospace=65372;t.bbopomofo=12549;t.bcircle=9425;t.bdotaccent=7683;t.bdotbelow=7685;t.beamedsixteenthnotes=9836;t.because=8757;t.becyrillic=1073;t.beharabic=1576;t.behfinalarabic=65168;t.behinitialarabic=65169;t.behiragana=12409;t.behmedialarabic=65170;t.behmeeminitialarabic=64671;t.behmeemisolatedarabic=64520;t.behnoonfinalarabic=64621;t.bekatakana=12505;t.benarmenian=1378;t.bet=1489;t.beta=946;t.betasymbolgreek=976;t.betdagesh=64305;t.betdageshhebrew=64305;t.bethebrew=1489;t.betrafehebrew=64332;t.bhabengali=2477;t.bhadeva=2349;t.bhagujarati=2733;t.bhagurmukhi=2605;t.bhook=595;t.bihiragana=12403;t.bikatakana=12499;t.bilabialclick=664;t.bindigurmukhi=2562;t.birusquare=13105;t.blackcircle=9679;t.blackdiamond=9670;t.blackdownpointingtriangle=9660;t.blackleftpointingpointer=9668;t.blackleftpointingtriangle=9664;t.blacklenticularbracketleft=12304;t.blacklenticularbracketleftvertical=65083;t.blacklenticularbracketright=12305;t.blacklenticularbracketrightvertical=65084;t.blacklowerlefttriangle=9699;t.blacklowerrighttriangle=9698;t.blackrectangle=9644;t.blackrightpointingpointer=9658;t.blackrightpointingtriangle=9654;t.blacksmallsquare=9642;t.blacksmilingface=9787;t.blacksquare=9632;t.blackstar=9733;t.blackupperlefttriangle=9700;t.blackupperrighttriangle=9701;t.blackuppointingsmalltriangle=9652;t.blackuppointingtriangle=9650;t.blank=9251;t.blinebelow=7687;t.block=9608;t.bmonospace=65346;t.bobaimaithai=3610;t.bohiragana=12412;t.bokatakana=12508;t.bparen=9373;t.bqsquare=13251;t.braceex=63732;t.braceleft=123;t.braceleftbt=63731;t.braceleftmid=63730;t.braceleftmonospace=65371;t.braceleftsmall=65115;t.bracelefttp=63729;t.braceleftvertical=65079;t.braceright=125;t.bracerightbt=63742;t.bracerightmid=63741;t.bracerightmonospace=65373;t.bracerightsmall=65116;t.bracerighttp=63740;t.bracerightvertical=65080;t.bracketleft=91;t.bracketleftbt=63728;t.bracketleftex=63727;t.bracketleftmonospace=65339;t.bracketlefttp=63726;t.bracketright=93;t.bracketrightbt=63739;t.bracketrightex=63738;t.bracketrightmonospace=65341;t.bracketrighttp=63737;t.breve=728;t.brevebelowcmb=814;t.brevecmb=774;t.breveinvertedbelowcmb=815;t.breveinvertedcmb=785;t.breveinverteddoublecmb=865;t.bridgebelowcmb=810;t.bridgeinvertedbelowcmb=826;t.brokenbar=166;t.bstroke=384;t.bsuperior=63210;t.btopbar=387;t.buhiragana=12406;t.bukatakana=12502;t.bullet=8226;t.bulletinverse=9688;t.bulletoperator=8729;t.bullseye=9678;t.c=99;t.caarmenian=1390;t.cabengali=2458;t.cacute=263;t.cadeva=2330;t.cagujarati=2714;t.cagurmukhi=2586;t.calsquare=13192;t.candrabindubengali=2433;t.candrabinducmb=784;t.candrabindudeva=2305;t.candrabindugujarati=2689;t.capslock=8682;t.careof=8453;t.caron=711;t.caronbelowcmb=812;t.caroncmb=780;t.carriagereturn=8629;t.cbopomofo=12568;t.ccaron=269;t.ccedilla=231;t.ccedillaacute=7689;t.ccircle=9426;t.ccircumflex=265;t.ccurl=597;t.cdot=267;t.cdotaccent=267;t.cdsquare=13253;t.cedilla=184;t.cedillacmb=807;t.cent=162;t.centigrade=8451;t.centinferior=63199;t.centmonospace=65504;t.centoldstyle=63394;t.centsuperior=63200;t.chaarmenian=1401;t.chabengali=2459;t.chadeva=2331;t.chagujarati=2715;t.chagurmukhi=2587;t.chbopomofo=12564;t.cheabkhasiancyrillic=1213;t.checkmark=10003;t.checyrillic=1095;t.chedescenderabkhasiancyrillic=1215;t.chedescendercyrillic=1207;t.chedieresiscyrillic=1269;t.cheharmenian=1395;t.chekhakassiancyrillic=1228;t.cheverticalstrokecyrillic=1209;t.chi=967;t.chieuchacirclekorean=12919;t.chieuchaparenkorean=12823;t.chieuchcirclekorean=12905;t.chieuchkorean=12618;t.chieuchparenkorean=12809;t.chochangthai=3594;t.chochanthai=3592;t.chochingthai=3593;t.chochoethai=3596;t.chook=392;t.cieucacirclekorean=12918;t.cieucaparenkorean=12822;t.cieuccirclekorean=12904;t.cieuckorean=12616;t.cieucparenkorean=12808;t.cieucuparenkorean=12828;t.circle=9675;t.circlecopyrt=169;t.circlemultiply=8855;t.circleot=8857;t.circleplus=8853;t.circlepostalmark=12342;t.circlewithlefthalfblack=9680;t.circlewithrighthalfblack=9681;t.circumflex=710;t.circumflexbelowcmb=813;t.circumflexcmb=770;t.clear=8999;t.clickalveolar=450;t.clickdental=448;t.clicklateral=449;t.clickretroflex=451;t.club=9827;t.clubsuitblack=9827;t.clubsuitwhite=9831;t.cmcubedsquare=13220;t.cmonospace=65347;t.cmsquaredsquare=13216;t.coarmenian=1409;t.colon=58;t.colonmonetary=8353;t.colonmonospace=65306;t.colonsign=8353;t.colonsmall=65109;t.colontriangularhalfmod=721;t.colontriangularmod=720;t.comma=44;t.commaabovecmb=787;t.commaaboverightcmb=789;t.commaaccent=63171;t.commaarabic=1548;t.commaarmenian=1373;t.commainferior=63201;t.commamonospace=65292;t.commareversedabovecmb=788;t.commareversedmod=701;t.commasmall=65104;t.commasuperior=63202;t.commaturnedabovecmb=786;t.commaturnedmod=699;t.compass=9788;t.congruent=8773;t.contourintegral=8750;t.control=8963;t.controlACK=6;t.controlBEL=7;t.controlBS=8;t.controlCAN=24;t.controlCR=13;t.controlDC1=17;t.controlDC2=18;t.controlDC3=19;t.controlDC4=20;t.controlDEL=127;t.controlDLE=16;t.controlEM=25;t.controlENQ=5;t.controlEOT=4;t.controlESC=27;t.controlETB=23;t.controlETX=3;t.controlFF=12;t.controlFS=28;t.controlGS=29;t.controlHT=9;t.controlLF=10;t.controlNAK=21;t.controlNULL=0;t.controlRS=30;t.controlSI=15;t.controlSO=14;t.controlSOT=2;t.controlSTX=1;t.controlSUB=26;t.controlSYN=22;t.controlUS=31;t.controlVT=11;t.copyright=169;t.copyrightsans=63721;t.copyrightserif=63193;t.cornerbracketleft=12300;t.cornerbracketlefthalfwidth=65378;t.cornerbracketleftvertical=65089;t.cornerbracketright=12301;t.cornerbracketrighthalfwidth=65379;t.cornerbracketrightvertical=65090;t.corporationsquare=13183;t.cosquare=13255;t.coverkgsquare=13254;t.cparen=9374;t.cruzeiro=8354;t.cstretched=663;t.curlyand=8911;t.curlyor=8910;t.currency=164;t.cyrBreve=63185;t.cyrFlex=63186;t.cyrbreve=63188;t.cyrflex=63189;t.d=100;t.daarmenian=1380;t.dabengali=2470;t.dadarabic=1590;t.dadeva=2342;t.dadfinalarabic=65214;t.dadinitialarabic=65215;t.dadmedialarabic=65216;t.dagesh=1468;t.dageshhebrew=1468;t.dagger=8224;t.daggerdbl=8225;t.dagujarati=2726;t.dagurmukhi=2598;t.dahiragana=12384;t.dakatakana=12480;t.dalarabic=1583;t.dalet=1491;t.daletdagesh=64307;t.daletdageshhebrew=64307;t.dalethebrew=1491;t.dalfinalarabic=65194;t.dammaarabic=1615;t.dammalowarabic=1615;t.dammatanaltonearabic=1612;t.dammatanarabic=1612;t.danda=2404;t.dargahebrew=1447;t.dargalefthebrew=1447;t.dasiapneumatacyrilliccmb=1157;t.dblGrave=63187;t.dblanglebracketleft=12298;t.dblanglebracketleftvertical=65085;t.dblanglebracketright=12299;t.dblanglebracketrightvertical=65086;t.dblarchinvertedbelowcmb=811;t.dblarrowleft=8660;t.dblarrowright=8658;t.dbldanda=2405;t.dblgrave=63190;t.dblgravecmb=783;t.dblintegral=8748;t.dbllowline=8215;t.dbllowlinecmb=819;t.dbloverlinecmb=831;t.dblprimemod=698;t.dblverticalbar=8214;t.dblverticallineabovecmb=782;t.dbopomofo=12553;t.dbsquare=13256;t.dcaron=271;t.dcedilla=7697;t.dcircle=9427;t.dcircumflexbelow=7699;t.dcroat=273;t.ddabengali=2465;t.ddadeva=2337;t.ddagujarati=2721;t.ddagurmukhi=2593;t.ddalarabic=1672;t.ddalfinalarabic=64393;t.dddhadeva=2396;t.ddhabengali=2466;t.ddhadeva=2338;t.ddhagujarati=2722;t.ddhagurmukhi=2594;t.ddotaccent=7691;t.ddotbelow=7693;t.decimalseparatorarabic=1643;t.decimalseparatorpersian=1643;t.decyrillic=1076;t.degree=176;t.dehihebrew=1453;t.dehiragana=12391;t.deicoptic=1007;t.dekatakana=12487;t.deleteleft=9003;t.deleteright=8998;t.delta=948;t.deltaturned=397;t.denominatorminusonenumeratorbengali=2552;t.dezh=676;t.dhabengali=2471;t.dhadeva=2343;t.dhagujarati=2727;t.dhagurmukhi=2599;t.dhook=599;t.dialytikatonos=901;t.dialytikatonoscmb=836;t.diamond=9830;t.diamondsuitwhite=9826;t.dieresis=168;t.dieresisacute=63191;t.dieresisbelowcmb=804;t.dieresiscmb=776;t.dieresisgrave=63192;t.dieresistonos=901;t.dihiragana=12386;t.dikatakana=12482;t.dittomark=12291;t.divide=247;t.divides=8739;t.divisionslash=8725;t.djecyrillic=1106;t.dkshade=9619;t.dlinebelow=7695;t.dlsquare=13207;t.dmacron=273;t.dmonospace=65348;t.dnblock=9604;t.dochadathai=3598;t.dodekthai=3604;t.dohiragana=12393;t.dokatakana=12489;t.dollar=36;t.dollarinferior=63203;t.dollarmonospace=65284;t.dollaroldstyle=63268;t.dollarsmall=65129;t.dollarsuperior=63204;t.dong=8363;t.dorusquare=13094;t.dotaccent=729;t.dotaccentcmb=775;t.dotbelowcmb=803;t.dotbelowcomb=803;t.dotkatakana=12539;t.dotlessi=305;t.dotlessj=63166;t.dotlessjstrokehook=644;t.dotmath=8901;t.dottedcircle=9676;t.doubleyodpatah=64287;t.doubleyodpatahhebrew=64287;t.downtackbelowcmb=798;t.downtackmod=725;t.dparen=9375;t.dsuperior=63211;t.dtail=598;t.dtopbar=396;t.duhiragana=12389;t.dukatakana=12485;t.dz=499;t.dzaltone=675;t.dzcaron=454;t.dzcurl=677;t.dzeabkhasiancyrillic=1249;t.dzecyrillic=1109;t.dzhecyrillic=1119;t.e=101;t.eacute=233;t.earth=9793;t.ebengali=2447;t.ebopomofo=12572;t.ebreve=277;t.ecandradeva=2317;t.ecandragujarati=2701;t.ecandravowelsigndeva=2373;t.ecandravowelsigngujarati=2757;t.ecaron=283;t.ecedillabreve=7709;t.echarmenian=1381;t.echyiwnarmenian=1415;t.ecircle=9428;t.ecircumflex=234;t.ecircumflexacute=7871;t.ecircumflexbelow=7705;t.ecircumflexdotbelow=7879;t.ecircumflexgrave=7873;t.ecircumflexhookabove=7875;t.ecircumflextilde=7877;t.ecyrillic=1108;t.edblgrave=517;t.edeva=2319;t.edieresis=235;t.edot=279;t.edotaccent=279;t.edotbelow=7865;t.eegurmukhi=2575;t.eematragurmukhi=2631;t.efcyrillic=1092;t.egrave=232;t.egujarati=2703;t.eharmenian=1383;t.ehbopomofo=12573;t.ehiragana=12360;t.ehookabove=7867;t.eibopomofo=12575;t.eight=56;t.eightarabic=1640;t.eightbengali=2542;t.eightcircle=9319;t.eightcircleinversesansserif=10129;t.eightdeva=2414;t.eighteencircle=9329;t.eighteenparen=9349;t.eighteenperiod=9369;t.eightgujarati=2798;t.eightgurmukhi=2670;t.eighthackarabic=1640;t.eighthangzhou=12328;t.eighthnotebeamed=9835;t.eightideographicparen=12839;t.eightinferior=8328;t.eightmonospace=65304;t.eightoldstyle=63288;t.eightparen=9339;t.eightperiod=9359;t.eightpersian=1784;t.eightroman=8567;t.eightsuperior=8312;t.eightthai=3672;t.einvertedbreve=519;t.eiotifiedcyrillic=1125;t.ekatakana=12456;t.ekatakanahalfwidth=65396;t.ekonkargurmukhi=2676;t.ekorean=12628;t.elcyrillic=1083;t.element=8712;t.elevencircle=9322;t.elevenparen=9342;t.elevenperiod=9362;t.elevenroman=8570;t.ellipsis=8230;t.ellipsisvertical=8942;t.emacron=275;t.emacronacute=7703;t.emacrongrave=7701;t.emcyrillic=1084;t.emdash=8212;t.emdashvertical=65073;t.emonospace=65349;t.emphasismarkarmenian=1371;t.emptyset=8709;t.enbopomofo=12579;t.encyrillic=1085;t.endash=8211;t.endashvertical=65074;t.endescendercyrillic=1187;t.eng=331;t.engbopomofo=12581;t.enghecyrillic=1189;t.enhookcyrillic=1224;t.enspace=8194;t.eogonek=281;t.eokorean=12627;t.eopen=603;t.eopenclosed=666;t.eopenreversed=604;t.eopenreversedclosed=606;t.eopenreversedhook=605;t.eparen=9376;t.epsilon=949;t.epsilontonos=941;t.equal=61;t.equalmonospace=65309;t.equalsmall=65126;t.equalsuperior=8316;t.equivalence=8801;t.erbopomofo=12582;t.ercyrillic=1088;t.ereversed=600;t.ereversedcyrillic=1101;t.escyrillic=1089;t.esdescendercyrillic=1195;t.esh=643;t.eshcurl=646;t.eshortdeva=2318;t.eshortvowelsigndeva=2374;t.eshreversedloop=426;t.eshsquatreversed=645;t.esmallhiragana=12359;t.esmallkatakana=12455;t.esmallkatakanahalfwidth=65386;t.estimated=8494;t.esuperior=63212;t.eta=951;t.etarmenian=1384;t.etatonos=942;t.eth=240;t.etilde=7869;t.etildebelow=7707;t.etnahtafoukhhebrew=1425;t.etnahtafoukhlefthebrew=1425;t.etnahtahebrew=1425;t.etnahtalefthebrew=1425;t.eturned=477;t.eukorean=12641;t.euro=8364;t.evowelsignbengali=2503;t.evowelsigndeva=2375;t.evowelsigngujarati=2759;t.exclam=33;t.exclamarmenian=1372;t.exclamdbl=8252;t.exclamdown=161;t.exclamdownsmall=63393;t.exclammonospace=65281;t.exclamsmall=63265;t.existential=8707;t.ezh=658;t.ezhcaron=495;t.ezhcurl=659;t.ezhreversed=441;t.ezhtail=442;t.f=102;t.fadeva=2398;t.fagurmukhi=2654;t.fahrenheit=8457;t.fathaarabic=1614;t.fathalowarabic=1614;t.fathatanarabic=1611;t.fbopomofo=12552;t.fcircle=9429;t.fdotaccent=7711;t.feharabic=1601;t.feharmenian=1414;t.fehfinalarabic=65234;t.fehinitialarabic=65235;t.fehmedialarabic=65236;t.feicoptic=997;t.female=9792;t.ff=64256;t.f_f=64256;t.ffi=64259;t.f_f_i=64259;t.ffl=64260;t.f_f_l=64260;t.fi=64257;t.f_i=64257;t.fifteencircle=9326;t.fifteenparen=9346;t.fifteenperiod=9366;t.figuredash=8210;t.filledbox=9632;t.filledrect=9644;t.finalkaf=1498;t.finalkafdagesh=64314;t.finalkafdageshhebrew=64314;t.finalkafhebrew=1498;t.finalmem=1501;t.finalmemhebrew=1501;t.finalnun=1503;t.finalnunhebrew=1503;t.finalpe=1507;t.finalpehebrew=1507;t.finaltsadi=1509;t.finaltsadihebrew=1509;t.firsttonechinese=713;t.fisheye=9673;t.fitacyrillic=1139;t.five=53;t.fivearabic=1637;t.fivebengali=2539;t.fivecircle=9316;t.fivecircleinversesansserif=10126;t.fivedeva=2411;t.fiveeighths=8541;t.fivegujarati=2795;t.fivegurmukhi=2667;t.fivehackarabic=1637;t.fivehangzhou=12325;t.fiveideographicparen=12836;t.fiveinferior=8325;t.fivemonospace=65301;t.fiveoldstyle=63285;t.fiveparen=9336;t.fiveperiod=9356;t.fivepersian=1781;t.fiveroman=8564;t.fivesuperior=8309;t.fivethai=3669;t.fl=64258;t.f_l=64258;t.florin=402;t.fmonospace=65350;t.fmsquare=13209;t.fofanthai=3615;t.fofathai=3613;t.fongmanthai=3663;t.forall=8704;t.four=52;t.fourarabic=1636;t.fourbengali=2538;t.fourcircle=9315;t.fourcircleinversesansserif=10125;t.fourdeva=2410;t.fourgujarati=2794;t.fourgurmukhi=2666;t.fourhackarabic=1636;t.fourhangzhou=12324;t.fourideographicparen=12835;t.fourinferior=8324;t.fourmonospace=65300;t.fournumeratorbengali=2551;t.fouroldstyle=63284;t.fourparen=9335;t.fourperiod=9355;t.fourpersian=1780;t.fourroman=8563;t.foursuperior=8308;t.fourteencircle=9325;t.fourteenparen=9345;t.fourteenperiod=9365;t.fourthai=3668;t.fourthtonechinese=715;t.fparen=9377;t.fraction=8260;t.franc=8355;t.g=103;t.gabengali=2455;t.gacute=501;t.gadeva=2327;t.gafarabic=1711;t.gaffinalarabic=64403;t.gafinitialarabic=64404;t.gafmedialarabic=64405;t.gagujarati=2711;t.gagurmukhi=2583;t.gahiragana=12364;t.gakatakana=12460;t.gamma=947;t.gammalatinsmall=611;t.gammasuperior=736;t.gangiacoptic=1003;t.gbopomofo=12557;t.gbreve=287;t.gcaron=487;t.gcedilla=291;t.gcircle=9430;t.gcircumflex=285;t.gcommaaccent=291;t.gdot=289;t.gdotaccent=289;t.gecyrillic=1075;t.gehiragana=12370;t.gekatakana=12466;t.geometricallyequal=8785;t.gereshaccenthebrew=1436;t.gereshhebrew=1523;t.gereshmuqdamhebrew=1437;t.germandbls=223;t.gershayimaccenthebrew=1438;t.gershayimhebrew=1524;t.getamark=12307;t.ghabengali=2456;t.ghadarmenian=1394;t.ghadeva=2328;t.ghagujarati=2712;t.ghagurmukhi=2584;t.ghainarabic=1594;t.ghainfinalarabic=65230;t.ghaininitialarabic=65231;t.ghainmedialarabic=65232;t.ghemiddlehookcyrillic=1173;t.ghestrokecyrillic=1171;t.gheupturncyrillic=1169;t.ghhadeva=2394;t.ghhagurmukhi=2650;t.ghook=608;t.ghzsquare=13203;t.gihiragana=12366;t.gikatakana=12462;t.gimarmenian=1379;t.gimel=1490;t.gimeldagesh=64306;t.gimeldageshhebrew=64306;t.gimelhebrew=1490;t.gjecyrillic=1107;t.glottalinvertedstroke=446;t.glottalstop=660;t.glottalstopinverted=662;t.glottalstopmod=704;t.glottalstopreversed=661;t.glottalstopreversedmod=705;t.glottalstopreversedsuperior=740;t.glottalstopstroke=673;t.glottalstopstrokereversed=674;t.gmacron=7713;t.gmonospace=65351;t.gohiragana=12372;t.gokatakana=12468;t.gparen=9378;t.gpasquare=13228;t.gradient=8711;t.grave=96;t.gravebelowcmb=790;t.gravecmb=768;t.gravecomb=768;t.gravedeva=2387;t.gravelowmod=718;t.gravemonospace=65344;t.gravetonecmb=832;t.greater=62;t.greaterequal=8805;t.greaterequalorless=8923;t.greatermonospace=65310;t.greaterorequivalent=8819;t.greaterorless=8823;t.greateroverequal=8807;t.greatersmall=65125;t.gscript=609;t.gstroke=485;t.guhiragana=12368;t.guillemotleft=171;t.guillemotright=187;t.guilsinglleft=8249;t.guilsinglright=8250;t.gukatakana=12464;t.guramusquare=13080;t.gysquare=13257;t.h=104;t.haabkhasiancyrillic=1193;t.haaltonearabic=1729;t.habengali=2489;t.hadescendercyrillic=1203;t.hadeva=2361;t.hagujarati=2745;t.hagurmukhi=2617;t.haharabic=1581;t.hahfinalarabic=65186;t.hahinitialarabic=65187;t.hahiragana=12399;t.hahmedialarabic=65188;t.haitusquare=13098;t.hakatakana=12495;t.hakatakanahalfwidth=65418;t.halantgurmukhi=2637;t.hamzaarabic=1569;t.hamzalowarabic=1569;t.hangulfiller=12644;t.hardsigncyrillic=1098;t.harpoonleftbarbup=8636;t.harpoonrightbarbup=8640;t.hasquare=13258;t.hatafpatah=1458;t.hatafpatah16=1458;t.hatafpatah23=1458;t.hatafpatah2f=1458;t.hatafpatahhebrew=1458;t.hatafpatahnarrowhebrew=1458;t.hatafpatahquarterhebrew=1458;t.hatafpatahwidehebrew=1458;t.hatafqamats=1459;t.hatafqamats1b=1459;t.hatafqamats28=1459;t.hatafqamats34=1459;t.hatafqamatshebrew=1459;t.hatafqamatsnarrowhebrew=1459;t.hatafqamatsquarterhebrew=1459;t.hatafqamatswidehebrew=1459;t.hatafsegol=1457;t.hatafsegol17=1457;t.hatafsegol24=1457;t.hatafsegol30=1457;t.hatafsegolhebrew=1457;t.hatafsegolnarrowhebrew=1457;t.hatafsegolquarterhebrew=1457;t.hatafsegolwidehebrew=1457;t.hbar=295;t.hbopomofo=12559;t.hbrevebelow=7723;t.hcedilla=7721;t.hcircle=9431;t.hcircumflex=293;t.hdieresis=7719;t.hdotaccent=7715;t.hdotbelow=7717;t.he=1492;t.heart=9829;t.heartsuitblack=9829;t.heartsuitwhite=9825;t.hedagesh=64308;t.hedageshhebrew=64308;t.hehaltonearabic=1729;t.heharabic=1607;t.hehebrew=1492;t.hehfinalaltonearabic=64423;t.hehfinalalttwoarabic=65258;t.hehfinalarabic=65258;t.hehhamzaabovefinalarabic=64421;t.hehhamzaaboveisolatedarabic=64420;t.hehinitialaltonearabic=64424;t.hehinitialarabic=65259;t.hehiragana=12408;t.hehmedialaltonearabic=64425;t.hehmedialarabic=65260;t.heiseierasquare=13179;t.hekatakana=12504;t.hekatakanahalfwidth=65421;t.hekutaarusquare=13110;t.henghook=615;t.herutusquare=13113;t.het=1495;t.hethebrew=1495;t.hhook=614;t.hhooksuperior=689;t.hieuhacirclekorean=12923;t.hieuhaparenkorean=12827;t.hieuhcirclekorean=12909;t.hieuhkorean=12622;t.hieuhparenkorean=12813;t.hihiragana=12402;t.hikatakana=12498;t.hikatakanahalfwidth=65419;t.hiriq=1460;t.hiriq14=1460;t.hiriq21=1460;t.hiriq2d=1460;t.hiriqhebrew=1460;t.hiriqnarrowhebrew=1460;t.hiriqquarterhebrew=1460;t.hiriqwidehebrew=1460;t.hlinebelow=7830;t.hmonospace=65352;t.hoarmenian=1392;t.hohipthai=3627;t.hohiragana=12411;t.hokatakana=12507;t.hokatakanahalfwidth=65422;t.holam=1465;t.holam19=1465;t.holam26=1465;t.holam32=1465;t.holamhebrew=1465;t.holamnarrowhebrew=1465;t.holamquarterhebrew=1465;t.holamwidehebrew=1465;t.honokhukthai=3630;t.hookabovecomb=777;t.hookcmb=777;t.hookpalatalizedbelowcmb=801;t.hookretroflexbelowcmb=802;t.hoonsquare=13122;t.horicoptic=1001;t.horizontalbar=8213;t.horncmb=795;t.hotsprings=9832;t.house=8962;t.hparen=9379;t.hsuperior=688;t.hturned=613;t.huhiragana=12405;t.huiitosquare=13107;t.hukatakana=12501;t.hukatakanahalfwidth=65420;t.hungarumlaut=733;t.hungarumlautcmb=779;t.hv=405;t.hyphen=45;t.hypheninferior=63205;t.hyphenmonospace=65293;t.hyphensmall=65123;t.hyphensuperior=63206;t.hyphentwo=8208;t.i=105;t.iacute=237;t.iacyrillic=1103;t.ibengali=2439;t.ibopomofo=12583;t.ibreve=301;t.icaron=464;t.icircle=9432;t.icircumflex=238;t.icyrillic=1110;t.idblgrave=521;t.ideographearthcircle=12943;t.ideographfirecircle=12939;t.ideographicallianceparen=12863;t.ideographiccallparen=12858;t.ideographiccentrecircle=12965;t.ideographicclose=12294;t.ideographiccomma=12289;t.ideographiccommaleft=65380;t.ideographiccongratulationparen=12855;t.ideographiccorrectcircle=12963;t.ideographicearthparen=12847;t.ideographicenterpriseparen=12861;t.ideographicexcellentcircle=12957;t.ideographicfestivalparen=12864;t.ideographicfinancialcircle=12950;t.ideographicfinancialparen=12854;t.ideographicfireparen=12843;t.ideographichaveparen=12850;t.ideographichighcircle=12964;t.ideographiciterationmark=12293;t.ideographiclaborcircle=12952;t.ideographiclaborparen=12856;t.ideographicleftcircle=12967;t.ideographiclowcircle=12966;t.ideographicmedicinecircle=12969;t.ideographicmetalparen=12846;t.ideographicmoonparen=12842;t.ideographicnameparen=12852;t.ideographicperiod=12290;t.ideographicprintcircle=12958;t.ideographicreachparen=12867;t.ideographicrepresentparen=12857;t.ideographicresourceparen=12862;t.ideographicrightcircle=12968;t.ideographicsecretcircle=12953;t.ideographicselfparen=12866;t.ideographicsocietyparen=12851;t.ideographicspace=12288;t.ideographicspecialparen=12853;t.ideographicstockparen=12849;t.ideographicstudyparen=12859;t.ideographicsunparen=12848;t.ideographicsuperviseparen=12860;t.ideographicwaterparen=12844;t.ideographicwoodparen=12845;t.ideographiczero=12295;t.ideographmetalcircle=12942;t.ideographmooncircle=12938;t.ideographnamecircle=12948;t.ideographsuncircle=12944;t.ideographwatercircle=12940;t.ideographwoodcircle=12941;t.ideva=2311;t.idieresis=239;t.idieresisacute=7727;t.idieresiscyrillic=1253;t.idotbelow=7883;t.iebrevecyrillic=1239;t.iecyrillic=1077;t.ieungacirclekorean=12917;t.ieungaparenkorean=12821;t.ieungcirclekorean=12903;t.ieungkorean=12615;t.ieungparenkorean=12807;t.igrave=236;t.igujarati=2695;t.igurmukhi=2567;t.ihiragana=12356;t.ihookabove=7881;t.iibengali=2440;t.iicyrillic=1080;t.iideva=2312;t.iigujarati=2696;t.iigurmukhi=2568;t.iimatragurmukhi=2624;t.iinvertedbreve=523;t.iishortcyrillic=1081;t.iivowelsignbengali=2496;t.iivowelsigndeva=2368;t.iivowelsigngujarati=2752;t.ij=307;t.ikatakana=12452;t.ikatakanahalfwidth=65394;t.ikorean=12643;t.ilde=732;t.iluyhebrew=1452;t.imacron=299;t.imacroncyrillic=1251;t.imageorapproximatelyequal=8787;t.imatragurmukhi=2623;t.imonospace=65353;t.increment=8710;t.infinity=8734;t.iniarmenian=1387;t.integral=8747;t.integralbottom=8993;t.integralbt=8993;t.integralex=63733;t.integraltop=8992;t.integraltp=8992;t.intersection=8745;t.intisquare=13061;t.invbullet=9688;t.invcircle=9689;t.invsmileface=9787;t.iocyrillic=1105;t.iogonek=303;t.iota=953;t.iotadieresis=970;t.iotadieresistonos=912;t.iotalatin=617;t.iotatonos=943;t.iparen=9380;t.irigurmukhi=2674;t.ismallhiragana=12355;t.ismallkatakana=12451;t.ismallkatakanahalfwidth=65384;t.issharbengali=2554;t.istroke=616;t.isuperior=63213;t.iterationhiragana=12445;t.iterationkatakana=12541;t.itilde=297;t.itildebelow=7725;t.iubopomofo=12585;t.iucyrillic=1102;t.ivowelsignbengali=2495;t.ivowelsigndeva=2367;t.ivowelsigngujarati=2751;t.izhitsacyrillic=1141;t.izhitsadblgravecyrillic=1143;t.j=106;t.jaarmenian=1393;t.jabengali=2460;t.jadeva=2332;t.jagujarati=2716;t.jagurmukhi=2588;t.jbopomofo=12560;t.jcaron=496;t.jcircle=9433;t.jcircumflex=309;t.jcrossedtail=669;t.jdotlessstroke=607;t.jecyrillic=1112;t.jeemarabic=1580;t.jeemfinalarabic=65182;t.jeeminitialarabic=65183;t.jeemmedialarabic=65184;t.jeharabic=1688;t.jehfinalarabic=64395;t.jhabengali=2461;t.jhadeva=2333;t.jhagujarati=2717;t.jhagurmukhi=2589;t.jheharmenian=1403;t.jis=12292;t.jmonospace=65354;t.jparen=9381;t.jsuperior=690;t.k=107;t.kabashkircyrillic=1185;t.kabengali=2453;t.kacute=7729;t.kacyrillic=1082;t.kadescendercyrillic=1179;t.kadeva=2325;t.kaf=1499;t.kafarabic=1603;t.kafdagesh=64315;t.kafdageshhebrew=64315;t.kaffinalarabic=65242;t.kafhebrew=1499;t.kafinitialarabic=65243;t.kafmedialarabic=65244;t.kafrafehebrew=64333;t.kagujarati=2709;t.kagurmukhi=2581;t.kahiragana=12363;t.kahookcyrillic=1220;t.kakatakana=12459;t.kakatakanahalfwidth=65398;t.kappa=954;t.kappasymbolgreek=1008;t.kapyeounmieumkorean=12657;t.kapyeounphieuphkorean=12676;t.kapyeounpieupkorean=12664;t.kapyeounssangpieupkorean=12665;t.karoriisquare=13069;t.kashidaautoarabic=1600;t.kashidaautonosidebearingarabic=1600;t.kasmallkatakana=12533;t.kasquare=13188;t.kasraarabic=1616;t.kasratanarabic=1613;t.kastrokecyrillic=1183;t.katahiraprolongmarkhalfwidth=65392;t.kaverticalstrokecyrillic=1181;t.kbopomofo=12558;t.kcalsquare=13193;t.kcaron=489;t.kcedilla=311;t.kcircle=9434;t.kcommaaccent=311;t.kdotbelow=7731;t.keharmenian=1412;t.kehiragana=12369;t.kekatakana=12465;t.kekatakanahalfwidth=65401;t.kenarmenian=1391;t.kesmallkatakana=12534;t.kgreenlandic=312;t.khabengali=2454;t.khacyrillic=1093;t.khadeva=2326;t.khagujarati=2710;t.khagurmukhi=2582;t.khaharabic=1582;t.khahfinalarabic=65190;t.khahinitialarabic=65191;t.khahmedialarabic=65192;t.kheicoptic=999;t.khhadeva=2393;t.khhagurmukhi=2649;t.khieukhacirclekorean=12920;t.khieukhaparenkorean=12824;t.khieukhcirclekorean=12906;t.khieukhkorean=12619;t.khieukhparenkorean=12810;t.khokhaithai=3586;t.khokhonthai=3589;t.khokhuatthai=3587;t.khokhwaithai=3588;t.khomutthai=3675;t.khook=409;t.khorakhangthai=3590;t.khzsquare=13201;t.kihiragana=12365;t.kikatakana=12461;t.kikatakanahalfwidth=65399;t.kiroguramusquare=13077;t.kiromeetorusquare=13078;t.kirosquare=13076;t.kiyeokacirclekorean=12910;t.kiyeokaparenkorean=12814;t.kiyeokcirclekorean=12896;t.kiyeokkorean=12593;t.kiyeokparenkorean=12800;t.kiyeoksioskorean=12595;t.kjecyrillic=1116;t.klinebelow=7733;t.klsquare=13208;t.kmcubedsquare=13222;t.kmonospace=65355;t.kmsquaredsquare=13218;t.kohiragana=12371;t.kohmsquare=13248;t.kokaithai=3585;t.kokatakana=12467;t.kokatakanahalfwidth=65402;t.kooposquare=13086;t.koppacyrillic=1153;t.koreanstandardsymbol=12927;t.koroniscmb=835;t.kparen=9382;t.kpasquare=13226;t.ksicyrillic=1135;t.ktsquare=13263;t.kturned=670;t.kuhiragana=12367;t.kukatakana=12463;t.kukatakanahalfwidth=65400;t.kvsquare=13240;t.kwsquare=13246;t.l=108;t.labengali=2482;t.lacute=314;t.ladeva=2354;t.lagujarati=2738;t.lagurmukhi=2610;t.lakkhangyaothai=3653;t.lamaleffinalarabic=65276;t.lamalefhamzaabovefinalarabic=65272;t.lamalefhamzaaboveisolatedarabic=65271;t.lamalefhamzabelowfinalarabic=65274;t.lamalefhamzabelowisolatedarabic=65273;t.lamalefisolatedarabic=65275;t.lamalefmaddaabovefinalarabic=65270;t.lamalefmaddaaboveisolatedarabic=65269;t.lamarabic=1604;t.lambda=955;t.lambdastroke=411;t.lamed=1500;t.lameddagesh=64316;t.lameddageshhebrew=64316;t.lamedhebrew=1500;t.lamfinalarabic=65246;t.lamhahinitialarabic=64714;t.laminitialarabic=65247;t.lamjeeminitialarabic=64713;t.lamkhahinitialarabic=64715;t.lamlamhehisolatedarabic=65010;t.lammedialarabic=65248;t.lammeemhahinitialarabic=64904;t.lammeeminitialarabic=64716;t.largecircle=9711;t.lbar=410;t.lbelt=620;t.lbopomofo=12556;t.lcaron=318;t.lcedilla=316;t.lcircle=9435;t.lcircumflexbelow=7741;t.lcommaaccent=316;t.ldot=320;t.ldotaccent=320;t.ldotbelow=7735;t.ldotbelowmacron=7737;t.leftangleabovecmb=794;t.lefttackbelowcmb=792;t.less=60;t.lessequal=8804;t.lessequalorgreater=8922;t.lessmonospace=65308;t.lessorequivalent=8818;t.lessorgreater=8822;t.lessoverequal=8806;t.lesssmall=65124;t.lezh=622;t.lfblock=9612;t.lhookretroflex=621;t.lira=8356;t.liwnarmenian=1388;t.lj=457;t.ljecyrillic=1113;t.ll=63168;t.lladeva=2355;t.llagujarati=2739;t.llinebelow=7739;t.llladeva=2356;t.llvocalicbengali=2529;t.llvocalicdeva=2401;t.llvocalicvowelsignbengali=2531;t.llvocalicvowelsigndeva=2403;t.lmiddletilde=619;t.lmonospace=65356;t.lmsquare=13264;t.lochulathai=3628;t.logicaland=8743;t.logicalnot=172;t.logicalnotreversed=8976;t.logicalor=8744;t.lolingthai=3621;t.longs=383;t.lowlinecenterline=65102;t.lowlinecmb=818;t.lowlinedashed=65101;t.lozenge=9674;t.lparen=9383;t.lslash=322;t.lsquare=8467;t.lsuperior=63214;t.ltshade=9617;t.luthai=3622;t.lvocalicbengali=2444;t.lvocalicdeva=2316;t.lvocalicvowelsignbengali=2530;t.lvocalicvowelsigndeva=2402;t.lxsquare=13267;t.m=109;t.mabengali=2478;t.macron=175;t.macronbelowcmb=817;t.macroncmb=772;t.macronlowmod=717;t.macronmonospace=65507;t.macute=7743;t.madeva=2350;t.magujarati=2734;t.magurmukhi=2606;t.mahapakhhebrew=1444;t.mahapakhlefthebrew=1444;t.mahiragana=12414;t.maichattawalowleftthai=63637;t.maichattawalowrightthai=63636;t.maichattawathai=3659;t.maichattawaupperleftthai=63635;t.maieklowleftthai=63628;t.maieklowrightthai=63627;t.maiekthai=3656;t.maiekupperleftthai=63626;t.maihanakatleftthai=63620;t.maihanakatthai=3633;t.maitaikhuleftthai=63625;t.maitaikhuthai=3655;t.maitholowleftthai=63631;t.maitholowrightthai=63630;t.maithothai=3657;t.maithoupperleftthai=63629;t.maitrilowleftthai=63634;t.maitrilowrightthai=63633;t.maitrithai=3658;t.maitriupperleftthai=63632;t.maiyamokthai=3654;t.makatakana=12510;t.makatakanahalfwidth=65423;t.male=9794;t.mansyonsquare=13127;t.maqafhebrew=1470;t.mars=9794;t.masoracirclehebrew=1455;t.masquare=13187;t.mbopomofo=12551;t.mbsquare=13268;t.mcircle=9436;t.mcubedsquare=13221;t.mdotaccent=7745;t.mdotbelow=7747;t.meemarabic=1605;t.meemfinalarabic=65250;t.meeminitialarabic=65251;t.meemmedialarabic=65252;t.meemmeeminitialarabic=64721;t.meemmeemisolatedarabic=64584;t.meetorusquare=13133;t.mehiragana=12417;t.meizierasquare=13182;t.mekatakana=12513;t.mekatakanahalfwidth=65426;t.mem=1502;t.memdagesh=64318;t.memdageshhebrew=64318;t.memhebrew=1502;t.menarmenian=1396;t.merkhahebrew=1445;t.merkhakefulahebrew=1446;t.merkhakefulalefthebrew=1446;t.merkhalefthebrew=1445;t.mhook=625;t.mhzsquare=13202;t.middledotkatakanahalfwidth=65381;t.middot=183;t.mieumacirclekorean=12914;t.mieumaparenkorean=12818;t.mieumcirclekorean=12900;t.mieumkorean=12609;t.mieumpansioskorean=12656;t.mieumparenkorean=12804;t.mieumpieupkorean=12654;t.mieumsioskorean=12655;t.mihiragana=12415;t.mikatakana=12511;t.mikatakanahalfwidth=65424;t.minus=8722;t.minusbelowcmb=800;t.minuscircle=8854;t.minusmod=727;t.minusplus=8723;t.minute=8242;t.miribaarusquare=13130;t.mirisquare=13129;t.mlonglegturned=624;t.mlsquare=13206;t.mmcubedsquare=13219;t.mmonospace=65357;t.mmsquaredsquare=13215;t.mohiragana=12418;t.mohmsquare=13249;t.mokatakana=12514;t.mokatakanahalfwidth=65427;t.molsquare=13270;t.momathai=3617;t.moverssquare=13223;t.moverssquaredsquare=13224;t.mparen=9384;t.mpasquare=13227;t.mssquare=13235;t.msuperior=63215;t.mturned=623;t.mu=181;t.mu1=181;t.muasquare=13186;t.muchgreater=8811;t.muchless=8810;t.mufsquare=13196;t.mugreek=956;t.mugsquare=13197;t.muhiragana=12416;t.mukatakana=12512;t.mukatakanahalfwidth=65425;t.mulsquare=13205;t.multiply=215;t.mumsquare=13211;t.munahhebrew=1443;t.munahlefthebrew=1443;t.musicalnote=9834;t.musicalnotedbl=9835;t.musicflatsign=9837;t.musicsharpsign=9839;t.mussquare=13234;t.muvsquare=13238;t.muwsquare=13244;t.mvmegasquare=13241;t.mvsquare=13239;t.mwmegasquare=13247;t.mwsquare=13245;t.n=110;t.nabengali=2472;t.nabla=8711;t.nacute=324;t.nadeva=2344;t.nagujarati=2728;t.nagurmukhi=2600;t.nahiragana=12394;t.nakatakana=12490;t.nakatakanahalfwidth=65413;t.napostrophe=329;t.nasquare=13185;t.nbopomofo=12555;t.nbspace=160;t.ncaron=328;t.ncedilla=326;t.ncircle=9437;t.ncircumflexbelow=7755;t.ncommaaccent=326;t.ndotaccent=7749;t.ndotbelow=7751;t.nehiragana=12397;t.nekatakana=12493;t.nekatakanahalfwidth=65416;t.newsheqelsign=8362;t.nfsquare=13195;t.ngabengali=2457;t.ngadeva=2329;t.ngagujarati=2713;t.ngagurmukhi=2585;t.ngonguthai=3591;t.nhiragana=12435;t.nhookleft=626;t.nhookretroflex=627;t.nieunacirclekorean=12911;t.nieunaparenkorean=12815;t.nieuncieuckorean=12597;t.nieuncirclekorean=12897;t.nieunhieuhkorean=12598;t.nieunkorean=12596;t.nieunpansioskorean=12648;t.nieunparenkorean=12801;t.nieunsioskorean=12647;t.nieuntikeutkorean=12646;t.nihiragana=12395;t.nikatakana=12491;t.nikatakanahalfwidth=65414;t.nikhahitleftthai=63641;t.nikhahitthai=3661;t.nine=57;t.ninearabic=1641;t.ninebengali=2543;t.ninecircle=9320;t.ninecircleinversesansserif=10130;t.ninedeva=2415;t.ninegujarati=2799;t.ninegurmukhi=2671;t.ninehackarabic=1641;t.ninehangzhou=12329;t.nineideographicparen=12840;t.nineinferior=8329;t.ninemonospace=65305;t.nineoldstyle=63289;t.nineparen=9340;t.nineperiod=9360;t.ninepersian=1785;t.nineroman=8568;t.ninesuperior=8313;t.nineteencircle=9330;t.nineteenparen=9350;t.nineteenperiod=9370;t.ninethai=3673;t.nj=460;t.njecyrillic=1114;t.nkatakana=12531;t.nkatakanahalfwidth=65437;t.nlegrightlong=414;t.nlinebelow=7753;t.nmonospace=65358;t.nmsquare=13210;t.nnabengali=2467;t.nnadeva=2339;t.nnagujarati=2723;t.nnagurmukhi=2595;t.nnnadeva=2345;t.nohiragana=12398;t.nokatakana=12494;t.nokatakanahalfwidth=65417;t.nonbreakingspace=160;t.nonenthai=3603;t.nonuthai=3609;t.noonarabic=1606;t.noonfinalarabic=65254;t.noonghunnaarabic=1722;t.noonghunnafinalarabic=64415;t.nooninitialarabic=65255;t.noonjeeminitialarabic=64722;t.noonjeemisolatedarabic=64587;t.noonmedialarabic=65256;t.noonmeeminitialarabic=64725;t.noonmeemisolatedarabic=64590;t.noonnoonfinalarabic=64653;t.notcontains=8716;t.notelement=8713;t.notelementof=8713;t.notequal=8800;t.notgreater=8815;t.notgreaternorequal=8817;t.notgreaternorless=8825;t.notidentical=8802;t.notless=8814;t.notlessnorequal=8816;t.notparallel=8742;t.notprecedes=8832;t.notsubset=8836;t.notsucceeds=8833;t.notsuperset=8837;t.nowarmenian=1398;t.nparen=9385;t.nssquare=13233;t.nsuperior=8319;t.ntilde=241;t.nu=957;t.nuhiragana=12396;t.nukatakana=12492;t.nukatakanahalfwidth=65415;t.nuktabengali=2492;t.nuktadeva=2364;t.nuktagujarati=2748;t.nuktagurmukhi=2620;t.numbersign=35;t.numbersignmonospace=65283;t.numbersignsmall=65119;t.numeralsigngreek=884;t.numeralsignlowergreek=885;t.numero=8470;t.nun=1504;t.nundagesh=64320;t.nundageshhebrew=64320;t.nunhebrew=1504;t.nvsquare=13237;t.nwsquare=13243;t.nyabengali=2462;t.nyadeva=2334;t.nyagujarati=2718;t.nyagurmukhi=2590;t.o=111;t.oacute=243;t.oangthai=3629;t.obarred=629;t.obarredcyrillic=1257;t.obarreddieresiscyrillic=1259;t.obengali=2451;t.obopomofo=12571;t.obreve=335;t.ocandradeva=2321;t.ocandragujarati=2705;t.ocandravowelsigndeva=2377;t.ocandravowelsigngujarati=2761;t.ocaron=466;t.ocircle=9438;t.ocircumflex=244;t.ocircumflexacute=7889;t.ocircumflexdotbelow=7897;t.ocircumflexgrave=7891;t.ocircumflexhookabove=7893;t.ocircumflextilde=7895;t.ocyrillic=1086;t.odblacute=337;t.odblgrave=525;t.odeva=2323;t.odieresis=246;t.odieresiscyrillic=1255;t.odotbelow=7885;t.oe=339;t.oekorean=12634;t.ogonek=731;t.ogonekcmb=808;t.ograve=242;t.ogujarati=2707;t.oharmenian=1413;t.ohiragana=12362;t.ohookabove=7887;t.ohorn=417;t.ohornacute=7899;t.ohorndotbelow=7907;t.ohorngrave=7901;t.ohornhookabove=7903;t.ohorntilde=7905;t.ohungarumlaut=337;t.oi=419;t.oinvertedbreve=527;t.okatakana=12458;t.okatakanahalfwidth=65397;t.okorean=12631;t.olehebrew=1451;t.omacron=333;t.omacronacute=7763;t.omacrongrave=7761;t.omdeva=2384;t.omega=969;t.omega1=982;t.omegacyrillic=1121;t.omegalatinclosed=631;t.omegaroundcyrillic=1147;t.omegatitlocyrillic=1149;t.omegatonos=974;t.omgujarati=2768;t.omicron=959;t.omicrontonos=972;t.omonospace=65359;t.one=49;t.onearabic=1633;t.onebengali=2535;t.onecircle=9312;t.onecircleinversesansserif=10122;t.onedeva=2407;t.onedotenleader=8228;t.oneeighth=8539;t.onefitted=63196;t.onegujarati=2791;t.onegurmukhi=2663;t.onehackarabic=1633;t.onehalf=189;t.onehangzhou=12321;t.oneideographicparen=12832;t.oneinferior=8321;t.onemonospace=65297;t.onenumeratorbengali=2548;t.oneoldstyle=63281;t.oneparen=9332;t.oneperiod=9352;t.onepersian=1777;t.onequarter=188;t.oneroman=8560;t.onesuperior=185;t.onethai=3665;t.onethird=8531;t.oogonek=491;t.oogonekmacron=493;t.oogurmukhi=2579;t.oomatragurmukhi=2635;t.oopen=596;t.oparen=9386;t.openbullet=9702;t.option=8997;t.ordfeminine=170;t.ordmasculine=186;t.orthogonal=8735;t.oshortdeva=2322;t.oshortvowelsigndeva=2378;t.oslash=248;t.oslashacute=511;t.osmallhiragana=12361;t.osmallkatakana=12457;t.osmallkatakanahalfwidth=65387;t.ostrokeacute=511;t.osuperior=63216;t.otcyrillic=1151;t.otilde=245;t.otildeacute=7757;t.otildedieresis=7759;t.oubopomofo=12577;t.overline=8254;t.overlinecenterline=65098;t.overlinecmb=773;t.overlinedashed=65097;t.overlinedblwavy=65100;t.overlinewavy=65099;t.overscore=175;t.ovowelsignbengali=2507;t.ovowelsigndeva=2379;t.ovowelsigngujarati=2763;t.p=112;t.paampssquare=13184;t.paasentosquare=13099;t.pabengali=2474;t.pacute=7765;t.padeva=2346;t.pagedown=8671;t.pageup=8670;t.pagujarati=2730;t.pagurmukhi=2602;t.pahiragana=12401;t.paiyannoithai=3631;t.pakatakana=12497;t.palatalizationcyrilliccmb=1156;t.palochkacyrillic=1216;t.pansioskorean=12671;t.paragraph=182;t.parallel=8741;t.parenleft=40;t.parenleftaltonearabic=64830;t.parenleftbt=63725;t.parenleftex=63724;t.parenleftinferior=8333;t.parenleftmonospace=65288;t.parenleftsmall=65113;t.parenleftsuperior=8317;t.parenlefttp=63723;t.parenleftvertical=65077;t.parenright=41;t.parenrightaltonearabic=64831;t.parenrightbt=63736;t.parenrightex=63735;t.parenrightinferior=8334;t.parenrightmonospace=65289;t.parenrightsmall=65114;t.parenrightsuperior=8318;t.parenrighttp=63734;t.parenrightvertical=65078;t.partialdiff=8706;t.paseqhebrew=1472;t.pashtahebrew=1433;t.pasquare=13225;t.patah=1463;t.patah11=1463;t.patah1d=1463;t.patah2a=1463;t.patahhebrew=1463;t.patahnarrowhebrew=1463;t.patahquarterhebrew=1463;t.patahwidehebrew=1463;t.pazerhebrew=1441;t.pbopomofo=12550;t.pcircle=9439;t.pdotaccent=7767;t.pe=1508;t.pecyrillic=1087;t.pedagesh=64324;t.pedageshhebrew=64324;t.peezisquare=13115;t.pefinaldageshhebrew=64323;t.peharabic=1662;t.peharmenian=1402;t.pehebrew=1508;t.pehfinalarabic=64343;t.pehinitialarabic=64344;t.pehiragana=12410;t.pehmedialarabic=64345;t.pekatakana=12506;t.pemiddlehookcyrillic=1191;t.perafehebrew=64334;t.percent=37;t.percentarabic=1642;t.percentmonospace=65285;t.percentsmall=65130;t.period=46;t.periodarmenian=1417;t.periodcentered=183;t.periodhalfwidth=65377;t.periodinferior=63207;t.periodmonospace=65294;t.periodsmall=65106;t.periodsuperior=63208;t.perispomenigreekcmb=834;t.perpendicular=8869;t.perthousand=8240;t.peseta=8359;t.pfsquare=13194;t.phabengali=2475;t.phadeva=2347;t.phagujarati=2731;t.phagurmukhi=2603;t.phi=966;t.phi1=981;t.phieuphacirclekorean=12922;t.phieuphaparenkorean=12826;t.phieuphcirclekorean=12908;t.phieuphkorean=12621;t.phieuphparenkorean=12812;t.philatin=632;t.phinthuthai=3642;t.phisymbolgreek=981;t.phook=421;t.phophanthai=3614;t.phophungthai=3612;t.phosamphaothai=3616;t.pi=960;t.pieupacirclekorean=12915;t.pieupaparenkorean=12819;t.pieupcieuckorean=12662;t.pieupcirclekorean=12901;t.pieupkiyeokkorean=12658;t.pieupkorean=12610;t.pieupparenkorean=12805;t.pieupsioskiyeokkorean=12660;t.pieupsioskorean=12612;t.pieupsiostikeutkorean=12661;t.pieupthieuthkorean=12663;t.pieuptikeutkorean=12659;t.pihiragana=12404;t.pikatakana=12500;t.pisymbolgreek=982;t.piwrarmenian=1411;t.planckover2pi=8463;t.planckover2pi1=8463;t.plus=43;t.plusbelowcmb=799;t.pluscircle=8853;t.plusminus=177;t.plusmod=726;t.plusmonospace=65291;t.plussmall=65122;t.plussuperior=8314;t.pmonospace=65360;t.pmsquare=13272;t.pohiragana=12413;t.pointingindexdownwhite=9759;t.pointingindexleftwhite=9756;t.pointingindexrightwhite=9758;t.pointingindexupwhite=9757;t.pokatakana=12509;t.poplathai=3611;t.postalmark=12306;t.postalmarkface=12320;t.pparen=9387;t.precedes=8826;t.prescription=8478;t.primemod=697;t.primereversed=8245;t.product=8719;t.projective=8965;t.prolongedkana=12540;t.propellor=8984;t.propersubset=8834;t.propersuperset=8835;t.proportion=8759;t.proportional=8733;t.psi=968;t.psicyrillic=1137;t.psilipneumatacyrilliccmb=1158;t.pssquare=13232;t.puhiragana=12407;t.pukatakana=12503;t.pvsquare=13236;t.pwsquare=13242;t.q=113;t.qadeva=2392;t.qadmahebrew=1448;t.qafarabic=1602;t.qaffinalarabic=65238;t.qafinitialarabic=65239;t.qafmedialarabic=65240;t.qamats=1464;t.qamats10=1464;t.qamats1a=1464;t.qamats1c=1464;t.qamats27=1464;t.qamats29=1464;t.qamats33=1464;t.qamatsde=1464;t.qamatshebrew=1464;t.qamatsnarrowhebrew=1464;t.qamatsqatanhebrew=1464;t.qamatsqatannarrowhebrew=1464;t.qamatsqatanquarterhebrew=1464;t.qamatsqatanwidehebrew=1464;t.qamatsquarterhebrew=1464;t.qamatswidehebrew=1464;t.qarneyparahebrew=1439;t.qbopomofo=12561;t.qcircle=9440;t.qhook=672;t.qmonospace=65361;t.qof=1511;t.qofdagesh=64327;t.qofdageshhebrew=64327;t.qofhebrew=1511;t.qparen=9388;t.quarternote=9833;t.qubuts=1467;t.qubuts18=1467;t.qubuts25=1467;t.qubuts31=1467;t.qubutshebrew=1467;t.qubutsnarrowhebrew=1467;t.qubutsquarterhebrew=1467;t.qubutswidehebrew=1467;t.question=63;t.questionarabic=1567;t.questionarmenian=1374;t.questiondown=191;t.questiondownsmall=63423;t.questiongreek=894;t.questionmonospace=65311;t.questionsmall=63295;t.quotedbl=34;t.quotedblbase=8222;t.quotedblleft=8220;t.quotedblmonospace=65282;t.quotedblprime=12318;t.quotedblprimereversed=12317;t.quotedblright=8221;t.quoteleft=8216;t.quoteleftreversed=8219;t.quotereversed=8219;t.quoteright=8217;t.quoterightn=329;t.quotesinglbase=8218;t.quotesingle=39;t.quotesinglemonospace=65287;t.r=114;t.raarmenian=1404;t.rabengali=2480;t.racute=341;t.radeva=2352;t.radical=8730;t.radicalex=63717;t.radoverssquare=13230;t.radoverssquaredsquare=13231;t.radsquare=13229;t.rafe=1471;t.rafehebrew=1471;t.ragujarati=2736;t.ragurmukhi=2608;t.rahiragana=12425;t.rakatakana=12521;t.rakatakanahalfwidth=65431;t.ralowerdiagonalbengali=2545;t.ramiddlediagonalbengali=2544;t.ramshorn=612;t.ratio=8758;t.rbopomofo=12566;t.rcaron=345;t.rcedilla=343;t.rcircle=9441;t.rcommaaccent=343;t.rdblgrave=529;t.rdotaccent=7769;t.rdotbelow=7771;t.rdotbelowmacron=7773;t.referencemark=8251;t.reflexsubset=8838;t.reflexsuperset=8839;t.registered=174;t.registersans=63720;t.registerserif=63194;t.reharabic=1585;t.reharmenian=1408;t.rehfinalarabic=65198;t.rehiragana=12428;t.rekatakana=12524;t.rekatakanahalfwidth=65434;t.resh=1512;t.reshdageshhebrew=64328;t.reshhebrew=1512;t.reversedtilde=8765;t.reviahebrew=1431;t.reviamugrashhebrew=1431;t.revlogicalnot=8976;t.rfishhook=638;t.rfishhookreversed=639;t.rhabengali=2525;t.rhadeva=2397;t.rho=961;t.rhook=637;t.rhookturned=635;t.rhookturnedsuperior=693;t.rhosymbolgreek=1009;t.rhotichookmod=734;t.rieulacirclekorean=12913;t.rieulaparenkorean=12817;t.rieulcirclekorean=12899;t.rieulhieuhkorean=12608;t.rieulkiyeokkorean=12602;t.rieulkiyeoksioskorean=12649;t.rieulkorean=12601;t.rieulmieumkorean=12603;t.rieulpansioskorean=12652;t.rieulparenkorean=12803;t.rieulphieuphkorean=12607;t.rieulpieupkorean=12604;t.rieulpieupsioskorean=12651;t.rieulsioskorean=12605;t.rieulthieuthkorean=12606;t.rieultikeutkorean=12650;t.rieulyeorinhieuhkorean=12653;t.rightangle=8735;t.righttackbelowcmb=793;t.righttriangle=8895;t.rihiragana=12426;t.rikatakana=12522;t.rikatakanahalfwidth=65432;t.ring=730;t.ringbelowcmb=805;t.ringcmb=778;t.ringhalfleft=703;t.ringhalfleftarmenian=1369;t.ringhalfleftbelowcmb=796;t.ringhalfleftcentered=723;t.ringhalfright=702;t.ringhalfrightbelowcmb=825;t.ringhalfrightcentered=722;t.rinvertedbreve=531;t.rittorusquare=13137;t.rlinebelow=7775;t.rlongleg=636;t.rlonglegturned=634;t.rmonospace=65362;t.rohiragana=12429;t.rokatakana=12525;t.rokatakanahalfwidth=65435;t.roruathai=3619;t.rparen=9389;t.rrabengali=2524;t.rradeva=2353;t.rragurmukhi=2652;t.rreharabic=1681;t.rrehfinalarabic=64397;t.rrvocalicbengali=2528;t.rrvocalicdeva=2400;t.rrvocalicgujarati=2784;t.rrvocalicvowelsignbengali=2500;t.rrvocalicvowelsigndeva=2372;t.rrvocalicvowelsigngujarati=2756;t.rsuperior=63217;t.rtblock=9616;t.rturned=633;t.rturnedsuperior=692;t.ruhiragana=12427;t.rukatakana=12523;t.rukatakanahalfwidth=65433;t.rupeemarkbengali=2546;t.rupeesignbengali=2547;t.rupiah=63197;t.ruthai=3620;t.rvocalicbengali=2443;t.rvocalicdeva=2315;t.rvocalicgujarati=2699;t.rvocalicvowelsignbengali=2499;t.rvocalicvowelsigndeva=2371;t.rvocalicvowelsigngujarati=2755;t.s=115;t.sabengali=2488;t.sacute=347;t.sacutedotaccent=7781;t.sadarabic=1589;t.sadeva=2360;t.sadfinalarabic=65210;t.sadinitialarabic=65211;t.sadmedialarabic=65212;t.sagujarati=2744;t.sagurmukhi=2616;t.sahiragana=12373;t.sakatakana=12469;t.sakatakanahalfwidth=65403;t.sallallahoualayhewasallamarabic=65018;t.samekh=1505;t.samekhdagesh=64321;t.samekhdageshhebrew=64321;t.samekhhebrew=1505;t.saraaathai=3634;t.saraaethai=3649;t.saraaimaimalaithai=3652;t.saraaimaimuanthai=3651;t.saraamthai=3635;t.saraathai=3632;t.saraethai=3648;t.saraiileftthai=63622;t.saraiithai=3637;t.saraileftthai=63621;t.saraithai=3636;t.saraothai=3650;t.saraueeleftthai=63624;t.saraueethai=3639;t.saraueleftthai=63623;t.sarauethai=3638;t.sarauthai=3640;t.sarauuthai=3641;t.sbopomofo=12569;t.scaron=353;t.scarondotaccent=7783;t.scedilla=351;t.schwa=601;t.schwacyrillic=1241;t.schwadieresiscyrillic=1243;t.schwahook=602;t.scircle=9442;t.scircumflex=349;t.scommaaccent=537;t.sdotaccent=7777;t.sdotbelow=7779;t.sdotbelowdotaccent=7785;t.seagullbelowcmb=828;t.second=8243;t.secondtonechinese=714;t.section=167;t.seenarabic=1587;t.seenfinalarabic=65202;t.seeninitialarabic=65203;t.seenmedialarabic=65204;t.segol=1462;t.segol13=1462;t.segol1f=1462;t.segol2c=1462;t.segolhebrew=1462;t.segolnarrowhebrew=1462;t.segolquarterhebrew=1462;t.segoltahebrew=1426;t.segolwidehebrew=1462;t.seharmenian=1405;t.sehiragana=12379;t.sekatakana=12475;t.sekatakanahalfwidth=65406;t.semicolon=59;t.semicolonarabic=1563;t.semicolonmonospace=65307;t.semicolonsmall=65108;t.semivoicedmarkkana=12444;t.semivoicedmarkkanahalfwidth=65439;t.sentisquare=13090;t.sentosquare=13091;t.seven=55;t.sevenarabic=1639;t.sevenbengali=2541;t.sevencircle=9318;t.sevencircleinversesansserif=10128;t.sevendeva=2413;t.seveneighths=8542;t.sevengujarati=2797;t.sevengurmukhi=2669;t.sevenhackarabic=1639;t.sevenhangzhou=12327;t.sevenideographicparen=12838;t.seveninferior=8327;t.sevenmonospace=65303;t.sevenoldstyle=63287;t.sevenparen=9338;t.sevenperiod=9358;t.sevenpersian=1783;t.sevenroman=8566;t.sevensuperior=8311;t.seventeencircle=9328;t.seventeenparen=9348;t.seventeenperiod=9368;t.seventhai=3671;t.sfthyphen=173;t.shaarmenian=1399;t.shabengali=2486;t.shacyrillic=1096;t.shaddaarabic=1617;t.shaddadammaarabic=64609;t.shaddadammatanarabic=64606;t.shaddafathaarabic=64608;t.shaddakasraarabic=64610;t.shaddakasratanarabic=64607;t.shade=9618;t.shadedark=9619;t.shadelight=9617;t.shademedium=9618;t.shadeva=2358;t.shagujarati=2742;t.shagurmukhi=2614;t.shalshelethebrew=1427;t.shbopomofo=12565;t.shchacyrillic=1097;t.sheenarabic=1588;t.sheenfinalarabic=65206;t.sheeninitialarabic=65207;t.sheenmedialarabic=65208;t.sheicoptic=995;t.sheqel=8362;t.sheqelhebrew=8362;t.sheva=1456;t.sheva115=1456;t.sheva15=1456;t.sheva22=1456;t.sheva2e=1456;t.shevahebrew=1456;t.shevanarrowhebrew=1456;t.shevaquarterhebrew=1456;t.shevawidehebrew=1456;t.shhacyrillic=1211;t.shimacoptic=1005;t.shin=1513;t.shindagesh=64329;t.shindageshhebrew=64329;t.shindageshshindot=64300;t.shindageshshindothebrew=64300;t.shindageshsindot=64301;t.shindageshsindothebrew=64301;t.shindothebrew=1473;t.shinhebrew=1513;t.shinshindot=64298;t.shinshindothebrew=64298;t.shinsindot=64299;t.shinsindothebrew=64299;t.shook=642;t.sigma=963;t.sigma1=962;t.sigmafinal=962;t.sigmalunatesymbolgreek=1010;t.sihiragana=12375;t.sikatakana=12471;t.sikatakanahalfwidth=65404;t.siluqhebrew=1469;t.siluqlefthebrew=1469;t.similar=8764;t.sindothebrew=1474;t.siosacirclekorean=12916;t.siosaparenkorean=12820;t.sioscieuckorean=12670;t.sioscirclekorean=12902;t.sioskiyeokkorean=12666;t.sioskorean=12613;t.siosnieunkorean=12667;t.siosparenkorean=12806;t.siospieupkorean=12669;t.siostikeutkorean=12668;t.six=54;t.sixarabic=1638;t.sixbengali=2540;t.sixcircle=9317;t.sixcircleinversesansserif=10127;t.sixdeva=2412;t.sixgujarati=2796;t.sixgurmukhi=2668;t.sixhackarabic=1638;t.sixhangzhou=12326;t.sixideographicparen=12837;t.sixinferior=8326;t.sixmonospace=65302;t.sixoldstyle=63286;t.sixparen=9337;t.sixperiod=9357;t.sixpersian=1782;t.sixroman=8565;t.sixsuperior=8310;t.sixteencircle=9327;t.sixteencurrencydenominatorbengali=2553;t.sixteenparen=9347;t.sixteenperiod=9367;t.sixthai=3670;t.slash=47;t.slashmonospace=65295;t.slong=383;t.slongdotaccent=7835;t.smileface=9786;t.smonospace=65363;t.sofpasuqhebrew=1475;t.softhyphen=173;t.softsigncyrillic=1100;t.sohiragana=12381;t.sokatakana=12477;t.sokatakanahalfwidth=65407;t.soliduslongoverlaycmb=824;t.solidusshortoverlaycmb=823;t.sorusithai=3625;t.sosalathai=3624;t.sosothai=3595;t.sosuathai=3626;t.space=32;t.spacehackarabic=32;t.spade=9824;t.spadesuitblack=9824;t.spadesuitwhite=9828;t.sparen=9390;t.squarebelowcmb=827;t.squarecc=13252;t.squarecm=13213;t.squarediagonalcrosshatchfill=9641;t.squarehorizontalfill=9636;t.squarekg=13199;t.squarekm=13214;t.squarekmcapital=13262;t.squareln=13265;t.squarelog=13266;t.squaremg=13198;t.squaremil=13269;t.squaremm=13212;t.squaremsquared=13217;t.squareorthogonalcrosshatchfill=9638;t.squareupperlefttolowerrightfill=9639;t.squareupperrighttolowerleftfill=9640;t.squareverticalfill=9637;t.squarewhitewithsmallblack=9635;t.srsquare=13275;t.ssabengali=2487;t.ssadeva=2359;t.ssagujarati=2743;t.ssangcieuckorean=12617;t.ssanghieuhkorean=12677;t.ssangieungkorean=12672;t.ssangkiyeokkorean=12594;t.ssangnieunkorean=12645;t.ssangpieupkorean=12611;t.ssangsioskorean=12614;t.ssangtikeutkorean=12600;t.ssuperior=63218;t.sterling=163;t.sterlingmonospace=65505;t.strokelongoverlaycmb=822;t.strokeshortoverlaycmb=821;t.subset=8834;t.subsetnotequal=8842;t.subsetorequal=8838;t.succeeds=8827;t.suchthat=8715;t.suhiragana=12377;t.sukatakana=12473;t.sukatakanahalfwidth=65405;t.sukunarabic=1618;t.summation=8721;t.sun=9788;t.superset=8835;t.supersetnotequal=8843;t.supersetorequal=8839;t.svsquare=13276;t.syouwaerasquare=13180;t.t=116;t.tabengali=2468;t.tackdown=8868;t.tackleft=8867;t.tadeva=2340;t.tagujarati=2724;t.tagurmukhi=2596;t.taharabic=1591;t.tahfinalarabic=65218;t.tahinitialarabic=65219;t.tahiragana=12383;t.tahmedialarabic=65220;t.taisyouerasquare=13181;t.takatakana=12479;t.takatakanahalfwidth=65408;t.tatweelarabic=1600;t.tau=964;t.tav=1514;t.tavdages=64330;t.tavdagesh=64330;t.tavdageshhebrew=64330;t.tavhebrew=1514;t.tbar=359;t.tbopomofo=12554;t.tcaron=357;t.tccurl=680;t.tcedilla=355;t.tcheharabic=1670;t.tchehfinalarabic=64379;t.tchehinitialarabic=64380;t.tchehmedialarabic=64381;t.tcircle=9443;t.tcircumflexbelow=7793;t.tcommaaccent=355;t.tdieresis=7831;t.tdotaccent=7787;t.tdotbelow=7789;t.tecyrillic=1090;t.tedescendercyrillic=1197;t.teharabic=1578;t.tehfinalarabic=65174;t.tehhahinitialarabic=64674;t.tehhahisolatedarabic=64524;t.tehinitialarabic=65175;t.tehiragana=12390;t.tehjeeminitialarabic=64673;t.tehjeemisolatedarabic=64523;t.tehmarbutaarabic=1577;t.tehmarbutafinalarabic=65172;t.tehmedialarabic=65176;t.tehmeeminitialarabic=64676;t.tehmeemisolatedarabic=64526;t.tehnoonfinalarabic=64627;t.tekatakana=12486;t.tekatakanahalfwidth=65411;t.telephone=8481;t.telephoneblack=9742;t.telishagedolahebrew=1440;t.telishaqetanahebrew=1449;t.tencircle=9321;t.tenideographicparen=12841;t.tenparen=9341;t.tenperiod=9361;t.tenroman=8569;t.tesh=679;t.tet=1496;t.tetdagesh=64312;t.tetdageshhebrew=64312;t.tethebrew=1496;t.tetsecyrillic=1205;t.tevirhebrew=1435;t.tevirlefthebrew=1435;t.thabengali=2469;t.thadeva=2341;t.thagujarati=2725;t.thagurmukhi=2597;t.thalarabic=1584;t.thalfinalarabic=65196;t.thanthakhatlowleftthai=63640;t.thanthakhatlowrightthai=63639;t.thanthakhatthai=3660;t.thanthakhatupperleftthai=63638;t.theharabic=1579;t.thehfinalarabic=65178;t.thehinitialarabic=65179;t.thehmedialarabic=65180;t.thereexists=8707;t.therefore=8756;t.theta=952;t.theta1=977;t.thetasymbolgreek=977;t.thieuthacirclekorean=12921;t.thieuthaparenkorean=12825;t.thieuthcirclekorean=12907;t.thieuthkorean=12620;t.thieuthparenkorean=12811;t.thirteencircle=9324;t.thirteenparen=9344;t.thirteenperiod=9364;t.thonangmonthothai=3601;t.thook=429;t.thophuthaothai=3602;t.thorn=254;t.thothahanthai=3607;t.thothanthai=3600;t.thothongthai=3608;t.thothungthai=3606;t.thousandcyrillic=1154;t.thousandsseparatorarabic=1644;t.thousandsseparatorpersian=1644;t.three=51;t.threearabic=1635;t.threebengali=2537;t.threecircle=9314;t.threecircleinversesansserif=10124;t.threedeva=2409;t.threeeighths=8540;t.threegujarati=2793;t.threegurmukhi=2665;t.threehackarabic=1635;t.threehangzhou=12323;t.threeideographicparen=12834;t.threeinferior=8323;t.threemonospace=65299;t.threenumeratorbengali=2550;t.threeoldstyle=63283;t.threeparen=9334;t.threeperiod=9354;t.threepersian=1779;t.threequarters=190;t.threequartersemdash=63198;t.threeroman=8562;t.threesuperior=179;t.threethai=3667;t.thzsquare=13204;t.tihiragana=12385;t.tikatakana=12481;t.tikatakanahalfwidth=65409;t.tikeutacirclekorean=12912;t.tikeutaparenkorean=12816;t.tikeutcirclekorean=12898;t.tikeutkorean=12599;t.tikeutparenkorean=12802;t.tilde=732;t.tildebelowcmb=816;t.tildecmb=771;t.tildecomb=771;t.tildedoublecmb=864;t.tildeoperator=8764;t.tildeoverlaycmb=820;t.tildeverticalcmb=830;t.timescircle=8855;t.tipehahebrew=1430;t.tipehalefthebrew=1430;t.tippigurmukhi=2672;t.titlocyrilliccmb=1155;t.tiwnarmenian=1407;t.tlinebelow=7791;t.tmonospace=65364;t.toarmenian=1385;t.tohiragana=12392;t.tokatakana=12488;t.tokatakanahalfwidth=65412;t.tonebarextrahighmod=741;t.tonebarextralowmod=745;t.tonebarhighmod=742;t.tonebarlowmod=744;t.tonebarmidmod=743;t.tonefive=445;t.tonesix=389;t.tonetwo=424;t.tonos=900;t.tonsquare=13095;t.topatakthai=3599;t.tortoiseshellbracketleft=12308;t.tortoiseshellbracketleftsmall=65117;t.tortoiseshellbracketleftvertical=65081;t.tortoiseshellbracketright=12309;t.tortoiseshellbracketrightsmall=65118;t.tortoiseshellbracketrightvertical=65082;t.totaothai=3605;t.tpalatalhook=427;t.tparen=9391;t.trademark=8482;t.trademarksans=63722;t.trademarkserif=63195;t.tretroflexhook=648;t.triagdn=9660;t.triaglf=9668;t.triagrt=9658;t.triagup=9650;t.ts=678;t.tsadi=1510;t.tsadidagesh=64326;t.tsadidageshhebrew=64326;t.tsadihebrew=1510;t.tsecyrillic=1094;t.tsere=1461;t.tsere12=1461;t.tsere1e=1461;t.tsere2b=1461;t.tserehebrew=1461;t.tserenarrowhebrew=1461;t.tserequarterhebrew=1461;t.tserewidehebrew=1461;t.tshecyrillic=1115;t.tsuperior=63219;t.ttabengali=2463;t.ttadeva=2335;t.ttagujarati=2719;t.ttagurmukhi=2591;t.tteharabic=1657;t.ttehfinalarabic=64359;t.ttehinitialarabic=64360;t.ttehmedialarabic=64361;t.tthabengali=2464;t.tthadeva=2336;t.tthagujarati=2720;t.tthagurmukhi=2592;t.tturned=647;t.tuhiragana=12388;t.tukatakana=12484;t.tukatakanahalfwidth=65410;t.tusmallhiragana=12387;t.tusmallkatakana=12483;t.tusmallkatakanahalfwidth=65391;t.twelvecircle=9323;t.twelveparen=9343;t.twelveperiod=9363;t.twelveroman=8571;t.twentycircle=9331;t.twentyhangzhou=21316;t.twentyparen=9351;t.twentyperiod=9371;t.two=50;t.twoarabic=1634;t.twobengali=2536;t.twocircle=9313;t.twocircleinversesansserif=10123;t.twodeva=2408;t.twodotenleader=8229;t.twodotleader=8229;t.twodotleadervertical=65072;t.twogujarati=2792;t.twogurmukhi=2664;t.twohackarabic=1634;t.twohangzhou=12322;t.twoideographicparen=12833;t.twoinferior=8322;t.twomonospace=65298;t.twonumeratorbengali=2549;t.twooldstyle=63282;t.twoparen=9333;t.twoperiod=9353;t.twopersian=1778;t.tworoman=8561;t.twostroke=443;t.twosuperior=178;t.twothai=3666;t.twothirds=8532;t.u=117;t.uacute=250;t.ubar=649;t.ubengali=2441;t.ubopomofo=12584;t.ubreve=365;t.ucaron=468;t.ucircle=9444;t.ucircumflex=251;t.ucircumflexbelow=7799;t.ucyrillic=1091;t.udattadeva=2385;t.udblacute=369;t.udblgrave=533;t.udeva=2313;t.udieresis=252;t.udieresisacute=472;t.udieresisbelow=7795;t.udieresiscaron=474;t.udieresiscyrillic=1265;t.udieresisgrave=476;t.udieresismacron=470;t.udotbelow=7909;t.ugrave=249;t.ugujarati=2697;t.ugurmukhi=2569;t.uhiragana=12358;t.uhookabove=7911;t.uhorn=432;t.uhornacute=7913;t.uhorndotbelow=7921;t.uhorngrave=7915;t.uhornhookabove=7917;t.uhorntilde=7919;t.uhungarumlaut=369;t.uhungarumlautcyrillic=1267;t.uinvertedbreve=535;t.ukatakana=12454;t.ukatakanahalfwidth=65395;t.ukcyrillic=1145;t.ukorean=12636;t.umacron=363;t.umacroncyrillic=1263;t.umacrondieresis=7803;t.umatragurmukhi=2625;t.umonospace=65365;t.underscore=95;t.underscoredbl=8215;t.underscoremonospace=65343;t.underscorevertical=65075;t.underscorewavy=65103;t.union=8746;t.universal=8704;t.uogonek=371;t.uparen=9392;t.upblock=9600;t.upperdothebrew=1476;t.upsilon=965;t.upsilondieresis=971;t.upsilondieresistonos=944;t.upsilonlatin=650;t.upsilontonos=973;t.uptackbelowcmb=797;t.uptackmod=724;t.uragurmukhi=2675;t.uring=367;t.ushortcyrillic=1118;t.usmallhiragana=12357;t.usmallkatakana=12453;t.usmallkatakanahalfwidth=65385;t.ustraightcyrillic=1199;t.ustraightstrokecyrillic=1201;t.utilde=361;t.utildeacute=7801;t.utildebelow=7797;t.uubengali=2442;t.uudeva=2314;t.uugujarati=2698;t.uugurmukhi=2570;t.uumatragurmukhi=2626;t.uuvowelsignbengali=2498;t.uuvowelsigndeva=2370;t.uuvowelsigngujarati=2754;t.uvowelsignbengali=2497;t.uvowelsigndeva=2369;t.uvowelsigngujarati=2753;t.v=118;t.vadeva=2357;t.vagujarati=2741;t.vagurmukhi=2613;t.vakatakana=12535;t.vav=1493;t.vavdagesh=64309;t.vavdagesh65=64309;t.vavdageshhebrew=64309;t.vavhebrew=1493;t.vavholam=64331;t.vavholamhebrew=64331;t.vavvavhebrew=1520;t.vavyodhebrew=1521;t.vcircle=9445;t.vdotbelow=7807;t.vecyrillic=1074;t.veharabic=1700;t.vehfinalarabic=64363;t.vehinitialarabic=64364;t.vehmedialarabic=64365;t.vekatakana=12537;t.venus=9792;t.verticalbar=124;t.verticallineabovecmb=781;t.verticallinebelowcmb=809;t.verticallinelowmod=716;t.verticallinemod=712;t.vewarmenian=1406;t.vhook=651;t.vikatakana=12536;t.viramabengali=2509;t.viramadeva=2381;t.viramagujarati=2765;t.visargabengali=2435;t.visargadeva=2307;t.visargagujarati=2691;t.vmonospace=65366;t.voarmenian=1400;t.voicediterationhiragana=12446;t.voicediterationkatakana=12542;t.voicedmarkkana=12443;t.voicedmarkkanahalfwidth=65438;t.vokatakana=12538;t.vparen=9393;t.vtilde=7805;t.vturned=652;t.vuhiragana=12436;t.vukatakana=12532;t.w=119;t.wacute=7811;t.waekorean=12633;t.wahiragana=12431;t.wakatakana=12527;t.wakatakanahalfwidth=65436;t.wakorean=12632;t.wasmallhiragana=12430;t.wasmallkatakana=12526;t.wattosquare=13143;t.wavedash=12316;t.wavyunderscorevertical=65076;t.wawarabic=1608;t.wawfinalarabic=65262;t.wawhamzaabovearabic=1572;t.wawhamzaabovefinalarabic=65158;t.wbsquare=13277;t.wcircle=9446;t.wcircumflex=373;t.wdieresis=7813;t.wdotaccent=7815;t.wdotbelow=7817;t.wehiragana=12433;t.weierstrass=8472;t.wekatakana=12529;t.wekorean=12638;t.weokorean=12637;t.wgrave=7809;t.whitebullet=9702;t.whitecircle=9675;t.whitecircleinverse=9689;t.whitecornerbracketleft=12302;t.whitecornerbracketleftvertical=65091;t.whitecornerbracketright=12303;t.whitecornerbracketrightvertical=65092;t.whitediamond=9671;t.whitediamondcontainingblacksmalldiamond=9672;t.whitedownpointingsmalltriangle=9663;t.whitedownpointingtriangle=9661;t.whiteleftpointingsmalltriangle=9667;t.whiteleftpointingtriangle=9665;t.whitelenticularbracketleft=12310;t.whitelenticularbracketright=12311;t.whiterightpointingsmalltriangle=9657;t.whiterightpointingtriangle=9655;t.whitesmallsquare=9643;t.whitesmilingface=9786;t.whitesquare=9633;t.whitestar=9734;t.whitetelephone=9743;t.whitetortoiseshellbracketleft=12312;t.whitetortoiseshellbracketright=12313;t.whiteuppointingsmalltriangle=9653;t.whiteuppointingtriangle=9651;t.wihiragana=12432;t.wikatakana=12528;t.wikorean=12639;t.wmonospace=65367;t.wohiragana=12434;t.wokatakana=12530;t.wokatakanahalfwidth=65382;t.won=8361;t.wonmonospace=65510;t.wowaenthai=3623;t.wparen=9394;t.wring=7832;t.wsuperior=695;t.wturned=653;t.wynn=447;t.x=120;t.xabovecmb=829;t.xbopomofo=12562;t.xcircle=9447;t.xdieresis=7821;t.xdotaccent=7819;t.xeharmenian=1389;t.xi=958;t.xmonospace=65368;t.xparen=9395;t.xsuperior=739;t.y=121;t.yaadosquare=13134;t.yabengali=2479;t.yacute=253;t.yadeva=2351;t.yaekorean=12626;t.yagujarati=2735;t.yagurmukhi=2607;t.yahiragana=12420;t.yakatakana=12516;t.yakatakanahalfwidth=65428;t.yakorean=12625;t.yamakkanthai=3662;t.yasmallhiragana=12419;t.yasmallkatakana=12515;t.yasmallkatakanahalfwidth=65388;t.yatcyrillic=1123;t.ycircle=9448;t.ycircumflex=375;t.ydieresis=255;t.ydotaccent=7823;t.ydotbelow=7925;t.yeharabic=1610;t.yehbarreearabic=1746;t.yehbarreefinalarabic=64431;t.yehfinalarabic=65266;t.yehhamzaabovearabic=1574;t.yehhamzaabovefinalarabic=65162;t.yehhamzaaboveinitialarabic=65163;t.yehhamzaabovemedialarabic=65164;t.yehinitialarabic=65267;t.yehmedialarabic=65268;t.yehmeeminitialarabic=64733;t.yehmeemisolatedarabic=64600;t.yehnoonfinalarabic=64660;t.yehthreedotsbelowarabic=1745;t.yekorean=12630;t.yen=165;t.yenmonospace=65509;t.yeokorean=12629;t.yeorinhieuhkorean=12678;t.yerahbenyomohebrew=1450;t.yerahbenyomolefthebrew=1450;t.yericyrillic=1099;t.yerudieresiscyrillic=1273;t.yesieungkorean=12673;t.yesieungpansioskorean=12675;t.yesieungsioskorean=12674;t.yetivhebrew=1434;t.ygrave=7923;t.yhook=436;t.yhookabove=7927;t.yiarmenian=1397;t.yicyrillic=1111;t.yikorean=12642;t.yinyang=9775;t.yiwnarmenian=1410;t.ymonospace=65369;t.yod=1497;t.yoddagesh=64313;t.yoddageshhebrew=64313;t.yodhebrew=1497;t.yodyodhebrew=1522;t.yodyodpatahhebrew=64287;t.yohiragana=12424;t.yoikorean=12681;t.yokatakana=12520;t.yokatakanahalfwidth=65430;t.yokorean=12635;t.yosmallhiragana=12423;t.yosmallkatakana=12519;t.yosmallkatakanahalfwidth=65390;t.yotgreek=1011;t.yoyaekorean=12680;t.yoyakorean=12679;t.yoyakthai=3618;t.yoyingthai=3597;t.yparen=9396;t.ypogegrammeni=890;t.ypogegrammenigreekcmb=837;t.yr=422;t.yring=7833;t.ysuperior=696;t.ytilde=7929;t.yturned=654;t.yuhiragana=12422;t.yuikorean=12684;t.yukatakana=12518;t.yukatakanahalfwidth=65429;t.yukorean=12640;t.yusbigcyrillic=1131;t.yusbigiotifiedcyrillic=1133;t.yuslittlecyrillic=1127;t.yuslittleiotifiedcyrillic=1129;t.yusmallhiragana=12421;t.yusmallkatakana=12517;t.yusmallkatakanahalfwidth=65389;t.yuyekorean=12683;t.yuyeokorean=12682;t.yyabengali=2527;t.yyadeva=2399;t.z=122;t.zaarmenian=1382;t.zacute=378;t.zadeva=2395;t.zagurmukhi=2651;t.zaharabic=1592;t.zahfinalarabic=65222;t.zahinitialarabic=65223;t.zahiragana=12374;t.zahmedialarabic=65224;t.zainarabic=1586;t.zainfinalarabic=65200;t.zakatakana=12470;t.zaqefgadolhebrew=1429;t.zaqefqatanhebrew=1428;t.zarqahebrew=1432;t.zayin=1494;t.zayindagesh=64310;t.zayindageshhebrew=64310;t.zayinhebrew=1494;t.zbopomofo=12567;t.zcaron=382;t.zcircle=9449;t.zcircumflex=7825;t.zcurl=657;t.zdot=380;t.zdotaccent=380;t.zdotbelow=7827;t.zecyrillic=1079;t.zedescendercyrillic=1177;t.zedieresiscyrillic=1247;t.zehiragana=12380;t.zekatakana=12476;t.zero=48;t.zeroarabic=1632;t.zerobengali=2534;t.zerodeva=2406;t.zerogujarati=2790;t.zerogurmukhi=2662;t.zerohackarabic=1632;t.zeroinferior=8320;t.zeromonospace=65296;t.zerooldstyle=63280;t.zeropersian=1776;t.zerosuperior=8304;t.zerothai=3664;t.zerowidthjoiner=65279;t.zerowidthnonjoiner=8204;t.zerowidthspace=8203;t.zeta=950;t.zhbopomofo=12563;t.zhearmenian=1386;t.zhebrevecyrillic=1218;t.zhecyrillic=1078;t.zhedescendercyrillic=1175;t.zhedieresiscyrillic=1245;t.zihiragana=12376;t.zikatakana=12472;t.zinorhebrew=1454;t.zlinebelow=7829;t.zmonospace=65370;t.zohiragana=12382;t.zokatakana=12478;t.zparen=9397;t.zretroflexhook=656;t.zstroke=438;t.zuhiragana=12378;t.zukatakana=12474;t[".notdef"]=0;t.angbracketleftbig=9001;t.angbracketleftBig=9001;t.angbracketleftbigg=9001;t.angbracketleftBigg=9001;t.angbracketrightBig=9002;t.angbracketrightbig=9002;t.angbracketrightBigg=9002;t.angbracketrightbigg=9002;t.arrowhookleft=8618;t.arrowhookright=8617;t.arrowlefttophalf=8636;t.arrowleftbothalf=8637;t.arrownortheast=8599;t.arrownorthwest=8598;t.arrowrighttophalf=8640;t.arrowrightbothalf=8641;t.arrowsoutheast=8600;t.arrowsouthwest=8601;t.backslashbig=8726;t.backslashBig=8726;t.backslashBigg=8726;t.backslashbigg=8726;t.bardbl=8214;t.bracehtipdownleft=65079;t.bracehtipdownright=65079;t.bracehtipupleft=65080;t.bracehtipupright=65080;t.braceleftBig=123;t.braceleftbig=123;t.braceleftbigg=123;t.braceleftBigg=123;t.bracerightBig=125;t.bracerightbig=125;t.bracerightbigg=125;t.bracerightBigg=125;t.bracketleftbig=91;t.bracketleftBig=91;t.bracketleftbigg=91;t.bracketleftBigg=91;t.bracketrightBig=93;t.bracketrightbig=93;t.bracketrightbigg=93;t.bracketrightBigg=93;t.ceilingleftbig=8968;t.ceilingleftBig=8968;t.ceilingleftBigg=8968;t.ceilingleftbigg=8968;t.ceilingrightbig=8969;t.ceilingrightBig=8969;t.ceilingrightbigg=8969;t.ceilingrightBigg=8969;t.circledotdisplay=8857;t.circledottext=8857;t.circlemultiplydisplay=8855;t.circlemultiplytext=8855;t.circleplusdisplay=8853;t.circleplustext=8853;t.contintegraldisplay=8750;t.contintegraltext=8750;t.coproductdisplay=8720;t.coproducttext=8720;t.floorleftBig=8970;t.floorleftbig=8970;t.floorleftbigg=8970;t.floorleftBigg=8970;t.floorrightbig=8971;t.floorrightBig=8971;t.floorrightBigg=8971;t.floorrightbigg=8971;t.hatwide=770;t.hatwider=770;t.hatwidest=770;t.intercal=7488;t.integraldisplay=8747;t.integraltext=8747;t.intersectiondisplay=8898;t.intersectiontext=8898;t.logicalanddisplay=8743;t.logicalandtext=8743;t.logicalordisplay=8744;t.logicalortext=8744;t.parenleftBig=40;t.parenleftbig=40;t.parenleftBigg=40;t.parenleftbigg=40;t.parenrightBig=41;t.parenrightbig=41;t.parenrightBigg=41;t.parenrightbigg=41;t.prime=8242;t.productdisplay=8719;t.producttext=8719;t.radicalbig=8730;t.radicalBig=8730;t.radicalBigg=8730;t.radicalbigg=8730;t.radicalbt=8730;t.radicaltp=8730;t.radicalvertex=8730;t.slashbig=47;t.slashBig=47;t.slashBigg=47;t.slashbigg=47;t.summationdisplay=8721;t.summationtext=8721;t.tildewide=732;t.tildewider=732;t.tildewidest=732;t.uniondisplay=8899;t.unionmultidisplay=8846;t.unionmultitext=8846;t.unionsqdisplay=8852;t.unionsqtext=8852;t.uniontext=8899;t.vextenddouble=8741;t.vextendsingle=8739}));r.getGlyphsUnicode=l;var u=(0,c.getLookupTableFactory)((function(t){t.space=32;t.a1=9985;t.a2=9986;t.a202=9987;t.a3=9988;t.a4=9742;t.a5=9990;t.a119=9991;t.a118=9992;t.a117=9993;t.a11=9755;t.a12=9758;t.a13=9996;t.a14=9997;t.a15=9998;t.a16=9999;t.a105=1e4;t.a17=10001;t.a18=10002;t.a19=10003;t.a20=10004;t.a21=10005;t.a22=10006;t.a23=10007;t.a24=10008;t.a25=10009;t.a26=10010;t.a27=10011;t.a28=10012;t.a6=10013;t.a7=10014;t.a8=10015;t.a9=10016;t.a10=10017;t.a29=10018;t.a30=10019;t.a31=10020;t.a32=10021;t.a33=10022;t.a34=10023;t.a35=9733;t.a36=10025;t.a37=10026;t.a38=10027;t.a39=10028;t.a40=10029;t.a41=10030;t.a42=10031;t.a43=10032;t.a44=10033;t.a45=10034;t.a46=10035;t.a47=10036;t.a48=10037;t.a49=10038;t.a50=10039;t.a51=10040;t.a52=10041;t.a53=10042;t.a54=10043;t.a55=10044;t.a56=10045;t.a57=10046;t.a58=10047;t.a59=10048;t.a60=10049;t.a61=10050;t.a62=10051;t.a63=10052;t.a64=10053;t.a65=10054;t.a66=10055;t.a67=10056;t.a68=10057;t.a69=10058;t.a70=10059;t.a71=9679;t.a72=10061;t.a73=9632;t.a74=10063;t.a203=10064;t.a75=10065;t.a204=10066;t.a76=9650;t.a77=9660;t.a78=9670;t.a79=10070;t.a81=9687;t.a82=10072;t.a83=10073;t.a84=10074;t.a97=10075;t.a98=10076;t.a99=10077;t.a100=10078;t.a101=10081;t.a102=10082;t.a103=10083;t.a104=10084;t.a106=10085;t.a107=10086;t.a108=10087;t.a112=9827;t.a111=9830;t.a110=9829;t.a109=9824;t.a120=9312;t.a121=9313;t.a122=9314;t.a123=9315;t.a124=9316;t.a125=9317;t.a126=9318;t.a127=9319;t.a128=9320;t.a129=9321;t.a130=10102;t.a131=10103;t.a132=10104;t.a133=10105;t.a134=10106;t.a135=10107;t.a136=10108;t.a137=10109;t.a138=10110;t.a139=10111;t.a140=10112;t.a141=10113;t.a142=10114;t.a143=10115;t.a144=10116;t.a145=10117;t.a146=10118;t.a147=10119;t.a148=10120;t.a149=10121;t.a150=10122;t.a151=10123;t.a152=10124;t.a153=10125;t.a154=10126;t.a155=10127;t.a156=10128;t.a157=10129;t.a158=10130;t.a159=10131;t.a160=10132;t.a161=8594;t.a163=8596;t.a164=8597;t.a196=10136;t.a165=10137;t.a192=10138;t.a166=10139;t.a167=10140;t.a168=10141;t.a169=10142;t.a170=10143;t.a171=10144;t.a172=10145;t.a173=10146;t.a162=10147;t.a174=10148;t.a175=10149;t.a176=10150;t.a177=10151;t.a178=10152;t.a179=10153;t.a193=10154;t.a180=10155;t.a199=10156;t.a181=10157;t.a200=10158;t.a182=10159;t.a201=10161;t.a183=10162;t.a184=10163;t.a197=10164;t.a185=10165;t.a194=10166;t.a198=10167;t.a186=10168;t.a195=10169;t.a187=10170;t.a188=10171;t.a189=10172;t.a190=10173;t.a191=10174;t.a89=10088;t.a90=10089;t.a93=10090;t.a94=10091;t.a91=10092;t.a92=10093;t.a205=10094;t.a85=10095;t.a206=10096;t.a86=10097;t.a87=10098;t.a88=10099;t.a95=10100;t.a96=10101;t[".notdef"]=0}));r.getDingbatsGlyphsUnicode=u},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});r.clearUnicodeCaches=function clearUnicodeCaches(){h.clear()};r.getCharUnicodeCategory=function getCharUnicodeCategory(t){var r=h.get(t);if(r)return r;var o=t.match(u),c={isWhitespace:!(null==o||!o[1]),isZeroWidthDiacritic:!(null==o||!o[2]),isInvisibleFormatMark:!(null==o||!o[3])};h.set(t,c);return c};r.getUnicodeForGlyph=function getUnicodeForGlyph(t,r){var o=r[t];if(void 0!==o)return o;if(!t)return-1;if("u"===t[0]){var c,l=t.length;if(7===l&&"n"===t[1]&&"i"===t[2])c=t.substring(3);else{if(!(l>=5&&l<=7))return-1;c=t.substring(1)}if(c===c.toUpperCase()&&(o=parseInt(c,16))>=0)return o}return-1};r.getUnicodeRangeFor=function getUnicodeRangeFor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(-1!==r)for(var o=l[r],c=0,u=o.length;c<u;c+=2)if(t>=o[c]&&t<=o[c+1])return r;for(var h=0,d=l.length;h<d;h++)for(var y=l[h],g=0,v=y.length;g<v;g+=2)if(t>=y[g]&&t<=y[g+1])return h;return-1};r.mapSpecialUnicodeValues=function mapSpecialUnicodeValues(t){if(t>=65520&&t<=65535)return 0;if(t>=62976&&t<=63743)return c()[t]||t;if(173===t)return 45;return t};o(346);o(347);o(123);o(348);o(293);o(137);o(335);o(143);o(175);o(177);o(313);var c=(0,o(343).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}));var l=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];var u=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),h=new Map},(t,r,o)=>{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;r.isKnownFontName=function isKnownFontName(t){var r=(0,l.normalizeFontName)(t);return!!(u()[r]||d()[r]||y()[r]||g()[r])};var c=o(343),l=o(417),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.ArialMT="Helvetica";t["Arial-BoldItalicMT"]="Helvetica-BoldOblique";t["Arial-BoldMT"]="Helvetica-Bold";t["Arial-ItalicMT"]="Helvetica-Oblique";t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique";t["Arial-BoldMT-Bold"]="Helvetica-Bold";t["Arial-ItalicMT-Italic"]="Helvetica-Oblique";t.ArialUnicodeMS="Helvetica";t["ArialUnicodeMS-Bold"]="Helvetica-Bold";t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique";t["ArialUnicodeMS-Italic"]="Helvetica-Oblique";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="LiberationSans-Regular.ttf";t["Helvetica-Bold"]="LiberationSans-Bold.ttf";t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf";t["Helvetica-Oblique"]="LiberationSans-Italic.ttf";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.Impact="Helvetica";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"}));r.getNonStdFontMap=d;var y=(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=y;var g=(0,c.getLookupTableFactory)((function(t){t.Dingbats=!0;t.Symbol=!0;t.ZapfDingbats=!0;t.Wingdings=!0;t["Wingdings-Bold"]=!0;t["Wingdings-Regular"]=!0}));r.getSymbolsFonts=g;var v=(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[179]=8220;t[180]=8221;t[181]=8216;t[182]=8217;t[200]=193;t[203]=205;t[207]=211;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[672]=1488;t[673]=1489;t[674]=1490;t[675]=1491;t[676]=1492;t[677]=1493;t[678]=1494;t[679]=1495;t[680]=1496;t[681]=1497;t[682]=1498;t[683]=1499;t[684]=1500;t[685]=1501;t[686]=1502;t[687]=1503;t[688]=1504;t[689]=1505;t[690]=1506;t[691]=1507;t[692]=1508;t[693]=1509;t[694]=1510;t[695]=1511;t[696]=1512;t[697]=1513;t[698]=1514;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=v;var m=(0,c.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));r.getSupplementalGlyphMapForArialBlack=m;var _=(0,c.getLookupTableFactory)((function(t){t[1]=32;t[4]=65;t[5]=192;t[6]=193;t[9]=196;t[17]=66;t[18]=67;t[21]=268;t[24]=68;t[28]=69;t[29]=200;t[30]=201;t[32]=282;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[48]=204;t[49]=205;t[58]=74;t[60]=75;t[62]=76;t[68]=77;t[69]=78;t[75]=79;t[76]=210;t[80]=214;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[109]=220;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[259]=224;t[260]=225;t[263]=228;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[275]=269;t[282]=100;t[286]=101;t[287]=232;t[288]=233;t[290]=283;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[350]=236;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[382]=242;t[383]=243;t[386]=246;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[442]=252;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=_},(t,r,o)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.ToUnicodeMap=r.IdentityToUnicodeMap=void 0;o(389);o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.CFFFont=void 0;o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(413),l=o(417),u=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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=c.cidToGidMap,h=c.cMap,d=o.charset.charset;if(c.composite){var y,g;if((null==u?void 0:u.length)>0){y=Object.create(null);for(var v=0,m=u.length;v<m;v++){var _=u[v];void 0!==_&&(y[_]=v)}}t=Object.create(null);if(o.isCIDFont)for(r=0;r<d.length;r++){var w,k=d[r];g=h.charCodeOf(k);void 0!==(null===(w=y)||void 0===w?void 0:w[g])&&(g=y[g]);t[g]=r}else for(r=0;r<o.charStrings.count;r++)t[g=h.charCodeOf(r)]=r;return t}var S=o.encoding?o.encoding.encoding:null;c.isInternalFont&&(S=c.defaultEncoding);return t=(0,l.type1FontGlyphMapping)(c,S,d)}},{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 y=c[d];y&&(u[h]=y)}}u.length>0&&(this.properties.builtInEncoding=u)}}}]);return CFFFont}();r.CFFFont=h},(t,r,o)=>{o(2);o(54);o(56);o(104);o(183);o(105);o(134);o(305);o(306);o(113);o(175);o(177);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;o(290);o(345);o(363);o(372);o(296);o(364);o(373);o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);var c=o(304),l=o(413),u=o(418),h=o(416),d=o(358);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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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),y=getUint16(t,r+d);if(4===y){getUint16(t,r+d+2);var g=getUint16(t,r+d+6)>>1;u=r+d+14;l=[];for(h=0;h<g;h++,u+=2)l[h]={end:getUint16(t,u)};u+=2;for(h=0;h<g;h++,u+=2)l[h].start=getUint16(t,u);for(h=0;h<g;h++,u+=2)l[h].idDelta=getUint16(t,u);for(h=0;h<g;h++,u+=2){var v=getUint16(t,u);if(0!==v){l[h].ids=[];for(var m=0,_=l[h].end-l[h].start+1;m<_;m++){l[h].ids[m]=getUint16(t,u+v);v+=2}}}return l}if(12===y){var w=getUint32(t,r+d+12);u=r+d+16;l=[];for(h=0;h<w;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(y))}function parseCff(t,r,o,c){var u,h,y=new l.CFFParser(new d.Stream(t,r,o-r),{},c).parse();return{glyphs:y.charStrings.objects,subrs:null===(u=y.topDict.privateDict)||void 0===u||null===(u=u.subrsIndex)||void 0===u?void 0:u.objects,gsubrs:null===(h=y.globalSubrIndex)||void 0===h?void 0:h.objects,isCFFCIDFont:y.isCIDFont,fdSelect:y.fdSelect,fdArray:y.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 y=getUint16(t,l+2);l+=4;var g=void 0,v=void 0;if(1&c){if(2&c){g=getInt16(t,l);v=getInt16(t,l+2)}else{g=getUint16(t,l);v=getUint16(t,l+2)}l+=4}else if(2&c){g=getInt8(t,l++);v=getInt8(t,l++)}else{g=t[l++];v=t[l++]}if(2&c){h=g;d=v}else{h=0;d=0}var m=1,_=1,w=0,k=0;if(8&c){m=_=getFloat214(t,l);l+=2}else if(64&c){m=getFloat214(t,l);_=getFloat214(t,l+2);l+=4}else if(128&c){m=getFloat214(t,l);w=getFloat214(t,l+2);k=getFloat214(t,l+4);_=getFloat214(t,l+6);l+=8}var S=o.glyphs[y];if(S){r.push({cmd:"save"},{cmd:"transform",args:[m,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.at(-1)+1,E=[];E.length<T;){var R=1;8&(c=t[l++])&&(R+=t[l++]);for(;R-- >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 M=0;for(l=0;l<u;l++){var j=O[l],L=E.slice(M,j+1);if(1&L[0].flags)L.push(L[0]);else if(1&L.at(-1).flags)L.unshift(L.at(-1));else{var D={flags:1,x:(L[0].x+L.at(-1).x)/2,y:(L[0].y+L.at(-1).y)/2};L.unshift(D);L.push(D)}moveTo(L[0].x,L[0].y);for(C=1,x=L.length;C<x;C++)if(1&L[C].flags)lineTo(L[C].x,L[C].y);else if(1&L[C+1].flags){quadraticCurveTo(L[C].x,L[C].y,L[C+1].x,L[C+1].y);C++}else quadraticCurveTo(L[C].x,L[C].y,(L[C].x+L[C+1].x)/2,(L[C].y+L[C+1].y)/2);M=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,y=0,g=0;!function parse(t){for(var v=0;v<t.length;){var m=!1,_=t[v++],w=void 0,k=void 0,S=void 0,C=void 0,x=void 0,O=void 0,T=void 0,E=void 0;switch(_){case 1:case 3:case 18:case 23:g+=u.length>>1;m=!0;break;case 4:y+=u.pop();moveTo(d,y);m=!0;break;case 5:for(;u.length>0;){d+=u.shift();y+=u.shift();lineTo(d,y)}break;case 6:for(;u.length>0;){lineTo(d+=u.shift(),y);if(0===u.length)break;y+=u.shift();lineTo(d,y)}break;case 7:for(;u.length>0;){y+=u.shift();lineTo(d,y);if(0===u.length)break;lineTo(d+=u.shift(),y)}break;case 8:for(;u.length>0;){w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d,y)}break;case 10:T=u.pop();E=null;if(o.isCFFCIDFont){var R=o.fdSelect.getFDIndex(l);if(R>=0&&R<o.fdArray.length){var M,j=o.fdArray[R],L=void 0;null!==(M=j.privateDict)&&void 0!==M&&M.subrsIndex&&(L=j.privateDict.subrsIndex.objects);L&&(E=L[T+=getSubroutineBias(L)])}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(_=t[v++]){case 34:k=(w=d+u.shift())+u.shift();x=y+u.shift();d=k+u.shift();bezierCurveTo(w,y,k,x,d,x);k=(w=d+u.shift())+u.shift();d=k+u.shift();bezierCurveTo(w,x,k,y,d,y);break;case 35:w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d,y);w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d,y);u.pop();break;case 36:bezierCurveTo(w=d+u.shift(),x=y+u.shift(),k=w+u.shift(),O=x+u.shift(),d=k+u.shift(),O);bezierCurveTo(w=d+u.shift(),O,k=w+u.shift(),O+u.shift(),d=k+u.shift(),y);break;case 37:var D=d,N=y;w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d,y);w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k;y=C;Math.abs(d-D)>Math.abs(y-N)?d+=u.shift():y+=u.shift();bezierCurveTo(w,S,k,C,d,y);break;default:throw new c.FormatError("unknown operator: 12 ".concat(_))}break;case 14:if(u.length>=4){var U=u.pop(),G=u.pop();y=u.pop();d=u.pop();r.push({cmd:"save"},{cmd:"translate",args:[d,y]});var $=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[U]]));compileCharString(o.glyphs[$.glyphId],r,o,$.glyphId);r.push({cmd:"restore"});$=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[G]]));compileCharString(o.glyphs[$.glyphId],r,o,$.glyphId)}return;case 19:case 20:v+=(g+=u.length>>1)+7>>3;m=!0;break;case 21:y+=u.pop();moveTo(d+=u.pop(),y);m=!0;break;case 22:moveTo(d+=u.pop(),y);m=!0;break;case 24:for(;u.length>2;){w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d,y)}d+=u.shift();y+=u.shift();lineTo(d,y);break;case 25:for(;u.length>6;){d+=u.shift();y+=u.shift();lineTo(d,y)}w=d+u.shift();S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d,y);break;case 26:u.length%2&&(d+=u.shift());for(;u.length>0;){w=d;S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k;y=C+u.shift();bezierCurveTo(w,S,k,C,d,y)}break;case 27:u.length%2&&(y+=u.shift());for(;u.length>0;)bezierCurveTo(w=d+u.shift(),S=y,k=w+u.shift(),C=S+u.shift(),d=k+u.shift(),y=C);break;case 28:u.push((t[v]<<24|t[v+1]<<16)>>16);v+=2;break;case 29:T=u.pop()+o.gsubrsBias;(E=o.gsubrs[T])&&parse(E);break;case 30:for(;u.length>0;){w=d;S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+(1===u.length?u.shift():0);bezierCurveTo(w,S,k,C,d,y);if(0===u.length)break;w=d+u.shift();S=y;k=w+u.shift();C=S+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d=k+(1===u.length?u.shift():0),y)}break;case 31:for(;u.length>0;){w=d+u.shift();S=y;k=w+u.shift();C=S+u.shift();y=C+u.shift();bezierCurveTo(w,S,k,C,d=k+(1===u.length?u.shift():0),y);if(0===u.length)break;w=d;S=y+u.shift();k=w+u.shift();C=S+u.shift();d=k+u.shift();y=C+(1===u.length?u.shift():0);bezierCurveTo(w,S,k,C,d,y)}break;default:if(_<32)throw new c.FormatError("unknown operator: ".concat(_));if(_<247)u.push(_-139);else if(_<251)u.push(256*(_-247)+t[v++]+108);else if(_<255)u.push(256*-(_-251)-t[v++]-108);else{u.push((t[v]<<24|t[v+1]<<16|t[v+2]<<8|t[v+3])/65536);v+=4}}m&&(u.length=0)}}(t)}var y=[],g=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]=y;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 y;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}(),v=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}(g),m=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}(g),_=function(){function FontRendererFactory(){_classCallCheck(this,FontRendererFactory)}_createClass(FontRendererFactory,null,[{key:"create",value:function create(t,r){for(var o,l,u,h,d,y,g=new Uint8Array(t.data),_=getUint16(g,4),w=0,k=12;w<_;w++,k+=16){var S=(0,c.bytesToString)(g.subarray(k,k+4)),C=getUint32(g,k+8),x=getUint32(g,k+12);switch(S){case"cmap":o=parseCmap(g,C);break;case"glyf":l=g.subarray(C,C+x);break;case"loca":u=g.subarray(C,C+x);break;case"head":y=getUint16(g,C+18);d=getUint16(g,C+50);break;case"CFF ":h=parseCff(g,C,C+x,r)}}if(l){var O=y?[1/y,0,0,1/y,0,0]:t.fontMatrix;return new v(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 y=l(r,d);u.push(t.subarray(h,y));h=y}return u}(l,u,d),o,O)}return new m(h,o,t.fontMatrix,t.glyphNameMap)}}]);return FontRendererFactory}();r.FontRendererFactory=_},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});r.getMetrics=r.getFontBasicMetrics=void 0;o(363);o(364);var c=o(343),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,o)=>{o(293);o(114);o(175);o(123);o(129);o(113);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.GlyfTable=void 0;o(143);o(290);o(377);o(137);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(2);o(54);o(56);o(104);o(183);o(105);o(372);o(296);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(t,r)||_unsupportedIterableToArray(t,r)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var c=function(){function GlyfTable(t){var r=t.glyfTable,o=t.isGlyphLocationsLong,c=t.locaTable,u=t.numGlyphs;_classCallCheck(this,GlyfTable);this.glyphs=[];for(var h=new DataView(c.buffer,c.byteOffset,c.byteLength),d=new DataView(r.buffer,r.byteOffset,r.byteLength),y=o?4:2,g=o?h.getUint32(0):2*h.getUint16(0),v=0,m=0;m<u;m++){v+=y;var _=o?h.getUint32(v):2*h.getUint16(v);if(_!==g){var w=l.parse(g,d);this.glyphs.push(w);g=_}else this.glyphs.push(new l({}))}}_createClass(GlyfTable,[{key:"getSize",value:function getSize(){return this.glyphs.reduce((function(t,r){return t+(r.getSize()+3&-4)}),0)}},{key:"write",value:function write(){var t=this.getSize(),r=new DataView(new ArrayBuffer(t)),o=t>131070,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,y=_createForOfIteratorHelper(this.glyphs);try{for(y.s();!(u=y.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){y.e(t)}finally{y.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=c;var l=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(u.parse(t,r),2),c=o[0],l=o[1];t+=c;if(l.numberOfContours<0){for(var h=[];;){var g=_slicedToArray(y.parse(t,r),2),v=g[0],m=g[1];t+=v;h.push(m);if(!(32&m.flags))break}return new Glyph({header:l,composites:h})}return new Glyph({header:l,simple:d.parse(t,r,l.numberOfContours)})}}]);return Glyph}(),u=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}(),h=_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})),d=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 y=u.xCoordinates[h],g=u.yCoordinates[h],v=Math.abs(y-o);v>255?r+=2:v>0&&(r+=1);o=y;(v=Math.abs(g-c))>255?r+=2:v>0&&(r+=1);c=g}}}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,y=0,g=_createForOfIteratorHelper(this.contours);try{for(g.s();!(o=g.n()).done;){for(var v=o.value,m=0,_=v.xCoordinates.length;m<_;m++){var w=v.flags[m],k=v.xCoordinates[m],S=k-d;if(0===S){w|=16;l.push(0)}else{var C=Math.abs(S);if(C<=255){w|=S>=0?18:2;l.push(C)}else l.push(S)}d=k;var x=v.yCoordinates[m];if(0===(S=x-y)){w|=32;u.push(0)}else{var O=Math.abs(S);if(O<=255){w|=S>=0?36:4;u.push(O)}else u.push(S)}y=x;h.push(w)}r.setUint16(t,l.length-1);t+=2}}catch(t){g.e(t)}finally{g.f()}r.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}for(var T=0,E=h;T<E.length;T++){var R=E[T];r.setUint8(t++,R)}for(var M=0,j=l.length;M<j;M++){var L=l[M],D=h[M];if(2&D)r.setUint8(t++,L);else if(!(16&D)){r.setInt16(t,L);t+=2}}for(var N=0,U=u.length;N<U;N++){var G=u[N],$=h[N];if(4&$)r.setUint8(t++,G);else if(!(32&$)){r.setInt16(t,G);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 u=r.getUint16(t);t+=2;c.push(u)}var d=c[o-1]+1,y=r.getUint16(t);t+=2;var g=new Uint8Array(r).slice(t,t+y);t+=y;for(var v=[],m=0;m<d;t++,m++){var _=r.getUint8(t);v.push(_);if(8&_){var w=r.getUint8(++t);_^=8;for(var k=0;k<w;k++)v.push(_);m+=w}}for(var S=[],C=[],x=[],O=[],T=[],E=0,R=0,M=0;M<d;M++){var j=v[M];if(2&j){var L=r.getUint8(t++);R+=16&j?L:-L;C.push(R)}else if(16&j)C.push(R);else{R+=r.getInt16(t);t+=2;C.push(R)}if(c[E]===M){E++;S.push(C);C=[]}}R=0;E=0;for(var D=0;D<d;D++){var N=v[D];if(4&N){var U=r.getUint8(t++);R+=32&N?U:-U;x.push(R)}else if(32&N)x.push(R);else{R+=r.getInt16(t);t+=2;x.push(R)}O.push(1&N|64&N);if(c[E]===D){C=S[E];E++;T.push(new h({flags:O,xCoordinates:C,yCoordinates:x}));x=[];O=[]}}return new SimpleGlyph({contours:T,instructions:g})}}]);return SimpleGlyph}(),y=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 y=null;if(256&h){var g=r.getUint16(t);t+=2;y=new Uint8Array(r).slice(t,t+g);t+=g}return[t-l,new CompositeGlyph({flags:h,glyphIndex:d,argument1:o,argument2:c,transf:u,instructions:y})]}}]);return CompositeGlyph}()},(t,r,o)=>{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)}o(296);o(293);o(114);o(175);o(123);o(129);o(56);o(104);o(113);o(177);o(2);o(54);o(105);Object.defineProperty(r,"__esModule",{value:!0});r.OpenTypeFileBuilder=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(327);o(357);o(290);o(183);var c=o(343),l=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 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{var u,h=_createForOfIteratorHelper(o);try{for(h.s();!(u=h.n()).done;){var d=u.value;t[r++]=255&d}}catch(t){h.e(t)}finally{h.f()}}}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,y,g,v=o.length,m=12+16*v,_=[m];for(u=0;u<v;u++){m+=((y=r[o[u]]).length+3&-4)>>>0;_.push(m)}var w=new Uint8Array(m);for(u=0;u<v;u++){y=r[o[u]];writeData(w,_[u],y)}"true"===t&&(t=(0,l.string32)(65536));w[0]=255&t.charCodeAt(0);w[1]=255&t.charCodeAt(1);w[2]=255&t.charCodeAt(2);w[3]=255&t.charCodeAt(3);writeInt16(w,4,v);var k=OpenTypeFileBuilder.getSearchParams(v,16);writeInt16(w,6,k.range);writeInt16(w,8,k.entry);writeInt16(w,10,k.rangeShift);m=12;for(u=0;u<v;u++){g=o[u];w[m]=255&g.charCodeAt(0);w[m+1]=255&g.charCodeAt(1);w[m+2]=255&g.charCodeAt(2);w[m+3]=255&g.charCodeAt(3);var S=0;for(h=_[u],d=_[u+1];h<d;h+=4){S=S+(0,c.readUint32)(w,h)>>>0}writeInt32(w,m+4,S);writeInt32(w,m+8,_[u]);writeInt32(w,m+12,r[g].length);m+=16}return w}},{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)=>{o(296);o(293);o(114);o(175);o(123);o(129);o(113);o(137);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.Type1Font=void 0;o(290);o(389);o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(413),l=o(304),u=o(417),h=o(343),d=o(358),y=o(428);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=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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function findBlock(t,r,o){for(var c=t.length,l=r.length,u=c-l,d=o,y=!1;d<u;){for(var g=0;g<l&&t[d+g]===r[g];)g++;if(g>=l){d+=g;for(;d<c&&(0,h.isWhiteSpace)(t[d]);)d++;y=!0;break}d++}return{found:y,length:d}}var g=function(){function Type1Font(t,r,o){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Type1Font);var c=o.length1,h=(o.length2,r.peekBytes(6)),g=128===h[0]&&1===h[1];if(g){r.skip(6);c=h[5]<<24|h[4]<<16|h[3]<<8|h[2]}var v=function getHeaderBlock(t,r){var o,c,u,h,y=[101,101,120,101,99],g=t.pos;try{c=(o=t.getBytes(r)).length}catch(t){}if(c===r&&(u=findBlock(o,y,r-2*y.length)).found&&u.length===r)return{stream:new d.Stream(o),length:r};(0,l.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=g;for(;0!==(u=findBlock(t.peekBytes(2048),y,0)).length;){t.pos+=u.length;if(u.found){h=t.pos-g;break}}t.pos=g;if(h)return{stream:new d.Stream(t.getBytes(h)),length:h};(0,l.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new d.Stream(t.getBytes(r)),length:r}}(r,c);new y.Type1Parser(v.stream,!1,u.SEAC_ANALYSIS_ENABLED).extractFontHeader(o);g&&(h=r.getBytes(6))[5]<<24|h[4]<<16|h[3]<<8|h[2];var m=function getEexecBlock(t,r){var o=t.getBytes();if(0===o.length)throw new l.FormatError("getEexecBlock - no font program found.");return{stream:new d.Stream(o),length:o.length}}(r),_=new y.Type1Parser(m.stream,!0,u.SEAC_ANALYSIS_ENABLED).extractFontProgram(o);for(var w in _.properties)o[w]=_.properties[w];var k=_.charstrings,S=this.getType2Charstrings(k),C=this.getType2Subrs(_.subrs);this.charstrings=k;this.data=this.wrap(t,S,this.charstrings,C,o);this.seacs=this.getSeacs(_.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(){var t,r=[".notdef"],o=_createForOfIteratorHelper(this.charstrings);try{for(o.s();!(t=o.n()).done;){var c=t.value.glyphName;r.push(c)}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"getGlyphMapping",value:function getGlyphMapping(t){var r=this.charstrings;if(t.composite){for(var o=Object.create(null),c=0,l=r.length;c<l;c++){o[t.cMap.charCodeOf(c)]=c+1}return o}var h,d,y=[".notdef"];for(d=0;d<r.length;d++)y.push(r[d].glyphName);var g=t.builtInEncoding;if(g){h=Object.create(null);for(var v in g)(d=y.indexOf(g[v]))>=0&&(h[v]=d)}return(0,u.type1FontGlyphMapping)(t,h,y)}},{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){var r,o=[],c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var l=r.value;o.push(l.charstring)}}catch(t){c.e(t)}finally{c.f()}return o}},{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 y=new c.CFFStrings;y.add("Version 0.11");y.add("See original notice");y.add(t);y.add(t);y.add("Medium");h.strings=y;h.globalSubrIndex=new c.CFFIndex;var g,v,m=r.length,_=[".notdef"];for(g=0;g<m;g++){var w=o[g].glyphName;-1===c.CFFStandardStrings.indexOf(w)&&y.add(w);_.push(w)}h.charset=new c.CFFCharset(!1,0,_);var k=new c.CFFIndex;k.add([139,14]);for(g=0;g<m;g++)k.add(r[g]);h.charStrings=k;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(g=0,v=C.length;g<v;g++){var x=C[g];if(x in u.privateData){var O=u.privateData[x];if(Array.isArray(O))for(var T=O.length-1;T>0;T--)O[T]-=O[T-1];S.setByName(x,O)}}h.topDict.privateDict=S;var E=new c.CFFIndex;for(g=0,v=l.length;g<v;g++)E.add(l[g]);S.subrsIndex=E;return new c.CFFCompiler(h).compile()}}]);return Type1Font}();r.Type1Font=g},(t,r,o)=>{o(113);o(175);o(177);o(114);o(293);Object.defineProperty(r,"__esModule",{value:!0});r.Type1Parser=void 0;o(290);o(363);o(364);o(361);o(105);o(2);o(54);o(56);o(104);o(143);o(183);o(137);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(296);o(373);o(389);o(123);o(129);var c=o(416),l=o(343),u=o(358),h=o(304);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)||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)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var 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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var d=[4],y=[5],g=[6],v=[7],m=[8],_=[12,35],w=[14],k=[21],S=[22],C=[30],x=[31],O=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(t,r,o){for(var c,l,u,O=t.length,T=!1,E=0;E<O;E++){var R=t[E];if(R<32){12===R&&(R=(R<<8)+t[++E]);switch(R){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 M=this.stack.pop();this.stack.push(0,M);break}T=this.executeCommand(1,d);break;case 5:T=this.executeCommand(2,y);break;case 6:T=this.executeCommand(1,g);break;case 7:T=this.executeCommand(1,v);break;case 8:T=this.executeCommand(6,m);break;case 10:if(this.stack.length<1){T=!0;break}if(!r[u=this.stack.pop()]){T=!0;break}T=this.convert(r[u],r,o);break;case 11:return T;case 13:if(this.stack.length<2){T=!0;break}c=this.stack.pop();l=this.stack.pop();this.lsb=l;this.width=c;this.stack.push(c,l);T=this.executeCommand(2,S);break;case 14:this.output.push(w[0]);break;case 21:if(this.flexing)break;T=this.executeCommand(2,k);break;case 22:if(this.flexing){this.stack.push(0);break}T=this.executeCommand(1,S);break;case 30:T=this.executeCommand(4,C);break;case 31:T=this.executeCommand(4,x);break;case 3078:if(o){var j=this.stack.at(-5);this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-j;T=this.executeCommand(0,w)}else T=this.executeCommand(4,w);break;case 3079:if(this.stack.length<4){T=!0;break}this.stack.pop();c=this.stack.pop();var L=this.stack.pop();l=this.stack.pop();this.lsb=l;this.width=c;this.stack.push(c,l,L);T=this.executeCommand(3,k);break;case 3084:if(this.stack.length<2){T=!0;break}var D=this.stack.pop(),N=this.stack.pop();this.stack.push(N/D);break;case 3088:if(this.stack.length<2){T=!0;break}u=this.stack.pop();var U=this.stack.pop();if(0===u&&3===U){var G=this.stack.splice(-17,17);this.stack.push(G[2]+G[0],G[3]+G[1],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14]);T=this.executeCommand(13,_,!0);this.flexing=!1;this.stack.push(G[15],G[16])}else 1===u&&0===U&&(this.flexing=!0);break;case 3089:break;default:(0,h.warn)('Unknown type 1 charstring command of "'+R+'"')}if(T)break}else{R<=246?R-=139:R=R<=250?256*(R-247)+t[++E]+108:R<=254?-256*(R-251)-t[++E]-108:(255&t[++E])<<24|(255&t[++E])<<16|(255&t[++E])<<8|(255&t[++E])<<0;this.stack.push(R)}}return T}},{key:"executeCommand",value:function executeCommand(t,r,o){var c,l=this.stack.length;if(t>l)return!0;for(var u=l-t,h=u;h<l;h++){var d=this.stack[h];if(Number.isInteger(d))this.output.push(28,d>>8&255,255&d);else{d=65536*d|0;this.output.push(255,d>>24&255,d>>16&255,d>>8&255,255&d)}}(c=this.output).push.apply(c,_toConsumableArray(r));o?this.stack.splice(u,t):this.stack.length=0;return!1}}]);return Type1CharString}();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 y=t[c];d[l]=y^u>>8;u=52845*(y+u)+22719&65535}return d}function isSpecial(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}var T=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 y=t[c];if(isHexDigit(y)){c++;for(var g=void 0;c<h&&!isHexDigit(g=t[c]);)c++;if(c<h){var v=parseInt(String.fromCharCode(y,g),16);d[l++]=v^u>>8;u=52845*(v+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,d,y,g={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 v=this.getToken();h=this.readInt();this.getToken();d=h>0?r.getBytes(h):new Uint8Array(0);y=g.properties.privateData.lenIV;var m=this.readCharStrings(d,y);this.nextChar();"noaccess"===(u=this.getToken())?this.getToken():"/"===u&&this.prevChar();c.push({glyph:v,encoded:m})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){var _=this.readInt();h=this.readInt();this.getToken();d=h>0?r.getBytes(h):new Uint8Array(0);y=g.properties.privateData.lenIV;var w=this.readCharStrings(d,y);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();o[_]=w}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var k=this.readNumberArray();k.length>0&&k.length,0;break;case"StemSnapH":case"StemSnapV":g.properties.privateData[u]=this.readNumberArray();break;case"StdHW":case"StdVW":g.properties.privateData[u]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":g.properties.privateData[u]=this.readNumber();break;case"ExpansionFactor":g.properties.privateData[u]=this.readNumber()||.06;break;case"ForceBold":g.properties.privateData[u]=this.readBoolean()}for(var S=0,C=c;S<C.length;S++){var x=C[S],T=x.encoded,E=x.glyph,R=new O,M=R.convert(T,o,this.seacAnalysisEnabled),j=R.output;M&&(j=[14]);var L={glyphName:E,charstring:j,width:R.width,lsb:R.lsb,seac:R.seac};".notdef"===E?g.charstrings.unshift(L):g.charstrings.push(L);if(t.builtInEncoding){var D=t.builtInEncoding.indexOf(E);D>-1&&void 0===t.widths[D]&&D>=t.firstChar&&D<=t.lastChar&&(t.widths[D]=R.width)}}return g}},{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 y=this.readInt();this.getToken();var g=this.getToken();u[y]=g;this.getToken()}}else u=(0,c.getEncoding)(l);t.builtInEncoding=u;break;case"FontBBox":var v=this.readNumberArray();t.ascent=Math.max(v[3],v[1]);t.descent=Math.min(v[1],v[3]);t.ascentScaled=!0}}}]);return Type1Parser}();r.Type1Parser=T},(t,r,o)=>{o(113);o(175);o(177);o(134);o(305);o(306);o(296);o(293);o(114);o(123);o(129);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"),y=r.get("PaintType"),g=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,y,g]};o(2);o(54);o(56);o(104);o(143);o(183);o(105);o(379);o(137);o(382);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(290);o(373);o(363);o(364);o(398);o(191);var c=o(304),l=o(354),u=o(380),h=o(343);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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?Object.setPrototypeOf.bind():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.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return 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,_toPropertyKey(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 _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}var d=2,y=3,g=4,v=5,m=6,_=7,w=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 k=t instanceof l.BaseStream?t.dict:t,C=k.get("ShadingType");try{switch(C){case d:case y:return new S(k,r,o,u,w);case g:case v:case m:case _:return new O(t,r,o,u,w);default:throw new c.FormatError("Unsupported ShadingType: "+C)}}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)(t);return new T}}}]);return Pattern}();r.Pattern=w;var k=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.")}}]);return BaseShading}();_defineProperty(k,"SMALL_NUMBER",1e-6);var S=function(t){_inherits(RadialAxialShading,t);var r=_createSuper(RadialAxialShading);function RadialAxialShading(t,o,l,h,d){var g;_classCallCheck(this,RadialAxialShading);(g=r.call(this)).coordsArr=t.getArray("Coords");g.shadingType=t.get("ShadingType");var v=u.ColorSpace.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:o,resources:l,pdfFunctionFactory:h,localColorSpaceCache:d}),m=t.getArray("BBox");g.bbox=Array.isArray(m)&&4===m.length?c.Util.normalizeRect(m):null;var _=0,w=1;if(t.has("Domain")){var S=t.getArray("Domain");_=S[0];w=S[1]}var C=!1,x=!1;if(t.has("Extend")){var O=t.getArray("Extend");C=O[0];x=O[1]}if(!(g.shadingType!==y||C&&x)){var T=_slicedToArray(g.coordsArr,6),E=T[0],R=T[1],M=T[2],j=T[3],L=T[4],D=T[5],N=Math.hypot(E-j,R-L);M<=D+N&&D<=M+N&&(0,c.warn)("Unsupported radial gradient.")}g.extendStart=C;g.extendEnd=x;var U=t.getRaw("Function"),G=h.createFromArray(U),$=(w-_)/840,H=g.colorStops=[];if(_>=w||$<=0){(0,c.info)("Bad shading domain.");return _possibleConstructorReturn(g)}var X,q=new Float32Array(v.numComps),z=new Float32Array(1),W=0;z[0]=_;G(z,0,q,0);var V=v.getRgb(q,0),K=c.Util.makeHexColor(V[0],V[1],V[2]);H.push([0,K]);var Y=1;z[0]=_+$;G(z,0,q,0);for(var J=v.getRgb(q,0),Z=J[0]-V[0]+1,Q=J[1]-V[1]+1,ee=J[2]-V[2]+1,te=J[0]-V[0]-1,re=J[1]-V[1]-1,ne=J[2]-V[2]-1,ae=2;ae<840;ae++){z[0]=_+ae*$;G(z,0,q,0);X=v.getRgb(q,0);var ie=ae-W;Z=Math.min(Z,(X[0]-V[0]+1)/ie);Q=Math.min(Q,(X[1]-V[1]+1)/ie);ee=Math.min(ee,(X[2]-V[2]+1)/ie);te=Math.max(te,(X[0]-V[0]-1)/ie);re=Math.max(re,(X[1]-V[1]-1)/ie);ne=Math.max(ne,(X[2]-V[2]-1)/ie);if(!(te<=Z&&re<=Q&&ne<=ee)){var oe=c.Util.makeHexColor(J[0],J[1],J[2]);H.push([Y/840,oe]);Z=X[0]-J[0]+1;Q=X[1]-J[1]+1;ee=X[2]-J[2]+1;te=X[0]-J[0]-1;re=X[1]-J[1]-1;ne=X[2]-J[2]-1;W=Y;V=J}Y=ae;J=X}var se=c.Util.makeHexColor(J[0],J[1],J[2]);H.push([1,se]);var ce="transparent";if(t.has("Background")){X=v.getRgb(t.get("Background"),0);ce=c.Util.makeHexColor(X[0],X[1],X[2])}if(!C){H.unshift([0,ce]);H[1][0]+=k.SMALL_NUMBER}if(!x){H.at(-1)[0]-=k.SMALL_NUMBER;H.push([1,ce])}g.colorStops=H;return g}_createClass(RadialAxialShading,[{key:"getIR",value:function getIR(){var t,r,o,l,u,h=this.coordsArr,g=this.shadingType;if(g===d){r=[h[0],h[1]];o=[h[2],h[3]];l=null;u=null;t="axial"}else if(g===y){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(g));return["RadialAxial",t,this.bbox,this.colorStops,r,o,l,u]}}]);return RadialAxialShading}(k),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 y=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(l,0,y,0);return this.context.colorSpace.getRgb(y,0)}}]);return MeshStreamReader}(),x=function getBClosure(){var t=Object.create(null);return function(r){return 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))}}(),O=function(t){_inherits(MeshShading,t);var r=_createSuper(MeshShading);function MeshShading(t,o,h,d,y){var w;_classCallCheck(this,MeshShading);w=r.call(this);if(!(t instanceof l.BaseStream))throw new c.FormatError("Mesh data is not a stream");var k=t.dict;w.shadingType=k.get("ShadingType");var S=k.getArray("BBox");w.bbox=Array.isArray(S)&&4===S.length?c.Util.normalizeRect(S):null;var x=u.ColorSpace.parse({cs:k.getRaw("CS")||k.getRaw("ColorSpace"),xref:o,resources:h,pdfFunctionFactory:d,localColorSpaceCache:y});w.background=k.has("Background")?x.getRgb(k.get("Background"),0):null;var O=k.getRaw("Function"),T=O?d.createFromArray(O):null;w.coords=[];w.colors=[];w.figures=[];var E={bitsPerCoordinate:k.get("BitsPerCoordinate"),bitsPerComponent:k.get("BitsPerComponent"),bitsPerFlag:k.get("BitsPerFlag"),decode:k.getArray("Decode"),colorFn:T,colorSpace:x,numComps:T?1:x.numComps},R=new C(t,E),M=!1;switch(w.shadingType){case g:w._decodeType4Shading(R);break;case v:var j=0|k.get("VerticesPerRow");if(j<2)throw new c.FormatError("Invalid VerticesPerRow");w._decodeType5Shading(R,j);break;case m:w._decodeType6Shading(R);M=!0;break;case _:w._decodeType7Shading(R);M=!0;break;default:(0,c.unreachable)("Unsupported mesh type.")}if(M){w._updateBounds();for(var L=0,D=w.figures.length;L<D;L++)w._buildFigureFromPatch(L)}w._updateBounds();w._packData();return w}_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(),y=t.readCoordinate(),g=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.at(-2),u.at(-1));h=1;break;case 2:u.push(u.at(-3),u.at(-1));h=1}l.push(d)}u.push(r.length);r.push(y);o.push(g);h--;t.align()}this.figures.push({type:"triangles",coords:new Int32Array(u),colors:new Int32Array(u)})}},{key:"_decodeType5Shading",value:function _decodeType5Shading(t,r){for(var o=this.coords,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,y=0,g=0!==h?8:12;y<g;y++)r.push(t.readCoordinate());for(var v=o.length,m=0,_=0!==h?2:4;m<_;m++)o.push(t.readComponents());var w=void 0,k=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]=v+1;u[3]=v+2;u[0]=v;u[1]=v+3;break;case 1:w=l[12];k=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]=k;l[7]=d+4;l[0]=w;l[1]=d+7;l[2]=d+6;l[3]=d+5;w=u[2];k=u[3];u[2]=k;u[3]=v;u[0]=w;u[1]=v+1;break;case 2:w=l[15];k=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]=k;l[7]=d+4;l[0]=w;l[1]=d+7;l[2]=d+6;l[3]=d+5;w=u[3];u[2]=u[1];u[3]=v;u[0]=w;u[1]=v+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]=v;u[0]=u[1];u[1]=v+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,y=0,g=0!==h?12:16;y<g;y++)r.push(t.readCoordinate());for(var v=o.length,m=0,_=0!==h?2:4;m<_;m++)o.push(t.readComponents());var w=void 0,k=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]=v+1;u[3]=v+2;u[0]=v;u[1]=v+3;break;case 1:w=l[12];k=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]=k;l[5]=d+8;l[6]=d+11;l[7]=d+4;l[0]=w;l[1]=d+7;l[2]=d+6;l[3]=d+5;w=u[2];k=u[3];u[2]=k;u[3]=v;u[0]=w;u[1]=v+1;break;case 2:w=l[15];k=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]=k;l[5]=d+8;l[6]=d+11;l[7]=d+4;l[0]=w;l[1]=d+7;l[2]=d+6;l[3]=d+5;w=u[3];u[2]=u[1];u[3]=v;u[0]=w;u[1]=v+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]=v;u[0]=u[1];u[1]=v+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]),y=Math.min(o[u[0]][1],o[u[3]][1],o[u[12]][1],o[u[15]][1]),g=Math.max(o[u[0]][0],o[u[3]][0],o[u[12]][0],o[u[15]][0]),v=Math.max(o[u[0]][1],o[u[3]][1],o[u[12]][1],o[u[15]][1]),m=Math.ceil((g-d)*MeshShading.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));m=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,m));var _=Math.ceil((v-y)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));_=Math.max(MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,_));for(var w=m+1,k=new Int32Array((_+1)*w),S=new Int32Array((_+1)*w),C=0,O=new Uint8Array(3),T=new Uint8Array(3),E=l[h[0]],R=l[h[1]],M=l[h[2]],j=l[h[3]],L=x(_),D=x(m),N=0;N<=_;N++){O[0]=(E[0]*(_-N)+M[0]*N)/_|0;O[1]=(E[1]*(_-N)+M[1]*N)/_|0;O[2]=(E[2]*(_-N)+M[2]*N)/_|0;T[0]=(R[0]*(_-N)+j[0]*N)/_|0;T[1]=(R[1]*(_-N)+j[1]*N)/_|0;T[2]=(R[2]*(_-N)+j[2]*N)/_|0;for(var U=0;U<=m;U++,C++)if(0!==N&&N!==_||0!==U&&U!==m){for(var G=0,$=0,H=0,X=0;X<=3;X++)for(var q=0;q<=3;q++,H++){var z=L[N][X]*D[U][q];G+=o[u[H]][0]*z;$+=o[u[H]][1]*z}k[C]=o.length;o.push([G,$]);S[C]=l.length;var W=new Uint8Array(3);W[0]=(O[0]*(m-U)+T[0]*U)/m|0;W[1]=(O[1]*(m-U)+T[1]*U)/m|0;W[2]=(O[2]*(m-U)+T[2]*U)/m|0;l.push(W)}}k[0]=u[0];S[0]=h[0];k[m]=u[3];S[m]=h[1];k[w*_]=u[12];S[w*_]=h[2];k[w*_+m]=u[15];S[w*_+m]=h[3];this.figures[t]={type:"lattice",coords:k,colors:S,verticesPerRow:w}}},{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,y=new Uint8Array(3*d.length);for(t=0,o=0,r=d.length;t<r;t++){var g=d[t];y[o++]=g[0];y[o++]=g[1];y[o++]=g[2]}this.colors=y;var v=this.figures;for(t=0,r=v.length;t<r;t++){var m=v[t],_=m.coords,w=m.colors;for(o=0,c=_.length;o<c;o++){_[o]*=2;w[o]*=3}}}},{key:"getIR",value:function getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}]);return MeshShading}(k);_defineProperty(O,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3);_defineProperty(O,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20);_defineProperty(O,"TRIANGLE_DENSITY",20);var 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}(k)},(t,r,o)=>{o(296);o(143);o(293);o(114);o(175);o(123);o(129);o(56);o(104);o(113);o(137);o(177);o(183);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,l=r.baseWidths,u=r.baseMapping,h=r.factors,d=h?l.map((function(t,r){return t*h[r]})):l,y=-2,g=[],v=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.map((function(t,r){return[t,r]})).sort((function(t,r){return _slicedToArray(t,1)[0]-_slicedToArray(r,1)[0]})));try{for(v.s();!(c=v.n()).done;){var m=_slicedToArray(c.value,2),_=m[0],w=m[1];if(-1!==_)if(_===y+1){o.push(d[w]);y+=1}else{y=_;o=[d[w]];g.push(_,o)}}}catch(t){v.e(t)}finally{v.f()}return g}(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.at(-2)+r.at(-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;o(180);o(357);o(290);o(363);o(364);var c=o(431),l=o(350),u=o(432),h=o(433),d=o(434),y=o(435),g=o(343),v=o(417);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 m=(0,g.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:y.SegoeuiRegularFactors,baseWidths:h.LiberationSansRegularWidths,baseMapping:h.LiberationSansRegularMapping,metrics:y.SegoeuiRegularMetrics};t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:y.SegoeuiBoldFactors,baseWidths:h.LiberationSansBoldWidths,baseMapping:h.LiberationSansBoldMapping,metrics:y.SegoeuiBoldMetrics};t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:y.SegoeuiItalicFactors,baseWidths:h.LiberationSansItalicWidths,baseMapping:h.LiberationSansItalicMapping,metrics:y.SegoeuiItalicMetrics};t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:y.SegoeuiBoldItalicFactors,baseWidths:h.LiberationSansBoldItalicWidths,baseMapping:h.LiberationSansBoldItalicMapping,metrics:y.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,v.normalizeFontName)(t);return m()[r]}},(t,r)=>{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)=>{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)=>{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)=>{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)=>{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)=>{o(113);o(177);o(296);o(123);o(129);o(134);o(305);o(306);Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptEvaluator=r.PostScriptCompiler=r.PDFFunctionFactory=void 0;r.isPDFFunction=function isPDFFunction(t){var r;if(t instanceof c.Dict)r=t;else{if(!(t instanceof h.BaseStream))return!1;r=t.dict}return r.has("FunctionType")};o(183);o(2);o(54);o(56);o(104);o(143);o(105);o(290);o(137);o(437);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(328);o(382);o(114);o(175);o(438);o(363);o(361);o(293);o(373);var c=o(350),l=o(304),u=o(440),h=o(354),d=o(441);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 _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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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 _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 _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,_toPropertyKey(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 _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}var y=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=g.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=g.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;if(t instanceof c.Ref)r=t;else if(t instanceof c.Dict)r=t.objId;else if(t instanceof h.BaseStream){var o;r=null===(o=t.dict)||void 0===o?void 0:o.objId}if(r){var l=this._localFunctionCache.getByRef(r);if(l)return l}return null}},{key:"_cache",value:function _cache(t,r){if(!r)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var o;if(t instanceof c.Ref)o=t;else if(t instanceof c.Dict)o=t.objId;else if(t instanceof h.BaseStream){var l;o=null===(l=t.dict)||void 0===l?void 0:l.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=y;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 g=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),y=0,g=0,v=1/(Math.pow(2,o)-1),m=c.getBytes((h*o+7)/8),_=0;for(l=0;l<h;l++){for(;y<o;){g<<=8;g|=m[_++];y+=8}y-=o;d[l]=(g>>y)*v;g&=(1<<y)-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});var l,u=[],h=_createForOfIteratorHelper(c);try{for(h.s();!(l=h.n()).done;){var d=l.value;u.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(d)}))}}catch(t){h.e(t)}finally{h.f()}return function(t,r,o,c){for(var l=0,h=u.length;l<h;l++)u[l](t,r,o,c+l)}}},{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 y=toNumberArray(o.getArray("Size")),g=o.get("BitsPerSample"),v=o.get("Order")||1;1!==v&&(0,l.info)("No support for cubic spline interpolation: "+v);var m=toNumberArray(o.getArray("Encode"));if(m)m=toMultiArray(m);else{m=[];for(var _=0;_<h;++_)m.push([0,y[_]-1])}var w=toNumberArray(o.getArray("Decode"));w=w?toMultiArray(w):u;var k=this.getSampleArray(y,d,g,r);return function constructSampledFn(t,r,o,l){var g,v,_=1<<h,S=new Float64Array(_),C=new Uint32Array(_);for(v=0;v<_;v++)S[v]=1;var x=d,O=1;for(g=0;g<h;++g){var T=c[g][0],E=c[g][1],R=interpolate(Math.min(Math.max(t[r+g],T),E),T,E,m[g][0],m[g][1]),M=y[g],j=(R=Math.min(Math.max(R,0),M-1))<M-1?Math.floor(R):R-1,L=j+1-R,D=R-j,N=j*x,U=N+x;for(v=0;v<_;v++)if(v&O){S[v]*=D;C[v]+=U}else{S[v]*=L;C[v]+=N}x*=M;O<<=1}for(v=0;v<d;++v){var G=0;for(g=0;g<_;g++)G+=k[C[g]+v]*S[g];G=interpolate(G,0,1,w[v][0],w[v][1]);o[l+v]=Math.min(Math.max(G,u[v][0]),u[v][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 y=u.length;return function constructInterpolatedFn(t,r,c,h){for(var d=1===l?t[r]:Math.pow(t[r],l),g=0;g<y;++g)c[h+g]=o[g]+d*u[g]}}},{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");var h,d=[],y=_createForOfIteratorHelper(c.get("Functions"));try{for(y.s();!(h=y.n()).done;){var g=h.value;d.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(g)}))}}catch(t){y.e(t)}finally{y.f()}var v=toNumberArray(c.getArray("Bounds")),m=toNumberArray(c.getArray("Encode")),_=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]),y=v.length;for(l=0;l<y&&!(h<v[l]);++l);var g=u[0];l>0&&(g=v[l-1]);var w=u[1];l<v.length&&(w=v[l]);var k=m[2*l],S=m[2*l+1];_[0]=g===w?k:k+(h-g)*(S-k)/(w-g);d[l](_,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 y=new u.PostScriptLexer(o),g=new u.PostScriptParser(y).parse();if(r&&l.FeatureTest.isEvalSupported){var v=(new E).compile(g,h,d);if(v)return new Function("src","srcOffset","dest","destOffset",v)}(0,l.info)("Unable to compile PS function");var _=d.length>>1,w=h.length>>1,k=new m(g),S=Object.create(null),C=8192,x=new Float32Array(w);return function constructPostScriptFn(t,r,o,c){var l,u,h="",y=x;for(l=0;l<w;l++){u=t[r+l];y[l]=u;h+=u+"_"}var g=S[h];if(void 0===g){var v=new Float32Array(_),m=k.execute(y),O=m.length-_;for(l=0;l<_;l++){u=m[O+l];var T=d[2*l];(u<T||u>(T=d[2*l+1]))&&(u=T);v[l]=u}if(C>0){C--;S[h]=v}o.set(v,c)}else o.set(g,c)}}}]);return PDFFunction}();var v=function(){function PostScriptStack(t){_classCallCheck(this,PostScriptStack);this.stack=t?Array.from(t):[]}_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 y=o[h];o[h]=o[d];o[d]=y}for(var g=c,v=u-1;g<v;g++,v--){var m=o[g];o[g]=o[v];o[v]=m}for(var _=u,w=l;_<w;_++,w--){var k=o[_];o[_]=o[w];o[w]=k}}}]);return PostScriptStack}();!function _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}(v,"MAX_STACK_SIZE",100);var m=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 v(t),h=0,d=this.operators,y=d.length;h<y;)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":c=u.pop();o=u.pop();(o=Math.atan2(o,c)/Math.PI*180)<0&&(o+=360);u.push(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%360/180*Math.PI));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.log10(o));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%360/180*Math.PI));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=m;var _=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}(),w=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}(_),k=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}(_),S=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}(_),C=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}(_),x=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}(_),O=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=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 k(t.number+r.number):new S("+",t,r,t.min+r.min,t.max+r.max)}function buildMulOperation(t,r){if("literal"===r.type){if(0===r.number)return new k(0);if(1===r.number)return t;if("literal"===t.type)return new k(t.number*r.number)}if("literal"===t.type){if(0===t.number)return new k(0);if(1===t.number)return r}var o=Math.min(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max),c=Math.max(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max);return new S("*",t,r,o,c)}function buildSubOperation(t,r){if("literal"===r.type){if(0===r.number)return t;if("literal"===t.type)return new k(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 S("-",t,r,t.min-r.max,t.max-r.min)}function buildMinOperation(t,r){return t.min>=r?new k(r):t.max<=r?t:new C(t,r)}var E=function(){function PostScriptCompiler(){_classCallCheck(this,PostScriptCompiler)}_createClass(PostScriptCompiler,[{key:"compile",value:function compile(t,r,o){for(var c,l,u,h,d,y,g,v,m=[],_=[],S=r.length>>1,C=o.length>>1,E=0,R=0;R<S;R++)m.push(new w(R,r[2*R],r[2*R+1]));for(var M=0,j=t.length;M<j;M++)if("number"!=typeof(v=t[M]))switch(v){case"add":if(m.length<2)return null;h=m.pop();u=m.pop();m.push(buildAddOperation(u,h));break;case"cvr":if(m.length<1)return null;break;case"mul":if(m.length<2)return null;h=m.pop();u=m.pop();m.push(buildMulOperation(u,h));break;case"sub":if(m.length<2)return null;h=m.pop();u=m.pop();m.push(buildSubOperation(u,h));break;case"exch":if(m.length<2)return null;d=m.pop();y=m.pop();m.push(d,y);break;case"pop":if(m.length<1)return null;m.pop();break;case"index":if(m.length<1)return null;if("literal"!==(u=m.pop()).type)return null;if((c=u.number)<0||!Number.isInteger(c)||m.length<c)return null;if("literal"===(d=m[m.length-c-1]).type||"var"===d.type){m.push(d);break}g=new x(E++,d.min,d.max);m[m.length-c-1]=g;m.push(g);_.push(new O(g,d));break;case"dup":if(m.length<1)return null;if("number"==typeof t[M+1]&&"gt"===t[M+2]&&t[M+3]===M+7&&"jz"===t[M+4]&&"pop"===t[M+5]&&t[M+6]===t[M+1]){u=m.pop();m.push(buildMinOperation(u,t[M+1]));M+=6;break}if("literal"===(d=m.at(-1)).type||"var"===d.type){m.push(d);break}g=new x(E++,d.min,d.max);m[m.length-1]=g;m.push(g);_.push(new O(g,d));break;case"roll":if(m.length<2)return null;h=m.pop();u=m.pop();if("literal"!==h.type||"literal"!==u.type)return null;l=h.number;if((c=u.number)<=0||!Number.isInteger(c)||!Number.isInteger(l)||m.length<c)return null;if(0===(l=(l%c+c)%c))break;m.push.apply(m,_toConsumableArray(m.splice(m.length-c,c-l)));break;default:return null}else m.push(new k(v));if(m.length!==C)return null;for(var L=[],D=0,N=_;D<N.length;D++){var U=N[D],G=new T;U.visit(G);L.push(G.toString())}for(var $=0,H=m.length;$<H;$++){var X=m[$],q=new T;X.visit(q);var z=o[2*$],W=o[2*$+1],V=[q.toString()];if(z>X.min){V.unshift("Math.max(",z,", ");V.push(")")}if(W<X.max){V.unshift("Math.min(",W,", ");V.push(")")}V.unshift("dest[destOffset + ",$,"] = ");V.push(";");L.push(V.join(""))}return L.join("\n")}}]);return PostScriptCompiler}();r.PostScriptCompiler=E},(t,r,o)=>{o(192)("Float64",(function(t){return function Float64Array(r,o,c){return t(this,r,o,c)}}))},(t,r,o)=>{o(58)({target:"Math",stat:!0},{log10:o(439)})},t=>{var r=Math.log,o=Math.LOG10E;t.exports=Math.log10||function log10(t){return r(t)*o}},(t,r,o)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptParser=r.PostScriptLexer=void 0;o(302);o(290);o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(304),l=o(350),u=o(343);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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},y=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;return(r=PostScriptToken.opCache)[t]||(r[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}(),g=function(){function PostScriptLexer(t){_classCallCheck(this,PostScriptLexer);this.stream=t;this.nextChar();this.strBuf=[]}_createClass(PostScriptLexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function getToken(){for(var t=!1,r=this.currentChar;;){if(r<0)return 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 y(d.NUMBER,this.getNumber());case 123:this.nextChar();return y.LBRACE;case 125:this.nextChar();return y.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 y.IF;case"ifelse":return y.IFELSE;default:return y.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=g},(t,r,o)=>{o(113);o(134);o(305);o(306);o(296);o(293);o(114);o(123);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.RegionalImageCache=r.LocalTilingPatternCache=r.LocalImageCache=r.LocalGStateCache=r.LocalFunctionCache=r.LocalColorSpaceCache=r.GlobalImageCache=void 0;o(137);o(335);o(143);o(175);o(177);o(2);o(54);o(56);o(104);o(183);o(105);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);var c=o(304),l=o(350);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 _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,_toPropertyKey(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 _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}var u=function(){function BaseLocalCache(t){_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&(0,c.unreachable)("Cannot initialize BaseLocalCache.");this._onlyRefs=!0===(null==t?void 0: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 y=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=y;var g=function(t){_inherits(LocalGStateCache,t);var r=_createSuper(LocalGStateCache);function LocalGStateCache(){_classCallCheck(this,LocalGStateCache);return r.apply(this,arguments)}_createClass(LocalGStateCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof t)throw new Error('LocalGStateCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalGStateCache}(u);r.LocalGStateCache=g;var v=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=v;var m=function(t){_inherits(RegionalImageCache,t);var r=_createSuper(RegionalImageCache);function RegionalImageCache(t){_classCallCheck(this,RegionalImageCache);return r.call(this,{onlyRefs:!0})}_createClass(RegionalImageCache,[{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('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return RegionalImageCache}(u);r.RegionalImageCache=m;var _=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,r=0,o=_createForOfIteratorHelper(this._imageCache);try{for(o.s();!(t=o.n()).done;){r+=t.value.byteSize}}catch(t){o.e(t)}finally{o.f()}return r}},{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);if(!o){o=new Set;this._refCache.put(t,o)}o.add(r);return!(o.size<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this._cacheLimitReached)}},{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 "shouldCache" 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(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear();this._imageCache.clear()}}]);return GlobalImageCache}();r.GlobalImageCache=_;_defineProperty(_,"NUM_PAGES_THRESHOLD",2);_defineProperty(_,"MIN_IMAGES_TO_CACHE",10);_defineProperty(_,"MAX_BYTE_SIZE",5*c.MAX_IMAGE_SIZE_TO_CACHE)},(t,r,o)=>{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],y=!0,g=t.length;if(0===g||o)return createBidiText(t,y,o);h.length=g;d.length=g;var v,m,_=0;for(v=0;v<g;++v){h[v]=t.charAt(v);var w=t.charCodeAt(v),k="L";w<=255?k=l[w]:1424<=w&&w<=1524?k="R":1536<=w&&w<=1791?(k=u[255&w])||(0,c.warn)("Bidi: invalid Unicode character "+w.toString(16)):(1792<=w&&w<=2220||64336<=w&&w<=65023||65136<=w&&w<=65279)&&(k="AL");"R"!==k&&"AL"!==k&&"AN"!==k||_++;d[v]=k}if(0===_)return createBidiText(t,y=!0);if(-1===r)if(_/g<.3&&g>4){y=!0;r=0}else{y=!1;r=1}var S=[];for(v=0;v<g;++v)S[v]=r;var C,x=isOdd(r)?"R":"L",O=x,T=O,E=O;for(v=0;v<g;++v)"NSM"===d[v]?d[v]=E:E=d[v];E=O;for(v=0;v<g;++v)"EN"===(C=d[v])?d[v]="AL"===E?"AN":"EN":"R"!==C&&"L"!==C&&"AL"!==C||(E=C);for(v=0;v<g;++v)"AL"===(C=d[v])&&(d[v]="R");for(v=1;v<g-1;++v){"ES"===d[v]&&"EN"===d[v-1]&&"EN"===d[v+1]&&(d[v]="EN");"CS"!==d[v]||"EN"!==d[v-1]&&"AN"!==d[v-1]||d[v+1]!==d[v-1]||(d[v]=d[v-1])}for(v=0;v<g;++v)if("EN"===d[v]){for(var R=v-1;R>=0&&"ET"===d[R];--R)d[R]="EN";for(var M=v+1;M<g&&"ET"===d[M];++M)d[M]="EN"}for(v=0;v<g;++v)"WS"!==(C=d[v])&&"ES"!==C&&"ET"!==C&&"CS"!==C||(d[v]="ON");E=O;for(v=0;v<g;++v)"EN"===(C=d[v])?d[v]="L"===E?"L":"EN":"R"!==C&&"L"!==C||(E=C);for(v=0;v<g;++v)if("ON"===d[v]){var j=findUnequal(d,v+1,"ON"),L=O;v>0&&(L=d[v-1]);var D=T;j+1<g&&(D=d[j+1]);"L"!==L&&(L="R");"L"!==D&&(D="R");L===D&&setValues(d,v,j,L);v=j-1}for(v=0;v<g;++v)"ON"===d[v]&&(d[v]=x);for(v=0;v<g;++v){C=d[v];isEven(S[v])?"R"===C?S[v]+=1:"AN"!==C&&"EN"!==C||(S[v]+=2):"L"!==C&&"AN"!==C&&"EN"!==C||(S[v]+=1)}var N,U=-1,G=99;for(v=0,m=S.length;v<m;++v){U<(N=S[v])&&(U=N);G>N&&isOdd(N)&&(G=N)}for(N=U;N>=G;--N){var $=-1;for(v=0,m=S.length;v<m;++v)if(S[v]<N){if($>=0){reverseValues(h,$,v);$=-1}}else $<0&&($=v);$>=0&&reverseValues(h,$,S.length)}for(v=0,m=h.length;v<m;++v){var H=h[v];"<"!==H&&">"!==H||(h[v]="")}return createBidiText(h.join(""),y)};o(143);o(293);var c=o(304),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="ltr";arguments.length>2&&void 0!==arguments[2]&&arguments[2]?o="ttb":r||(o="rtl");return{str:t,dir:o}}var h=[],d=[]},(t,r,o)=>{o(296);o(293);o(114);o(56);o(104);o(113);o(183);Object.defineProperty(r,"__esModule",{value:!0});r.getFontSubstitution=function getFontSubstitution(t,r,o,m,_){var w=m=(0,c.normalizeFontName)(m),k=t.get(w);if(k)return k;var S=g.get(m);if(!S){var C,x=_createForOfIteratorHelper(v);try{for(x.s();!(C=x.n()).done;){var O=(R=C.value,M=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(R)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(R,M)||_unsupportedIterableToArray(R,M)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),T=O[0],E=O[1];if(m.startsWith(T)){m="".concat(E).concat(m.substring(T.length));S=g.get(m);break}}}catch(t){x.e(t)}finally{x.f()}}var R,M;var j=!1;if(!S){S=g.get(_);j=!0}var L="".concat(r.getDocId(),"_s").concat(r.createFontId());if(!S){if(!(0,l.validateFontName)(m)){t.set(w,null);return null}var D=/bold/gi.test(m),N=/oblique|italic/gi.test(m),U=D&&N&&y||D&&h||N&&d||u;k={css:L,guessFallback:!0,loadedName:L,baseFontName:m,src:"local(".concat(m,")"),style:U};t.set(w,k);return k}var G=[];j&&(0,l.validateFontName)(m)&&G.push("local(".concat(m,")"));var $=generateFont(S,G,o),H=$.style,X=$.ultimate,q=null===X,z=q?"":",".concat(X);k={css:"".concat(L).concat(z),guessFallback:q,loadedName:L,baseFontName:m,src:G.join(","),style:H};t.set(w,k);return k};o(137);o(335);o(143);o(175);o(177);o(290);o(302);o(362);o(309);o(123);o(129);var c=o(417),l=o(343);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 u={style:"normal",weight:"normal"},h={style:"normal",weight:"bold"},d={style:"italic",weight:"normal"},y={style:"italic",weight:"bold"},g=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:u,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:h,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:d,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:y,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:u,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:h,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:d,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:y,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:u,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:h,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:d,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:y,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:u,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:h,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:d,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:y,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:u,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:h,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:d,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:y,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:u}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),v=new Map([["Arial-Black","ArialBlack"]]);function generateFont(t,r,o){var c=t.alias,l=t.local,u=t.path,v=t.fallback,m=t.style,_=t.ultimate,w=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],k=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",C={style:null,ultimate:null};if(l){var x,O=S?" ".concat(S):"",T=_createForOfIteratorHelper(l);try{for(T.s();!(x=T.n()).done;){var E=x.value;r.push("local(".concat(E).concat(O,")"))}}catch(t){T.e(t)}finally{T.f()}}if(c){var R=g.get(c),M=S||function getStyleToAppend(t){switch(t){case h:return"Bold";case d:return"Italic";case y:return"Bold Italic";default:if("bold"===(null==t?void 0:t.weight))return"Bold";if("italic"===(null==t?void 0:t.style))return"Italic"}return""}(m);Object.assign(C,generateFont(R,r,o,w&&!v,k&&!u,M))}m&&(C.style=m);_&&(C.ultimate=_);if(w&&v){var j=generateFont(g.get(v),r,o,w,k&&!u,S).ultimate;C.ultimate||(C.ultimate=j)}k&&u&&o&&r.push("url(".concat(o).concat(u,")"));return C}},(t,r,o)=>{o(145);o(296);o(293);o(114);o(175);o(123);o(129);o(113);o(177);o(130);o(131);o(132);o(133);o(134);o(290);o(300);Object.defineProperty(r,"__esModule",{value:!0});r.ImageResizer=void 0;o(344);o(387);o(361);o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(183);o(2);o(54);o(56);o(104);o(105);var c=o(304);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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}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),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}var l=function(){function ImageResizer(t,r){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ImageResizer);this._imgData=t;this._isMask=r}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(ImageResizer,[{key:"_createImage",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var t,r,o,c,l,u,h,d,y,g,v,m,_,w,k,S,C,x,O,T,E,R;return _regeneratorRuntime().wrap((function _callee$(M){for(;;)switch(M.prev=M.next){case 0:t=this._encodeBMP();r=new Blob([t.buffer],{type:"image/bmp"});o=createImageBitmap(r);c=ImageResizer.MAX_AREA,l=ImageResizer.MAX_DIM;u=this._imgData;h=u.width,d=u.height;y=Math.max(h/l,d/l,Math.sqrt(h*d/c));g=Math.max(y,2);v=Math.round(10*(y+1.25))/10/g;m=Math.floor(Math.log2(v));(_=new Array(m+2).fill(2))[0]=g;_.splice(-1,1,v/(1<<m));w=h;k=d;M.next=17;return o;case 17:S=M.sent;C=_createForOfIteratorHelper(_);try{for(C.s();!(x=C.n()).done;){O=x.value;T=w;E=k;w=Math.floor(w/O)-1;k=Math.floor(k/O)-1;(R=new OffscreenCanvas(w,k)).getContext("2d").drawImage(S,0,0,T,E,0,0,w,k);S=R.transferToImageBitmap()}}catch(t){C.e(t)}finally{C.f()}u.data=null;u.bitmap=S;u.width=w;u.height=k;return M.abrupt("return",u);case 25:case"end":return M.stop()}}),_callee,this)}))),function _createImage(){return r.apply(this,arguments)})},{key:"_encodeBMP",value:function _encodeBMP(){var t,r=this._imgData,o=r.width,l=r.height,u=r.kind,h=this._imgData.data,d=new Uint8Array(0),y=d,g=0;switch(u){case c.ImageKind.GRAYSCALE_1BPP:t=1;d=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);var v=o+7>>3,m=v+3&-4;if(v!==m){for(var _=new Uint8Array(m*l),w=0,k=0,S=l*v;k<S;k+=v,w+=m)_.set(h.subarray(k,k+v),w);h=_}break;case c.ImageKind.RGB_24BPP:t=24;if(3&o){for(var C=3*o,x=C+3&-4,O=x-C,T=new Uint8Array(x*l),E=0,R=0,M=l*C;R<M;R+=C){for(var j=h.subarray(R,R+C),L=0;L<C;L+=3){T[E++]=j[L+2];T[E++]=j[L+1];T[E++]=j[L]}E+=O}h=T}else for(var D=0,N=h.length;D<N;D+=3){var U=h[D];h[D]=h[D+2];h[D+2]=U}break;case c.ImageKind.RGBA_32BPP:t=32;g=3;y=new Uint8Array(68);var G=new DataView(y.buffer);if(c.FeatureTest.isLittleEndian){G.setUint32(0,255,!0);G.setUint32(4,65280,!0);G.setUint32(8,16711680,!0);G.setUint32(12,4278190080,!0)}else{G.setUint32(0,4278190080,!0);G.setUint32(4,16711680,!0);G.setUint32(8,65280,!0);G.setUint32(12,255,!0)}break;default:throw new Error("invalid format")}var $=0,H=40+y.length,X=14+H+d.length+h.length,q=new Uint8Array(X),z=new DataView(q.buffer);z.setUint16($,19778,!0);$+=2;z.setUint32($,X,!0);$+=4;z.setUint32($,0,!0);$+=4;z.setUint32($,14+H+d.length,!0);$+=4;z.setUint32($,H,!0);$+=4;z.setInt32($,o,!0);$+=4;z.setInt32($,-l,!0);$+=4;z.setUint16($,1,!0);$+=2;z.setUint16($,t,!0);$+=2;z.setUint32($,g,!0);$+=4;z.setUint32($,0,!0);$+=4;z.setInt32($,0,!0);$+=4;z.setInt32($,0,!0);$+=4;z.setUint32($,d.length/4,!0);$+=4;z.setUint32($,0,!0);$+=4;q.set(y,$);$+=y.length;q.set(d,$);$+=d.length;q.set(h,$);return q}}],[{key:"needsToBeResized",value:function needsToBeResized(t,r){if(t<=this._goodSquareLength&&r<=this._goodSquareLength)return!1;var o=this.MAX_DIM;if(t>o||r>o)return!0;var c=t*r;if(this._hasMaxArea)return c>this.MAX_AREA;if(c<Math.pow(this._goodSquareLength,2))return!1;if(this._areGoodDims(t,r)){this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(t*r)));return!1}this._goodSquareLength=this._guessMax(this._goodSquareLength,o,128,0);return c>(this.MAX_AREA=Math.pow(this._goodSquareLength,2))}},{key:"MAX_DIM",get:function get(){return(0,c.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}},{key:"MAX_AREA",get:function get(){this._hasMaxArea=!0;return(0,c.shadow)(this,"MAX_AREA",Math.pow(this._guessMax(ImageResizer._goodSquareLength,this.MAX_DIM,128,0),2))},set:function set(t){if(t>=0){this._hasMaxArea=!0;(0,c.shadow)(this,"MAX_AREA",t)}}},{key:"setMaxArea",value:function setMaxArea(t){this._hasMaxArea||(this.MAX_AREA=t>>2)}},{key:"_areGoodDims",value:function _areGoodDims(t,r){try{var o=new OffscreenCanvas(t,r),c=o.getContext("2d");c.fillRect(0,0,1,1);var l=c.getImageData(0,0,1,1).data[3];o.width=o.height=1;return 0!==l}catch(t){return!1}}},{key:"_guessMax",value:function _guessMax(t,r,o,c){for(;t+o+1<r;){var l=Math.floor((t+r)/2),u=c||l;this._areGoodDims(l,u)?t=l:r=l}return t}},{key:"createImage",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t){var r,o=arguments;return _regeneratorRuntime().wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:r=o.length>1&&void 0!==o[1]&&o[1];return c.abrupt("return",new ImageResizer(t,r)._createImage());case 2:case"end":return c.stop()}}),_callee2)}))),function createImage(r){return t.apply(this,arguments)})}]);var t,r;return ImageResizer}();r.ImageResizer=l;l._goodSquareLength=2048},(t,r,o)=>{o(113);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.MurmurHash3_64=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(296);o(183);o(328);o(331);o(293);o(2);o(54);o(56);o(104);o(105);var c=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 y=t.charCodeAt(l);if(y<=255)r[o++]=y;else{r[o++]=y>>>8;r[o++]=255&y}}}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 g=o>>2,v=o-4*g,m=new Uint32Array(r.buffer,0,g),_=0,w=0,k=this.h1,S=this.h2,C=3432918353,x=461845907,O=11601,T=13715,E=0;E<g;E++)1&E?k=5*(k=(k^=_=(_=(_=(_=m[E])*C&u|_*O&h)<<15|_>>>17)*x&u|_*T&h)<<13|k>>>19)+3864292196:S=5*(S=(S^=w=(w=(w=(w=m[E])*C&u|w*O&h)<<15|w>>>17)*x&u|w*T&h)<<13|S>>>19)+3864292196;_=0;switch(v){case 3:_^=r[4*g+2]<<16;case 2:_^=r[4*g+1]<<8;case 1:_=(_=(_=(_^=r[4*g])*C&u|_*O&h)<<15|_>>>17)*x&u|_*T&h;1&g?k^=_:S^=_}this.h1=k;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;return((t^=(r=3301882366*r&u|(3120437893*(r<<16|t>>>16)&u)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}]);return MurmurHash3_64}();r.MurmurHash3_64=d},(t,r,o)=>{o(2);o(54);o(56);o(104);o(105);o(134);o(305);o(306);o(296);o(293);o(114);o(129);o(113);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;o(363);o(364);o(183);o(290);o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(371);o(361);o(382);o(123);o(313);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(145);var c=o(304);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 _defineProperty(t,r,o){(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o;return t}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,_toPropertyKey(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 _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}function addState(t,r,o,c,l){for(var u=t,h=0,d=r.length-1;h<d;h++){var y,g=r[h];u=(y=u)[g]||(y[g]=[])}u[r.at(-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,y=u-1,g=Math.min(Math.floor((r-h)/4),200);if(g<10)return r-(r-h)%4;for(var v=0,m=[],_=0,w=1,k=1,S=0;S<g;S++){var C=l[d+(S<<2)],x=l[y+(S<<2)][0];if(w+x.width>1e3){v=Math.max(v,w);k+=_+2;w=0;_=0}m.push({transform:C,x:w,y:k,w:x.width,h:x.height});w+=x.width+2;_=Math.max(_,x.height)}for(var O=Math.max(v,w)+1,T=k+_+1,E=new Uint8Array(O*T*4),R=O<<2,M=0;M<g;M++){var j=l[y+(M<<2)][0].data,L=m[M].w<<2,D=0,N=m[M].x+m[M].y*O<<2;E.set(j.subarray(0,L),N-R);for(var U=0,G=m[M].h;U<G;U++){E.set(j.subarray(D,D+L),N);D+=L;N+=R}E.set(j.subarray(D-L,D),N);for(;N>=0;){j[N-4]=j[N];j[N-3]=j[N+1];j[N-2]=j[N+2];j[N-1]=j[N+3];j[N+L]=j[N+L-4];j[N+L+1]=j[N+L-3];j[N+L+2]=j[N+L-2];j[N+L+3]=j[N+L-1];N-=R}}var $={width:O,height:T};if(t.isOffscreenCanvasSupported){var H=new OffscreenCanvas(O,T);H.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(E.buffer),O,T),0,0);$.bitmap=H.transferToImageBitmap();$.data=null}else{$.kind=c.ImageKind.RGBA_32BPP;$.data=E}o.splice(h,4*g,c.OPS.paintInlineImageXObjectGroup);l.splice(h,4*g,[$,m]);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,y=u-1,g=Math.floor((r-h)/4);if(g<10)return r-(r-h)%4;var v,m,_=!1,w=l[y][0],k=l[d][0],S=l[d][1],C=l[d][2],x=l[d][3];if(S===C){_=!0;v=d+4;for(var O=y+4,T=1;T<g;T++,v+=4,O+=4){m=l[v];if(l[O][0]!==w||m[0]!==k||m[1]!==S||m[2]!==C||m[3]!==x){T<10?_=!1:g=T;break}}}if(_){g=Math.min(g,1e3);var E=new Float32Array(2*g);v=d;for(var R=0;R<g;R++,v+=4){m=l[v];E[R<<1]=m[4];E[1+(R<<1)]=m[5]}o.splice(h,4*g,c.OPS.paintImageMaskXObjectRepeat);l.splice(h,4*g,[w,k,S,C,x,E])}else{g=Math.min(g,100);for(var M=[],j=0;j<g;j++){m=l[d+(j<<2)];var L=l[y+(j<<2)][0];M.push({data:L.data,width:L.width,height:L.height,interpolate:L.interpolate,count:L.count,transform:m})}o.splice(h,4*g,c.OPS.paintImageMaskXObjectGroup);l.splice(h,4*g,[M])}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],y=l[h][3];return l[r][0]===d&&0===l[r][1]&&0===l[r][2]&&l[r][3]===y;case 2:if(o[r]!==c.OPS.paintImageXObject)return!1;var g=l[t.iCurr-1][0];return l[r][0]===g;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,y=l[u-1][0],g=l[d][0],v=l[d][3],m=Math.min(Math.floor((r-h)/4),1e3);if(m<3)return r-(r-h)%4;for(var _=new Float32Array(2*m),w=d,k=0;k<m;k++,w+=4){var S=l[w];_[k<<1]=S[4];_[1+(k<<1)]=S[5]}var C=[y,g,v,_];o.splice(h,4*m,c.OPS.paintImageXObjectRepeat);l.splice(h,4*m,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],y=l[h][1];return l[r][0]===d&&l[r][1]===y;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,y=l-1,g=l,v=c[h][0],m=c[h][1],_=Math.min(Math.floor((r-u)/5),1e3);if(_<3)return r-(r-u)%5;var w=u;if(u>=4&&o[u-4]===o[h]&&o[u-3]===o[d]&&o[u-2]===o[y]&&o[u-1]===o[g]&&c[u-4][0]===v&&c[u-4][1]===m){_++;w-=5}for(var k=w+4,S=1;S<_;S++){o.splice(k,3);c.splice(k,3);k+=2}return k+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,isOffscreenCanvasSupported:!1};o.match=null;o.lastProcessed=0;return o}_createClass(QueueOptimizer,[{key:"isOffscreenCanvasSupported",set:function set(t){this.context.isOffscreenCanvasSupported=t}},{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=[];this.optimizer=!r||t&c.RenderingIntentFlag.OPLIST?new u(this):new h(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=r?null:Promise.resolve()}_createClass(OperatorList,[{key:"isOffscreenCanvasSupported",set:function set(t){this.optimizer.isOffscreenCanvasSupported=t}},{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:"addImageOps",value:function addImageOps(t,r,o){void 0!==o&&this.addOp(c.OPS.beginMarkedContentProps,["OC",o]);this.addOp(t,r);void 0!==o&&this.addOp(c.OPS.endMarkedContent,[])}},{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=[],o=this.fnArray,l=this.argsArray,u=this.length,h=0;h<u;h++)switch(o[h]){case c.OPS.paintInlineImageXObject:case c.OPS.paintInlineImageXObjectGroup:case c.OPS.paintImageMaskXObject:var d=l[h][0];!d.cached&&(null===(t=d.data)||void 0===t?void 0:t.buffer)instanceof ArrayBuffer&&r.push(d.data.buffer)}return r}},{key:"flush",value:function flush(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();var o=this.length;this._totalLength+=o;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:r,length:o},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}}]);return OperatorList}();r.OperatorList=d;_defineProperty(d,"CHUNK_SIZE",1e3);_defineProperty(d,"CHUNK_SIZE_ABOUT",d.CHUNK_SIZE-5)},(t,r,o)=>{o(2);o(54);o(56);o(104);o(145);o(113);o(175);o(177);o(130);o(131);o(132);o(133);o(134);o(290);o(300);o(296);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.PDFImage=void 0;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(381);o(328);o(105);o(302);o(183);o(371);o(387);var c=o(304),l=o(406),u=o(354),h=o(380),d=o(393),y=o(444),g=o(403),v=o(408),m=o(350);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 y,g,v,m,_=o/l,w=c/u,k=0,S=new Uint16Array(l),C=o;for(y=0;y<l;y++)S[y]=Math.floor(y*_);for(y=0;y<u;y++){v=Math.floor(y*w)*C;for(g=0;g<l;g++){m=v+S[g];h[k++]=t[m]}}return h}var _=function(){function PDFImage(t){var r=t.xref,o=t.res,l=t.image,d=t.isInline,y=void 0!==d&&d,g=t.smask,_=void 0===g?null:g,w=t.mask,k=void 0===w?null:w,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=l;var T,E=l.dict,R=E.get("F","Filter");if(R instanceof m.Name)T=R.name;else if(Array.isArray(R)){var M=r.fetchIfRef(R[0]);M instanceof m.Name&&(T=M.name)}switch(T){case"JPXDecode":var j=new v.JpxImage;j.parseImageProperties(l.stream);l.stream.reset();l.width=j.width;l.height=j.height;l.bitsPerComponent=j.bitsPerComponent;l.numComps=j.componentsCount;break;case"JBIG2Decode":l.bitsPerComponent=1;l.numComps=1}var L=E.get("W","Width"),D=E.get("H","Height");if(Number.isInteger(l.width)&&l.width>0&&Number.isInteger(l.height)&&l.height>0&&(l.width!==L||l.height!==D)){(0,c.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");L=l.width;D=l.height}if(L<1||D<1)throw new c.FormatError("Invalid image width: ".concat(L," or height: ").concat(D));this.width=L;this.height=D;this.interpolate=E.get("I","Interpolate");this.imageMask=E.get("IM","ImageMask")||!1;this.matte=E.get("Matte")||!1;var N=l.bitsPerComponent;if(!N&&!(N=E.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new c.FormatError("Bits per component missing in image: ".concat(this.imageMask));N=1}this.bpc=N;if(!this.imageMask){var U=E.getRaw("CS")||E.getRaw("ColorSpace");if(!U){(0,c.info)("JPX images (which do not require color spaces)");switch(l.numComps){case 1:U=m.Name.get("DeviceGray");break;case 3:U=m.Name.get("DeviceRGB");break;case 4:U=m.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(l.numComps," color components not supported."))}}this.colorSpace=h.ColorSpace.parse({cs:U,xref:r,resources:y?o:null,pdfFunctionFactory:x,localColorSpaceCache:O});this.numComps=this.colorSpace.numComps}this.decode=E.getArray("D","Decode");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,N)||C&&!h.ColorSpace.isDefaultDecode(this.decode,1))){var G;this.needsDecode=!0;var $=(1<<N)-1;this.decodeCoefficients=[];this.decodeAddends=[];for(var H="Indexed"===(null===(G=this.colorSpace)||void 0===G?void 0:G.name),X=0,q=0;X<this.decode.length;X+=2,++q){var z=this.decode[X],W=this.decode[X+1];this.decodeCoefficients[q]=H?(W-z)/$:W-z;this.decodeAddends[q]=H?z:$*z}}if(_)this.smask=new PDFImage({xref:r,res:o,image:_,isInline:y,pdfFunctionFactory:x,localColorSpaceCache:O});else if(k)if(k instanceof u.BaseStream){k.dict.get("IM","ImageMask")?this.mask=new PDFImage({xref:r,res:o,image:k,isInline:y,isMask:!0,pdfFunctionFactory:x,localColorSpaceCache:O}):(0,c.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=k}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(PDFImage,[{key:"drawWidth",get:function get(){var t,r;return Math.max(this.width,(null===(t=this.smask)||void 0===t?void 0:t.width)||0,(null===(r=this.mask)||void 0===r?void 0:r.width)||0)}},{key:"drawHeight",get:function get(){var t,r;return Math.max(this.height,(null===(t=this.smask)||void 0===t?void 0:t.height)||0,(null===(r=this.mask)||void 0===r?void 0:r.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 y=0;for(r=0,o=this.width*this.height;r<o;r++)for(var g=0;g<l;g++){t[y]=decodeAndClamp(t[y],u[g],h[g],d);y++}}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 y,g,v=c*u,m=(1<<r)-1,_=0;if(1===r)for(var w,k,S,C=0;C<l;C++){k=_+(-8&v);S=_+v;for(;_<k;){g=t[d++];o[_]=g>>7&1;o[_+1]=g>>6&1;o[_+2]=g>>5&1;o[_+3]=g>>4&1;o[_+4]=g>>3&1;o[_+5]=g>>2&1;o[_+6]=g>>1&1;o[_+7]=1&g;_+=8}if(_<S){g=t[d++];w=128;for(;_<S;){o[_++]=+!!(g&w);w>>=1}}}else{var x=0;g=0;for(_=0,y=h;_<y;++_){if(_%v==0){g=0;x=0}for(;x<r;){g=g<<8|t[d++];x+=8}var O=x-r,T=g>>O;T<0?T=0:T>m&&(T=m);o[_]=T;g&=(1<<O)-1;x=O}}return o}},{key:"fillOpacity",value:function fillOpacity(t,r,o,l,u){var h,d,y,g,v,m,_=this.smask,w=this.mask;if(_){d=_.width;y=_.height;h=new Uint8ClampedArray(d*y);_.fillGrayBuffer(h);d===r&&y===o||(h=resizeImageMask(h,_.bpc,d,y,r,o))}else if(w)if(w instanceof PDFImage){d=w.width;y=w.height;h=new Uint8ClampedArray(d*y);w.numComps=1;w.fillGrayBuffer(h);for(g=0,v=d*y;g<v;++g)h[g]=255-h[g];d===r&&y===o||(h=resizeImageMask(h,w.bpc,d,y,r,o))}else{if(!Array.isArray(w))throw new c.FormatError("Unknown mask format.");h=new Uint8ClampedArray(r*o);var k=this.numComps;for(g=0,v=r*o;g<v;++g){var S=0,C=g*k;for(m=0;m<k;++m){var x=u[C+m],O=2*m;if(x<w[O]||x>w[O+1]){S=255;break}}h[g]=S}}if(h)for(g=0,m=3,v=r*l;g<v;++g,m+=4)t[m]=h[g];else for(g=0,m=3,v=r*l;g<v;++g,m+=4)t[m]=255}},{key:"undoPreblend",value:function undoPreblend(t,r,o){var c,l=null===(c=this.smask)||void 0===c?void 0:c.matte;if(l)for(var u=this.colorSpace.getRgb(l,0),h=u[0],d=u[1],y=u[2],g=r*o*4,v=0;v<g;v+=4){var m=t[v+3];if(0!==m){var _=255/m;t[v]=(t[v]-h)*_+h;t[v+1]=(t[v+1]-d)*_+d;t[v+2]=(t[v+2]-y)*_+y}else{t[v]=255;t[v+1]=255;t[v+2]=255}}}},{key:"createImageData",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var t,r,o,l,u,h,d,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D,N,U,G,$,H,X,q=arguments;return _regeneratorRuntime().wrap((function _callee$(z){for(;;)switch(z.prev=z.next){case 0:t=q.length>0&&void 0!==q[0]&&q[0];r=q.length>1&&void 0!==q[1]&&q[1];o=this.drawWidth;l=this.drawHeight;u={width:o,height:l,interpolate:this.interpolate,kind:0,data:null};h=this.numComps;d=this.width;v=this.height;m=this.bpc;_=d*h*m+7>>3;w=r&&y.ImageResizer.needsToBeResized(o,l);if(t){z.next=52;break}"DeviceGray"===this.colorSpace.name&&1===m?k=c.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==m||this.needsDecode||(k=c.ImageKind.RGB_24BPP);if(!k||this.smask||this.mask||o!==d||l!==v){z.next=23;break}S=this.getImageBytes(v*_,{});if(!r){z.next=19;break}if(!w){z.next=18;break}return z.abrupt("return",y.ImageResizer.createImage({data:S,kind:k,width:o,height:l,interpolate:this.interpolate},this.needsDecode));case 18:return z.abrupt("return",this.createBitmap(k,d,v,S));case 19:u.kind=k;u.data=S;if(this.needsDecode){(0,c.assert)(k===c.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");C=u.data;for(x=0,O=C.length;x<O;x++)C[x]^=255}return z.abrupt("return",u);case 23:if(!(this.image instanceof g.JpegStream)||this.smask||this.mask||this.needsDecode){z.next=52;break}T=v*_;if(!r||w){z.next=43;break}E=!1;z.t0=this.colorSpace.name;z.next="DeviceGray"===z.t0?30:"DeviceRGB"===z.t0?33:"DeviceCMYK"===z.t0?36:38;break;case 30:T*=4;E=!0;return z.abrupt("break",38);case 33:T=T/3*4;E=!0;return z.abrupt("break",38);case 36:E=!0;return z.abrupt("break",38);case 38:if(!E){z.next=41;break}R=this.getImageBytes(T,{drawWidth:o,drawHeight:l,forceRGBA:!0});return z.abrupt("return",this.createBitmap(c.ImageKind.RGBA_32BPP,o,l,R));case 41:z.next=52;break;case 43:z.t1=this.colorSpace.name;z.next="DeviceGray"===z.t1?46:"DeviceRGB"===z.t1||"DeviceCMYK"===z.t1?47:52;break;case 46:T*=3;case 47:u.kind=c.ImageKind.RGB_24BPP;u.data=this.getImageBytes(T,{drawWidth:o,drawHeight:l,forceRGB:!0});if(!w){z.next=51;break}return z.abrupt("return",y.ImageResizer.createImage(u));case 51:return z.abrupt("return",u);case 52:M=this.getImageBytes(v*_,{internal:!0});j=0|M.length/_*l/v;L=this.getComponents(M);if(r&&!w){U=new OffscreenCanvas(o,l);G=U.getContext("2d");$=G.createImageData(o,l);H=$.data}u.kind=c.ImageKind.RGBA_32BPP;if(t||this.smask||this.mask){r&&!w||(H=new Uint8ClampedArray(o*l*4));D=1;N=!0;this.fillOpacity(H,o,l,j,L)}else{if(!r||w){u.kind=c.ImageKind.RGB_24BPP;H=new Uint8ClampedArray(o*l*3);D=0}else{new Uint32Array(H.buffer).fill(c.FeatureTest.isLittleEndian?4278190080:255);D=1}N=!1}this.needsDecode&&this.decodeBuffer(L);this.colorSpace.fillRgb(H,d,v,o,l,j,m,L,D);N&&this.undoPreblend(H,o,j);if(!r||w){z.next=65;break}G.putImageData($,0,0);X=U.transferToImageBitmap();return z.abrupt("return",{data:null,width:o,height:l,bitmap:X,interpolate:this.interpolate});case 65:u.data=H;if(!w){z.next=68;break}return z.abrupt("return",y.ImageResizer.createImage(u));case 68:return z.abrupt("return",u);case 69:case"end":return z.stop()}}),_callee,this)}))),function createImageData(){return o.apply(this,arguments)})},{key:"fillGrayBuffer",value:function fillGrayBuffer(t){var r=this.numComps;if(1!==r)throw new c.FormatError("Reading gray scale from a color image: ".concat(r));var o,l,u=this.width,h=this.height,d=this.bpc,y=u*r*d+7>>3,g=this.getImageBytes(h*y,{internal:!0}),v=this.getComponents(g);if(1!==d){this.needsDecode&&this.decodeBuffer(v);l=u*h;var m=255/((1<<d)-1);for(o=0;o<l;++o)t[o]=m*v[o]}else{l=u*h;if(this.needsDecode)for(o=0;o<l;++o)t[o]=v[o]-1&255;else for(o=0;o<l;++o)t[o]=255&-v[o]}}},{key:"createBitmap",value:function createBitmap(t,r,o,u){var h,d=new OffscreenCanvas(r,o),y=d.getContext("2d");if(t===c.ImageKind.RGBA_32BPP)h=new ImageData(u,r,o);else{h=y.createImageData(r,o);(0,l.convertToRGBA)({kind:t,src:u,dest:new Uint32Array(h.data.buffer),width:r,height:o,inverseDecode:this.needsDecode})}y.putImageData(h,0,0);return{data:null,width:r,height:o,bitmap:d.transferToImageBitmap(),interpolate:this.interpolate}}},{key:"getImageBytes",value:function getImageBytes(t,r){var o=r.drawWidth,l=r.drawHeight,u=r.forceRGBA,h=void 0!==u&&u,y=r.forceRGB,g=void 0!==y&&y,v=r.internal,m=void 0!==v&&v;this.image.reset();this.image.drawWidth=o||this.width;this.image.drawHeight=l||this.height;this.image.forceRGBA=!!h;this.image.forceRGB=!!g;var _=this.image.getBytes(t);if(m||this.image instanceof d.DecodeStream)return _;(0,c.assert)(_ instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.');return new Uint8Array(_)}}],[{key:"buildImage",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t){var r,o,l,h,d,y,g,v,m,_,w,k;return _regeneratorRuntime().wrap((function _callee2$(S){for(;;)switch(S.prev=S.next){case 0:r=t.xref,o=t.res,l=t.image,h=t.isInline,d=void 0!==h&&h,y=t.pdfFunctionFactory,g=t.localColorSpaceCache;v=l;m=null;_=null;w=l.dict.get("SMask");k=l.dict.get("Mask");w?w instanceof u.BaseStream?m=w:(0,c.warn)("Unsupported /SMask format."):k&&(k instanceof u.BaseStream||Array.isArray(k)?_=k:(0,c.warn)("Unsupported /Mask format."));return S.abrupt("return",new PDFImage({xref:r,res:o,image:v,isInline:d,smask:m,mask:_,pdfFunctionFactory:y,localColorSpaceCache:g}));case 8:case"end":return S.stop()}}),_callee2)}))),function buildImage(t){return r.apply(this,arguments)})},{key:"createRawMask",value:function createRawMask(t){var r,o,c=t.imgArray,l=t.width,u=t.height,h=t.imageIsFromDecodeStream,d=t.inverseDecode,y=t.interpolate,g=(l+7>>3)*u,v=c.byteLength;if(!h||d&&!(g===v))if(d){(r=new Uint8Array(g)).set(c);r.fill(255,v)}else r=new Uint8Array(c);else r=c;if(d)for(o=0;o<v;o++)r[o]^=255;return{data:r,width:l,height:u,interpolate:y}}},{key:"createMask",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t){var r,o,u,h,d,g,v,m,_,w,k,S,C,x;return _regeneratorRuntime().wrap((function _callee3$(O){for(;;)switch(O.prev=O.next){case 0:r=t.imgArray,o=t.width,u=t.height,h=t.imageIsFromDecodeStream,d=t.inverseDecode,g=t.interpolate,v=t.isOffscreenCanvasSupported,m=void 0!==v&&v;if(!(_=1===o&&1===u&&d===(0===r.length||!!(128&r[0])))){O.next=4;break}return O.abrupt("return",{isSingleOpaquePixel:_});case 4:if(!m){O.next=16;break}if(!y.ImageResizer.needsToBeResized(o,u)){O.next=9;break}w=new Uint8ClampedArray(o*u*4);(0,l.convertBlackAndWhiteToRGBA)({src:r,dest:w,width:o,height:u,nonBlackColor:0,inverseDecode:d});return O.abrupt("return",y.ImageResizer.createImage({kind:c.ImageKind.RGBA_32BPP,data:w,width:o,height:u,interpolate:g}));case 9:k=new OffscreenCanvas(o,u);S=k.getContext("2d");C=S.createImageData(o,u);(0,l.convertBlackAndWhiteToRGBA)({src:r,dest:C.data,width:o,height:u,nonBlackColor:0,inverseDecode:d});S.putImageData(C,0,0);x=k.transferToImageBitmap();return O.abrupt("return",{data:null,width:o,height:u,interpolate:g,bitmap:x});case 16:return O.abrupt("return",this.createRawMask({imgArray:r,width:o,height:u,inverseDecode:d,imageIsFromDecodeStream:h,interpolate:g}));case 17:case"end":return O.stop()}}),_callee3,this)}))),function createMask(r){return t.apply(this,arguments)})}]);var t,r,o;return PDFImage}();r.PDFImage=_},(t,r,o)=>{o(114);o(123);o(129);o(56);o(104);o(113);o(183);o(130);o(131);o(132);o(133);o(134);o(300);Object.defineProperty(r,"__esModule",{value:!0});r.incrementalUpdate=function incrementalUpdate(t){return _incrementalUpdate.apply(this,arguments)};r.writeDict=writeDict;r.writeObject=writeObject;o(143);o(293);o(377);o(351);o(290);o(137);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(363);o(364);o(180);o(302);o(145);o(175);o(177);o(296);o(361);o(357);o(344);var c=o(304),l=o(350),u=o(343),h=o(449),d=o(354),y=o(450);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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},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 asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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 writeObject(t,r,o,c){return _writeObject.apply(this,arguments)}function _writeObject(){return(_writeObject=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t,r,o,c){return _regeneratorRuntime().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:o.push("".concat(t.num," ").concat(t.gen," obj\n"));if(!(r instanceof l.Dict)){u.next=6;break}u.next=4;return writeDict(r,o,c);case 4:u.next=9;break;case 6:if(!(r instanceof d.BaseStream)){u.next=9;break}u.next=9;return writeStream(r,o,c);case 9:o.push("\nendobj\n");case 10:case"end":return u.stop()}}),_callee)})))).apply(this,arguments)}function writeDict(t,r,o){return _writeDict.apply(this,arguments)}function _writeDict(){return(_writeDict=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t,r,o){var c,l,h;return _regeneratorRuntime().wrap((function _callee2$(d){for(;;)switch(d.prev=d.next){case 0:r.push("<<");c=_createForOfIteratorHelper(t.getKeys());d.prev=2;c.s();case 4:if((l=c.n()).done){d.next=11;break}h=l.value;r.push(" /".concat((0,u.escapePDFName)(h)," "));d.next=9;return writeValue(t.getRaw(h),r,o);case 9:d.next=4;break;case 11:d.next=16;break;case 13:d.prev=13;d.t0=d.catch(2);c.e(d.t0);case 16:d.prev=16;c.f();return d.finish(16);case 19:r.push(">>");case 20:case"end":return d.stop()}}),_callee2,null,[[2,13,16,19]])})))).apply(this,arguments)}function writeStream(t,r,o){return _writeStream.apply(this,arguments)}function _writeStream(){return(_writeStream=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t,r,o){var u,h,d,y,g,v,m,_,w,k,S,C,x,O;return _regeneratorRuntime().wrap((function _callee3$(T){for(;;)switch(T.prev=T.next){case 0:u=t.getString();h=t.dict;T.next=4;return Promise.all([h.getAsync("Filter"),h.getAsync("DecodeParms")]);case 4:d=T.sent;y=_slicedToArray(d,2);g=y[0];v=y[1];if(!Array.isArray(g)){T.next=14;break}T.next=11;return h.xref.fetchIfRefAsync(g[0]);case 11:T.t0=T.sent;T.next=15;break;case 14:T.t0=g;case 15:m=T.t0;_=(0,l.isName)(m,"FlateDecode");256;if("undefined"==typeof CompressionStream||!(u.length>=256||_)){T.next=37;break}T.prev=19;w=(0,c.stringToBytes)(u);k=new CompressionStream("deflate");(S=k.writable.getWriter()).write(w);S.close();T.next=27;return new Response(k.readable).arrayBuffer();case 27:C=T.sent;u=(0,c.bytesToString)(new Uint8Array(C));if(g){if(!_){x=Array.isArray(g)?[l.Name.get("FlateDecode")].concat(_toConsumableArray(g)):[l.Name.get("FlateDecode"),g];v&&(O=Array.isArray(v)?[null].concat(_toConsumableArray(v)):[null,v])}}else x=l.Name.get("FlateDecode");x&&h.set("Filter",x);O&&h.set("DecodeParms",O);T.next=37;break;case 34:T.prev=34;T.t1=T.catch(19);(0,c.info)('writeStream - cannot compress data: "'.concat(T.t1,'".'));case 37:null!==o&&(u=o.encryptString(u));h.set("Length",u.length);T.next=41;return writeDict(h,r,o);case 41:r.push(" stream\n",u,"\nendstream");case 42:case"end":return T.stop()}}),_callee3,null,[[19,34]])})))).apply(this,arguments)}function writeArray(t,r,o){return _writeArray.apply(this,arguments)}function _writeArray(){return(_writeArray=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(t,r,o){var c,l,u,h;return _regeneratorRuntime().wrap((function _callee4$(d){for(;;)switch(d.prev=d.next){case 0:r.push("[");c=!0;l=_createForOfIteratorHelper(t);d.prev=3;l.s();case 5:if((u=l.n()).done){d.next=12;break}h=u.value;c?c=!1:r.push(" ");d.next=10;return writeValue(h,r,o);case 10:d.next=5;break;case 12:d.next=17;break;case 14:d.prev=14;d.t0=d.catch(3);l.e(d.t0);case 17:d.prev=17;l.f();return d.finish(17);case 20:r.push("]");case 21:case"end":return d.stop()}}),_callee4,null,[[3,14,17,20]])})))).apply(this,arguments)}function writeValue(t,r,o){return _writeValue.apply(this,arguments)}function _writeValue(){return(_writeValue=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(t,r,o){return _regeneratorRuntime().wrap((function _callee5$(h){for(;;)switch(h.prev=h.next){case 0:if(!(t instanceof l.Name)){h.next=4;break}r.push("/".concat((0,u.escapePDFName)(t.name)));h.next=37;break;case 4:if(!(t instanceof l.Ref)){h.next=8;break}r.push("".concat(t.num," ").concat(t.gen," R"));h.next=37;break;case 8:if(!Array.isArray(t)){h.next=13;break}h.next=11;return writeArray(t,r,o);case 11:h.next=37;break;case 13:if("string"!=typeof t){h.next=18;break}null!==o&&(t=o.encryptString(t));r.push("(".concat((0,u.escapeString)(t),")"));h.next=37;break;case 18:if("number"!=typeof t){h.next=22;break}r.push((0,u.numberToString)(t));h.next=37;break;case 22:if("boolean"!=typeof t){h.next=26;break}r.push(t.toString());h.next=37;break;case 26:if(!(t instanceof l.Dict)){h.next=31;break}h.next=29;return writeDict(t,r,o);case 29:h.next=37;break;case 31:if(!(t instanceof d.BaseStream)){h.next=36;break}h.next=34;return writeStream(t,r,o);case 34:h.next=37;break;case 36:null===t?r.push("null"):(0,c.warn)("Unhandled value in writer: ".concat(_typeof(t),", please file a bug."));case 37:case"end":return h.stop()}}),_callee5)})))).apply(this,arguments)}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)}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,g=Object.values(r.info);d<g.length;d++){var v=g[d];u.push(v);h+=v.length}for(var m=new Uint8Array(h),_=0,w=0,k=u;w<k.length;w++){var S=k[w];writeString(S,_,m);_+=S.length}return(0,c.bytesToString)((0,y.calculateMD5)(m))}function updateAcroform(t){return _updateAcroform.apply(this,arguments)}function _updateAcroform(){return(_updateAcroform=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(t){var r,o,u,h,d,y,g,v,m,_,w,k,S,C,x,O;return _regeneratorRuntime().wrap((function _callee6$(T){for(;;)switch(T.prev=T.next){case 0:r=t.xref,o=t.acroForm,u=t.acroFormRef,h=t.hasXfa,d=t.hasXfaDatasetsEntry,y=t.xfaDatasetsRef,g=t.needAppearances,v=t.newRefs;!h||d||y||(0,c.warn)("XFA - Cannot save it");if(g||h&&y&&!d){T.next=4;break}return T.abrupt("return");case 4:m=new l.Dict(r);_=_createForOfIteratorHelper(o.getKeys());try{for(_.s();!(w=_.n()).done;){k=w.value;m.set(k,o.getRaw(k))}}catch(t){_.e(t)}finally{_.f()}if(h&&!d){(S=o.get("XFA").slice()).splice(2,0,"datasets");S.splice(3,0,y);m.set("XFA",S)}g&&m.set("NeedAppearances",!0);C=r.encrypt;x=null;C&&(x=C.createCipherTransform(u.num,u.gen));O=[];T.next=15;return writeObject(u,m,O,x);case 15:v.push({ref:u,data:O.join("")});case 16:case"end":return T.stop()}}),_callee6)})))).apply(this,arguments)}function updateXFA(t){var r=t.xfaData,o=t.xfaDatasetsRef,l=t.newRefs,d=t.xref;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 y=o.value.xfa;if(y){var g=y.path,v=y.value;if(g){var m=(0,u.parseXFAPath)(g),_=l.documentElement.searchNode(m,0);!_&&m.length>1&&(_=l.documentElement.searchNode([m.at(-1)],0));_?_.childNodes=Array.isArray(v)?v.map((function(t){return new h.SimpleDOMNode("value",t)})):[new h.SimpleDOMNode("#text",v)]:(0,c.warn)("Node not found for path: ".concat(g))}}}}catch(t){d.e(t)}finally{d.f()}var w=[];l.documentElement.dump(w);return w.join("")}(d.fetchIfRef(o).getString(),l)}var y=d.encrypt;if(y){r=y.createCipherTransform(o.num,o.gen).encryptString(r)}var g="".concat(o.num," ").concat(o.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(r.length,">>\nstream\n")+r+"\nendstream\nendobj\n";l.push({ref:o,data:g})}function _incrementalUpdate(){return(_incrementalUpdate=_asyncToGenerator(_regeneratorRuntime().mark((function _callee7(t){var r,o,c,u,h,d,y,g,v,m,_,w,k,S,C,x,O,T,E,R,M,j,L,D,N,U,G,$,H,X,q,z,W,V,K,Y,J,Z,Q,ee,te,re,ne,ae,ie,oe,se,ce,le;return _regeneratorRuntime().wrap((function _callee7$(ue){for(;;)switch(ue.prev=ue.next){case 0:r=t.originalData,o=t.xrefInfo,c=t.newRefs,u=t.xref,h=void 0===u?null:u,d=t.hasXfa,y=void 0!==d&&d,g=t.xfaDatasetsRef,v=void 0===g?null:g,m=t.hasXfaDatasetsEntry,_=void 0!==m&&m,w=t.needAppearances,k=t.acroFormRef,S=void 0===k?null:k,C=t.acroForm,x=void 0===C?null:C,O=t.xfaData,T=void 0===O?null:O;ue.next=3;return updateAcroform({xref:h,acroForm:x,acroFormRef:S,hasXfa:y,hasXfaDatasetsEntry:_,xfaDatasetsRef:v,needAppearances:w,newRefs:c});case 3:y&&updateXFA({xfaData:T,xfaDatasetsRef:v,newRefs:c,xref:h});E=new l.Dict(null);R=o.newRef;if(10===(L=r.at(-1))||13===L){M=[];j=r.length}else{M=["\n"];j=r.length+1}E.set("Size",R.num+1);E.set("Prev",o.startXRef);E.set("Type",l.Name.get("XRef"));null!==o.rootRef&&E.set("Root",o.rootRef);null!==o.infoRef&&E.set("Info",o.infoRef);null!==o.encryptRef&&E.set("Encrypt",o.encryptRef);c.push({ref:R,data:""});c=c.sort((function(t,r){return t.ref.num-r.ref.num}));D=[[0,1,65535]];N=[0,1];U=0;G=_createForOfIteratorHelper(c);try{for(G.s();!($=G.n()).done;){H=$.value,X=H.ref,q=H.data;U=Math.max(U,j);D.push([1,j,Math.min(X.gen,65535)]);j+=q.length;N.push(X.num,1);M.push(q)}}catch(t){G.e(t)}finally{G.f()}E.set("Index",N);if(Array.isArray(o.fileIds)&&o.fileIds.length>0){z=computeMD5(j,o);E.set("ID",[o.fileIds[0],z])}W=Math.ceil(Math.log2(U)/8);K=(V=[1,W,2])[0]+V[1]+V[2];Y=K*D.length;E.set("W",V);E.set("Length",Y);M.push("".concat(R.num," ").concat(R.gen," obj\n"));ue.next=32;return writeDict(E,M,null);case 32:M.push(" stream\n");J=M.reduce((function(t,r){return t+r.length}),0);Z="\nendstream\nendobj\nstartxref\n".concat(j,"\n%%EOF\n");(Q=new Uint8Array(r.length+J+Y+Z.length)).set(r);ee=r.length;te=_createForOfIteratorHelper(M);try{for(te.s();!(re=te.n()).done;){writeString(ne=re.value,ee,Q);ee+=ne.length}}catch(t){te.e(t)}finally{te.f()}for(ae=0,ie=D;ae<ie.length;ae++){oe=_slicedToArray(ie[ae],3),se=oe[0],ce=oe[1],le=oe[2];ee=writeInt(se,V[0],ee,Q);ee=writeInt(ce,V[1],ee,Q);ee=writeInt(le,V[2],ee,Q)}writeString(Z,ee,Q);return ue.abrupt("return",Q);case 43:case"end":return ue.stop()}}),_callee7)})))).apply(this,arguments)}},(t,r,o)=>{o(113);o(137);o(175);o(177);o(296);o(293);o(114);o(129);o(134);o(305);o(306);Object.defineProperty(r,"__esModule",{value:!0});r.XMLParserErrorCode=r.XMLParserBase=r.SimpleXMLParser=r.SimpleDOMNode=void 0;o(123);o(337);o(339);o(386);o(389);o(290);o(2);o(54);o(56);o(104);o(143);o(183);o(105);o(180);o(302);o(363);o(364);var c=o(343);function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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.replaceAll(/&([^;]+);/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 y=t.indexOf(d,++c);if(y<0)return null;u=t.substring(c,y);o.push({name:h,value:this._resolveEntities(u)});c=y+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 y=t.substring(o+8,c+(d?1:0));this.onDoctype(y);o=c+(d?2:1)}break;default:var g=this._parseContent(t,o);if(null===g){this.onError(l.MalformedElement);return}var v=!1;if("/>"===t.substring(o+g.parsed,o+g.parsed+2))v=!0;else if(">"!==t.substring(o+g.parsed,o+g.parsed+1)){this.onError(l.UnterminatedElement);return}this.onBeginElement(g.name,g.attributes,v);o+=g.parsed+(v?2:1)}}else{for(;o<t.length&&"<"!==t[o];)o++;var m=t.substring(r,o);this.onText(this._resolveEntities(m))}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(){var t;return null===(t=this.childNodes)||void 0===t?void 0:t[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:"children",get:function get(){return this.childNodes||[]}},{key:"hasChildNodes",value:function hasChildNodes(){var t;return(null===(t=this.childNodes)||void 0===t?void 0:t.length)>0}},{key:"searchNode",value:function searchNode(t,r){if(r>=t.length)return this;for(var o=t[r],c=[],l=this;;){var u;if(o.name===l.nodeName){if(0!==o.pos){if(0===c.length)return null;var h,d=0,y=_createForOfIteratorHelper(_slicedToArray(c.pop(),1)[0].childNodes);try{for(y.s();!(h=y.n()).done;){var g=h.value;if(o.name===g.nodeName){if(d===o.pos)return g.searchNode(t,r+1);d++}}}catch(t){y.e(t)}finally{y.f()}return l.searchNode(t,r+1)}var v=l.searchNode(t,r+1);if(null!==v)return v}if((null===(u=l.childNodes)||void 0===u?void 0:u.length)>0){c.push([l,0]);l=l.childNodes[0]}else{if(0===c.length)return null;for(;0!==c.length;){var m=_slicedToArray(c.pop(),2),_=m[0],w=m[1]+1;if(w<_.childNodes.length){c.push([_,w]);l=_.childNodes[w];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.at(-1);if(!r)return null;var o,c=_createForOfIteratorHelper(r.childNodes);try{for(c.s();!(o=c.n()).done;){o.value.parentNode=r}}catch(t){c.e(t)}finally{c.f()}return r}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return SimpleXMLParser}(u);r.SimpleXMLParser=d},(t,r,o)=>{o(113);o(175);o(177);o(134);o(305);o(306);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;o(137);o(143);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(2);o(54);o(56);o(104);o(183);o(105);o(398);o(328);o(290);o(363);o(364);o(377);o(296);o(451);var c=o(304),l=o(350),u=o(452);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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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],y=c[o=o+d&255];c[r]=y;c[o]=d;u[h]=t[h]^c[d+y&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,y=-271733879,g=-1732584194,v=271733878,m=l+72&-64,_=new Uint8Array(m);for(u=0;u<l;++u)_[u]=o[c++];_[u++]=128;for(var w=m-8;u<w;)_[u++]=0;_[u++]=l<<3&255;_[u++]=l>>5&255;_[u++]=l>>13&255;_[u++]=l>>21&255;_[u++]=l>>>29&255;_[u++]=0;_[u++]=0;_[u++]=0;var k=new Int32Array(16);for(u=0;u<m;){for(h=0;h<16;++h,u+=4)k[h]=_[u]|_[u+1]<<8|_[u+2]<<16|_[u+3]<<24;var S=d,C=y,x=g,O=v,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 R=O,M=S+T+r[h]+k[E]|0,j=t[h];O=x;x=C;C=C+(M<<j|M>>>32-j)|0;S=R}d=d+S|0;y=y+C|0;g=g+x|0;v=v+O|0}return new Uint8Array([255&d,d>>8&255,d>>16&255,d>>>24&255,255&y,y>>8&255,y>>16&255,y>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255,255&v,v>>8&255,v>>16&255,v>>>24&255])}}();r.calculateMD5=d;var y=function(){function Word64(t,r){_classCallCheck(this,Word64);this.high=0|t;this.low=0|r}_createClass(Word64,[{key:"and",value:function and(t){this.high&=t.high;this.low&=t.low}},{key:"xor",value:function xor(t){this.high^=t.high;this.low^=t.low}},{key:"or",value:function or(t){this.high|=t.high;this.low|=t.low}},{key:"shiftRight",value:function shiftRight(t){if(t>=32){this.low=this.high>>>t-32|0;this.high=0}else{this.low=this.low>>>t|this.high<<32-t;this.high=this.high>>>t|0}}},{key:"shiftLeft",value:function shiftLeft(t){if(t>=32){this.high=this.low<<t-32;this.low=0}else{this.high=this.high<<t|this.low>>>32-t;this.low<<=t}}},{key:"rotateRight",value:function rotateRight(t){var r,o;if(32&t){o=this.low;r=this.high}else{r=this.low;o=this.high}t&=31;this.low=r>>>t|o<<32-t;this.high=o>>>t|r<<32-t}},{key:"not",value:function not(){this.high=~this.high;this.low=~this.low}},{key:"add",value:function add(t){var r=(this.low>>>0)+(t.low>>>0),o=(this.high>>>0)+(t.high>>>0);r>4294967295&&(o+=1);this.low=0|r;this.high=0|o}},{key:"copyTo",value:function copyTo(t,r){t[r]=this.high>>>24&255;t[r+1]=this.high>>16&255;t[r+2]=this.high>>8&255;t[r+3]=255&this.high;t[r+4]=this.low>>>24&255;t[r+5]=this.low>>16&255;t[r+6]=this.low>>8&255;t[r+7]=255&this.low}},{key:"assign",value:function assign(t){this.high=t.high;this.low=t.low}}]);return Word64}(),g=function calculateSHA256Closure(){function rotr(t,r){return t>>>r|t<<32-r}function ch(t,r,o){return t&r^~t&o}function maj(t,r,o){return t&r^t&o^r&o}function sigma(t){return rotr(t,2)^rotr(t,13)^rotr(t,22)}function sigmaPrime(t){return rotr(t,6)^rotr(t,11)^rotr(t,25)}function littleSigma(t){return rotr(t,7)^rotr(t,18)^t>>>3}var t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function hash(r,o,c){var l,u,h=1779033703,d=3144134277,y=1013904242,g=2773480762,v=1359893119,m=2600822924,_=528734635,w=1541459225,k=64*Math.ceil((c+9)/64),S=new Uint8Array(k);for(l=0;l<c;++l)S[l]=r[o++];S[l++]=128;for(var C=k-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<k;){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,R=y,M=g,j=v,L=m,D=_,N=w,U=void 0,G=void 0;for(u=0;u<64;++u){U=N+sigmaPrime(j)+ch(j,L,D)+t[u]+O[u];G=sigma(T)+maj(T,E,R);N=D;D=L;L=j;j=M+U|0;M=R;R=E;E=T;T=U+G|0}h=h+T|0;d=d+E|0;y=y+R|0;g=g+M|0;v=v+j|0;m=m+L|0;_=_+D|0;w=w+N|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,y>>24&255,y>>16&255,y>>8&255,255&y,g>>24&255,g>>16&255,g>>8&255,255&g,v>>24&255,v>>16&255,v>>8&255,255&v,m>>24&255,m>>16&255,m>>8&255,255&m,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w])}}();r.calculateSHA256=g;var v=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 y(1116352408,3609767458),new y(1899447441,602891725),new y(3049323471,3964484399),new y(3921009573,2173295548),new y(961987163,4081628472),new y(1508970993,3053834265),new y(2453635748,2937671579),new y(2870763221,3664609560),new y(3624381080,2734883394),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,3590304994),new y(1925078388,4068182383),new y(2162078206,991336113),new y(2614888103,633803317),new y(3248222580,3479774868),new y(3835390401,2666613458),new y(4022224774,944711139),new y(264347078,2341262773),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,3175218132),new y(1996064986,2198950837),new y(2554220882,3999719339),new y(2821834349,766784016),new y(2952996808,2566594879),new y(3210313671,3203337956),new y(3336571891,1034457026),new y(3584528711,2466948901),new y(113926993,3758326383),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,2643833823),new y(1695183700,2343527390),new y(1986661051,1014477480),new y(2177026350,1206759142),new y(2456956037,344077627),new y(2730485921,1290863460),new y(2820302411,3158454273),new y(3259730800,3505952657),new y(3345764771,106217008),new y(3516065817,3606008344),new y(3600352804,1432725776),new y(4094571909,1467031594),new y(275423344,851169720),new y(430227734,3100823752),new y(506948616,1363258195),new y(659060556,3750685593),new y(883997877,3785050280),new y(958139571,3318307427),new y(1322822218,3812723403),new y(1537002063,2003034995),new y(1747873779,3602036899),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(2227730452,2716904306),new y(2361852424,442776044),new y(2428436474,593698344),new y(2756734187,3733110249),new y(3204031479,2999351573),new y(3329325298,3815920427),new y(3391569614,3928383900),new y(3515267271,566280711),new y(3940187606,3454069534),new y(4118630271,4000239992),new y(116418474,1914138554),new y(174292421,2731055270),new y(289380356,3203993006),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,2618297676),new y(1288033470,3409855158),new y(1501505948,4234509866),new y(1607167915,987167468),new y(1816402316,1246189591)];return function hash(r,o,c){var l,u,h,d,g,v,m,_,w=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(w){l=new y(3418070365,3238371032);u=new y(1654270250,914150663);h=new y(2438529370,812702999);d=new y(355462360,4144912697);g=new y(1731405415,4290775857);v=new y(2394180231,1750603025);m=new y(3675008525,1694076839);_=new y(1203062813,3204075428)}else{l=new y(1779033703,4089235720);u=new y(3144134277,2227873595);h=new y(1013904242,4271175723);d=new y(2773480762,1595750129);g=new y(1359893119,2917565137);v=new y(2600822924,725511199);m=new y(528734635,4215389547);_=new y(1541459225,327033209)}var k,S,C=128*Math.ceil((c+17)/128),x=new Uint8Array(C);for(k=0;k<c;++k)x[k]=r[o++];x[k++]=128;for(var O=C-16;k<O;)x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=0;x[k++]=c>>>29&255;x[k++]=c>>21&255;x[k++]=c>>13&255;x[k++]=c>>5&255;x[k++]=c<<3&255;var T=new Array(80);for(k=0;k<80;k++)T[k]=new y(0,0);var E,R,M=new y(0,0),j=new y(0,0),L=new y(0,0),D=new y(0,0),N=new y(0,0),U=new y(0,0),G=new y(0,0),$=new y(0,0),H=new y(0,0),X=new y(0,0),q=new y(0,0),z=new y(0,0);for(k=0;k<C;){for(S=0;S<16;++S){T[S].high=x[k]<<24|x[k+1]<<16|x[k+2]<<8|x[k+3];T[S].low=x[k+4]<<24|x[k+5]<<16|x[k+6]<<8|x[k+7];k+=8}for(S=16;S<80;++S){littleSigmaPrime(E=T[S],T[S-2],z);E.add(T[S-7]);littleSigma(q,T[S-15],z);E.add(q);E.add(T[S-16])}M.assign(l);j.assign(u);L.assign(h);D.assign(d);N.assign(g);U.assign(v);G.assign(m);$.assign(_);for(S=0;S<80;++S){H.assign($);sigmaPrime(q,N,z);H.add(q);ch(q,N,U,G,z);H.add(q);H.add(t[S]);H.add(T[S]);sigma(X,M,z);maj(q,M,j,L,z);X.add(q);E=$;$=G;G=U;U=N;D.add(H);N=D;D=L;L=j;j=M;E.assign(H);E.add(X);M=E}l.add(M);u.add(j);h.add(L);d.add(D);g.add(N);v.add(U);m.add(G);_.add($)}if(w){R=new Uint8Array(48);l.copyTo(R,0);u.copyTo(R,8);h.copyTo(R,16);d.copyTo(R,24);g.copyTo(R,32);v.copyTo(R,40)}else{R=new Uint8Array(64);l.copyTo(R,0);u.copyTo(R,8);h.copyTo(R,16);d.copyTo(R,24);g.copyTo(R,32);v.copyTo(R,40);m.copyTo(R,48);_.copyTo(R,56)}return R}}();r.calculateSHA512=v;function calculateSHA384(t,r,o){return v(t,r,o,!0)}var m=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}(),_=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 y=this._cyclesOfRepetition-1;y>=1;--y){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 g=0;g<16;++g)u[g]=this._inv_s[u[g]];for(var v=0,m=16*y;v<16;++v,++m)u[v]^=r[m];for(var _=0;_<16;_+=4){var w=this._mix[u[_]],k=this._mix[u[_+1]],S=this._mix[u[_+2]],C=this._mix[u[_+3]];o=w^k>>>8^k<<24^S>>>16^S<<16^C>>>24^C<<8;u[_]=o>>>24&255;u[_+1]=o>>16&255;u[_+2]=o>>8&255;u[_+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 y=1;y<this._cyclesOfRepetition;y++){for(var g=0;g<16;++g)h[g]=u[h[g]];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 v=0;v<16;v+=4){var m=h[v+0],_=h[v+1],w=h[v+2],k=h[v+3];o=m^_^w^k;h[v+0]^=o^this._mixCol[m^_];h[v+1]^=o^this._mixCol[_^w];h[v+2]^=o^this._mixCol[w^k];h[v+3]^=o^this._mixCol[k^m]}for(var S=0,C=16*y;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 y=this._decrypt(c,this._key),g=0;g<16;++g)y[g]^=h[g];h=c;u.push(y);c=new Uint8Array(16);l=0}}this.buffer=c;this.bufferLength=l;this.iv=h;if(0===u.length)return new Uint8Array(0);var v=16*u.length;if(r){var m=u.at(-1),_=m[15];if(_<=16){for(var w=15,k=16-_;w>=k;--w)if(m[w]!==_){_=0;break}v-=_;u[u.length-1]=m.subarray(0,16-_)}}for(var S=new Uint8Array(v),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 y=this._encrypt(c,this._key);r=y;u.push(y);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 g=16*u.length,v=new Uint8Array(g),m=0,_=0,w=u.length;m<w;++m,_+=16)v.set(u[m],_);return v}}]);return AESBaseCipher}(),w=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],y=c[l-1],g=c[l-4];h=r[h];d=r[d];y=r[y];g=r[g];h^=o[u];for(var v=0;v<4;++v){c[l]=h^=c[l-16];c[++l]=d^=c[l-16];c[++l]=y^=c[l-16];c[++l]=g^=c[l-16];l++}}return c}}]);return AES128Cipher}(_);r.AES128Cipher=w;var k=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,y=32,g=1;y<240;++g){if(y%32==16){c=r[c];l=r[l];u=r[u];h=r[h]}else if(y%32==0){c=o[y-3];l=o[y-2];u=o[y-1];h=o[y-4];c=r[c];l=r[l];u=r[u];h=r[h];c^=d;(d<<=1)>=256&&(d=255&(27^d))}for(var v=0;v<4;++v){o[y]=c^=o[y-32];o[++y]=l^=o[y-32];o[++y]=u^=o[y-32];o[++y]=h^=o[y-32];y++}}return o}}]);return AES256Cipher}(_);r.AES256Cipher=k;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=g(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=g(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=g(l,0,l.length);return new k(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=g(c,0,c.length);return new k(l).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF17}();r.PDF17=S;var C=function(){function PDF20(){_classCallCheck(this,PDF20)}_createClass(PDF20,[{key:"_hash",value:function _hash(t,r,o){for(var c=g(r,0,r.length).subarray(0,32),l=[0],u=0;u<64||l.at(-1)>u-32;){var h=t.length+c.length+o.length,d=new Uint8Array(h),y=0;d.set(t,y);y+=t.length;d.set(c,y);y+=c.length;d.set(o,y);for(var m=new Uint8Array(64*h),_=0,k=0;_<64;_++,k+=h)m.set(d,k);var S=(l=new w(c.subarray(0,16)).encrypt(m,c.subarray(16,32))).slice(0,16).reduce((function(t,r){return t+r}),0)%3;0===S?c=g(l,0,l.length):1===S?c=calculateSHA384(l,0,l.length):2===S&&(c=v(l,0,l.length));u++}return c.subarray(0,32)}},{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=this._hash(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=this._hash(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=this._hash(t,l,o);return new k(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=this._hash(t,c,[]);return new k(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 _){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 y=(0,c.stringToBytes)(t);y=r.encrypt(y);return(0,c.bytesToString)(y)}}]);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,y,g,v){var m,_,w=40+c.length+r.length,k=new Uint8Array(w),S=0;if(o){_=Math.min(32,o.length);for(;S<_;++S)k[S]=o[S]}m=0;for(;S<32;)k[S++]=t[m++];for(m=0,_=c.length;m<_;++m)k[S++]=c[m];k[S++]=255&u;k[S++]=u>>8&255;k[S++]=u>>16&255;k[S++]=u>>>24&255;for(m=0,_=r.length;m<_;++m)k[S++]=r[m];if(y>=4&&!v){k[S++]=255;k[S++]=255;k[S++]=255;k[S++]=255}var C=d(k,0,S),x=g>>3;if(y>=3)for(m=0;m<50;++m)C=d(C,0,x);var O,T=C.subarray(0,x);if(y>=3){for(S=0;S<32;++S)k[S]=t[S];for(m=0,_=r.length;m<_;++m)k[S++]=r[m];O=new h(T).encryptBlock(d(k,0,S));_=T.length;var E=new Uint8Array(_);for(m=1;m<=19;++m){for(var R=0;R<_;++R)E[R]=T[R]^m;O=new h(E).encryptBlock(O)}for(m=0,_=O.length;m<_;++m)if(l[m]!==O[m])return null}else for(m=0,_=(O=new h(T).encryptBlock(t)).length;m<_;++m)if(l[m]!==O[m])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}return d(u,0,c).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 y,g=t.get(r.name);null!=g&&(y=g.get("CFM"));if(!y||"None"===y.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new m};if("V2"===y.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new h(buildObjectKey(o,u,d,!1))};if("AESV2"===y.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new w(buildObjectKey(o,u,d,!0))};if("AESV3"===y.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new k(d)};throw new c.FormatError("Unknown crypto method")}return function(){function CipherTransformFactory(o,u,y){_classCallCheck(this,CipherTransformFactory);var g=o.get("Filter");if(!(0,l.isName)(g,"Standard"))throw new c.FormatError("unknown encryption method");this.filterName=g.name;this.dict=o;var v=o.get("V");if(!Number.isInteger(v)||1!==v&&2!==v&&4!==v&&5!==v)throw new c.FormatError("unsupported encryption algorithm");this.algorithm=v;var m=o.get("Length");if(!m)if(v<=3)m=40;else{var _=o.get("CF"),w=o.get("StmF");if(_ instanceof l.Dict&&w instanceof l.Name){_.suppressEncryption=!0;var k=_.get(w.name);(m=(null==k?void 0:k.get("Length"))||128)<40&&(m<<=3)}}if(!Number.isInteger(m)||m<40||m%8!=0)throw new c.FormatError("invalid key length");var x=(0,c.stringToBytes)(o.get("O")),O=(0,c.stringToBytes)(o.get("U")),T=x.subarray(0,32),E=O.subarray(0,32),R=o.get("P"),M=o.get("R"),j=(4===v||5===v)&&!1!==o.get("EncryptMetadata");this.encryptMetadata=j;var L,D,N=(0,c.stringToBytes)(u);if(y){if(6===M)try{y=(0,c.utf8StringToString)(y)}catch(t){(0,c.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}L=(0,c.stringToBytes)(y)}if(5!==v)D=prepareKeyData(N,L,T,E,R,M,m,j);else{var U=x.subarray(32,40),G=x.subarray(40,48),$=O.subarray(0,48),H=O.subarray(32,40),X=O.subarray(40,48),q=(0,c.stringToBytes)(o.get("OE")),z=(0,c.stringToBytes)(o.get("UE"));(0,c.stringToBytes)(o.get("Perms"));D=function createEncryptionKey20(t,r,o,c,l,u,h,d,y,g,v,m){if(r){var _=Math.min(127,r.length);r=r.subarray(0,_)}else r=[];var w=6===t?new C:new S;return w.checkUserPassword(r,d,h)?w.getUserKey(r,y,v):r.length&&w.checkOwnerPassword(r,c,u,o)?w.getOwnerKey(r,l,u,g):null}(M,L,T,U,G,$,E,H,X,q,z)}if(!D&&!y)throw new c.PasswordException("No password given",c.PasswordResponses.NEED_PASSWORD);if(!D&&y){var W=function decodeUserPassword(r,o,c,l){for(var u=new Uint8Array(32),y=0,g=Math.min(32,r.length);y<g;++y)u[y]=r[y];for(var v=0;y<32;)u[y++]=t[v++];var m,_=d(u,0,y),w=l>>3;if(c>=3)for(v=0;v<50;++v)_=d(_,0,_.length);if(c>=3){m=o;var k=new Uint8Array(w);for(v=19;v>=0;v--){for(var S=0;S<w;++S)k[S]=_[S]^v;m=new h(k).encryptBlock(m)}}else m=new h(_.subarray(0,w)).encryptBlock(o);return m}(L,T,M,m);D=prepareKeyData(N,W,T,E,R,M,m,j)}if(!D)throw new c.PasswordException("Incorrect Password",c.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=D;if(v>=4){var V=o.get("CF");V instanceof l.Dict&&(V.suppressEncryption=!0);this.cf=V;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.strf,t,r,this.encryptionKey),buildCipherConstructor(this.cf,this.stmf,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)=>{o(58)({target:"String",proto:!0},{repeat:o(333)})},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.DecryptStream=void 0;o(134);var c=o(393);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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,r;if(this.initialized)r=this.nextChunk;else{r=this.str.getBytes(512);this.initialized=!0}if(r&&0!==r.length){this.nextChunk=this.str.getBytes(512);var o=(null===(t=this.nextChunk)||void 0===t?void 0:t.length)>0;r=(0,this.decrypt)(r,!o);var c=this.bufferLength,l=c+r.length;this.ensureBuffer(l).set(r,c);this.bufferLength=l}else this.eof=!0}}]);return DecryptStream}(c.DecodeStream);r.DecryptStream=l},(t,r,o)=>{o(114);o(113);o(130);o(131);o(132);o(133);o(134);Object.defineProperty(r,"__esModule",{value:!0});r.Catalog=void 0;o(137);o(335);o(143);o(175);o(177);o(123);o(129);o(371);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(105);o(290);o(293);o(329);o(330);o(296);o(300);o(451);o(302);o(337);o(339);o(145);o(183);o(363);o(364);o(99);o(2);o(54);o(56);o(104);var c=o(343),l=o(304),u=o(350),h=o(454),d=o(354),y=o(455),g=o(380),v=o(456),m=o(441),_=o(457),w=o(458);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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function fetchDestination(t){t instanceof u.Dict&&(t=t.get("D"));return Array.isArray(t)?t:null}var k=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 u.Dict))throw new l.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict;this._actualNumPages=null;this.fontCache=new u.RefSetCache;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new m.GlobalImageCache;this.pageKidsCountCache=new u.RefSetCache;this.pageIndexCache=new u.RefSetCache;this.nonBlendModesSet=new u.RefSet;this.systemFontCache=new Map}!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");if(t instanceof u.Name){if(c.PDF_VERSION_REGEXP.test(t.name))return(0,l.shadow)(this,"version",t.name);(0,l.warn)("Invalid PDF catalog version: ".concat(t.name))}return(0,l.shadow)(this,"version",null)}},{key:"lang",get:function get(){var t=this._catDict.get("Lang");return(0,l.shadow)(this,"lang","string"==typeof t?(0,l.stringToPDFString)(t):null)}},{key:"needsRendering",get:function get(){var t=this._catDict.get("NeedsRendering");return(0,l.shadow)(this,"needsRendering","boolean"==typeof t&&t)}},{key:"collection",get:function get(){var t=null;try{var r=this._catDict.get("Collection");r instanceof u.Dict&&r.size>0&&(t=r)}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,l.shadow)(this,"collection",t)}},{key:"acroForm",get:function get(){var t=null;try{var r=this._catDict.get("AcroForm");r instanceof u.Dict&&r.size>0&&(t=r)}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,l.shadow)(this,"acroForm",t)}},{key:"acroFormRef",get:function get(){var t=this._catDict.getRaw("AcroForm");return(0,l.shadow)(this,"acroFormRef",t instanceof u.Ref?t:null)}},{key:"metadata",get:function get(){var t=this._catDict.getRaw("Metadata");if(!(t instanceof u.Ref))return(0,l.shadow)(this,"metadata",null);var r=null;try{var o,h=this.xref.fetch(t,!(null!==(o=this.xref.encrypt)&&void 0!==o&&o.encryptMetadata));if(h instanceof d.BaseStream&&h.dict instanceof u.Dict){var y=h.dict.get("Type"),g=h.dict.get("Subtype");if((0,u.isName)(y,"Metadata")&&(0,u.isName)(g,"XML")){var v=(0,l.stringToUTF8String)(h.getString());v&&(r=new _.MetadataParser(v).serializable)}}}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.info)('Skipping invalid Metadata: "'.concat(t,'".'))}return(0,l.shadow)(this,"metadata",r)}},{key:"markInfo",get:function get(){var t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.warn)("Unable to read mark info.")}return(0,l.shadow)(this,"markInfo",t)}},{key:"_readMarkInfo",value:function _readMarkInfo(){var t=this._catDict.get("MarkInfo");if(!(t instanceof u.Dict))return null;var r={Marked:!1,UserProperties:!1,Suspects:!1};for(var o in r){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 c.MissingDataException)throw t;(0,l.warn)("Unable read to structTreeRoot info.")}return(0,l.shadow)(this,"structTreeRoot",t)}},{key:"_readStructTreeRoot",value:function _readStructTreeRoot(){var t=this._catDict.get("StructTreeRoot");if(!(t instanceof u.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 u.Dict))throw new l.FormatError("Invalid top-level pages dictionary.");return(0,l.shadow)(this,"toplevelPagesDict",t)}},{key:"documentOutline",get:function get(){var t=null;try{t=this._readDocumentOutline()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.warn)("Unable to read document outline.")}return(0,l.shadow)(this,"documentOutline",t)}},{key:"_readDocumentOutline",value:function _readDocumentOutline(){var t=this._catDict.get("Outlines");if(!(t instanceof u.Dict))return null;if(!((t=t.getRaw("First"))instanceof u.Ref))return null;var r={items:[]},o=[{obj:t,parent:r}],c=new u.RefSet;c.put(t);for(var h=this.xref,d=new Uint8ClampedArray(3);o.length>0;){var y=o.shift(),v=h.fetchIfRef(y.obj);if(null!==v){if(!v.has("Title"))throw new l.FormatError("Invalid outline item encountered.");var m={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:v,resultObj:m,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments});var _=v.get("Title"),w=v.get("F")||0,k=v.getArray("C"),S=v.get("Count"),C=d;!Array.isArray(k)||3!==k.length||0===k[0]&&0===k[1]&&0===k[2]||(C=g.ColorSpace.singletons.rgb.getRgb(k,0));var x={action:m.action,attachment:m.attachment,dest:m.dest,url:m.url,unsafeUrl:m.unsafeUrl,newWindow:m.newWindow,setOCGState:m.setOCGState,title:(0,l.stringToPDFString)(_),color:C,count:Number.isInteger(S)?S:void 0,bold:!!(2&w),italic:!!(1&w),items:[]};y.parent.items.push(x);if((t=v.getRaw("First"))instanceof u.Ref&&!c.has(t)){o.push({obj:t,parent:x});c.put(t)}if((t=v.getRaw("Next"))instanceof u.Ref&&!c.has(t)){o.push({obj:t,parent:y.parent});c.put(t)}}}return r.items.length>0?r.items:null}},{key:"permissions",get:function get(){var t=null;try{t=this._readPermissions()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.warn)("Unable to read permissions.")}return(0,l.shadow)(this,"permissions",t)}},{key:"_readPermissions",value:function _readPermissions(){var t=this.xref.trailer.get("Encrypt");if(!(t instanceof u.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 l.PermissionFlag){var h=l.PermissionFlag[c];r&h&&o.push(h)}return o}},{key:"optionalContentConfig",get:function get(){var t=null;try{var r=this._catDict.get("OCProperties");if(!r)return(0,l.shadow)(this,"optionalContentConfig",null);var o=r.get("D");if(!o)return(0,l.shadow)(this,"optionalContentConfig",null);var h=r.get("OCGs");if(!Array.isArray(h))return(0,l.shadow)(this,"optionalContentConfig",null);var d,y=[],g=[],v=_createForOfIteratorHelper(h);try{for(v.s();!(d=v.n()).done;){var m=d.value;if(m instanceof u.Ref){g.push(m);var _=this.xref.fetchIfRef(m);y.push({id:m.toString(),name:"string"==typeof _.get("Name")?(0,l.stringToPDFString)(_.get("Name")):null,intent:"string"==typeof _.get("Intent")?(0,l.stringToPDFString)(_.get("Intent")):null})}}}catch(t){v.e(t)}finally{v.f()}(t=this._readOptionalContentConfig(o,g)).groups=y}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.warn)("Unable to read optional content config: ".concat(t))}return(0,l.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 h=c.value;h instanceof u.Ref&&(r.includes(h)&&o.push(h.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,h=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(l=d.n()).done;){var y=l.value;if(y instanceof u.Ref&&r.includes(y)){c.put(y);h.push(y.toString())}else{var g=parseNestedOrder(y,o);g&&h.push(g)}}}catch(t){d.e(t)}finally{d.f()}if(o>0)return h;var v,m=[],_=_createForOfIteratorHelper(r);try{for(_.s();!(v=_.n()).done;){var w=v.value;c.has(w)||m.push(w.toString())}}catch(t){_.e(t)}finally{_.f()}m.length&&h.push({name:null,order:m});return h}function parseNestedOrder(t,r){if(++r>h){(0,l.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}var c=o.fetchIfRef(t);if(!Array.isArray(c))return null;var u=o.fetchIfRef(c[0]);if("string"!=typeof u)return null;var d=parseOrder(c.slice(1),r);return d&&d.length?{name:(0,l.stringToPDFString)(u),order:d}:null}var o=this.xref,c=new u.RefSet,h=10;return{name:"string"==typeof t.get("Name")?(0,l.stringToPDFString)(t.get("Name")):null,creator:"string"==typeof t.get("Creator")?(0,l.stringToPDFString)(t.get("Creator")):null,baseState:t.get("BaseState")instanceof u.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 l.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,l.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 h.NameTree){var o,c=_createForOfIteratorHelper(t.getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2),y=d[0],g=fetchDestination(d[1]);g&&(r[(0,l.stringToPDFString)(y)]=g)}}catch(t){c.e(t)}finally{c.f()}}else t instanceof u.Dict&&t.forEach((function(t,o){var c=fetchDestination(o);c&&(r[t]=c)}));return(0,l.shadow)(this,"destinations",r)}},{key:"getDestination",value:function getDestination(t){var r=this._readDests();if(r instanceof h.NameTree){var o=fetchDestination(r.get(t));if(o)return o;var c=this.destinations[t];if(c){(0,l.warn)('Found "'.concat(t,'" at an incorrect position in the NameTree.'));return c}}else if(r instanceof u.Dict){var d=fetchDestination(r.get(t));if(d)return d}return null}},{key:"_readDests",value:function _readDests(){var t=this._catDict.get("Names");return null!=t&&t.has("Dests")?new h.NameTree(t.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function get(){var t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof c.MissingDataException)throw t;(0,l.warn)("Unable to read page labels.")}return(0,l.shadow)(this,"pageLabels",t)}},{key:"_readPageLabels",value:function _readPageLabels(){var t=this._catDict.getRaw("PageLabels");if(!t)return null;for(var r=new Array(this.numPages),o=null,d="",y=new h.NumberTree(t,this.xref).getAll(),g="",v=1,m=0,_=this.numPages;m<_;m++){var w=y.get(m);if(void 0!==w){if(!(w instanceof u.Dict))throw new l.FormatError("PageLabel is not a dictionary.");if(w.has("Type")&&!(0,u.isName)(w.get("Type"),"PageLabel"))throw new l.FormatError("Invalid type in PageLabel dictionary.");if(w.has("S")){var k=w.get("S");if(!(k instanceof u.Name))throw new l.FormatError("Invalid style in PageLabel dictionary.");o=k.name}else o=null;if(w.has("P")){var S=w.get("P");if("string"!=typeof S)throw new l.FormatError("Invalid prefix in PageLabel dictionary.");d=(0,l.stringToPDFString)(S)}else d="";if(w.has("St")){var C=w.get("St");if(!(Number.isInteger(C)&&C>=1))throw new l.FormatError("Invalid start in PageLabel dictionary.");v=C}else v=1}switch(o){case"D":g=v;break;case"R":case"r":g=(0,c.toRomanNumerals)(v,"r"===o);break;case"A":case"a":var x="a"===o?97:65,O=v-1;g=String.fromCharCode(x+O%26).repeat(Math.floor(O/26)+1);break;default:if(o)throw new l.FormatError('Invalid style "'.concat(o,'" in PageLabel dictionary.'));g=""}r[m]=d+g;v++}return r}},{key:"pageLayout",get:function get(){var t=this._catDict.get("PageLayout"),r="";if(t instanceof u.Name)switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":r=t.name}return(0,l.shadow)(this,"pageLayout",r)}},{key:"pageMode",get:function get(){var t=this._catDict.get("PageMode"),r="UseNone";if(t instanceof u.Name)switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":r=t.name}return(0,l.shadow)(this,"pageMode",r)}},{key:"viewerPreferences",get:function get(){var t=this,r=this._catDict.get("ViewerPreferences");if(!(r instanceof u.Dict))return(0,l.shadow)(this,"viewerPreferences",null);var o,c=null,h=_createForOfIteratorHelper(r.getKeys());try{for(h.s();!(o=h.n()).done;){var d=o.value,y=r.get(d),g=void 0;switch(d){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof y&&(g=y);break;case"NonFullScreenPageMode":if(y instanceof u.Name)switch(y.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":g=y.name;break;default:g="UseNone"}break;case"Direction":if(y instanceof u.Name)switch(y.name){case"L2R":case"R2L":g=y.name;break;default:g="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(y instanceof u.Name)switch(y.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":g=y.name;break;default:g="CropBox"}break;case"PrintScaling":if(y instanceof u.Name)switch(y.name){case"None":case"AppDefault":g=y.name;break;default:g="AppDefault"}break;case"Duplex":if(y instanceof u.Name)switch(y.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":g=y.name;break;default:g="None"}break;case"PrintPageRange":if(Array.isArray(y)&&y.length%2==0){y.every((function(r,o,c){return Number.isInteger(r)&&r>0&&(0===o||r>=c[o-1])&&r<=t.numPages}))&&(g=y)}break;case"NumCopies":Number.isInteger(y)&&y>0&&(g=y);break;default:(0,l.warn)("Ignoring non-standard key in ViewerPreferences: ".concat(d,"."));continue}if(void 0!==g){c||(c=Object.create(null));c[d]=g}else(0,l.warn)('Bad value, for key "'.concat(d,'", in ViewerPreferences: ').concat(y,"."))}}catch(t){h.e(t)}finally{h.f()}return(0,l.shadow)(this,"viewerPreferences",c)}},{key:"openAction",get:function get(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if(t instanceof u.Dict){var o=new u.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,l.shadow)(this,"openAction",(0,l.objectSize)(r)>0?r:null)}},{key:"attachments",get:function get(){var t=this._catDict.get("Names"),r=null;if(t instanceof u.Dict&&t.has("EmbeddedFiles")){var o,c=_createForOfIteratorHelper(new h.NameTree(t.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2),y=d[0],g=d[1],m=new v.FileSpec(g,this.xref);r||(r=Object.create(null));r[(0,l.stringToPDFString)(y)]=m.serializable}}catch(t){c.e(t)}finally{c.f()}}return(0,l.shadow)(this,"attachments",r)}},{key:"xfaImages",get:function get(){var t=this._catDict.get("Names"),r=null;if(t instanceof u.Dict&&t.has("XFAImages")){var o,c=_createForOfIteratorHelper(new h.NameTree(t.getRaw("XFAImages"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var d=_slicedToArray(o.value,2),y=d[0],g=d[1];r||(r=new u.Dict(this.xref));r.set((0,l.stringToPDFString)(y),g)}}catch(t){c.e(t)}finally{c.f()}}return(0,l.shadow)(this,"xfaImages",r)}},{key:"_collectJavaScript",value:function _collectJavaScript(){var t=this._catDict.get("Names"),r=null;function appendIfJavaScriptDict(t,o){if(o instanceof u.Dict&&(0,u.isName)(o.get("S"),"JavaScript")){var c=o.get("JS");if(c instanceof d.BaseStream)c=c.getString();else if("string"!=typeof c)return;(c=(0,l.stringToPDFString)(c).replaceAll("\0",""))&&(r||(r=new Map)).set(t,c)}}if(t instanceof u.Dict&&t.has("JavaScript")){var o,c=_createForOfIteratorHelper(new h.NameTree(t.getRaw("JavaScript"),this.xref).getAll());try{for(c.s();!(o=c.n()).done;){var y=_slicedToArray(o.value,2),g=y[0],v=y[1];appendIfJavaScriptDict((0,l.stringToPDFString)(g),v)}}catch(t){c.e(t)}finally{c.f()}}var m=this._catDict.get("OpenAction");m&&appendIfJavaScriptDict("OpenAction",m);return r}},{key:"jsActions",get:function get(){var t=this._collectJavaScript(),r=(0,c.collectActions)(this.xref,this._catDict,l.DocumentActionEventType);if(t){r||(r=Object.create(null));var o,u=_createForOfIteratorHelper(t);try{for(u.s();!(o=u.n()).done;){var h=_slicedToArray(o.value,2),d=h[0],y=h[1];d in r?r[d].push(y):r[d]=[y]}}catch(t){u.e(t)}finally{u.f()}}return(0,l.shadow)(this,"jsActions",r)}},{key:"fontFallback",value:(k=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t,r){var o,c,l,u;return _regeneratorRuntime().wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:h.next=2;return Promise.all(this.fontCache);case 2:o=h.sent;c=_createForOfIteratorHelper(o);h.prev=4;c.s();case 6:if((l=c.n()).done){h.next=13;break}if((u=l.value).loadedName!==t){h.next=11;break}u.fallback(r);return h.abrupt("return");case 11:h.next=6;break;case 13:h.next=18;break;case 15:h.prev=15;h.t0=h.catch(4);c.e(h.t0);case 18:h.prev=18;c.f();return h.finish(18);case 21:case"end":return h.stop()}}),_callee,this,[[4,15,18,21]])}))),function fontFallback(t,r){return k.apply(this,arguments)})},{key:"cleanup",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(){var t,r,o,c,l=arguments;return _regeneratorRuntime().wrap((function _callee2$(u){for(;;)switch(u.prev=u.next){case 0:t=l.length>0&&void 0!==l[0]&&l[0];(0,y.clearGlobalCaches)();this.globalImageCache.clear(t);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.nonBlendModesSet.clear();u.next=8;return Promise.all(this.fontCache);case 8:r=u.sent;o=_createForOfIteratorHelper(r);try{for(o.s();!(c=o.n()).done;)delete c.value.dict.cacheKey}catch(t){o.e(t)}finally{o.f()}this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear();this.systemFontCache.clear();case 15:case"end":return u.stop()}}),_callee2,this)}))),function cleanup(){return o.apply(this,arguments)})},{key:"getPageDict",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(t){var r,o,c,h,d,y,g,v,m,_,w,k,S,C,x,O;return _regeneratorRuntime().wrap((function _callee3$(T){for(;;)switch(T.prev=T.next){case 0:r=[this.toplevelPagesDict];o=new u.RefSet;(c=this._catDict.getRaw("Pages"))instanceof u.Ref&&o.put(c);h=this.xref,d=this.pageKidsCountCache,y=this.pageIndexCache;g=0;case 6:if(!r.length){T.next=67;break}if(!((v=r.pop())instanceof u.Ref)){T.next=34;break}if(!((m=d.get(v))>=0&&g+m<=t)){T.next=13;break}g+=m;return T.abrupt("continue",6);case 13:if(!o.has(v)){T.next=15;break}throw new l.FormatError("Pages tree contains circular reference.");case 15:o.put(v);T.next=18;return h.fetchAsync(v);case 18:if(!((_=T.sent)instanceof u.Dict)){T.next=32;break}if(!((w=_.getRaw("Type"))instanceof u.Ref)){T.next=25;break}T.next=24;return h.fetchAsync(w);case 24:w=T.sent;case 25:if(!(0,u.isName)(w,"Page")&&_.has("Kids")){T.next=32;break}d.has(v)||d.put(v,1);y.has(v)||y.put(v,g);if(g!==t){T.next=30;break}return T.abrupt("return",[_,v]);case 30:g++;return T.abrupt("continue",6);case 32:r.push(_);return T.abrupt("continue",6);case 34:if(v instanceof u.Dict){T.next=36;break}throw new l.FormatError("Page dictionary kid reference points to wrong type of object.");case 36:k=v.objId;if(!((S=v.getRaw("Count"))instanceof u.Ref)){T.next=42;break}T.next=41;return h.fetchAsync(S);case 41:S=T.sent;case 42:if(!(Number.isInteger(S)&&S>=0)){T.next=47;break}k&&!d.has(k)&&d.put(k,S);if(!(g+S<=t)){T.next=47;break}g+=S;return T.abrupt("continue",6);case 47:if(!((C=v.getRaw("Kids"))instanceof u.Ref)){T.next=52;break}T.next=51;return h.fetchAsync(C);case 51:C=T.sent;case 52:if(Array.isArray(C)){T.next=64;break}if(!((x=v.getRaw("Type"))instanceof u.Ref)){T.next=58;break}T.next=57;return h.fetchAsync(x);case 57:x=T.sent;case 58:if(!(0,u.isName)(x,"Page")&&v.has("Kids")){T.next=63;break}if(g!==t){T.next=61;break}return T.abrupt("return",[v,null]);case 61:g++;return T.abrupt("continue",6);case 63:throw new l.FormatError("Page dictionary kids object is not an array.");case 64:for(O=C.length-1;O>=0;O--)r.push(C[O]);T.next=6;break;case 67:throw new Error("Page index ".concat(t," not found."));case 68:case"end":return T.stop()}}),_callee3,this)}))),function getPageDict(t){return r.apply(this,arguments)})},{key:"getAllPageDicts",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(){var t,r,o,h,d,y,g,v,m,_,w,k,S,C,x,O,T,E,R=arguments;return _regeneratorRuntime().wrap((function _callee4$(M){for(;;)switch(M.prev=M.next){case 0:w=function _addPageError(o){if(o instanceof c.XRefEntryException&&!t)throw o;if(t&&r&&0===m){(0,l.warn)('getAllPageDicts - Skipping invalid first page: "'.concat(o,'".'));o=u.Dict.empty}y.set(m++,[o,null])};_=function _addPageDict(t,r){r&&!v.has(r)&&v.put(r,m);y.set(m++,[t,r])};t=R.length>0&&void 0!==R[0]&&R[0];r=this.pdfManager.evaluatorOptions.ignoreErrors;o=[{currentNode:this.toplevelPagesDict,posInKids:0}];h=new u.RefSet;(d=this._catDict.getRaw("Pages"))instanceof u.Ref&&h.put(d);y=new Map,g=this.xref,v=this.pageIndexCache;m=0;case 10:if(!(o.length>0)){M.next=70;break}k=o.at(-1);S=k.currentNode,C=k.posInKids;if(!((x=S.getRaw("Kids"))instanceof u.Ref)){M.next=25;break}M.prev=15;M.next=18;return g.fetchAsync(x);case 18:x=M.sent;M.next=25;break;case 21:M.prev=21;M.t0=M.catch(15);w(M.t0);return M.abrupt("break",70);case 25:if(Array.isArray(x)){M.next=28;break}w(new l.FormatError("Page dictionary kids object is not an array."));return M.abrupt("break",70);case 28:if(!(C>=x.length)){M.next=31;break}o.pop();return M.abrupt("continue",10);case 31:O=x[C];T=void 0;if(!(O instanceof u.Ref)){M.next=50;break}if(!h.has(O)){M.next=37;break}w(new l.FormatError("Pages tree contains circular reference."));return M.abrupt("break",70);case 37:h.put(O);M.prev=38;M.next=41;return g.fetchAsync(O);case 41:T=M.sent;M.next=48;break;case 44:M.prev=44;M.t1=M.catch(38);w(M.t1);return M.abrupt("break",70);case 48:M.next=51;break;case 50:T=O;case 51:if(T instanceof u.Dict){M.next=54;break}w(new l.FormatError("Page dictionary kid reference points to wrong type of object."));return M.abrupt("break",70);case 54:if(!((E=T.getRaw("Type"))instanceof u.Ref)){M.next=66;break}M.prev=56;M.next=59;return g.fetchAsync(E);case 59:E=M.sent;M.next=66;break;case 62:M.prev=62;M.t2=M.catch(56);w(M.t2);return M.abrupt("break",70);case 66:(0,u.isName)(E,"Page")||!T.has("Kids")?_(T,O instanceof u.Ref?O:null):o.push({currentNode:T,posInKids:0});k.posInKids++;M.next=10;break;case 70:return M.abrupt("return",y);case 71:case"end":return M.stop()}}),_callee4,this,[[15,21],[38,44],[56,62]])}))),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 h=0;return function next(o){return function pagesBeforeRef(r){var o,h=0;return c.fetchAsync(r).then((function(c){if((0,u.isRefsEqual)(r,t)&&!(0,u.isDict)(c,"Page")&&!(c instanceof u.Dict&&!c.has("Type")&&c.has("Contents")))throw new l.FormatError("The reference does not point to a /Page dictionary.");if(!c)return null;if(!(c instanceof u.Dict))throw new l.FormatError("Node must be a dictionary.");o=c.getRaw("Parent");return c.getAsync("Parent")})).then((function(t){if(!t)return null;if(!(t instanceof u.Dict))throw new l.FormatError("Parent must be a dictionary.");return t.getAsync("Kids")})).then((function(t){if(!t)return null;var d,y=[],g=!1,v=_createForOfIteratorHelper(t);try{for(v.s();!(d=v.n()).done;){var m=d.value;if(!(m instanceof u.Ref))throw new l.FormatError("Kid must be a reference.");if((0,u.isRefsEqual)(m,r)){g=!0;break}y.push(c.fetchAsync(m).then((function(t){if(!(t instanceof u.Dict))throw new l.FormatError("Kid node must be a dictionary.");t.has("Count")?h+=t.get("Count"):h++})))}}catch(t){v.e(t)}finally{v.f()}if(!g)throw new l.FormatError("Kid reference not found in parent's kids.");return Promise.all(y).then((function(){return[h,o]}))}))}(o).then((function(o){if(!o){r.pageIndexCache.put(t,h);return h}var c=_slicedToArray(o,2),l=c[0],u=c[1];h+=l;return next(u)}))}(t)}},{key:"baseUrl",get:function get(){var t=this._catDict.get("URI");if(t instanceof u.Dict){var r=t.get("Base");if("string"==typeof r){var o=(0,l.createValidAbsoluteUrl)(r,null,{tryConvertEncoding:!0});if(o)return(0,l.shadow)(this,"baseUrl",o.href)}}return(0,l.shadow)(this,"baseUrl",null)}}],[{key:"parseDestDictionary",value:function parseDestDictionary(t){var r=t.destDict;if(r instanceof u.Dict){var o=t.resultObj;if("object"===_typeof(o)){var h,y,g=t.docBaseUrl||null,v=t.docAttachments||null,m=r.get("A");m instanceof u.Dict||(r.has("Dest")?m=r.get("Dest"):(m=r.get("AA"))instanceof u.Dict&&(m.has("D")?m=m.get("D"):m.has("U")&&(m=m.get("U"))));if(m instanceof u.Dict){var _=m.get("S");if(!(_ instanceof u.Name)){(0,l.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}var w=_.name;switch(w){case"ResetForm":var k,S=m.get("Flags"),C=0==(1&("number"==typeof S?S:0)),x=[],O=[],T=_createForOfIteratorHelper(m.get("Fields")||[]);try{for(T.s();!(k=T.n()).done;){var E=k.value;E instanceof u.Ref?O.push(E.toString()):"string"==typeof E&&x.push((0,l.stringToPDFString)(E))}}catch(t){T.e(t)}finally{T.f()}o.resetForm={fields:x,refs:O,include:C};break;case"URI":(h=m.get("URI"))instanceof u.Name&&(h="/"+h.name);break;case"GoTo":y=m.get("D");break;case"Launch":case"GoToR":var R=m.get("F");R instanceof u.Dict?h=R.get("F")||null:"string"==typeof R&&(h=R);var M=m.get("D");if(M){M instanceof u.Name&&(M=M.name);if("string"==typeof h){var j=h.split("#")[0];"string"==typeof M?h=j+"#"+M:Array.isArray(M)&&(h=j+"#"+JSON.stringify(M))}}var L=m.get("NewWindow");"boolean"==typeof L&&(o.newWindow=L);break;case"GoToE":var D,N=m.get("T");if(v&&N instanceof u.Dict){var U=N.get("R"),G=N.get("N");(0,u.isName)(U,"C")&&"string"==typeof G&&(D=v[(0,l.stringToPDFString)(G)])}D?o.attachment=D:(0,l.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":var $=m.get("N");$ instanceof u.Name&&(o.action=$.name);break;case"SetOCGState":var H=m.get("State"),X=m.get("PreserveRB");if(!Array.isArray(H)||0===H.length)break;var q,z=[],W=_createForOfIteratorHelper(H);try{for(W.s();!(q=W.n()).done;){var V=q.value;if(V instanceof u.Name)switch(V.name){case"ON":case"OFF":case"Toggle":z.push(V.name)}else V instanceof u.Ref&&z.push(V.toString())}}catch(t){W.e(t)}finally{W.f()}if(z.length!==H.length)break;o.setOCGState={state:z,preserveRB:"boolean"!=typeof X||X};break;case"JavaScript":var K,Y=m.get("JS");Y instanceof d.BaseStream?K=Y.getString():"string"==typeof Y&&(K=Y);var J=K&&(0,c.recoverJsURL)((0,l.stringToPDFString)(K));if(J){h=J.url;o.newWindow=J.newWindow;break}default:if("JavaScript"===w||"SubmitForm"===w)break;(0,l.warn)('parseDestDictionary - unsupported action: "'.concat(w,'".'))}}else r.has("Dest")&&(y=r.get("Dest"));if("string"==typeof h){var Z=(0,l.createValidAbsoluteUrl)(h,g,{addDefaultProtocol:!0,tryConvertEncoding:!0});Z&&(o.url=Z.href);o.unsafeUrl=h}if(y){y instanceof u.Name&&(y=y.name);"string"==typeof y?o.dest=(0,l.stringToPDFString)(y):Array.isArray(y)&&(o.dest=y)}}else(0,l.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,l.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]);var t,r,o,k;return Catalog}();r.Catalog=k},(t,r,o)=>{o(296);o(293);o(114);o(123);o(129);o(113);o(134);o(305);o(306);Object.defineProperty(r,"__esModule",{value:!0});r.NumberTree=r.NameTree=void 0;o(137);o(335);o(143);o(175);o(177);o(290);o(2);o(54);o(56);o(104);o(183);o(105);var c=o(350),l=o(304);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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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")){var d=h.get("Kids");if(!Array.isArray(d))continue;var y,g=_createForOfIteratorHelper(d);try{for(g.s();!(y=g.n()).done;){var v=y.value;if(o.has(v))throw new l.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));u.push(v);o.put(v)}}catch(t){g.e(t)}finally{g.f()}}else{var m=h.get(this._type);if(Array.isArray(m))for(var _=0,w=m.length;_<w;_+=2)t.set(r.fetchIfRef(m[_]),r.fetchIfRef(m[_+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 y=h+d>>1,g=r.fetchIfRef(u[y]),v=g.get("Limits");if(t<r.fetchIfRef(v[0]))d=y-1;else{if(!(t>r.fetchIfRef(v[1]))){o=g;break}h=y+1}}if(h>d)return null}var m=o.get(this._type);if(Array.isArray(m))for(var _=0,w=m.length-2;_<=w;){var k=_+w>>1,S=k+(1&k),C=r.fetchIfRef(m[S]);if(t<C)w=S-2;else{if(!(t>C))return r.fetchIfRef(m[S+1]);_=S+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)=>{Object.defineProperty(r,"__esModule",{value:!0});r.clearGlobalCaches=function clearGlobalCaches(){(0,c.clearPrimitiveCaches)();(0,l.clearUnicodeCaches)()};var c=o(350),l=o(419)},(t,r,o)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.FileSpec=void 0;o(56);o(104);o(123);o(337);o(339);o(2);o(54);o(143);o(183);o(105);var c=o(304),l=o(354),u=o(350);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}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)=>{o(113);o(296);o(114);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.MetadataParser=void 0;o(137);o(335);o(143);o(175);o(177);o(123);o(337);o(339);o(183);o(290);o(293);o(182);o(180);o(374);o(2);o(54);o(56);o(104);o(105);var c=o(449);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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(t,r){for(var o=r.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(t,r,o,c){return String.fromCharCode(64*r+8*o+1*c)})).replaceAll(/&(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,y=d.nodeName;switch(y){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(d);continue}this._metadataMap.set(y,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)=>{o(113);o(296);o(114);o(123);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.StructTreeRoot=r.StructTreePage=void 0;o(137);o(335);o(143);o(175);o(177);o(300);o(2);o(54);o(56);o(104);o(183);o(105);o(293);o(290);o(302);var c=o(350),l=o(304),u=o(454);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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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",y="OBJECT",g="ELEMENT",v=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=v;var m=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 y=this.parseKid(t,o);y&&this.kids.push(y)}}},{key:"parseKid",value:function parseKid(t,r){if(Number.isInteger(r))return this.tree.pageDict.objId!==t?null:new _({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 _({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 _({type:y,refObjId:o.getRaw("Obj")instanceof c.Ref?o.getRaw("Obj").toString():null,pageObjId:t}):new _({type:g,dict:o})}}]);return StructElementNode}(),_=_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,y=t.refObjId,g=void 0===y?null:y;_classCallCheck(this,StructElement);this.type=r;this.dict=c;this.mcid=u;this.pageObjId=d;this.refObjId=g;this.parentNode=null})),w=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 y=l.value;y instanceof c.Ref&&this.addNode(this.rootDict.xref.fetch(y),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 m(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 y,v=!1,_=_createForOfIteratorHelper(d.kids);try{for(_.s();!(y=_.n()).done;){var w=y.value;if(w.type===g&&w.dict===t){w.parentNode=u;v=!0}}}catch(t){_.e(t)}finally{_.f()}v||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((null==h?void 0: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 v=t.dict.get("Lang");"string"==typeof v&&(c.lang=(0,l.stringToPDFString)(v));var m,_=_createForOfIteratorHelper(t.kids);try{for(_.s();!(m=_.n()).done;){var w=m.value,k=w.type===g?w.parentNode:null;k?nodeToSerializable(k,c,o+1):w.type===h||w.type===d?c.children.push({type:"content",id:"p".concat(w.pageObjId,"_mc").concat(w.mcid)}):w.type===y&&c.children.push({type:"object",id:w.refObjId})}}catch(t){_.e(t)}finally{_.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=w},(t,r,o)=>{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)}o(296);o(293);o(114);o(175);o(123);o(129);o(56);o(104);o(113);o(183);o(2);o(54);o(105);o(145);o(130);o(131);o(132);o(133);o(134);o(300);Object.defineProperty(r,"__esModule",{value:!0});r.ObjectLoader=void 0;o(290);o(137);o(143);o(177);var c=o(350),l=o(354),u=o(343),h=o(304);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 c.Dict)t=t.getRawValues();else if(t instanceof l.BaseStream)t=t.dict.getRawValues();else if(!Array.isArray(t))return;var o,u,h=_createForOfIteratorHelper(t);try{for(h.s();!(o=h.n()).done;){var d=o.value;((u=d)instanceof c.Ref||u instanceof c.Dict||u instanceof l.BaseStream||Array.isArray(u))&&r.push(d)}}catch(t){h.e(t)}finally{h.f()}}var d=function(){function ObjectLoader(t,r,o){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ObjectLoader);this.dict=t;this.keys=r;this.xref=o;this.refSet=null}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}(ObjectLoader,[{key:"load",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var t,r,o,l,u,h,d;return _regeneratorRuntime().wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:if(!this.xref.stream.isDataLoaded){y.next=2;break}return y.abrupt("return",void 0);case 2:t=this.keys,r=this.dict;this.refSet=new c.RefSet;o=[];l=_createForOfIteratorHelper(t);try{for(l.s();!(u=l.n()).done;){h=u.value;void 0!==(d=r.getRaw(h))&&o.push(d)}}catch(t){l.e(t)}finally{l.f()}return y.abrupt("return",this._walk(o));case 8:case"end":return y.stop()}}),_callee,this)}))),function load(){return r.apply(this,arguments)})},{key:"_walk",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(t){var r,o,d,y,g,v,m,_,w,k,S,C;return _regeneratorRuntime().wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:r=[];o=[];case 2:if(!t.length){x.next=48;break}if(!((d=t.pop())instanceof c.Ref)){x.next=21;break}if(!this.refSet.has(d)){x.next=7;break}return x.abrupt("continue",2);case 7:x.prev=7;this.refSet.put(d);d=this.xref.fetch(d);x.next=21;break;case 12:x.prev=12;x.t0=x.catch(7);if(x.t0 instanceof u.MissingDataException){x.next=19;break}(0,h.warn)('ObjectLoader._walk - requesting all data: "'.concat(x.t0,'".'));this.refSet=null;y=this.xref.stream.manager;return x.abrupt("return",y.requestAllChunks());case 19:r.push(d);o.push({begin:x.t0.begin,end:x.t0.end});case 21:if(!(d instanceof l.BaseStream)){x.next=45;break}if(!(g=d.getBaseStreams())){x.next=45;break}v=!1;m=_createForOfIteratorHelper(g);x.prev=26;m.s();case 28:if((_=m.n()).done){x.next=36;break}if(!(w=_.value).isDataLoaded){x.next=32;break}return x.abrupt("continue",34);case 32:v=!0;o.push({begin:w.start,end:w.end});case 34:x.next=28;break;case 36:x.next=41;break;case 38:x.prev=38;x.t1=x.catch(26);m.e(x.t1);case 41:x.prev=41;m.f();return x.finish(41);case 44:v&&r.push(d);case 45:addChildren(d,t);x.next=2;break;case 48:if(!o.length){x.next=54;break}x.next=51;return this.xref.stream.manager.requestRanges(o);case 51:k=_createForOfIteratorHelper(r);try{for(k.s();!(S=k.n()).done;)(C=S.value)instanceof c.Ref&&this.refSet.remove(C)}catch(t){k.e(t)}finally{k.f()}return x.abrupt("return",this._walk(r));case 54:this.refSet=null;return x.abrupt("return",void 0);case 56:case"end":return x.stop()}}),_callee2,this,[[7,12],[26,38,41,44]])}))),function _walk(r){return t.apply(this,arguments)})}]);var t,r;return ObjectLoader}();r.ObjectLoader=d},(t,r,o)=>{o(113);o(137);o(175);o(177);o(130);o(131);o(132);o(133);o(134);o(300);o(296);o(293);o(114);o(123);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.XFAFactory=void 0;o(143);o(145);o(180);o(376);o(290);o(351);o(329);o(182);o(309);o(2);o(54);o(56);o(104);o(183);o(105);var c=o(461),l=o(462),u=o(480),h=o(476),d=o(475),y=o(304),g=o(481),v=o(491);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=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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}var m=function(){function XFAFactory(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAFactory);try{this.root=(new g.XFAParser).parse(XFAFactory._createDocument(t));var r=new l.Binder(this.root);this.form=r.bind();this.dataHandler=new u.DataHandler(this.root,r.getData());this.form[c.$globalData].template=this.form}catch(t){(0,y.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[c.$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(_regeneratorRuntime().mark((function _callee(){return _regeneratorRuntime().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,y.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(_regeneratorRuntime().mark((function _callee2(){return _regeneratorRuntime().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[c.$globalData].images=t}},{key:"setFonts",value:function setFonts(t){this.form[c.$globalData].fontFinder=new h.FontFinder(t);var r,o=[],l=_createForOfIteratorHelper(this.form[c.$globalData].usedTypefaces);try{for(l.s();!(r=l.n()).done;){var u=r.value;u=(0,d.stripQuotes)(u);this.form[c.$globalData].fontFinder.find(u)||o.push(u)}}catch(t){l.e(t)}finally{l.f()}return o.length>0?o:null}},{key:"appendFonts",value:function appendFonts(t,r){this.form[c.$globalData].fontFinder.add(t,r)}},{key:"getPages",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(){var t;return _regeneratorRuntime().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 g.XFAParser(v.XhtmlNamespace,!0).parse(t);if(!["body","xhtml"].includes(r[c.$nodeName])){var o=v.XhtmlNamespace.body({});o[c.$appendChild](r);r=o}var l=r[c.$toHTML]();if(!l.success)return null;var u=l.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[c.$text]()}}catch(t){(0,y.warn)("XFA - an error occurred during parsing of rich text: ".concat(t))}return null}}]);var t,r,o;return XFAFactory}();r.XFAFactory=m},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});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.$lastAttribute=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;o(56);o(104);o(143);var c=Symbol();r.$acceptWhitespace=c;var l=Symbol();r.$addHTML=l;var u=Symbol();r.$appendChild=u;var h=Symbol();r.$childrenToHTML=h;var d=Symbol();r.$clean=d;var y=Symbol();r.$cleanPage=y;var g=Symbol();r.$cleanup=g;var v=Symbol();r.$clone=v;var m=Symbol();r.$consumed=m;var _=Symbol("content");r.$content=_;var w=Symbol("data");r.$data=w;var k=Symbol();r.$dump=k;var S=Symbol("extra");r.$extra=S;var C=Symbol();r.$finalize=C;var x=Symbol();r.$flushHTML=x;var O=Symbol();r.$getAttributeIt=O;var T=Symbol();r.$getAttributes=T;var E=Symbol();r.$getAvailableSpace=E;var R=Symbol();r.$getChildrenByClass=R;var M=Symbol();r.$getChildrenByName=M;var j=Symbol();r.$getChildrenByNameIt=j;var L=Symbol();r.$getDataValue=L;var D=Symbol();r.$getExtra=D;var N=Symbol();r.$getRealChildrenByNameIt=N;var U=Symbol();r.$getChildren=U;var G=Symbol();r.$getContainedChildren=G;var $=Symbol();r.$getNextPage=$;var H=Symbol();r.$getSubformParent=H;var X=Symbol();r.$getParent=X;var q=Symbol();r.$getTemplateRoot=q;var z=Symbol();r.$globalData=z;var W=Symbol();r.$hasSettableValue=W;var V=Symbol();r.$ids=V;var K=Symbol();r.$indexOf=K;var Y=Symbol();r.$insertAt=Y;var J=Symbol();r.$isCDATAXml=J;var Z=Symbol();r.$isBindable=Z;var Q=Symbol();r.$isDataValue=Q;var ee=Symbol();r.$isDescendent=ee;var te=Symbol();r.$isNsAgnostic=te;var re=Symbol();r.$isSplittable=re;var ne=Symbol();r.$isThereMoreWidth=ne;var ae=Symbol();r.$isTransparent=ae;var ie=Symbol();r.$isUsable=ie;var oe=Symbol();r.$lastAttribute=oe;var se=Symbol("namespaceId");r.$namespaceId=se;var ce=Symbol("nodeName");r.$nodeName=ce;var le=Symbol();r.$nsAttributes=le;var ue=Symbol();r.$onChild=ue;var fe=Symbol();r.$onChildCheck=fe;var he=Symbol();r.$onText=he;var pe=Symbol();r.$pushGlyphs=pe;var de=Symbol();r.$popPara=de;var ye=Symbol();r.$pushPara=ye;var ge=Symbol();r.$removeChild=ge;var ve=Symbol("root");r.$root=ve;var me=Symbol();r.$resolvePrototypes=me;var be=Symbol();r.$searchNode=be;var _e=Symbol();r.$setId=_e;var we=Symbol();r.$setSetAttributes=we;var ke=Symbol();r.$setValue=ke;var Se=Symbol();r.$tabIndex=Se;var Ce=Symbol();r.$text=Ce;var xe=Symbol();r.$toPages=xe;var Ae=Symbol();r.$toHTML=Ae;var Oe=Symbol();r.$toString=Oe;var Pe=Symbol();r.$toStyle=Pe;var Te=Symbol("uid");r.$uid=Te},(t,r,o)=>{o(293);o(114);o(175);o(129);o(113);o(137);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.Binder=void 0;o(180);o(374);o(306);o(143);o(305);o(134);o(290);o(182);o(123);o(313);o(296);o(300);o(2);o(54);o(56);o(104);o(183);o(105);var c=o(461),l=o(463),u=o(479),h=o(478),d=o(472),y=o(304);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}var g=d.NamespaceIds.datasets.id;function createText(t){var r=new l.Text({});r[c.$content]=t;return r}var v=function(){function Binder(t){var r;!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;this.data=(null===(r=t.datasets)||void 0===r?void 0:r.data)||new h.XmlObject(d.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]()){var u;if(r[c.$isDataValue]()){var h=r[c.$getDataValue]();t[c.$setValue](createText(h))}else if(t instanceof l.Field&&"multiSelect"===(null===(u=t.ui)||void 0===u||null===(u=u.choiceList)||void 0===u?void 0:u.open)){var d=r[c.$getChildren]().map((function(t){return t[c.$content].trim()})).join("\n");t[c.$setValue](createText(d))}else this._isConsumeData()&&(0,y.warn)("XFA - Nodes haven't the same type.")}else!r[c.$isDataValue]()||this._isMatchTemplate()?this._bindElement(t,r):(0,y.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function _findDataByNameToConsume(t,r,o,l){var u,h,y;if(!t)return null;for(var g=0;g<3;g++){h=o[c.$getRealChildrenByNameIt](t,!1,!0);for(;y=h.next().value;)if(r===y[c.$isDataValue]())return y;if(o[c.$namespaceId]===d.NamespaceIds.datasets.id&&"data"===o[c.$nodeName])break;o=o[c.$getParent]()}return l&&((y=(h=this.data[c.$getRealChildrenByNameIt](t,!0,!1)).next().value)||null!==(u=y=(h=this.data[c.$getAttributeIt](t,!0)).next().value)&&void 0!==u&&u[c.$isDataValue]())?y:null}},{key:"_setProperties",value:function _setProperties(t,r){if(t.hasOwnProperty("setProperty")){var o,d=_createForOfIteratorHelper(t.setProperty.children);try{for(d.s();!(o=d.n()).done;){var g=o.value,v=g.ref,m=g.target;if(!g.connection&&v){var _=(0,u.searchNode)(this.root,r,v,!1,!1);if(_){var w=_slicedToArray(_,1)[0];if(w[c.$isDescendent](this.data)){var k=(0,u.searchNode)(this.root,t,m,!1,!1);if(k){var S=_slicedToArray(k,1)[0];if(S[c.$isDescendent](t)){var C=S[c.$getParent]();if(S instanceof l.SetProperty||C instanceof l.SetProperty)(0,y.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(S instanceof l.BindItems||C instanceof l.BindItems)(0,y.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var x=w[c.$text](),O=S[c.$nodeName];if(S instanceof h.XFAAttribute){var T=Object.create(null);T[O]=x;var E=Reflect.construct(Object.getPrototypeOf(C).constructor,[T]);C[O]=E[O]}else if(S.hasOwnProperty(c.$content)){S[c.$data]=w;S[c.$content]=x;S[c.$finalize]()}else(0,y.warn)("XFA - Invalid node to use in setProperty")}}else(0,y.warn)("XFA - Invalid target: must be a property or subproperty.")}else(0,y.warn)("XFA - Invalid target: ".concat(m,"."))}else(0,y.warn)("XFA - Invalid node: must be a data node.")}else(0,y.warn)("XFA - Invalid reference: ".concat(v,"."))}}}catch(t){d.e(t)}finally{d.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 d=o.value;t[c.$removeChild](d)}}catch(t){h.e(t)}finally{h.f()}t.items.clear();var g=new l.Items({}),v=new l.Items({});t[c.$appendChild](g);t.items.push(g);t[c.$appendChild](v);t.items.push(v);var m,_=_createForOfIteratorHelper(t.bindItems.children);try{for(_.s();!(m=_.n()).done;){var w=m.value,k=w.ref,S=w.labelRef,C=w.valueRef;if(!w.connection&&k){var x=(0,u.searchNode)(this.root,r,k,!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 R=(0,u.searchNode)(this.root,E,S,!0,!1);if(R){var M=_slicedToArray(R,1)[0];if(M[c.$isDescendent](this.datasets)){var j=(0,u.searchNode)(this.root,E,C,!0,!1);if(j){var L=_slicedToArray(j,1)[0];if(L[c.$isDescendent](this.datasets)){var D=createText(M[c.$text]()),N=createText(L[c.$text]());g[c.$appendChild](D);g.text.push(D);v[c.$appendChild](N);v.text.push(N)}else(0,y.warn)("XFA - Invalid value: must be a datasets child.")}else(0,y.warn)("XFA - Invalid value: ".concat(C,"."))}else(0,y.warn)("XFA - Invalid label: must be a datasets child.")}else(0,y.warn)("XFA - Invalid label: ".concat(S,"."))}else(0,y.warn)("XFA - Invalid ref (".concat(k,"): must be a datasets child."))}}catch(t){T.e(t)}finally{T.f()}}else(0,y.warn)("XFA - Invalid reference: ".concat(k,"."))}}}catch(t){_.e(t)}finally{_.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),y=1,g=r.length;y<g;y++){var v=r[y],m=l[c.$clone]();u[h].push(m);u[c.$insertAt](d+y,m);this._bindValue(m,v,o);this._setProperties(m,v);this._bindItems(m,v)}}},{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 h.XFAObjectArray){var u;u=t.name?o[l].children.filter((function(r){return r.name===t.name})).length:o[l].children.length;var d=o[c.$indexOf](t)+1,y=r.initial-u;if(y){var g=t[c.$clone]();g[c.$removeChild](g.occur);g.occur=null;o[l].push(g);o[c.$insertAt](d,g);for(var v=1;v<y;v++){var m=g[c.$clone]();o[l].push(m);o[c.$insertAt](d+v,m)}}}}}}},{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,d=_createForOfIteratorHelper(t[c.$getChildren]());try{for(d.s();!(l=d.n()).done;){var v=l.value;if(!v[c.$data])if(void 0!==this._mergeMode||"subform"!==v[c.$nodeName]){if(v[c.$isBindable]()){var m=!1,_=null,w=null,k=null;if(v.bind){switch(v.bind.match){case"none":this._setAndBind(v,r);continue;case"global":m=!0;break;case"dataRef":if(!v.bind.ref){(0,y.warn)("XFA - ref is empty in node ".concat(v[c.$nodeName],"."));this._setAndBind(v,r);continue}w=v.bind.ref}v.bind.picture&&(_=v.bind.picture[c.$content])}var S=_slicedToArray(this._getOccurInfo(v),2),C=S[0],x=S[1];if(w){if(null===(k=(0,u.searchNode)(this.root,r,w,!0,!1))){if(!(k=(0,u.createDataNode)(this.data,r,w)))continue;this._isConsumeData()&&(k[c.$consumed]=!0);this._setAndBind(v,k);continue}this._isConsumeData()&&(k=k.filter((function(t){return!t[c.$consumed]})));k.length>x?k=k.slice(0,x):0===k.length&&(k=null);k&&this._isConsumeData()&&k.forEach((function(t){t[c.$consumed]=!0}))}else{if(!v.name){this._setAndBind(v,r);continue}if(this._isConsumeData()){for(var O=[];O.length<x;){var T=this._findDataByNameToConsume(v.name,v[c.$hasSettableValue](),r,m);if(!T)break;T[c.$consumed]=!0;O.push(T)}k=O.length>0?O:null}else{if(!(k=r[c.$getRealChildrenByNameIt](v.name,!1,this.emptyMerge).next().value)){if(0===C){o.push(v);continue}var E=r[c.$namespaceId]===g?-1:r[c.$namespaceId];k=v[c.$data]=new h.XmlObject(E,v.name);this.emptyMerge&&(k[c.$consumed]=!0);r[c.$appendChild](k);this._setAndBind(v,k);continue}this.emptyMerge&&(k[c.$consumed]=!0);k=[k]}}k?this._bindOccurrences(v,k,_):C>0?this._setAndBind(v,r):o.push(v)}}else{this._mergeMode="consumeData"===v.mergeMode;var R=r[c.$getChildren]();if(R.length>0)this._bindOccurrences(v,[R[0]],null);else if(this.emptyMerge){var M=r[c.$namespaceId]===g?-1:r[c.$namespaceId],j=v[c.$data]=new h.XmlObject(M,v.name||"root");r[c.$appendChild](j);this._bindElement(v,j)}}}}catch(t){d.e(t)}finally{d.f()}o.forEach((function(t){return t[c.$getParent]()[c.$removeChild](t)}))}}]);return Binder}();r.Binder=v},(t,r,o)=>{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)}o(114);o(56);o(104);o(113);o(183);o(130);o(131);o(132);o(133);o(134);o(145);o(305);o(306);o(2);o(54);o(105);o(368);o(370);Object.defineProperty(r,"__esModule",{value:!0});r.Value=r.Text=r.TemplateNamespace=r.Template=r.SetProperty=r.Items=r.Field=r.BindItems=void 0;o(137);o(143);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(123);o(313);o(389);o(387);o(362);o(302);o(290);o(329);o(296);o(363);o(364);o(180);o(293);o(361);o(374);o(182);o(464);o(330);o(309);o(465);o(466);o(470);o(471);o(317);o(323);o(324);o(325);o(326);o(337);o(376);o(349);o(335);o(339);o(377);o(300);o(129);var c=o(461),l=o(472),u=o(473),h=o(474),d=o(478),y=o(475),g=o(304),v=o(476),m=o(343),_=o(479);function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}var w=_regeneratorRuntime().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 k=l.NamespaceIds.template.id,S="http://www.w3.org/2000/svg",C=/^H(\d+)$/,x=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"]),O=[[[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[c.$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 Dt({});t[c.$appendChild](o);t.value=o}t.value[c.$setValue](r)}function getContainedChildren(t){var r,o,l;return _regeneratorRuntime().wrap((function getContainedChildren$(u){for(;;)switch(u.prev=u.next){case 0:r=_createForOfIteratorHelper(t[c.$getChildren]());u.prev=1;r.s();case 3:if((o=r.n()).done){u.next=12;break}if(!((l=o.value)instanceof St)){u.next=8;break}return u.delegateYield(l[c.$getContainedChildren](),"t0",7);case 7:return u.abrupt("continue",10);case 8:u.next=10;return l;case 10:u.next=3;break;case 12:u.next=17;break;case 14:u.prev=14;u.t1=u.catch(1);r.e(u.t1);case 17:u.prev=17;r.f();return u.finish(17);case 20:case"end":return u.stop()}}),w,null,[[1,14,17,20]])}function isRequired(t){var r;return"error"===(null===(r=t.validate)||void 0===r?void 0:r.nullTest)}function setTabIndex(t){for(;t;){if(!t.traversal){t[c.$tabIndex]=t[c.$getParent]()[c.$tabIndex];return}if(t[c.$tabIndex])return;var r,o=null,l=_createForOfIteratorHelper(t.traversal[c.$getChildren]());try{for(l.s();!(r=l.n()).done;){var u=r.value;if("next"===u.operation){o=u;break}}}catch(t){l.e(t)}finally{l.f()}if(!o||!o.ref){t[c.$tabIndex]=t[c.$getParent]()[c.$tabIndex];return}var h=t[c.$getTemplateRoot]();t[c.$tabIndex]=++h[c.$tabIndex];var d=h[c.$searchNode](o.ref,t);if(!d)return;t=d[0]}}function applyAssist(t,r){var o=t.assist;if(o){var l=o[c.$toHTML]();l&&(r.title=l);var u=o.role.match(C);if(u){var h=u[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[c.$getParent]();if("row"===d.layout){var y;r.role="TH"===(null===(y=d.assist)||void 0===y?void 0:y.role)?"columnheader":"cell"}}}function ariaLabel(t){if(!t.assist)return null;var r=t.assist;return r.speak&&""!==r.speak[c.$content]?r.speak[c.$content]:r.toolTip?r.toolTip[c.$content]:null}function valueToHtml(t){return y.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[c.$getTemplateRoot]();if(null===r[c.$extra].firstUnsplittable){r[c.$extra].firstUnsplittable=t;r[c.$extra].noLayoutFailure=!0}}function unsetFirstUnsplittable(t){var r=t[c.$getTemplateRoot]();r[c.$extra].firstUnsplittable===t&&(r[c.$extra].noLayoutFailure=!1)}function handleBreak(t){if(t[c.$extra])return!1;t[c.$extra]=Object.create(null);if("auto"===t.targetType)return!1;var r=t[c.$getTemplateRoot](),o=null;if(t.target){if(!(o=r[c.$searchNode](t.target,t[c.$getParent]())))return!1;o=o[0]}var l=r[c.$extra],u=l.currentPageArea,h=l.currentContentArea;if("pageArea"===t.targetType){o instanceof et||(o=null);if(t.startNew){t[c.$extra].target=o||u;return!0}if(o&&o!==u){t[c.$extra].target=o;return!0}return!1}o instanceof te||(o=null);var d,y=o&&o[c.$getParent](),g=y;if(t.startNew)if(o){var v=y.contentArea.children,m=v.indexOf(h),_=v.indexOf(o);-1!==m&&m<_&&(g=null);d=_-1}else d=u.contentArea.children.indexOf(h);else{if(!o||o===h)return!1;d=y.contentArea.children.indexOf(o)-1;g=y===u?null:y}t[c.$extra].target=g;t[c.$extra].index=d;return!0}function handleOverflow(t,r,o){var l=t[c.$getTemplateRoot](),u=l[c.$extra].noLayoutFailure,h=r[c.$getSubformParent];r[c.$getSubformParent]=function(){return t};l[c.$extra].noLayoutFailure=!0;var d=r[c.$toHTML](o);t[c.$addHTML](d.html,d.bbox);l[c.$extra].noLayoutFailure=u;r[c.$getSubformParent]=h}var T=function(t){_inherits(AppearanceFilter,t);var r=_createSuper(AppearanceFilter);function AppearanceFilter(t){var o;_classCallCheck(this,AppearanceFilter);(o=r.call(this,k,"appearanceFilter")).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(AppearanceFilter)}(d.StringObject),E=function(t){_inherits(Arc,t);var r=_createSuper(Arc);function Arc(t){var o;_classCallCheck(this,Arc);(o=r.call(this,k,"arc",!0)).circular=(0,y.getInteger)({data:t.circular,defaultValue:0,validate:function validate(t){return 1===t}});o.hand=(0,y.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.startAngle=(0,y.getFloat)({data:t.startAngle,defaultValue:0,validate:function validate(t){return!0}});o.sweepAngle=(0,y.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:c.$toHTML,value:function value(){var t,r,o=this.edge||new he({}),l=o[c.$toStyle](),u=Object.create(null);"visible"===(null===(t=this.fill)||void 0===t?void 0:t.presence)?Object.assign(u,this.fill[c.$toStyle]()):u.fill="transparent";u.strokeWidth=(0,h.measureToString)("visible"===o.presence?o.thickness:0);u.stroke=l.color;var d={xmlns:S,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)r={name:"ellipse",attributes:{xmlns:S,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:u}};else{var g=this.startAngle*Math.PI/180,v=this.sweepAngle*Math.PI/180,m=this.sweepAngle>180?1:0,_=50*(1+Math.cos(g)),w=50*(1-Math.sin(g)),k=50*(1+Math.cos(g+v)),C=50*(1-Math.sin(g+v));r={name:"path",attributes:{xmlns:S,d:"M ".concat(_," ").concat(w," A 50 50 0 ").concat(m," 0 ").concat(k," ").concat(C),vectorEffect:"non-scaling-stroke",style:u}};Object.assign(d,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}var x={name:"svg",children:[r],attributes:d};if(hasMargin(this[c.$getParent]()[c.$getParent]()))return y.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[x]});x.attributes.style.position="absolute";return y.HTMLResult.success(x)}}]);return Arc}(d.XFAObject),R=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,k,"area",!0)).colSpan=(0,y.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,y.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.x=(0,y.getMeasurement)(t.x,"0pt");o.y=(0,y.getMeasurement)(t.y,"0pt");o.desc=null;o.extras=null;o.area=new d.XFAObjectArray;o.draw=new d.XFAObjectArray;o.exObject=new d.XFAObjectArray;o.exclGroup=new d.XFAObjectArray;o.field=new d.XFAObjectArray;o.subform=new d.XFAObjectArray;o.subformSet=new d.XFAObjectArray;return o}_createClass(Area,[{key:c.$getContainedChildren,value:_regeneratorRuntime().mark((function value(){return _regeneratorRuntime().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:c.$isTransparent,value:function value(){return!0}},{key:c.$isBindable,value:function value(){return!0}},{key:c.$addHTML,value:function value(t,r){var o=_slicedToArray(r,4),l=o[0],u=o[1],h=o[2],d=o[3];this[c.$extra].width=Math.max(this[c.$extra].width,l+h);this[c.$extra].height=Math.max(this[c.$extra].height,u+d);this[c.$extra].children.push(t)}},{key:c.$getAvailableSpace,value:function value(){return this[c.$extra].availableSpace}},{key:c.$toHTML,value:function value(t){var r=(0,h.toStyle)(this,"position"),o={style:r,id:this[c.$uid],class:["xfaArea"]};(0,h.isPrintOnly)(this)&&o.class.push("xfaPrintOnly");this.name&&(o.xfaName=this.name);var l=[];this[c.$extra]={children:l,width:0,height:0,availableSpace:t};var u=this[c.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!u.success){if(u.isBreak())return u;delete this[c.$extra];return y.HTMLResult.FAILURE}r.width=(0,h.measureToString)(this[c.$extra].width);r.height=(0,h.measureToString)(this[c.$extra].height);var d={name:"div",attributes:o,children:l},g=[this.x,this.y,this[c.$extra].width,this[c.$extra].height];delete this[c.$extra];return y.HTMLResult.success(d,g)}}]);return Area}(d.XFAObject),M=function(t){_inherits(Assist,t);var r=_createSuper(Assist);function Assist(t){var o;_classCallCheck(this,Assist);(o=r.call(this,k,"assist",!0)).id=t.id||"";o.role=t.role||"";o.use=t.use||"";o.usehref=t.usehref||"";o.speak=null;o.toolTip=null;return o}_createClass(Assist,[{key:c.$toHTML,value:function value(){var t;return(null===(t=this.toolTip)||void 0===t?void 0:t[c.$content])||null}}]);return Assist}(d.XFAObject),j=function(t){_inherits(Barcode,t);var r=_createSuper(Barcode);function Barcode(t){var o;_classCallCheck(this,Barcode);(o=r.call(this,k,"barcode",!0)).charEncoding=(0,y.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,y.getStringOption)(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);o.dataColumnCount=(0,y.getInteger)({data:t.dataColumnCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataLength=(0,y.getInteger)({data:t.dataLength,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataPrep=(0,y.getStringOption)(t.dataPrep,["none","flateCompress"]);o.dataRowCount=(0,y.getInteger)({data:t.dataRowCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.endChar=t.endChar||"";o.errorCorrectionLevel=(0,y.getInteger)({data:t.errorCorrectionLevel,defaultValue:-1,validate:function validate(t){return t>=0&&t<=8}});o.id=t.id||"";o.moduleHeight=(0,y.getMeasurement)(t.moduleHeight,"5mm");o.moduleWidth=(0,y.getMeasurement)(t.moduleWidth,"0.25mm");o.printCheckDigit=(0,y.getInteger)({data:t.printCheckDigit,defaultValue:0,validate:function validate(t){return 1===t}});o.rowColumnRatio=(0,y.getRatio)(t.rowColumnRatio);o.startChar=t.startChar||"";o.textLocation=(0,y.getStringOption)(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);o.truncate=(0,y.getInteger)({data:t.truncate,defaultValue:0,validate:function validate(t){return 1===t}});o.type=(0,y.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,y.getStringOption)(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);o.use=t.use||"";o.usehref=t.usehref||"";o.wideNarrowRatio=(0,y.getRatio)(t.wideNarrowRatio);o.encrypt=null;o.extras=null;return o}return _createClass(Barcode)}(d.XFAObject),L=function(t){_inherits(Bind,t);var r=_createSuper(Bind);function Bind(t){var o;_classCallCheck(this,Bind);(o=r.call(this,k,"bind",!0)).match=(0,y.getStringOption)(t.match,["once","dataRef","global","none"]);o.ref=t.ref||"";o.picture=null;return o}return _createClass(Bind)}(d.XFAObject),D=function(t){_inherits(BindItems,t);var r=_createSuper(BindItems);function BindItems(t){var o;_classCallCheck(this,BindItems);(o=r.call(this,k,"bindItems")).connection=t.connection||"";o.labelRef=t.labelRef||"";o.ref=t.ref||"";o.valueRef=t.valueRef||"";return o}return _createClass(BindItems)}(d.XFAObject);r.BindItems=D;var N=function(t){_inherits(Bookend,t);var r=_createSuper(Bookend);function Bookend(t){var o;_classCallCheck(this,Bookend);(o=r.call(this,k,"bookend")).id=t.id||"";o.leader=t.leader||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Bookend)}(d.XFAObject),U=function(t){_inherits(BooleanElement,t);var r=_createSuper(BooleanElement);function BooleanElement(t){var o;_classCallCheck(this,BooleanElement);(o=r.call(this,k,"boolean")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(BooleanElement,[{key:c.$toHTML,value:function value(t){return valueToHtml(1===this[c.$content]?"1":"0")}}]);return BooleanElement}(d.Option01),G=function(t){_inherits(Border,t);var r=_createSuper(Border);function Border(t){var o;_classCallCheck(this,Border);(o=r.call(this,k,"border",!0)).break=(0,y.getStringOption)(t.break,["close","open"]);o.hand=(0,y.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,y.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new d.XFAObjectArray(4);o.edge=new d.XFAObjectArray(4);o.extras=null;o.fill=null;o.margin=null;return o}_createClass(Border,[{key:c.$getExtra,value:function value(){if(!this[c.$extra]){var t=this.edge.children.slice();if(t.length<4)for(var r=t.at(-1)||new he({}),o=t.length;o<4;o++)t.push(r);var l=t.map((function(t){return t.thickness})),u=[0,0,0,0];if(this.margin){u[0]=this.margin.topInset;u[1]=this.margin.rightInset;u[2]=this.margin.bottomInset;u[3]=this.margin.leftInset}this[c.$extra]={widths:l,insets:u,edges:t}}return this[c.$extra]}},{key:c.$toStyle,value:function value(){var t,r=this[c.$getExtra]().edges.map((function(t){var r=t[c.$toStyle]();r.color||(r.color="#000000");return r})),o=Object.create(null);this.margin&&Object.assign(o,this.margin[c.$toStyle]());"visible"===(null===(t=this.fill)||void 0===t?void 0:t.presence)&&Object.assign(o,this.fill[c.$toStyle]());if(this.corner.children.some((function(t){return 0!==t.radius}))){var l=this.corner.children.map((function(t){return t[c.$toStyle]()}));if(2===l.length||3===l.length)for(var u=l.at(-1),h=l.length;h<4;h++)l.push(u);o.borderRadius=l.map((function(t){return t.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":o.borderStyle="";break;case"inactive":o.borderStyle="none";break;default:o.borderStyle=r.map((function(t){return t.style})).join(" ")}o.borderWidth=r.map((function(t){return t.width})).join(" ");o.borderColor=r.map((function(t){return t.color})).join(" ");return o}}]);return Border}(d.XFAObject),$=function(t){_inherits(Break,t);var r=_createSuper(Break);function Break(t){var o;_classCallCheck(this,Break);(o=r.call(this,k,"break",!0)).after=(0,y.getStringOption)(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.afterTarget=t.afterTarget||"";o.before=(0,y.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,y.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)}(d.XFAObject),H=function(t){_inherits(BreakAfter,t);var r=_createSuper(BreakAfter);function BreakAfter(t){var o;_classCallCheck(this,BreakAfter);(o=r.call(this,k,"breakAfter",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,y.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,y.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)}(d.XFAObject),X=function(t){_inherits(BreakBefore,t);var r=_createSuper(BreakBefore);function BreakBefore(t){var o;_classCallCheck(this,BreakBefore);(o=r.call(this,k,"breakBefore",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,y.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,y.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:c.$toHTML,value:function value(t){this[c.$extra]={};return y.HTMLResult.FAILURE}}]);return BreakBefore}(d.XFAObject),q=function(t){_inherits(Button,t);var r=_createSuper(Button);function Button(t){var o;_classCallCheck(this,Button);(o=r.call(this,k,"button",!0)).highlight=(0,y.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:c.$toHTML,value:function value(t){var r,o=this[c.$getParent]()[c.$getParent](),l={name:"button",attributes:{id:this[c.$uid],class:["xfaButton"],style:{}},children:[]},u=_createForOfIteratorHelper(o.event.children);try{for(u.s();!(r=u.n()).done;){var d=r.value;if("click"===d.activity&&d.script){var g=(0,m.recoverJsURL)(d.script[c.$content]);if(g){var v=(0,h.fixURL)(g.url);v&&l.children.push({name:"a",attributes:{id:"link"+this[c.$uid],href:v,newWindow:g.newWindow,class:["xfaLink"],style:{}},children:[]})}}}}catch(t){u.e(t)}finally{u.f()}return y.HTMLResult.success(l)}}]);return Button}(d.XFAObject),z=function(t){_inherits(Calculate,t);var r=_createSuper(Calculate);function Calculate(t){var o;_classCallCheck(this,Calculate);(o=r.call(this,k,"calculate",!0)).id=t.id||"";o.override=(0,y.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)}(d.XFAObject),W=function(t){_inherits(Caption,t);var r=_createSuper(Caption);function Caption(t){var o;_classCallCheck(this,Caption);(o=r.call(this,k,"caption",!0)).id=t.id||"";o.placement=(0,y.getStringOption)(t.placement,["left","bottom","inline","right","top"]);o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.reserve=Math.ceil((0,y.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:c.$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:c.$getExtra,value:function value(t){if(!this[c.$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[c.$extra]=(0,h.layoutNode)(this,{width:r,height:o})}return this[c.$extra]}},{key:c.$toHTML,value:function value(t){if(!this.value)return y.HTMLResult.EMPTY;this[c.$pushPara]();var value=this.value[c.$toHTML](t).html;if(!value){this[c.$popPara]();return y.HTMLResult.EMPTY}var r=this.reserve;if(this.reserve<=0){var o=this[c.$getExtra](t),l=o.w,u=o.h;switch(this.placement){case"left":case"right":case"inline":this.reserve=l;break;case"top":case"bottom":this.reserve=u}}var d=[];"string"==typeof value?d.push({name:"#text",value:value}):d.push(value);var g=(0,h.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(g.width=(0,h.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(g.height=(0,h.measureToString)(this.reserve))}(0,h.setPara)(this,null,value);this[c.$popPara]();this.reserve=r;return y.HTMLResult.success({name:"div",attributes:{style:g,class:["xfaCaption"]},children:d})}}]);return Caption}(d.XFAObject),V=function(t){_inherits(Certificate,t);var r=_createSuper(Certificate);function Certificate(t){var o;_classCallCheck(this,Certificate);(o=r.call(this,k,"certificate")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Certificate)}(d.StringObject),K=function(t){_inherits(Certificates,t);var r=_createSuper(Certificates);function Certificates(t){var o;_classCallCheck(this,Certificates);(o=r.call(this,k,"certificates",!0)).credentialServerPolicy=(0,y.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)}(d.XFAObject),Y=function(t){_inherits(CheckButton,t);var r=_createSuper(CheckButton);function CheckButton(t){var o;_classCallCheck(this,CheckButton);(o=r.call(this,k,"checkButton",!0)).id=t.id||"";o.mark=(0,y.getStringOption)(t.mark,["default","check","circle","cross","diamond","square","star"]);o.shape=(0,y.getStringOption)(t.shape,["square","round"]);o.size=(0,y.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:c.$toHTML,value:function value(t){var r,o,l,u,d=(0,h.toStyle)("margin"),g=(0,h.measureToString)(this.size);d.width=d.height=g;var v,m=this[c.$getParent]()[c.$getParent](),_=m.items.children.length&&m.items.children[0][c.$toHTML]().html||[],w={on:(void 0!==_[0]?_[0]:"on").toString(),off:(void 0!==_[1]?_[1]:"off").toString()},value=(null===(r=m.value)||void 0===r?void 0:r[c.$text]())||"off",k=value===w.on||void 0,S=m[c.$getSubformParent](),C=m[c.$uid];if(S instanceof Se){var x;u=S[c.$uid];o="radio";l="xfaRadio";v=(null===(x=S[c.$data])||void 0===x?void 0:x[c.$uid])||S[c.$uid]}else{var O;o="checkbox";l="xfaCheckbox";v=(null===(O=m[c.$data])||void 0===O?void 0:O[c.$uid])||m[c.$uid]}var T={name:"input",attributes:{class:[l],style:d,fieldId:C,dataId:v,type:o,checked:k,xfaOn:w.on,xfaOff:w.off,"aria-label":ariaLabel(m),"aria-required":!1}};u&&(T.attributes.name=u);if(isRequired(m)){T.attributes["aria-required"]=!0;T.attributes.required=!0}return y.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[T]})}}]);return CheckButton}(d.XFAObject),J=function(t){_inherits(ChoiceList,t);var r=_createSuper(ChoiceList);function ChoiceList(t){var o;_classCallCheck(this,ChoiceList);(o=r.call(this,k,"choiceList",!0)).commitOn=(0,y.getStringOption)(t.commitOn,["select","exit"]);o.id=t.id||"";o.open=(0,y.getStringOption)(t.open,["userControl","always","multiSelect","onEntry"]);o.textEntry=(0,y.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:c.$toHTML,value:function value(t){var r,o,l=(0,h.toStyle)(this,"border","margin"),u=this[c.$getParent]()[c.$getParent](),d=(null===(r=u.font)||void 0===r?void 0:r.size)||10,g={fontSize:"calc(".concat(d,"px * var(--scale-factor))")},v=[];if(u.items.children.length>0){var m,_=u.items,w=0,k=0;2===_.children.length&&(k=1-(w=_.children[0].save));for(var S=_.children[w][c.$toHTML]().html,C=_.children[k][c.$toHTML]().html,x=!1,O=(null===(m=u.value)||void 0===m?void 0:m[c.$text]())||"",T=0,E=S.length;T<E;T++){var R={name:"option",attributes:{value:C[T]||S[T],style:g},value:S[T]};C[T]===O&&(R.attributes.selected=x=!0);v.push(R)}x||v.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}var M={class:["xfaSelect"],fieldId:u[c.$uid],dataId:(null===(o=u[c.$data])||void 0===o?void 0:o[c.$uid])||u[c.$uid],style:l,"aria-label":ariaLabel(u),"aria-required":!1};if(isRequired(u)){M["aria-required"]=!0;M.required=!0}"multiSelect"===this.open&&(M.multiple=!0);return y.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:v,attributes:M}]})}}]);return ChoiceList}(d.XFAObject),Z=function(t){_inherits(Color,t);var r=_createSuper(Color);function Color(t){var o;_classCallCheck(this,Color);(o=r.call(this,k,"color",!0)).cSpace=(0,y.getStringOption)(t.cSpace,["SRGB"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.value=t.value?(0,y.getColor)(t.value):"";o.extras=null;return o}_createClass(Color,[{key:c.$hasSettableValue,value:function value(){return!1}},{key:c.$toStyle,value:function value(){return this.value?g.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}]);return Color}(d.XFAObject),Q=function(t){_inherits(Comb,t);var r=_createSuper(Comb);function Comb(t){var o;_classCallCheck(this,Comb);(o=r.call(this,k,"comb")).id=t.id||"";o.numberOfCells=(0,y.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)}(d.XFAObject),ee=function(t){_inherits(Connect,t);var r=_createSuper(Connect);function Connect(t){var o;_classCallCheck(this,Connect);(o=r.call(this,k,"connect",!0)).connection=t.connection||"";o.id=t.id||"";o.ref=t.ref||"";o.usage=(0,y.getStringOption)(t.usage,["exportAndImport","exportOnly","importOnly"]);o.use=t.use||"";o.usehref=t.usehref||"";o.picture=null;return o}return _createClass(Connect)}(d.XFAObject),te=function(t){_inherits(ContentArea,t);var r=_createSuper(ContentArea);function ContentArea(t){var o;_classCallCheck(this,ContentArea);(o=r.call(this,k,"contentArea",!0)).h=(0,y.getMeasurement)(t.h);o.id=t.id||"";o.name=t.name||"";o.relevant=(0,y.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=(0,y.getMeasurement)(t.w);o.x=(0,y.getMeasurement)(t.x,"0pt");o.y=(0,y.getMeasurement)(t.y,"0pt");o.desc=null;o.extras=null;return o}_createClass(ContentArea,[{key:c.$toHTML,value:function value(t){var r={left:(0,h.measureToString)(this.x),top:(0,h.measureToString)(this.y),width:(0,h.measureToString)(this.w),height:(0,h.measureToString)(this.h)},o=["xfaContentarea"];(0,h.isPrintOnly)(this)&&o.push("xfaPrintOnly");return y.HTMLResult.success({name:"div",children:[],attributes:{style:r,class:o,id:this[c.$uid]}})}}]);return ContentArea}(d.XFAObject),re=function(t){_inherits(Corner,t);var r=_createSuper(Corner);function Corner(t){var o;_classCallCheck(this,Corner);(o=r.call(this,k,"corner",!0)).id=t.id||"";o.inverted=(0,y.getInteger)({data:t.inverted,defaultValue:0,validate:function validate(t){return 1===t}});o.join=(0,y.getStringOption)(t.join,["square","round"]);o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.radius=(0,y.getMeasurement)(t.radius);o.stroke=(0,y.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,y.getMeasurement)(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Corner,[{key:c.$toStyle,value:function value(){var t=(0,h.toStyle)(this,"visibility");t.radius=(0,h.measureToString)("square"===this.join?0:this.radius);return t}}]);return Corner}(d.XFAObject),ne=function(t){_inherits(DateElement,t);var r=_createSuper(DateElement);function DateElement(t){var o;_classCallCheck(this,DateElement);(o=r.call(this,k,"date")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(DateElement,[{key:c.$finalize,value:function value(){var t=this[c.$content].trim();this[c.$content]=t?new Date(t):null}},{key:c.$toHTML,value:function value(t){return valueToHtml(this[c.$content]?this[c.$content].toString():"")}}]);return DateElement}(d.ContentObject),ae=function(t){_inherits(DateTime,t);var r=_createSuper(DateTime);function DateTime(t){var o;_classCallCheck(this,DateTime);(o=r.call(this,k,"dateTime")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(DateTime,[{key:c.$finalize,value:function value(){var t=this[c.$content].trim();this[c.$content]=t?new Date(t):null}},{key:c.$toHTML,value:function value(t){return valueToHtml(this[c.$content]?this[c.$content].toString():"")}}]);return DateTime}(d.ContentObject),ie=function(t){_inherits(DateTimeEdit,t);var r=_createSuper(DateTimeEdit);function DateTimeEdit(t){var o;_classCallCheck(this,DateTimeEdit);(o=r.call(this,k,"dateTimeEdit",!0)).hScrollPolicy=(0,y.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.picker=(0,y.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:c.$toHTML,value:function value(t){var r,o=(0,h.toStyle)(this,"border","font","margin"),l=this[c.$getParent]()[c.$getParent](),u={name:"input",attributes:{type:"text",fieldId:l[c.$uid],dataId:(null===(r=l[c.$data])||void 0===r?void 0:r[c.$uid])||l[c.$uid],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(l),"aria-required":!1}};if(isRequired(l)){u.attributes["aria-required"]=!0;u.attributes.required=!0}return y.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[u]})}}]);return DateTimeEdit}(d.XFAObject),oe=function(t){_inherits(Decimal,t);var r=_createSuper(Decimal);function Decimal(t){var o;_classCallCheck(this,Decimal);(o=r.call(this,k,"decimal")).fracDigits=(0,y.getInteger)({data:t.fracDigits,defaultValue:2,validate:function validate(t){return!0}});o.id=t.id||"";o.leadDigits=(0,y.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:c.$finalize,value:function value(){var t=parseFloat(this[c.$content].trim());this[c.$content]=isNaN(t)?null:t}},{key:c.$toHTML,value:function value(t){return valueToHtml(null!==this[c.$content]?this[c.$content].toString():"")}}]);return Decimal}(d.ContentObject),se=function(t){_inherits(DefaultUi,t);var r=_createSuper(DefaultUi);function DefaultUi(t){var o;_classCallCheck(this,DefaultUi);(o=r.call(this,k,"defaultUi",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return _createClass(DefaultUi)}(d.XFAObject),ce=function(t){_inherits(Desc,t);var r=_createSuper(Desc);function Desc(t){var o;_classCallCheck(this,Desc);(o=r.call(this,k,"desc",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new d.XFAObjectArray;o.date=new d.XFAObjectArray;o.dateTime=new d.XFAObjectArray;o.decimal=new d.XFAObjectArray;o.exData=new d.XFAObjectArray;o.float=new d.XFAObjectArray;o.image=new d.XFAObjectArray;o.integer=new d.XFAObjectArray;o.text=new d.XFAObjectArray;o.time=new d.XFAObjectArray;return o}return _createClass(Desc)}(d.XFAObject),le=function(t){_inherits(DigestMethod,t);var r=_createSuper(DigestMethod);function DigestMethod(t){var o;_classCallCheck(this,DigestMethod);(o=r.call(this,k,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(DigestMethod)}(d.OptionObject),ue=function(t){_inherits(DigestMethods,t);var r=_createSuper(DigestMethods);function DigestMethods(t){var o;_classCallCheck(this,DigestMethods);(o=r.call(this,k,"digestMethods",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.digestMethod=new d.XFAObjectArray;return o}return _createClass(DigestMethods)}(d.XFAObject),fe=function(t){_inherits(Draw,t);var r=_createSuper(Draw);function Draw(t){var o;_classCallCheck(this,Draw);(o=r.call(this,k,"draw",!0)).anchorType=(0,y.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,y.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,y.getMeasurement)(t.h):"";o.hAlign=(0,y.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,y.getMeasurement)(t.maxH,"0pt");o.maxW=(0,y.getMeasurement)(t.maxW,"0pt");o.minH=(0,y.getMeasurement)(t.minH,"0pt");o.minW=(0,y.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,y.getRelevant)(t.relevant);o.rotate=(0,y.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,y.getMeasurement)(t.w):"";o.x=(0,y.getMeasurement)(t.x,"0pt");o.y=(0,y.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 d.XFAObjectArray;return o}_createClass(Draw,[{key:c.$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:c.$toHTML,value:function value(t){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence)return y.HTMLResult.EMPTY;(0,h.fixDimensions)(this);this[c.$pushPara]();var r=this.w,o=this.h,l=(0,h.layoutNode)(this,t),d=l.w,g=l.h,v=l.isBroken;if(d&&""===this.w){if(v&&this[c.$getSubformParent]()[c.$isThereMoreWidth]()){this[c.$popPara]();return y.HTMLResult.FAILURE}this.w=d}g&&""===this.h&&(this.h=g);setFirstUnsplittable(this);if(!(0,u.checkDimensions)(this,t)){this.w=r;this.h=o;this[c.$popPara]();return y.HTMLResult.FAILURE}unsetFirstUnsplittable(this);var m=(0,h.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,h.setMinMaxDimensions)(this,m);if(m.margin){m.padding=m.margin;delete m.margin}var _=["xfaDraw"];this.font&&_.push("xfaFont");(0,h.isPrintOnly)(this)&&_.push("xfaPrintOnly");var w={style:m,id:this[c.$uid],class:_};this.name&&(w.xfaName=this.name);var k={name:"div",attributes:w,children:[]};applyAssist(this,w);var S=(0,h.computeBbox)(this,k,t),value=this.value?this.value[c.$toHTML](t).html:null;if(null===value){this.w=r;this.h=o;this[c.$popPara]();return y.HTMLResult.success((0,h.createWrapper)(this,k),S)}k.children.push(value);(0,h.setPara)(this,m,value);this.w=r;this.h=o;this[c.$popPara]();return y.HTMLResult.success((0,h.createWrapper)(this,k),S)}}]);return Draw}(d.XFAObject),he=function(t){_inherits(Edge,t);var r=_createSuper(Edge);function Edge(t){var o;_classCallCheck(this,Edge);(o=r.call(this,k,"edge",!0)).cap=(0,y.getStringOption)(t.cap,["square","butt","round"]);o.id=t.id||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.stroke=(0,y.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,y.getMeasurement)(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Edge,[{key:c.$toStyle,value:function value(){var t=(0,h.toStyle)(this,"visibility");Object.assign(t,{linecap:this.cap,width:(0,h.measureToString)(this.thickness),color:this.color?this.color[c.$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}(d.XFAObject),pe=function(t){_inherits(Encoding,t);var r=_createSuper(Encoding);function Encoding(t){var o;_classCallCheck(this,Encoding);(o=r.call(this,k,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Encoding)}(d.OptionObject),de=function(t){_inherits(Encodings,t);var r=_createSuper(Encodings);function Encodings(t){var o;_classCallCheck(this,Encodings);(o=r.call(this,k,"encodings",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encoding=new d.XFAObjectArray;return o}return _createClass(Encodings)}(d.XFAObject),ye=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){var o;_classCallCheck(this,Encrypt);(o=r.call(this,k,"encrypt",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=null;return o}return _createClass(Encrypt)}(d.XFAObject),ge=function(t){_inherits(EncryptData,t);var r=_createSuper(EncryptData);function EncryptData(t){var o;_classCallCheck(this,EncryptData);(o=r.call(this,k,"encryptData",!0)).id=t.id||"";o.operation=(0,y.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)}(d.XFAObject),ve=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,k,"encryption",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new d.XFAObjectArray;return o}return _createClass(Encryption)}(d.XFAObject),me=function(t){_inherits(EncryptionMethod,t);var r=_createSuper(EncryptionMethod);function EncryptionMethod(t){var o;_classCallCheck(this,EncryptionMethod);(o=r.call(this,k,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(EncryptionMethod)}(d.OptionObject),be=function(t){_inherits(EncryptionMethods,t);var r=_createSuper(EncryptionMethods);function EncryptionMethods(t){var o;_classCallCheck(this,EncryptionMethods);(o=r.call(this,k,"encryptionMethods",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encryptionMethod=new d.XFAObjectArray;return o}return _createClass(EncryptionMethods)}(d.XFAObject),_e=function(t){_inherits(Event,t);var r=_createSuper(Event);function Event(t){var o;_classCallCheck(this,Event);(o=r.call(this,k,"event",!0)).activity=(0,y.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,y.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)}(d.XFAObject),we=function(t){_inherits(ExData,t);var r=_createSuper(ExData);function ExData(t){var o;_classCallCheck(this,ExData);(o=r.call(this,k,"exData")).contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.maxLength=(0,y.getInteger)({data:t.maxLength,defaultValue:-1,validate:function validate(t){return t>=-1}});o.name=t.name||"";o.rid=t.rid||"";o.transferEncoding=(0,y.getStringOption)(t.transferEncoding,["none","base64","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(ExData,[{key:c.$isCDATAXml,value:function value(){return"text/html"===this.contentType}},{key:c.$onChild,value:function value(t){if("text/html"===this.contentType&&t[c.$namespaceId]===l.NamespaceIds.xhtml.id){this[c.$content]=t;return!0}if("text/xml"===this.contentType){this[c.$content]=t;return!0}return!1}},{key:c.$toHTML,value:function value(t){return"text/html"===this.contentType&&this[c.$content]?this[c.$content][c.$toHTML](t):y.HTMLResult.EMPTY}}]);return ExData}(d.ContentObject),ke=function(t){_inherits(ExObject,t);var r=_createSuper(ExObject);function ExObject(t){var o;_classCallCheck(this,ExObject);(o=r.call(this,k,"exObject",!0)).archive=t.archive||"";o.classId=t.classId||"";o.codeBase=t.codeBase||"";o.codeType=t.codeType||"";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.boolean=new d.XFAObjectArray;o.date=new d.XFAObjectArray;o.dateTime=new d.XFAObjectArray;o.decimal=new d.XFAObjectArray;o.exData=new d.XFAObjectArray;o.exObject=new d.XFAObjectArray;o.float=new d.XFAObjectArray;o.image=new d.XFAObjectArray;o.integer=new d.XFAObjectArray;o.text=new d.XFAObjectArray;o.time=new d.XFAObjectArray;return o}return _createClass(ExObject)}(d.XFAObject),Se=function(t){_inherits(ExclGroup,t);var r=_createSuper(ExclGroup);function ExclGroup(t){var o;_classCallCheck(this,ExclGroup);(o=r.call(this,k,"exclGroup",!0)).access=(0,y.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,y.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,y.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,y.getMeasurement)(t.h):"";o.hAlign=(0,y.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,y.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.maxH=(0,y.getMeasurement)(t.maxH,"0pt");o.maxW=(0,y.getMeasurement)(t.maxW,"0pt");o.minH=(0,y.getMeasurement)(t.minH,"0pt");o.minW=(0,y.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,y.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,y.getMeasurement)(t.w):"";o.x=(0,y.getMeasurement)(t.x,"0pt");o.y=(0,y.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 d.XFAObjectArray;o.event=new d.XFAObjectArray;o.field=new d.XFAObjectArray;o.setProperty=new d.XFAObjectArray;return o}_createClass(ExclGroup,[{key:c.$isBindable,value:function value(){return!0}},{key:c.$hasSettableValue,value:function value(){return!0}},{key:c.$setValue,value:function(t){function value(r){return t.apply(this,arguments)}value.toString=function(){return t.toString()};return value}((function(t){var r,o=_createForOfIteratorHelper(this.field.children);try{for(o.s();!(r=o.n()).done;){var l=r.value;if(!l.value){var u=new Dt({});l[c.$appendChild](u);l.value=u}l.value[c.$setValue](t)}}catch(t){o.e(t)}finally{o.f()}}))},{key:c.$isThereMoreWidth,value:function value(){return this.layout.endsWith("-tb")&&0===this[c.$extra].attempt&&this[c.$extra].numberInLine>0||this[c.$getParent]()[c.$isThereMoreWidth]()}},{key:c.$isSplittable,value:function value(){var t,r=this[c.$getSubformParent]();if(!r[c.$isSplittable]())return!1;if(void 0!==this[c.$extra]._isSplittable)return this[c.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[c.$extra]._isSplittable=!1;return!1}if(null!==(t=r.layout)&&void 0!==t&&t.endsWith("-tb")&&0!==r[c.$extra].numberInLine)return!1;this[c.$extra]._isSplittable=!0;return!0}},{key:c.$flushHTML,value:function value(){return(0,u.flushHTML)(this)}},{key:c.$addHTML,value:function value(t,r){(0,u.addHTML)(this,t,r)}},{key:c.$getAvailableSpace,value:function value(){return(0,u.getAvailableSpace)(this)}},{key:c.$toHTML,value:function value(t){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return y.HTMLResult.EMPTY;(0,h.fixDimensions)(this);var r=[],o={id:this[c.$uid],class:[]};(0,h.setAccess)(this,o.class);this[c.$extra]||(this[c.$extra]=Object.create(null));Object.assign(this[c.$extra],{children:r,attributes:o,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,t.width),height:Math.min(this.h||1/0,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});var l=this[c.$isSplittable]();l||setFirstUnsplittable(this);if(!(0,u.checkDimensions)(this,t))return y.HTMLResult.FAILURE;var d=new Set(["field"]);if(this.layout.includes("row")){var g=this[c.$getSubformParent]().columnWidths;if(Array.isArray(g)&&g.length>0){this[c.$extra].columnWidths=g;this[c.$extra].currentColumn=0}}var v=(0,h.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),m=["xfaExclgroup"],_=(0,h.layoutClass)(this);_&&m.push(_);(0,h.isPrintOnly)(this)&&m.push("xfaPrintOnly");o.style=v;o.class=m;this.name&&(o.xfaName=this.name);this[c.$pushPara]();for(var w="lr-tb"===this.layout||"rl-tb"===this.layout,k=w?2:1;this[c.$extra].attempt<k;this[c.$extra].attempt++){w&&1===this[c.$extra].attempt&&(this[c.$extra].numberInLine=0);var S=this[c.$childrenToHTML]({filter:d,include:!0});if(S.success)break;if(S.isBreak()){this[c.$popPara]();return S}if(w&&0===this[c.$extra].attempt&&0===this[c.$extra].numberInLine&&!this[c.$getTemplateRoot]()[c.$extra].noLayoutFailure){this[c.$extra].attempt=k;break}}this[c.$popPara]();l||unsetFirstUnsplittable(this);if(this[c.$extra].attempt===k){l||delete this[c.$extra];return y.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[c.$extra].width+C,this.w||0),T=Math.max(this[c.$extra].height+x,this.h||0),E=[this.x,this.y,O,T];""===this.w&&(v.width=(0,h.measureToString)(O));""===this.h&&(v.height=(0,h.measureToString)(T));var R={name:"div",attributes:o,children:r};applyAssist(this,o);delete this[c.$extra];return y.HTMLResult.success((0,h.createWrapper)(this,R),E)}}]);return ExclGroup}(d.XFAObject),Ce=function(t){_inherits(Execute,t);var r=_createSuper(Execute);function Execute(t){var o;_classCallCheck(this,Execute);(o=r.call(this,k,"execute")).connection=t.connection||"";o.executeType=(0,y.getStringOption)(t.executeType,["import","remerge"]);o.id=t.id||"";o.runAt=(0,y.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Execute)}(d.XFAObject),xe=function(t){_inherits(Extras,t);var r=_createSuper(Extras);function Extras(t){var o;_classCallCheck(this,Extras);(o=r.call(this,k,"extras",!0)).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new d.XFAObjectArray;o.date=new d.XFAObjectArray;o.dateTime=new d.XFAObjectArray;o.decimal=new d.XFAObjectArray;o.exData=new d.XFAObjectArray;o.extras=new d.XFAObjectArray;o.float=new d.XFAObjectArray;o.image=new d.XFAObjectArray;o.integer=new d.XFAObjectArray;o.text=new d.XFAObjectArray;o.time=new d.XFAObjectArray;return o}return _createClass(Extras)}(d.XFAObject),Ae=function(t){_inherits(Field,t);var r=_createSuper(Field);function Field(t){var o;_classCallCheck(this,Field);(o=r.call(this,k,"field",!0)).access=(0,y.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,y.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,y.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1||-1===t}});o.h=t.h?(0,y.getMeasurement)(t.h):"";o.hAlign=(0,y.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,y.getMeasurement)(t.maxH,"0pt");o.maxW=(0,y.getMeasurement)(t.maxW,"0pt");o.minH=(0,y.getMeasurement)(t.minH,"0pt");o.minW=(0,y.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,y.getRelevant)(t.relevant);o.rotate=(0,y.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,y.getMeasurement)(t.w):"";o.x=(0,y.getMeasurement)(t.x,"0pt");o.y=(0,y.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 d.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 d.XFAObjectArray;o.connect=new d.XFAObjectArray;o.event=new d.XFAObjectArray;o.setProperty=new d.XFAObjectArray;return o}_createClass(Field,[{key:c.$isBindable,value:function value(){return!0}},{key:c.$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:c.$toHTML,value:function value(t){var r;setTabIndex(this);if(!this.ui){this.ui=new jt({});this.ui[c.$globalData]=this[c.$globalData];this[c.$appendChild](this.ui);var o;switch(this.items.children.length){case 0:o=new Tt({});this.ui.textEdit=o;break;case 1:o=new Y({});this.ui.checkButton=o;break;case 2:o=new J({});this.ui.choiceList=o}this.ui[c.$appendChild](o)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return y.HTMLResult.EMPTY;this.caption&&delete this.caption[c.$extra];this[c.$pushPara]();var l=this.caption?this.caption[c.$toHTML](t).html:null,d=this.w,g=this.h,m=0,_=0;if(this.margin){m=this.margin.leftInset+this.margin.rightInset;_=this.margin.topInset+this.margin.bottomInset}var w=null;if(""===this.w||""===this.h){var k=null,S=null,C=0,x=0;if(this.ui.checkButton)C=x=this.ui.checkButton.size;else{var O=(0,h.layoutNode)(this,t),T=O.w,E=O.h;if(null!==T){C=T;x=E}else x=(0,v.getMetrics)(this.font,!0).lineNoGap}C+=(w=getBorderDims(this.ui[c.$getExtra]())).w;x+=w.h;if(this.caption){var R=this.caption[c.$getExtra](t),M=R.w,j=R.h;if(R.isBroken&&this[c.$getSubformParent]()[c.$isThereMoreWidth]()){this[c.$popPara]();return y.HTMLResult.FAILURE}k=M;S=j;switch(this.caption.placement){case"left":case"right":case"inline":k+=C;break;case"top":case"bottom":S+=x}}else{k=C;S=x}if(k&&""===this.w){k+=m;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<k?k:this.minW)}if(S&&""===this.h){S+=_;this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<S?S:this.minH)}}this[c.$popPara]();(0,h.fixDimensions)(this);setFirstUnsplittable(this);if(!(0,u.checkDimensions)(this,t)){this.w=d;this.h=g;this[c.$popPara]();return y.HTMLResult.FAILURE}unsetFirstUnsplittable(this);var L=(0,h.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,h.setMinMaxDimensions)(this,L);var D=["xfaField"];this.font&&D.push("xfaFont");(0,h.isPrintOnly)(this)&&D.push("xfaPrintOnly");var N={style:L,id:this[c.$uid],class:D};if(L.margin){L.padding=L.margin;delete L.margin}(0,h.setAccess)(this,D);this.name&&(N.xfaName=this.name);var U=[],G={name:"div",attributes:N,children:U};applyAssist(this,N);var $=this.border?this.border[c.$toStyle]():null,H=(0,h.computeBbox)(this,G,t),X=this.ui[c.$toHTML]().html;if(!X){Object.assign(L,$);return y.HTMLResult.success((0,h.createWrapper)(this,G),H)}if(this[c.$tabIndex]){var q;null!==(q=X.children)&&void 0!==q&&q[0]?X.children[0].attributes.tabindex=this[c.$tabIndex]:X.attributes.tabindex=this[c.$tabIndex]}X.attributes.style||(X.attributes.style=Object.create(null));var z=null;if(this.ui.button){if(1===X.children.length){z=_slicedToArray(X.children.splice(0,1),1)[0]}Object.assign(X.attributes.style,$)}else Object.assign(L,$);U.push(X);if(this.value)if(this.ui.imageEdit)X.children.push(this.value[c.$toHTML]().html);else if(!this.ui.button){var W,V="";if(this.value.exData)V=this.value.exData[c.$text]();else if(this.value.text)V=this.value.text[c.$getExtra]();else{var K=this.value[c.$toHTML]().html;null!==K&&(V=K.children[0].value)}this.ui.textEdit&&null!==(W=this.value.text)&&void 0!==W&&W.maxChars&&(X.children[0].attributes.maxLength=this.value.text.maxChars);if(V){if(this.ui.numericEdit){V=parseFloat(V);V=isNaN(V)?"":V.toString()}"textarea"===X.children[0].name?X.children[0].attributes.textContent=V:X.children[0].attributes.value=V}}if(!this.ui.imageEdit&&null!==(r=X.children)&&void 0!==r&&r[0]&&this.h){w=w||getBorderDims(this.ui[c.$getExtra]());var Z=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(Z=this.caption.reserve)<=0&&(Z=this.caption[c.$getExtra](t).h);var Q=this.h-Z-_-w.h;X.children[0].attributes.style.height=(0,h.measureToString)(Q)}else X.children[0].attributes.style.height="100%"}z&&X.children.push(z);if(!l){X.attributes.class&&X.attributes.class.push("xfaLeft");this.w=d;this.h=g;return y.HTMLResult.success((0,h.createWrapper)(this,G),H)}if(this.ui.button){L.padding&&delete L.padding;"div"===l.name&&(l.name="span");X.children.push(l);return y.HTMLResult.success(G,H)}this.ui.checkButton&&(l.attributes.class[0]="xfaCaptionForCheckButton");X.attributes.class||(X.attributes.class=[]);X.children.splice(0,0,l);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=d;this.h=g;return y.HTMLResult.success((0,h.createWrapper)(this,G),H)}}]);return Field}(d.XFAObject);r.Field=Ae;var Oe=function(t){_inherits(Fill,t);var r=_createSuper(Fill);function Fill(t){var o;_classCallCheck(this,Fill);(o=r.call(this,k,"fill",!0)).id=t.id||"";o.presence=(0,y.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:c.$toStyle,value:function value(){var t,r=this[c.$getParent](),o=r[c.$getParent]()[c.$getParent](),l=Object.create(null),u="color",h=u;if(r instanceof G){u="background-color";h="background";o instanceof jt&&(l.backgroundColor="white")}if(r instanceof ft||r instanceof E){u=h="fill";l.fill="white"}var y,g=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(g.s();!(y=g.n()).done;){var v=y.value;if("extras"!==v&&"color"!==v){var m=this[v];if(m instanceof d.XFAObject){var _=m[c.$toStyle](this.color);_&&(l[_.startsWith("#")?u:h]=_);return l}}}}catch(t){g.e(t)}finally{g.f()}if(null!==(t=this.color)&&void 0!==t&&t.value){var w=this.color[c.$toStyle]();l[w.startsWith("#")?u:h]=w}return l}}]);return Fill}(d.XFAObject),Pe=function(t){_inherits(Filter,t);var r=_createSuper(Filter);function Filter(t){var o;_classCallCheck(this,Filter);(o=r.call(this,k,"filter",!0)).addRevocationInfo=(0,y.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,y.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)}(d.XFAObject),Te=function(t){_inherits(Float,t);var r=_createSuper(Float);function Float(t){var o;_classCallCheck(this,Float);(o=r.call(this,k,"float")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Float,[{key:c.$finalize,value:function value(){var t=parseFloat(this[c.$content].trim());this[c.$content]=isNaN(t)?null:t}},{key:c.$toHTML,value:function value(t){return valueToHtml(null!==this[c.$content]?this[c.$content].toString():"")}}]);return Float}(d.ContentObject),Ie=function(t){_inherits(Font,t);var r=_createSuper(Font);function Font(t){var o;_classCallCheck(this,Font);(o=r.call(this,k,"font",!0)).baselineShift=(0,y.getMeasurement)(t.baselineShift);o.fontHorizontalScale=(0,y.getFloat)({data:t.fontHorizontalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.fontVerticalScale=(0,y.getFloat)({data:t.fontVerticalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.id=t.id||"";o.kerningMode=(0,y.getStringOption)(t.kerningMode,["none","pair"]);o.letterSpacing=(0,y.getMeasurement)(t.letterSpacing,"0");o.lineThrough=(0,y.getInteger)({data:t.lineThrough,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.lineThroughPeriod=(0,y.getStringOption)(t.lineThroughPeriod,["all","word"]);o.overline=(0,y.getInteger)({data:t.overline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.overlinePeriod=(0,y.getStringOption)(t.overlinePeriod,["all","word"]);o.posture=(0,y.getStringOption)(t.posture,["normal","italic"]);o.size=(0,y.getMeasurement)(t.size,"10pt");o.typeface=t.typeface||"Courier";o.underline=(0,y.getInteger)({data:t.underline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.underlinePeriod=(0,y.getStringOption)(t.underlinePeriod,["all","word"]);o.use=t.use||"";o.usehref=t.usehref||"";o.weight=(0,y.getStringOption)(t.weight,["normal","bold"]);o.extras=null;o.fill=null;return o}_createClass(Font,[{key:c.$clean,value:function value(t){_get(_getPrototypeOf(Font.prototype),c.$clean,this).call(this,t);this[c.$globalData].usedTypefaces.add(this.typeface)}},{key:c.$toStyle,value:function value(){var t=(0,h.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,h.measureToString)(this.baselineShift));t.fontKerning="none"===this.kerningMode?"none":"normal";t.letterSpacing=(0,h.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,h.measureToString)(.99*this.size);(0,h.setFontFamily)(this,this,this[c.$globalData].fontFinder,t);if(0!==this.underline){t.textDecoration="underline";2===this.underline&&(t.textDecorationStyle="double")}t.fontWeight=this.weight;return t}}]);return Font}(d.XFAObject),Fe=function(t){_inherits(Format,t);var r=_createSuper(Format);function Format(t){var o;_classCallCheck(this,Format);(o=r.call(this,k,"format",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;return o}return _createClass(Format)}(d.XFAObject),Ee=function(t){_inherits(Handler,t);var r=_createSuper(Handler);function Handler(t){var o;_classCallCheck(this,Handler);(o=r.call(this,k,"handler")).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Handler)}(d.StringObject),Re=function(t){_inherits(Hyphenation,t);var r=_createSuper(Hyphenation);function Hyphenation(t){var o;_classCallCheck(this,Hyphenation);(o=r.call(this,k,"hyphenation")).excludeAllCaps=(0,y.getInteger)({data:t.excludeAllCaps,defaultValue:0,validate:function validate(t){return 1===t}});o.excludeInitialCap=(0,y.getInteger)({data:t.excludeInitialCap,defaultValue:0,validate:function validate(t){return 1===t}});o.hyphenate=(0,y.getInteger)({data:t.hyphenate,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.pushCharacterCount=(0,y.getInteger)({data:t.pushCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.remainCharacterCount=(0,y.getInteger)({data:t.remainCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";o.wordCharacterCount=(0,y.getInteger)({data:t.wordCharacterCount,defaultValue:7,validate:function validate(t){return t>=0}});return o}return _createClass(Hyphenation)}(d.XFAObject),Me=function(t){_inherits(Image,t);var r=_createSuper(Image);function Image(t){var o;_classCallCheck(this,Image);(o=r.call(this,k,"image")).aspect=(0,y.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,y.getStringOption)(t.transferEncoding,["base64","none","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Image,[{key:c.$toHTML,value:function value(){if(this.contentType&&!x.has(this.contentType.toLowerCase()))return y.HTMLResult.EMPTY;var t=this[c.$globalData].images&&this[c.$globalData].images.get(this.href);if(!t&&(this.href||!this[c.$content]))return y.HTMLResult.EMPTY;t||"base64"!==this.transferEncoding||(t=(0,g.stringToBytes)(atob(this[c.$content])));if(!t)return y.HTMLResult.EMPTY;if(!this.contentType){for(var r=0,o=O;r<o.length;r++){var l=_slicedToArray(o[r],2),u=l[0],h=l[1];if(t.length>u.length&&u.every((function(r,o){return r===t[o]}))){this.contentType=h;break}}if(!this.contentType)return y.HTMLResult.EMPTY}var d,v=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 m=this[c.$getParent]();return y.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:d,src:URL.createObjectURL(v),alt:m?ariaLabel(m[c.$getParent]()):null}})}}]);return Image}(d.StringObject),je=function(t){_inherits(ImageEdit,t);var r=_createSuper(ImageEdit);function ImageEdit(t){var o;_classCallCheck(this,ImageEdit);(o=r.call(this,k,"imageEdit",!0)).data=(0,y.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:c.$toHTML,value:function value(t){return"embed"===this.data?y.HTMLResult.success({name:"div",children:[],attributes:{}}):y.HTMLResult.EMPTY}}]);return ImageEdit}(d.XFAObject),Le=function(t){_inherits(Integer,t);var r=_createSuper(Integer);function Integer(t){var o;_classCallCheck(this,Integer);(o=r.call(this,k,"integer")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Integer,[{key:c.$finalize,value:function value(){var t=parseInt(this[c.$content].trim(),10);this[c.$content]=isNaN(t)?null:t}},{key:c.$toHTML,value:function value(t){return valueToHtml(null!==this[c.$content]?this[c.$content].toString():"")}}]);return Integer}(d.ContentObject),De=function(t){_inherits(Issuers,t);var r=_createSuper(Issuers);function Issuers(t){var o;_classCallCheck(this,Issuers);(o=r.call(this,k,"issuers",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new d.XFAObjectArray;return o}return _createClass(Issuers)}(d.XFAObject),Ne=function(t){_inherits(Items,t);var r=_createSuper(Items);function Items(t){var o;_classCallCheck(this,Items);(o=r.call(this,k,"items",!0)).id=t.id||"";o.name=t.name||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.ref=t.ref||"";o.save=(0,y.getInteger)({data:t.save,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new d.XFAObjectArray;o.date=new d.XFAObjectArray;o.dateTime=new d.XFAObjectArray;o.decimal=new d.XFAObjectArray;o.exData=new d.XFAObjectArray;o.float=new d.XFAObjectArray;o.image=new d.XFAObjectArray;o.integer=new d.XFAObjectArray;o.text=new d.XFAObjectArray;o.time=new d.XFAObjectArray;return o}_createClass(Items,[{key:c.$toHTML,value:function value(){var t,r=[],o=_createForOfIteratorHelper(this[c.$getChildren]());try{for(o.s();!(t=o.n()).done;){var l=t.value;r.push(l[c.$text]())}}catch(t){o.e(t)}finally{o.f()}return y.HTMLResult.success(r)}}]);return Items}(d.XFAObject);r.Items=Ne;var Be=function(t){_inherits(Keep,t);var r=_createSuper(Keep);function Keep(t){var o;_classCallCheck(this,Keep);(o=r.call(this,k,"keep",!0)).id=t.id||"";var c=["none","contentArea","pageArea"];o.intact=(0,y.getStringOption)(t.intact,c);o.next=(0,y.getStringOption)(t.next,c);o.previous=(0,y.getStringOption)(t.previous,c);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return _createClass(Keep)}(d.XFAObject),Ue=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,k,"keyUsage")).crlSign=(0,y.getStringOption)(t.crlSign,c);o.dataEncipherment=(0,y.getStringOption)(t.dataEncipherment,c);o.decipherOnly=(0,y.getStringOption)(t.decipherOnly,c);o.digitalSignature=(0,y.getStringOption)(t.digitalSignature,c);o.encipherOnly=(0,y.getStringOption)(t.encipherOnly,c);o.id=t.id||"";o.keyAgreement=(0,y.getStringOption)(t.keyAgreement,c);o.keyCertSign=(0,y.getStringOption)(t.keyCertSign,c);o.keyEncipherment=(0,y.getStringOption)(t.keyEncipherment,c);o.nonRepudiation=(0,y.getStringOption)(t.nonRepudiation,c);o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(KeyUsage)}(d.XFAObject),Ge=function(t){_inherits(Line,t);var r=_createSuper(Line);function Line(t){var o;_classCallCheck(this,Line);(o=r.call(this,k,"line",!0)).hand=(0,y.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.slope=(0,y.getStringOption)(t.slope,["\\","/"]);o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;return o}_createClass(Line,[{key:c.$toHTML,value:function value(){var t,r,o,l,u=this[c.$getParent]()[c.$getParent](),d=this.edge||new he({}),g=d[c.$toStyle](),v=Object.create(null),m="visible"===d.presence?d.thickness:0;v.strokeWidth=(0,h.measureToString)(m);v.stroke=g.color;var _="100%",w="100%";if(u.w<=m){t="50%";r=0;o="50%";l="100%";_=v.strokeWidth}else if(u.h<=m){t=0;r="50%";o="100%";l="50%";w=v.strokeWidth}else if("\\"===this.slope){t=0;r=0;o="100%";l="100%"}else{t=0;r="100%";o="100%";l=0}var k={name:"svg",children:[{name:"line",attributes:{xmlns:S,x1:t,y1:r,x2:o,y2:l,style:v}}],attributes:{xmlns:S,width:_,height:w,style:{overflow:"visible"}}};if(hasMargin(u))return y.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[k]});k.attributes.style.position="absolute";return y.HTMLResult.success(k)}}]);return Line}(d.XFAObject),$e=function(t){_inherits(Linear,t);var r=_createSuper(Linear);function Linear(t){var o;_classCallCheck(this,Linear);(o=r.call(this,k,"linear",!0)).id=t.id||"";o.type=(0,y.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:c.$toStyle,value:function value(t){t=t?t[c.$toStyle]():"#FFFFFF";var r=this.type.replace(/([RBLT])/," $1").toLowerCase(),o=this.color?this.color[c.$toStyle]():"#000000";return"linear-gradient(".concat(r,", ").concat(t,", ").concat(o,")")}}]);return Linear}(d.XFAObject),He=function(t){_inherits(LockDocument,t);var r=_createSuper(LockDocument);function LockDocument(t){var o;_classCallCheck(this,LockDocument);(o=r.call(this,k,"lockDocument")).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(LockDocument,[{key:c.$finalize,value:function value(){this[c.$content]=(0,y.getStringOption)(this[c.$content],["auto","0","1"])}}]);return LockDocument}(d.ContentObject),Xe=function(t){_inherits(Manifest,t);var r=_createSuper(Manifest);function Manifest(t){var o;_classCallCheck(this,Manifest);(o=r.call(this,k,"manifest",!0)).action=(0,y.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 d.XFAObjectArray;return o}return _createClass(Manifest)}(d.XFAObject),qe=function(t){_inherits(Margin,t);var r=_createSuper(Margin);function Margin(t){var o;_classCallCheck(this,Margin);(o=r.call(this,k,"margin",!0)).bottomInset=(0,y.getMeasurement)(t.bottomInset,"0");o.id=t.id||"";o.leftInset=(0,y.getMeasurement)(t.leftInset,"0");o.rightInset=(0,y.getMeasurement)(t.rightInset,"0");o.topInset=(0,y.getMeasurement)(t.topInset,"0");o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Margin,[{key:c.$toStyle,value:function value(){return{margin:(0,h.measureToString)(this.topInset)+" "+(0,h.measureToString)(this.rightInset)+" "+(0,h.measureToString)(this.bottomInset)+" "+(0,h.measureToString)(this.leftInset)}}}]);return Margin}(d.XFAObject),ze=function(t){_inherits(Mdp,t);var r=_createSuper(Mdp);function Mdp(t){var o;_classCallCheck(this,Mdp);(o=r.call(this,k,"mdp")).id=t.id||"";o.permissions=(0,y.getInteger)({data:t.permissions,defaultValue:2,validate:function validate(t){return 1===t||3===t}});o.signatureType=(0,y.getStringOption)(t.signatureType,["filler","author"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Mdp)}(d.XFAObject),We=function(t){_inherits(Medium,t);var r=_createSuper(Medium);function Medium(t){var o;_classCallCheck(this,Medium);(o=r.call(this,k,"medium")).id=t.id||"";o.imagingBBox=(0,y.getBBox)(t.imagingBBox);o.long=(0,y.getMeasurement)(t.long);o.orientation=(0,y.getStringOption)(t.orientation,["portrait","landscape"]);o.short=(0,y.getMeasurement)(t.short);o.stock=t.stock||"";o.trayIn=(0,y.getStringOption)(t.trayIn,["auto","delegate","pageFront"]);o.trayOut=(0,y.getStringOption)(t.trayOut,["auto","delegate"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Medium)}(d.XFAObject),Ve=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,k,"message",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.text=new d.XFAObjectArray;return o}return _createClass(Message)}(d.XFAObject),Ke=function(t){_inherits(NumericEdit,t);var r=_createSuper(NumericEdit);function NumericEdit(t){var o;_classCallCheck(this,NumericEdit);(o=r.call(this,k,"numericEdit",!0)).hScrollPolicy=(0,y.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:c.$toHTML,value:function value(t){var r,o=(0,h.toStyle)(this,"border","font","margin"),l=this[c.$getParent]()[c.$getParent](),u={name:"input",attributes:{type:"text",fieldId:l[c.$uid],dataId:(null===(r=l[c.$data])||void 0===r?void 0:r[c.$uid])||l[c.$uid],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(l),"aria-required":!1}};if(isRequired(l)){u.attributes["aria-required"]=!0;u.attributes.required=!0}return y.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[u]})}}]);return NumericEdit}(d.XFAObject),Ye=function(t){_inherits(Occur,t);var r=_createSuper(Occur);function Occur(t){var o;_classCallCheck(this,Occur);(o=r.call(this,k,"occur",!0)).id=t.id||"";o.initial=""!==t.initial?(0,y.getInteger)({data:t.initial,defaultValue:"",validate:function validate(t){return!0}}):"";o.max=""!==t.max?(0,y.getInteger)({data:t.max,defaultValue:1,validate:function validate(t){return!0}}):"";o.min=""!==t.min?(0,y.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:c.$clean,value:function value(){var t=this[c.$getParent](),r=this.min;""===this.min&&(this.min=t instanceof et||t instanceof tt?0:1);""===this.max&&(this.max=""===r?t instanceof et||t instanceof tt?-1:1:this.min);-1!==this.max&&this.max<this.min&&(this.max=this.min);""===this.initial&&(this.initial=t instanceof Ot?1:this.min)}}]);return Occur}(d.XFAObject),Je=function(t){_inherits(Oid,t);var r=_createSuper(Oid);function Oid(t){var o;_classCallCheck(this,Oid);(o=r.call(this,k,"oid")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Oid)}(d.StringObject),Ze=function(t){_inherits(Oids,t);var r=_createSuper(Oids);function Oids(t){var o;_classCallCheck(this,Oids);(o=r.call(this,k,"oids",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.oid=new d.XFAObjectArray;return o}return _createClass(Oids)}(d.XFAObject),Qe=function(t){_inherits(Overflow,t);var r=_createSuper(Overflow);function Overflow(t){var o;_classCallCheck(this,Overflow);(o=r.call(this,k,"overflow")).id=t.id||"";o.leader=t.leader||"";o.target=t.target||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Overflow,[{key:c.$getExtra,value:function value(){if(!this[c.$extra]){var t=this[c.$getParent](),r=this[c.$getTemplateRoot](),o=r[c.$searchNode](this.target,t),l=r[c.$searchNode](this.leader,t),u=r[c.$searchNode](this.trailer,t);this[c.$extra]={target:(null==o?void 0:o[0])||null,leader:(null==l?void 0:l[0])||null,trailer:(null==u?void 0:u[0])||null,addLeader:!1,addTrailer:!1}}return this[c.$extra]}}]);return Overflow}(d.XFAObject),et=function(t){_inherits(PageArea,t);var r=_createSuper(PageArea);function PageArea(t){var o;_classCallCheck(this,PageArea);(o=r.call(this,k,"pageArea",!0)).blankOrNotBlank=(0,y.getStringOption)(t.blankOrNotBlank,["any","blank","notBlank"]);o.id=t.id||"";o.initialNumber=(0,y.getInteger)({data:t.initialNumber,defaultValue:1,validate:function validate(t){return!0}});o.name=t.name||"";o.numbered=(0,y.getInteger)({data:t.numbered,defaultValue:1,validate:function validate(t){return!0}});o.oddOrEven=(0,y.getStringOption)(t.oddOrEven,["any","even","odd"]);o.pagePosition=(0,y.getStringOption)(t.pagePosition,["any","first","last","only","rest"]);o.relevant=(0,y.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 d.XFAObjectArray;o.contentArea=new d.XFAObjectArray;o.draw=new d.XFAObjectArray;o.exclGroup=new d.XFAObjectArray;o.field=new d.XFAObjectArray;o.subform=new d.XFAObjectArray;return o}_createClass(PageArea,[{key:c.$isUsable,value:function value(){if(!this[c.$extra]){this[c.$extra]={numberOfUse:0};return!0}return!this.occur||-1===this.occur.max||this[c.$extra].numberOfUse<this.occur.max}},{key:c.$cleanPage,value:function value(){delete this[c.$extra]}},{key:c.$getNextPage,value:function value(){this[c.$extra]||(this[c.$extra]={numberOfUse:0});var t=this[c.$getParent]();if("orderedOccurrence"===t.relation&&this[c.$isUsable]()){this[c.$extra].numberOfUse+=1;return this}return t[c.$getNextPage]()}},{key:c.$getAvailableSpace,value:function value(){return this[c.$extra].space||{width:0,height:0}}},{key:c.$toHTML,value:function value(){this[c.$extra]||(this[c.$extra]={numberOfUse:1});var t=[];this[c.$extra].children=t;var r=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){r.width=(0,h.measureToString)(this.medium.short);r.height=(0,h.measureToString)(this.medium.long);this[c.$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[c.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,g.warn)("XFA - No medium specified in pageArea: please file a bug.");this[c.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0});this[c.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0});return y.HTMLResult.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[c.$uid],style:r,xfaName:this.name}})}}]);return PageArea}(d.XFAObject),tt=function(t){_inherits(PageSet,t);var r=_createSuper(PageSet);function PageSet(t){var o;_classCallCheck(this,PageSet);(o=r.call(this,k,"pageSet",!0)).duplexImposition=(0,y.getStringOption)(t.duplexImposition,["longEdge","shortEdge"]);o.id=t.id||"";o.name=t.name||"";o.relation=(0,y.getStringOption)(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);o.relevant=(0,y.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.occur=null;o.pageArea=new d.XFAObjectArray;o.pageSet=new d.XFAObjectArray;return o}_createClass(PageSet,[{key:c.$cleanPage,value:function value(){var t,r=_createForOfIteratorHelper(this.pageArea.children);try{for(r.s();!(t=r.n()).done;){t.value[c.$cleanPage]()}}catch(t){r.e(t)}finally{r.f()}var o,l=_createForOfIteratorHelper(this.pageSet.children);try{for(l.s();!(o=l.n()).done;){o.value[c.$cleanPage]()}}catch(t){l.e(t)}finally{l.f()}}},{key:c.$isUsable,value:function value(){return!this.occur||-1===this.occur.max||this[c.$extra].numberOfUse<this.occur.max}},{key:c.$getNextPage,value:function value(){this[c.$extra]||(this[c.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1});if("orderedOccurrence"===this.relation){if(this[c.$extra].pageIndex+1<this.pageArea.children.length){this[c.$extra].pageIndex+=1;return this.pageArea.children[this[c.$extra].pageIndex][c.$getNextPage]()}if(this[c.$extra].pageSetIndex+1<this.pageSet.children.length){this[c.$extra].pageSetIndex+=1;return this.pageSet.children[this[c.$extra].pageSetIndex][c.$getNextPage]()}if(this[c.$isUsable]()){this[c.$extra].numberOfUse+=1;this[c.$extra].pageIndex=-1;this[c.$extra].pageSetIndex=-1;return this[c.$getNextPage]()}var t=this[c.$getParent]();if(t instanceof PageSet)return t[c.$getNextPage]();this[c.$cleanPage]();return this[c.$getNextPage]()}var r=this[c.$getTemplateRoot]()[c.$extra].pageNumber,o=r%2==0?"even":"odd",l=0===r?"first":"rest",u=this.pageArea.children.find((function(t){return t.oddOrEven===o&&t.pagePosition===l}));return u||((u=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&t.pagePosition===l})))?u:(u=this.pageArea.children.find((function(t){return"any"===t.oddOrEven&&"any"===t.pagePosition})))||this.pageArea.children[0])}}]);return PageSet}(d.XFAObject),rt=function(t){_inherits(Para,t);var r=_createSuper(Para);function Para(t){var o;_classCallCheck(this,Para);(o=r.call(this,k,"para",!0)).hAlign=(0,y.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.lineHeight=t.lineHeight?(0,y.getMeasurement)(t.lineHeight,"0pt"):"";o.marginLeft=t.marginLeft?(0,y.getMeasurement)(t.marginLeft,"0pt"):"";o.marginRight=t.marginRight?(0,y.getMeasurement)(t.marginRight,"0pt"):"";o.orphans=(0,y.getInteger)({data:t.orphans,defaultValue:0,validate:function validate(t){return t>=0}});o.preserve=t.preserve||"";o.radixOffset=t.radixOffset?(0,y.getMeasurement)(t.radixOffset,"0pt"):"";o.spaceAbove=t.spaceAbove?(0,y.getMeasurement)(t.spaceAbove,"0pt"):"";o.spaceBelow=t.spaceBelow?(0,y.getMeasurement)(t.spaceBelow,"0pt"):"";o.tabDefault=t.tabDefault?(0,y.getMeasurement)(o.tabDefault):"";o.tabStops=(t.tabStops||"").trim().split(/\s+/).map((function(t,r){return r%2==1?(0,y.getMeasurement)(t):t}));o.textIndent=t.textIndent?(0,y.getMeasurement)(t.textIndent,"0pt"):"";o.use=t.use||"";o.usehref=t.usehref||"";o.vAlign=(0,y.getStringOption)(t.vAlign,["top","bottom","middle"]);o.widows=(0,y.getInteger)({data:t.widows,defaultValue:0,validate:function validate(t){return t>=0}});o.hyphenation=null;return o}_createClass(Para,[{key:c.$toStyle,value:function value(){var t=(0,h.toStyle)(this,"hAlign");""!==this.marginLeft&&(t.paddingLeft=(0,h.measureToString)(this.marginLeft));""!==this.marginRight&&(t.paddingight=(0,h.measureToString)(this.marginRight));""!==this.spaceAbove&&(t.paddingTop=(0,h.measureToString)(this.spaceAbove));""!==this.spaceBelow&&(t.paddingBottom=(0,h.measureToString)(this.spaceBelow));if(""!==this.textIndent){t.textIndent=(0,h.measureToString)(this.textIndent);(0,h.fixTextIndent)(t)}this.lineHeight>0&&(t.lineHeight=(0,h.measureToString)(this.lineHeight));""!==this.tabDefault&&(t.tabSize=(0,h.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(t,this.hyphenatation[c.$toStyle]());return t}}]);return Para}(d.XFAObject),nt=function(t){_inherits(PasswordEdit,t);var r=_createSuper(PasswordEdit);function PasswordEdit(t){var o;_classCallCheck(this,PasswordEdit);(o=r.call(this,k,"passwordEdit",!0)).hScrollPolicy=(0,y.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)}(d.XFAObject),it=function(t){_inherits(Pattern,t);var r=_createSuper(Pattern);function Pattern(t){var o;_classCallCheck(this,Pattern);(o=r.call(this,k,"pattern",!0)).id=t.id||"";o.type=(0,y.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:c.$toStyle,value:function value(t){t=t?t[c.$toStyle]():"#FFFFFF";var r=this.color?this.color[c.$toStyle]():"#000000",o="repeating-linear-gradient",l="".concat(t,",").concat(t," ").concat(5,"px,").concat(r," ").concat(5,"px,").concat(r," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(o,"(to top,").concat(l,") ").concat(o,"(to right,").concat(l,")");case"crossDiagonal":return"".concat(o,"(45deg,").concat(l,") ").concat(o,"(-45deg,").concat(l,")");case"diagonalLeft":return"".concat(o,"(45deg,").concat(l,")");case"diagonalRight":return"".concat(o,"(-45deg,").concat(l,")");case"horizontal":return"".concat(o,"(to top,").concat(l,")");case"vertical":return"".concat(o,"(to right,").concat(l,")")}return""}}]);return Pattern}(d.XFAObject),ot=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){var o;_classCallCheck(this,Picture);(o=r.call(this,k,"picture")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Picture)}(d.StringObject),st=function(t){_inherits(Proto,t);var r=_createSuper(Proto);function Proto(t){var o;_classCallCheck(this,Proto);(o=r.call(this,k,"proto",!0)).appearanceFilter=new d.XFAObjectArray;o.arc=new d.XFAObjectArray;o.area=new d.XFAObjectArray;o.assist=new d.XFAObjectArray;o.barcode=new d.XFAObjectArray;o.bindItems=new d.XFAObjectArray;o.bookend=new d.XFAObjectArray;o.boolean=new d.XFAObjectArray;o.border=new d.XFAObjectArray;o.break=new d.XFAObjectArray;o.breakAfter=new d.XFAObjectArray;o.breakBefore=new d.XFAObjectArray;o.button=new d.XFAObjectArray;o.calculate=new d.XFAObjectArray;o.caption=new d.XFAObjectArray;o.certificate=new d.XFAObjectArray;o.certificates=new d.XFAObjectArray;o.checkButton=new d.XFAObjectArray;o.choiceList=new d.XFAObjectArray;o.color=new d.XFAObjectArray;o.comb=new d.XFAObjectArray;o.connect=new d.XFAObjectArray;o.contentArea=new d.XFAObjectArray;o.corner=new d.XFAObjectArray;o.date=new d.XFAObjectArray;o.dateTime=new d.XFAObjectArray;o.dateTimeEdit=new d.XFAObjectArray;o.decimal=new d.XFAObjectArray;o.defaultUi=new d.XFAObjectArray;o.desc=new d.XFAObjectArray;o.digestMethod=new d.XFAObjectArray;o.digestMethods=new d.XFAObjectArray;o.draw=new d.XFAObjectArray;o.edge=new d.XFAObjectArray;o.encoding=new d.XFAObjectArray;o.encodings=new d.XFAObjectArray;o.encrypt=new d.XFAObjectArray;o.encryptData=new d.XFAObjectArray;o.encryption=new d.XFAObjectArray;o.encryptionMethod=new d.XFAObjectArray;o.encryptionMethods=new d.XFAObjectArray;o.event=new d.XFAObjectArray;o.exData=new d.XFAObjectArray;o.exObject=new d.XFAObjectArray;o.exclGroup=new d.XFAObjectArray;o.execute=new d.XFAObjectArray;o.extras=new d.XFAObjectArray;o.field=new d.XFAObjectArray;o.fill=new d.XFAObjectArray;o.filter=new d.XFAObjectArray;o.float=new d.XFAObjectArray;o.font=new d.XFAObjectArray;o.format=new d.XFAObjectArray;o.handler=new d.XFAObjectArray;o.hyphenation=new d.XFAObjectArray;o.image=new d.XFAObjectArray;o.imageEdit=new d.XFAObjectArray;o.integer=new d.XFAObjectArray;o.issuers=new d.XFAObjectArray;o.items=new d.XFAObjectArray;o.keep=new d.XFAObjectArray;o.keyUsage=new d.XFAObjectArray;o.line=new d.XFAObjectArray;o.linear=new d.XFAObjectArray;o.lockDocument=new d.XFAObjectArray;o.manifest=new d.XFAObjectArray;o.margin=new d.XFAObjectArray;o.mdp=new d.XFAObjectArray;o.medium=new d.XFAObjectArray;o.message=new d.XFAObjectArray;o.numericEdit=new d.XFAObjectArray;o.occur=new d.XFAObjectArray;o.oid=new d.XFAObjectArray;o.oids=new d.XFAObjectArray;o.overflow=new d.XFAObjectArray;o.pageArea=new d.XFAObjectArray;o.pageSet=new d.XFAObjectArray;o.para=new d.XFAObjectArray;o.passwordEdit=new d.XFAObjectArray;o.pattern=new d.XFAObjectArray;o.picture=new d.XFAObjectArray;o.radial=new d.XFAObjectArray;o.reason=new d.XFAObjectArray;o.reasons=new d.XFAObjectArray;o.rectangle=new d.XFAObjectArray;o.ref=new d.XFAObjectArray;o.script=new d.XFAObjectArray;o.setProperty=new d.XFAObjectArray;o.signData=new d.XFAObjectArray;o.signature=new d.XFAObjectArray;o.signing=new d.XFAObjectArray;o.solid=new d.XFAObjectArray;o.speak=new d.XFAObjectArray;o.stipple=new d.XFAObjectArray;o.subform=new d.XFAObjectArray;o.subformSet=new d.XFAObjectArray;o.subjectDN=new d.XFAObjectArray;o.subjectDNs=new d.XFAObjectArray;o.submit=new d.XFAObjectArray;o.text=new d.XFAObjectArray;o.textEdit=new d.XFAObjectArray;o.time=new d.XFAObjectArray;o.timeStamp=new d.XFAObjectArray;o.toolTip=new d.XFAObjectArray;o.traversal=new d.XFAObjectArray;o.traverse=new d.XFAObjectArray;o.ui=new d.XFAObjectArray;o.validate=new d.XFAObjectArray;o.value=new d.XFAObjectArray;o.variables=new d.XFAObjectArray;return o}return _createClass(Proto)}(d.XFAObject),ct=function(t){_inherits(Radial,t);var r=_createSuper(Radial);function Radial(t){var o;_classCallCheck(this,Radial);(o=r.call(this,k,"radial",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["toEdge","toCenter"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Radial,[{key:c.$toStyle,value:function value(t){t=t?t[c.$toStyle]():"#FFFFFF";var r=this.color?this.color[c.$toStyle]():"#000000",o="toEdge"===this.type?"".concat(t,",").concat(r):"".concat(r,",").concat(t);return"radial-gradient(circle at center, ".concat(o,")")}}]);return Radial}(d.XFAObject),lt=function(t){_inherits(Reason,t);var r=_createSuper(Reason);function Reason(t){var o;_classCallCheck(this,Reason);(o=r.call(this,k,"reason")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Reason)}(d.StringObject),ut=function(t){_inherits(Reasons,t);var r=_createSuper(Reasons);function Reasons(t){var o;_classCallCheck(this,Reasons);(o=r.call(this,k,"reasons",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.reason=new d.XFAObjectArray;return o}return _createClass(Reasons)}(d.XFAObject),ft=function(t){_inherits(Rectangle,t);var r=_createSuper(Rectangle);function Rectangle(t){var o;_classCallCheck(this,Rectangle);(o=r.call(this,k,"rectangle",!0)).hand=(0,y.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new d.XFAObjectArray(4);o.edge=new d.XFAObjectArray(4);o.fill=null;return o}_createClass(Rectangle,[{key:c.$toHTML,value:function value(){var t,r=this.edge.children.length?this.edge.children[0]:new he({}),o=r[c.$toStyle](),l=Object.create(null);"visible"===(null===(t=this.fill)||void 0===t?void 0:t.presence)?Object.assign(l,this.fill[c.$toStyle]()):l.fill="transparent";l.strokeWidth=(0,h.measureToString)("visible"===r.presence?r.thickness:0);l.stroke=o.color;var u=(this.corner.children.length?this.corner.children[0]:new re({}))[c.$toStyle](),d={name:"svg",children:[{name:"rect",attributes:{xmlns:S,width:"100%",height:"100%",x:0,y:0,rx:u.radius,ry:u.radius,style:l}}],attributes:{xmlns:S,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[c.$getParent]()[c.$getParent]()))return y.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[d]});d.attributes.style.position="absolute";return y.HTMLResult.success(d)}}]);return Rectangle}(d.XFAObject),ht=function(t){_inherits(RefElement,t);var r=_createSuper(RefElement);function RefElement(t){var o;_classCallCheck(this,RefElement);(o=r.call(this,k,"ref")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(RefElement)}(d.StringObject),dt=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,k,"script")).binding=t.binding||"";o.contentType=t.contentType||"";o.id=t.id||"";o.name=t.name||"";o.runAt=(0,y.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Script)}(d.StringObject),yt=function(t){_inherits(SetProperty,t);var r=_createSuper(SetProperty);function SetProperty(t){var o;_classCallCheck(this,SetProperty);(o=r.call(this,k,"setProperty")).connection=t.connection||"";o.ref=t.ref||"";o.target=t.target||"";return o}return _createClass(SetProperty)}(d.XFAObject);r.SetProperty=yt;var gt=function(t){_inherits(SignData,t);var r=_createSuper(SignData);function SignData(t){var o;_classCallCheck(this,SignData);(o=r.call(this,k,"signData",!0)).id=t.id||"";o.operation=(0,y.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)}(d.XFAObject),vt=function(t){_inherits(Signature,t);var r=_createSuper(Signature);function Signature(t){var o;_classCallCheck(this,Signature);(o=r.call(this,k,"signature",!0)).id=t.id||"";o.type=(0,y.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)}(d.XFAObject),mt=function(t){_inherits(Signing,t);var r=_createSuper(Signing);function Signing(t){var o;_classCallCheck(this,Signing);(o=r.call(this,k,"signing",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new d.XFAObjectArray;return o}return _createClass(Signing)}(d.XFAObject),bt=function(t){_inherits(Solid,t);var r=_createSuper(Solid);function Solid(t){var o;_classCallCheck(this,Solid);(o=r.call(this,k,"solid",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Solid,[{key:c.$toStyle,value:function value(t){return t?t[c.$toStyle]():"#FFFFFF"}}]);return Solid}(d.XFAObject),_t=function(t){_inherits(Speak,t);var r=_createSuper(Speak);function Speak(t){var o;_classCallCheck(this,Speak);(o=r.call(this,k,"speak")).disable=(0,y.getInteger)({data:t.disable,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.priority=(0,y.getStringOption)(t.priority,["custom","caption","name","toolTip"]);o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Speak)}(d.StringObject),wt=function(t){_inherits(Stipple,t);var r=_createSuper(Stipple);function Stipple(t){var o;_classCallCheck(this,Stipple);(o=r.call(this,k,"stipple",!0)).id=t.id||"";o.rate=(0,y.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:c.$toStyle,value:function value(t){var r=this.rate/100;return g.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}(d.XFAObject),kt=function(t){_inherits(Subform,t);var r=_createSuper(Subform);function Subform(t){var o;_classCallCheck(this,Subform);(o=r.call(this,k,"subform",!0)).access=(0,y.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.allowMacro=(0,y.getInteger)({data:t.allowMacro,defaultValue:0,validate:function validate(t){return 1===t}});o.anchorType=(0,y.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,y.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,y.getMeasurement)(t)}));o.h=t.h?(0,y.getMeasurement)(t.h):"";o.hAlign=(0,y.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,y.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.locale=t.locale||"";o.maxH=(0,y.getMeasurement)(t.maxH,"0pt");o.maxW=(0,y.getMeasurement)(t.maxW,"0pt");o.mergeMode=(0,y.getStringOption)(t.mergeMode,["consumeData","matchTemplate"]);o.minH=(0,y.getMeasurement)(t.minH,"0pt");o.minW=(0,y.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,y.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,y.getRelevant)(t.relevant);o.restoreState=(0,y.getStringOption)(t.restoreState,["manual","auto"]);o.scope=(0,y.getStringOption)(t.scope,["name","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,y.getMeasurement)(t.w):"";o.x=(0,y.getMeasurement)(t.x,"0pt");o.y=(0,y.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 d.XFAObjectArray;o.breakAfter=new d.XFAObjectArray;o.breakBefore=new d.XFAObjectArray;o.connect=new d.XFAObjectArray;o.draw=new d.XFAObjectArray;o.event=new d.XFAObjectArray;o.exObject=new d.XFAObjectArray;o.exclGroup=new d.XFAObjectArray;o.field=new d.XFAObjectArray;o.proto=new d.XFAObjectArray;o.setProperty=new d.XFAObjectArray;o.subform=new d.XFAObjectArray;o.subformSet=new d.XFAObjectArray;return o}_createClass(Subform,[{key:c.$getSubformParent,value:function value(){var t=this[c.$getParent]();return t instanceof St?t[c.$getSubformParent]():t}},{key:c.$isBindable,value:function value(){return!0}},{key:c.$isThereMoreWidth,value:function value(){return this.layout.endsWith("-tb")&&0===this[c.$extra].attempt&&this[c.$extra].numberInLine>0||this[c.$getParent]()[c.$isThereMoreWidth]()}},{key:c.$getContainedChildren,value:_regeneratorRuntime().mark((function value(){return _regeneratorRuntime().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:c.$flushHTML,value:function value(){return(0,u.flushHTML)(this)}},{key:c.$addHTML,value:function value(t,r){(0,u.addHTML)(this,t,r)}},{key:c.$getAvailableSpace,value:function value(){return(0,u.getAvailableSpace)(this)}},{key:c.$isSplittable,value:function value(){var t,r=this[c.$getSubformParent]();if(!r[c.$isSplittable]())return!1;if(void 0!==this[c.$extra]._isSplittable)return this[c.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[c.$extra]._isSplittable=!1;return!1}if(this.keep&&"none"!==this.keep.intact){this[c.$extra]._isSplittable=!1;return!1}if(null!==(t=r.layout)&&void 0!==t&&t.endsWith("-tb")&&0!==r[c.$extra].numberInLine)return!1;this[c.$extra]._isSplittable=!0;return!0}},{key:c.$toHTML,value:function value(t){var r;setTabIndex(this);if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){var o=new H({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});o[c.$globalData]=this[c.$globalData];this[c.$appendChild](o);this.breakAfter.push(o)}if("auto"!==this.break.before||""!==this.break.beforeTarget){var l=new X({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});l[c.$globalData]=this[c.$globalData];this[c.$appendChild](l);this.breakBefore.push(l)}if(""!==this.break.overflowTarget){var d=new Qe({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});d[c.$globalData]=this[c.$globalData];this[c.$appendChild](d);this.overflow.push(d)}this[c.$removeChild](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return y.HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,g.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");if(this.breakBefore.children.length>=1){var v=this.breakBefore.children[0];if(handleBreak(v))return y.HTMLResult.breakNode(v)}if(null!==(r=this[c.$extra])&&void 0!==r&&r.afterBreakAfter)return y.HTMLResult.EMPTY;(0,h.fixDimensions)(this);var m=[],_={id:this[c.$uid],class:[]};(0,h.setAccess)(this,_.class);this[c.$extra]||(this[c.$extra]=Object.create(null));Object.assign(this[c.$extra],{children:m,line:null,attributes:_,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 w=this[c.$getTemplateRoot](),k=w[c.$extra].noLayoutFailure,S=this[c.$isSplittable]();S||setFirstUnsplittable(this);if(!(0,u.checkDimensions)(this,t))return y.HTMLResult.FAILURE;var C=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var x=this[c.$getSubformParent]().columnWidths;if(Array.isArray(x)&&x.length>0){this[c.$extra].columnWidths=x;this[c.$extra].currentColumn=0}}var O=(0,h.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),T=["xfaSubform"],E=(0,h.layoutClass)(this);E&&T.push(E);_.style=O;_.class=T;this.name&&(_.xfaName=this.name);if(this.overflow){var R=this.overflow[c.$getExtra]();if(R.addLeader){R.addLeader=!1;handleOverflow(this,R.leader,t)}}this[c.$pushPara]();for(var M="lr-tb"===this.layout||"rl-tb"===this.layout,j=M?2:1;this[c.$extra].attempt<j;this[c.$extra].attempt++){M&&1===this[c.$extra].attempt&&(this[c.$extra].numberInLine=0);var L=this[c.$childrenToHTML]({filter:C,include:!0});if(L.success)break;if(L.isBreak()){this[c.$popPara]();return L}if(M&&0===this[c.$extra].attempt&&0===this[c.$extra].numberInLine&&!w[c.$extra].noLayoutFailure){this[c.$extra].attempt=j;break}}this[c.$popPara]();S||unsetFirstUnsplittable(this);w[c.$extra].noLayoutFailure=k;if(this[c.$extra].attempt===j){this.overflow&&(this[c.$getTemplateRoot]()[c.$extra].overflowNode=this.overflow);S||delete this[c.$extra];return y.HTMLResult.FAILURE}if(this.overflow){var D=this.overflow[c.$getExtra]();if(D.addTrailer){D.addTrailer=!1;handleOverflow(this,D.trailer,t)}}var N=0,U=0;if(this.margin){N=this.margin.leftInset+this.margin.rightInset;U=this.margin.topInset+this.margin.bottomInset}var G=Math.max(this[c.$extra].width+N,this.w||0),$=Math.max(this[c.$extra].height+U,this.h||0),q=[this.x,this.y,G,$];""===this.w&&(O.width=(0,h.measureToString)(G));""===this.h&&(O.height=(0,h.measureToString)($));if(("0px"===O.width||"0px"===O.height)&&0===m.length)return y.HTMLResult.EMPTY;var z={name:"div",attributes:_,children:m};applyAssist(this,_);var W=y.HTMLResult.success((0,h.createWrapper)(this,z),q);if(this.breakAfter.children.length>=1){var V=this.breakAfter.children[0];if(handleBreak(V)){this[c.$extra].afterBreakAfter=W;return y.HTMLResult.breakNode(V)}}delete this[c.$extra];return W}}]);return Subform}(d.XFAObject),St=function(t){_inherits(SubformSet,t);var r=_createSuper(SubformSet);function SubformSet(t){var o;_classCallCheck(this,SubformSet);(o=r.call(this,k,"subformSet",!0)).id=t.id||"";o.name=t.name||"";o.relation=(0,y.getStringOption)(t.relation,["ordered","choice","unordered"]);o.relevant=(0,y.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 d.XFAObjectArray;o.breakBefore=new d.XFAObjectArray;o.subform=new d.XFAObjectArray;o.subformSet=new d.XFAObjectArray;return o}_createClass(SubformSet,[{key:c.$getContainedChildren,value:_regeneratorRuntime().mark((function value(){return _regeneratorRuntime().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:c.$getSubformParent,value:function value(){for(var t=this[c.$getParent]();!(t instanceof kt);)t=t[c.$getParent]();return t}},{key:c.$isBindable,value:function value(){return!0}}]);return SubformSet}(d.XFAObject),Ct=function(t){_inherits(SubjectDN,t);var r=_createSuper(SubjectDN);function SubjectDN(t){var o;_classCallCheck(this,SubjectDN);(o=r.call(this,k,"subjectDN")).delimiter=t.delimiter||",";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(SubjectDN,[{key:c.$finalize,value:function value(){this[c.$content]=new Map(this[c.$content].split(this.delimiter).map((function(t){(t=t.split("=",2))[0]=t[0].trim();return t})))}}]);return SubjectDN}(d.ContentObject),xt=function(t){_inherits(SubjectDNs,t);var r=_createSuper(SubjectDNs);function SubjectDNs(t){var o;_classCallCheck(this,SubjectDNs);(o=r.call(this,k,"subjectDNs",!0)).id=t.id||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.subjectDN=new d.XFAObjectArray;return o}return _createClass(SubjectDNs)}(d.XFAObject),At=function(t){_inherits(Submit,t);var r=_createSuper(Submit);function Submit(t){var o;_classCallCheck(this,Submit);(o=r.call(this,k,"submit",!0)).embedPDF=(0,y.getInteger)({data:t.embedPDF,defaultValue:0,validate:function validate(t){return 1===t}});o.format=(0,y.getStringOption)(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);o.id=t.id||"";o.target=t.target||"";o.textEncoding=(0,y.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 d.XFAObjectArray;o.signData=new d.XFAObjectArray;return o}return _createClass(Submit)}(d.XFAObject),Ot=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,k,"template",!0)).baseProfile=(0,y.getStringOption)(t.baseProfile,["full","interactiveForms"]);o.extras=null;o.subform=new d.XFAObjectArray;return o}_createClass(Template,[{key:c.$finalize,value:function value(){0===this.subform.children.length&&(0,g.warn)("XFA - No subforms in template node.");this.subform.children.length>=2&&(0,g.warn)("XFA - Several subforms in template node: please file a bug.");this[c.$tabIndex]=5e3}},{key:c.$isSplittable,value:function value(){return!0}},{key:c.$searchNode,value:function value(t,r){return t.startsWith("#")?[this[c.$ids].get(t.slice(1))]:(0,_.searchNode)(this,r,t,!0,!0)}},{key:c.$toPages,value:_regeneratorRuntime().mark((function value(){var t,r,o,l,u,h,d,v,m,_,w,k,S,C,x,O,T,E,R=this;return _regeneratorRuntime().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",y.HTMLResult.success({name:"div",children:[]}));case 2:this[c.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};(o=this.subform.children[0]).pageSet[c.$cleanPage]();l=o.pageSet.pageArea.children;u={name:"div",children:[]};h=null;d=null;v=null;if(o.breakBefore.children.length>=1){d=o.breakBefore.children[0];v=d.target}else if(o.subform.children.length>=1&&o.subform.children[0].breakBefore.children.length>=1){d=o.subform.children[0].breakBefore.children[0];v=d.target}else if(null!==(t=o.break)&&void 0!==t&&t.beforeTarget){d=o.break;v=d.beforeTarget}else if(o.subform.children.length>=1&&null!==(r=o.subform.children[0].break)&&void 0!==r&&r.beforeTarget){d=o.subform.children[0].break;v=d.beforeTarget}if(d&&(m=this[c.$searchNode](v,d[c.$getParent]()))instanceof et){h=m;d[c.$extra]={}}h||(h=l[0]);h[c.$extra]={numberOfUse:1};(_=h[c.$getParent]())[c.$extra]={numberOfUse:1,pageIndex:_.pageArea.children.indexOf(h),pageSetIndex:0};k=null;S=null;C=!0;x=0;O=0;T=_regeneratorRuntime().mark((function _loop(){var t,r,l,d,y,v,m,_,T,E,M,j,L,D,N,U;return _regeneratorRuntime().wrap((function _loop$(G){for(;;)switch(G.prev=G.next){case 0:if(C){G.next=7;break}u.children.pop();if(3!=++x){G.next=5;break}(0,g.warn)("XFA - Something goes wrong: please file a bug.");return G.abrupt("return",{v:u});case 5:G.next=8;break;case 7:x=0;case 8:w=null;R[c.$extra].currentPageArea=h;t=h[c.$toHTML]().html;u.children.push(t);if(k){R[c.$extra].noLayoutFailure=!0;t.children.push(k[c.$toHTML](h[c.$extra].space).html);k=null}if(S){R[c.$extra].noLayoutFailure=!0;t.children.push(S[c.$toHTML](h[c.$extra].space).html);S=null}r=h.contentArea.children;l=t.children.filter((function(t){return t.attributes.class.includes("xfaContentarea")}));C=!1;R[c.$extra].firstUnsplittable=null;R[c.$extra].noLayoutFailure=!1;d=function flush(t){var r=o[c.$flushHTML]();if(r){var u;C||(C=(null===(u=r.children)||void 0===u?void 0:u.length)>0);l[t].children.push(r)}};y=O,v=r.length;case 21:if(!(y<v)){G.next=56;break}m=R[c.$extra].currentContentArea=r[y];_={width:m.w,height:m.h};O=0;if(k){l[y].children.push(k[c.$toHTML](_).html);k=null}if(S){l[y].children.push(S[c.$toHTML](_).html);S=null}if(!(T=o[c.$toHTML](_)).success){G.next=31;break}if(T.html){C||(C=(null===(E=T.html.children)||void 0===E?void 0:E.length)>0);l[y].children.push(T.html)}else!C&&u.children.length>1&&u.children.pop();return G.abrupt("return",{v:u});case 31:if(!T.isBreak()){G.next=40;break}M=T.breakNode;d(y);if("auto"!==M.targetType){G.next=36;break}return G.abrupt("continue",53);case 36:M.leader&&(k=(k=R[c.$searchNode](M.leader,M[c.$getParent]()))?k[0]:null);M.trailer&&(S=(S=R[c.$searchNode](M.trailer,M[c.$getParent]()))?S[0]:null);if("pageArea"===M.targetType){w=M[c.$extra].target;y=1/0}else if(M[c.$extra].target){w=M[c.$extra].target;O=M[c.$extra].index+1;y=1/0}else y=M[c.$extra].index;return G.abrupt("continue",53);case 40:if(!R[c.$extra].overflowNode){G.next=52;break}j=R[c.$extra].overflowNode;R[c.$extra].overflowNode=null;L=j[c.$getExtra]();D=L.target;L.addLeader=null!==L.leader;L.addTrailer=null!==L.trailer;d(y);N=y;y=1/0;if(D instanceof et)w=D;else if(D instanceof te)if(-1!==(U=r.indexOf(D)))U>N?y=U-1:O=U;else{w=D[c.$getParent]();O=w.contentArea.children.indexOf(D)}return G.abrupt("continue",53);case 52:d(y);case 53:y++;G.next=21;break;case 56:R[c.$extra].pageNumber+=1;w&&(w[c.$isUsable]()?w[c.$extra].numberOfUse+=1:w=null);h=w||h[c.$getNextPage]();G.next=61;return null;case 61:case"end":return G.stop()}}),_loop)}));case 22:0;return M.delegateYield(T(),"t0",24);case 24:if(!(E=M.t0)){M.next=27;break}return M.abrupt("return",E.v);case 27:M.next=22;break;case 29:case"end":return M.stop()}}),value,this)}))}]);return Template}(d.XFAObject);r.Template=Ot;var Pt=function(t){_inherits(Text,t);var r=_createSuper(Text);function Text(t){var o;_classCallCheck(this,Text);(o=r.call(this,k,"text")).id=t.id||"";o.maxChars=(0,y.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:c.$acceptWhitespace,value:function value(){return!0}},{key:c.$onChild,value:function value(t){if(t[c.$namespaceId]===l.NamespaceIds.xhtml.id){this[c.$content]=t;return!0}(0,g.warn)("XFA - Invalid content in Text: ".concat(t[c.$nodeName],"."));return!1}},{key:c.$onText,value:function value(t){this[c.$content]instanceof d.XFAObject||_get(_getPrototypeOf(Text.prototype),c.$onText,this).call(this,t)}},{key:c.$finalize,value:function value(){"string"==typeof this[c.$content]&&(this[c.$content]=this[c.$content].replaceAll("\r\n","\n"))}},{key:c.$getExtra,value:function value(){return"string"==typeof this[c.$content]?this[c.$content].split(/[\u2029\u2028\n]/).reduce((function(t,r){r&&t.push(r);return t}),[]).join("\n"):this[c.$content][c.$text]()}},{key:c.$toHTML,value:function value(t){if("string"==typeof this[c.$content]){var r=valueToHtml(this[c.$content]).html;if(this[c.$content].includes("\u2029")){r.name="div";r.children=[];this[c.$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[c.$content])){r.name="div";r.children=[];this[c.$content].split(/[\u2028\n]/).forEach((function(t){r.children.push({name:"span",value:t},{name:"br"})}))}return y.HTMLResult.success(r)}return this[c.$content][c.$toHTML](t)}}]);return Text}(d.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,k,"textEdit",!0)).allowRichText=(0,y.getInteger)({data:t.allowRichText,defaultValue:0,validate:function validate(t){return 1===t}});o.hScrollPolicy=(0,y.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.multiLine=(0,y.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,y.getStringOption)(t.vScrollPolicy,["auto","off","on"]);o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(TextEdit,[{key:c.$toHTML,value:function value(t){var r,o=(0,h.toStyle)(this,"border","font","margin"),l=this[c.$getParent]()[c.$getParent]();""===this.multiLine&&(this.multiLine=l instanceof fe?1:0);if(1===this.multiLine){var u;r={name:"textarea",attributes:{dataId:(null===(u=l[c.$data])||void 0===u?void 0:u[c.$uid])||l[c.$uid],fieldId:l[c.$uid],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(l),"aria-required":!1}}}else{var d;r={name:"input",attributes:{type:"text",dataId:(null===(d=l[c.$data])||void 0===d?void 0:d[c.$uid])||l[c.$uid],fieldId:l[c.$uid],class:["xfaTextfield"],style:o,"aria-label":ariaLabel(l),"aria-required":!1}}}if(isRequired(l)){r.attributes["aria-required"]=!0;r.attributes.required=!0}return y.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[r]})}}]);return TextEdit}(d.XFAObject),It=function(t){_inherits(Time,t);var r=_createSuper(Time);function Time(t){var o;_classCallCheck(this,Time);(o=r.call(this,k,"time")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Time,[{key:c.$finalize,value:function value(){var t=this[c.$content].trim();this[c.$content]=t?new Date(t):null}},{key:c.$toHTML,value:function value(t){return valueToHtml(this[c.$content]?this[c.$content].toString():"")}}]);return Time}(d.StringObject),Ft=function(t){_inherits(TimeStamp,t);var r=_createSuper(TimeStamp);function TimeStamp(t){var o;_classCallCheck(this,TimeStamp);(o=r.call(this,k,"timeStamp")).id=t.id||"";o.server=t.server||"";o.type=(0,y.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(TimeStamp)}(d.XFAObject),Et=function(t){_inherits(ToolTip,t);var r=_createSuper(ToolTip);function ToolTip(t){var o;_classCallCheck(this,ToolTip);(o=r.call(this,k,"toolTip")).id=t.id||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(ToolTip)}(d.StringObject),Rt=function(t){_inherits(Traversal,t);var r=_createSuper(Traversal);function Traversal(t){var o;_classCallCheck(this,Traversal);(o=r.call(this,k,"traversal",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.traverse=new d.XFAObjectArray;return o}return _createClass(Traversal)}(d.XFAObject),Mt=function(t){_inherits(Traverse,t);var r=_createSuper(Traverse);function Traverse(t){var o;_classCallCheck(this,Traverse);(o=r.call(this,k,"traverse",!0)).id=t.id||"";o.operation=(0,y.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:c.$isTransparent,value:function value(){return!1}}]);return Traverse}(d.XFAObject),jt=function(t){_inherits(Ui,t);var r=_createSuper(Ui);function Ui(t){var o;_classCallCheck(this,Ui);(o=r.call(this,k,"ui",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;o.barcode=null;o.button=null;o.checkButton=null;o.choiceList=null;o.dateTimeEdit=null;o.defaultUi=null;o.imageEdit=null;o.numericEdit=null;o.passwordEdit=null;o.signature=null;o.textEdit=null;return o}_createClass(Ui,[{key:c.$getExtra,value:function value(){if(void 0===this[c.$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 l=this[o];if(l instanceof d.XFAObject){this[c.$extra]=l;return l}}}}catch(t){r.e(t)}finally{r.f()}this[c.$extra]=null}return this[c.$extra]}},{key:c.$toHTML,value:function value(t){var r=this[c.$getExtra]();return r?r[c.$toHTML](t):y.HTMLResult.EMPTY}}]);return Ui}(d.XFAObject),Lt=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){var o;_classCallCheck(this,Validate);(o=r.call(this,k,"validate",!0)).formatTest=(0,y.getStringOption)(t.formatTest,["warning","disabled","error"]);o.id=t.id||"";o.nullTest=(0,y.getStringOption)(t.nullTest,["disabled","error","warning"]);o.scriptTest=(0,y.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)}(d.XFAObject),Dt=function(t){_inherits(Value,t);var r=_createSuper(Value);function Value(t){var o;_classCallCheck(this,Value);(o=r.call(this,k,"value",!0)).id=t.id||"";o.override=(0,y.getInteger)({data:t.override,defaultValue:0,validate:function validate(t){return 1===t}});o.relevant=(0,y.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:c.$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[c.$getParent]();if(r instanceof Ae){var o;if(null!==(o=r.ui)&&void 0!==o&&o.imageEdit){if(!this.image){this.image=new Me({});this[c.$appendChild](this.image)}this.image[c.$content]=t[c.$content];return}}var l=t[c.$nodeName];if(null===this[l]){var u,h=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(h.s();!(u=h.n()).done;){var y=u.value,g=this[y];if(g instanceof d.XFAObject){this[y]=null;this[c.$removeChild](g)}}}catch(t){h.e(t)}finally{h.f()}this[t[c.$nodeName]]=t;this[c.$appendChild](t)}else this[l][c.$content]=t[c.$content]}))},{key:c.$text,value:function value(){if(this.exData)return"string"==typeof this.exData[c.$content]?this.exData[c.$content].trim():this.exData[c.$content][c.$text]().trim();var t,r=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("image"!==o){var l=this[o];if(l instanceof d.XFAObject)return(l[c.$content]||"").toString().trim()}}}catch(t){r.e(t)}finally{r.f()}return null}},{key:c.$toHTML,value:function value(t){var r,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var l=this[r.value];if(l instanceof d.XFAObject)return l[c.$toHTML](t)}}catch(t){o.e(t)}finally{o.f()}return y.HTMLResult.EMPTY}}]);return Value}(d.XFAObject);r.Value=Dt;var Nt=function(t){_inherits(Variables,t);var r=_createSuper(Variables);function Variables(t){var o;_classCallCheck(this,Variables);(o=r.call(this,k,"variables",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new d.XFAObjectArray;o.date=new d.XFAObjectArray;o.dateTime=new d.XFAObjectArray;o.decimal=new d.XFAObjectArray;o.exData=new d.XFAObjectArray;o.float=new d.XFAObjectArray;o.image=new d.XFAObjectArray;o.integer=new d.XFAObjectArray;o.manifest=new d.XFAObjectArray;o.script=new d.XFAObjectArray;o.text=new d.XFAObjectArray;o.time=new d.XFAObjectArray;return o}_createClass(Variables,[{key:c.$isTransparent,value:function value(){return!0}}]);return Variables}(d.XFAObject),Bt=function(){function TemplateNamespace(){_classCallCheck(this,TemplateNamespace)}_createClass(TemplateNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(TemplateNamespace.hasOwnProperty(t)){var o=TemplateNamespace[t](r);o[c.$setSetAttributes](r);return o}}},{key:"appearanceFilter",value:function appearanceFilter(t){return new T(t)}},{key:"arc",value:function arc(t){return new E(t)}},{key:"area",value:function area(t){return new R(t)}},{key:"assist",value:function assist(t){return new M(t)}},{key:"barcode",value:function barcode(t){return new j(t)}},{key:"bind",value:function bind(t){return new L(t)}},{key:"bindItems",value:function bindItems(t){return new D(t)}},{key:"bookend",value:function bookend(t){return new N(t)}},{key:"boolean",value:function boolean(t){return new U(t)}},{key:"border",value:function border(t){return new G(t)}},{key:"break",value:function _break(t){return new $(t)}},{key:"breakAfter",value:function breakAfter(t){return new H(t)}},{key:"breakBefore",value:function breakBefore(t){return new X(t)}},{key:"button",value:function button(t){return new q(t)}},{key:"calculate",value:function calculate(t){return new z(t)}},{key:"caption",value:function caption(t){return new W(t)}},{key:"certificate",value:function certificate(t){return new V(t)}},{key:"certificates",value:function certificates(t){return new K(t)}},{key:"checkButton",value:function checkButton(t){return new Y(t)}},{key:"choiceList",value:function choiceList(t){return new J(t)}},{key:"color",value:function color(t){return new Z(t)}},{key:"comb",value:function comb(t){return new Q(t)}},{key:"connect",value:function connect(t){return new ee(t)}},{key:"contentArea",value:function contentArea(t){return new te(t)}},{key:"corner",value:function corner(t){return new re(t)}},{key:"date",value:function date(t){return new ne(t)}},{key:"dateTime",value:function dateTime(t){return new ae(t)}},{key:"dateTimeEdit",value:function dateTimeEdit(t){return new ie(t)}},{key:"decimal",value:function decimal(t){return new oe(t)}},{key:"defaultUi",value:function defaultUi(t){return new se(t)}},{key:"desc",value:function desc(t){return new ce(t)}},{key:"digestMethod",value:function digestMethod(t){return new le(t)}},{key:"digestMethods",value:function digestMethods(t){return new ue(t)}},{key:"draw",value:function draw(t){return new fe(t)}},{key:"edge",value:function edge(t){return new he(t)}},{key:"encoding",value:function encoding(t){return new pe(t)}},{key:"encodings",value:function encodings(t){return new de(t)}},{key:"encrypt",value:function encrypt(t){return new ye(t)}},{key:"encryptData",value:function encryptData(t){return new ge(t)}},{key:"encryption",value:function encryption(t){return new ve(t)}},{key:"encryptionMethod",value:function encryptionMethod(t){return new me(t)}},{key:"encryptionMethods",value:function encryptionMethods(t){return new be(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 ke(t)}},{key:"exclGroup",value:function exclGroup(t){return new Se(t)}},{key:"execute",value:function execute(t){return new Ce(t)}},{key:"extras",value:function extras(t){return new xe(t)}},{key:"field",value:function field(t){return new Ae(t)}},{key:"fill",value:function fill(t){return new Oe(t)}},{key:"filter",value:function filter(t){return new Pe(t)}},{key:"float",value:function float(t){return new Te(t)}},{key:"font",value:function font(t){return new Ie(t)}},{key:"format",value:function format(t){return new Fe(t)}},{key:"handler",value:function handler(t){return new Ee(t)}},{key:"hyphenation",value:function hyphenation(t){return new Re(t)}},{key:"image",value:function image(t){return new Me(t)}},{key:"imageEdit",value:function imageEdit(t){return new je(t)}},{key:"integer",value:function integer(t){return new Le(t)}},{key:"issuers",value:function issuers(t){return new De(t)}},{key:"items",value:function items(t){return new Ne(t)}},{key:"keep",value:function keep(t){return new Be(t)}},{key:"keyUsage",value:function keyUsage(t){return new Ue(t)}},{key:"line",value:function line(t){return new Ge(t)}},{key:"linear",value:function linear(t){return new $e(t)}},{key:"lockDocument",value:function lockDocument(t){return new He(t)}},{key:"manifest",value:function manifest(t){return new Xe(t)}},{key:"margin",value:function margin(t){return new qe(t)}},{key:"mdp",value:function mdp(t){return new ze(t)}},{key:"medium",value:function medium(t){return new We(t)}},{key:"message",value:function message(t){return new Ve(t)}},{key:"numericEdit",value:function numericEdit(t){return new Ke(t)}},{key:"occur",value:function occur(t){return new Ye(t)}},{key:"oid",value:function oid(t){return new Je(t)}},{key:"oids",value:function oids(t){return new Ze(t)}},{key:"overflow",value:function overflow(t){return new Qe(t)}},{key:"pageArea",value:function pageArea(t){return new et(t)}},{key:"pageSet",value:function pageSet(t){return new tt(t)}},{key:"para",value:function para(t){return new rt(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 yt(t)}},{key:"signData",value:function signData(t){return new gt(t)}},{key:"signature",value:function signature(t){return new vt(t)}},{key:"signing",value:function signing(t){return new mt(t)}},{key:"solid",value:function solid(t){return new bt(t)}},{key:"speak",value:function speak(t){return new _t(t)}},{key:"stipple",value:function stipple(t){return new wt(t)}},{key:"subform",value:function subform(t){return new kt(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 At(t)}},{key:"template",value:function template(t){return new Ot(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 It(t)}},{key:"timeStamp",value:function timeStamp(t){return new Ft(t)}},{key:"toolTip",value:function toolTip(t){return new Et(t)}},{key:"traversal",value:function traversal(t){return new Rt(t)}},{key:"traverse",value:function traverse(t){return new Mt(t)}},{key:"ui",value:function ui(t){return new jt(t)}},{key:"validate",value:function validate(t){return new Lt(t)}},{key:"value",value:function value(t){return new Dt(t)}},{key:"variables",value:function variables(t){return new Nt(t)}}]);return TemplateNamespace}();r.TemplateNamespace=Bt},(t,r,o)=>{var c,l=o(58),u=o(91),h=o(59).f,d=o(73),y=o(77),g=o(310),v=o(11),m=o(312),_=o(16),w=u("".endsWith),k=u("".slice),S=Math.min,C=m("endsWith");l({target:"String",proto:!0,forced:!(!_&&!C&&!!(c=h(String.prototype,"endsWith"),c&&!c.writable))&&!C},{endsWith:function endsWith(t){var r=y(v(this));g(t);var o=arguments.length>1?arguments[1]:void 0,c=r.length,l=void 0===o?c:S(d(o),c),u=y(t);return w?w(r,u,l):k(r,l-u.length,l)===u}})},(t,r,o)=>{var c=o(58),l=o(9),u=o(84).f;c({target:"Object",stat:!0,forced:l((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:u})},(t,r,o)=>{var c=o(58),l=o(467),u=o(37),h=o(9),d=o(80),y=o(51),g=o(24).f,v=o(44),m=o(87),_=o(6),w=o(149),k=o(32),S=o(468),C=o(186),x=o(469),O=o(189),T=o(48),E=o(25),R=o(16),M="DOMException",j="DATA_CLONE_ERR",L=u("Error"),D=u(M)||function(){try{(new(u("MessageChannel")||l("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===j&&25===t.code)return t.constructor}}(),N=D&&D.prototype,U=L.prototype,G=T.set,$=T.getterFor(M),H="stack"in L(M),codeFor=function(t){return _(x,t)&&x[t].m?x[t].c:0},X=function DOMException(){w(this,q);var t=arguments.length,r=C(t<1?void 0:arguments[0]),o=C(t<2?void 0:arguments[1],"Error"),c=codeFor(o);G(this,{type:M,name:o,message:r,code:c});if(!E){this.name=o;this.message=r;this.code=c}if(H){var l=L(r);l.name=M;g(this,"stack",y(1,O(l.stack,1)))}},q=X.prototype=d(U),createGetterDescriptor=function(t){return{enumerable:!0,configurable:!0,get:t}},getterFor=function(t){return createGetterDescriptor((function(){return $(this)[t]}))};if(E){m(q,"code",getterFor("code"));m(q,"message",getterFor("message"));m(q,"name",getterFor("name"))}g(q,"constructor",y(1,X));var z=h((function(){return!(new D instanceof L)})),W=z||h((function(){return U.toString!==S||"2: 1"!==String(new D(1,2))})),V=z||h((function(){return 25!==new D(1,"DataCloneError").code})),K=z||25!==D[j]||25!==N[j],Y=R?W||V||K:z;c({global:!0,constructor:!0,forced:Y},{DOMException:Y?X:D});var J=u(M),Z=J.prototype;W&&(R||D===J)&&v(Z,"toString",S);V&&E&&D===J&&m(Z,"code",createGetterDescriptor((function(){return codeFor(k(this).name)})));for(var Q in x)if(_(x,Q)){var ee=x[Q],te=ee.s,re=y(6,ee.c);_(J,te)||g(J,te,re);_(Z,te)||g(Z,te,re)}},(t,r,o)=>{var c=o(147);t.exports=function(t){try{if(c)return Function('return require("'+t+'")')()}catch(t){}}},(t,r,o)=>{var c=o(25),l=o(9),u=o(32),h=o(80),d=o(186),y=Error.prototype.toString,g=l((function(){if(c){var t=h(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==y.call(t))return!0}return"2: 1"!==y.call({message:1,name:2})||"Error"!==y.call({})}));t.exports=g?function toString(){var t=u(this),r=d(t.name,"Error"),o=d(t.message);return r?o?r+": "+o:r:o}:y},t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},(t,r,o)=>{var c=o(58),l=o(5),u=o(37),h=o(51),d=o(24).f,y=o(6),g=o(149),v=o(106),m=o(186),_=o(469),w=o(189),k=o(25),S=o(16),C="DOMException",x=u("Error"),O=u(C),T=function DOMException(){g(this,E);var t=arguments.length,r=m(t<1?void 0:arguments[0]),o=m(t<2?void 0:arguments[1],"Error"),c=new O(r,o),l=x(r);l.name=C;d(c,"stack",h(1,w(l.stack,1)));v(c,this,T);return c},E=T.prototype=O.prototype,R="stack"in x(C),M="stack"in new O(1,2),j=O&&k&&Object.getOwnPropertyDescriptor(l,C),L=!(!j||j.writable&&j.configurable),D=R&&!L&&!M;c({global:!0,constructor:!0,forced:S||D},{DOMException:D?T:O});var N=u(C),U=N.prototype;if(U.constructor!==N){S||d(U,"constructor",h(1,N));for(var G in _)if(y(_,G)){var $=_[G],H=$.s;y(N,H)||d(N,H,h(6,$.c))}}},(t,r,o)=>{var c=o(37),l="DOMException";o(88)(c(l),l)},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceIds=r.$buildXFAObject=void 0;o(56);o(104);o(143);o(309);var c=Symbol();r.$buildXFAObject=c;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)=>{o(56);o(104);o(113);o(137);o(175);o(177);o(293);o(114);o(123);o(129);o(183);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),y=d[0],g=d[1],v=d[2],m=d[3];switch(t.layout){case"position":u.width=Math.max(u.width,y+v);u.height=Math.max(u.height,g+m);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+=v;u.height=Math.max(u.height,u.prevHeight+m)}else{u.currentWidth=v;u.prevHeight=u.height;u.height+=m;u.attempt=0}u.width=Math.max(u.width,u.currentWidth);break;case"rl-row":case"row":u.children.push(r);u.width+=v;u.height=Math.max(u.height,m);var _,w=(0,l.measureToString)(u.height),k=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(k.s();!(_=k.n()).done;){_.value.attributes.style.height=w}}catch(t){k.e(t)}finally{k.f()}break;case"table":case"tb":u.width=Math.min(h.width,Math.max(u.width,v));u.height+=m;u.children.push(r)}};r.checkDimensions=function checkDimensions(t,r){var o;if(null===t[c.$getTemplateRoot]()[c.$extra].firstUnsplittable)return!0;if(0===t.w||0===t.h)return!0;var l=t[c.$getSubformParent](),u=(null===(o=l[c.$extra])||void 0===o?void 0:o.attempt)||0,h=_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 y=[-c,-l];c=y[0];l=y[1];break;case 270:r=h;o=-u;var g=[-l,c];c=g[0];l=g[1]}return[t.x+r+Math.min(0,c),t.y+o+Math.min(0,l),Math.abs(c),Math.abs(l)]}(t),4),d=h[1],y=h[2],g=h[3];switch(l.layout){case"lr-tb":case"rl-tb":return 0===u?t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure?""!==t.w?Math.round(y-r.width)<=2:r.width>2:!(""!==t.h&&Math.round(g-r.height)>2)&&(""!==t.w?Math.round(y-r.width)<=2||0===l[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(y-r.width)<=2||!l[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(y-r.width)<=2||!l[c.$isThereMoreWidth]())&&r.height>2:Math.round(g-r.height)<=2);case"position":return!!t[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||(""===t.h||Math.round(g+d-r.height)<=2||g+d>t[c.$getTemplateRoot]()[c.$extra].currentContentArea.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}};o(464);o(290);o(377);o(143);o(296);var c=o(461),l=o(474);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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)=>{o(56);o(104);o(113);o(137);o(175);o(177);o(293);o(114);o(123);o(129);o(183);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 y=t[c.$getSubformParent]();d="position"===y.layout&&""!==y.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,y=t.border[c.$extra],g=y.widths,v=y.insets,m=v[0],_=v[3],w=v[0]+v[2],k=v[1]+v[3];switch(t.border.hand){case"even":m-=g[0]/2;_-=g[3]/2;h="calc(100% + ".concat((g[1]+g[3])/2-k,"px)");d="calc(100% + ".concat((g[0]+g[2])/2-w,"px)");break;case"left":m-=g[0];_-=g[3];h="calc(100% + ".concat(g[1]+g[3]-k,"px)");d="calc(100% + ".concat(g[0]+g[2]-w,"px)");break;case"right":h=k?"calc(100% - ".concat(k,"px)"):"100%";d=w?"calc(100% - ".concat(w,"px)"):"100%"}var S=["xfaBorder"];isPrintOnly(t.border)&&S.push("xfaPrintOnly");for(var C={name:"div",attributes:{class:S,style:{top:"".concat(m,"px"),left:"".concat(_,"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,R=["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"];E<R.length;E++){var M=R[E];if(void 0!==l[M]){u.attributes.style[M]=l[M];delete l[M]}}u.attributes.style.position="absolute"===l.position?"absolute":"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,o=t[c.$getSubformParent]();if(null!==(r=o.layout)&&void 0!==r&&r.includes("row")){var l,u=o[c.$extra],h=t.colSpan;l=-1===h?u.columnWidths.slice(u.currentColumn).reduce((function(t,r){return t+r}),0):u.columnWidths.slice(u.currentColumn,u.currentColumn+h).reduce((function(t,r){return t+r}),0);isNaN(l)||(t.w=l)}o.layout&&"position"!==o.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 y=null,g=null;if(t.para){g=Object.create(null);y=""===t.para.lineHeight?null:t.para.lineHeight;g.top=""===t.para.spaceAbove?0:t.para.spaceAbove;g.bottom=""===t.para.spaceBelow?0:t.para.spaceBelow;g.left=""===t.para.marginLeft?0:t.para.marginLeft;g.right=""===t.para.marginRight?0:t.para.marginRight}var v=t.font;if(!v)for(var m=t[c.$getTemplateRoot](),_=t[c.$getParent]();_&&_!==m;){if(_.font){v=_.font;break}_=_[c.$getParent]()}var w=(t.w||r.width)-h,k=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],v,g,y,k,w);l=S.width;o=S.height;u=S.isBroken}else{var C=t.value[c.$text]();if(C){var x=layoutText(C,v,g,y,k,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 y=d.regular.cssFontInfo.fontFamily;y!==l&&(c.fontFamily='"'.concat(y,'"'));var g=getCurrentPara(r);if(g&&""!==g.lineHeight)return;if(c.lineHeight)return;var v=(0,h.selectFont)(t,d);v&&(c.lineHeight=Math.max(1.2,v.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){var l;if(null!==(l=o.attributes.class)&&void 0!==l&&l.includes("xfaRich")){if(r){""===t.h&&(r.height="auto");""===t.w&&(r.width="auto")}var u=getCurrentPara(t);if(u){var h=o.attributes.style;h.display="flex";h.flexDirection="column";switch(u.vAlign){case"top":h.justifyContent="start";break;case"bottom":h.justifyContent="end";break;case"middle":h.justifyContent="center"}for(var d=u[c.$toStyle](),y=0,g=Object.entries(d);y<g.length;y++){var v=(w=g[y],k=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(w)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(w,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)}(w,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.")}()),m=v[0],_=v[1];m in h||(h[m]=_)}}}var w,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,v=u;d<v.length;d++){var m=v[d],_=t[m];if(null!==_)if(g.hasOwnProperty(m))g[m](t,r);else if(_ instanceof y.XFAObject){var w=_[c.$toStyle]();w?Object.assign(r,w):(0,l.warn)("(DEBUG) - XFA - style for ".concat(m," not implemented yet"))}}return r};o(105);o(329);o(330);o(377);o(143);o(296);o(362);o(290);o(363);o(364);o(353);o(376);var c=o(461),l=o(304),u=o(475),h=o(476),d=o(477),y=o(478);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,l=t[c.$getSubformParent](),u=t.w,h=t.h;if(null!==(o=l.layout)&&void 0!==o&&o.includes("row")){var d,y=l[c.$extra],g=t.colSpan;if(-1===g){d=y.columnWidths.slice(y.currentColumn).reduce((function(t,r){return t+r}),0);y.currentColumn=0}else{d=y.columnWidths.slice(y.currentColumn,y.currentColumn+g).reduce((function(t,r){return t+r}),0);y.currentColumn=(y.currentColumn+t.colSpan)%y.columnWidths.length}isNaN(d)||(u=t.w=d)}r.width=""!==u?measureToString(u):"auto";r.height=""!==h?measureToString(h):"auto"},position:function position(t,r){var o=t[c.$getSubformParent]();if(null==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 y=new d.TextMeasure(r,o,l,u);"string"==typeof t?y.addString(t):t[c.$pushGlyphs](y);return y.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.at(-1):null}},(t,r,o)=>{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)}o(56);o(104);o(113);o(137);o(175);o(177);o(293);o(114);o(129);o(183);o(2);o(54);o(105);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=_slicedToArray(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],3),o=r[0],c=r[1],l=r[2];if(!t)return{r:o,g:c,b:l};var u=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(u.length<3)return{r:o,g:c,b:l};var h=_slicedToArray(u,3);o=h[0];c=h[1];l=h[2];return{r:o,g:c,b:l}};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,-1);return t};o(309);o(296);o(374);o(329);o(330);o(123);o(313);o(182);o(143);o(180);o(349);o(290);var c=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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],y=parseFloat(h);if(isNaN(y))return getMeasurement(r);if(0===y)return 0;var g=l[d];return g?g(y):y}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){return new HTMLResult(!0,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}]);return HTMLResult}();r.HTMLResult=h},(t,r,o)=>{o(296);o(293);o(114);o(129);o(113);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,y=o.lineHeight?Math.max(r?0:1.2,o.lineHeight):1.2,g=void 0===o.lineGap?.2:o.lineGap;return{lineHeight:y*d,lineGap:g*d,lineNoGap:Math.max(1,y-g)*d}};r.selectFont=selectFont;o(137);o(335);o(143);o(175);o(177);o(259);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(329);o(330);o(464);o(123);o(337);o(339);o(309);o(290);o(2);o(54);o(56);o(104);o(183);o(105);o(376);var c=o(461),l=o(475),u=o(304);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 y,g=this.fonts.get("PdfJS-Fallback-PdfJS-XFA"),v=_createForOfIteratorHelper(o);try{for(v.s();!(y=v.n()).done;){var m=y.value;this.fonts.set(m,g)}}catch(t){v.e(t)}finally{v.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){var h,d,y;(t.name.includes("Bold")||null!==(h=t.psName)&&void 0!==h&&h.includes("Bold"))&&(l="bold");(t.name.includes("Italic")||t.name.endsWith("It")||null!==(d=t.psName)&&void 0!==d&&d.includes("Italic")||null!==(y=t.psName)&&void 0!==y&&y.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.replaceAll(c,"");if(o=this.fonts.get(l)){this.cache.set(t,o);return o}l=l.toLowerCase();var h,d=[],y=_createForOfIteratorHelper(this.fonts.entries());try{for(y.s();!(h=y.n()).done;){var g=_slicedToArray(h.value,2),v=g[0],m=g[1];v.replaceAll(c,"").toLowerCase().startsWith(l)&&d.push(m)}}catch(t){y.e(t)}finally{y.f()}if(0===d.length){var _,w=_createForOfIteratorHelper(this.fonts.entries());try{for(w.s();!(_=w.n()).done;){var k,S=_slicedToArray(_.value,2)[1];null!==(k=S.regular.name)&&void 0!==k&&k.replaceAll(c,"").toLowerCase().startsWith(l)&&d.push(S)}}catch(t){w.e(t)}finally{w.f()}}if(0===d.length){l=l.replaceAll(/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.replaceAll(c,"").toLowerCase().startsWith(l)&&d.push(E)}}catch(t){x.e(t)}finally{x.f()}}if(0===d.length){var R,M=_createForOfIteratorHelper(this.fonts.values());try{for(M.s();!(R=M.n()).done;){var j,L=R.value;null!==(j=L.regular.name)&&void 0!==j&&j.replaceAll(c,"").toLowerCase().startsWith(l)&&d.push(L)}}catch(t){M.e(t)}finally{M.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)=>{o(113);o(137);o(175);o(177);o(296);o(293);o(114);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.TextMeasure=void 0;o(376);o(143);o(2);o(54);o(56);o(104);o(183);o(105);o(363);o(364);o(290);o(123);o(349);var c=o(476);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 y=_slicedToArray(this.defaultFont(l),2);this.pdfFont=y[0];this.xfaFont=y[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(null!=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.at(-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 y=0,g=["top","bottom","left","right"];y<g.length;y++){var v=g[y];isNaN(r[v])&&(r[v]=c.paraMargin[v])}var m=new l(t,r,o||c.lineHeight,this.fontFinder);m.pdfFont||(m.pdfFont=c.pdfFont);this.stack.push(m)}},{key:"popFont",value:function popFont(){this.stack.pop()}},{key:"topFont",value:function topFont(){return this.stack.at(-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,y=h-(void 0===u.lineGap?.2:u.lineGap),g=Math.max(1,y)*o,v=o/1e3,m=u.defaultWidth||u.charsToGlyphs(" ")[0].width,_=_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(_.s();!(c=_.n()).done;){var w,k=c.value,S=u.encodeString(k).join(""),C=_createForOfIteratorHelper(u.charsToGlyphs(S));try{for(C.s();!(w=C.n()).done;){var x=w.value,O=x.width||m;this.glyphs.push([O*v+l,d,g,x.unicode,!1])}}catch(t){C.e(t)}finally{C.f()}this.glyphs.push([0,0,0,"\n",!0])}}catch(t){_.e(t)}finally{_.f()}this.glyphs.pop()}else{var T,E=_createForOfIteratorHelper(t.split(/[\u2029\n]/));try{for(E.s();!(T=E.n()).done;){var R,M=_createForOfIteratorHelper(T.value.split(""));try{for(M.s();!(R=M.n()).done;){var j=R.value;this.glyphs.push([o,1.2*o,o,j,!1])}}catch(t){M.e(t)}finally{M.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,y=!0,g=0,v=this.glyphs.length;g<v;g++){var m=_slicedToArray(this.glyphs[g],5),_=m[0],w=m[1],k=m[2],S=" "===m[3],C=y?k:w;if(m[4]){c=Math.max(c,u);u=0;l+=h;h=C;r=-1;o=0;y=!1}else if(S)if(u+_>t){c=Math.max(c,u);u=0;l+=h;h=C;r=-1;o=0;d=!0;y=!1}else{h=Math.max(C,h);o=u;u+=_;r=g}else if(u+_>t){l+=h;h=C;if(-1!==r){g=r;c=Math.max(c,o);u=0;r=-1;o=0}else{c=Math.max(c,u);u=_}d=!0;y=!1}else{u+=_;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)=>{o(2);o(54);o(183);o(105);o(123);o(129);o(113);o(130);o(131);o(132);o(133);o(300);o(145);o(305);o(306);o(368);o(370);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=void 0;o(56);o(104);o(143);o(302);o(290);o(389);o(361);o(180);o(134);o(137);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(465);o(182);o(327);o(309);o(464);o(296);o(114);o(362);o(374);o(293);o(335);o(353);o(329);o(330);var c=o(461),l=o(475),u=o(304),h=o(343),d=o(472),y=o(479);function _get(){_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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?Object.setPrototypeOf.bind():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 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)}(this,o)}}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.bind():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 _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},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 _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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);Object.defineProperty(t,"prototype",{writable:!1});return t}var g=Symbol(),v=Symbol(),m=Symbol(),_=Symbol("_children"),w=Symbol(),k=Symbol(),S=Symbol(),C=Symbol(),x=Symbol(),O=Symbol(),T=Symbol(),E=Symbol(),R=Symbol(),M=Symbol("parent"),j=Symbol(),L=Symbol(),D=Symbol(),N=0,U=d.NamespaceIds.datasets.id,G=function(){function XFAObject(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,XFAObject);this[c.$namespaceId]=t;this[c.$nodeName]=r;this[T]=o;this[M]=null;this[_]=[];this[c.$uid]="".concat(r).concat(N++);this[c.$globalData]=null}_createClass(XFAObject,[{key:"isXFAObject",get:function get(){return!0}},{key:"isXFAObjectArray",get:function get(){return!1}},{key:"createNodes",value:function createNodes(t){var r,o=this,l=null,u=_createForOfIteratorHelper(t);try{for(u.s();!(r=u.n()).done;){for(var h=r.value,d=h.name,y=h.index,g=0,v=isFinite(y)?y:0;g<=v;g++){var m=o[c.$namespaceId]===U?-1:o[c.$namespaceId];l=new X(m,d);o[c.$appendChild](l)}o=l}}catch(t){u.e(t)}finally{u.f()}return l}},{key:c.$onChild,value:function value(t){if(!this[T]||!this[c.$onChildCheck](t))return!1;var r=t[c.$nodeName],o=this[r];if(!(o instanceof $)){null!==o&&this[c.$removeChild](o);this[r]=t;this[c.$appendChild](t);return!0}if(o.push(t)){this[c.$appendChild](t);return!0}var l="";this.id?l=" (id: ".concat(this.id,")"):this.name&&(l=" (name: ".concat(this.name," ").concat(this.h.value,")"));(0,u.warn)('XFA - node "'.concat(this[c.$nodeName],'"').concat(l,' has already enough "').concat(r,'"!'));return!1}},{key:c.$onChildCheck,value:function value(t){return this.hasOwnProperty(t[c.$nodeName])&&t[c.$namespaceId]===this[c.$namespaceId]}},{key:c.$isNsAgnostic,value:function value(){return!1}},{key:c.$acceptWhitespace,value:function value(){return!1}},{key:c.$isCDATAXml,value:function value(){return!1}},{key:c.$isBindable,value:function value(){return!1}},{key:c.$popPara,value:function value(){this.para&&this[c.$getTemplateRoot]()[c.$extra].paraStack.pop()}},{key:c.$pushPara,value:function value(){this[c.$getTemplateRoot]()[c.$extra].paraStack.push(this.para)}},{key:c.$setId,value:function value(t){this.id&&this[c.$namespaceId]===d.NamespaceIds.template.id&&t.set(this.id,this)}},{key:c.$getTemplateRoot,value:function value(){return this[c.$globalData].template}},{key:c.$isSplittable,value:function value(){return!1}},{key:c.$isThereMoreWidth,value:function value(){return!1}},{key:c.$appendChild,value:function value(t){t[M]=this;this[_].push(t);!t[c.$globalData]&&this[c.$globalData]&&(t[c.$globalData]=this[c.$globalData])}},{key:c.$removeChild,value:function value(t){var r=this[_].indexOf(t);this[_].splice(r,1)}},{key:c.$hasSettableValue,value:function value(){return this.hasOwnProperty("value")}},{key:c.$setValue,value:function value(t){}},{key:c.$onText,value:function value(t){}},{key:c.$finalize,value:function value(){}},{key:c.$clean,value:function value(t){delete this[T];if(this[c.$cleanup]){t.clean(this[c.$cleanup]);delete this[c.$cleanup]}}},{key:c.$indexOf,value:function value(t){return this[_].indexOf(t)}},{key:c.$insertAt,value:function value(t,r){r[M]=this;this[_].splice(t,0,r);!r[c.$globalData]&&this[c.$globalData]&&(r[c.$globalData]=this[c.$globalData])}},{key:c.$isTransparent,value:function value(){return!this.name}},{key:c.$lastAttribute,value:function value(){return""}},{key:c.$text,value:function value(){return 0===this[_].length?this[c.$content]:this[_].map((function(t){return t[c.$text]()})).join("")}},{key:m,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 $)break;o.add(l)}}catch(t){c.e(t)}finally{c.f()}}return(0,u.shadow)(this,m,t._attributes)}},{key:c.$isDescendent,value:function value(t){for(var r=this;r;){if(r===t)return!0;r=r[c.$getParent]()}return!1}},{key:c.$getParent,value:function value(){return this[M]}},{key:c.$getSubformParent,value:function value(){return this[c.$getParent]()}},{key:c.$getChildren,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[t]:this[_]}},{key:c.$dump,value:function value(){var t=Object.create(null);this[c.$content]&&(t.$content=this[c.$content]);var r,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var l=r.value,value=this[l];null!==value&&(value instanceof XFAObject?t[l]=value[c.$dump]():value instanceof $?value.isEmpty()||(t[l]=value.dump()):t[l]=value)}}catch(t){o.e(t)}finally{o.f()}return t}},{key:c.$toStyle,value:function value(){return null}},{key:c.$toHTML,value:function value(){return l.HTMLResult.EMPTY}},{key:c.$getContainedChildren,value:_regeneratorRuntime().mark((function value(){var t,r,o;return _regeneratorRuntime().wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:t=_createForOfIteratorHelper(this[c.$getChildren]());l.prev=1;t.s();case 3:if((r=t.n()).done){l.next=9;break}o=r.value;l.next=7;return o;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11;l.t0=l.catch(1);t.e(l.t0);case 14:l.prev=14;t.f();return l.finish(14);case 17:case"end":return l.stop()}}),value,this,[[1,11,14,17]])}))},{key:C,value:_regeneratorRuntime().mark((function value(t,r){var o,l,u,h,d;return _regeneratorRuntime().wrap((function value$(y){for(;;)switch(y.prev=y.next){case 0:o=_createForOfIteratorHelper(this[c.$getContainedChildren]());y.prev=1;o.s();case 3:if((l=o.n()).done){y.next=13;break}u=l.value;if(t&&r!==t.has(u[c.$nodeName])){y.next=11;break}h=this[c.$getAvailableSpace]();(d=u[c.$toHTML](h)).success||(this[c.$extra].failingNode=u);y.next=11;return d;case 11:y.next=3;break;case 13:y.next=18;break;case 15:y.prev=15;y.t0=y.catch(1);o.e(y.t0);case 18:y.prev=18;o.f();return y.finish(18);case 21:case"end":return y.stop()}}),value,this,[[1,15,18,21]])}))},{key:c.$flushHTML,value:function value(){return null}},{key:c.$addHTML,value:function value(t,r){this[c.$extra].children.push(t)}},{key:c.$getAvailableSpace,value:function value(){}},{key:c.$childrenToHTML,value:function value(t){var r=t.filter,o=void 0===r?null:r,u=t.include,h=void 0===u||u;if(this[c.$extra].generator){var d=this[c.$getAvailableSpace](),y=this[c.$extra].failingNode[c.$toHTML](d);if(!y.success)return y;y.html&&this[c.$addHTML](y.html,y.bbox);delete this[c.$extra].failingNode}else this[c.$extra].generator=this[C](o,h);for(;;){var g=this[c.$extra].generator.next();if(g.done)break;var v=g.value;if(!v.success)return v;v.html&&this[c.$addHTML](v.html,v.bbox)}this[c.$extra].generator=null;return l.HTMLResult.EMPTY}},{key:c.$setSetAttributes,value:function value(t){this[L]=new Set(Object.keys(t))}},{key:O,value:function value(t){var r=this[m],o=this[L];return _toConsumableArray(t).filter((function(t){return r.has(t)&&!o.has(t)}))}},{key:c.$resolvePrototypes,value:function value(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,c=_createForOfIteratorHelper(this[_]);try{for(c.s();!(r=c.n()).done;){r.value[j](t,o)}}catch(t){c.e(t)}finally{c.f()}}},{key:j,value:function value(t,r){var o=this[x](t,r);o?this[g](o,t,r):this[c.$resolvePrototypes](t,r)}},{key:x,value:function value(t,r){var o=this.use,l=this.usehref;if(!o&&!l)return null;var h=null,d=null,v=null,m=o;if(l){m=l;l.startsWith("#som(")&&l.endsWith(")")?d=l.slice(5,-1):l.startsWith(".#som(")&&l.endsWith(")")?d=l.slice(6,-1):l.startsWith("#")?v=l.slice(1):l.startsWith(".#")&&(v=l.slice(2))}else o.startsWith("#")?v=o.slice(1):d=o;this.use=this.usehref="";v?h=t.get(v):(h=(0,y.searchNode)(t.get(c.$root),this,d,!0,!1))&&(h=h[0]);if(!h){(0,u.warn)("XFA - Invalid prototype reference: ".concat(m,"."));return null}if(h[c.$nodeName]!==this[c.$nodeName]){(0,u.warn)("XFA - Incompatible prototype: ".concat(h[c.$nodeName]," !== ").concat(this[c.$nodeName],"."));return null}if(r.has(h)){(0,u.warn)("XFA - Cycle detected in prototypes use.");return null}r.add(h);var _=h[x](t,r);_&&h[g](_,t,r);h[c.$resolvePrototypes](t,r);r.delete(h);return h}},{key:g,value:function value(t,r,o){if(o.has(t))(0,u.warn)("XFA - Cycle detected in prototypes use.");else{!this[c.$content]&&t[c.$content]&&(this[c.$content]=t[c.$content]);new Set(o).add(t);var l,h=_createForOfIteratorHelper(this[O](t[L]));try{for(h.s();!(l=h.n()).done;){var d=l.value;this[d]=t[d];this[L]&&this[L].add(d)}}catch(t){h.e(t)}finally{h.f()}var y,v=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(v.s();!(y=v.n()).done;){var w=y.value;if(!this[m].has(w)){var k=this[w],S=t[w];if(k instanceof $){var C,x=_createForOfIteratorHelper(k[_]);try{for(x.s();!(C=x.n()).done;){C.value[j](r,o)}}catch(t){x.e(t)}finally{x.f()}for(var T=k[_].length,E=S[_].length;T<E;T++){var R=t[_][T][c.$clone]();if(!k.push(R))break;R[M]=this;this[_].push(R);R[j](r,o)}}else if(null===k){if(null!==S){var D=S[c.$clone]();D[M]=this;this[w]=D;this[_].push(D);D[j](r,o)}}else{k[c.$resolvePrototypes](r,o);S&&k[g](S,r,o)}}}}catch(t){v.e(t)}finally{v.f()}}}},{key:c.$clone,value:function value(){var t,r=Object.create(Object.getPrototypeOf(this)),o=_createForOfIteratorHelper(Object.getOwnPropertySymbols(this));try{for(o.s();!(t=o.n()).done;){var l=t.value;try{r[l]=this[l]}catch(t){(0,u.shadow)(r,l,this[l])}}}catch(t){o.e(t)}finally{o.f()}r[c.$uid]="".concat(r[c.$nodeName]).concat(N++);r[_]=[];var h,d=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(d.s();!(h=d.n()).done;){var y=h.value;if(this[m].has(y))r[y]=XFAObject[w](this[y]);else{var g=this[y];r[y]=g instanceof $?new $(g[E]):null}}}catch(t){d.e(t)}finally{d.f()}var v,k=_createForOfIteratorHelper(this[_]);try{for(k.s();!(v=k.n()).done;){var S=v.value,C=S[c.$nodeName],x=S[c.$clone]();r[_].push(x);x[M]=r;null===r[C]?r[C]=x:r[C][_].push(x)}}catch(t){k.e(t)}finally{k.f()}return r}},{key:c.$getChildren,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[_].filter((function(r){return r[c.$nodeName]===t})):this[_]}},{key:c.$getChildrenByClass,value:function value(t){return this[t]}},{key:c.$getChildrenByName,value:function value(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[c.$getChildrenByNameIt](t,r,o))}},{key:c.$getChildrenByNameIt,value:function value(t,r){var o=this,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return _regeneratorRuntime().mark((function _callee(){var u,h,d;return _regeneratorRuntime().wrap((function _callee$(y){for(;;)switch(y.prev=y.next){case 0:if("parent"!==t){y.next=4;break}y.next=3;return o[M];case 3:return y.abrupt("return");case 4:u=_createForOfIteratorHelper(o[_]);y.prev=5;u.s();case 7:if((h=u.n()).done){y.next=19;break}if((d=h.value)[c.$nodeName]!==t){y.next=12;break}y.next=12;return d;case 12:if(d.name!==t){y.next=15;break}y.next=15;return d;case 15:if(!r&&!d[c.$isTransparent]()){y.next=17;break}return y.delegateYield(d[c.$getChildrenByNameIt](t,r,!1),"t0",17);case 17:y.next=7;break;case 19:y.next=24;break;case 21:y.prev=21;y.t1=y.catch(5);u.e(y.t1);case 24:y.prev=24;u.f();return y.finish(24);case 27:if(!l||!o[m].has(t)){y.next=30;break}y.next=30;return new H(o,t,o[t]);case 30:case"end":return y.stop()}}),_callee,null,[[5,21,24,27]])}))()}}],[{key:w,value:function value(t){return Array.isArray(t)?t.map((function(t){return XFAObject[w](t)})):"object"===_typeof(t)&&null!==t?Object.assign({},t):t}}]);return XFAObject}();r.XFAObject=G;var $=function(){function XFAObjectArray(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;_classCallCheck(this,XFAObjectArray);this[E]=t;this[_]=[]}_createClass(XFAObjectArray,[{key:"isXFAObject",get:function get(){return!1}},{key:"isXFAObjectArray",get:function get(){return!0}},{key:"push",value:function push(t){if(this[_].length<=this[E]){this[_].push(t);return!0}(0,u.warn)('XFA - node "'.concat(t[c.$nodeName],'" accepts no more than ').concat(this[E]," children"));return!1}},{key:"isEmpty",value:function isEmpty(){return 0===this[_].length}},{key:"dump",value:function dump(){return 1===this[_].length?this[_][0][c.$dump]():this[_].map((function(t){return t[c.$dump]()}))}},{key:c.$clone,value:function value(){var t=new XFAObjectArray(this[E]);t[_]=this[_].map((function(t){return t[c.$clone]()}));return t}},{key:"children",get:function get(){return this[_]}},{key:"clear",value:function clear(){this[_].length=0}}]);return XFAObjectArray}();r.XFAObjectArray=$;var H=function(){function XFAAttribute(t,r,o){_classCallCheck(this,XFAAttribute);this[M]=t;this[c.$nodeName]=r;this[c.$content]=o;this[c.$consumed]=!1;this[c.$uid]="attribute".concat(N++)}_createClass(XFAAttribute,[{key:c.$getParent,value:function value(){return this[M]}},{key:c.$isDataValue,value:function value(){return!0}},{key:c.$getDataValue,value:function value(){return this[c.$content].trim()}},{key:c.$setValue,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[c.$content]=t.toString()}))},{key:c.$text,value:function value(){return this[c.$content]}},{key:c.$isDescendent,value:function value(t){return this[M]===t||this[M][c.$isDescendent](t)}}]);return XFAAttribute}();r.XFAAttribute=H;var X=function(t){_inherits(XmlObject,t);var r=_createSuper(XmlObject);function XmlObject(t,o){var l,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,XmlObject);(l=r.call(this,t,o))[c.$content]="";l[k]=null;if("#text"!==o){var h=new Map;l[v]=h;for(var d=0,y=Object.entries(u);d<y.length;d++){var g=_slicedToArray(y[d],2),m=g[0],_=g[1];h.set(m,new H(_assertThisInitialized(l),m,_))}if(u.hasOwnProperty(c.$nsAttributes)){var w=u[c.$nsAttributes].xfa.dataNode;void 0!==w&&("dataGroup"===w?l[k]=!1:"dataValue"===w&&(l[k]=!0))}}l[c.$consumed]=!1;return l}_createClass(XmlObject,[{key:c.$toString,value:function value(t){var r=this[c.$nodeName];if("#text"!==r){var o=(0,u.utf8StringToString)(r),l=this[c.$namespaceId]===U?"xfa:":"";t.push("<".concat(l).concat(o));var d,y=_createForOfIteratorHelper(this[v].entries());try{for(y.s();!(d=y.n()).done;){var g=_slicedToArray(d.value,2),m=g[0],w=g[1],S=(0,u.utf8StringToString)(m);t.push(" ".concat(S,'="').concat((0,h.encodeToXmlString)(w[c.$content]),'"'))}}catch(t){y.e(t)}finally{y.f()}null!==this[k]&&(this[k]?t.push(' xfa:dataNode="dataValue"'):t.push(' xfa:dataNode="dataGroup"'));if(this[c.$content]||0!==this[_].length){t.push(">");if(this[c.$content])"string"==typeof this[c.$content]?t.push((0,h.encodeToXmlString)(this[c.$content])):this[c.$content][c.$toString](t);else{var C,x=_createForOfIteratorHelper(this[_]);try{for(x.s();!(C=x.n()).done;){C.value[c.$toString](t)}}catch(t){x.e(t)}finally{x.f()}}t.push("</".concat(l).concat(o,">"))}else t.push("/>")}else t.push((0,h.encodeToXmlString)(this[c.$content]))}},{key:c.$onChild,value:function value(t){if(this[c.$content]){var r=new XmlObject(this[c.$namespaceId],"#text");this[c.$appendChild](r);r[c.$content]=this[c.$content];this[c.$content]=""}this[c.$appendChild](t);return!0}},{key:c.$onText,value:function value(t){this[c.$content]+=t}},{key:c.$finalize,value:function value(){if(this[c.$content]&&this[_].length>0){var t=new XmlObject(this[c.$namespaceId],"#text");this[c.$appendChild](t);t[c.$content]=this[c.$content];delete this[c.$content]}}},{key:c.$toHTML,value:function value(){return"#text"===this[c.$nodeName]?l.HTMLResult.success({name:"#text",value:this[c.$content]}):l.HTMLResult.EMPTY}},{key:c.$getChildren,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[_].filter((function(r){return r[c.$nodeName]===t})):this[_]}},{key:c.$getAttributes,value:function value(){return this[v]}},{key:c.$getChildrenByClass,value:function value(t){var value=this[v].get(t);return void 0!==value?value:this[c.$getChildren](t)}},{key:c.$getChildrenByNameIt,value:_regeneratorRuntime().mark((function value(t,r){var value,o,l,u;return _regeneratorRuntime().wrap((function value$(h){for(;;)switch(h.prev=h.next){case 0:value=this[v].get(t);if(!value){h.next=4;break}h.next=4;return value;case 4:o=_createForOfIteratorHelper(this[_]);h.prev=5;o.s();case 7:if((l=o.n()).done){h.next=16;break}if((u=l.value)[c.$nodeName]!==t){h.next=12;break}h.next=12;return u;case 12:if(!r){h.next=14;break}return h.delegateYield(u[c.$getChildrenByNameIt](t,r),"t0",14);case 14:h.next=7;break;case 16:h.next=21;break;case 18:h.prev=18;h.t1=h.catch(5);o.e(h.t1);case 21:h.prev=21;o.f();return h.finish(21);case 24:case"end":return h.stop()}}),value,this,[[5,18,21,24]])}))},{key:c.$getAttributeIt,value:_regeneratorRuntime().mark((function value(t,r){var value,o,l,u;return _regeneratorRuntime().wrap((function value$(h){for(;;)switch(h.prev=h.next){case 0:value=this[v].get(t);if(!value||r&&value[c.$consumed]){h.next=4;break}h.next=4;return value;case 4:o=_createForOfIteratorHelper(this[_]);h.prev=5;o.s();case 7:if((l=o.n()).done){h.next=12;break}u=l.value;return h.delegateYield(u[c.$getAttributeIt](t,r),"t0",10);case 10:h.next=7;break;case 12:h.next=17;break;case 14:h.prev=14;h.t1=h.catch(5);o.e(h.t1);case 17:h.prev=17;o.f();return h.finish(17);case 20:case"end":return h.stop()}}),value,this,[[5,14,17,20]])}))},{key:c.$getRealChildrenByNameIt,value:_regeneratorRuntime().mark((function value(t,r,o){var l,u,h;return _regeneratorRuntime().wrap((function value$(d){for(;;)switch(d.prev=d.next){case 0:l=_createForOfIteratorHelper(this[_]);d.prev=1;l.s();case 3:if((u=l.n()).done){d.next=12;break}if((h=u.value)[c.$nodeName]!==t||o&&h[c.$consumed]){d.next=8;break}d.next=8;return h;case 8:if(!r){d.next=10;break}return d.delegateYield(h[c.$getRealChildrenByNameIt](t,r,o),"t0",10);case 10:d.next=3;break;case 12:d.next=17;break;case 14:d.prev=14;d.t1=d.catch(1);l.e(d.t1);case 17:d.prev=17;l.f();return d.finish(17);case 20:case"end":return d.stop()}}),value,this,[[1,14,17,20]])}))},{key:c.$isDataValue,value:function value(){return null===this[k]?0===this[_].length||this[_][0][c.$namespaceId]===d.NamespaceIds.xhtml.id:this[k]}},{key:c.$getDataValue,value:function value(){return null===this[k]?0===this[_].length?this[c.$content].trim():this[_][0][c.$namespaceId]===d.NamespaceIds.xhtml.id?this[_][0][c.$text]().trim():null:this[c.$content].trim()}},{key:c.$setValue,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[c.$content]=t.toString()}))},{key:c.$dump,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=Object.create(null);t&&(r.$ns=this[c.$namespaceId]);this[c.$content]&&(r.$content=this[c.$content]);r.$name=this[c.$nodeName];r.children=[];var o,l=_createForOfIteratorHelper(this[_]);try{for(l.s();!(o=l.n()).done;){var u=o.value;r.children.push(u[c.$dump](t))}}catch(t){l.e(t)}finally{l.f()}r.attributes=Object.create(null);var h,d=_createForOfIteratorHelper(this[v]);try{for(d.s();!(h=d.n()).done;){var y=_slicedToArray(h.value,2),g=y[0],m=y[1];r.attributes[g]=m[c.$content]}}catch(t){d.e(t)}finally{d.f()}return r}}]);return XmlObject}(G);r.XmlObject=X;var q=function(t){_inherits(ContentObject,t);var r=_createSuper(ContentObject);function ContentObject(t,o){var l;_classCallCheck(this,ContentObject);(l=r.call(this,t,o))[c.$content]="";return l}_createClass(ContentObject,[{key:c.$onText,value:function value(t){this[c.$content]+=t}},{key:c.$finalize,value:function value(){}}]);return ContentObject}(G);r.ContentObject=q;var z=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))[R]=c;return l}_createClass(OptionObject,[{key:c.$finalize,value:function value(){var t=this;this[c.$content]=(0,l.getKeyword)({data:this[c.$content],defaultValue:this[R][0],validate:function validate(r){return t[R].includes(r)}})}},{key:c.$clean,value:function value(t){_get(_getPrototypeOf(OptionObject.prototype),c.$clean,this).call(this,t);delete this[R]}}]);return OptionObject}(q);r.OptionObject=z;var W=function(t){_inherits(StringObject,t);var r=_createSuper(StringObject);function StringObject(){_classCallCheck(this,StringObject);return r.apply(this,arguments)}_createClass(StringObject,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim()}}]);return StringObject}(q);r.StringObject=W;var V=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))[S]=c;u[D]=l;return u}_createClass(IntegerObject,[{key:c.$finalize,value:function value(){this[c.$content]=(0,l.getInteger)({data:this[c.$content],defaultValue:this[S],validate:this[D]})}},{key:c.$clean,value:function value(t){_get(_getPrototypeOf(IntegerObject.prototype),c.$clean,this).call(this,t);delete this[S];delete this[D]}}]);return IntegerObject}(q);r.IntegerObject=V;var K=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)}(V);r.Option01=K;var Y=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)}(V);r.Option10=Y},(t,r,o)=>{o(56);o(104);o(113);o(293);o(114);o(129);o(183);Object.defineProperty(r,"__esModule",{value:!0});r.createDataNode=function createDataNode(t,r,o){var u=parseExpression(o);if(!u)return null;if(u.some((function(t){return t.operator===d.dotDot})))return null;var h=y.get(u[0].name),g=0;if(h){t=h(t,r);g=1}else t=r||t;for(var v=u.length;g<v;g++){var m=u[g],_=m.name,w=m.operator,k=m.index;if(!isFinite(k)){u[g].index=0;return t.createNodes(u.slice(g))}var S=void 0;switch(w){case d.dot:S=t[c.$getChildrenByName](_,!1);break;case d.dotDot:S=t[c.$getChildrenByName](_,!0);break;case d.dotHash:S=(S=t[c.$getChildrenByClass](_)).isXFAObjectArray?S.children:[S]}if(0===S.length)return t.createNodes(u.slice(g));if(!(k<S.length)){u[g].index=k-S.length;return t.createNodes(u.slice(g))}var C=S[k];if(!C.isXFAObject){(0,l.warn)("XFA - Cannot create a node.");return null}t=C}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 v,m=y.get(h[0].name),_=0;if(m){v=!0;t=[m(t,r)];_=1}else{v=null===r;t=[r||t]}for(var w,k=function _loop(){var o,l=h[_],y=l.name,m=l.cacheName,w=l.operator,k=l.index,S=[],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();!(o=C.n()).done;){var x=o.value;if(x.isXFAObject){var O=void 0,T=void 0;if(u){if(!(T=g.get(x))){T=new Map;g.set(x,T)}O=T.get(m)}if(!O){switch(w){case d.dot:O=x[c.$getChildrenByName](y,!1);break;case d.dotDot:O=x[c.$getChildrenByName](y,!0);break;case d.dotHash:O=(O=x[c.$getChildrenByClass](y)).isXFAObjectArray?O.children:[O]}u&&T.set(m,O)}O.length>0&&S.push(O)}}}catch(t){C.e(t)}finally{C.f()}if(0===S.length&&!v&&0===_){var E=r[c.$getParent]();if(!(r=E))return{v:null};_=-1;t=[r];return 0}t=isFinite(k)?S.filter((function(t){return k<t.length})).map((function(t){return t[k]})):S.flat()},S=h.length;_<S;_++)if(0!==(w=k())&&w)return w.v;if(0===t.length)return null;return t};o(137);o(335);o(143);o(175);o(177);o(340);o(374);o(123);o(313);o(296);o(363);o(364);o(290);o(180);o(182);o(297);o(299);var c=o(461),l=o(304);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 u=/^[^.[]+/,h=/^[^\]]+/,d={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},y=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}]]),g=new WeakMap;function parseExpression(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=t.match(u);if(!c)return null;for(var y,g=_slicedToArray(c,1)[0],v=[{name:g,cacheName:"."+g,index:0,js:null,formCalc:null,operator:d.dot}],m=g.length;m<t.length;){var _=m;if("["!==t.charAt(m++)){var w=void 0;switch(t.charAt(m)){case".":if(!r)return null;m++;w=d.dotDot;break;case"#":m++;w=d.dotHash;break;case"[":if(o){(0,l.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}w=d.dotBracket;break;case"(":if(o){(0,l.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}w=d.dotParen;break;default:w=d.dot}if(!(c=t.slice(m).match(u)))break;m+=(g=_slicedToArray(c,1)[0]).length;v.push({name:g,cacheName:t.slice(_,m),operator:w,index:0,js:null,formCalc:null})}else{if(!(c=t.slice(m).match(h))){(0,l.warn)("XFA - Invalid index in SOM expression");return null}v.at(-1).index="*"===(y=(y=c[0]).trim())?1/0:parseInt(y,10)||0;m+=c[0].length+1}}return v}},(t,r,o)=>{o(113);o(175);o(296);o(293);o(114);o(123);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.DataHandler=void 0;o(363);o(364);o(137);o(143);o(177);o(290);o(2);o(54);o(56);o(104);o(183);o(105);var c=o(461);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 _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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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.at(-1),l=_slicedToArray(o,2),u=l[0],h=l[1];if(u+1!==h.length){var d=h[++o[0]],y=t.get(d[c.$uid]);if(y)d[c.$setValue](y);else{var g,v=_createForOfIteratorHelper(d[c.$getAttributes]().values());try{for(v.s();!(g=v.n()).done;){var m=g.value,_=t.get(m[c.$uid]);if(_){m[c.$setValue](_);break}}}catch(t){v.e(t)}finally{v.f()}}var w=d[c.$getChildren]();w.length>0&&r.push([-1,w])}else r.pop()}var k=['<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](k)}}catch(t){C.e(t)}finally{C.f()}}this.data[c.$toString](k);k.push("</xfa:datasets>");return k.join("")}}]);return DataHandler}();r.DataHandler=l},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(293);o(114);o(113);Object.defineProperty(r,"__esModule",{value:!0});r.XFAParser=void 0;o(137);o(143);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(335);o(123);o(337);o(296);o(129);o(374);o(309);o(290);o(389);o(134);var c=o(461),l=o(449),u=o(482),h=o(304);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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];!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAParser);(t=r.call(this))._builder=new u.Builder(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({}),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}}}}(t);try{for(y.s();!(o=y.n()).done;){var g=o.value,v=g.name,m=g.value;if("xmlns"===v)l?(0,h.warn)("XFA - multiple namespace definition in <".concat(r,">")):l=m;else if(v.startsWith("xmlns:")){var _=v.substring(6);u||(u=[]);u.push({prefix:_,value:m})}else{var w=v.indexOf(":");if(-1===w)d[v]=m;else{var k,S=d[c.$nsAttributes];S||(S=d[c.$nsAttributes]=Object.create(null));var C=[v.slice(0,w),v.slice(w+1)],x=C[0],O=C[1];((k=S)[x]||(k[x]=Object.create(null)))[O]=m}}}}catch(t){y.e(t)}finally{y.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],y=_slicedToArray(this._getNameAndPrefix(t,this._builder.isNsAgnostic()),2),g=y[0],v=y[1],m=this._builder.build({nsPrefix:v,name:g,attributes:d,namespace:u,prefixes:h});m[c.$globalData]=this._globalData;if(o){m[c.$finalize]();this._current[c.$onChild](m)&&m[c.$setId](this._ids);m[c.$clean](this._builder)}else{this._stack.push(this._current);this._current=m}}},{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)=>{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)}o(305);o(306);o(183);o(368);o(370);o(2);o(54);o(56);o(104);o(105);o(113);o(114);o(296);o(293);o(123);o(129);Object.defineProperty(r,"__esModule",{value:!0});r.Builder=void 0;o(134);o(137);o(335);o(143);o(175);o(177);o(180);o(351);o(290);o(353);o(363);o(364);o(300);var c=o(472),l=o(461),u=o(483),h=o(463),d=o(492),y=o(304),g=o(478);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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(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 _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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var v=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}(g.XFAObject),m=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}(g.XFAObject),_=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 v(t)}},{key:"build",value:function build(t){var r=t.nsPrefix,o=t.name,h=t.attributes,d=t.namespace,y=t.prefixes,g=null!==d;if(g){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(d)}y&&this._addNamespacePrefix(y);if(h.hasOwnProperty(l.$nsAttributes)){for(var v=u.NamespaceSetUp.datasets,_=h[l.$nsAttributes],w=null,k=0,S=Object.entries(_);k<S.length;k++){var C=_slicedToArray(S[k],2),x=C[0],O=C[1];if(this._getNamespaceToUse(x)===v){w={xfa:O};break}}w?h[l.$nsAttributes]=w:delete h[l.$nsAttributes]}var T=this._getNamespaceToUse(r),E=(null==T?void 0:T[c.$buildXFAObject](o,h))||new m;E[l.$isNsAgnostic]()&&this._nsAgnosticLevel++;(g||y||E[l.$isNsAgnostic]())&&(E[l.$cleanup]={hasNamespace:g,prefixes:y,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),y=h[0];if((0,h[1].check)(t)){if(r=u.NamespaceSetUp[y]){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((null==r?void 0:r.length)>0)return r.at(-1);(0,y.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=_},(t,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceSetUp=void 0;var c=o(484),l=o(485),u=o(486),h=o(487),d=o(488),y=o(489),g=o(463),v=o(490),m=o(491),_={config:c.ConfigNamespace,connection:l.ConnectionSetNamespace,datasets:u.DatasetsNamespace,localeSet:h.LocaleSetNamespace,signature:d.SignatureNamespace,stylesheet:y.StylesheetNamespace,template:g.TemplateNamespace,xdp:v.XdpNamespace,xhtml:m.XhtmlNamespace};r.NamespaceSetUp=_},(t,r,o)=>{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)}o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(114);o(113);Object.defineProperty(r,"__esModule",{value:!0});r.ConfigNamespace=void 0;o(134);o(374);o(137);o(335);o(143);o(175);o(177);o(180);o(182);o(123);o(349);o(329);o(330);o(313);o(290);o(296);o(309);o(129);o(346);o(347);o(348);o(293);var c=o(472),l=o(461),u=o(478),h=o(475),d=o(304);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var y=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,y,"acrobat",!0)).acrobat7=null;o.autoSave=null;o.common=null;o.validate=null;o.validateApprovalSignatures=null;o.submitUrl=new u.XFAObjectArray;return o}return _createClass(Acrobat)}(u.XFAObject),v=function(t){_inherits(Acrobat7,t);var r=_createSuper(Acrobat7);function Acrobat7(t){var o;_classCallCheck(this,Acrobat7);(o=r.call(this,y,"acrobat7",!0)).dynamicRender=null;return o}return _createClass(Acrobat7)}(u.XFAObject),m=function(t){_inherits(ADBE_JSConsole,t);var r=_createSuper(ADBE_JSConsole);function ADBE_JSConsole(t){_classCallCheck(this,ADBE_JSConsole);return r.call(this,y,"ADBE_JSConsole",["delegate","Enable","Disable"])}return _createClass(ADBE_JSConsole)}(u.OptionObject),_=function(t){_inherits(ADBE_JSDebugger,t);var r=_createSuper(ADBE_JSDebugger);function ADBE_JSDebugger(t){_classCallCheck(this,ADBE_JSDebugger);return r.call(this,y,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return _createClass(ADBE_JSDebugger)}(u.OptionObject),w=function(t){_inherits(AddSilentPrint,t);var r=_createSuper(AddSilentPrint);function AddSilentPrint(t){_classCallCheck(this,AddSilentPrint);return r.call(this,y,"addSilentPrint")}return _createClass(AddSilentPrint)}(u.Option01),k=function(t){_inherits(AddViewerPreferences,t);var r=_createSuper(AddViewerPreferences);function AddViewerPreferences(t){_classCallCheck(this,AddViewerPreferences);return r.call(this,y,"addViewerPreferences")}return _createClass(AddViewerPreferences)}(u.Option01),S=function(t){_inherits(AdjustData,t);var r=_createSuper(AdjustData);function AdjustData(t){_classCallCheck(this,AdjustData);return r.call(this,y,"adjustData")}return _createClass(AdjustData)}(u.Option10),C=function(t){_inherits(AdobeExtensionLevel,t);var r=_createSuper(AdobeExtensionLevel);function AdobeExtensionLevel(t){_classCallCheck(this,AdobeExtensionLevel);return r.call(this,y,"adobeExtensionLevel",0,(function(t){return t>=1&&t<=8}))}return _createClass(AdobeExtensionLevel)}(u.IntegerObject),x=function(t){_inherits(Agent,t);var r=_createSuper(Agent);function Agent(t){var o;_classCallCheck(this,Agent);(o=r.call(this,y,"agent",!0)).name=t.name?t.name.trim():"";o.common=new u.XFAObjectArray;return o}return _createClass(Agent)}(u.XFAObject),O=function(t){_inherits(AlwaysEmbed,t);var r=_createSuper(AlwaysEmbed);function AlwaysEmbed(t){_classCallCheck(this,AlwaysEmbed);return r.call(this,y,"alwaysEmbed")}return _createClass(AlwaysEmbed)}(u.ContentObject),T=function(t){_inherits(Amd,t);var r=_createSuper(Amd);function Amd(t){_classCallCheck(this,Amd);return r.call(this,y,"amd")}return _createClass(Amd)}(u.StringObject),E=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,y,"area")).level=(0,h.getInteger)({data:t.level,defaultValue:0,validate:function validate(t){return t>=1&&t<=3}});o.name=(0,h.getStringOption)(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]);return o}return _createClass(Area)}(u.XFAObject),R=function(t){_inherits(Attributes,t);var r=_createSuper(Attributes);function Attributes(t){_classCallCheck(this,Attributes);return r.call(this,y,"attributes",["preserve","delegate","ignore"])}return _createClass(Attributes)}(u.OptionObject),M=function(t){_inherits(AutoSave,t);var r=_createSuper(AutoSave);function AutoSave(t){_classCallCheck(this,AutoSave);return r.call(this,y,"autoSave",["disabled","enabled"])}return _createClass(AutoSave)}(u.OptionObject),j=function(t){_inherits(Base,t);var r=_createSuper(Base);function Base(t){_classCallCheck(this,Base);return r.call(this,y,"base")}return _createClass(Base)}(u.StringObject),L=function(t){_inherits(BatchOutput,t);var r=_createSuper(BatchOutput);function BatchOutput(t){var o;_classCallCheck(this,BatchOutput);(o=r.call(this,y,"batchOutput")).format=(0,h.getStringOption)(t.format,["none","concat","zip","zipCompress"]);return o}return _createClass(BatchOutput)}(u.XFAObject),D=function(t){_inherits(BehaviorOverride,t);var r=_createSuper(BehaviorOverride);function BehaviorOverride(t){_classCallCheck(this,BehaviorOverride);return r.call(this,y,"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}(u.ContentObject),N=function(t){_inherits(Cache,t);var r=_createSuper(Cache);function Cache(t){var o;_classCallCheck(this,Cache);(o=r.call(this,y,"cache",!0)).templateCache=null;return o}return _createClass(Cache)}(u.XFAObject),U=function(t){_inherits(Change,t);var r=_createSuper(Change);function Change(t){_classCallCheck(this,Change);return r.call(this,y,"change")}return _createClass(Change)}(u.Option01),G=function(t){_inherits(Common,t);var r=_createSuper(Common);function Common(t){var o;_classCallCheck(this,Common);(o=r.call(this,y,"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 u.XFAObjectArray;return o}return _createClass(Common)}(u.XFAObject),$=function(t){_inherits(Compress,t);var r=_createSuper(Compress);function Compress(t){var o;_classCallCheck(this,Compress);(o=r.call(this,y,"compress")).scope=(0,h.getStringOption)(t.scope,["imageOnly","document"]);return o}return _createClass(Compress)}(u.XFAObject),H=function(t){_inherits(CompressLogicalStructure,t);var r=_createSuper(CompressLogicalStructure);function CompressLogicalStructure(t){_classCallCheck(this,CompressLogicalStructure);return r.call(this,y,"compressLogicalStructure")}return _createClass(CompressLogicalStructure)}(u.Option01),X=function(t){_inherits(CompressObjectStream,t);var r=_createSuper(CompressObjectStream);function CompressObjectStream(t){_classCallCheck(this,CompressObjectStream);return r.call(this,y,"compressObjectStream")}return _createClass(CompressObjectStream)}(u.Option10),q=function(t){_inherits(Compression,t);var r=_createSuper(Compression);function Compression(t){var o;_classCallCheck(this,Compression);(o=r.call(this,y,"compression",!0)).compressLogicalStructure=null;o.compressObjectStream=null;o.level=null;o.type=null;return o}return _createClass(Compression)}(u.XFAObject),z=function(t){_inherits(Config,t);var r=_createSuper(Config);function Config(t){var o;_classCallCheck(this,Config);(o=r.call(this,y,"config",!0)).acrobat=null;o.present=null;o.trace=null;o.agent=new u.XFAObjectArray;return o}return _createClass(Config)}(u.XFAObject),W=function(t){_inherits(Conformance,t);var r=_createSuper(Conformance);function Conformance(t){_classCallCheck(this,Conformance);return r.call(this,y,"conformance",["A","B"])}return _createClass(Conformance)}(u.OptionObject),V=function(t){_inherits(ContentCopy,t);var r=_createSuper(ContentCopy);function ContentCopy(t){_classCallCheck(this,ContentCopy);return r.call(this,y,"contentCopy")}return _createClass(ContentCopy)}(u.Option01),K=function(t){_inherits(Copies,t);var r=_createSuper(Copies);function Copies(t){_classCallCheck(this,Copies);return r.call(this,y,"copies",1,(function(t){return t>=1}))}return _createClass(Copies)}(u.IntegerObject),Y=function(t){_inherits(Creator,t);var r=_createSuper(Creator);function Creator(t){_classCallCheck(this,Creator);return r.call(this,y,"creator")}return _createClass(Creator)}(u.StringObject),J=function(t){_inherits(CurrentPage,t);var r=_createSuper(CurrentPage);function CurrentPage(t){_classCallCheck(this,CurrentPage);return r.call(this,y,"currentPage",0,(function(t){return t>=0}))}return _createClass(CurrentPage)}(u.IntegerObject),Z=function(t){_inherits(Data,t);var r=_createSuper(Data);function Data(t){var o;_classCallCheck(this,Data);(o=r.call(this,y,"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 u.XFAObjectArray;o.transform=new u.XFAObjectArray;return o}return _createClass(Data)}(u.XFAObject),Q=function(t){_inherits(Debug,t);var r=_createSuper(Debug);function Debug(t){var o;_classCallCheck(this,Debug);(o=r.call(this,y,"debug",!0)).uri=null;return o}return _createClass(Debug)}(u.XFAObject),ee=function(t){_inherits(DefaultTypeface,t);var r=_createSuper(DefaultTypeface);function DefaultTypeface(t){var o;_classCallCheck(this,DefaultTypeface);(o=r.call(this,y,"defaultTypeface")).writingScript=(0,h.getStringOption)(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]);return o}return _createClass(DefaultTypeface)}(u.ContentObject),te=function(t){_inherits(Destination,t);var r=_createSuper(Destination);function Destination(t){_classCallCheck(this,Destination);return r.call(this,y,"destination",["pdf","pcl","ps","webClient","zpl"])}return _createClass(Destination)}(u.OptionObject),re=function(t){_inherits(DocumentAssembly,t);var r=_createSuper(DocumentAssembly);function DocumentAssembly(t){_classCallCheck(this,DocumentAssembly);return r.call(this,y,"documentAssembly")}return _createClass(DocumentAssembly)}(u.Option01),ne=function(t){_inherits(Driver,t);var r=_createSuper(Driver);function Driver(t){var o;_classCallCheck(this,Driver);(o=r.call(this,y,"driver",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return _createClass(Driver)}(u.XFAObject),ae=function(t){_inherits(DuplexOption,t);var r=_createSuper(DuplexOption);function DuplexOption(t){_classCallCheck(this,DuplexOption);return r.call(this,y,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return _createClass(DuplexOption)}(u.OptionObject),ie=function(t){_inherits(DynamicRender,t);var r=_createSuper(DynamicRender);function DynamicRender(t){_classCallCheck(this,DynamicRender);return r.call(this,y,"dynamicRender",["forbidden","required"])}return _createClass(DynamicRender)}(u.OptionObject),oe=function(t){_inherits(Embed,t);var r=_createSuper(Embed);function Embed(t){_classCallCheck(this,Embed);return r.call(this,y,"embed")}return _createClass(Embed)}(u.Option01),se=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){_classCallCheck(this,Encrypt);return r.call(this,y,"encrypt")}return _createClass(Encrypt)}(u.Option01),ce=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,y,"encryption",!0)).encrypt=null;o.encryptionLevel=null;o.permissions=null;return o}return _createClass(Encryption)}(u.XFAObject),le=function(t){_inherits(EncryptionLevel,t);var r=_createSuper(EncryptionLevel);function EncryptionLevel(t){_classCallCheck(this,EncryptionLevel);return r.call(this,y,"encryptionLevel",["40bit","128bit"])}return _createClass(EncryptionLevel)}(u.OptionObject),ue=function(t){_inherits(Enforce,t);var r=_createSuper(Enforce);function Enforce(t){_classCallCheck(this,Enforce);return r.call(this,y,"enforce")}return _createClass(Enforce)}(u.StringObject),fe=function(t){_inherits(Equate,t);var r=_createSuper(Equate);function Equate(t){var o;_classCallCheck(this,Equate);(o=r.call(this,y,"equate")).force=(0,h.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)}(u.XFAObject),he=function(t){_inherits(EquateRange,t);var r=_createSuper(EquateRange);function EquateRange(t){var o;_classCallCheck(this,EquateRange);(o=r.call(this,y,"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,d.shadow)(this,"unicodeRange",r)}}]);return EquateRange}(u.XFAObject),pe=function(t){_inherits(Exclude,t);var r=_createSuper(Exclude);function Exclude(t){_classCallCheck(this,Exclude);return r.call(this,y,"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}(u.ContentObject),de=function(t){_inherits(ExcludeNS,t);var r=_createSuper(ExcludeNS);function ExcludeNS(t){_classCallCheck(this,ExcludeNS);return r.call(this,y,"excludeNS")}return _createClass(ExcludeNS)}(u.StringObject),ye=function(t){_inherits(FlipLabel,t);var r=_createSuper(FlipLabel);function FlipLabel(t){_classCallCheck(this,FlipLabel);return r.call(this,y,"flipLabel",["usePrinterSetting","on","off"])}return _createClass(FlipLabel)}(u.OptionObject),ge=function(t){_inherits(FontInfo,t);var r=_createSuper(FontInfo);function FontInfo(t){var o;_classCallCheck(this,FontInfo);(o=r.call(this,y,"fontInfo",!0)).embed=null;o.map=null;o.subsetBelow=null;o.alwaysEmbed=new u.XFAObjectArray;o.defaultTypeface=new u.XFAObjectArray;o.neverEmbed=new u.XFAObjectArray;return o}return _createClass(FontInfo)}(u.XFAObject),ve=function(t){_inherits(FormFieldFilling,t);var r=_createSuper(FormFieldFilling);function FormFieldFilling(t){_classCallCheck(this,FormFieldFilling);return r.call(this,y,"formFieldFilling")}return _createClass(FormFieldFilling)}(u.Option01),me=function(t){_inherits(GroupParent,t);var r=_createSuper(GroupParent);function GroupParent(t){_classCallCheck(this,GroupParent);return r.call(this,y,"groupParent")}return _createClass(GroupParent)}(u.StringObject),be=function(t){_inherits(IfEmpty,t);var r=_createSuper(IfEmpty);function IfEmpty(t){_classCallCheck(this,IfEmpty);return r.call(this,y,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return _createClass(IfEmpty)}(u.OptionObject),_e=function(t){_inherits(IncludeXDPContent,t);var r=_createSuper(IncludeXDPContent);function IncludeXDPContent(t){_classCallCheck(this,IncludeXDPContent);return r.call(this,y,"includeXDPContent")}return _createClass(IncludeXDPContent)}(u.StringObject),we=function(t){_inherits(IncrementalLoad,t);var r=_createSuper(IncrementalLoad);function IncrementalLoad(t){_classCallCheck(this,IncrementalLoad);return r.call(this,y,"incrementalLoad",["none","forwardOnly"])}return _createClass(IncrementalLoad)}(u.OptionObject),ke=function(t){_inherits(IncrementalMerge,t);var r=_createSuper(IncrementalMerge);function IncrementalMerge(t){_classCallCheck(this,IncrementalMerge);return r.call(this,y,"incrementalMerge")}return _createClass(IncrementalMerge)}(u.Option01),Se=function(t){_inherits(Interactive,t);var r=_createSuper(Interactive);function Interactive(t){_classCallCheck(this,Interactive);return r.call(this,y,"interactive")}return _createClass(Interactive)}(u.Option01),Ce=function(t){_inherits(Jog,t);var r=_createSuper(Jog);function Jog(t){_classCallCheck(this,Jog);return r.call(this,y,"jog",["usePrinterSetting","none","pageSet"])}return _createClass(Jog)}(u.OptionObject),xe=function(t){_inherits(LabelPrinter,t);var r=_createSuper(LabelPrinter);function LabelPrinter(t){var o;_classCallCheck(this,LabelPrinter);(o=r.call(this,y,"labelPrinter",!0)).name=(0,h.getStringOption)(t.name,["zpl","dpl","ipl","tcpl"]);o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return _createClass(LabelPrinter)}(u.XFAObject),Ae=function(t){_inherits(Layout,t);var r=_createSuper(Layout);function Layout(t){_classCallCheck(this,Layout);return r.call(this,y,"layout",["paginate","panel"])}return _createClass(Layout)}(u.OptionObject),Oe=function(t){_inherits(Level,t);var r=_createSuper(Level);function Level(t){_classCallCheck(this,Level);return r.call(this,y,"level",0,(function(t){return t>0}))}return _createClass(Level)}(u.IntegerObject),Pe=function(t){_inherits(Linearized,t);var r=_createSuper(Linearized);function Linearized(t){_classCallCheck(this,Linearized);return r.call(this,y,"linearized")}return _createClass(Linearized)}(u.Option01),Te=function(t){_inherits(Locale,t);var r=_createSuper(Locale);function Locale(t){_classCallCheck(this,Locale);return r.call(this,y,"locale")}return _createClass(Locale)}(u.StringObject),Ie=function(t){_inherits(LocaleSet,t);var r=_createSuper(LocaleSet);function LocaleSet(t){_classCallCheck(this,LocaleSet);return r.call(this,y,"localeSet")}return _createClass(LocaleSet)}(u.StringObject),Fe=function(t){_inherits(Log,t);var r=_createSuper(Log);function Log(t){var o;_classCallCheck(this,Log);(o=r.call(this,y,"log",!0)).mode=null;o.threshold=null;o.to=null;o.uri=null;return o}return _createClass(Log)}(u.XFAObject),Ee=function(t){_inherits(MapElement,t);var r=_createSuper(MapElement);function MapElement(t){var o;_classCallCheck(this,MapElement);(o=r.call(this,y,"map",!0)).equate=new u.XFAObjectArray;o.equateRange=new u.XFAObjectArray;return o}return _createClass(MapElement)}(u.XFAObject),Re=function(t){_inherits(MediumInfo,t);var r=_createSuper(MediumInfo);function MediumInfo(t){var o;_classCallCheck(this,MediumInfo);(o=r.call(this,y,"mediumInfo",!0)).map=null;return o}return _createClass(MediumInfo)}(u.XFAObject),Me=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,y,"message",!0)).msgId=null;o.severity=null;return o}return _createClass(Message)}(u.XFAObject),je=function(t){_inherits(Messaging,t);var r=_createSuper(Messaging);function Messaging(t){var o;_classCallCheck(this,Messaging);(o=r.call(this,y,"messaging",!0)).message=new u.XFAObjectArray;return o}return _createClass(Messaging)}(u.XFAObject),Le=function(t){_inherits(Mode,t);var r=_createSuper(Mode);function Mode(t){_classCallCheck(this,Mode);return r.call(this,y,"mode",["append","overwrite"])}return _createClass(Mode)}(u.OptionObject),De=function(t){_inherits(ModifyAnnots,t);var r=_createSuper(ModifyAnnots);function ModifyAnnots(t){_classCallCheck(this,ModifyAnnots);return r.call(this,y,"modifyAnnots")}return _createClass(ModifyAnnots)}(u.Option01),Ne=function(t){_inherits(MsgId,t);var r=_createSuper(MsgId);function MsgId(t){_classCallCheck(this,MsgId);return r.call(this,y,"msgId",1,(function(t){return t>=1}))}return _createClass(MsgId)}(u.IntegerObject),Be=function(t){_inherits(NameAttr,t);var r=_createSuper(NameAttr);function NameAttr(t){_classCallCheck(this,NameAttr);return r.call(this,y,"nameAttr")}return _createClass(NameAttr)}(u.StringObject),Ue=function(t){_inherits(NeverEmbed,t);var r=_createSuper(NeverEmbed);function NeverEmbed(t){_classCallCheck(this,NeverEmbed);return r.call(this,y,"neverEmbed")}return _createClass(NeverEmbed)}(u.ContentObject),Ge=function(t){_inherits(NumberOfCopies,t);var r=_createSuper(NumberOfCopies);function NumberOfCopies(t){_classCallCheck(this,NumberOfCopies);return r.call(this,y,"numberOfCopies",null,(function(t){return t>=2&&t<=5}))}return _createClass(NumberOfCopies)}(u.IntegerObject),$e=function(t){_inherits(OpenAction,t);var r=_createSuper(OpenAction);function OpenAction(t){var o;_classCallCheck(this,OpenAction);(o=r.call(this,y,"openAction",!0)).destination=null;return o}return _createClass(OpenAction)}(u.XFAObject),He=function(t){_inherits(Output,t);var r=_createSuper(Output);function Output(t){var o;_classCallCheck(this,Output);(o=r.call(this,y,"output",!0)).to=null;o.type=null;o.uri=null;return o}return _createClass(Output)}(u.XFAObject),Xe=function(t){_inherits(OutputBin,t);var r=_createSuper(OutputBin);function OutputBin(t){_classCallCheck(this,OutputBin);return r.call(this,y,"outputBin")}return _createClass(OutputBin)}(u.StringObject),qe=function(t){_inherits(OutputXSL,t);var r=_createSuper(OutputXSL);function OutputXSL(t){var o;_classCallCheck(this,OutputXSL);(o=r.call(this,y,"outputXSL",!0)).uri=null;return o}return _createClass(OutputXSL)}(u.XFAObject),ze=function(t){_inherits(Overprint,t);var r=_createSuper(Overprint);function Overprint(t){_classCallCheck(this,Overprint);return r.call(this,y,"overprint",["none","both","draw","field"])}return _createClass(Overprint)}(u.OptionObject),We=function(t){_inherits(Packets,t);var r=_createSuper(Packets);function Packets(t){_classCallCheck(this,Packets);return r.call(this,y,"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}(u.StringObject),Ve=function(t){_inherits(PageOffset,t);var r=_createSuper(PageOffset);function PageOffset(t){var o;_classCallCheck(this,PageOffset);(o=r.call(this,y,"pageOffset")).x=(0,h.getInteger)({data:t.x,defaultValue:"useXDCSetting",validate:function validate(t){return!0}});o.y=(0,h.getInteger)({data:t.y,defaultValue:"useXDCSetting",validate:function validate(t){return!0}});return o}return _createClass(PageOffset)}(u.XFAObject),Ke=function(t){_inherits(PageRange,t);var r=_createSuper(PageRange);function PageRange(t){_classCallCheck(this,PageRange);return r.call(this,y,"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}(u.StringObject),Ye=function(t){_inherits(Pagination,t);var r=_createSuper(Pagination);function Pagination(t){_classCallCheck(this,Pagination);return r.call(this,y,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return _createClass(Pagination)}(u.OptionObject),Je=function(t){_inherits(PaginationOverride,t);var r=_createSuper(PaginationOverride);function PaginationOverride(t){_classCallCheck(this,PaginationOverride);return r.call(this,y,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return _createClass(PaginationOverride)}(u.OptionObject),Ze=function(t){_inherits(Part,t);var r=_createSuper(Part);function Part(t){_classCallCheck(this,Part);return r.call(this,y,"part",1,(function(t){return!1}))}return _createClass(Part)}(u.IntegerObject),Qe=function(t){_inherits(Pcl,t);var r=_createSuper(Pcl);function Pcl(t){var o;_classCallCheck(this,Pcl);(o=r.call(this,y,"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)}(u.XFAObject),et=function(t){_inherits(Pdf,t);var r=_createSuper(Pdf);function Pdf(t){var o;_classCallCheck(this,Pdf);(o=r.call(this,y,"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)}(u.XFAObject),tt=function(t){_inherits(Pdfa,t);var r=_createSuper(Pdfa);function Pdfa(t){var o;_classCallCheck(this,Pdfa);(o=r.call(this,y,"pdfa",!0)).amd=null;o.conformance=null;o.includeXDPContent=null;o.part=null;return o}return _createClass(Pdfa)}(u.XFAObject),rt=function(t){_inherits(Permissions,t);var r=_createSuper(Permissions);function Permissions(t){var o;_classCallCheck(this,Permissions);(o=r.call(this,y,"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)}(u.XFAObject),nt=function(t){_inherits(PickTrayByPDFSize,t);var r=_createSuper(PickTrayByPDFSize);function PickTrayByPDFSize(t){_classCallCheck(this,PickTrayByPDFSize);return r.call(this,y,"pickTrayByPDFSize")}return _createClass(PickTrayByPDFSize)}(u.Option01),it=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){_classCallCheck(this,Picture);return r.call(this,y,"picture")}return _createClass(Picture)}(u.StringObject),ot=function(t){_inherits(PlaintextMetadata,t);var r=_createSuper(PlaintextMetadata);function PlaintextMetadata(t){_classCallCheck(this,PlaintextMetadata);return r.call(this,y,"plaintextMetadata")}return _createClass(PlaintextMetadata)}(u.Option01),st=function(t){_inherits(Presence,t);var r=_createSuper(Presence);function Presence(t){_classCallCheck(this,Presence);return r.call(this,y,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return _createClass(Presence)}(u.OptionObject),ct=function(t){_inherits(Present,t);var r=_createSuper(Present);function Present(t){var o;_classCallCheck(this,Present);(o=r.call(this,y,"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 u.XFAObjectArray;o.labelPrinter=new u.XFAObjectArray;o.pcl=new u.XFAObjectArray;o.pdf=new u.XFAObjectArray;o.ps=new u.XFAObjectArray;o.submitUrl=new u.XFAObjectArray;o.webClient=new u.XFAObjectArray;o.zpl=new u.XFAObjectArray;return o}return _createClass(Present)}(u.XFAObject),lt=function(t){_inherits(Print,t);var r=_createSuper(Print);function Print(t){_classCallCheck(this,Print);return r.call(this,y,"print")}return _createClass(Print)}(u.Option01),ut=function(t){_inherits(PrintHighQuality,t);var r=_createSuper(PrintHighQuality);function PrintHighQuality(t){_classCallCheck(this,PrintHighQuality);return r.call(this,y,"printHighQuality")}return _createClass(PrintHighQuality)}(u.Option01),ft=function(t){_inherits(PrintScaling,t);var r=_createSuper(PrintScaling);function PrintScaling(t){_classCallCheck(this,PrintScaling);return r.call(this,y,"printScaling",["appdefault","noScaling"])}return _createClass(PrintScaling)}(u.OptionObject),ht=function(t){_inherits(PrinterName,t);var r=_createSuper(PrinterName);function PrinterName(t){_classCallCheck(this,PrinterName);return r.call(this,y,"printerName")}return _createClass(PrinterName)}(u.StringObject),dt=function(t){_inherits(Producer,t);var r=_createSuper(Producer);function Producer(t){_classCallCheck(this,Producer);return r.call(this,y,"producer")}return _createClass(Producer)}(u.StringObject),yt=function(t){_inherits(Ps,t);var r=_createSuper(Ps);function Ps(t){var o;_classCallCheck(this,Ps);(o=r.call(this,y,"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)}(u.XFAObject),gt=function(t){_inherits(Range,t);var r=_createSuper(Range);function Range(t){_classCallCheck(this,Range);return r.call(this,y,"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}(u.ContentObject),vt=function(t){_inherits(Record,t);var r=_createSuper(Record);function Record(t){_classCallCheck(this,Record);return r.call(this,y,"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}(u.ContentObject),mt=function(t){_inherits(Relevant,t);var r=_createSuper(Relevant);function Relevant(t){_classCallCheck(this,Relevant);return r.call(this,y,"relevant")}_createClass(Relevant,[{key:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim().split(/\s+/)}}]);return Relevant}(u.ContentObject),bt=function(t){_inherits(Rename,t);var r=_createSuper(Rename);function Rename(t){_classCallCheck(this,Rename);return r.call(this,y,"rename")}_createClass(Rename,[{key:l.$finalize,value:function value(){this[l.$content]=this[l.$content].trim();(this[l.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[l.$content]))&&(0,d.warn)("XFA - Rename: invalid XFA name")}}]);return Rename}(u.ContentObject),_t=function(t){_inherits(RenderPolicy,t);var r=_createSuper(RenderPolicy);function RenderPolicy(t){_classCallCheck(this,RenderPolicy);return r.call(this,y,"renderPolicy",["server","client"])}return _createClass(RenderPolicy)}(u.OptionObject),wt=function(t){_inherits(RunScripts,t);var r=_createSuper(RunScripts);function RunScripts(t){_classCallCheck(this,RunScripts);return r.call(this,y,"runScripts",["both","client","none","server"])}return _createClass(RunScripts)}(u.OptionObject),kt=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,y,"script",!0)).currentPage=null;o.exclude=null;o.runScripts=null;return o}return _createClass(Script)}(u.XFAObject),St=function(t){_inherits(ScriptModel,t);var r=_createSuper(ScriptModel);function ScriptModel(t){_classCallCheck(this,ScriptModel);return r.call(this,y,"scriptModel",["XFA","none"])}return _createClass(ScriptModel)}(u.OptionObject),Ct=function(t){_inherits(Severity,t);var r=_createSuper(Severity);function Severity(t){_classCallCheck(this,Severity);return r.call(this,y,"severity",["ignore","error","information","trace","warning"])}return _createClass(Severity)}(u.OptionObject),xt=function(t){_inherits(SilentPrint,t);var r=_createSuper(SilentPrint);function SilentPrint(t){var o;_classCallCheck(this,SilentPrint);(o=r.call(this,y,"silentPrint",!0)).addSilentPrint=null;o.printerName=null;return o}return _createClass(SilentPrint)}(u.XFAObject),At=function(t){_inherits(Staple,t);var r=_createSuper(Staple);function Staple(t){var o;_classCallCheck(this,Staple);(o=r.call(this,y,"staple")).mode=(0,h.getStringOption)(t.mode,["usePrinterSetting","on","off"]);return o}return _createClass(Staple)}(u.XFAObject),Ot=function(t){_inherits(StartNode,t);var r=_createSuper(StartNode);function StartNode(t){_classCallCheck(this,StartNode);return r.call(this,y,"startNode")}return _createClass(StartNode)}(u.StringObject),Pt=function(t){_inherits(StartPage,t);var r=_createSuper(StartPage);function StartPage(t){_classCallCheck(this,StartPage);return r.call(this,y,"startPage",0,(function(t){return!0}))}return _createClass(StartPage)}(u.IntegerObject),Tt=function(t){_inherits(SubmitFormat,t);var r=_createSuper(SubmitFormat);function SubmitFormat(t){_classCallCheck(this,SubmitFormat);return r.call(this,y,"submitFormat",["html","delegate","fdf","xml","pdf"])}return _createClass(SubmitFormat)}(u.OptionObject),It=function(t){_inherits(SubmitUrl,t);var r=_createSuper(SubmitUrl);function SubmitUrl(t){_classCallCheck(this,SubmitUrl);return r.call(this,y,"submitUrl")}return _createClass(SubmitUrl)}(u.StringObject),Ft=function(t){_inherits(SubsetBelow,t);var r=_createSuper(SubsetBelow);function SubsetBelow(t){_classCallCheck(this,SubsetBelow);return r.call(this,y,"subsetBelow",100,(function(t){return t>=0&&t<=100}))}return _createClass(SubsetBelow)}(u.IntegerObject),Et=function(t){_inherits(SuppressBanner,t);var r=_createSuper(SuppressBanner);function SuppressBanner(t){_classCallCheck(this,SuppressBanner);return r.call(this,y,"suppressBanner")}return _createClass(SuppressBanner)}(u.Option01),Rt=function(t){_inherits(Tagged,t);var r=_createSuper(Tagged);function Tagged(t){_classCallCheck(this,Tagged);return r.call(this,y,"tagged")}return _createClass(Tagged)}(u.Option01),Mt=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,y,"template",!0)).base=null;o.relevant=null;o.startPage=null;o.uri=null;o.xsl=null;return o}return _createClass(Template)}(u.XFAObject),jt=function(t){_inherits(Threshold,t);var r=_createSuper(Threshold);function Threshold(t){_classCallCheck(this,Threshold);return r.call(this,y,"threshold",["trace","error","information","warning"])}return _createClass(Threshold)}(u.OptionObject),Lt=function(t){_inherits(To,t);var r=_createSuper(To);function To(t){_classCallCheck(this,To);return r.call(this,y,"to",["null","memory","stderr","stdout","system","uri"])}return _createClass(To)}(u.OptionObject),Dt=function(t){_inherits(TemplateCache,t);var r=_createSuper(TemplateCache);function TemplateCache(t){var o;_classCallCheck(this,TemplateCache);(o=r.call(this,y,"templateCache")).maxEntries=(0,h.getInteger)({data:t.maxEntries,defaultValue:5,validate:function validate(t){return t>=0}});return o}return _createClass(TemplateCache)}(u.XFAObject),Nt=function(t){_inherits(Trace,t);var r=_createSuper(Trace);function Trace(t){var o;_classCallCheck(this,Trace);(o=r.call(this,y,"trace",!0)).area=new u.XFAObjectArray;return o}return _createClass(Trace)}(u.XFAObject),Bt=function(t){_inherits(Transform,t);var r=_createSuper(Transform);function Transform(t){var o;_classCallCheck(this,Transform);(o=r.call(this,y,"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)}(u.XFAObject),Ut=function(t){_inherits(Type,t);var r=_createSuper(Type);function Type(t){_classCallCheck(this,Type);return r.call(this,y,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return _createClass(Type)}(u.OptionObject),Gt=function(t){_inherits(Uri,t);var r=_createSuper(Uri);function Uri(t){_classCallCheck(this,Uri);return r.call(this,y,"uri")}return _createClass(Uri)}(u.StringObject),$t=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){_classCallCheck(this,Validate);return r.call(this,y,"validate",["preSubmit","prePrint","preExecute","preSave"])}return _createClass(Validate)}(u.OptionObject),Ht=function(t){_inherits(ValidateApprovalSignatures,t);var r=_createSuper(ValidateApprovalSignatures);function ValidateApprovalSignatures(t){_classCallCheck(this,ValidateApprovalSignatures);return r.call(this,y,"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}(u.ContentObject),Xt=function(t){_inherits(ValidationMessaging,t);var r=_createSuper(ValidationMessaging);function ValidationMessaging(t){_classCallCheck(this,ValidationMessaging);return r.call(this,y,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return _createClass(ValidationMessaging)}(u.OptionObject),qt=function(t){_inherits(Version,t);var r=_createSuper(Version);function Version(t){_classCallCheck(this,Version);return r.call(this,y,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return _createClass(Version)}(u.OptionObject),zt=function(t){_inherits(VersionControl,t);var r=_createSuper(VersionControl);function VersionControl(t){var o;_classCallCheck(this,VersionControl);(o=r.call(this,y,"VersionControl")).outputBelow=(0,h.getStringOption)(t.outputBelow,["warn","error","update"]);o.sourceAbove=(0,h.getStringOption)(t.sourceAbove,["warn","error"]);o.sourceBelow=(0,h.getStringOption)(t.sourceBelow,["update","maintain"]);return o}return _createClass(VersionControl)}(u.XFAObject),Wt=function(t){_inherits(ViewerPreferences,t);var r=_createSuper(ViewerPreferences);function ViewerPreferences(t){var o;_classCallCheck(this,ViewerPreferences);(o=r.call(this,y,"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)}(u.XFAObject),Vt=function(t){_inherits(WebClient,t);var r=_createSuper(WebClient);function WebClient(t){var o;_classCallCheck(this,WebClient);(o=r.call(this,y,"webClient",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return _createClass(WebClient)}(u.XFAObject),Kt=function(t){_inherits(Whitespace,t);var r=_createSuper(Whitespace);function Whitespace(t){_classCallCheck(this,Whitespace);return r.call(this,y,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return _createClass(Whitespace)}(u.OptionObject),Yt=function(t){_inherits(Window,t);var r=_createSuper(Window);function Window(t){_classCallCheck(this,Window);return r.call(this,y,"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}(u.ContentObject),Jt=function(t){_inherits(Xdc,t);var r=_createSuper(Xdc);function Xdc(t){var o;_classCallCheck(this,Xdc);(o=r.call(this,y,"xdc",!0)).uri=new u.XFAObjectArray;o.xsl=new u.XFAObjectArray;return o}return _createClass(Xdc)}(u.XFAObject),Zt=function(t){_inherits(Xdp,t);var r=_createSuper(Xdp);function Xdp(t){var o;_classCallCheck(this,Xdp);(o=r.call(this,y,"xdp",!0)).packets=null;return o}return _createClass(Xdp)}(u.XFAObject),Qt=function(t){_inherits(Xsl,t);var r=_createSuper(Xsl);function Xsl(t){var o;_classCallCheck(this,Xsl);(o=r.call(this,y,"xsl",!0)).debug=null;o.uri=null;return o}return _createClass(Xsl)}(u.XFAObject),er=function(t){_inherits(Zpl,t);var r=_createSuper(Zpl);function Zpl(t){var o;_classCallCheck(this,Zpl);(o=r.call(this,y,"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)}(u.XFAObject),tr=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 v(t)}},{key:"ADBE_JSConsole",value:function ADBE_JSConsole(t){return new m(t)}},{key:"ADBE_JSDebugger",value:function ADBE_JSDebugger(t){return new _(t)}},{key:"addSilentPrint",value:function addSilentPrint(t){return new w(t)}},{key:"addViewerPreferences",value:function addViewerPreferences(t){return new k(t)}},{key:"adjustData",value:function adjustData(t){return new S(t)}},{key:"adobeExtensionLevel",value:function adobeExtensionLevel(t){return new C(t)}},{key:"agent",value:function agent(t){return new x(t)}},{key:"alwaysEmbed",value:function alwaysEmbed(t){return new O(t)}},{key:"amd",value:function amd(t){return new T(t)}},{key:"area",value:function area(t){return new E(t)}},{key:"attributes",value:function attributes(t){return new R(t)}},{key:"autoSave",value:function autoSave(t){return new M(t)}},{key:"base",value:function base(t){return new j(t)}},{key:"batchOutput",value:function batchOutput(t){return new L(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 U(t)}},{key:"common",value:function common(t){return new G(t)}},{key:"compress",value:function compress(t){return new $(t)}},{key:"compressLogicalStructure",value:function compressLogicalStructure(t){return new H(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 z(t)}},{key:"conformance",value:function conformance(t){return new W(t)}},{key:"contentCopy",value:function contentCopy(t){return new V(t)}},{key:"copies",value:function copies(t){return new K(t)}},{key:"creator",value:function creator(t){return new Y(t)}},{key:"currentPage",value:function currentPage(t){return new J(t)}},{key:"data",value:function data(t){return new Z(t)}},{key:"debug",value:function debug(t){return new Q(t)}},{key:"defaultTypeface",value:function defaultTypeface(t){return new ee(t)}},{key:"destination",value:function destination(t){return new te(t)}},{key:"documentAssembly",value:function documentAssembly(t){return new re(t)}},{key:"driver",value:function driver(t){return new ne(t)}},{key:"duplexOption",value:function duplexOption(t){return new ae(t)}},{key:"dynamicRender",value:function dynamicRender(t){return new ie(t)}},{key:"embed",value:function embed(t){return new oe(t)}},{key:"encrypt",value:function encrypt(t){return new se(t)}},{key:"encryption",value:function encryption(t){return new ce(t)}},{key:"encryptionLevel",value:function encryptionLevel(t){return new le(t)}},{key:"enforce",value:function enforce(t){return new ue(t)}},{key:"equate",value:function equate(t){return new fe(t)}},{key:"equateRange",value:function equateRange(t){return new he(t)}},{key:"exclude",value:function exclude(t){return new pe(t)}},{key:"excludeNS",value:function excludeNS(t){return new de(t)}},{key:"flipLabel",value:function flipLabel(t){return new ye(t)}},{key:"fontInfo",value:function fontInfo(t){return new ge(t)}},{key:"formFieldFilling",value:function formFieldFilling(t){return new ve(t)}},{key:"groupParent",value:function groupParent(t){return new me(t)}},{key:"ifEmpty",value:function ifEmpty(t){return new be(t)}},{key:"includeXDPContent",value:function includeXDPContent(t){return new _e(t)}},{key:"incrementalLoad",value:function incrementalLoad(t){return new we(t)}},{key:"incrementalMerge",value:function incrementalMerge(t){return new ke(t)}},{key:"interactive",value:function interactive(t){return new Se(t)}},{key:"jog",value:function jog(t){return new Ce(t)}},{key:"labelPrinter",value:function labelPrinter(t){return new xe(t)}},{key:"layout",value:function layout(t){return new Ae(t)}},{key:"level",value:function level(t){return new Oe(t)}},{key:"linearized",value:function linearized(t){return new Pe(t)}},{key:"locale",value:function locale(t){return new Te(t)}},{key:"localeSet",value:function localeSet(t){return new Ie(t)}},{key:"log",value:function log(t){return new Fe(t)}},{key:"map",value:function map(t){return new Ee(t)}},{key:"mediumInfo",value:function mediumInfo(t){return new Re(t)}},{key:"message",value:function message(t){return new Me(t)}},{key:"messaging",value:function messaging(t){return new je(t)}},{key:"mode",value:function mode(t){return new Le(t)}},{key:"modifyAnnots",value:function modifyAnnots(t){return new De(t)}},{key:"msgId",value:function msgId(t){return new Ne(t)}},{key:"nameAttr",value:function nameAttr(t){return new Be(t)}},{key:"neverEmbed",value:function neverEmbed(t){return new Ue(t)}},{key:"numberOfCopies",value:function numberOfCopies(t){return new Ge(t)}},{key:"openAction",value:function openAction(t){return new $e(t)}},{key:"output",value:function output(t){return new He(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 ze(t)}},{key:"packets",value:function packets(t){return new We(t)}},{key:"pageOffset",value:function pageOffset(t){return new Ve(t)}},{key:"pageRange",value:function pageRange(t){return new Ke(t)}},{key:"pagination",value:function pagination(t){return new Ye(t)}},{key:"paginationOverride",value:function paginationOverride(t){return new Je(t)}},{key:"part",value:function part(t){return new Ze(t)}},{key:"pcl",value:function pcl(t){return new Qe(t)}},{key:"pdf",value:function pdf(t){return new et(t)}},{key:"pdfa",value:function pdfa(t){return new tt(t)}},{key:"permissions",value:function permissions(t){return new rt(t)}},{key:"pickTrayByPDFSize",value:function pickTrayByPDFSize(t){return new nt(t)}},{key:"picture",value:function picture(t){return new it(t)}},{key:"plaintextMetadata",value:function plaintextMetadata(t){return new ot(t)}},{key:"presence",value:function presence(t){return new st(t)}},{key:"present",value:function present(t){return new ct(t)}},{key:"print",value:function print(t){return new lt(t)}},{key:"printHighQuality",value:function printHighQuality(t){return new ut(t)}},{key:"printScaling",value:function printScaling(t){return new ft(t)}},{key:"printerName",value:function printerName(t){return new ht(t)}},{key:"producer",value:function producer(t){return new dt(t)}},{key:"ps",value:function ps(t){return new yt(t)}},{key:"range",value:function range(t){return new gt(t)}},{key:"record",value:function record(t){return new vt(t)}},{key:"relevant",value:function relevant(t){return new mt(t)}},{key:"rename",value:function rename(t){return new bt(t)}},{key:"renderPolicy",value:function renderPolicy(t){return new _t(t)}},{key:"runScripts",value:function runScripts(t){return new wt(t)}},{key:"script",value:function script(t){return new kt(t)}},{key:"scriptModel",value:function scriptModel(t){return new St(t)}},{key:"severity",value:function severity(t){return new Ct(t)}},{key:"silentPrint",value:function silentPrint(t){return new xt(t)}},{key:"staple",value:function staple(t){return new At(t)}},{key:"startNode",value:function startNode(t){return new Ot(t)}},{key:"startPage",value:function startPage(t){return new Pt(t)}},{key:"submitFormat",value:function submitFormat(t){return new Tt(t)}},{key:"submitUrl",value:function submitUrl(t){return new It(t)}},{key:"subsetBelow",value:function subsetBelow(t){return new Ft(t)}},{key:"suppressBanner",value:function suppressBanner(t){return new Et(t)}},{key:"tagged",value:function tagged(t){return new Rt(t)}},{key:"template",value:function template(t){return new Mt(t)}},{key:"templateCache",value:function templateCache(t){return new Dt(t)}},{key:"threshold",value:function threshold(t){return new jt(t)}},{key:"to",value:function to(t){return new Lt(t)}},{key:"trace",value:function trace(t){return new Nt(t)}},{key:"transform",value:function transform(t){return new Bt(t)}},{key:"type",value:function type(t){return new Ut(t)}},{key:"uri",value:function uri(t){return new Gt(t)}},{key:"validate",value:function validate(t){return new $t(t)}},{key:"validateApprovalSignatures",value:function validateApprovalSignatures(t){return new Ht(t)}},{key:"validationMessaging",value:function validationMessaging(t){return new Xt(t)}},{key:"version",value:function version(t){return new qt(t)}},{key:"versionControl",value:function versionControl(t){return new zt(t)}},{key:"viewerPreferences",value:function viewerPreferences(t){return new Wt(t)}},{key:"webClient",value:function webClient(t){return new Vt(t)}},{key:"whitespace",value:function whitespace(t){return new Kt(t)}},{key:"window",value:function window(t){return new Yt(t)}},{key:"xdc",value:function xdc(t){return new Jt(t)}},{key:"xdp",value:function xdp(t){return new Zt(t)}},{key:"xsl",value:function xsl(t){return new Qt(t)}},{key:"zpl",value:function zpl(t){return new er(t)}}]);return ConfigNamespace}();r.ConfigNamespace=tr},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.ConnectionSetNamespace=void 0;o(134);var c=o(472),l=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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),y=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),g=function(t){_inherits(Operation,t);var r=_createSuper(Operation);function Operation(t){var o;_classCallCheck(this,Operation);(o=r.call(this,u,"operation")).id=t.id||"";o.input=t.input||"";o.name=t.name||"";o.output=t.output||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return _createClass(Operation)}(l.StringObject),v=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),m=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),_=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),w=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),k=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 y(t)}},{key:"operation",value:function operation(t){return new g(t)}},{key:"rootElement",value:function rootElement(t){return new v(t)}},{key:"soapAction",value:function soapAction(t){return new m(t)}},{key:"soapAddress",value:function soapAddress(t){return new _(t)}},{key:"uri",value:function uri(t){return new w(t)}},{key:"wsdlAddress",value:function wsdlAddress(t){return new k(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)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.DatasetsNamespace=void 0;o(134);var c=o(461),l=o(472),u=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var h=l.NamespaceIds.datasets.id,d=function(t){_inherits(Data,t);var r=_createSuper(Data);function Data(t){_classCallCheck(this,Data);return r.call(this,h,"data",t)}_createClass(Data,[{key:c.$isNsAgnostic,value:function value(){return!0}}]);return Data}(u.XmlObject),y=function(t){_inherits(Datasets,t);var r=_createSuper(Datasets);function Datasets(t){var o;_classCallCheck(this,Datasets);(o=r.call(this,h,"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]===h||"Signature"===r&&t[c.$namespaceId]===l.NamespaceIds.signature.id)&&(this[r]=t);this[c.$appendChild](t)}}]);return Datasets}(u.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 y(t)}},{key:"data",value:function data(t){return new d(t)}}]);return DatasetsNamespace}();r.DatasetsNamespace=g},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.LocaleSetNamespace=void 0;o(134);var c=o(472),l=o(478),u=o(475);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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),y=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),g=function(t){_inherits(CurrencySymbols,t);var r=_createSuper(CurrencySymbols);function CurrencySymbols(t){var o;_classCallCheck(this,CurrencySymbols);(o=r.call(this,h,"currencySymbols",!0)).currencySymbol=new l.XFAObjectArray(3);return o}return _createClass(CurrencySymbols)}(l.XFAObject),v=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),m=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),_=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),w=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),k=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),R=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),M=function(t){_inherits(MonthNames,t);var r=_createSuper(MonthNames);function MonthNames(t){var o;_classCallCheck(this,MonthNames);(o=r.call(this,h,"monthNames",!0)).abbr=(0,u.getInteger)({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.month=new 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),L=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),D=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),N=function(t){_inherits(NumberSymbols,t);var r=_createSuper(NumberSymbols);function NumberSymbols(t){var o;_classCallCheck(this,NumberSymbols);(o=r.call(this,h,"numberSymbols",!0)).numberSymbol=new 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),G=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),H=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),X=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 y(t)}},{key:"currencySymbols",value:function currencySymbols(t){return new g(t)}},{key:"datePattern",value:function datePattern(t){return new v(t)}},{key:"datePatterns",value:function datePatterns(t){return new m(t)}},{key:"dateTimeSymbols",value:function dateTimeSymbols(t){return new _(t)}},{key:"day",value:function day(t){return new w(t)}},{key:"dayNames",value:function dayNames(t){return new k(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 R(t)}},{key:"monthNames",value:function monthNames(t){return new M(t)}},{key:"numberPattern",value:function numberPattern(t){return new j(t)}},{key:"numberPatterns",value:function numberPatterns(t){return new L(t)}},{key:"numberSymbol",value:function numberSymbol(t){return new D(t)}},{key:"numberSymbols",value:function numberSymbols(t){return new N(t)}},{key:"timePattern",value:function timePattern(t){return new U(t)}},{key:"timePatterns",value:function timePatterns(t){return new G(t)}},{key:"typeFace",value:function typeFace(t){return new $(t)}},{key:"typeFaces",value:function typeFaces(t){return new H(t)}}]);return LocaleSetNamespace}();r.LocaleSetNamespace=X},(t,r,o)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.SignatureNamespace=void 0;o(134);var c=o(472),l=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.StylesheetNamespace=void 0;o(134);var c=o(472),l=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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)=>{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)}o(143);o(305);o(306);o(183);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.XdpNamespace=void 0;o(134);var c=o(472),l=o(461),u=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}var h=c.NamespaceIds.xdp.id,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)}(Xdp,t);var r=_createSuper(Xdp);function Xdp(t){var o;_classCallCheck(this,Xdp);(o=r.call(this,h,"xdp",!0)).uuid=t.uuid||"";o.timeStamp=t.timeStamp||"";o.config=null;o.connectionSet=null;o.datasets=null;o.localeSet=null;o.stylesheet=new u.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}(u.XFAObject),y=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 d(t)}}]);return XdpNamespace}();r.XdpNamespace=y},(t,r,o)=>{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)}o(296);o(293);o(114);o(129);o(113);o(183);o(290);o(134);o(305);o(306);o(368);o(370);o(2);o(54);o(105);Object.defineProperty(r,"__esModule",{value:!0});r.XhtmlNamespace=void 0;o(56);o(104);o(143);o(137);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(177);o(335);o(385);o(180);o(464);o(302);o(123);o(337);o(339);o(182);o(349);o(374);o(329);o(330);o(363);o(364);var c=o(461),l=o(472),u=o(474),h=o(475),d=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(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 _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?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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 y=l.NamespaceIds.xhtml.id,g=Symbol(),v=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"]),m=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))}]]),_=/\s+/g,w=/[\r\n]+/g,k=/\r\n?/g;function mapStyle(t,r,o){var l=Object.create(null);if(!t)return l;var d,y=Object.create(null),g=_createForOfIteratorHelper(t.split(";").map((function(t){return t.split(":",2)})));try{for(g.s();!(d=g.n()).done;){var v=_slicedToArray(d.value,2),_=v[0],w=v[1],k=m.get(_);if(""!==k){var S=w;k&&(S="string"==typeof k?k:k(w,y));_.endsWith("scale")?l.transform=l.transform?"".concat(l[_]," ").concat(S):S:l[_.replaceAll(/-([a-zA-Z])/g,(function(t,r){return r.toUpperCase()}))]=S}}}catch(t){g.e(t)}finally{g.f()}l.fontFamily&&(0,u.setFontFamily)({typeface:l.fontFamily,weight:l.fontWeight||"normal",posture:l.fontStyle||"normal",size:y.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)}o&&l.fontSize&&(l.fontSize="calc(".concat(l.fontSize," * var(--scale-factor))"));(0,u.fixTextIndent)(l);return l}var S=new Set(["body","html"]),C=function(t){_inherits(XhtmlObject,t);var r=_createSuper(XhtmlObject);function XhtmlObject(t,o){var c;_classCallCheck(this,XhtmlObject);(c=r.call(this,y,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 v.has(l)})).map((function(t){return t.join(":")})).join(";"):""}(this)}},{key:c.$acceptWhitespace,value:function value(){return!S.has(this[c.$nodeName])}},{key:c.$onText,value:function value(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this[g]=!0;else{t=t.replaceAll(w,"");this.style.includes("xfa-spacerun:yes")||(t=t.replaceAll(_," "))}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,y=_createForOfIteratorHelper(this.style.split(";").map((function(t){return t.split(":",2)})));try{for(y.s();!(r=y.n()).done;){var g=_slicedToArray(r.value,2),v=g[0],value=g[1];switch(v){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 m=value.split(/ \t/).map((function(t){return(0,h.getMeasurement)(t)}));switch(m.length){case 1:u.top=u.bottom=u.left=u.right=m[0];break;case 2:u.top=u.bottom=m[0];u.left=u.right=m[1];break;case 3:u.top=m[0];u.bottom=m[2];u.left=u.right=m[1];break;case 4:u.top=m[0];u.left=m[1];u.bottom=m[2];u.right=m[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){y.e(t)}finally{y.f()}t.pushData(l,u,d);if(this[c.$content])t.addString(this[c.$content]);else{var _,w=_createForOfIteratorHelper(this[c.$getChildren]());try{for(w.s();!(_=w.n()).done;){var k=_.value;"#text"!==k[c.$nodeName]?k[c.$pushGlyphs](t):t.addString(k[c.$content])}}catch(t){w.e(t)}finally{w.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].replaceAll(k,"\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}(d.XmlObject),x=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)}(C),O=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}(C),T=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}(C),E=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}(C),R=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,l=r[0];if(null!==(o=l.attributes)&&void 0!==o&&o.class.includes("xfaRich"))return h.HTMLResult.success(l)}return h.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:r})}}]);return Html}(C),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}(C),j=function(t){_inherits(Li,t);var r=_createSuper(Li);function Li(t){_classCallCheck(this,Li);return r.call(this,t,"li")}return _createClass(Li)}(C),L=function(t){_inherits(Ol,t);var r=_createSuper(Ol);function Ol(t){_classCallCheck(this,Ol);return r.call(this,t,"ol")}return _createClass(Ol)}(C),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(){return this[c.$getParent]()[c.$getChildren]().at(-1)===this?_get(_getPrototypeOf(P.prototype),c.$text,this).call(this):_get(_getPrototypeOf(P.prototype),c.$text,this).call(this)+"\n"}}]);return P}(C),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)}(C),U=function(t){_inherits(Sub,t);var r=_createSuper(Sub);function Sub(t){_classCallCheck(this,Sub);return r.call(this,t,"sub")}return _createClass(Sub)}(C),G=function(t){_inherits(Sup,t);var r=_createSuper(Sup);function Sup(t){_classCallCheck(this,Sup);return r.call(this,t,"sup")}return _createClass(Sup)}(C),$=function(t){_inherits(Ul,t);var r=_createSuper(Ul);function Ul(t){_classCallCheck(this,Ul);return r.call(this,t,"ul")}return _createClass(Ul)}(C),H=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 x(t)}},{key:"b",value:function b(t){return new O(t)}},{key:"body",value:function body(t){return new T(t)}},{key:"br",value:function br(t){return new E(t)}},{key:"html",value:function html(t){return new R(t)}},{key:"i",value:function i(t){return new M(t)}},{key:"li",value:function li(t){return new j(t)}},{key:"ol",value:function ol(t){return new L(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 U(t)}},{key:"sup",value:function sup(t){return new G(t)}},{key:"ul",value:function ul(t){return new $(t)}}]);return XhtmlNamespace}();r.XhtmlNamespace=H},(t,r,o)=>{o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.UnknownNamespace=void 0;o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(472),l=o(478);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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)=>{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)}o(143);o(305);o(306);o(368);o(370);o(2);o(54);o(56);o(104);o(105);o(113);o(137);o(175);o(177);Object.defineProperty(r,"__esModule",{value:!0});r.DatasetReader=void 0;o(183);o(134);o(180);var c=o(304),l=o(343),u=o(449);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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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.bind():function _get(t,r,o){var c=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(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 _setPrototypeOf(t,r){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 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)}(this,o)}}function _getPrototypeOf(t){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(t)}function decodeString(t){try{return(0,c.stringToUTF8String)(t)}catch(r){(0,c.warn)('UTF-8 decoding failed: "'.concat(r,'".'));return 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)}(DatasetXMLParser,t);var r=_createSuper(DatasetXMLParser);function DatasetXMLParser(t){var o;_classCallCheck(this,DatasetXMLParser);(o=r.call(this,t)).node=null;return o}_createClass(DatasetXMLParser,[{key:"onEndElement",value:function onEndElement(t){var r=_get(_getPrototypeOf(DatasetXMLParser.prototype),"onEndElement",this).call(this,t);if(r&&"xfa:datasets"===t){this.node=r;throw new Error("Aborting DatasetXMLParser.")}}}]);return DatasetXMLParser}(u.SimpleXMLParser),d=function(){function DatasetReader(t){_classCallCheck(this,DatasetReader);if(t.datasets)this.node=new u.SimpleXMLParser({hasAttributes:!0}).parseFromString(t.datasets).documentElement;else{var r=new h({hasAttributes:!0});try{r.parseFromString(t["xdp:xdp"])}catch(t){}this.node=r.node}}_createClass(DatasetReader,[{key:"getValue",value:function getValue(t){if(!this.node||!t)return"";var r=this.node.searchNode((0,l.parseXFAPath)(t),0);if(!r)return"";var o=r.firstChild;return"value"===(null==o?void 0:o.nodeName)?r.children.map((function(t){return decodeString(t.textContent)})):decodeString(r.textContent)}}]);return DatasetReader}();r.DatasetReader=d},(t,r,o)=>{o(2);o(54);o(56);o(104);o(113);o(296);o(114);o(145);o(130);o(131);o(132);o(133);o(134);o(300);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.XRef=void 0;o(137);o(143);o(177);o(259);o(175);o(267);o(278);o(280);o(282);o(284);o(286);o(288);o(335);o(105);o(302);o(361);o(191);o(209);o(210);o(213);o(214);o(215);o(219);o(220);o(221);o(223);o(224);o(225);o(226);o(227);o(228);o(229);o(232);o(233);o(235);o(236);o(237);o(238);o(239);o(240);o(245);o(246);o(248);o(249);o(250);o(252);o(255);o(258);o(309);o(123);o(129);o(290);o(183);o(293);o(340);var c=o(304),l=o(350),u=o(391),h=o(343),d=o(354),y=o(450);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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){var c,l,u,h,d=[],y=!0,g=!1;try{if(u=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;y=!1}else for(;!(y=(c=u.call(o)).done)&&(d.push(c.value),d.length!==r);y=!0);}catch(t){g=!0,l=t}finally{try{if(!y&&null!=o.return&&(h=o.return(),Object(h)!==h))return}finally{if(g)throw l}}return d}}(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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _classPrivateFieldInitSpec(t,r,o){!function _checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.set(t,o)}function _classPrivateFieldSet(t,r,o){!function _classApplyDescriptorSet(t,r,o){if(r.set)r.set.call(t,o);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=o}}(t,_classExtractFieldDescriptor(t,r,"set"),o);return o}function _classPrivateFieldGet(t,r){return function _classApplyDescriptorGet(t,r){if(r.get)return r.get.call(t);return r.value}(t,_classExtractFieldDescriptor(t,r,"get"))}function _classExtractFieldDescriptor(t,r,o){if(!r.has(t))throw new TypeError("attempted to "+o+" private field on non-instance");return r.get(t)}var g=new WeakMap,v=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);_classPrivateFieldInitSpec(this,g,{writable:!0,value:null});this.stream=t;this.pdfManager=r;this.entries=[];this._xrefStms=new Set;this._cacheMap=new Map;this._pendingRefs=new l.RefSet;this._newPersistentRefNum=null;this._newTemporaryRefNum=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:"getNewPersistentRef",value:function getNewPersistentRef(t){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);var r=this._newPersistentRefNum++;this._cacheMap.set(r,t);return l.Ref.get(r,0)}},{key:"getNewTemporaryRef",value:function getNewTemporaryRef(){null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1);return l.Ref.get(this._newTemporaryRefNum++,0)}},{key:"resetNewTemporaryRef",value:function resetNewTemporaryRef(){this._newTemporaryRefNum=null}},{key:"setStartXRef",value:function setStartXRef(t){this.startXRefQueue=[t]}},{key:"parse",value:function parse(){var t,r,o,u=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(u){(0,c.warn)("Indexing all PDF objects");t=this.indexObjects()}else t=this.readXRef();t.assignXref(this);this.trailer=t;try{r=t.get("Encrypt")}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(t,'".'))}if(r instanceof l.Dict){var d=t.get("ID"),g=null!=d&&d.length?d[0]:"";r.suppressEncryption=!0;this.encrypt=new y.CipherTransformFactory(r,g,this.pdfManager.password)}try{o=t.get("Root")}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Root" reference: "'.concat(t,'".'))}if(o instanceof l.Dict)try{if(o.get("Pages")instanceof l.Dict){this.root=o;return}}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Pages" reference: "'.concat(t,'".'))}if(!u)throw new h.XRefParseException;throw new c.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,l.isCmd)(r,"trailer"))throw new c.FormatError("Invalid XRef table: could not find trailer dictionary");var o=t.getObj();o instanceof l.Dict||!o.dict||(o=o.dict);if(!(o instanceof l.Dict))throw new c.FormatError("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return o}},{key:"readXRefTable",value:function readXRefTable(t){var r,o=t.lexer.stream,u=this.tableState;o.pos=u.streamPos;t.buf1=u.parserBuf1;t.buf2=u.parserBuf2;for(;;){if(!("firstEntryNum"in u)||!("entryCount"in u)){if((0,l.isCmd)(r=t.getObj(),"trailer"))break;u.firstEntryNum=r;u.entryCount=t.getObj()}var h=u.firstEntryNum,d=u.entryCount;if(!Number.isInteger(h)||!Number.isInteger(d))throw new c.FormatError("Invalid XRef table: wrong types in subsection header");for(var y=u.entryNum;y<d;y++){u.streamPos=o.pos;u.entryNum=y;u.parserBuf1=t.buf1;u.parserBuf2=t.buf2;var g={};g.offset=t.getObj();g.gen=t.getObj();var v=t.getObj();if(v instanceof l.Cmd)switch(v.cmd){case"f":g.free=!0;break;case"n":g.uncompressed=!0}if(!Number.isInteger(g.offset)||!Number.isInteger(g.gen)||!g.free&&!g.uncompressed)throw new c.FormatError("Invalid entry in XRef subsection: ".concat(h,", ").concat(d));0===y&&g.free&&1===h&&(h=0);this.entries[y+h]||(this.entries[y+h]=g)}u.entryNum=0;u.streamPos=o.pos;u.parserBuf1=t.buf1;u.parserBuf2=t.buf2;delete u.firstEntryNum;delete u.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new c.FormatError("Invalid XRef table: unexpected first object");return r}},{key:"processXRefStream",value:function processXRefStream(t){if(!("streamState"in this)){var r=t.dict,o=r.get("W"),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),l=o[0],u=o[1],h=o[2],d=r.entryRanges;d.length>0;){var y=_slicedToArray(d,2),g=y[0],v=y[1];if(!Number.isInteger(g)||!Number.isInteger(v))throw new c.FormatError("Invalid XRef range fields: ".concat(g,", ").concat(v));if(!Number.isInteger(l)||!Number.isInteger(u)||!Number.isInteger(h))throw new c.FormatError("Invalid XRef entry fields length: ".concat(g,", ").concat(v));for(var m=r.entryNum;m<v;++m){r.entryNum=m;r.streamPos=t.pos;for(var _=0,w=0,k=0,S=0;S<l;++S){var C=t.getByte();if(-1===C)throw new c.FormatError("Invalid XRef byteWidths 'type'.");_=_<<8|C}0===l&&(_=1);for(var x=0;x<u;++x){var O=t.getByte();if(-1===O)throw new c.FormatError("Invalid XRef byteWidths 'offset'.");w=w<<8|O}for(var T=0;T<h;++T){var E=t.getByte();if(-1===E)throw new c.FormatError("Invalid XRef byteWidths 'generation'.");k=k<<8|E}var R={};R.offset=w;R.gen=k;switch(_){case 0:R.free=!0;break;case 1:R.uncompressed=!0;break;case 2:break;default:throw new c.FormatError("Invalid XRef entry type: ".concat(_))}this.entries[g+m]||(this.entries[g+m]=R)}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=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,r=/\b(startxref|\d+\s+\d+\s+obj)\b/g,o=/^(\d+)\s+(\d+)\s+obj\b/,d=new Uint8Array([116,114,97,105,108,101,114]),y=new Uint8Array([115,116,97,114,116,120,114,101,102]),g=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();var v=this.stream;v.pos=0;for(var m=v.getBytes(),_=(0,c.bytesToString)(m),w=m.length,k=v.start,S=[],C=[];k<w;){var x=m[k];if(9!==x&&10!==x&&13!==x&&32!==x)if(37!==x){var O=readToken(m,k),T=void 0;if(O.startsWith("xref")&&(4===O.length||/\s/.test(O[4]))){k+=skipUntil(m,k,d);S.push(k);k+=skipUntil(m,k,y)}else if(T=o.exec(O)){var E=0|T[1],R=0|T[2],M=k+O.length,j=void 0,L=!1;if(this.entries[E]){if(this.entries[E].gen===R)try{new u.Parser({lexer:new u.Lexer(v.makeSubStream(M))}).getObj();L=!0}catch(t){t instanceof h.ParserEOFException?(0,c.warn)("indexObjects -- checking object (".concat(O,'): "').concat(t,'".')):L=!0}}else L=!0;L&&(this.entries[E]={offset:k-v.start,gen:R,uncompressed:!0});t.lastIndex=M;var D=t.exec(_);if(D){j=t.lastIndex+1-k;if("endobj"!==D[1]){(0,c.warn)('indexObjects: Found "'.concat(D[1],'" inside of another "obj", ')+'caused by missing "endobj" -- trying to recover.');j-=D[1].length+1}}else j=w-k;var N=m.subarray(k,k+j),U=skipUntil(N,0,g);if(U<j&&N[U+5]<64){C.push(k-v.start);this._xrefStms.add(k-v.start)}k+=j}else if(O.startsWith("trailer")&&(7===O.length||/\s/.test(O[7]))){S.push(k);var G=k+O.length,$=void 0;r.lastIndex=G;var H=r.exec(_);if(H){$=r.lastIndex+1-k;if("startxref"!==H[1]){(0,c.warn)('indexObjects: Found "'.concat(H[1],'" after "trailer", ')+'caused by missing "startxref" -- trying to recover.');$-=H[1].length+1}}else $=w-k;k+=$}else k+=O.length+1}else do{if(++k>=w)break;x=m[k]}while(10!==x&&13!==x);else++k}for(var X=0,q=C;X<q.length;X++){var z=q[X];this.startXRefQueue.push(z);this.readXRef(!0)}for(var W,V,K=[],Y=!1,J=0,Z=S;J<Z.length;J++){var Q=Z[J];v.pos=Q;var ee=new u.Parser({lexer:new u.Lexer(v),xref:this,allowStreams:!0,recoveryMode:!0}),te=ee.getObj();if((0,l.isCmd)(te,"trailer")){var re=ee.getObj();if(re instanceof l.Dict){K.push(re);re.has("Encrypt")&&(Y=!0)}}}for(var ne=0,ae=[].concat(K,["genFallback"],K);ne<ae.length;ne++){var ie=ae[ne];if("genFallback"!==ie){var oe=!1;try{var se=ie.get("Root");if(!(se instanceof l.Dict))continue;var ce=se.get("Pages");if(!(ce instanceof l.Dict))continue;var le=ce.get("Count");Number.isInteger(le)&&(oe=!0)}catch(t){V=t;continue}if(oe&&(!Y||ie.has("Encrypt"))&&ie.has("ID"))return ie;W=ie}else{if(!V)break;this._generationFallback=!0}}if(W)return W;if(this.topDict)return this.topDict;throw new c.InvalidPDFException("Invalid PDF structure.")}},{key:"readXRef",value:function readXRef(){for(var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.stream,o=new Set;this.startXRefQueue.length;){try{var y=this.startXRefQueue[0];if(o.has(y)){(0,c.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift();continue}o.add(y);r.pos=y+r.start;var v=new u.Parser({lexer:new u.Lexer(r),xref:this,allowStreams:!0}),m=v.getObj(),_=void 0;if((0,l.isCmd)(m,"xref")){_=this.processXRefTable(v);this.topDict||(this.topDict=_);m=_.get("XRefStm");if(Number.isInteger(m)&&!this._xrefStms.has(m)){var w;this._xrefStms.add(m);this.startXRefQueue.push(m);null!==(w=_classPrivateFieldGet(this,g))&&void 0!==w||_classPrivateFieldSet(this,g,m)}}else{if(!Number.isInteger(m))throw new c.FormatError("Invalid XRef stream header");if(!(Number.isInteger(v.getObj())&&(0,l.isCmd)(v.getObj(),"obj")&&(m=v.getObj())instanceof d.BaseStream))throw new c.FormatError("Invalid XRef stream");_=this.processXRefStream(m);this.topDict||(this.topDict=_);if(!_)throw new c.FormatError("Failed to read XRef stream")}m=_.get("Prev");Number.isInteger(m)?this.startXRefQueue.push(m):m instanceof l.Ref&&this.startXRefQueue.push(m.num)}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)("(while reading XRef): "+t)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!t)throw new h.XRefParseException}},{key:"lastXRefStreamPos",get:function get(){var t;return null!==(t=_classPrivateFieldGet(this,g))&&void 0!==t?t:this._xrefStms.size>0?Math.max.apply(Math,_toConsumableArray(this._xrefStms)):null}},{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 l.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 l.Ref))throw new Error("ref object is not a reference");var o=t.num,u=this._cacheMap.get(o);if(void 0!==u){u instanceof l.Dict&&!u.objId&&(u.objId=t.toString());return u}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,c.warn)("Ignoring circular reference: ".concat(t,"."));return l.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 l.Dict?h.objId=t.toString():h instanceof d.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],y=t.gen,g=t.num;if(r.gen!==y){var v="Inconsistent generation in XRef: ".concat(t);if(this._generationFallback&&r.gen<y){(0,c.warn)(v);return this.fetchUncompressed(l.Ref.get(g,r.gen),r,o)}throw new h.XRefEntryException(v)}var m=this.stream.makeSubStream(r.offset+this.stream.start),_=new u.Parser({lexer:new u.Lexer(m),xref:this,allowStreams:!0}),w=_.getObj(),k=_.getObj(),S=_.getObj();if(w!==g||k!==y||!(S instanceof l.Cmd))throw new h.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t));if("obj"!==S.cmd){if(S.cmd.startsWith("obj")){g=parseInt(S.cmd.substring(3),10);if(!Number.isNaN(g))return g}throw new h.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t))}(r=this.encrypt&&!o?_.getObj(this.encrypt.createCipherTransform(g,y)):_.getObj())instanceof d.BaseStream||this._cacheMap.set(g,r);return r}},{key:"fetchCompressed",value:function fetchCompressed(t,r){var o=r.offset,y=this.fetch(l.Ref.get(o,0));if(!(y instanceof d.BaseStream))throw new c.FormatError("bad ObjStm stream");var g=y.dict.get("First"),v=y.dict.get("N");if(!Number.isInteger(g)||!Number.isInteger(v))throw new c.FormatError("invalid first and n parameters for ObjStm stream");for(var m=new u.Parser({lexer:new u.Lexer(y),xref:this,allowStreams:!0}),_=new Array(v),w=new Array(v),k=0;k<v;++k){var S=m.getObj();if(!Number.isInteger(S))throw new c.FormatError("invalid object number in the ObjStm stream: ".concat(S));var C=m.getObj();if(!Number.isInteger(C))throw new c.FormatError("invalid object offset in the ObjStm stream: ".concat(C));_[k]=S;w[k]=C}for(var x=(y.start||0)+g,O=new Array(v),T=0;T<v;++T){var E=T<v-1?w[T+1]-w[T]:void 0;if(E<0)throw new c.FormatError("Invalid offset in the ObjStm stream.");var R=(m=new u.Parser({lexer:new u.Lexer(y.makeSubStream(x+w[T],E,y.dict)),xref:this,allowStreams:!0})).getObj();O[T]=R;if(!(R instanceof d.BaseStream)){var M=_[T],j=this.entries[M];j&&j.offset===o&&j.gen===T&&this._cacheMap.set(M,R)}}if(void 0===(r=O[r.gen]))throw new h.XRefEntryException("Bad (compressed) XRef entry: ".concat(t));return r}},{key:"fetchIfRefAsync",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(t,r){return _regeneratorRuntime().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(!(t instanceof l.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(_regeneratorRuntime().mark((function _callee2(t,r){return _regeneratorRuntime().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=v},(t,r,o)=>{o(56);o(104);o(113);o(2);o(54);o(105);o(130);o(131);o(132);o(133);o(134);o(290);o(300);o(296);Object.defineProperty(r,"__esModule",{value:!0});r.MessageHandler=void 0;o(183);o(143);o(293);o(145);o(137);o(175);o(365);o(177);o(174);var c=o(304);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}function _classPrivateMethodInitSpec(t,r){!function _checkPrivateRedeclaration(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,r);r.add(t)}function _classPrivateMethodGet(t,r,o){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return o}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 l=1,u=2,h=1,d=2,y=3,g=4,v=5,m=6,_=7,w=8;function wrapReason(t){t instanceof Error||"object"===_typeof(t)&&null!==t||(0,c.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.');switch(t.name){case"AbortException":return new c.AbortException(t.message);case"MissingPDFException":return new c.MissingPDFException(t.message);case"PasswordException":return new c.PasswordException(t.message,t.code);case"UnexpectedResponseException":return new c.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new c.UnknownErrorException(t.message,t.details);default:return new c.UnknownErrorException(t.message,t.toString())}}var k=new WeakSet,S=new WeakSet,C=new WeakSet,x=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);_classPrivateMethodInitSpec(this,C);_classPrivateMethodInitSpec(this,S);_classPrivateMethodInitSpec(this,k);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)_classPrivateMethodGet(c,S,_processStreamMessage2).call(c,r);else if(r.callback){var h=r.callbackId,d=c.callbackCapabilities[h];if(!d)throw new Error("Cannot resolve callback ".concat(h));delete c.callbackCapabilities[h];if(r.callback===l)d.resolve(r.data);else{if(r.callback!==u)throw new Error("Unexpected callback case");d.reject(wrapReason(r.reason))}}else{var y=c.actionHandler[r.action];if(!y)throw new Error("Unknown action from worker: ".concat(r.action));if(r.callbackId){var g=c.sourceName,v=r.sourceName;new Promise((function(t){t(y(r.data))})).then((function(t){o.postMessage({sourceName:g,targetName:v,callback:l,callbackId:r.callbackId,data:t})}),(function(t){o.postMessage({sourceName:g,targetName:v,callback:u,callbackId:r.callbackId,reason:wrapReason(t)})}))}else r.streamId?_classPrivateMethodGet(c,k,_createStreamSink2).call(c,r):y(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 l=this.callbackId++,u=new c.PromiseCapability;this.callbackCapabilities[l]=u;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:l,data:r},o)}catch(t){u.reject(t)}return u.promise}},{key:"sendWithStream",value:function sendWithStream(t,r,o,l){var u=this,d=this.streamId++,y=this.sourceName,g=this.targetName,v=this.comObj;return new ReadableStream({start:function start(o){var h=new c.PromiseCapability;u.streamControllers[d]={controller:o,startCall:h,pullCall:null,cancelCall:null,isClosed:!1};v.postMessage({sourceName:y,targetName:g,action:t,streamId:d,data:r,desiredSize:o.desiredSize},l);return h.promise},pull:function pull(t){var r=new c.PromiseCapability;u.streamControllers[d].pullCall=r;v.postMessage({sourceName:y,targetName:g,stream:m,streamId:d,desiredSize:t.desiredSize});return r.promise},cancel:function cancel(t){(0,c.assert)(t instanceof Error,"cancel must have a valid reason");var r=new c.PromiseCapability;u.streamControllers[d].cancelCall=r;u.streamControllers[d].isClosed=!0;v.postMessage({sourceName:y,targetName:g,stream:h,streamId:d,reason:wrapReason(t)});return r.promise}},o)}},{key:"destroy",value:function destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);return MessageHandler}();r.MessageHandler=x;function _createStreamSink2(t){var r=t.streamId,o=this.sourceName,l=t.sourceName,u=this.comObj,h=this,d=this.actionHandler[t.action],m={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 y=this.desiredSize;this.desiredSize-=h;if(y>0&&this.desiredSize<=0){this.sinkCapability=new c.PromiseCapability;this.ready=this.sinkCapability.promise}u.postMessage({sourceName:o,targetName:l,stream:g,streamId:r,chunk:t},d)}},close:function close(){if(!this.isCancelled){this.isCancelled=!0;u.postMessage({sourceName:o,targetName:l,stream:y,streamId:r});delete h.streamSinks[r]}},error:function error(t){(0,c.assert)(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;u.postMessage({sourceName:o,targetName:l,stream:v,streamId:r,reason:wrapReason(t)})}},sinkCapability:new c.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};m.sinkCapability.resolve();m.ready=m.sinkCapability.promise;this.streamSinks[r]=m;new Promise((function(r){r(d(t.data,m))})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:w,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:w,streamId:r,reason:wrapReason(t)})}))}function _processStreamMessage2(t){var r=t.streamId,o=this.sourceName,l=t.sourceName,u=this.comObj,k=this.streamControllers[r],S=this.streamSinks[r];switch(t.stream){case w:t.success?k.startCall.resolve():k.startCall.reject(wrapReason(t.reason));break;case _:t.success?k.pullCall.resolve():k.pullCall.reject(wrapReason(t.reason));break;case m:if(!S){u.postMessage({sourceName:o,targetName:l,stream:_,streamId:r,success:!0});break}S.desiredSize<=0&&t.desiredSize>0&&S.sinkCapability.resolve();S.desiredSize=t.desiredSize;new Promise((function(t){var r;t(null===(r=S.onPull)||void 0===r?void 0:r.call(S))})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:_,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:_,streamId:r,reason:wrapReason(t)})}));break;case g:(0,c.assert)(k,"enqueue should have stream controller");if(k.isClosed)break;k.controller.enqueue(t.chunk);break;case y:(0,c.assert)(k,"close should have stream controller");if(k.isClosed)break;k.isClosed=!0;k.controller.close();_classPrivateMethodGet(this,C,_deleteStreamController2).call(this,k,r);break;case v:(0,c.assert)(k,"error should have stream controller");k.controller.error(wrapReason(t.reason));_classPrivateMethodGet(this,C,_deleteStreamController2).call(this,k,r);break;case d:t.success?k.cancelCall.resolve():k.cancelCall.reject(wrapReason(t.reason));_classPrivateMethodGet(this,C,_deleteStreamController2).call(this,k,r);break;case h:if(!S)break;new Promise((function(r){var o;r(null===(o=S.onCancel)||void 0===o?void 0:o.call(S,wrapReason(t.reason)))})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:d,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:d,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")}}function _deleteStreamController2(t,r){return _deleteStreamController3.apply(this,arguments)}function _deleteStreamController3(){_deleteStreamController3=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)}))}}(_regeneratorRuntime().mark((function _callee(t,r){var o,c,l;return _regeneratorRuntime().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:u.next=2;return Promise.allSettled([null===(o=t.startCall)||void 0===o?void 0:o.promise,null===(c=t.pullCall)||void 0===c?void 0:c.promise,null===(l=t.cancelCall)||void 0===l?void 0:l.promise]);case 2:delete this.streamControllers[r];case 3:case"end":return u.stop()}}),_callee,this)})));return _deleteStreamController3.apply(this,arguments)}},(t,r,o)=>{o(293);o(114);o(175);o(123);o(129);o(113);o(137);o(177);o(145);o(130);o(131);o(132);o(133);o(134);o(300);Object.defineProperty(r,"__esModule",{value:!0});r.PDFWorkerStream=void 0;o(290);o(296);o(2);o(54);o(56);o(104);o(143);o(183);o(105);var c=o(304);function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},r=Object.prototype,o=r.hasOwnProperty,c=Object.defineProperty||function(t,r,o){t[r]=o.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){return Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,l){var u=r&&r.prototype instanceof Generator?r:Generator,h=Object.create(u.prototype),d=new Context(l||[]);return c(h,"_invoke",{value:makeInvokeMethod(t,o,d)}),h}function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,u,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(values([])));m&&m!==r&&o.call(m,u)&&(g=m);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(g);function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}function AsyncIterator(t,r){function invoke(c,l,u,h){var d=tryCatch(t[c],t,l);if("throw"!==d.type){var y=d.arg,g=y.value;return g&&"object"==_typeof(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){y.value=t,u(y)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var l;c(this,"_invoke",{value:function value(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return l=l?l.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,o){var c="suspendedStart";return function(l,u){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===l)throw u;return{value:void 0,done:!0}}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===y)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c="executing";var g=tryCatch(t,r,o);if("normal"===g.type){if(c=o.done?"completed":"suspendedYield",g.arg===y)continue;return{value:g.arg,done:o.done}}"throw"===g.type&&(c="completed",o.method="throw",o.arg=g.arg)}}}function maybeInvokeDelegate(t,r){var o=r.method,c=t.iterator[o];if(void 0===c)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var l=tryCatch(c,t.iterator,r.arg);if("throw"===l.type)return r.method="throw",r.arg=l.arg,r.delegate=null,y;var u=l.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),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)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,l=function next(){for(;++c<t.length;)if(o.call(t,c))return next.value=t[c],next.done=!1,next;return next.value=void 0,next.done=!0,next};return l.next=l}}throw new TypeError(_typeof(t)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,c(_,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),c(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,d,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},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()}))},defineIteratorMethods(_),define(_,d,"Generator"),define(_,u,(function(){return this})),define(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),o=[];for(var c in r)o.push(c);return o.reverse(),function next(){for(;o.length;){var t=o.pop();if(t in r)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},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 r=this;function handle(o,c){return u.type="throw",u.arg=t,r.next=o,c&&(r.method="next",r.arg=void 0),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],u=l.completion;if("root"===l.tryLoc)return handle("end");if(l.tryLoc<=this.prev){var h=o.call(l,"catchLoc"),d=o.call(l,"finallyLoc");if(h&&d){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0);if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}else if(h){if(this.prev<l.catchLoc)return handle(l.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return handle(l.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.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:{};return h.type=t,h.arg=r,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),y}},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,r,o){return this.delegate={iterator:values(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function asyncGeneratorStep(t,r,o,c,l,u,h){try{var d=t[u](h),y=d.value}catch(t){o(t);return}d.done?r(y):Promise.resolve(y).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 _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=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,(l=c.key,u=void 0,u=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var c=o.call(t,r||"default");if("object"!==_typeof(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(l,"string"),"symbol"===_typeof(u)?u:String(u)),c)}var l,u}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 PDFWorkerStream(t){_classCallCheck(this,PDFWorkerStream);this._msgHandler=t;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFWorkerStream,[{key:"getFullReader",value:function getFullReader(){(0,c.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new u(this._msgHandler);return this._fullRequestReader}},{key:"getRangeReader",value:function getRangeReader(t,r){var o=new h(t,r,this._msgHandler);this._rangeRequestReaders.push(o);return o}},{key:"cancelAllRequests",value:function cancelAllRequests(t){var r;null===(r=this._fullRequestReader)||void 0===r||r.cancel(t);var o,c=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(c.s();!(o=c.n()).done;){o.value.cancel(t)}}catch(t){c.e(t)}finally{c.f()}}}]);return PDFWorkerStream}();r.PDFWorkerStream=l;var u=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(_regeneratorRuntime().mark((function _callee(){var t,r;return _regeneratorRuntime().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}(),h=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(_regeneratorRuntime().mark((function _callee2(){var t,r;return _regeneratorRuntime().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]={exports:{}};t[o].call(l.exports,l,l.exports,__w_pdfjs_require__);return l.exports}var o={};(()=>{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})()));