3274 lines
770 KiB
JavaScript
3274 lines
770 KiB
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(root, factory) {
|
||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||
|
module.exports = root.pdfjsSandbox = factory();
|
||
|
else if(typeof define === 'function' && define.amd)
|
||
|
define("pdfjs-dist/build/pdf.sandbox", [], () => { return (root.pdfjsSandbox = factory()); });
|
||
|
else if(typeof exports === 'object')
|
||
|
exports["pdfjs-dist/build/pdf.sandbox"] = root.pdfjsSandbox = factory();
|
||
|
else
|
||
|
root["pdfjs-dist/build/pdf.sandbox"] = root.pdfjsSandbox = factory();
|
||
|
})(globalThis, () => {
|
||
|
return /******/ (() => { // webpackBootstrap
|
||
|
/******/ "use strict";
|
||
|
/******/ var __webpack_modules__ = ([
|
||
|
/* 0 */,
|
||
|
/* 1 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var apply = __w_pdfjs_require__(68);
|
||
|
var wrapErrorConstructorWithCause = __w_pdfjs_require__(69);
|
||
|
var WEB_ASSEMBLY = 'WebAssembly';
|
||
|
var WebAssembly = global[WEB_ASSEMBLY];
|
||
|
var FORCED = Error('e', { cause: 7 }).cause !== 7;
|
||
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
||
|
var O = {};
|
||
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
||
|
$({
|
||
|
global: true,
|
||
|
constructor: true,
|
||
|
arity: 1,
|
||
|
forced: FORCED
|
||
|
}, O);
|
||
|
};
|
||
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
||
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
||
|
var O = {};
|
||
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
||
|
$({
|
||
|
target: WEB_ASSEMBLY,
|
||
|
stat: true,
|
||
|
constructor: true,
|
||
|
arity: 1,
|
||
|
forced: FORCED
|
||
|
}, O);
|
||
|
}
|
||
|
};
|
||
|
exportGlobalErrorCauseWrapper('Error', function (init) {
|
||
|
return function Error(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
||
|
return function EvalError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
||
|
return function RangeError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
||
|
return function ReferenceError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
||
|
return function SyntaxError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
||
|
return function TypeError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
||
|
return function URIError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
||
|
return function CompileError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
||
|
return function LinkError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
||
|
return function RuntimeError(message) {
|
||
|
return apply(init, this, arguments);
|
||
|
};
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 2 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var getOwnPropertyDescriptor = (__w_pdfjs_require__(4).f);
|
||
|
var createNonEnumerableProperty = __w_pdfjs_require__(43);
|
||
|
var defineBuiltIn = __w_pdfjs_require__(47);
|
||
|
var defineGlobalProperty = __w_pdfjs_require__(37);
|
||
|
var copyConstructorProperties = __w_pdfjs_require__(55);
|
||
|
var isForced = __w_pdfjs_require__(67);
|
||
|
module.exports = function (options, source) {
|
||
|
var TARGET = options.target;
|
||
|
var GLOBAL = options.global;
|
||
|
var STATIC = options.stat;
|
||
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
||
|
if (GLOBAL) {
|
||
|
target = global;
|
||
|
} else if (STATIC) {
|
||
|
target = global[TARGET] || defineGlobalProperty(TARGET, {});
|
||
|
} else {
|
||
|
target = (global[TARGET] || {}).prototype;
|
||
|
}
|
||
|
if (target)
|
||
|
for (key in source) {
|
||
|
sourceProperty = source[key];
|
||
|
if (options.dontCallGetSet) {
|
||
|
descriptor = getOwnPropertyDescriptor(target, key);
|
||
|
targetProperty = descriptor && descriptor.value;
|
||
|
} else
|
||
|
targetProperty = target[key];
|
||
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
||
|
if (!FORCED && targetProperty !== undefined) {
|
||
|
if (typeof sourceProperty == typeof targetProperty)
|
||
|
continue;
|
||
|
copyConstructorProperties(sourceProperty, targetProperty);
|
||
|
}
|
||
|
if (options.sham || targetProperty && targetProperty.sham) {
|
||
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
||
|
}
|
||
|
defineBuiltIn(target, key, sourceProperty, options);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 3 */
|
||
|
/***/ (function(module) {
|
||
|
|
||
|
|
||
|
var check = function (it) {
|
||
|
return it && it.Math === Math && it;
|
||
|
};
|
||
|
module.exports = check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || check(typeof self == 'object' && self) || check(typeof global == 'object' && global) || (function () {
|
||
|
return this;
|
||
|
}()) || this || Function('return this')();
|
||
|
|
||
|
/***/ }),
|
||
|
/* 4 */
|
||
|
/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var call = __w_pdfjs_require__(7);
|
||
|
var propertyIsEnumerableModule = __w_pdfjs_require__(9);
|
||
|
var createPropertyDescriptor = __w_pdfjs_require__(10);
|
||
|
var toIndexedObject = __w_pdfjs_require__(11);
|
||
|
var toPropertyKey = __w_pdfjs_require__(17);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var IE8_DOM_DEFINE = __w_pdfjs_require__(41);
|
||
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
||
|
O = toIndexedObject(O);
|
||
|
P = toPropertyKey(P);
|
||
|
if (IE8_DOM_DEFINE)
|
||
|
try {
|
||
|
return $getOwnPropertyDescriptor(O, P);
|
||
|
} catch (error) {
|
||
|
}
|
||
|
if (hasOwn(O, P))
|
||
|
return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 5 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
module.exports = !fails(function () {
|
||
|
return Object.defineProperty({}, 1, {
|
||
|
get: function () {
|
||
|
return 7;
|
||
|
}
|
||
|
})[1] !== 7;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 6 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = function (exec) {
|
||
|
try {
|
||
|
return !!exec();
|
||
|
} catch (error) {
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 7 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var NATIVE_BIND = __w_pdfjs_require__(8);
|
||
|
var call = Function.prototype.call;
|
||
|
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
||
|
return call.apply(call, arguments);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 8 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
module.exports = !fails(function () {
|
||
|
var test = function () {
|
||
|
}.bind();
|
||
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 9 */
|
||
|
/***/ ((__unused_webpack_module, exports) => {
|
||
|
|
||
|
|
||
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
||
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
||
|
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
||
|
var descriptor = getOwnPropertyDescriptor(this, V);
|
||
|
return !!descriptor && descriptor.enumerable;
|
||
|
} : $propertyIsEnumerable;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 10 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = function (bitmap, value) {
|
||
|
return {
|
||
|
enumerable: !(bitmap & 1),
|
||
|
configurable: !(bitmap & 2),
|
||
|
writable: !(bitmap & 4),
|
||
|
value: value
|
||
|
};
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 11 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var IndexedObject = __w_pdfjs_require__(12);
|
||
|
var requireObjectCoercible = __w_pdfjs_require__(15);
|
||
|
module.exports = function (it) {
|
||
|
return IndexedObject(requireObjectCoercible(it));
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 12 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var classof = __w_pdfjs_require__(14);
|
||
|
var $Object = Object;
|
||
|
var split = uncurryThis(''.split);
|
||
|
module.exports = fails(function () {
|
||
|
return !$Object('z').propertyIsEnumerable(0);
|
||
|
}) ? function (it) {
|
||
|
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
||
|
} : $Object;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 13 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var NATIVE_BIND = __w_pdfjs_require__(8);
|
||
|
var FunctionPrototype = Function.prototype;
|
||
|
var call = FunctionPrototype.call;
|
||
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
||
|
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
||
|
return function () {
|
||
|
return call.apply(fn, arguments);
|
||
|
};
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 14 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var toString = uncurryThis({}.toString);
|
||
|
var stringSlice = uncurryThis(''.slice);
|
||
|
module.exports = function (it) {
|
||
|
return stringSlice(toString(it), 8, -1);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 15 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isNullOrUndefined = __w_pdfjs_require__(16);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (it) {
|
||
|
if (isNullOrUndefined(it))
|
||
|
throw $TypeError("Can't call method on " + it);
|
||
|
return it;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 16 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = function (it) {
|
||
|
return it === null || it === undefined;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 17 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toPrimitive = __w_pdfjs_require__(18);
|
||
|
var isSymbol = __w_pdfjs_require__(22);
|
||
|
module.exports = function (argument) {
|
||
|
var key = toPrimitive(argument, 'string');
|
||
|
return isSymbol(key) ? key : key + '';
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 18 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var call = __w_pdfjs_require__(7);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var isSymbol = __w_pdfjs_require__(22);
|
||
|
var getMethod = __w_pdfjs_require__(29);
|
||
|
var ordinaryToPrimitive = __w_pdfjs_require__(32);
|
||
|
var wellKnownSymbol = __w_pdfjs_require__(33);
|
||
|
var $TypeError = TypeError;
|
||
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
||
|
module.exports = function (input, pref) {
|
||
|
if (!isObject(input) || isSymbol(input))
|
||
|
return input;
|
||
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
||
|
var result;
|
||
|
if (exoticToPrim) {
|
||
|
if (pref === undefined)
|
||
|
pref = 'default';
|
||
|
result = call(exoticToPrim, input, pref);
|
||
|
if (!isObject(result) || isSymbol(result))
|
||
|
return result;
|
||
|
throw $TypeError("Can't convert object to primitive value");
|
||
|
}
|
||
|
if (pref === undefined)
|
||
|
pref = 'number';
|
||
|
return ordinaryToPrimitive(input, pref);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 19 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var $documentAll = __w_pdfjs_require__(21);
|
||
|
var documentAll = $documentAll.all;
|
||
|
module.exports = $documentAll.IS_HTMLDDA ? function (it) {
|
||
|
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
||
|
} : function (it) {
|
||
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 20 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $documentAll = __w_pdfjs_require__(21);
|
||
|
var documentAll = $documentAll.all;
|
||
|
module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
|
||
|
return typeof argument == 'function' || argument === documentAll;
|
||
|
} : function (argument) {
|
||
|
return typeof argument == 'function';
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 21 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
var documentAll = typeof document == 'object' && document.all;
|
||
|
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
||
|
module.exports = {
|
||
|
all: documentAll,
|
||
|
IS_HTMLDDA: IS_HTMLDDA
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 22 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var getBuiltIn = __w_pdfjs_require__(23);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var isPrototypeOf = __w_pdfjs_require__(24);
|
||
|
var USE_SYMBOL_AS_UID = __w_pdfjs_require__(25);
|
||
|
var $Object = Object;
|
||
|
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
||
|
return typeof it == 'symbol';
|
||
|
} : function (it) {
|
||
|
var $Symbol = getBuiltIn('Symbol');
|
||
|
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 23 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var aFunction = function (argument) {
|
||
|
return isCallable(argument) ? argument : undefined;
|
||
|
};
|
||
|
module.exports = function (namespace, method) {
|
||
|
return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 24 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
module.exports = uncurryThis({}.isPrototypeOf);
|
||
|
|
||
|
/***/ }),
|
||
|
/* 25 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var NATIVE_SYMBOL = __w_pdfjs_require__(26);
|
||
|
module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == 'symbol';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 26 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var V8_VERSION = __w_pdfjs_require__(27);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var $String = global.String;
|
||
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
||
|
var symbol = Symbol('symbol detection');
|
||
|
return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 27 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var userAgent = __w_pdfjs_require__(28);
|
||
|
var process = global.process;
|
||
|
var Deno = global.Deno;
|
||
|
var versions = process && process.versions || Deno && Deno.version;
|
||
|
var v8 = versions && versions.v8;
|
||
|
var match, version;
|
||
|
if (v8) {
|
||
|
match = v8.split('.');
|
||
|
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
||
|
}
|
||
|
if (!version && userAgent) {
|
||
|
match = userAgent.match(/Edge\/(\d+)/);
|
||
|
if (!match || match[1] >= 74) {
|
||
|
match = userAgent.match(/Chrome\/(\d+)/);
|
||
|
if (match)
|
||
|
version = +match[1];
|
||
|
}
|
||
|
}
|
||
|
module.exports = version;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 28 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 29 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var aCallable = __w_pdfjs_require__(30);
|
||
|
var isNullOrUndefined = __w_pdfjs_require__(16);
|
||
|
module.exports = function (V, P) {
|
||
|
var func = V[P];
|
||
|
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 30 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var tryToString = __w_pdfjs_require__(31);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (argument) {
|
||
|
if (isCallable(argument))
|
||
|
return argument;
|
||
|
throw $TypeError(tryToString(argument) + ' is not a function');
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 31 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
var $String = String;
|
||
|
module.exports = function (argument) {
|
||
|
try {
|
||
|
return $String(argument);
|
||
|
} catch (error) {
|
||
|
return 'Object';
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 32 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var call = __w_pdfjs_require__(7);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (input, pref) {
|
||
|
var fn, val;
|
||
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
|
||
|
return val;
|
||
|
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input)))
|
||
|
return val;
|
||
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
|
||
|
return val;
|
||
|
throw $TypeError("Can't convert object to primitive value");
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 33 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var shared = __w_pdfjs_require__(34);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var uid = __w_pdfjs_require__(40);
|
||
|
var NATIVE_SYMBOL = __w_pdfjs_require__(26);
|
||
|
var USE_SYMBOL_AS_UID = __w_pdfjs_require__(25);
|
||
|
var Symbol = global.Symbol;
|
||
|
var WellKnownSymbolsStore = shared('wks');
|
||
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
||
|
module.exports = function (name) {
|
||
|
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
||
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) ? Symbol[name] : createWellKnownSymbol('Symbol.' + name);
|
||
|
}
|
||
|
return WellKnownSymbolsStore[name];
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 34 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var IS_PURE = __w_pdfjs_require__(35);
|
||
|
var store = __w_pdfjs_require__(36);
|
||
|
(module.exports = function (key, value) {
|
||
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
||
|
})('versions', []).push({
|
||
|
version: '3.32.2',
|
||
|
mode: IS_PURE ? 'pure' : 'global',
|
||
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
||
|
license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
|
||
|
source: 'https://github.com/zloirock/core-js'
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 35 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = false;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 36 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var defineGlobalProperty = __w_pdfjs_require__(37);
|
||
|
var SHARED = '__core-js_shared__';
|
||
|
var store = global[SHARED] || defineGlobalProperty(SHARED, {});
|
||
|
module.exports = store;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 37 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var defineProperty = Object.defineProperty;
|
||
|
module.exports = function (key, value) {
|
||
|
try {
|
||
|
defineProperty(global, key, {
|
||
|
value: value,
|
||
|
configurable: true,
|
||
|
writable: true
|
||
|
});
|
||
|
} catch (error) {
|
||
|
global[key] = value;
|
||
|
}
|
||
|
return value;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 38 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var toObject = __w_pdfjs_require__(39);
|
||
|
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
||
|
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
||
|
return hasOwnProperty(toObject(it), key);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 39 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var requireObjectCoercible = __w_pdfjs_require__(15);
|
||
|
var $Object = Object;
|
||
|
module.exports = function (argument) {
|
||
|
return $Object(requireObjectCoercible(argument));
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 40 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var id = 0;
|
||
|
var postfix = Math.random();
|
||
|
var toString = uncurryThis(1.0.toString);
|
||
|
module.exports = function (key) {
|
||
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 41 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var createElement = __w_pdfjs_require__(42);
|
||
|
module.exports = !DESCRIPTORS && !fails(function () {
|
||
|
return Object.defineProperty(createElement('div'), 'a', {
|
||
|
get: function () {
|
||
|
return 7;
|
||
|
}
|
||
|
}).a !== 7;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 42 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var document = global.document;
|
||
|
var EXISTS = isObject(document) && isObject(document.createElement);
|
||
|
module.exports = function (it) {
|
||
|
return EXISTS ? document.createElement(it) : {};
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 43 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var definePropertyModule = __w_pdfjs_require__(44);
|
||
|
var createPropertyDescriptor = __w_pdfjs_require__(10);
|
||
|
module.exports = DESCRIPTORS ? function (object, key, value) {
|
||
|
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
||
|
} : function (object, key, value) {
|
||
|
object[key] = value;
|
||
|
return object;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 44 */
|
||
|
/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var IE8_DOM_DEFINE = __w_pdfjs_require__(41);
|
||
|
var V8_PROTOTYPE_DEFINE_BUG = __w_pdfjs_require__(45);
|
||
|
var anObject = __w_pdfjs_require__(46);
|
||
|
var toPropertyKey = __w_pdfjs_require__(17);
|
||
|
var $TypeError = TypeError;
|
||
|
var $defineProperty = Object.defineProperty;
|
||
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
var ENUMERABLE = 'enumerable';
|
||
|
var CONFIGURABLE = 'configurable';
|
||
|
var WRITABLE = 'writable';
|
||
|
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
||
|
anObject(O);
|
||
|
P = toPropertyKey(P);
|
||
|
anObject(Attributes);
|
||
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
||
|
var current = $getOwnPropertyDescriptor(O, P);
|
||
|
if (current && current[WRITABLE]) {
|
||
|
O[P] = Attributes.value;
|
||
|
Attributes = {
|
||
|
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
||
|
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
||
|
writable: false
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
return $defineProperty(O, P, Attributes);
|
||
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
||
|
anObject(O);
|
||
|
P = toPropertyKey(P);
|
||
|
anObject(Attributes);
|
||
|
if (IE8_DOM_DEFINE)
|
||
|
try {
|
||
|
return $defineProperty(O, P, Attributes);
|
||
|
} catch (error) {
|
||
|
}
|
||
|
if ('get' in Attributes || 'set' in Attributes)
|
||
|
throw $TypeError('Accessors not supported');
|
||
|
if ('value' in Attributes)
|
||
|
O[P] = Attributes.value;
|
||
|
return O;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 45 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
module.exports = DESCRIPTORS && fails(function () {
|
||
|
return Object.defineProperty(function () {
|
||
|
}, 'prototype', {
|
||
|
value: 42,
|
||
|
writable: false
|
||
|
}).prototype !== 42;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 46 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var $String = String;
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (argument) {
|
||
|
if (isObject(argument))
|
||
|
return argument;
|
||
|
throw $TypeError($String(argument) + ' is not an object');
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 47 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var definePropertyModule = __w_pdfjs_require__(44);
|
||
|
var makeBuiltIn = __w_pdfjs_require__(48);
|
||
|
var defineGlobalProperty = __w_pdfjs_require__(37);
|
||
|
module.exports = function (O, key, value, options) {
|
||
|
if (!options)
|
||
|
options = {};
|
||
|
var simple = options.enumerable;
|
||
|
var name = options.name !== undefined ? options.name : key;
|
||
|
if (isCallable(value))
|
||
|
makeBuiltIn(value, name, options);
|
||
|
if (options.global) {
|
||
|
if (simple)
|
||
|
O[key] = value;
|
||
|
else
|
||
|
defineGlobalProperty(key, value);
|
||
|
} else {
|
||
|
try {
|
||
|
if (!options.unsafe)
|
||
|
delete O[key];
|
||
|
else if (O[key])
|
||
|
simple = true;
|
||
|
} catch (error) {
|
||
|
}
|
||
|
if (simple)
|
||
|
O[key] = value;
|
||
|
else
|
||
|
definePropertyModule.f(O, key, {
|
||
|
value: value,
|
||
|
enumerable: false,
|
||
|
configurable: !options.nonConfigurable,
|
||
|
writable: !options.nonWritable
|
||
|
});
|
||
|
}
|
||
|
return O;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 48 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var CONFIGURABLE_FUNCTION_NAME = (__w_pdfjs_require__(49).CONFIGURABLE);
|
||
|
var inspectSource = __w_pdfjs_require__(50);
|
||
|
var InternalStateModule = __w_pdfjs_require__(51);
|
||
|
var enforceInternalState = InternalStateModule.enforce;
|
||
|
var getInternalState = InternalStateModule.get;
|
||
|
var $String = String;
|
||
|
var defineProperty = Object.defineProperty;
|
||
|
var stringSlice = uncurryThis(''.slice);
|
||
|
var replace = uncurryThis(''.replace);
|
||
|
var join = uncurryThis([].join);
|
||
|
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
||
|
return defineProperty(function () {
|
||
|
}, 'length', { value: 8 }).length !== 8;
|
||
|
});
|
||
|
var TEMPLATE = String(String).split('String');
|
||
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
||
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
||
|
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
||
|
}
|
||
|
if (options && options.getter)
|
||
|
name = 'get ' + name;
|
||
|
if (options && options.setter)
|
||
|
name = 'set ' + name;
|
||
|
if (!hasOwn(value, 'name') || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
|
||
|
if (DESCRIPTORS)
|
||
|
defineProperty(value, 'name', {
|
||
|
value: name,
|
||
|
configurable: true
|
||
|
});
|
||
|
else
|
||
|
value.name = name;
|
||
|
}
|
||
|
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
||
|
defineProperty(value, 'length', { value: options.arity });
|
||
|
}
|
||
|
try {
|
||
|
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
||
|
if (DESCRIPTORS)
|
||
|
defineProperty(value, 'prototype', { writable: false });
|
||
|
} else if (value.prototype)
|
||
|
value.prototype = undefined;
|
||
|
} catch (error) {
|
||
|
}
|
||
|
var state = enforceInternalState(value);
|
||
|
if (!hasOwn(state, 'source')) {
|
||
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
||
|
}
|
||
|
return value;
|
||
|
};
|
||
|
Function.prototype.toString = makeBuiltIn(function toString() {
|
||
|
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
||
|
}, 'toString');
|
||
|
|
||
|
/***/ }),
|
||
|
/* 49 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var FunctionPrototype = Function.prototype;
|
||
|
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
||
|
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
||
|
var PROPER = EXISTS && function something() {
|
||
|
}.name === 'something';
|
||
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable);
|
||
|
module.exports = {
|
||
|
EXISTS: EXISTS,
|
||
|
PROPER: PROPER,
|
||
|
CONFIGURABLE: CONFIGURABLE
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 50 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var store = __w_pdfjs_require__(36);
|
||
|
var functionToString = uncurryThis(Function.toString);
|
||
|
if (!isCallable(store.inspectSource)) {
|
||
|
store.inspectSource = function (it) {
|
||
|
return functionToString(it);
|
||
|
};
|
||
|
}
|
||
|
module.exports = store.inspectSource;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 51 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var NATIVE_WEAK_MAP = __w_pdfjs_require__(52);
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var createNonEnumerableProperty = __w_pdfjs_require__(43);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var shared = __w_pdfjs_require__(36);
|
||
|
var sharedKey = __w_pdfjs_require__(53);
|
||
|
var hiddenKeys = __w_pdfjs_require__(54);
|
||
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
||
|
var TypeError = global.TypeError;
|
||
|
var WeakMap = global.WeakMap;
|
||
|
var set, get, has;
|
||
|
var enforce = function (it) {
|
||
|
return has(it) ? get(it) : set(it, {});
|
||
|
};
|
||
|
var getterFor = function (TYPE) {
|
||
|
return function (it) {
|
||
|
var state;
|
||
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
||
|
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
||
|
}
|
||
|
return state;
|
||
|
};
|
||
|
};
|
||
|
if (NATIVE_WEAK_MAP || shared.state) {
|
||
|
var store = shared.state || (shared.state = new WeakMap());
|
||
|
store.get = store.get;
|
||
|
store.has = store.has;
|
||
|
store.set = store.set;
|
||
|
set = function (it, metadata) {
|
||
|
if (store.has(it))
|
||
|
throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
||
|
metadata.facade = it;
|
||
|
store.set(it, metadata);
|
||
|
return metadata;
|
||
|
};
|
||
|
get = function (it) {
|
||
|
return store.get(it) || {};
|
||
|
};
|
||
|
has = function (it) {
|
||
|
return store.has(it);
|
||
|
};
|
||
|
} else {
|
||
|
var STATE = sharedKey('state');
|
||
|
hiddenKeys[STATE] = true;
|
||
|
set = function (it, metadata) {
|
||
|
if (hasOwn(it, STATE))
|
||
|
throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
||
|
metadata.facade = it;
|
||
|
createNonEnumerableProperty(it, STATE, metadata);
|
||
|
return metadata;
|
||
|
};
|
||
|
get = function (it) {
|
||
|
return hasOwn(it, STATE) ? it[STATE] : {};
|
||
|
};
|
||
|
has = function (it) {
|
||
|
return hasOwn(it, STATE);
|
||
|
};
|
||
|
}
|
||
|
module.exports = {
|
||
|
set: set,
|
||
|
get: get,
|
||
|
has: has,
|
||
|
enforce: enforce,
|
||
|
getterFor: getterFor
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 52 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var WeakMap = global.WeakMap;
|
||
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
||
|
|
||
|
/***/ }),
|
||
|
/* 53 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var shared = __w_pdfjs_require__(34);
|
||
|
var uid = __w_pdfjs_require__(40);
|
||
|
var keys = shared('keys');
|
||
|
module.exports = function (key) {
|
||
|
return keys[key] || (keys[key] = uid(key));
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 54 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = {};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 55 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var ownKeys = __w_pdfjs_require__(56);
|
||
|
var getOwnPropertyDescriptorModule = __w_pdfjs_require__(4);
|
||
|
var definePropertyModule = __w_pdfjs_require__(44);
|
||
|
module.exports = function (target, source, exceptions) {
|
||
|
var keys = ownKeys(source);
|
||
|
var defineProperty = definePropertyModule.f;
|
||
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
||
|
for (var i = 0; i < keys.length; i++) {
|
||
|
var key = keys[i];
|
||
|
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
||
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 56 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var getBuiltIn = __w_pdfjs_require__(23);
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var getOwnPropertyNamesModule = __w_pdfjs_require__(57);
|
||
|
var getOwnPropertySymbolsModule = __w_pdfjs_require__(66);
|
||
|
var anObject = __w_pdfjs_require__(46);
|
||
|
var concat = uncurryThis([].concat);
|
||
|
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
||
|
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
||
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
||
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 57 */
|
||
|
/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var internalObjectKeys = __w_pdfjs_require__(58);
|
||
|
var enumBugKeys = __w_pdfjs_require__(65);
|
||
|
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
||
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
||
|
return internalObjectKeys(O, hiddenKeys);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 58 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var toIndexedObject = __w_pdfjs_require__(11);
|
||
|
var indexOf = (__w_pdfjs_require__(59).indexOf);
|
||
|
var hiddenKeys = __w_pdfjs_require__(54);
|
||
|
var push = uncurryThis([].push);
|
||
|
module.exports = function (object, names) {
|
||
|
var O = toIndexedObject(object);
|
||
|
var i = 0;
|
||
|
var result = [];
|
||
|
var key;
|
||
|
for (key in O)
|
||
|
!hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
||
|
while (names.length > i)
|
||
|
if (hasOwn(O, key = names[i++])) {
|
||
|
~indexOf(result, key) || push(result, key);
|
||
|
}
|
||
|
return result;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 59 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toIndexedObject = __w_pdfjs_require__(11);
|
||
|
var toAbsoluteIndex = __w_pdfjs_require__(60);
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var createMethod = function (IS_INCLUDES) {
|
||
|
return function ($this, el, fromIndex) {
|
||
|
var O = toIndexedObject($this);
|
||
|
var length = lengthOfArrayLike(O);
|
||
|
var index = toAbsoluteIndex(fromIndex, length);
|
||
|
var value;
|
||
|
if (IS_INCLUDES && el !== el)
|
||
|
while (length > index) {
|
||
|
value = O[index++];
|
||
|
if (value !== value)
|
||
|
return true;
|
||
|
}
|
||
|
else
|
||
|
for (; length > index; index++) {
|
||
|
if ((IS_INCLUDES || index in O) && O[index] === el)
|
||
|
return IS_INCLUDES || index || 0;
|
||
|
}
|
||
|
return !IS_INCLUDES && -1;
|
||
|
};
|
||
|
};
|
||
|
module.exports = {
|
||
|
includes: createMethod(true),
|
||
|
indexOf: createMethod(false)
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 60 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toIntegerOrInfinity = __w_pdfjs_require__(61);
|
||
|
var max = Math.max;
|
||
|
var min = Math.min;
|
||
|
module.exports = function (index, length) {
|
||
|
var integer = toIntegerOrInfinity(index);
|
||
|
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 61 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var trunc = __w_pdfjs_require__(62);
|
||
|
module.exports = function (argument) {
|
||
|
var number = +argument;
|
||
|
return number !== number || number === 0 ? 0 : trunc(number);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 62 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
var ceil = Math.ceil;
|
||
|
var floor = Math.floor;
|
||
|
module.exports = Math.trunc || function trunc(x) {
|
||
|
var n = +x;
|
||
|
return (n > 0 ? floor : ceil)(n);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 63 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toLength = __w_pdfjs_require__(64);
|
||
|
module.exports = function (obj) {
|
||
|
return toLength(obj.length);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 64 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toIntegerOrInfinity = __w_pdfjs_require__(61);
|
||
|
var min = Math.min;
|
||
|
module.exports = function (argument) {
|
||
|
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 65 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = [
|
||
|
'constructor',
|
||
|
'hasOwnProperty',
|
||
|
'isPrototypeOf',
|
||
|
'propertyIsEnumerable',
|
||
|
'toLocaleString',
|
||
|
'toString',
|
||
|
'valueOf'
|
||
|
];
|
||
|
|
||
|
/***/ }),
|
||
|
/* 66 */
|
||
|
/***/ ((__unused_webpack_module, exports) => {
|
||
|
|
||
|
|
||
|
exports.f = Object.getOwnPropertySymbols;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 67 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var replacement = /#|\.prototype\./;
|
||
|
var isForced = function (feature, detection) {
|
||
|
var value = data[normalize(feature)];
|
||
|
return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
|
||
|
};
|
||
|
var normalize = isForced.normalize = function (string) {
|
||
|
return String(string).replace(replacement, '.').toLowerCase();
|
||
|
};
|
||
|
var data = isForced.data = {};
|
||
|
var NATIVE = isForced.NATIVE = 'N';
|
||
|
var POLYFILL = isForced.POLYFILL = 'P';
|
||
|
module.exports = isForced;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 68 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var NATIVE_BIND = __w_pdfjs_require__(8);
|
||
|
var FunctionPrototype = Function.prototype;
|
||
|
var apply = FunctionPrototype.apply;
|
||
|
var call = FunctionPrototype.call;
|
||
|
module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
|
||
|
return call.apply(apply, arguments);
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 69 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var getBuiltIn = __w_pdfjs_require__(23);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var createNonEnumerableProperty = __w_pdfjs_require__(43);
|
||
|
var isPrototypeOf = __w_pdfjs_require__(24);
|
||
|
var setPrototypeOf = __w_pdfjs_require__(70);
|
||
|
var copyConstructorProperties = __w_pdfjs_require__(55);
|
||
|
var proxyAccessor = __w_pdfjs_require__(73);
|
||
|
var inheritIfRequired = __w_pdfjs_require__(74);
|
||
|
var normalizeStringArgument = __w_pdfjs_require__(75);
|
||
|
var installErrorCause = __w_pdfjs_require__(79);
|
||
|
var installErrorStack = __w_pdfjs_require__(80);
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var IS_PURE = __w_pdfjs_require__(35);
|
||
|
module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
||
|
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
||
|
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
||
|
var path = FULL_NAME.split('.');
|
||
|
var ERROR_NAME = path[path.length - 1];
|
||
|
var OriginalError = getBuiltIn.apply(null, path);
|
||
|
if (!OriginalError)
|
||
|
return;
|
||
|
var OriginalErrorPrototype = OriginalError.prototype;
|
||
|
if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause'))
|
||
|
delete OriginalErrorPrototype.cause;
|
||
|
if (!FORCED)
|
||
|
return OriginalError;
|
||
|
var BaseError = getBuiltIn('Error');
|
||
|
var WrappedError = wrapper(function (a, b) {
|
||
|
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
||
|
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
||
|
if (message !== undefined)
|
||
|
createNonEnumerableProperty(result, 'message', message);
|
||
|
installErrorStack(result, WrappedError, result.stack, 2);
|
||
|
if (this && isPrototypeOf(OriginalErrorPrototype, this))
|
||
|
inheritIfRequired(result, this, WrappedError);
|
||
|
if (arguments.length > OPTIONS_POSITION)
|
||
|
installErrorCause(result, arguments[OPTIONS_POSITION]);
|
||
|
return result;
|
||
|
});
|
||
|
WrappedError.prototype = OriginalErrorPrototype;
|
||
|
if (ERROR_NAME !== 'Error') {
|
||
|
if (setPrototypeOf)
|
||
|
setPrototypeOf(WrappedError, BaseError);
|
||
|
else
|
||
|
copyConstructorProperties(WrappedError, BaseError, { name: true });
|
||
|
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
||
|
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
||
|
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
||
|
}
|
||
|
copyConstructorProperties(WrappedError, OriginalError);
|
||
|
if (!IS_PURE)
|
||
|
try {
|
||
|
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
||
|
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
||
|
}
|
||
|
OriginalErrorPrototype.constructor = WrappedError;
|
||
|
} catch (error) {
|
||
|
}
|
||
|
return WrappedError;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 70 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThisAccessor = __w_pdfjs_require__(71);
|
||
|
var anObject = __w_pdfjs_require__(46);
|
||
|
var aPossiblePrototype = __w_pdfjs_require__(72);
|
||
|
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? (function () {
|
||
|
var CORRECT_SETTER = false;
|
||
|
var test = {};
|
||
|
var setter;
|
||
|
try {
|
||
|
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
||
|
setter(test, []);
|
||
|
CORRECT_SETTER = test instanceof Array;
|
||
|
} catch (error) {
|
||
|
}
|
||
|
return function setPrototypeOf(O, proto) {
|
||
|
anObject(O);
|
||
|
aPossiblePrototype(proto);
|
||
|
if (CORRECT_SETTER)
|
||
|
setter(O, proto);
|
||
|
else
|
||
|
O.__proto__ = proto;
|
||
|
return O;
|
||
|
};
|
||
|
}()) : undefined);
|
||
|
|
||
|
/***/ }),
|
||
|
/* 71 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var aCallable = __w_pdfjs_require__(30);
|
||
|
module.exports = function (object, key, method) {
|
||
|
try {
|
||
|
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
||
|
} catch (error) {
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 72 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var $String = String;
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (argument) {
|
||
|
if (typeof argument == 'object' || isCallable(argument))
|
||
|
return argument;
|
||
|
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 73 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var defineProperty = (__w_pdfjs_require__(44).f);
|
||
|
module.exports = function (Target, Source, key) {
|
||
|
key in Target || defineProperty(Target, key, {
|
||
|
configurable: true,
|
||
|
get: function () {
|
||
|
return Source[key];
|
||
|
},
|
||
|
set: function (it) {
|
||
|
Source[key] = it;
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 74 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var setPrototypeOf = __w_pdfjs_require__(70);
|
||
|
module.exports = function ($this, dummy, Wrapper) {
|
||
|
var NewTarget, NewTargetPrototype;
|
||
|
if (setPrototypeOf && isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype)
|
||
|
setPrototypeOf($this, NewTargetPrototype);
|
||
|
return $this;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 75 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toString = __w_pdfjs_require__(76);
|
||
|
module.exports = function (argument, $default) {
|
||
|
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 76 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var classof = __w_pdfjs_require__(77);
|
||
|
var $String = String;
|
||
|
module.exports = function (argument) {
|
||
|
if (classof(argument) === 'Symbol')
|
||
|
throw TypeError('Cannot convert a Symbol value to a string');
|
||
|
return $String(argument);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 77 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var TO_STRING_TAG_SUPPORT = __w_pdfjs_require__(78);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var classofRaw = __w_pdfjs_require__(14);
|
||
|
var wellKnownSymbol = __w_pdfjs_require__(33);
|
||
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
|
var $Object = Object;
|
||
|
var CORRECT_ARGUMENTS = classofRaw((function () {
|
||
|
return arguments;
|
||
|
}())) === 'Arguments';
|
||
|
var tryGet = function (it, key) {
|
||
|
try {
|
||
|
return it[key];
|
||
|
} catch (error) {
|
||
|
}
|
||
|
};
|
||
|
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
||
|
var O, tag, result;
|
||
|
return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 78 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var wellKnownSymbol = __w_pdfjs_require__(33);
|
||
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
|
var test = {};
|
||
|
test[TO_STRING_TAG] = 'z';
|
||
|
module.exports = String(test) === '[object z]';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 79 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var createNonEnumerableProperty = __w_pdfjs_require__(43);
|
||
|
module.exports = function (O, options) {
|
||
|
if (isObject(options) && 'cause' in options) {
|
||
|
createNonEnumerableProperty(O, 'cause', options.cause);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 80 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var createNonEnumerableProperty = __w_pdfjs_require__(43);
|
||
|
var clearErrorStack = __w_pdfjs_require__(81);
|
||
|
var ERROR_STACK_INSTALLABLE = __w_pdfjs_require__(82);
|
||
|
var captureStackTrace = Error.captureStackTrace;
|
||
|
module.exports = function (error, C, stack, dropEntries) {
|
||
|
if (ERROR_STACK_INSTALLABLE) {
|
||
|
if (captureStackTrace)
|
||
|
captureStackTrace(error, C);
|
||
|
else
|
||
|
createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 81 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var $Error = Error;
|
||
|
var replace = uncurryThis(''.replace);
|
||
|
var TEST = function (arg) {
|
||
|
return String($Error(arg).stack);
|
||
|
}('zxcasd');
|
||
|
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
||
|
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
||
|
module.exports = function (stack, dropEntries) {
|
||
|
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
||
|
while (dropEntries--)
|
||
|
stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
||
|
}
|
||
|
return stack;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 82 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var createPropertyDescriptor = __w_pdfjs_require__(10);
|
||
|
module.exports = !fails(function () {
|
||
|
var error = Error('a');
|
||
|
if (!('stack' in error))
|
||
|
return true;
|
||
|
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
||
|
return error.stack !== 7;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 83 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var toObject = __w_pdfjs_require__(39);
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var setArrayLength = __w_pdfjs_require__(84);
|
||
|
var doesNotExceedSafeInteger = __w_pdfjs_require__(86);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var INCORRECT_TO_LENGTH = fails(function () {
|
||
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
||
|
});
|
||
|
var properErrorOnNonWritableLength = function () {
|
||
|
try {
|
||
|
Object.defineProperty([], 'length', { writable: false }).push();
|
||
|
} catch (error) {
|
||
|
return error instanceof TypeError;
|
||
|
}
|
||
|
};
|
||
|
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
||
|
$({
|
||
|
target: 'Array',
|
||
|
proto: true,
|
||
|
arity: 1,
|
||
|
forced: FORCED
|
||
|
}, {
|
||
|
push: function push(item) {
|
||
|
var O = toObject(this);
|
||
|
var len = lengthOfArrayLike(O);
|
||
|
var argCount = arguments.length;
|
||
|
doesNotExceedSafeInteger(len + argCount);
|
||
|
for (var i = 0; i < argCount; i++) {
|
||
|
O[len] = arguments[i];
|
||
|
len++;
|
||
|
}
|
||
|
setArrayLength(O, len);
|
||
|
return len;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 84 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var isArray = __w_pdfjs_require__(85);
|
||
|
var $TypeError = TypeError;
|
||
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !(function () {
|
||
|
if (this !== undefined)
|
||
|
return true;
|
||
|
try {
|
||
|
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
||
|
} catch (error) {
|
||
|
return error instanceof TypeError;
|
||
|
}
|
||
|
}());
|
||
|
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
||
|
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
||
|
throw $TypeError('Cannot set read only .length');
|
||
|
}
|
||
|
return O.length = length;
|
||
|
} : function (O, length) {
|
||
|
return O.length = length;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 85 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var classof = __w_pdfjs_require__(14);
|
||
|
module.exports = Array.isArray || function isArray(argument) {
|
||
|
return classof(argument) === 'Array';
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 86 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
var $TypeError = TypeError;
|
||
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
||
|
module.exports = function (it) {
|
||
|
if (it > MAX_SAFE_INTEGER)
|
||
|
throw $TypeError('Maximum allowed index exceeded');
|
||
|
return it;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 87 */
|
||
|
/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", ({value:true}));exports["default"]=void 0;__w_pdfjs_require__(88);__w_pdfjs_require__(97);__w_pdfjs_require__(98);__w_pdfjs_require__(101);__w_pdfjs_require__(103);__w_pdfjs_require__(105);__w_pdfjs_require__(109);__w_pdfjs_require__(112);__w_pdfjs_require__(119);__w_pdfjs_require__(120);__w_pdfjs_require__(1);__w_pdfjs_require__(122);__w_pdfjs_require__(125);__w_pdfjs_require__(83);var Module=(()=>{var _scriptDir=typeof document!=='undefined'&&document.currentScript?document.currentScript.src:undefined;return function(Module){Module=Module||{};var c;c||(c=typeof Module!=='undefined'?Module:{});var h,n;c.ready=new Promise(function(a,b){h=a;n=b;});var r=Object.assign({},c),t="";"undefined"!=typeof document&&document.currentScript&&(t=document.currentScript.src);_scriptDir&&(t=_scriptDir);0!==t.indexOf("blob:")?t=t.substr(0,t.replace(/[?#].*/,"").lastIndexOf("/")+1):t="";var aa=c.print||console.log.bind(console),u=c.printErr||console.warn.bind(console);Object.assign(c,r);r=null;var v;c.wasmBinary&&(v=c.wasmBinary);var noExitRuntime=c.noExitRuntime||!0;"object"!=typeof WebAssembly&&w("no native wasm support detected");var x,y=!1;function z(a,b,d,e){var f={string:function(l){var p=0;if(null!==l&&void 0!==l&&0!==l){var S=(l.length<<2)+1;p=A(S);B(l,C,p,S);}return p;},array:function(l){var p=A(l.length);D.set(l,p);return p;}};a=c["_"+a];var g=[],k=0;if(e)for(var m=0;m<e.length;m++){var q=f[d[m]];q?(0===k&&(k=E()),g[m]=q(e[m])):g[m]=e[m];}d=a.apply(null,g);return d=function(l){0!==k&&F(k);return"string"===b?G(l):"boolean"===b?!!l:l;}(d);}var H="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function I(a,b){for(var d=b+NaN,e=b;a[e]&&!(e>=d);)++e;if(16<e-b&&a.buffer&&H)return H.decode(a.subarray(b,e));for(d="";b<e;){var f=a[b++];if(f&128){var g=a[b++]&63;if(192==(f&224))d+=String.fromCharCode((f&31)<<6|g);else{var k=a[b++]&63;f=224==(f&240)?(f&15)<<12|g<<6|k:(f&7)<<18|g<<12|k<<6|a[b++]&63;65536>f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023));}}else d+=String.fromCharCode(f);}return d;}function G(a){return a?I(C,a):"";}function B(a,b,d,e){if(0<e){e=d+e-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023;}if(127>=g){if(d>=e)break;b[d++]=g;}else{if(2047>=g){if(d+1>=e)break;b[d++]=192|g>>6;}else{if(65535>=g){if(d+2>=e)break;b[d++]=224|g>>12;}else{if(d+3>=e)break;b[d++]=240|g>>18;b[d++]=128|g>>12&63;}b[d++]=128|g>>6&63;}b[d++]=128|g&63;}}b[d]=0;}}function J(a){for(var b=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++d)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4;}return b;}function K(a){var b=J(a)+1,d=L(b);d&&B(a,D,d,b);return d;}var M,D,C,N;function ba(){var a=x.buffer;M=a;c.HEAP8=D=new Int8Array(a);c.HEAP16=new Int16Array(a);c.HEAP32=N=new Int32Array(a);c.HEAPU8=C=new Uint8Array(a);c.HEAPU16=new Uint16Array(a);c.HEAPU32=new Uint32Array(a);c.HEAPF32=new Float32Array(a);c.HEAPF64=new Float64Array(a);}var O,ca=[],da=[],ea=[];function fa(){var a=c.preRun.shift();ca.unshift(a);}var P=0,Q=null,R=null;function w(a){if(c.onAbort)c.onAbort(a);a="Aborted("+a+")";u(a);y=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");n(a);throw a;}function T(a){return a.startsWith("data:application/octet-stream;base64,");}var U;U="data:application/octet-stream;base64,AGFzbQEAAAAByQZtYAR/fn9/AX5gA39/fwF/YAJ/fwF/YAJ/fwBgAX8Bf2AFf35/f38BfmADf39/AGABfwBgAXwBfGACf34BfmAEf39/fwF/YAJ/fgBgAn9/AX5gAn9+AX9gA39/fgF/YAN/fn8BfmABfgF/YAN/fn8AYAZ/fn9/f38BfmADf35/AX9gBX9/f39/AX9gBn9+fn9/fwF+YAN/fn4BfmAEf39/fwBgBH9/fn8Bf2ADf39/AX5gBH9/f38BfmAGf39/f39/AX9gBX9+fn5+AGABfwF+YAN/fn4Bf2ACfHwBfGABfgF+YAV/fn9+fwF/YAV/fn5/fwF+YAd/fn9+fn5/AX9gAABgBX9/f39/AGAEf35+fwBgBX9+fn5/AX9gB39/f39/f38Bf2AGf35/fn5/AX9gBH9+f34BfmACfn8Bf2AEf35+fwF/YAJ+fwBgCX9/f39/f39/fwF/YAR/fn5/AX5gBn9/f39/fwF+YAN/fn4AYAR/fn9/AX9gBX9+fn9/AGACfn4BfmAHf35/f39/fwF+YAF/AXxgA39/fgBgBH9+f38AYAR/fn9+AX9gBH9+fn4Bf2AEf39/fgF/YAh/f39/f39/fwF/YAd/f39/f39/AGACfH8Bf
|
||
|
|
||
|
/***/ }),
|
||
|
/* 88 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var ArrayBufferViewCore = __w_pdfjs_require__(89);
|
||
|
var $findLast = (__w_pdfjs_require__(94).findLast);
|
||
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
||
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
||
|
exportTypedArrayMethod('findLast', function findLast(predicate) {
|
||
|
return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 89 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var NATIVE_ARRAY_BUFFER = __w_pdfjs_require__(90);
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var classof = __w_pdfjs_require__(77);
|
||
|
var tryToString = __w_pdfjs_require__(31);
|
||
|
var createNonEnumerableProperty = __w_pdfjs_require__(43);
|
||
|
var defineBuiltIn = __w_pdfjs_require__(47);
|
||
|
var defineBuiltInAccessor = __w_pdfjs_require__(91);
|
||
|
var isPrototypeOf = __w_pdfjs_require__(24);
|
||
|
var getPrototypeOf = __w_pdfjs_require__(92);
|
||
|
var setPrototypeOf = __w_pdfjs_require__(70);
|
||
|
var wellKnownSymbol = __w_pdfjs_require__(33);
|
||
|
var uid = __w_pdfjs_require__(40);
|
||
|
var InternalStateModule = __w_pdfjs_require__(51);
|
||
|
var enforceInternalState = InternalStateModule.enforce;
|
||
|
var getInternalState = InternalStateModule.get;
|
||
|
var Int8Array = global.Int8Array;
|
||
|
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
|
||
|
var Uint8ClampedArray = global.Uint8ClampedArray;
|
||
|
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
|
||
|
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
|
||
|
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
|
||
|
var ObjectPrototype = Object.prototype;
|
||
|
var TypeError = global.TypeError;
|
||
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
||
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
||
|
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
|
||
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
||
|
var NAME, Constructor, Prototype;
|
||
|
var TypedArrayConstructorsList = {
|
||
|
Int8Array: 1,
|
||
|
Uint8Array: 1,
|
||
|
Uint8ClampedArray: 1,
|
||
|
Int16Array: 2,
|
||
|
Uint16Array: 2,
|
||
|
Int32Array: 4,
|
||
|
Uint32Array: 4,
|
||
|
Float32Array: 4,
|
||
|
Float64Array: 8
|
||
|
};
|
||
|
var BigIntArrayConstructorsList = {
|
||
|
BigInt64Array: 8,
|
||
|
BigUint64Array: 8
|
||
|
};
|
||
|
var isView = function isView(it) {
|
||
|
if (!isObject(it))
|
||
|
return false;
|
||
|
var klass = classof(it);
|
||
|
return klass === 'DataView' || hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass);
|
||
|
};
|
||
|
var getTypedArrayConstructor = function (it) {
|
||
|
var proto = getPrototypeOf(it);
|
||
|
if (!isObject(proto))
|
||
|
return;
|
||
|
var state = getInternalState(proto);
|
||
|
return state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
|
||
|
};
|
||
|
var isTypedArray = function (it) {
|
||
|
if (!isObject(it))
|
||
|
return false;
|
||
|
var klass = classof(it);
|
||
|
return hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass);
|
||
|
};
|
||
|
var aTypedArray = function (it) {
|
||
|
if (isTypedArray(it))
|
||
|
return it;
|
||
|
throw TypeError('Target is not a typed array');
|
||
|
};
|
||
|
var aTypedArrayConstructor = function (C) {
|
||
|
if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C)))
|
||
|
return C;
|
||
|
throw TypeError(tryToString(C) + ' is not a typed array constructor');
|
||
|
};
|
||
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
||
|
if (!DESCRIPTORS)
|
||
|
return;
|
||
|
if (forced)
|
||
|
for (var ARRAY in TypedArrayConstructorsList) {
|
||
|
var TypedArrayConstructor = global[ARRAY];
|
||
|
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY))
|
||
|
try {
|
||
|
delete TypedArrayConstructor.prototype[KEY];
|
||
|
} catch (error) {
|
||
|
try {
|
||
|
TypedArrayConstructor.prototype[KEY] = property;
|
||
|
} catch (error2) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
if (!TypedArrayPrototype[KEY] || forced) {
|
||
|
defineBuiltIn(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
|
||
|
}
|
||
|
};
|
||
|
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
|
||
|
var ARRAY, TypedArrayConstructor;
|
||
|
if (!DESCRIPTORS)
|
||
|
return;
|
||
|
if (setPrototypeOf) {
|
||
|
if (forced)
|
||
|
for (ARRAY in TypedArrayConstructorsList) {
|
||
|
TypedArrayConstructor = global[ARRAY];
|
||
|
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY))
|
||
|
try {
|
||
|
delete TypedArrayConstructor[KEY];
|
||
|
} catch (error) {
|
||
|
}
|
||
|
}
|
||
|
if (!TypedArray[KEY] || forced) {
|
||
|
try {
|
||
|
return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
|
||
|
} catch (error) {
|
||
|
}
|
||
|
} else
|
||
|
return;
|
||
|
}
|
||
|
for (ARRAY in TypedArrayConstructorsList) {
|
||
|
TypedArrayConstructor = global[ARRAY];
|
||
|
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
|
||
|
defineBuiltIn(TypedArrayConstructor, KEY, property);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
for (NAME in TypedArrayConstructorsList) {
|
||
|
Constructor = global[NAME];
|
||
|
Prototype = Constructor && Constructor.prototype;
|
||
|
if (Prototype)
|
||
|
enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
||
|
else
|
||
|
NATIVE_ARRAY_BUFFER_VIEWS = false;
|
||
|
}
|
||
|
for (NAME in BigIntArrayConstructorsList) {
|
||
|
Constructor = global[NAME];
|
||
|
Prototype = Constructor && Constructor.prototype;
|
||
|
if (Prototype)
|
||
|
enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
||
|
}
|
||
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
||
|
TypedArray = function TypedArray() {
|
||
|
throw TypeError('Incorrect invocation');
|
||
|
};
|
||
|
if (NATIVE_ARRAY_BUFFER_VIEWS)
|
||
|
for (NAME in TypedArrayConstructorsList) {
|
||
|
if (global[NAME])
|
||
|
setPrototypeOf(global[NAME], TypedArray);
|
||
|
}
|
||
|
}
|
||
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
|
||
|
TypedArrayPrototype = TypedArray.prototype;
|
||
|
if (NATIVE_ARRAY_BUFFER_VIEWS)
|
||
|
for (NAME in TypedArrayConstructorsList) {
|
||
|
if (global[NAME])
|
||
|
setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
|
||
|
}
|
||
|
}
|
||
|
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
|
||
|
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
|
||
|
}
|
||
|
if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
|
||
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
||
|
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {
|
||
|
configurable: true,
|
||
|
get: function () {
|
||
|
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
||
|
}
|
||
|
});
|
||
|
for (NAME in TypedArrayConstructorsList)
|
||
|
if (global[NAME]) {
|
||
|
createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
|
||
|
}
|
||
|
}
|
||
|
module.exports = {
|
||
|
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
|
||
|
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
|
||
|
aTypedArray: aTypedArray,
|
||
|
aTypedArrayConstructor: aTypedArrayConstructor,
|
||
|
exportTypedArrayMethod: exportTypedArrayMethod,
|
||
|
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
|
||
|
getTypedArrayConstructor: getTypedArrayConstructor,
|
||
|
isView: isView,
|
||
|
isTypedArray: isTypedArray,
|
||
|
TypedArray: TypedArray,
|
||
|
TypedArrayPrototype: TypedArrayPrototype
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 90 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 91 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var makeBuiltIn = __w_pdfjs_require__(48);
|
||
|
var defineProperty = __w_pdfjs_require__(44);
|
||
|
module.exports = function (target, name, descriptor) {
|
||
|
if (descriptor.get)
|
||
|
makeBuiltIn(descriptor.get, name, { getter: true });
|
||
|
if (descriptor.set)
|
||
|
makeBuiltIn(descriptor.set, name, { setter: true });
|
||
|
return defineProperty.f(target, name, descriptor);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 92 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var toObject = __w_pdfjs_require__(39);
|
||
|
var sharedKey = __w_pdfjs_require__(53);
|
||
|
var CORRECT_PROTOTYPE_GETTER = __w_pdfjs_require__(93);
|
||
|
var IE_PROTO = sharedKey('IE_PROTO');
|
||
|
var $Object = Object;
|
||
|
var ObjectPrototype = $Object.prototype;
|
||
|
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
||
|
var object = toObject(O);
|
||
|
if (hasOwn(object, IE_PROTO))
|
||
|
return object[IE_PROTO];
|
||
|
var constructor = object.constructor;
|
||
|
if (isCallable(constructor) && object instanceof constructor) {
|
||
|
return constructor.prototype;
|
||
|
}
|
||
|
return object instanceof $Object ? ObjectPrototype : null;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 93 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
module.exports = !fails(function () {
|
||
|
function F() {
|
||
|
}
|
||
|
F.prototype.constructor = null;
|
||
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 94 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var bind = __w_pdfjs_require__(95);
|
||
|
var IndexedObject = __w_pdfjs_require__(12);
|
||
|
var toObject = __w_pdfjs_require__(39);
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var createMethod = function (TYPE) {
|
||
|
var IS_FIND_LAST_INDEX = TYPE === 1;
|
||
|
return function ($this, callbackfn, that) {
|
||
|
var O = toObject($this);
|
||
|
var self = IndexedObject(O);
|
||
|
var boundFunction = bind(callbackfn, that);
|
||
|
var index = lengthOfArrayLike(self);
|
||
|
var value, result;
|
||
|
while (index-- > 0) {
|
||
|
value = self[index];
|
||
|
result = boundFunction(value, index, O);
|
||
|
if (result)
|
||
|
switch (TYPE) {
|
||
|
case 0:
|
||
|
return value;
|
||
|
case 1:
|
||
|
return index;
|
||
|
}
|
||
|
}
|
||
|
return IS_FIND_LAST_INDEX ? -1 : undefined;
|
||
|
};
|
||
|
};
|
||
|
module.exports = {
|
||
|
findLast: createMethod(0),
|
||
|
findLastIndex: createMethod(1)
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 95 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(96);
|
||
|
var aCallable = __w_pdfjs_require__(30);
|
||
|
var NATIVE_BIND = __w_pdfjs_require__(8);
|
||
|
var bind = uncurryThis(uncurryThis.bind);
|
||
|
module.exports = function (fn, that) {
|
||
|
aCallable(fn);
|
||
|
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function () {
|
||
|
return fn.apply(that, arguments);
|
||
|
};
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 96 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var classofRaw = __w_pdfjs_require__(14);
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
module.exports = function (fn) {
|
||
|
if (classofRaw(fn) === 'Function')
|
||
|
return uncurryThis(fn);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 97 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var ArrayBufferViewCore = __w_pdfjs_require__(89);
|
||
|
var $findLastIndex = (__w_pdfjs_require__(94).findLastIndex);
|
||
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
||
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
||
|
exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate) {
|
||
|
return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 98 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var call = __w_pdfjs_require__(7);
|
||
|
var ArrayBufferViewCore = __w_pdfjs_require__(89);
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var toOffset = __w_pdfjs_require__(99);
|
||
|
var toIndexedObject = __w_pdfjs_require__(39);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var RangeError = global.RangeError;
|
||
|
var Int8Array = global.Int8Array;
|
||
|
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
|
||
|
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
|
||
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
||
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
||
|
var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () {
|
||
|
var array = new Uint8ClampedArray(2);
|
||
|
call($set, array, {
|
||
|
length: 1,
|
||
|
0: 3
|
||
|
}, 1);
|
||
|
return array[1] !== 3;
|
||
|
});
|
||
|
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {
|
||
|
var array = new Int8Array(2);
|
||
|
array.set(1);
|
||
|
array.set('2', 1);
|
||
|
return array[0] !== 0 || array[1] !== 2;
|
||
|
});
|
||
|
exportTypedArrayMethod('set', function set(arrayLike) {
|
||
|
aTypedArray(this);
|
||
|
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
|
||
|
var src = toIndexedObject(arrayLike);
|
||
|
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS)
|
||
|
return call($set, this, src, offset);
|
||
|
var length = this.length;
|
||
|
var len = lengthOfArrayLike(src);
|
||
|
var index = 0;
|
||
|
if (len + offset > length)
|
||
|
throw RangeError('Wrong length');
|
||
|
while (index < len)
|
||
|
this[offset + index] = src[index++];
|
||
|
}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
|
||
|
|
||
|
/***/ }),
|
||
|
/* 99 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toPositiveInteger = __w_pdfjs_require__(100);
|
||
|
var $RangeError = RangeError;
|
||
|
module.exports = function (it, BYTES) {
|
||
|
var offset = toPositiveInteger(it);
|
||
|
if (offset % BYTES)
|
||
|
throw $RangeError('Wrong offset');
|
||
|
return offset;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 100 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toIntegerOrInfinity = __w_pdfjs_require__(61);
|
||
|
var $RangeError = RangeError;
|
||
|
module.exports = function (it) {
|
||
|
var result = toIntegerOrInfinity(it);
|
||
|
if (result < 0)
|
||
|
throw $RangeError("The argument can't be less than 0");
|
||
|
return result;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 101 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var arrayToReversed = __w_pdfjs_require__(102);
|
||
|
var ArrayBufferViewCore = __w_pdfjs_require__(89);
|
||
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
||
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
||
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
||
|
exportTypedArrayMethod('toReversed', function toReversed() {
|
||
|
return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 102 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
module.exports = function (O, C) {
|
||
|
var len = lengthOfArrayLike(O);
|
||
|
var A = new C(len);
|
||
|
var k = 0;
|
||
|
for (; k < len; k++)
|
||
|
A[k] = O[len - k - 1];
|
||
|
return A;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 103 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var ArrayBufferViewCore = __w_pdfjs_require__(89);
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var aCallable = __w_pdfjs_require__(30);
|
||
|
var arrayFromConstructorAndList = __w_pdfjs_require__(104);
|
||
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
||
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
||
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
||
|
var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
|
||
|
exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
|
||
|
if (compareFn !== undefined)
|
||
|
aCallable(compareFn);
|
||
|
var O = aTypedArray(this);
|
||
|
var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);
|
||
|
return sort(A, compareFn);
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 104 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
module.exports = function (Constructor, list) {
|
||
|
var index = 0;
|
||
|
var length = lengthOfArrayLike(list);
|
||
|
var result = new Constructor(length);
|
||
|
while (length > index)
|
||
|
result[index] = list[index++];
|
||
|
return result;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 105 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var arrayWith = __w_pdfjs_require__(106);
|
||
|
var ArrayBufferViewCore = __w_pdfjs_require__(89);
|
||
|
var isBigIntArray = __w_pdfjs_require__(107);
|
||
|
var toIntegerOrInfinity = __w_pdfjs_require__(61);
|
||
|
var toBigInt = __w_pdfjs_require__(108);
|
||
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
||
|
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
||
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
||
|
var PROPER_ORDER = !!(function () {
|
||
|
try {
|
||
|
new Int8Array(1)['with'](2, {
|
||
|
valueOf: function () {
|
||
|
throw 8;
|
||
|
}
|
||
|
});
|
||
|
} catch (error) {
|
||
|
return error === 8;
|
||
|
}
|
||
|
}());
|
||
|
exportTypedArrayMethod('with', {
|
||
|
'with': function (index, value) {
|
||
|
var O = aTypedArray(this);
|
||
|
var relativeIndex = toIntegerOrInfinity(index);
|
||
|
var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
|
||
|
return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
|
||
|
}
|
||
|
}['with'], !PROPER_ORDER);
|
||
|
|
||
|
/***/ }),
|
||
|
/* 106 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var toIntegerOrInfinity = __w_pdfjs_require__(61);
|
||
|
var $RangeError = RangeError;
|
||
|
module.exports = function (O, C, index, value) {
|
||
|
var len = lengthOfArrayLike(O);
|
||
|
var relativeIndex = toIntegerOrInfinity(index);
|
||
|
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
|
||
|
if (actualIndex >= len || actualIndex < 0)
|
||
|
throw $RangeError('Incorrect index');
|
||
|
var A = new C(len);
|
||
|
var k = 0;
|
||
|
for (; k < len; k++)
|
||
|
A[k] = k === actualIndex ? value : O[k];
|
||
|
return A;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 107 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var classof = __w_pdfjs_require__(77);
|
||
|
module.exports = function (it) {
|
||
|
var klass = classof(it);
|
||
|
return klass === 'BigInt64Array' || klass === 'BigUint64Array';
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 108 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toPrimitive = __w_pdfjs_require__(18);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (argument) {
|
||
|
var prim = toPrimitive(argument, 'number');
|
||
|
if (typeof prim == 'number')
|
||
|
throw $TypeError("Can't convert number to bigint");
|
||
|
return BigInt(prim);
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 109 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var defineBuiltInAccessor = __w_pdfjs_require__(91);
|
||
|
var isDetached = __w_pdfjs_require__(110);
|
||
|
var ArrayBufferPrototype = ArrayBuffer.prototype;
|
||
|
if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) {
|
||
|
defineBuiltInAccessor(ArrayBufferPrototype, 'detached', {
|
||
|
configurable: true,
|
||
|
get: function detached() {
|
||
|
return isDetached(this);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/***/ }),
|
||
|
/* 110 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var arrayBufferByteLength = __w_pdfjs_require__(111);
|
||
|
var slice = uncurryThis(ArrayBuffer.prototype.slice);
|
||
|
module.exports = function (O) {
|
||
|
if (arrayBufferByteLength(O) !== 0)
|
||
|
return false;
|
||
|
try {
|
||
|
slice(O, 0, 0);
|
||
|
return false;
|
||
|
} catch (error) {
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 111 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThisAccessor = __w_pdfjs_require__(71);
|
||
|
var classof = __w_pdfjs_require__(14);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
|
||
|
if (classof(O) !== 'ArrayBuffer')
|
||
|
throw $TypeError('ArrayBuffer expected');
|
||
|
return O.byteLength;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 112 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var $transfer = __w_pdfjs_require__(113);
|
||
|
if ($transfer)
|
||
|
$({
|
||
|
target: 'ArrayBuffer',
|
||
|
proto: true
|
||
|
}, {
|
||
|
transfer: function transfer() {
|
||
|
return $transfer(this, arguments.length ? arguments[0] : undefined, true);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 113 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var uncurryThisAccessor = __w_pdfjs_require__(71);
|
||
|
var toIndex = __w_pdfjs_require__(114);
|
||
|
var isDetached = __w_pdfjs_require__(110);
|
||
|
var arrayBufferByteLength = __w_pdfjs_require__(111);
|
||
|
var PROPER_TRANSFER = __w_pdfjs_require__(115);
|
||
|
var TypeError = global.TypeError;
|
||
|
var structuredClone = global.structuredClone;
|
||
|
var ArrayBuffer = global.ArrayBuffer;
|
||
|
var DataView = global.DataView;
|
||
|
var min = Math.min;
|
||
|
var ArrayBufferPrototype = ArrayBuffer.prototype;
|
||
|
var DataViewPrototype = DataView.prototype;
|
||
|
var slice = uncurryThis(ArrayBufferPrototype.slice);
|
||
|
var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');
|
||
|
var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');
|
||
|
var getInt8 = uncurryThis(DataViewPrototype.getInt8);
|
||
|
var setInt8 = uncurryThis(DataViewPrototype.setInt8);
|
||
|
module.exports = PROPER_TRANSFER && function (arrayBuffer, newLength, preserveResizability) {
|
||
|
var byteLength = arrayBufferByteLength(arrayBuffer);
|
||
|
var newByteLength = newLength === undefined ? byteLength : toIndex(newLength);
|
||
|
var fixedLength = !isResizable || !isResizable(arrayBuffer);
|
||
|
if (isDetached(arrayBuffer))
|
||
|
throw TypeError('ArrayBuffer is detached');
|
||
|
var newBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
|
||
|
if (byteLength === newByteLength && (preserveResizability || fixedLength))
|
||
|
return newBuffer;
|
||
|
if (byteLength >= newByteLength && (!preserveResizability || fixedLength))
|
||
|
return slice(newBuffer, 0, newByteLength);
|
||
|
var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(newBuffer) } : undefined;
|
||
|
var newNewBuffer = new ArrayBuffer(newByteLength, options);
|
||
|
var a = new DataView(newBuffer);
|
||
|
var b = new DataView(newNewBuffer);
|
||
|
var copyLength = min(newByteLength, byteLength);
|
||
|
for (var i = 0; i < copyLength; i++)
|
||
|
setInt8(b, i, getInt8(a, i));
|
||
|
return newNewBuffer;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 114 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toIntegerOrInfinity = __w_pdfjs_require__(61);
|
||
|
var toLength = __w_pdfjs_require__(64);
|
||
|
var $RangeError = RangeError;
|
||
|
module.exports = function (it) {
|
||
|
if (it === undefined)
|
||
|
return 0;
|
||
|
var number = toIntegerOrInfinity(it);
|
||
|
var length = toLength(number);
|
||
|
if (number !== length)
|
||
|
throw $RangeError('Wrong length or index');
|
||
|
return length;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 115 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var V8 = __w_pdfjs_require__(27);
|
||
|
var IS_BROWSER = __w_pdfjs_require__(116);
|
||
|
var IS_DENO = __w_pdfjs_require__(117);
|
||
|
var IS_NODE = __w_pdfjs_require__(118);
|
||
|
var structuredClone = global.structuredClone;
|
||
|
module.exports = !!structuredClone && !fails(function () {
|
||
|
if (IS_DENO && V8 > 92 || IS_NODE && V8 > 94 || IS_BROWSER && V8 > 97)
|
||
|
return false;
|
||
|
var buffer = new ArrayBuffer(8);
|
||
|
var clone = structuredClone(buffer, { transfer: [buffer] });
|
||
|
return buffer.byteLength !== 0 || clone.byteLength !== 8;
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 116 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var IS_DENO = __w_pdfjs_require__(117);
|
||
|
var IS_NODE = __w_pdfjs_require__(118);
|
||
|
module.exports = !IS_DENO && !IS_NODE && typeof window == 'object' && typeof document == 'object';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 117 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 118 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var classof = __w_pdfjs_require__(14);
|
||
|
module.exports = classof(global.process) === 'process';
|
||
|
|
||
|
/***/ }),
|
||
|
/* 119 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var $transfer = __w_pdfjs_require__(113);
|
||
|
if ($transfer)
|
||
|
$({
|
||
|
target: 'ArrayBuffer',
|
||
|
proto: true
|
||
|
}, {
|
||
|
transferToFixedLength: function transferToFixedLength() {
|
||
|
return $transfer(this, arguments.length ? arguments[0] : undefined, false);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 120 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var toObject = __w_pdfjs_require__(39);
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var setArrayLength = __w_pdfjs_require__(84);
|
||
|
var deletePropertyOrThrow = __w_pdfjs_require__(121);
|
||
|
var doesNotExceedSafeInteger = __w_pdfjs_require__(86);
|
||
|
var INCORRECT_RESULT = [].unshift(0) !== 1;
|
||
|
var properErrorOnNonWritableLength = function () {
|
||
|
try {
|
||
|
Object.defineProperty([], 'length', { writable: false }).unshift();
|
||
|
} catch (error) {
|
||
|
return error instanceof TypeError;
|
||
|
}
|
||
|
};
|
||
|
var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength();
|
||
|
$({
|
||
|
target: 'Array',
|
||
|
proto: true,
|
||
|
arity: 1,
|
||
|
forced: FORCED
|
||
|
}, {
|
||
|
unshift: function unshift(item) {
|
||
|
var O = toObject(this);
|
||
|
var len = lengthOfArrayLike(O);
|
||
|
var argCount = arguments.length;
|
||
|
if (argCount) {
|
||
|
doesNotExceedSafeInteger(len + argCount);
|
||
|
var k = len;
|
||
|
while (k--) {
|
||
|
var to = k + argCount;
|
||
|
if (k in O)
|
||
|
O[to] = O[k];
|
||
|
else
|
||
|
deletePropertyOrThrow(O, to);
|
||
|
}
|
||
|
for (var j = 0; j < argCount; j++) {
|
||
|
O[j] = arguments[j];
|
||
|
}
|
||
|
}
|
||
|
return setArrayLength(O, len + argCount);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 121 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var tryToString = __w_pdfjs_require__(31);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (O, P) {
|
||
|
if (!delete O[P])
|
||
|
throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 122 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var getBuiltIn = __w_pdfjs_require__(23);
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var call = __w_pdfjs_require__(7);
|
||
|
var isCallable = __w_pdfjs_require__(20);
|
||
|
var isObject = __w_pdfjs_require__(19);
|
||
|
var isArray = __w_pdfjs_require__(85);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var toString = __w_pdfjs_require__(76);
|
||
|
var lengthOfArrayLike = __w_pdfjs_require__(63);
|
||
|
var createProperty = __w_pdfjs_require__(123);
|
||
|
var fails = __w_pdfjs_require__(6);
|
||
|
var parseJSONString = __w_pdfjs_require__(124);
|
||
|
var NATIVE_SYMBOL = __w_pdfjs_require__(26);
|
||
|
var JSON = global.JSON;
|
||
|
var Number = global.Number;
|
||
|
var SyntaxError = global.SyntaxError;
|
||
|
var nativeParse = JSON && JSON.parse;
|
||
|
var enumerableOwnProperties = getBuiltIn('Object', 'keys');
|
||
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
var at = uncurryThis(''.charAt);
|
||
|
var slice = uncurryThis(''.slice);
|
||
|
var exec = uncurryThis(/./.exec);
|
||
|
var push = uncurryThis([].push);
|
||
|
var IS_DIGIT = /^\d$/;
|
||
|
var IS_NON_ZERO_DIGIT = /^[1-9]$/;
|
||
|
var IS_NUMBER_START = /^(?:-|\d)$/;
|
||
|
var IS_WHITESPACE = /^[\t\n\r ]$/;
|
||
|
var PRIMITIVE = 0;
|
||
|
var OBJECT = 1;
|
||
|
var $parse = function (source, reviver) {
|
||
|
source = toString(source);
|
||
|
var context = new Context(source, 0, '');
|
||
|
var root = context.parse();
|
||
|
var value = root.value;
|
||
|
var endIndex = context.skip(IS_WHITESPACE, root.end);
|
||
|
if (endIndex < source.length) {
|
||
|
throw SyntaxError('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex);
|
||
|
}
|
||
|
return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value;
|
||
|
};
|
||
|
var internalize = function (holder, name, reviver, node) {
|
||
|
var val = holder[name];
|
||
|
var unmodified = node && val === node.value;
|
||
|
var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {};
|
||
|
var elementRecordsLen, keys, len, i, P;
|
||
|
if (isObject(val)) {
|
||
|
var nodeIsArray = isArray(val);
|
||
|
var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {};
|
||
|
if (nodeIsArray) {
|
||
|
elementRecordsLen = nodes.length;
|
||
|
len = lengthOfArrayLike(val);
|
||
|
for (i = 0; i < len; i++) {
|
||
|
internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined));
|
||
|
}
|
||
|
} else {
|
||
|
keys = enumerableOwnProperties(val);
|
||
|
len = lengthOfArrayLike(keys);
|
||
|
for (i = 0; i < len; i++) {
|
||
|
P = keys[i];
|
||
|
internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return call(reviver, holder, name, val, context);
|
||
|
};
|
||
|
var internalizeProperty = function (object, key, value) {
|
||
|
if (DESCRIPTORS) {
|
||
|
var descriptor = getOwnPropertyDescriptor(object, key);
|
||
|
if (descriptor && !descriptor.configurable)
|
||
|
return;
|
||
|
}
|
||
|
if (value === undefined)
|
||
|
delete object[key];
|
||
|
else
|
||
|
createProperty(object, key, value);
|
||
|
};
|
||
|
var Node = function (value, end, source, nodes) {
|
||
|
this.value = value;
|
||
|
this.end = end;
|
||
|
this.source = source;
|
||
|
this.nodes = nodes;
|
||
|
};
|
||
|
var Context = function (source, index) {
|
||
|
this.source = source;
|
||
|
this.index = index;
|
||
|
};
|
||
|
Context.prototype = {
|
||
|
fork: function (nextIndex) {
|
||
|
return new Context(this.source, nextIndex);
|
||
|
},
|
||
|
parse: function () {
|
||
|
var source = this.source;
|
||
|
var i = this.skip(IS_WHITESPACE, this.index);
|
||
|
var fork = this.fork(i);
|
||
|
var chr = at(source, i);
|
||
|
if (exec(IS_NUMBER_START, chr))
|
||
|
return fork.number();
|
||
|
switch (chr) {
|
||
|
case '{':
|
||
|
return fork.object();
|
||
|
case '[':
|
||
|
return fork.array();
|
||
|
case '"':
|
||
|
return fork.string();
|
||
|
case 't':
|
||
|
return fork.keyword(true);
|
||
|
case 'f':
|
||
|
return fork.keyword(false);
|
||
|
case 'n':
|
||
|
return fork.keyword(null);
|
||
|
}
|
||
|
throw SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
|
||
|
},
|
||
|
node: function (type, value, start, end, nodes) {
|
||
|
return new Node(value, end, type ? null : slice(this.source, start, end), nodes);
|
||
|
},
|
||
|
object: function () {
|
||
|
var source = this.source;
|
||
|
var i = this.index + 1;
|
||
|
var expectKeypair = false;
|
||
|
var object = {};
|
||
|
var nodes = {};
|
||
|
while (i < source.length) {
|
||
|
i = this.until([
|
||
|
'"',
|
||
|
'}'
|
||
|
], i);
|
||
|
if (at(source, i) === '}' && !expectKeypair) {
|
||
|
i++;
|
||
|
break;
|
||
|
}
|
||
|
var result = this.fork(i).string();
|
||
|
var key = result.value;
|
||
|
i = result.end;
|
||
|
i = this.until([':'], i) + 1;
|
||
|
i = this.skip(IS_WHITESPACE, i);
|
||
|
result = this.fork(i).parse();
|
||
|
createProperty(nodes, key, result);
|
||
|
createProperty(object, key, result.value);
|
||
|
i = this.until([
|
||
|
',',
|
||
|
'}'
|
||
|
], result.end);
|
||
|
var chr = at(source, i);
|
||
|
if (chr === ',') {
|
||
|
expectKeypair = true;
|
||
|
i++;
|
||
|
} else if (chr === '}') {
|
||
|
i++;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return this.node(OBJECT, object, this.index, i, nodes);
|
||
|
},
|
||
|
array: function () {
|
||
|
var source = this.source;
|
||
|
var i = this.index + 1;
|
||
|
var expectElement = false;
|
||
|
var array = [];
|
||
|
var nodes = [];
|
||
|
while (i < source.length) {
|
||
|
i = this.skip(IS_WHITESPACE, i);
|
||
|
if (at(source, i) === ']' && !expectElement) {
|
||
|
i++;
|
||
|
break;
|
||
|
}
|
||
|
var result = this.fork(i).parse();
|
||
|
push(nodes, result);
|
||
|
push(array, result.value);
|
||
|
i = this.until([
|
||
|
',',
|
||
|
']'
|
||
|
], result.end);
|
||
|
if (at(source, i) === ',') {
|
||
|
expectElement = true;
|
||
|
i++;
|
||
|
} else if (at(source, i) === ']') {
|
||
|
i++;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return this.node(OBJECT, array, this.index, i, nodes);
|
||
|
},
|
||
|
string: function () {
|
||
|
var index = this.index;
|
||
|
var parsed = parseJSONString(this.source, this.index + 1);
|
||
|
return this.node(PRIMITIVE, parsed.value, index, parsed.end);
|
||
|
},
|
||
|
number: function () {
|
||
|
var source = this.source;
|
||
|
var startIndex = this.index;
|
||
|
var i = startIndex;
|
||
|
if (at(source, i) === '-')
|
||
|
i++;
|
||
|
if (at(source, i) === '0')
|
||
|
i++;
|
||
|
else if (exec(IS_NON_ZERO_DIGIT, at(source, i)))
|
||
|
i = this.skip(IS_DIGIT, ++i);
|
||
|
else
|
||
|
throw SyntaxError('Failed to parse number at: ' + i);
|
||
|
if (at(source, i) === '.')
|
||
|
i = this.skip(IS_DIGIT, ++i);
|
||
|
if (at(source, i) === 'e' || at(source, i) === 'E') {
|
||
|
i++;
|
||
|
if (at(source, i) === '+' || at(source, i) === '-')
|
||
|
i++;
|
||
|
var exponentStartIndex = i;
|
||
|
i = this.skip(IS_DIGIT, i);
|
||
|
if (exponentStartIndex === i)
|
||
|
throw SyntaxError("Failed to parse number's exponent value at: " + i);
|
||
|
}
|
||
|
return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i);
|
||
|
},
|
||
|
keyword: function (value) {
|
||
|
var keyword = '' + value;
|
||
|
var index = this.index;
|
||
|
var endIndex = index + keyword.length;
|
||
|
if (slice(this.source, index, endIndex) !== keyword)
|
||
|
throw SyntaxError('Failed to parse value at: ' + index);
|
||
|
return this.node(PRIMITIVE, value, index, endIndex);
|
||
|
},
|
||
|
skip: function (regex, i) {
|
||
|
var source = this.source;
|
||
|
for (; i < source.length; i++)
|
||
|
if (!exec(regex, at(source, i)))
|
||
|
break;
|
||
|
return i;
|
||
|
},
|
||
|
until: function (array, i) {
|
||
|
i = this.skip(IS_WHITESPACE, i);
|
||
|
var chr = at(this.source, i);
|
||
|
for (var j = 0; j < array.length; j++)
|
||
|
if (array[j] === chr)
|
||
|
return i;
|
||
|
throw SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
|
||
|
}
|
||
|
};
|
||
|
var NO_SOURCE_SUPPORT = fails(function () {
|
||
|
var unsafeInt = '9007199254740993';
|
||
|
var source;
|
||
|
nativeParse(unsafeInt, function (key, value, context) {
|
||
|
source = context.source;
|
||
|
});
|
||
|
return source !== unsafeInt;
|
||
|
});
|
||
|
var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () {
|
||
|
return 1 / nativeParse('-0 \t') !== -Infinity;
|
||
|
});
|
||
|
$({
|
||
|
target: 'JSON',
|
||
|
stat: true,
|
||
|
forced: NO_SOURCE_SUPPORT
|
||
|
}, {
|
||
|
parse: function parse(text, reviver) {
|
||
|
return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 123 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var toPropertyKey = __w_pdfjs_require__(17);
|
||
|
var definePropertyModule = __w_pdfjs_require__(44);
|
||
|
var createPropertyDescriptor = __w_pdfjs_require__(10);
|
||
|
module.exports = function (object, key, value) {
|
||
|
var propertyKey = toPropertyKey(key);
|
||
|
if (propertyKey in object)
|
||
|
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
||
|
else
|
||
|
object[propertyKey] = value;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 124 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var uncurryThis = __w_pdfjs_require__(13);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var $SyntaxError = SyntaxError;
|
||
|
var $parseInt = parseInt;
|
||
|
var fromCharCode = String.fromCharCode;
|
||
|
var at = uncurryThis(''.charAt);
|
||
|
var slice = uncurryThis(''.slice);
|
||
|
var exec = uncurryThis(/./.exec);
|
||
|
var codePoints = {
|
||
|
'\\"': '"',
|
||
|
'\\\\': '\\',
|
||
|
'\\/': '/',
|
||
|
'\\b': '\b',
|
||
|
'\\f': '\f',
|
||
|
'\\n': '\n',
|
||
|
'\\r': '\r',
|
||
|
'\\t': '\t'
|
||
|
};
|
||
|
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
|
||
|
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
|
||
|
module.exports = function (source, i) {
|
||
|
var unterminated = true;
|
||
|
var value = '';
|
||
|
while (i < source.length) {
|
||
|
var chr = at(source, i);
|
||
|
if (chr === '\\') {
|
||
|
var twoChars = slice(source, i, i + 2);
|
||
|
if (hasOwn(codePoints, twoChars)) {
|
||
|
value += codePoints[twoChars];
|
||
|
i += 2;
|
||
|
} else if (twoChars === '\\u') {
|
||
|
i += 2;
|
||
|
var fourHexDigits = slice(source, i, i + 4);
|
||
|
if (!exec(IS_4_HEX_DIGITS, fourHexDigits))
|
||
|
throw $SyntaxError('Bad Unicode escape at: ' + i);
|
||
|
value += fromCharCode($parseInt(fourHexDigits, 16));
|
||
|
i += 4;
|
||
|
} else
|
||
|
throw $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
|
||
|
} else if (chr === '"') {
|
||
|
unterminated = false;
|
||
|
i++;
|
||
|
break;
|
||
|
} else {
|
||
|
if (exec(IS_C0_CONTROL_CODE, chr))
|
||
|
throw $SyntaxError('Bad control character in string literal at: ' + i);
|
||
|
value += chr;
|
||
|
i++;
|
||
|
}
|
||
|
}
|
||
|
if (unterminated)
|
||
|
throw $SyntaxError('Unterminated string at: ' + i);
|
||
|
return {
|
||
|
value: value,
|
||
|
end: i
|
||
|
};
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 125 */
|
||
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var $ = __w_pdfjs_require__(2);
|
||
|
var global = __w_pdfjs_require__(3);
|
||
|
var getBuiltIn = __w_pdfjs_require__(23);
|
||
|
var createPropertyDescriptor = __w_pdfjs_require__(10);
|
||
|
var defineProperty = (__w_pdfjs_require__(44).f);
|
||
|
var hasOwn = __w_pdfjs_require__(38);
|
||
|
var anInstance = __w_pdfjs_require__(126);
|
||
|
var inheritIfRequired = __w_pdfjs_require__(74);
|
||
|
var normalizeStringArgument = __w_pdfjs_require__(75);
|
||
|
var DOMExceptionConstants = __w_pdfjs_require__(127);
|
||
|
var clearErrorStack = __w_pdfjs_require__(81);
|
||
|
var DESCRIPTORS = __w_pdfjs_require__(5);
|
||
|
var IS_PURE = __w_pdfjs_require__(35);
|
||
|
var DOM_EXCEPTION = 'DOMException';
|
||
|
var Error = getBuiltIn('Error');
|
||
|
var NativeDOMException = getBuiltIn(DOM_EXCEPTION);
|
||
|
var $DOMException = function DOMException() {
|
||
|
anInstance(this, DOMExceptionPrototype);
|
||
|
var argumentsLength = arguments.length;
|
||
|
var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);
|
||
|
var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');
|
||
|
var that = new NativeDOMException(message, name);
|
||
|
var error = Error(message);
|
||
|
error.name = DOM_EXCEPTION;
|
||
|
defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
|
||
|
inheritIfRequired(that, this, $DOMException);
|
||
|
return that;
|
||
|
};
|
||
|
var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
|
||
|
var ERROR_HAS_STACK = 'stack' in Error(DOM_EXCEPTION);
|
||
|
var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
|
||
|
var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION);
|
||
|
var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);
|
||
|
var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
|
||
|
$({
|
||
|
global: true,
|
||
|
constructor: true,
|
||
|
forced: IS_PURE || FORCED_CONSTRUCTOR
|
||
|
}, { DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException });
|
||
|
var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
|
||
|
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
|
||
|
if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
|
||
|
if (!IS_PURE) {
|
||
|
defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));
|
||
|
}
|
||
|
for (var key in DOMExceptionConstants)
|
||
|
if (hasOwn(DOMExceptionConstants, key)) {
|
||
|
var constant = DOMExceptionConstants[key];
|
||
|
var constantName = constant.s;
|
||
|
if (!hasOwn(PolyfilledDOMException, constantName)) {
|
||
|
defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/***/ }),
|
||
|
/* 126 */
|
||
|
/***/ ((module, __unused_webpack_exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
var isPrototypeOf = __w_pdfjs_require__(24);
|
||
|
var $TypeError = TypeError;
|
||
|
module.exports = function (it, Prototype) {
|
||
|
if (isPrototypeOf(Prototype, it))
|
||
|
return it;
|
||
|
throw $TypeError('Incorrect invocation');
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 127 */
|
||
|
/***/ ((module) => {
|
||
|
|
||
|
|
||
|
module.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
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 128 */
|
||
|
/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => {
|
||
|
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", ({
|
||
|
value: true
|
||
|
}));
|
||
|
exports.SandboxSupportBase = void 0;
|
||
|
__w_pdfjs_require__(1);
|
||
|
class SandboxSupportBase {
|
||
|
constructor(win) {
|
||
|
this.win = win;
|
||
|
this.timeoutIds = new Map();
|
||
|
this.commFun = null;
|
||
|
}
|
||
|
destroy() {
|
||
|
this.commFun = null;
|
||
|
for (const id of this.timeoutIds.values()) {
|
||
|
this.win.clearTimeout(id);
|
||
|
}
|
||
|
this.timeoutIds = null;
|
||
|
}
|
||
|
exportValueToSandbox(val) {
|
||
|
throw new Error("Not implemented");
|
||
|
}
|
||
|
importValueFromSandbox(val) {
|
||
|
throw new Error("Not implemented");
|
||
|
}
|
||
|
createErrorForSandbox(errorMessage) {
|
||
|
throw new Error("Not implemented");
|
||
|
}
|
||
|
callSandboxFunction(name, args) {
|
||
|
try {
|
||
|
args = this.exportValueToSandbox(args);
|
||
|
this.commFun(name, args);
|
||
|
} catch (e) {
|
||
|
this.win.console.error(e);
|
||
|
}
|
||
|
}
|
||
|
createSandboxExternals() {
|
||
|
const externals = {
|
||
|
setTimeout: (callbackId, nMilliseconds) => {
|
||
|
if (typeof callbackId !== "number" || typeof nMilliseconds !== "number") {
|
||
|
return;
|
||
|
}
|
||
|
if (callbackId === 0) {
|
||
|
this.win.clearTimeout(this.timeoutIds.get(callbackId));
|
||
|
}
|
||
|
const id = this.win.setTimeout(() => {
|
||
|
this.timeoutIds.delete(callbackId);
|
||
|
this.callSandboxFunction("timeoutCb", {
|
||
|
callbackId,
|
||
|
interval: false
|
||
|
});
|
||
|
}, nMilliseconds);
|
||
|
this.timeoutIds.set(callbackId, id);
|
||
|
},
|
||
|
clearTimeout: callbackId => {
|
||
|
this.win.clearTimeout(this.timeoutIds.get(callbackId));
|
||
|
this.timeoutIds.delete(callbackId);
|
||
|
},
|
||
|
setInterval: (callbackId, nMilliseconds) => {
|
||
|
if (typeof callbackId !== "number" || typeof nMilliseconds !== "number") {
|
||
|
return;
|
||
|
}
|
||
|
const id = this.win.setInterval(() => {
|
||
|
this.callSandboxFunction("timeoutCb", {
|
||
|
callbackId,
|
||
|
interval: true
|
||
|
});
|
||
|
}, nMilliseconds);
|
||
|
this.timeoutIds.set(callbackId, id);
|
||
|
},
|
||
|
clearInterval: callbackId => {
|
||
|
this.win.clearInterval(this.timeoutIds.get(callbackId));
|
||
|
this.timeoutIds.delete(callbackId);
|
||
|
},
|
||
|
alert: cMsg => {
|
||
|
if (typeof cMsg !== "string") {
|
||
|
return;
|
||
|
}
|
||
|
this.win.alert(cMsg);
|
||
|
},
|
||
|
confirm: cMsg => {
|
||
|
if (typeof cMsg !== "string") {
|
||
|
return false;
|
||
|
}
|
||
|
return this.win.confirm(cMsg);
|
||
|
},
|
||
|
prompt: (cQuestion, cDefault) => {
|
||
|
if (typeof cQuestion !== "string" || typeof cDefault !== "string") {
|
||
|
return null;
|
||
|
}
|
||
|
return this.win.prompt(cQuestion, cDefault);
|
||
|
},
|
||
|
parseURL: cUrl => {
|
||
|
const url = new this.win.URL(cUrl);
|
||
|
const props = ["hash", "host", "hostname", "href", "origin", "password", "pathname", "port", "protocol", "search", "searchParams", "username"];
|
||
|
return Object.fromEntries(props.map(name => [name, url[name].toString()]));
|
||
|
},
|
||
|
send: data => {
|
||
|
if (!data) {
|
||
|
return;
|
||
|
}
|
||
|
const event = new this.win.CustomEvent("updatefromsandbox", {
|
||
|
detail: this.importValueFromSandbox(data)
|
||
|
});
|
||
|
this.win.dispatchEvent(event);
|
||
|
}
|
||
|
};
|
||
|
Object.setPrototypeOf(externals, null);
|
||
|
return (name, args) => {
|
||
|
try {
|
||
|
const result = externals[name](...args);
|
||
|
return this.exportValueToSandbox(result);
|
||
|
} catch (error) {
|
||
|
throw this.createErrorForSandbox(error?.toString() ?? "");
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
exports.SandboxSupportBase = SandboxSupportBase;
|
||
|
|
||
|
/***/ })
|
||
|
/******/ ]);
|
||
|
/************************************************************************/
|
||
|
/******/ // The module cache
|
||
|
/******/ var __webpack_module_cache__ = {};
|
||
|
/******/
|
||
|
/******/ // The require function
|
||
|
/******/ function __w_pdfjs_require__(moduleId) {
|
||
|
/******/ // Check if module is in cache
|
||
|
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||
|
/******/ if (cachedModule !== undefined) {
|
||
|
/******/ return cachedModule.exports;
|
||
|
/******/ }
|
||
|
/******/ // Create a new module (and put it into the cache)
|
||
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||
|
/******/ // no module.id needed
|
||
|
/******/ // no module.loaded needed
|
||
|
/******/ exports: {}
|
||
|
/******/ };
|
||
|
/******/
|
||
|
/******/ // Execute the module function
|
||
|
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
|
||
|
/******/
|
||
|
/******/ // Return the exports of the module
|
||
|
/******/ return module.exports;
|
||
|
/******/ }
|
||
|
/******/
|
||
|
/************************************************************************/
|
||
|
var __webpack_exports__ = {};
|
||
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
||
|
(() => {
|
||
|
var exports = __webpack_exports__;
|
||
|
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", ({
|
||
|
value: true
|
||
|
}));
|
||
|
exports.QuickJSSandbox = QuickJSSandbox;
|
||
|
__w_pdfjs_require__(1);
|
||
|
__w_pdfjs_require__(83);
|
||
|
var _quickjsEval = _interopRequireDefault(__w_pdfjs_require__(87));
|
||
|
var _pdfSandboxExternal = __w_pdfjs_require__(128);
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
const pdfjsVersion = '3.11.174';
|
||
|
const pdfjsBuild = 'ce8716743';
|
||
|
class SandboxSupport extends _pdfSandboxExternal.SandboxSupportBase {
|
||
|
exportValueToSandbox(val) {
|
||
|
return JSON.stringify(val);
|
||
|
}
|
||
|
importValueFromSandbox(val) {
|
||
|
return val;
|
||
|
}
|
||
|
createErrorForSandbox(errorMessage) {
|
||
|
return new Error(errorMessage);
|
||
|
}
|
||
|
}
|
||
|
class Sandbox {
|
||
|
constructor(win, module) {
|
||
|
this.support = new SandboxSupport(win, this);
|
||
|
module.externalCall = this.support.createSandboxExternals();
|
||
|
this._module = module;
|
||
|
this._alertOnError = 0;
|
||
|
}
|
||
|
create(data) {
|
||
|
const code = ['(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === \'object\' && typeof module === \'object\')\n\t\tmodule.exports = root.pdfjsScripting = factory();\n\telse if(typeof define === \'function\' && define.amd)\n\t\tdefine("pdfjs-dist/build/pdf.scripting", [], () => { return (root.pdfjsScripting = factory()); });\n\telse if(typeof exports === \'object\')\n\t\texports["pdfjs-dist/build/pdf.scripting"] = root.pdfjsScripting = factory();\n\telse\n\t\troot["pdfjs-dist/build/pdf.scripting"] = root.pdfjsScripting = factory();\n})(globalThis, () => {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \t"use strict";\n/******/ \tvar __webpack_modules__ = ([\n/* 0 */,\n/* 1 */\n/***/ ((__unused_webpack_module, exports, __w_pdfjs_require__) => {\n\n\n\nObject.defineProperty(exports, "__esModule", ({\n value: true\n}));\nexports.initSandbox = initSandbox;\n__w_pdfjs_require__(2);\nvar _constants = __w_pdfjs_require__(72);\nvar _field = __w_pdfjs_require__(73);\nvar _aform = __w_pdfjs_require__(118);\nvar _app = __w_pdfjs_require__(119);\nvar _color = __w_pdfjs_require__(115);\nvar _console = __w_pdfjs_require__(124);\nvar _doc = __w_pdfjs_require__(125);\nvar _proxy = __w_pdfjs_require__(130);\nvar _app_utils = __w_pdfjs_require__(120);\nvar _util = __w_pdfjs_require__(131);\nfunction initSandbox(params) {\n delete globalThis.pdfjsScripting;\n const externalCall = globalThis.callExternalFunction;\n delete globalThis.callExternalFunction;\n const globalEval = code => globalThis.eval(code);\n const send = data => externalCall("send", [data]);\n const proxyHandler = new _proxy.ProxyHandler();\n const {\n data\n } = params;\n const doc = new _doc.Doc({\n send,\n globalEval,\n ...data.docInfo\n });\n const _document = {\n obj: doc,\n wrapped: new Proxy(doc, proxyHandler)\n };\n const app = new _app.App({\n send,\n globalEval,\n externalCall,\n _document,\n calculationOrder: data.calculationOrder,\n proxyHandler,\n ...data.appInfo\n });\n const util = new _util.Util({\n externalCall\n });\n const appObjects = app._objects;\n if (data.objects) {\n const annotations = [];\n for (const [name, objs] of Object.entries(data.objects)) {\n annotations.length = 0;\n let container = null;\n for (const obj of objs) {\n if (obj.type !== "") {\n annotations.push(obj);\n } else {\n container = obj;\n }\n }\n let obj = container;\n if (annotations.length > 0) {\n obj = annotations[0];\n obj.send = send;\n }\n obj.globalEval = globalEval;\n obj.doc = _document;\n obj.fieldPath = name;\n obj.appObjects = appObjects;\n let field;\n switch (obj.type) {\n case "radiobutton":\n {\n const otherButtons = annotations.slice(1);\n field = new _field.RadioButtonField(otherButtons, obj);\n break;\n }\n case "checkbox":\n {\n const otherButtons = annotations.slice(1);\n field = new _field.CheckboxField(otherButtons, obj);\n break;\n }\n case "text":\n if (annotations.length <= 1) {\n field = new _field.Field(obj);\n break;\n }\n obj.siblings = annotations.map(x => x.id).slice(1);\n field = new _field.Field(obj);\n break;\n default:\n field = new _field.Field(obj);\n }\n const wrapped = new Proxy(field, proxyHandler);\n const _object = {\n obj: field,\n wrapped\n };\n doc._addField(name, _object);\n for (const object of objs) {\n appObjects[object.id] = _object;\n }\n if (container) {\n appObjects[container.id] = _object;\n }\n }\n }\n const color = new _color.Color();\n globalThis.event = null;\n globalThis.global = Object.create(null);\n globalThis.app = new Proxy(app, proxyHandler);\n globalThis.color = new Proxy(color, proxyHandler);\n globalTh
|
||
|
code.push("delete dump;");
|
||
|
let success = false;
|
||
|
let buf = 0;
|
||
|
try {
|
||
|
const sandboxData = JSON.stringify(data);
|
||
|
code.push(`pdfjsScripting.initSandbox({ data: ${sandboxData} })`);
|
||
|
buf = this._module.stringToNewUTF8(code.join("\n"));
|
||
|
success = !!this._module.ccall("init", "number", ["number", "number"], [buf, this._alertOnError]);
|
||
|
} catch (error) {
|
||
|
console.error(error);
|
||
|
} finally {
|
||
|
if (buf) {
|
||
|
this._module.ccall("free", "number", ["number"], [buf]);
|
||
|
}
|
||
|
}
|
||
|
if (success) {
|
||
|
this.support.commFun = this._module.cwrap("commFun", null, ["string", "string"]);
|
||
|
} else {
|
||
|
this.nukeSandbox();
|
||
|
throw new Error("Cannot start sandbox");
|
||
|
}
|
||
|
}
|
||
|
dispatchEvent(event) {
|
||
|
this.support?.callSandboxFunction("dispatchEvent", event);
|
||
|
}
|
||
|
dumpMemoryUse() {
|
||
|
this._module?.ccall("dumpMemoryUse", null, []);
|
||
|
}
|
||
|
nukeSandbox() {
|
||
|
if (this._module !== null) {
|
||
|
this.support.destroy();
|
||
|
this.support = null;
|
||
|
this._module.ccall("nukeSandbox", null, []);
|
||
|
this._module = null;
|
||
|
}
|
||
|
}
|
||
|
evalForTesting(code, key) {
|
||
|
throw new Error("Not implemented: evalForTesting");
|
||
|
}
|
||
|
}
|
||
|
function QuickJSSandbox() {
|
||
|
return (0, _quickjsEval.default)().then(module => {
|
||
|
return new Sandbox(window, module);
|
||
|
});
|
||
|
}
|
||
|
})();
|
||
|
|
||
|
/******/ return __webpack_exports__;
|
||
|
/******/ })()
|
||
|
;
|
||
|
});
|
||
|
//# sourceMappingURL=pdf.sandbox.js.map
|