/** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2022 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=r():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],r):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=r():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r()}(globalThis,(()=>(()=>{var t=[,(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}Object.defineProperty(r,"__esModule",{value:!0});r.WorkerTask=r.WorkerMessageHandler=void 0;var c=o(2),l=o(130),u=o(131),h=o(133),d=o(196),g=o(190),y=o(4),m=o(227),v=o(228);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="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",h=c.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,c){var l=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(l.prototype),h=new Context(c||[]);return u._invoke=function(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 doneResult()}for(o.method=l,o.arg=u;;){var h=o.delegate;if(h){var g=maybeInvokeDelegate(h,o);if(g){if(g===d)continue;return g}}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 y=tryCatch(t,r,o);if("normal"===y.type){if(c=o.done?"completed":"suspendedYield",y.arg===d)continue;return{value:y.arg,done:o.done}}"throw"===y.type&&(c="completed",o.method="throw",o.arg=y.arg)}}}(t,o,h),u}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 d={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var g={};define(g,l,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(values([])));m&&m!==r&&o.call(m,l)&&(g=m);var v=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 g=d.arg,y=g.value;return y&&"object"==_typeof(y)&&o.call(y,"__await")?r.resolve(y.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(y).then((function(t){g.value=t,u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var c;this._invoke=function(t,o){function callInvokeWithMethodAndArg(){return new r((function(r,c){invoke(t,o,r,c)}))}return c=c?c.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,r){var o=t.iterator[r.method];if(void 0===o){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,maybeInvokeDelegate(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var c=tryCatch(o,t.iterator,r.arg);if("throw"===c.type)return r.method="throw",r.arg=c.arg,r.delegate=null,d;var l=c.arg;return l?l.done?(r[t.resultName]=l.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}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){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,u=function next(){for(;++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=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&o.call(l,"finallyLoc")&&this.prev=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),resetTryEntry(o),d}},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),d}},t}function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _arrayWithHoles(t){if(Array.isArray(t))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=c.VerbosityLevel.INFOS?Date.now():0;o.getOperatorList({handler:D,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);if(!u.terminated){D.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));D.on("GetTextContent",(function wphExtractText(t,r){var l=t.pageIndex;o.getPage(l).then((function(o){var u=new w("GetTextContent: page "+l);startWorkerTask(u);var h=C>=c.VerbosityLevel.INFOS?Date.now():0;o.extractTextContent({handler:D,task:u,sink:r,includeMarkedContent:t.includeMarkedContent,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getTextContent: time=")+"".concat(Date.now()-h,"ms"));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));D.on("GetStructTree",(function wphGetStructTree(t){return o.getPage(t.pageIndex).then((function(t){return o.ensure(t,"getStructTree")}))}));D.on("FontFallback",(function(t){return o.fontFallback(t.id,D)}));D.on("Cleanup",(function wphCleanup(t){return o.cleanup(!0)}));D.on("Terminate",(function wphTerminate(t){_=!0;var r=[];if(o){o.terminate(new c.AbortException("Worker was terminated."));var l=o.cleanup();r.push(l);o=null}else(0,d.clearGlobalCaches)();k&&k(new c.AbortException("Worker was terminated."));var u,h=_createForOfIteratorHelper(S);try{for(h.s();!(u=h.n()).done;){var g=u.value;r.push(g.finished);g.terminate()}}catch(t){h.e(t)}finally{h.f()}return Promise.all(r).then((function(){D.destroy();D=null}))}));D.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();D.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof c.PasswordException){var r=new w("PasswordException: response ".concat(t.code));startWorkerTask(r);D.sendWithPromise("PasswordRequest",t).then((function(t){var c=t.password;finishWorkerTask(r);o.updatePassword(c);pdfManagerReady()})).catch((function(){finishWorkerTask(r);D.send("DocException",t)}))}else t instanceof c.InvalidPDFException||t instanceof c.MissingPDFException||t instanceof c.UnexpectedResponseException||t instanceof c.UnknownErrorException?D.send("DocException",t):D.send("DocException",new c.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof u.XRefParseException){o.requestLoadedStream();o.onLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)}))}else onFailure(t)}))}ensureNotTerminated();getPdfManager(t,{maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,useSystemFonts:t.useSystemFonts,cMapUrl:t.cMapUrl,standardFontDataUrl:t.standardFontDataUrl},t.enableXfa).then((function(t){if(_){t.terminate(new c.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).onLoadedStream().then((function(t){D.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return j}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new m.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=_;"undefined"==typeof window&&!y.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&_.initializeFromPort(self)},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.LINE_FACTOR=r.LINE_DESCENT_FACTOR=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FeatureTest=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationEditorType=r.AnnotationEditorPrefix=r.AnnotationEditorParamsType=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0;r.arrayByteLength=arrayByteLength;r.arraysToBytes=function arraysToBytes(t){var r=t.length;if(1===r&&t[0]instanceof Uint8Array)return t[0];for(var o=0,c=0;c1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(o&&"string"==typeof t){if(o.addDefaultProtocol&&t.startsWith("www.")){var c=t.match(/\./g);c&&c.length>=2&&(t="http://".concat(t))}if(o.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}var l=r?new URL(t,r):new URL(t);if(_isValidProtocol(l))return l}catch(t){}return null};r.escapeString=function escapeString(t){return t.replace(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,r=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return r.join("")};r.getVerbosityLevel=function getVerbosityLevel(){return l};r.info=function info(t){l>=c.INFOS&&console.log("Info: ".concat(t))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.byteLength};r.isArrayEqual=function isArrayEqual(t,r){if(t.length!==r.length)return!1;for(var o=0,c=t.length;o=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(c.s();!(r=c.n()).done;){var l=(d=r.value,g=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(d)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(d,g)||_unsupportedIterableToArray(d,g)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],h=l[1];o[u]=h}}catch(t){c.e(t)}finally{c.f()}var d,g;return o};r.objectSize=function objectSize(t){return Object.keys(t).length};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(l=t)};r.shadow=shadow;r.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};r.stringToBytes=stringToBytes;r.stringToPDFString=function stringToPDFString(t){if(t[0]>="ï"){var r;"þ"===t[0]&&"ÿ"===t[1]?r="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?r="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(r="utf-8");if(r)try{var o=new TextDecoder(r,{fatal:!0}),c=stringToBytes(t);return o.decode(c)}catch(t){warn('stringToPDFString: "'.concat(t,'".'))}}for(var l=[],u=0,h=t.length;u>8&255),String.fromCharCode(255&l))}return r.join("")};r.stringToUTF8String=stringToUTF8String;r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;o(3);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=c.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function shadow(t,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!1});return o}var u=function BaseExceptionClosure(){function BaseException(t,r){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=r}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=u;var h=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,o){var c;_classCallCheck(this,PasswordException);(c=r.call(this,t,"PasswordException")).code=o;return c}return _createClass(PasswordException)}(u);r.PasswordException=h;var d=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var c;_classCallCheck(this,UnknownErrorException);(c=r.call(this,t,"UnknownErrorException")).details=o;return c}return _createClass(UnknownErrorException)}(u);r.UnknownErrorException=d;var g=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(t){_classCallCheck(this,InvalidPDFException);return r.call(this,t,"InvalidPDFException")}return _createClass(InvalidPDFException)}(u);r.InvalidPDFException=g;var y=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return _createClass(MissingPDFException)}(u);r.MissingPDFException=y;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)}(u);r.UnexpectedResponseException=m;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return _createClass(FormatError)}(u);r.FormatError=v;var 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)}(u);r.AbortException=w;function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),c=0;ct[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 g,y,m,v,w,_,k,S,C=[],x=[[],[]],O=0;O<2;++O){if(0===O){y=6*t-12*o+6*l;g=-3*t+9*o-9*l+3*h;m=3*o-3*t}else{y=6*r-12*c+6*u;g=-3*r+9*c-9*u+3*d;m=3*c-3*r}if(Math.abs(g)<1e-12){if(Math.abs(y)<1e-12)continue;0<(v=-m/y)&&v<1&&C.push(v)}else{k=y*y-4*m*g;S=Math.sqrt(k);if(!(k<0)){0<(w=(-y+S)/(2*g))&&w<1&&C.push(w);0<(_=(-y-S)/(2*g))&&_<1&&C.push(_)}}}for(var T,E=C.length,M=E;E--;){T=1-(v=C[E]);x[0][E]=T*T*T*t+3*T*T*v*o+3*T*v*v*l+v*v*v*h;x[1][E]=T*T*T*r+3*T*T*v*c+3*T*v*v*u+v*v*v*d}x[0][M]=t;x[1][M]=r;x[0][M+1]=h;x[1][M+1]=d;x[0].length=x[1].length=M+2;return[Math.min.apply(Math,_toConsumableArray(x[0])),Math.min.apply(Math,_toConsumableArray(x[1])),Math.max.apply(Math,_toConsumableArray(x[0])),Math.max.apply(Math,_toConsumableArray(x[1]))]}}]);return Util}();r.Util=S;var C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(t){return decodeURIComponent(escape(t))}},(t,r,o)=>{"use strict";var c=o(4);if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&c.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&c.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&c.isNodeJS&&(globalThis.DOMMatrix=require("dommatrix/dist/dommatrix.js"))}();!function checkReadableStream(){!globalThis.ReadableStream&&c.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream)}();!function checkArrayAt(){Array.prototype.at||o(5)}();!function checkTypedArrayAt(){Uint8Array.prototype.at||o(77)}();!function checkStructuredClone(){globalThis.structuredClone||o(87)}()}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isNodeJS=void 0;function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var o=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=o},(t,r,o)=>{o(6);var c=o(76);t.exports=c("Array","at")},(t,r,o)=>{"use strict";var c=o(7),l=o(42),u=o(66),h=o(64),d=o(71);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(8),l=o(9).f,u=o(46),h=o(50),d=o(40),g=o(58),y=o(70);t.exports=function(t,r){var o,m,v,w,_,k=t.target,S=t.global,C=t.stat;if(o=S?c:C?c[k]||d(k,{}):(c[k]||{}).prototype)for(m in r){w=r[m];v=t.dontCallGetSet?(_=l(o,m))&&_.value:o[m];if(!y(S?m:k+(C?".":"#")+m,t.forced)&&void 0!==v){if(typeof w==typeof v)continue;g(w,v)}(t.sham||v&&v.sham)&&u(w,"sham",!0);h(o,m,w,t)}}},t=>{var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(t,r,o)=>{var c=o(10),l=o(12),u=o(14),h=o(15),d=o(16),g=o(21),y=o(41),m=o(44),v=Object.getOwnPropertyDescriptor;r.f=c?v:function getOwnPropertyDescriptor(t,r){t=d(t);r=g(r);if(m)try{return v(t,r)}catch(t){}if(y(t,r))return h(!l(u.f,t,r),t[r])}},(t,r,o)=>{var c=o(11);t.exports=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,r,o)=>{var c=o(13),l=Function.prototype.call;t.exports=c?l.bind(l):function(){return l.apply(l,arguments)}},(t,r,o)=>{var c=o(11);t.exports=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,r)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,l=c&&!o.call({1:2},1);r.f=l?function propertyIsEnumerable(t){var r=c(this,t);return!!r&&r.enumerable}:o},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,o)=>{var c=o(17),l=o(20);t.exports=function(t){return c(l(t))}},(t,r,o)=>{var c=o(18),l=o(11),u=o(19),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(13),l=Function.prototype,u=l.bind,h=l.call,d=c&&u.bind(h,h);t.exports=c?function(t){return t&&d(t)}:function(t){return t&&function(){return h.apply(t,arguments)}}},(t,r,o)=>{var c=o(18),l=c({}.toString),u=c("".slice);t.exports=function(t){return u(l(t),8,-1)}},t=>{var r=TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},(t,r,o)=>{var c=o(22),l=o(25);t.exports=function(t){var r=c(t,"string");return l(r)?r:r+""}},(t,r,o)=>{var c=o(12),l=o(23),u=o(25),h=o(32),d=o(35),g=o(36),y=TypeError,m=g("toPrimitive");t.exports=function(t,r){if(!l(t)||u(t))return t;var o,g=h(t,m);if(g){void 0===r&&(r="default");o=c(g,t,r);if(!l(o)||u(o))return o;throw y("Can't convert object to primitive value")}void 0===r&&(r="number");return d(t,r)}},(t,r,o)=>{var c=o(24);t.exports=function(t){return"object"==typeof t?null!==t:c(t)}},t=>{t.exports=function(t){return"function"==typeof t}},(t,r,o)=>{var c=o(26),l=o(24),u=o(27),h=o(28),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(8),l=o(24),aFunction=function(t){return l(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(c[t]):c[t]&&c[t][r]}},(t,r,o)=>{var c=o(18);t.exports=c({}.isPrototypeOf)},(t,r,o)=>{var c=o(29);t.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var c=o(30),l=o(11);t.exports=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&c&&c<41}))},(t,r,o)=>{var c,l,u=o(8),h=o(31),d=u.process,g=u.Deno,y=d&&d.versions||g&&g.version,m=y&&y.v8;m&&(l=(c=m.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1]));!l&&h&&(!(c=h.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=h.match(/Chrome\/(\d+)/))&&(l=+c[1]);t.exports=l},(t,r,o)=>{var c=o(26);t.exports=c("navigator","userAgent")||""},(t,r,o)=>{var c=o(33);t.exports=function(t,r){var o=t[r];return null==o?void 0:c(o)}},(t,r,o)=>{var c=o(24),l=o(34),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(12),l=o(24),u=o(23),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(8),l=o(37),u=o(41),h=o(43),d=o(29),g=o(28),y=l("wks"),m=c.Symbol,v=m&&m.for,w=g?m:m&&m.withoutSetter||h;t.exports=function(t){if(!u(y,t)||!d&&"string"!=typeof y[t]){var r="Symbol."+t;d&&u(m,t)?y[t]=m[t]:y[t]=g&&v?v(r):w(r)}return y[t]}},(t,r,o)=>{var c=o(38),l=o(39);(t.exports=function(t,r){return l[t]||(l[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.23.5",mode:c?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,r,o)=>{var c=o(8),l=o(40),u="__core-js_shared__",h=c[u]||l(u,{});t.exports=h},(t,r,o)=>{var c=o(8),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(18),l=o(42),u=c({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return u(l(t),r)}},(t,r,o)=>{var c=o(20),l=Object;t.exports=function(t){return l(c(t))}},(t,r,o)=>{var c=o(18),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(10),l=o(11),u=o(45);t.exports=!c&&!l((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var c=o(8),l=o(23),u=c.document,h=l(u)&&l(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var c=o(10),l=o(47),u=o(15);t.exports=c?function(t,r,o){return l.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},(t,r,o)=>{var c=o(10),l=o(44),u=o(48),h=o(49),d=o(21),g=TypeError,y=Object.defineProperty,m=Object.getOwnPropertyDescriptor,v="enumerable",w="configurable",_="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&&_ in o&&!o.writable){var c=m(t,r);if(c&&c.writable){t[r]=o.value;o={configurable:w in o?o.configurable:c.configurable,enumerable:v in o?o.enumerable:c.enumerable,writable:!1}}}return y(t,r,o)}:y:function defineProperty(t,r,o){h(t);r=d(r);h(o);if(l)try{return y(t,r,o)}catch(t){}if("get"in o||"set"in o)throw g("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var c=o(10),l=o(11);t.exports=c&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,r,o)=>{var c=o(23),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(24),l=o(47),u=o(51),h=o(40);t.exports=function(t,r,o,d){d||(d={});var g=d.enumerable,y=void 0!==d.name?d.name:r;c(o)&&u(o,y,d);if(d.global)g?t[r]=o:h(r,o);else{try{d.unsafe?t[r]&&(g=!0):delete t[r]}catch(t){}g?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(11),l=o(24),u=o(41),h=o(10),d=o(52).CONFIGURABLE,g=o(53),y=o(54),m=y.enforce,v=y.get,w=Object.defineProperty,_=h&&!c((function(){return 8!==w((function(){}),"length",{value:8}).length})),k=String(String).split("String"),S=t.exports=function(t,r,o){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");o&&o.getter&&(r="get "+r);o&&o.setter&&(r="set "+r);(!u(t,"name")||d&&t.name!==r)&&(h?w(t,"name",{value:r,configurable:!0}):t.name=r);_&&o&&u(o,"arity")&&t.length!==o.arity&&w(t,"length",{value:o.arity});try{o&&u(o,"constructor")&&o.constructor?h&&w(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var c=m(t);u(c,"source")||(c.source=k.join("string"==typeof r?r:""));return t};Function.prototype.toString=S((function toString(){return l(this)&&v(this).source||g(this)}),"toString")},(t,r,o)=>{var c=o(10),l=o(41),u=Function.prototype,h=c&&Object.getOwnPropertyDescriptor,d=l(u,"name"),g=d&&"something"===function something(){}.name,y=d&&(!c||c&&h(u,"name").configurable);t.exports={EXISTS:d,PROPER:g,CONFIGURABLE:y}},(t,r,o)=>{var c=o(18),l=o(24),u=o(39),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(55),d=o(8),g=o(18),y=o(23),m=o(46),v=o(41),w=o(39),_=o(56),k=o(57),S="Object already initialized",C=d.TypeError,x=d.WeakMap;if(h||w.state){var O=w.state||(w.state=new x),T=g(O.get),E=g(O.has),M=g(O.set);c=function(t,r){if(E(O,t))throw new C(S);r.facade=t;M(O,t,r);return r};l=function(t){return T(O,t)||{}};u=function(t){return E(O,t)}}else{var R=_("state");k[R]=!0;c=function(t,r){if(v(t,R))throw new C(S);r.facade=t;m(t,R,r);return r};l=function(t){return v(t,R)?t[R]:{}};u=function(t){return v(t,R)}}t.exports={set:c,get:l,has:u,enforce:function(t){return u(t)?l(t):c(t,{})},getterFor:function(t){return function(r){var o;if(!y(r)||(o=l(r)).type!==t)throw C("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var c=o(8),l=o(24),u=o(53),h=c.WeakMap;t.exports=l(h)&&/native code/.test(u(h))},(t,r,o)=>{var c=o(37),l=o(43),u=c("keys");t.exports=function(t){return u[t]||(u[t]=l(t))}},t=>{t.exports={}},(t,r,o)=>{var c=o(41),l=o(59),u=o(9),h=o(47);t.exports=function(t,r,o){for(var d=l(r),g=h.f,y=u.f,m=0;m{var c=o(26),l=o(18),u=o(60),h=o(69),d=o(49),g=l([].concat);t.exports=c("Reflect","ownKeys")||function ownKeys(t){var r=u.f(d(t)),o=h.f;return o?g(r,o(t)):r}},(t,r,o)=>{var c=o(61),l=o(68).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return c(t,l)}},(t,r,o)=>{var c=o(18),l=o(41),u=o(16),h=o(62).indexOf,d=o(57),g=c([].push);t.exports=function(t,r){var o,c=u(t),y=0,m=[];for(o in c)!l(d,o)&&l(c,o)&&g(m,o);for(;r.length>y;)l(c,o=r[y++])&&(~h(m,o)||g(m,o));return m}},(t,r,o)=>{var c=o(16),l=o(63),u=o(66),createMethod=function(t){return function(r,o,h){var d,g=c(r),y=u(g),m=l(h,y);if(t&&o!=o){for(;y>m;)if((d=g[m++])!=d)return!0}else for(;y>m;m++)if((t||m in g)&&g[m]===o)return t||m||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var c=o(64),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(65);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(67);t.exports=function(t){return c(t.length)}},(t,r,o)=>{var c=o(64),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(11),l=o(24),u=/#|\.prototype\./,isForced=function(t,r){var o=d[h(t)];return o==y||o!=g&&(l(r)?c(r):!!r)},h=isForced.normalize=function(t){return String(t).replace(u,".").toLowerCase()},d=isForced.data={},g=isForced.NATIVE="N",y=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{var c=o(36),l=o(72),u=o(47).f,h=c("unscopables"),d=Array.prototype;null==d[h]&&u(d,h,{configurable:!0,value:l(null)});t.exports=function(t){d[h][t]=!0}},(t,r,o)=>{var c,l=o(49),u=o(73),h=o(68),d=o(57),g=o(75),y=o(45),m=o(56),v=m("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"