window.ngxZone.runOutsideAngular(() => {
/**
 * @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
 */

/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ([
/* 0 */,
/* 1 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var defineWellKnownSymbol = __webpack_require__(2);
defineWellKnownSymbol('iterator');

/***/ }),
/* 2 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var path = __webpack_require__(3);
var hasOwn = __webpack_require__(5);
var wrappedWellKnownSymbolModule = __webpack_require__(12);
var defineProperty = (__webpack_require__(23).f);
module.exports = function (NAME) {
 var Symbol = path.Symbol || (path.Symbol = {});
 if (!hasOwn(Symbol, NAME))
  defineProperty(Symbol, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) });
};

/***/ }),
/* 3 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
module.exports = global;

/***/ }),
/* 4 */
/***/ (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')();

/***/ }),
/* 5 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var toObject = __webpack_require__(9);
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
module.exports = Object.hasOwn || function hasOwn(it, key) {
 return hasOwnProperty(toObject(it), key);
};

/***/ }),
/* 6 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_BIND = __webpack_require__(7);
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);
 };
};

/***/ }),
/* 7 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
module.exports = !fails(function () {
 var test = function () {
 }.bind();
 return typeof test != 'function' || test.hasOwnProperty('prototype');
});

/***/ }),
/* 8 */
/***/ ((module) => {


module.exports = function (exec) {
 try {
  return !!exec();
 } catch (error) {
  return true;
 }
};

/***/ }),
/* 9 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var requireObjectCoercible = __webpack_require__(10);
var $Object = Object;
module.exports = function (argument) {
 return $Object(requireObjectCoercible(argument));
};

/***/ }),
/* 10 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isNullOrUndefined = __webpack_require__(11);
var $TypeError = TypeError;
module.exports = function (it) {
 if (isNullOrUndefined(it))
  throw $TypeError("Can't call method on " + it);
 return it;
};

/***/ }),
/* 11 */
/***/ ((module) => {


module.exports = function (it) {
 return it === null || it === undefined;
};

/***/ }),
/* 12 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


var wellKnownSymbol = __webpack_require__(13);
exports.f = wellKnownSymbol;

/***/ }),
/* 13 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var shared = __webpack_require__(14);
var hasOwn = __webpack_require__(5);
var uid = __webpack_require__(18);
var NATIVE_SYMBOL = __webpack_require__(19);
var USE_SYMBOL_AS_UID = __webpack_require__(22);
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];
};

/***/ }),
/* 14 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var IS_PURE = __webpack_require__(15);
var store = __webpack_require__(16);
(module.exports = function (key, value) {
 return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
 version: '3.32.0',
 mode: IS_PURE ? 'pure' : 'global',
 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
 license: 'https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE',
 source: 'https://github.com/zloirock/core-js'
});

/***/ }),
/* 15 */
/***/ ((module) => {


module.exports = false;

/***/ }),
/* 16 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var defineGlobalProperty = __webpack_require__(17);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || defineGlobalProperty(SHARED, {});
module.exports = store;

/***/ }),
/* 17 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
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;
};

/***/ }),
/* 18 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
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);
};

/***/ }),
/* 19 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var V8_VERSION = __webpack_require__(20);
var fails = __webpack_require__(8);
var global = __webpack_require__(4);
var $String = global.String;
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
 var symbol = Symbol();
 return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
});

/***/ }),
/* 20 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var userAgent = __webpack_require__(21);
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;

/***/ }),
/* 21 */
/***/ ((module) => {


module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';

/***/ }),
/* 22 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_SYMBOL = __webpack_require__(19);
module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == 'symbol';

/***/ }),
/* 23 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var IE8_DOM_DEFINE = __webpack_require__(25);
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(30);
var anObject = __webpack_require__(31);
var toPropertyKey = __webpack_require__(32);
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;
};

/***/ }),
/* 24 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
module.exports = !fails(function () {
 return Object.defineProperty({}, 1, {
  get: function () {
   return 7;
  }
 })[1] != 7;
});

/***/ }),
/* 25 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var fails = __webpack_require__(8);
var createElement = __webpack_require__(26);
module.exports = !DESCRIPTORS && !fails(function () {
 return Object.defineProperty(createElement('div'), 'a', {
  get: function () {
   return 7;
  }
 }).a != 7;
});

/***/ }),
/* 26 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var isObject = __webpack_require__(27);
var document = global.document;
var EXISTS = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
 return EXISTS ? document.createElement(it) : {};
};

/***/ }),
/* 27 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isCallable = __webpack_require__(28);
var $documentAll = __webpack_require__(29);
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);
};

/***/ }),
/* 28 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var $documentAll = __webpack_require__(29);
var documentAll = $documentAll.all;
module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
 return typeof argument == 'function' || argument === documentAll;
} : function (argument) {
 return typeof argument == 'function';
};

/***/ }),
/* 29 */
/***/ ((module) => {


var documentAll = typeof document == 'object' && document.all;
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
module.exports = {
 all: documentAll,
 IS_HTMLDDA: IS_HTMLDDA
};

/***/ }),
/* 30 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var fails = __webpack_require__(8);
module.exports = DESCRIPTORS && fails(function () {
 return Object.defineProperty(function () {
 }, 'prototype', {
  value: 42,
  writable: false
 }).prototype != 42;
});

/***/ }),
/* 31 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isObject = __webpack_require__(27);
var $String = String;
var $TypeError = TypeError;
module.exports = function (argument) {
 if (isObject(argument))
  return argument;
 throw $TypeError($String(argument) + ' is not an object');
};

/***/ }),
/* 32 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toPrimitive = __webpack_require__(33);
var isSymbol = __webpack_require__(35);
module.exports = function (argument) {
 var key = toPrimitive(argument, 'string');
 return isSymbol(key) ? key : key + '';
};

/***/ }),
/* 33 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var isObject = __webpack_require__(27);
var isSymbol = __webpack_require__(35);
var getMethod = __webpack_require__(38);
var ordinaryToPrimitive = __webpack_require__(41);
var wellKnownSymbol = __webpack_require__(13);
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);
};

/***/ }),
/* 34 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_BIND = __webpack_require__(7);
var call = Function.prototype.call;
module.exports = NATIVE_BIND ? call.bind(call) : function () {
 return call.apply(call, arguments);
};

/***/ }),
/* 35 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
var isCallable = __webpack_require__(28);
var isPrototypeOf = __webpack_require__(37);
var USE_SYMBOL_AS_UID = __webpack_require__(22);
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));
};

/***/ }),
/* 36 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var isCallable = __webpack_require__(28);
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];
};

/***/ }),
/* 37 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
module.exports = uncurryThis({}.isPrototypeOf);

/***/ }),
/* 38 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aCallable = __webpack_require__(39);
var isNullOrUndefined = __webpack_require__(11);
module.exports = function (V, P) {
 var func = V[P];
 return isNullOrUndefined(func) ? undefined : aCallable(func);
};

/***/ }),
/* 39 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isCallable = __webpack_require__(28);
var tryToString = __webpack_require__(40);
var $TypeError = TypeError;
module.exports = function (argument) {
 if (isCallable(argument))
  return argument;
 throw $TypeError(tryToString(argument) + ' is not a function');
};

/***/ }),
/* 40 */
/***/ ((module) => {


var $String = String;
module.exports = function (argument) {
 try {
  return $String(argument);
 } catch (error) {
  return 'Object';
 }
};

/***/ }),
/* 41 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var isCallable = __webpack_require__(28);
var isObject = __webpack_require__(27);
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");
};

/***/ }),
/* 42 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIndexedObject = __webpack_require__(43);
var addToUnscopables = __webpack_require__(46);
var Iterators = __webpack_require__(61);
var InternalStateModule = __webpack_require__(62);
var defineProperty = (__webpack_require__(23).f);
var defineIterator = __webpack_require__(66);
var createIterResultObject = __webpack_require__(87);
var IS_PURE = __webpack_require__(15);
var DESCRIPTORS = __webpack_require__(24);
var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
 setInternalState(this, {
  type: ARRAY_ITERATOR,
  target: toIndexedObject(iterated),
  index: 0,
  kind: kind
 });
}, function () {
 var state = getInternalState(this);
 var target = state.target;
 var kind = state.kind;
 var index = state.index++;
 if (!target || index >= target.length) {
  state.target = undefined;
  return createIterResultObject(undefined, true);
 }
 if (kind == 'keys')
  return createIterResultObject(index, false);
 if (kind == 'values')
  return createIterResultObject(target[index], false);
 return createIterResultObject([
  index,
  target[index]
 ], false);
}, 'values');
var values = Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
if (!IS_PURE && DESCRIPTORS && values.name !== 'values')
 try {
  defineProperty(values, 'name', { value: 'values' });
 } catch (error) {
 }

/***/ }),
/* 43 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var IndexedObject = __webpack_require__(44);
var requireObjectCoercible = __webpack_require__(10);
module.exports = function (it) {
 return IndexedObject(requireObjectCoercible(it));
};

/***/ }),
/* 44 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var fails = __webpack_require__(8);
var classof = __webpack_require__(45);
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;

/***/ }),
/* 45 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var toString = uncurryThis({}.toString);
var stringSlice = uncurryThis(''.slice);
module.exports = function (it) {
 return stringSlice(toString(it), 8, -1);
};

/***/ }),
/* 46 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var wellKnownSymbol = __webpack_require__(13);
var create = __webpack_require__(47);
var defineProperty = (__webpack_require__(23).f);
var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;
if (ArrayPrototype[UNSCOPABLES] == undefined) {
 defineProperty(ArrayPrototype, UNSCOPABLES, {
  configurable: true,
  value: create(null)
 });
}
module.exports = function (key) {
 ArrayPrototype[UNSCOPABLES][key] = true;
};

/***/ }),
/* 47 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var anObject = __webpack_require__(31);
var definePropertiesModule = __webpack_require__(48);
var enumBugKeys = __webpack_require__(58);
var hiddenKeys = __webpack_require__(57);
var html = __webpack_require__(59);
var documentCreateElement = __webpack_require__(26);
var sharedKey = __webpack_require__(60);
var GT = '>';
var LT = '<';
var PROTOTYPE = 'prototype';
var SCRIPT = 'script';
var IE_PROTO = sharedKey('IE_PROTO');
var EmptyConstructor = function () {
};
var scriptTag = function (content) {
 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
};
var NullProtoObjectViaActiveX = function (activeXDocument) {
 activeXDocument.write(scriptTag(''));
 activeXDocument.close();
 var temp = activeXDocument.parentWindow.Object;
 activeXDocument = null;
 return temp;
};
var NullProtoObjectViaIFrame = function () {
 var iframe = documentCreateElement('iframe');
 var JS = 'java' + SCRIPT + ':';
 var iframeDocument;
 iframe.style.display = 'none';
 html.appendChild(iframe);
 iframe.src = String(JS);
 iframeDocument = iframe.contentWindow.document;
 iframeDocument.open();
 iframeDocument.write(scriptTag('document.F=Object'));
 iframeDocument.close();
 return iframeDocument.F;
};
var activeXDocument;
var NullProtoObject = function () {
 try {
  activeXDocument = new ActiveXObject('htmlfile');
 } catch (error) {
 }
 NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
 var length = enumBugKeys.length;
 while (length--)
  delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
 return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
module.exports = Object.create || function create(O, Properties) {
 var result;
 if (O !== null) {
  EmptyConstructor[PROTOTYPE] = anObject(O);
  result = new EmptyConstructor();
  EmptyConstructor[PROTOTYPE] = null;
  result[IE_PROTO] = O;
 } else
  result = NullProtoObject();
 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
};

/***/ }),
/* 48 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(30);
var definePropertyModule = __webpack_require__(23);
var anObject = __webpack_require__(31);
var toIndexedObject = __webpack_require__(43);
var objectKeys = __webpack_require__(49);
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
 anObject(O);
 var props = toIndexedObject(Properties);
 var keys = objectKeys(Properties);
 var length = keys.length;
 var index = 0;
 var key;
 while (length > index)
  definePropertyModule.f(O, key = keys[index++], props[key]);
 return O;
};

/***/ }),
/* 49 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var internalObjectKeys = __webpack_require__(50);
var enumBugKeys = __webpack_require__(58);
module.exports = Object.keys || function keys(O) {
 return internalObjectKeys(O, enumBugKeys);
};

/***/ }),
/* 50 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var hasOwn = __webpack_require__(5);
var toIndexedObject = __webpack_require__(43);
var indexOf = (__webpack_require__(51).indexOf);
var hiddenKeys = __webpack_require__(57);
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;
};

/***/ }),
/* 51 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIndexedObject = __webpack_require__(43);
var toAbsoluteIndex = __webpack_require__(52);
var lengthOfArrayLike = __webpack_require__(55);
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)
};

/***/ }),
/* 52 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIntegerOrInfinity = __webpack_require__(53);
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);
};

/***/ }),
/* 53 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var trunc = __webpack_require__(54);
module.exports = function (argument) {
 var number = +argument;
 return number !== number || number === 0 ? 0 : trunc(number);
};

/***/ }),
/* 54 */
/***/ ((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);
};

/***/ }),
/* 55 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toLength = __webpack_require__(56);
module.exports = function (obj) {
 return toLength(obj.length);
};

/***/ }),
/* 56 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIntegerOrInfinity = __webpack_require__(53);
var min = Math.min;
module.exports = function (argument) {
 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0;
};

/***/ }),
/* 57 */
/***/ ((module) => {


module.exports = {};

/***/ }),
/* 58 */
/***/ ((module) => {


module.exports = [
 'constructor',
 'hasOwnProperty',
 'isPrototypeOf',
 'propertyIsEnumerable',
 'toLocaleString',
 'toString',
 'valueOf'
];

/***/ }),
/* 59 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
module.exports = getBuiltIn('document', 'documentElement');

/***/ }),
/* 60 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var shared = __webpack_require__(14);
var uid = __webpack_require__(18);
var keys = shared('keys');
module.exports = function (key) {
 return keys[key] || (keys[key] = uid(key));
};

/***/ }),
/* 61 */
/***/ ((module) => {


module.exports = {};

/***/ }),
/* 62 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_WEAK_MAP = __webpack_require__(63);
var global = __webpack_require__(4);
var isObject = __webpack_require__(27);
var createNonEnumerableProperty = __webpack_require__(64);
var hasOwn = __webpack_require__(5);
var shared = __webpack_require__(16);
var sharedKey = __webpack_require__(60);
var hiddenKeys = __webpack_require__(57);
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
};

/***/ }),
/* 63 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var isCallable = __webpack_require__(28);
var WeakMap = global.WeakMap;
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));

/***/ }),
/* 64 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var definePropertyModule = __webpack_require__(23);
var createPropertyDescriptor = __webpack_require__(65);
module.exports = DESCRIPTORS ? function (object, key, value) {
 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
 object[key] = value;
 return object;
};

/***/ }),
/* 65 */
/***/ ((module) => {


module.exports = function (bitmap, value) {
 return {
  enumerable: !(bitmap & 1),
  configurable: !(bitmap & 2),
  writable: !(bitmap & 4),
  value: value
 };
};

/***/ }),
/* 66 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var IS_PURE = __webpack_require__(15);
var FunctionName = __webpack_require__(72);
var isCallable = __webpack_require__(28);
var createIteratorConstructor = __webpack_require__(79);
var getPrototypeOf = __webpack_require__(81);
var setPrototypeOf = __webpack_require__(84);
var setToStringTag = __webpack_require__(83);
var createNonEnumerableProperty = __webpack_require__(64);
var defineBuiltIn = __webpack_require__(70);
var wellKnownSymbol = __webpack_require__(13);
var Iterators = __webpack_require__(61);
var IteratorsCore = __webpack_require__(80);
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';
var returnThis = function () {
 return this;
};
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
 createIteratorConstructor(IteratorConstructor, NAME, next);
 var getIterationMethod = function (KIND) {
  if (KIND === DEFAULT && defaultIterator)
   return defaultIterator;
  if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
   return IterablePrototype[KIND];
  switch (KIND) {
  case KEYS:
   return function keys() {
    return new IteratorConstructor(this, KIND);
   };
  case VALUES:
   return function values() {
    return new IteratorConstructor(this, KIND);
   };
  case ENTRIES:
   return function entries() {
    return new IteratorConstructor(this, KIND);
   };
  }
  return function () {
   return new IteratorConstructor(this);
  };
 };
 var TO_STRING_TAG = NAME + ' Iterator';
 var INCORRECT_VALUES_NAME = false;
 var IterablePrototype = Iterable.prototype;
 var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT];
 var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
 var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
 var CurrentIteratorPrototype, methods, KEY;
 if (anyNativeIterator) {
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
   if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
    if (setPrototypeOf) {
     setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
    } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
     defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
    }
   }
   setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
   if (IS_PURE)
    Iterators[TO_STRING_TAG] = returnThis;
  }
 }
 if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
   createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
  } else {
   INCORRECT_VALUES_NAME = true;
   defaultIterator = function values() {
    return call(nativeIterator, this);
   };
  }
 }
 if (DEFAULT) {
  methods = {
   values: getIterationMethod(VALUES),
   keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
   entries: getIterationMethod(ENTRIES)
  };
  if (FORCED)
   for (KEY in methods) {
    if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
     defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
    }
   }
  else
   $({
    target: NAME,
    proto: true,
    forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME
   }, methods);
 }
 if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
  defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
 }
 Iterators[NAME] = defaultIterator;
 return methods;
};

/***/ }),
/* 67 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var getOwnPropertyDescriptor = (__webpack_require__(68).f);
var createNonEnumerableProperty = __webpack_require__(64);
var defineBuiltIn = __webpack_require__(70);
var defineGlobalProperty = __webpack_require__(17);
var copyConstructorProperties = __webpack_require__(74);
var isForced = __webpack_require__(78);
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);
  }
};

/***/ }),
/* 68 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var call = __webpack_require__(34);
var propertyIsEnumerableModule = __webpack_require__(69);
var createPropertyDescriptor = __webpack_require__(65);
var toIndexedObject = __webpack_require__(43);
var toPropertyKey = __webpack_require__(32);
var hasOwn = __webpack_require__(5);
var IE8_DOM_DEFINE = __webpack_require__(25);
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]);
};

/***/ }),
/* 69 */
/***/ ((__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;

/***/ }),
/* 70 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isCallable = __webpack_require__(28);
var definePropertyModule = __webpack_require__(23);
var makeBuiltIn = __webpack_require__(71);
var defineGlobalProperty = __webpack_require__(17);
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;
};

/***/ }),
/* 71 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var fails = __webpack_require__(8);
var isCallable = __webpack_require__(28);
var hasOwn = __webpack_require__(5);
var DESCRIPTORS = __webpack_require__(24);
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(72).CONFIGURABLE);
var inspectSource = __webpack_require__(73);
var InternalStateModule = __webpack_require__(62);
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');

/***/ }),
/* 72 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var hasOwn = __webpack_require__(5);
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
};

/***/ }),
/* 73 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var isCallable = __webpack_require__(28);
var store = __webpack_require__(16);
var functionToString = uncurryThis(Function.toString);
if (!isCallable(store.inspectSource)) {
 store.inspectSource = function (it) {
  return functionToString(it);
 };
}
module.exports = store.inspectSource;

/***/ }),
/* 74 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var hasOwn = __webpack_require__(5);
var ownKeys = __webpack_require__(75);
var getOwnPropertyDescriptorModule = __webpack_require__(68);
var definePropertyModule = __webpack_require__(23);
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));
  }
 }
};

/***/ }),
/* 75 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
var uncurryThis = __webpack_require__(6);
var getOwnPropertyNamesModule = __webpack_require__(76);
var getOwnPropertySymbolsModule = __webpack_require__(77);
var anObject = __webpack_require__(31);
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;
};

/***/ }),
/* 76 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


var internalObjectKeys = __webpack_require__(50);
var enumBugKeys = __webpack_require__(58);
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
 return internalObjectKeys(O, hiddenKeys);
};

/***/ }),
/* 77 */
/***/ ((__unused_webpack_module, exports) => {


exports.f = Object.getOwnPropertySymbols;

/***/ }),
/* 78 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var isCallable = __webpack_require__(28);
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;

/***/ }),
/* 79 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var IteratorPrototype = (__webpack_require__(80).IteratorPrototype);
var create = __webpack_require__(47);
var createPropertyDescriptor = __webpack_require__(65);
var setToStringTag = __webpack_require__(83);
var Iterators = __webpack_require__(61);
var returnThis = function () {
 return this;
};
module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
 var TO_STRING_TAG = NAME + ' Iterator';
 IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
 setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
 Iterators[TO_STRING_TAG] = returnThis;
 return IteratorConstructor;
};

/***/ }),
/* 80 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var isCallable = __webpack_require__(28);
var isObject = __webpack_require__(27);
var create = __webpack_require__(47);
var getPrototypeOf = __webpack_require__(81);
var defineBuiltIn = __webpack_require__(70);
var wellKnownSymbol = __webpack_require__(13);
var IS_PURE = __webpack_require__(15);
var ITERATOR = wellKnownSymbol('iterator');
var BUGGY_SAFARI_ITERATORS = false;
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
if ([].keys) {
 arrayIterator = [].keys();
 if (!('next' in arrayIterator))
  BUGGY_SAFARI_ITERATORS = true;
 else {
  PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
  if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
   IteratorPrototype = PrototypeOfArrayIteratorPrototype;
 }
}
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
 var test = {};
 return IteratorPrototype[ITERATOR].call(test) !== test;
});
if (NEW_ITERATOR_PROTOTYPE)
 IteratorPrototype = {};
else if (IS_PURE)
 IteratorPrototype = create(IteratorPrototype);
if (!isCallable(IteratorPrototype[ITERATOR])) {
 defineBuiltIn(IteratorPrototype, ITERATOR, function () {
  return this;
 });
}
module.exports = {
 IteratorPrototype: IteratorPrototype,
 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
};

/***/ }),
/* 81 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var hasOwn = __webpack_require__(5);
var isCallable = __webpack_require__(28);
var toObject = __webpack_require__(9);
var sharedKey = __webpack_require__(60);
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(82);
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;
};

/***/ }),
/* 82 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
module.exports = !fails(function () {
 function F() {
 }
 F.prototype.constructor = null;
 return Object.getPrototypeOf(new F()) !== F.prototype;
});

/***/ }),
/* 83 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var defineProperty = (__webpack_require__(23).f);
var hasOwn = __webpack_require__(5);
var wellKnownSymbol = __webpack_require__(13);
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
module.exports = function (target, TAG, STATIC) {
 if (target && !STATIC)
  target = target.prototype;
 if (target && !hasOwn(target, TO_STRING_TAG)) {
  defineProperty(target, TO_STRING_TAG, {
   configurable: true,
   value: TAG
  });
 }
};

/***/ }),
/* 84 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThisAccessor = __webpack_require__(85);
var anObject = __webpack_require__(31);
var aPossiblePrototype = __webpack_require__(86);
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);

/***/ }),
/* 85 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var aCallable = __webpack_require__(39);
module.exports = function (object, key, method) {
 try {
  return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
 } catch (error) {
 }
};

/***/ }),
/* 86 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isCallable = __webpack_require__(28);
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');
};

/***/ }),
/* 87 */
/***/ ((module) => {


module.exports = function (value, done) {
 return {
  value: value,
  done: done
 };
};

/***/ }),
/* 88 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var TO_STRING_TAG_SUPPORT = __webpack_require__(89);
var defineBuiltIn = __webpack_require__(70);
var toString = __webpack_require__(90);
if (!TO_STRING_TAG_SUPPORT) {
 defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
}

/***/ }),
/* 89 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var wellKnownSymbol = __webpack_require__(13);
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG] = 'z';
module.exports = String(test) === '[object z]';

/***/ }),
/* 90 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var TO_STRING_TAG_SUPPORT = __webpack_require__(89);
var classof = __webpack_require__(91);
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
 return '[object ' + classof(this) + ']';
};

/***/ }),
/* 91 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var TO_STRING_TAG_SUPPORT = __webpack_require__(89);
var isCallable = __webpack_require__(28);
var classofRaw = __webpack_require__(45);
var wellKnownSymbol = __webpack_require__(13);
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;
};

/***/ }),
/* 92 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var charAt = (__webpack_require__(93).charAt);
var toString = __webpack_require__(94);
var InternalStateModule = __webpack_require__(62);
var defineIterator = __webpack_require__(66);
var createIterResultObject = __webpack_require__(87);
var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
defineIterator(String, 'String', function (iterated) {
 setInternalState(this, {
  type: STRING_ITERATOR,
  string: toString(iterated),
  index: 0
 });
}, function next() {
 var state = getInternalState(this);
 var string = state.string;
 var index = state.index;
 var point;
 if (index >= string.length)
  return createIterResultObject(undefined, true);
 point = charAt(string, index);
 state.index += point.length;
 return createIterResultObject(point, false);
});

/***/ }),
/* 93 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var toIntegerOrInfinity = __webpack_require__(53);
var toString = __webpack_require__(94);
var requireObjectCoercible = __webpack_require__(10);
var charAt = uncurryThis(''.charAt);
var charCodeAt = uncurryThis(''.charCodeAt);
var stringSlice = uncurryThis(''.slice);
var createMethod = function (CONVERT_TO_STRING) {
 return function ($this, pos) {
  var S = toString(requireObjectCoercible($this));
  var position = toIntegerOrInfinity(pos);
  var size = S.length;
  var first, second;
  if (position < 0 || position >= size)
   return CONVERT_TO_STRING ? '' : undefined;
  first = charCodeAt(S, position);
  return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
 };
};
module.exports = {
 codeAt: createMethod(false),
 charAt: createMethod(true)
};

/***/ }),
/* 94 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classof = __webpack_require__(91);
var $String = String;
module.exports = function (argument) {
 if (classof(argument) === 'Symbol')
  throw TypeError('Cannot convert a Symbol value to a string');
 return $String(argument);
};

/***/ }),
/* 95 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var DOMIterables = __webpack_require__(96);
var DOMTokenListPrototype = __webpack_require__(97);
var ArrayIteratorMethods = __webpack_require__(42);
var createNonEnumerableProperty = __webpack_require__(64);
var wellKnownSymbol = __webpack_require__(13);
var ITERATOR = wellKnownSymbol('iterator');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var ArrayValues = ArrayIteratorMethods.values;
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
 if (CollectionPrototype) {
  if (CollectionPrototype[ITERATOR] !== ArrayValues)
   try {
    createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
   } catch (error) {
    CollectionPrototype[ITERATOR] = ArrayValues;
   }
  if (!CollectionPrototype[TO_STRING_TAG]) {
   createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
  }
  if (DOMIterables[COLLECTION_NAME])
   for (var METHOD_NAME in ArrayIteratorMethods) {
    if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
     try {
      createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
     } catch (error) {
      CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
     }
   }
 }
};
for (var COLLECTION_NAME in DOMIterables) {
 handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
}
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');

/***/ }),
/* 96 */
/***/ ((module) => {


module.exports = {
 CSSRuleList: 0,
 CSSStyleDeclaration: 0,
 CSSValueList: 0,
 ClientRectList: 0,
 DOMRectList: 0,
 DOMStringList: 0,
 DOMTokenList: 1,
 DataTransferItemList: 0,
 FileList: 0,
 HTMLAllCollection: 0,
 HTMLCollection: 0,
 HTMLFormElement: 0,
 HTMLSelectElement: 0,
 MediaList: 0,
 MimeTypeArray: 0,
 NamedNodeMap: 0,
 NodeList: 1,
 PaintRequestList: 0,
 Plugin: 0,
 PluginArray: 0,
 SVGLengthList: 0,
 SVGNumberList: 0,
 SVGPathSegList: 0,
 SVGPointList: 0,
 SVGStringList: 0,
 SVGTransformList: 0,
 SourceBufferList: 0,
 StyleSheetList: 0,
 TextTrackCueList: 0,
 TextTrackList: 0,
 TouchList: 0
};

/***/ }),
/* 97 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var documentCreateElement = __webpack_require__(26);
var classList = documentCreateElement('span').classList;
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;

/***/ }),
/* 98 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(99);
__webpack_require__(112);
__webpack_require__(114);
__webpack_require__(115);
__webpack_require__(119);

/***/ }),
/* 99 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var IS_PURE = __webpack_require__(15);
var DESCRIPTORS = __webpack_require__(24);
var NATIVE_SYMBOL = __webpack_require__(19);
var fails = __webpack_require__(8);
var hasOwn = __webpack_require__(5);
var isPrototypeOf = __webpack_require__(37);
var anObject = __webpack_require__(31);
var toIndexedObject = __webpack_require__(43);
var toPropertyKey = __webpack_require__(32);
var $toString = __webpack_require__(94);
var createPropertyDescriptor = __webpack_require__(65);
var nativeObjectCreate = __webpack_require__(47);
var objectKeys = __webpack_require__(49);
var getOwnPropertyNamesModule = __webpack_require__(76);
var getOwnPropertyNamesExternal = __webpack_require__(100);
var getOwnPropertySymbolsModule = __webpack_require__(77);
var getOwnPropertyDescriptorModule = __webpack_require__(68);
var definePropertyModule = __webpack_require__(23);
var definePropertiesModule = __webpack_require__(48);
var propertyIsEnumerableModule = __webpack_require__(69);
var defineBuiltIn = __webpack_require__(70);
var defineBuiltInAccessor = __webpack_require__(103);
var shared = __webpack_require__(14);
var sharedKey = __webpack_require__(60);
var hiddenKeys = __webpack_require__(57);
var uid = __webpack_require__(18);
var wellKnownSymbol = __webpack_require__(13);
var wrappedWellKnownSymbolModule = __webpack_require__(12);
var defineWellKnownSymbol = __webpack_require__(2);
var defineSymbolToPrimitive = __webpack_require__(104);
var setToStringTag = __webpack_require__(83);
var InternalStateModule = __webpack_require__(62);
var $forEach = (__webpack_require__(105).forEach);
var HIDDEN = sharedKey('hidden');
var SYMBOL = 'Symbol';
var PROTOTYPE = 'prototype';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = global.Symbol;
var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
var TypeError = global.TypeError;
var QObject = global.QObject;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
var push = uncurryThis([].push);
var AllSymbols = shared('symbols');
var ObjectPrototypeSymbols = shared('op-symbols');
var WellKnownSymbolsStore = shared('wks');
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
 return nativeObjectCreate(nativeDefineProperty({}, 'a', {
  get: function () {
   return nativeDefineProperty(this, 'a', { value: 7 }).a;
  }
 })).a != 7;
}) ? function (O, P, Attributes) {
 var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
 if (ObjectPrototypeDescriptor)
  delete ObjectPrototype[P];
 nativeDefineProperty(O, P, Attributes);
 if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
  nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
 }
} : nativeDefineProperty;
var wrap = function (tag, description) {
 var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
 setInternalState(symbol, {
  type: SYMBOL,
  tag: tag,
  description: description
 });
 if (!DESCRIPTORS)
  symbol.description = description;
 return symbol;
};
var $defineProperty = function defineProperty(O, P, Attributes) {
 if (O === ObjectPrototype)
  $defineProperty(ObjectPrototypeSymbols, P, Attributes);
 anObject(O);
 var key = toPropertyKey(P);
 anObject(Attributes);
 if (hasOwn(AllSymbols, key)) {
  if (!Attributes.enumerable) {
   if (!hasOwn(O, HIDDEN))
    nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
   O[HIDDEN][key] = true;
  } else {
   if (hasOwn(O, HIDDEN) && O[HIDDEN][key])
    O[HIDDEN][key] = false;
   Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
  }
  return setSymbolDescriptor(O, key, Attributes);
 }
 return nativeDefineProperty(O, key, Attributes);
};
var $defineProperties = function defineProperties(O, Properties) {
 anObject(O);
 var properties = toIndexedObject(Properties);
 var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
 $forEach(keys, function (key) {
  if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key))
   $defineProperty(O, key, properties[key]);
 });
 return O;
};
var $create = function create(O, Properties) {
 return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
};
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
 var P = toPropertyKey(V);
 var enumerable = call(nativePropertyIsEnumerable, this, P);
 if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P))
  return false;
 return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
 var it = toIndexedObject(O);
 var key = toPropertyKey(P);
 if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key))
  return;
 var descriptor = nativeGetOwnPropertyDescriptor(it, key);
 if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {
  descriptor.enumerable = true;
 }
 return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
 var names = nativeGetOwnPropertyNames(toIndexedObject(O));
 var result = [];
 $forEach(names, function (key) {
  if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key))
   push(result, key);
 });
 return result;
};
var $getOwnPropertySymbols = function (O) {
 var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
 var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
 var result = [];
 $forEach(names, function (key) {
  if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
   push(result, AllSymbols[key]);
  }
 });
 return result;
};
if (!NATIVE_SYMBOL) {
 $Symbol = function Symbol() {
  if (isPrototypeOf(SymbolPrototype, this))
   throw TypeError('Symbol is not a constructor');
  var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
  var tag = uid(description);
  var setter = function (value) {
   if (this === ObjectPrototype)
    call(setter, ObjectPrototypeSymbols, value);
   if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag))
    this[HIDDEN][tag] = false;
   setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  };
  if (DESCRIPTORS && USE_SETTER)
   setSymbolDescriptor(ObjectPrototype, tag, {
    configurable: true,
    set: setter
   });
  return wrap(tag, description);
 };
 SymbolPrototype = $Symbol[PROTOTYPE];
 defineBuiltIn(SymbolPrototype, 'toString', function toString() {
  return getInternalState(this).tag;
 });
 defineBuiltIn($Symbol, 'withoutSetter', function (description) {
  return wrap(uid(description), description);
 });
 propertyIsEnumerableModule.f = $propertyIsEnumerable;
 definePropertyModule.f = $defineProperty;
 definePropertiesModule.f = $defineProperties;
 getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
 getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
 getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
 wrappedWellKnownSymbolModule.f = function (name) {
  return wrap(wellKnownSymbol(name), name);
 };
 if (DESCRIPTORS) {
  defineBuiltInAccessor(SymbolPrototype, 'description', {
   configurable: true,
   get: function description() {
    return getInternalState(this).description;
   }
  });
  if (!IS_PURE) {
   defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  }
 }
}
$({
 global: true,
 constructor: true,
 wrap: true,
 forced: !NATIVE_SYMBOL,
 sham: !NATIVE_SYMBOL
}, { Symbol: $Symbol });
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
 defineWellKnownSymbol(name);
});
$({
 target: SYMBOL,
 stat: true,
 forced: !NATIVE_SYMBOL
}, {
 useSetter: function () {
  USE_SETTER = true;
 },
 useSimple: function () {
  USE_SETTER = false;
 }
});
$({
 target: 'Object',
 stat: true,
 forced: !NATIVE_SYMBOL,
 sham: !DESCRIPTORS
}, {
 create: $create,
 defineProperty: $defineProperty,
 defineProperties: $defineProperties,
 getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});
$({
 target: 'Object',
 stat: true,
 forced: !NATIVE_SYMBOL
}, { getOwnPropertyNames: $getOwnPropertyNames });
defineSymbolToPrimitive();
setToStringTag($Symbol, SYMBOL);
hiddenKeys[HIDDEN] = true;

/***/ }),
/* 100 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classof = __webpack_require__(45);
var toIndexedObject = __webpack_require__(43);
var $getOwnPropertyNames = (__webpack_require__(76).f);
var arraySlice = __webpack_require__(101);
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
 try {
  return $getOwnPropertyNames(it);
 } catch (error) {
  return arraySlice(windowNames);
 }
};
module.exports.f = function getOwnPropertyNames(it) {
 return windowNames && classof(it) == 'Window' ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it));
};

/***/ }),
/* 101 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toAbsoluteIndex = __webpack_require__(52);
var lengthOfArrayLike = __webpack_require__(55);
var createProperty = __webpack_require__(102);
var $Array = Array;
var max = Math.max;
module.exports = function (O, start, end) {
 var length = lengthOfArrayLike(O);
 var k = toAbsoluteIndex(start, length);
 var fin = toAbsoluteIndex(end === undefined ? length : end, length);
 var result = $Array(max(fin - k, 0));
 for (var n = 0; k < fin; k++, n++)
  createProperty(result, n, O[k]);
 result.length = n;
 return result;
};

/***/ }),
/* 102 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toPropertyKey = __webpack_require__(32);
var definePropertyModule = __webpack_require__(23);
var createPropertyDescriptor = __webpack_require__(65);
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;
};

/***/ }),
/* 103 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var makeBuiltIn = __webpack_require__(71);
var defineProperty = __webpack_require__(23);
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);
};

/***/ }),
/* 104 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var getBuiltIn = __webpack_require__(36);
var wellKnownSymbol = __webpack_require__(13);
var defineBuiltIn = __webpack_require__(70);
module.exports = function () {
 var Symbol = getBuiltIn('Symbol');
 var SymbolPrototype = Symbol && Symbol.prototype;
 var valueOf = SymbolPrototype && SymbolPrototype.valueOf;
 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
 if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
  defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) {
   return call(valueOf, this);
  }, { arity: 1 });
 }
};

/***/ }),
/* 105 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var bind = __webpack_require__(106);
var uncurryThis = __webpack_require__(6);
var IndexedObject = __webpack_require__(44);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
var arraySpeciesCreate = __webpack_require__(108);
var push = uncurryThis([].push);
var createMethod = function (TYPE) {
 var IS_MAP = TYPE == 1;
 var IS_FILTER = TYPE == 2;
 var IS_SOME = TYPE == 3;
 var IS_EVERY = TYPE == 4;
 var IS_FIND_INDEX = TYPE == 6;
 var IS_FILTER_REJECT = TYPE == 7;
 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
 return function ($this, callbackfn, that, specificCreate) {
  var O = toObject($this);
  var self = IndexedObject(O);
  var boundFunction = bind(callbackfn, that);
  var length = lengthOfArrayLike(self);
  var index = 0;
  var create = specificCreate || arraySpeciesCreate;
  var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  var value, result;
  for (; length > index; index++)
   if (NO_HOLES || index in self) {
    value = self[index];
    result = boundFunction(value, index, O);
    if (TYPE) {
     if (IS_MAP)
      target[index] = result;
     else if (result)
      switch (TYPE) {
      case 3:
       return true;
      case 5:
       return value;
      case 6:
       return index;
      case 2:
       push(target, value);
      }
     else
      switch (TYPE) {
      case 4:
       return false;
      case 7:
       push(target, value);
      }
    }
   }
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
 };
};
module.exports = {
 forEach: createMethod(0),
 map: createMethod(1),
 filter: createMethod(2),
 some: createMethod(3),
 every: createMethod(4),
 find: createMethod(5),
 findIndex: createMethod(6),
 filterReject: createMethod(7)
};

/***/ }),
/* 106 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(107);
var aCallable = __webpack_require__(39);
var NATIVE_BIND = __webpack_require__(7);
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);
 };
};

/***/ }),
/* 107 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classofRaw = __webpack_require__(45);
var uncurryThis = __webpack_require__(6);
module.exports = function (fn) {
 if (classofRaw(fn) === 'Function')
  return uncurryThis(fn);
};

/***/ }),
/* 108 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var arraySpeciesConstructor = __webpack_require__(109);
module.exports = function (originalArray, length) {
 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
};

/***/ }),
/* 109 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isArray = __webpack_require__(110);
var isConstructor = __webpack_require__(111);
var isObject = __webpack_require__(27);
var wellKnownSymbol = __webpack_require__(13);
var SPECIES = wellKnownSymbol('species');
var $Array = Array;
module.exports = function (originalArray) {
 var C;
 if (isArray(originalArray)) {
  C = originalArray.constructor;
  if (isConstructor(C) && (C === $Array || isArray(C.prototype)))
   C = undefined;
  else if (isObject(C)) {
   C = C[SPECIES];
   if (C === null)
    C = undefined;
  }
 }
 return C === undefined ? $Array : C;
};

/***/ }),
/* 110 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classof = __webpack_require__(45);
module.exports = Array.isArray || function isArray(argument) {
 return classof(argument) == 'Array';
};

/***/ }),
/* 111 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var fails = __webpack_require__(8);
var isCallable = __webpack_require__(28);
var classof = __webpack_require__(91);
var getBuiltIn = __webpack_require__(36);
var inspectSource = __webpack_require__(73);
var noop = function () {
};
var empty = [];
var construct = getBuiltIn('Reflect', 'construct');
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec = uncurryThis(constructorRegExp.exec);
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
var isConstructorModern = function isConstructor(argument) {
 if (!isCallable(argument))
  return false;
 try {
  construct(noop, empty, argument);
  return true;
 } catch (error) {
  return false;
 }
};
var isConstructorLegacy = function isConstructor(argument) {
 if (!isCallable(argument))
  return false;
 switch (classof(argument)) {
 case 'AsyncFunction':
 case 'GeneratorFunction':
 case 'AsyncGeneratorFunction':
  return false;
 }
 try {
  return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
 } catch (error) {
  return true;
 }
};
isConstructorLegacy.sham = true;
module.exports = !construct || fails(function () {
 var called;
 return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () {
  called = true;
 }) || called;
}) ? isConstructorLegacy : isConstructorModern;

/***/ }),
/* 112 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var getBuiltIn = __webpack_require__(36);
var hasOwn = __webpack_require__(5);
var toString = __webpack_require__(94);
var shared = __webpack_require__(14);
var NATIVE_SYMBOL_REGISTRY = __webpack_require__(113);
var StringToSymbolRegistry = shared('string-to-symbol-registry');
var SymbolToStringRegistry = shared('symbol-to-string-registry');
$({
 target: 'Symbol',
 stat: true,
 forced: !NATIVE_SYMBOL_REGISTRY
}, {
 'for': function (key) {
  var string = toString(key);
  if (hasOwn(StringToSymbolRegistry, string))
   return StringToSymbolRegistry[string];
  var symbol = getBuiltIn('Symbol')(string);
  StringToSymbolRegistry[string] = symbol;
  SymbolToStringRegistry[symbol] = string;
  return symbol;
 }
});

/***/ }),
/* 113 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_SYMBOL = __webpack_require__(19);
module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor;

/***/ }),
/* 114 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var hasOwn = __webpack_require__(5);
var isSymbol = __webpack_require__(35);
var tryToString = __webpack_require__(40);
var shared = __webpack_require__(14);
var NATIVE_SYMBOL_REGISTRY = __webpack_require__(113);
var SymbolToStringRegistry = shared('symbol-to-string-registry');
$({
 target: 'Symbol',
 stat: true,
 forced: !NATIVE_SYMBOL_REGISTRY
}, {
 keyFor: function keyFor(sym) {
  if (!isSymbol(sym))
   throw TypeError(tryToString(sym) + ' is not a symbol');
  if (hasOwn(SymbolToStringRegistry, sym))
   return SymbolToStringRegistry[sym];
 }
});

/***/ }),
/* 115 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var getBuiltIn = __webpack_require__(36);
var apply = __webpack_require__(116);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var fails = __webpack_require__(8);
var isCallable = __webpack_require__(28);
var isSymbol = __webpack_require__(35);
var arraySlice = __webpack_require__(117);
var getReplacerFunction = __webpack_require__(118);
var NATIVE_SYMBOL = __webpack_require__(19);
var $String = String;
var $stringify = getBuiltIn('JSON', 'stringify');
var exec = uncurryThis(/./.exec);
var charAt = uncurryThis(''.charAt);
var charCodeAt = uncurryThis(''.charCodeAt);
var replace = uncurryThis(''.replace);
var numberToString = uncurryThis(1.0.toString);
var tester = /[\uD800-\uDFFF]/g;
var low = /^[\uD800-\uDBFF]$/;
var hi = /^[\uDC00-\uDFFF]$/;
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
 var symbol = getBuiltIn('Symbol')();
 return $stringify([symbol]) != '[null]' || $stringify({ a: symbol }) != '{}' || $stringify(Object(symbol)) != '{}';
});
var ILL_FORMED_UNICODE = fails(function () {
 return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"' || $stringify('\uDEAD') !== '"\\udead"';
});
var stringifyWithSymbolsFix = function (it, replacer) {
 var args = arraySlice(arguments);
 var $replacer = getReplacerFunction(replacer);
 if (!isCallable($replacer) && (it === undefined || isSymbol(it)))
  return;
 args[1] = function (key, value) {
  if (isCallable($replacer))
   value = call($replacer, this, $String(key), value);
  if (!isSymbol(value))
   return value;
 };
 return apply($stringify, null, args);
};
var fixIllFormed = function (match, offset, string) {
 var prev = charAt(string, offset - 1);
 var next = charAt(string, offset + 1);
 if (exec(low, match) && !exec(hi, next) || exec(hi, match) && !exec(low, prev)) {
  return '\\u' + numberToString(charCodeAt(match, 0), 16);
 }
 return match;
};
if ($stringify) {
 $({
  target: 'JSON',
  stat: true,
  arity: 3,
  forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE
 }, {
  stringify: function stringify(it, replacer, space) {
   var args = arraySlice(arguments);
   var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
   return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;
  }
 });
}

/***/ }),
/* 116 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_BIND = __webpack_require__(7);
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);
});

/***/ }),
/* 117 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
module.exports = uncurryThis([].slice);

/***/ }),
/* 118 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var isArray = __webpack_require__(110);
var isCallable = __webpack_require__(28);
var classof = __webpack_require__(45);
var toString = __webpack_require__(94);
var push = uncurryThis([].push);
module.exports = function (replacer) {
 if (isCallable(replacer))
  return replacer;
 if (!isArray(replacer))
  return;
 var rawLength = replacer.length;
 var keys = [];
 for (var i = 0; i < rawLength; i++) {
  var element = replacer[i];
  if (typeof element == 'string')
   push(keys, element);
  else if (typeof element == 'number' || classof(element) == 'Number' || classof(element) == 'String')
   push(keys, toString(element));
 }
 var keysLength = keys.length;
 var root = true;
 return function (key, value) {
  if (root) {
   root = false;
   return value;
  }
  if (isArray(this))
   return value;
  for (var j = 0; j < keysLength; j++)
   if (keys[j] === key)
    return value;
 };
};

/***/ }),
/* 119 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var NATIVE_SYMBOL = __webpack_require__(19);
var fails = __webpack_require__(8);
var getOwnPropertySymbolsModule = __webpack_require__(77);
var toObject = __webpack_require__(9);
var FORCED = !NATIVE_SYMBOL || fails(function () {
 getOwnPropertySymbolsModule.f(1);
});
$({
 target: 'Object',
 stat: true,
 forced: FORCED
}, {
 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];
 }
});

/***/ }),
/* 120 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var DESCRIPTORS = __webpack_require__(24);
var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var hasOwn = __webpack_require__(5);
var isCallable = __webpack_require__(28);
var isPrototypeOf = __webpack_require__(37);
var toString = __webpack_require__(94);
var defineBuiltInAccessor = __webpack_require__(103);
var copyConstructorProperties = __webpack_require__(74);
var NativeSymbol = global.Symbol;
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) || NativeSymbol().description !== undefined)) {
 var EmptyStringDescriptionStore = {};
 var SymbolWrapper = function Symbol() {
  var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
  var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) : description === undefined ? NativeSymbol() : NativeSymbol(description);
  if (description === '')
   EmptyStringDescriptionStore[result] = true;
  return result;
 };
 copyConstructorProperties(SymbolWrapper, NativeSymbol);
 SymbolWrapper.prototype = SymbolPrototype;
 SymbolPrototype.constructor = SymbolWrapper;
 var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
 var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
 var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
 var regexp = /^Symbol\((.*)\)[^)]+$/;
 var replace = uncurryThis(''.replace);
 var stringSlice = uncurryThis(''.slice);
 defineBuiltInAccessor(SymbolPrototype, 'description', {
  configurable: true,
  get: function description() {
   var symbol = thisSymbolValue(this);
   if (hasOwn(EmptyStringDescriptionStore, symbol))
    return '';
   var string = symbolDescriptiveString(symbol);
   var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
   return desc === '' ? undefined : desc;
  }
 });
 $({
  global: true,
  constructor: true,
  forced: true
 }, { Symbol: SymbolWrapper });
}

/***/ }),
/* 121 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}__webpack_require__(88);__webpack_require__(122);__webpack_require__(123);__webpack_require__(126);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.GenericCom=void 0;__webpack_require__(115);__webpack_require__(187);__webpack_require__(188);__webpack_require__(190);var _app=__webpack_require__(191);var _preferences=__webpack_require__(410);var _download_manager=__webpack_require__(411);var _genericl10n=__webpack_require__(412);var _generic_scripting=__webpack_require__(416);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);};var GenericCom={};exports.GenericCom=GenericCom;var GenericPreferences=/*#__PURE__*/function(_BasePreferences){_inherits(GenericPreferences,_BasePreferences);var _super=_createSuper(GenericPreferences);function GenericPreferences(){_classCallCheck(this,GenericPreferences);return _super.apply(this,arguments);}_createClass(GenericPreferences,[{key:"_writeToStorage",value:function(){var _writeToStorage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(prefObj){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:try{localStorage.setItem("pdfjs.preferences",JSON.stringify(prefObj));}catch(safariSecurityException){}case 1:case"end":return _context.stop();}},_callee);}));function _writeToStorage(_x){return _writeToStorage2.apply(this,arguments);}return _writeToStorage;}()},{key:"_readFromStorage",value:function(){var _readFromStorage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(prefObj){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;return _context2.abrupt("return",JSON.parse(localStorage.getItem("pdfjs.preferences")));case 4:_context2.prev=4;_context2.t0=_context2["catch"](0);return _context2.abrupt("return",{});case 7:case"end":return _context2.stop();}},_callee2,null,[[0,4]]);}));function _readFromStorage(_x2){return _readFromStorage2.apply(this,arguments);}return _readFromStorage;}()}]);return GenericPreferences;}(_preferences.BasePreferences);var GenericExternalServices=/*#__PURE__*/function(_DefaultExternalServi){_inherits(GenericExternalServices,_DefaultExternalServi);var _super2=_createSuper(GenericExternalServices);function GenericExternalServices(){_classCallCheck(this,GenericExternalServices);return _super2.apply(this,arguments);}_createClass(GenericExternalServices,null,[{key:"createDownloadManager",value:function createDownloadManager(){return new _download_manager.DownloadManager();}},{key:"createPreferences",value:function createPreferences(){return new GenericPreferences();}},{key:"createL10n",value:function createL10n(_ref){var _ref$locale=_ref.locale,locale=_ref$locale===void 0?"en-US":_ref$locale;return new _genericl10n.GenericL10n(locale);}},{key:"createScripting",value:function createScripting(_ref2){var sandboxBundleSrc=_ref2.sandboxBundleSrc;return new _generic_scripting.GenericScripting(sandboxBundleSrc);}}]);return GenericExternalServices;}(_app.DefaultExternalServices);_app.PDFViewerApplication.externalServices=GenericExternalServices;

/***/ }),
/* 122 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var setToStringTag = __webpack_require__(83);
$({ global: true }, { Reflect: {} });
setToStringTag(global.Reflect, 'Reflect', true);

/***/ }),
/* 123 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var getBuiltIn = __webpack_require__(36);
var apply = __webpack_require__(116);
var bind = __webpack_require__(124);
var aConstructor = __webpack_require__(125);
var anObject = __webpack_require__(31);
var isObject = __webpack_require__(27);
var create = __webpack_require__(47);
var fails = __webpack_require__(8);
var nativeConstruct = getBuiltIn('Reflect', 'construct');
var ObjectPrototype = Object.prototype;
var push = [].push;
var NEW_TARGET_BUG = fails(function () {
 function F() {
 }
 return !(nativeConstruct(function () {
 }, [], F) instanceof F);
});
var ARGS_BUG = !fails(function () {
 nativeConstruct(function () {
 });
});
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
$({
 target: 'Reflect',
 stat: true,
 forced: FORCED,
 sham: FORCED
}, {
 construct: function construct(Target, args) {
  aConstructor(Target);
  anObject(args);
  var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
  if (ARGS_BUG && !NEW_TARGET_BUG)
   return nativeConstruct(Target, args, newTarget);
  if (Target == newTarget) {
   switch (args.length) {
   case 0:
    return new Target();
   case 1:
    return new Target(args[0]);
   case 2:
    return new Target(args[0], args[1]);
   case 3:
    return new Target(args[0], args[1], args[2]);
   case 4:
    return new Target(args[0], args[1], args[2], args[3]);
   }
   var $args = [null];
   apply(push, $args, args);
   return new (apply(bind, Target, $args))();
  }
  var proto = newTarget.prototype;
  var instance = create(isObject(proto) ? proto : ObjectPrototype);
  var result = apply(Target, instance, args);
  return isObject(result) ? result : instance;
 }
});

/***/ }),
/* 124 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var aCallable = __webpack_require__(39);
var isObject = __webpack_require__(27);
var hasOwn = __webpack_require__(5);
var arraySlice = __webpack_require__(117);
var NATIVE_BIND = __webpack_require__(7);
var $Function = Function;
var concat = uncurryThis([].concat);
var join = uncurryThis([].join);
var factories = {};
var construct = function (C, argsLength, args) {
 if (!hasOwn(factories, argsLength)) {
  for (var list = [], i = 0; i < argsLength; i++)
   list[i] = 'a[' + i + ']';
  factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')');
 }
 return factories[argsLength](C, args);
};
module.exports = NATIVE_BIND ? $Function.bind : function bind(that) {
 var F = aCallable(this);
 var Prototype = F.prototype;
 var partArgs = arraySlice(arguments, 1);
 var boundFunction = function bound() {
  var args = concat(partArgs, arraySlice(arguments));
  return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
 };
 if (isObject(Prototype))
  boundFunction.prototype = Prototype;
 return boundFunction;
};

/***/ }),
/* 125 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isConstructor = __webpack_require__(111);
var tryToString = __webpack_require__(40);
var $TypeError = TypeError;
module.exports = function (argument) {
 if (isConstructor(argument))
  return argument;
 throw $TypeError(tryToString(argument) + ' is not a constructor');
};

/***/ }),
/* 126 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var apply = __webpack_require__(116);
var wrapErrorConstructorWithCause = __webpack_require__(127);
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);
 };
});

/***/ }),
/* 127 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
var hasOwn = __webpack_require__(5);
var createNonEnumerableProperty = __webpack_require__(64);
var isPrototypeOf = __webpack_require__(37);
var setPrototypeOf = __webpack_require__(84);
var copyConstructorProperties = __webpack_require__(74);
var proxyAccessor = __webpack_require__(128);
var inheritIfRequired = __webpack_require__(129);
var normalizeStringArgument = __webpack_require__(130);
var installErrorCause = __webpack_require__(131);
var installErrorStack = __webpack_require__(132);
var DESCRIPTORS = __webpack_require__(24);
var IS_PURE = __webpack_require__(15);
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;
};

/***/ }),
/* 128 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var defineProperty = (__webpack_require__(23).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;
  }
 });
};

/***/ }),
/* 129 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isCallable = __webpack_require__(28);
var isObject = __webpack_require__(27);
var setPrototypeOf = __webpack_require__(84);
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;
};

/***/ }),
/* 130 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toString = __webpack_require__(94);
module.exports = function (argument, $default) {
 return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
};

/***/ }),
/* 131 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isObject = __webpack_require__(27);
var createNonEnumerableProperty = __webpack_require__(64);
module.exports = function (O, options) {
 if (isObject(options) && 'cause' in options) {
  createNonEnumerableProperty(O, 'cause', options.cause);
 }
};

/***/ }),
/* 132 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var createNonEnumerableProperty = __webpack_require__(64);
var clearErrorStack = __webpack_require__(133);
var ERROR_STACK_INSTALLABLE = __webpack_require__(134);
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));
 }
};

/***/ }),
/* 133 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
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;
};

/***/ }),
/* 134 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var createPropertyDescriptor = __webpack_require__(65);
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;
});

/***/ }),
/* 135 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var defineWellKnownSymbol = __webpack_require__(2);
var defineSymbolToPrimitive = __webpack_require__(104);
defineWellKnownSymbol('toPrimitive');
defineSymbolToPrimitive();

/***/ }),
/* 136 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var hasOwn = __webpack_require__(5);
var defineBuiltIn = __webpack_require__(70);
var dateToPrimitive = __webpack_require__(137);
var wellKnownSymbol = __webpack_require__(13);
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
var DatePrototype = Date.prototype;
if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
 defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
}

/***/ }),
/* 137 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var anObject = __webpack_require__(31);
var ordinaryToPrimitive = __webpack_require__(41);
var $TypeError = TypeError;
module.exports = function (hint) {
 anObject(this);
 if (hint === 'string' || hint === 'default')
  hint = 'string';
 else if (hint !== 'number')
  throw $TypeError('Incorrect hint');
 return ordinaryToPrimitive(this, hint);
};

/***/ }),
/* 138 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var IS_PURE = __webpack_require__(15);
var DESCRIPTORS = __webpack_require__(24);
var global = __webpack_require__(4);
var path = __webpack_require__(3);
var uncurryThis = __webpack_require__(6);
var isForced = __webpack_require__(78);
var hasOwn = __webpack_require__(5);
var inheritIfRequired = __webpack_require__(129);
var isPrototypeOf = __webpack_require__(37);
var isSymbol = __webpack_require__(35);
var toPrimitive = __webpack_require__(33);
var fails = __webpack_require__(8);
var getOwnPropertyNames = (__webpack_require__(76).f);
var getOwnPropertyDescriptor = (__webpack_require__(68).f);
var defineProperty = (__webpack_require__(23).f);
var thisNumberValue = __webpack_require__(139);
var trim = (__webpack_require__(140).trim);
var NUMBER = 'Number';
var NativeNumber = global[NUMBER];
var PureNumberNamespace = path[NUMBER];
var NumberPrototype = NativeNumber.prototype;
var TypeError = global.TypeError;
var stringSlice = uncurryThis(''.slice);
var charCodeAt = uncurryThis(''.charCodeAt);
var toNumeric = function (value) {
 var primValue = toPrimitive(value, 'number');
 return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
};
var toNumber = function (argument) {
 var it = toPrimitive(argument, 'number');
 var first, third, radix, maxCode, digits, length, index, code;
 if (isSymbol(it))
  throw TypeError('Cannot convert a Symbol value to a number');
 if (typeof it == 'string' && it.length > 2) {
  it = trim(it);
  first = charCodeAt(it, 0);
  if (first === 43 || first === 45) {
   third = charCodeAt(it, 2);
   if (third === 88 || third === 120)
    return NaN;
  } else if (first === 48) {
   switch (charCodeAt(it, 1)) {
   case 66:
   case 98:
    radix = 2;
    maxCode = 49;
    break;
   case 79:
   case 111:
    radix = 8;
    maxCode = 55;
    break;
   default:
    return +it;
   }
   digits = stringSlice(it, 2);
   length = digits.length;
   for (index = 0; index < length; index++) {
    code = charCodeAt(digits, index);
    if (code < 48 || code > maxCode)
     return NaN;
   }
   return parseInt(digits, radix);
  }
 }
 return +it;
};
var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
var calledWithNew = function (dummy) {
 return isPrototypeOf(NumberPrototype, dummy) && fails(function () {
  thisNumberValue(dummy);
 });
};
var NumberWrapper = function Number(value) {
 var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
 return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;
};
NumberWrapper.prototype = NumberPrototype;
if (FORCED && !IS_PURE)
 NumberPrototype.constructor = NumberWrapper;
$({
 global: true,
 constructor: true,
 wrap: true,
 forced: FORCED
}, { Number: NumberWrapper });
var copyConstructorProperties = function (target, source) {
 for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ('MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + 'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
  if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {
   defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  }
 }
};
if (IS_PURE && PureNumberNamespace)
 copyConstructorProperties(path[NUMBER], PureNumberNamespace);
if (FORCED || IS_PURE)
 copyConstructorProperties(path[NUMBER], NativeNumber);

/***/ }),
/* 139 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
module.exports = uncurryThis(1.0.valueOf);

/***/ }),
/* 140 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var requireObjectCoercible = __webpack_require__(10);
var toString = __webpack_require__(94);
var whitespaces = __webpack_require__(141);
var replace = uncurryThis(''.replace);
var ltrim = RegExp('^[' + whitespaces + ']+');
var rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');
var createMethod = function (TYPE) {
 return function ($this) {
  var string = toString(requireObjectCoercible($this));
  if (TYPE & 1)
   string = replace(string, ltrim, '');
  if (TYPE & 2)
   string = replace(string, rtrim, '$1');
  return string;
 };
};
module.exports = {
 start: createMethod(1),
 end: createMethod(2),
 trim: createMethod(3)
};

/***/ }),
/* 141 */
/***/ ((module) => {


module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';

/***/ }),
/* 142 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(143);
__webpack_require__(162);
__webpack_require__(170);
__webpack_require__(171);
__webpack_require__(172);
__webpack_require__(173);

/***/ }),
/* 143 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var IS_PURE = __webpack_require__(15);
var IS_NODE = __webpack_require__(144);
var global = __webpack_require__(4);
var call = __webpack_require__(34);
var defineBuiltIn = __webpack_require__(70);
var setPrototypeOf = __webpack_require__(84);
var setToStringTag = __webpack_require__(83);
var setSpecies = __webpack_require__(145);
var aCallable = __webpack_require__(39);
var isCallable = __webpack_require__(28);
var isObject = __webpack_require__(27);
var anInstance = __webpack_require__(146);
var speciesConstructor = __webpack_require__(147);
var task = (__webpack_require__(148).set);
var microtask = __webpack_require__(151);
var hostReportErrors = __webpack_require__(155);
var perform = __webpack_require__(156);
var Queue = __webpack_require__(152);
var InternalStateModule = __webpack_require__(62);
var NativePromiseConstructor = __webpack_require__(157);
var PromiseConstructorDetection = __webpack_require__(158);
var newPromiseCapabilityModule = __webpack_require__(161);
var PROMISE = 'Promise';
var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var setInternalState = InternalStateModule.set;
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var PromiseConstructor = NativePromiseConstructor;
var PromisePrototype = NativePromisePrototype;
var TypeError = global.TypeError;
var document = global.document;
var process = global.process;
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
var UNHANDLED_REJECTION = 'unhandledrejection';
var REJECTION_HANDLED = 'rejectionhandled';
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
var isThenable = function (it) {
 var then;
 return isObject(it) && isCallable(then = it.then) ? then : false;
};
var callReaction = function (reaction, state) {
 var value = state.value;
 var ok = state.state == FULFILLED;
 var handler = ok ? reaction.ok : reaction.fail;
 var resolve = reaction.resolve;
 var reject = reaction.reject;
 var domain = reaction.domain;
 var result, then, exited;
 try {
  if (handler) {
   if (!ok) {
    if (state.rejection === UNHANDLED)
     onHandleUnhandled(state);
    state.rejection = HANDLED;
   }
   if (handler === true)
    result = value;
   else {
    if (domain)
     domain.enter();
    result = handler(value);
    if (domain) {
     domain.exit();
     exited = true;
    }
   }
   if (result === reaction.promise) {
    reject(TypeError('Promise-chain cycle'));
   } else if (then = isThenable(result)) {
    call(then, result, resolve, reject);
   } else
    resolve(result);
  } else
   reject(value);
 } catch (error) {
  if (domain && !exited)
   domain.exit();
  reject(error);
 }
};
var notify = function (state, isReject) {
 if (state.notified)
  return;
 state.notified = true;
 microtask(function () {
  var reactions = state.reactions;
  var reaction;
  while (reaction = reactions.get()) {
   callReaction(reaction, state);
  }
  state.notified = false;
  if (isReject && !state.rejection)
   onUnhandled(state);
 });
};
var dispatchEvent = function (name, promise, reason) {
 var event, handler;
 if (DISPATCH_EVENT) {
  event = document.createEvent('Event');
  event.promise = promise;
  event.reason = reason;
  event.initEvent(name, false, true);
  global.dispatchEvent(event);
 } else
  event = {
   promise: promise,
   reason: reason
  };
 if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name]))
  handler(event);
 else if (name === UNHANDLED_REJECTION)
  hostReportErrors('Unhandled promise rejection', reason);
};
var onUnhandled = function (state) {
 call(task, global, function () {
  var promise = state.facade;
  var value = state.value;
  var IS_UNHANDLED = isUnhandled(state);
  var result;
  if (IS_UNHANDLED) {
   result = perform(function () {
    if (IS_NODE) {
     process.emit('unhandledRejection', value, promise);
    } else
     dispatchEvent(UNHANDLED_REJECTION, promise, value);
   });
   state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
   if (result.error)
    throw result.value;
  }
 });
};
var isUnhandled = function (state) {
 return state.rejection !== HANDLED && !state.parent;
};
var onHandleUnhandled = function (state) {
 call(task, global, function () {
  var promise = state.facade;
  if (IS_NODE) {
   process.emit('rejectionHandled', promise);
  } else
   dispatchEvent(REJECTION_HANDLED, promise, state.value);
 });
};
var bind = function (fn, state, unwrap) {
 return function (value) {
  fn(state, value, unwrap);
 };
};
var internalReject = function (state, value, unwrap) {
 if (state.done)
  return;
 state.done = true;
 if (unwrap)
  state = unwrap;
 state.value = value;
 state.state = REJECTED;
 notify(state, true);
};
var internalResolve = function (state, value, unwrap) {
 if (state.done)
  return;
 state.done = true;
 if (unwrap)
  state = unwrap;
 try {
  if (state.facade === value)
   throw TypeError("Promise can't be resolved itself");
  var then = isThenable(value);
  if (then) {
   microtask(function () {
    var wrapper = { done: false };
    try {
     call(then, value, bind(internalResolve, wrapper, state), bind(internalReject, wrapper, state));
    } catch (error) {
     internalReject(wrapper, error, state);
    }
   });
  } else {
   state.value = value;
   state.state = FULFILLED;
   notify(state, false);
  }
 } catch (error) {
  internalReject({ done: false }, error, state);
 }
};
if (FORCED_PROMISE_CONSTRUCTOR) {
 PromiseConstructor = function Promise(executor) {
  anInstance(this, PromisePrototype);
  aCallable(executor);
  call(Internal, this);
  var state = getInternalPromiseState(this);
  try {
   executor(bind(internalResolve, state), bind(internalReject, state));
  } catch (error) {
   internalReject(state, error);
  }
 };
 PromisePrototype = PromiseConstructor.prototype;
 Internal = function Promise(executor) {
  setInternalState(this, {
   type: PROMISE,
   done: false,
   notified: false,
   parent: false,
   reactions: new Queue(),
   rejection: false,
   state: PENDING,
   value: undefined
  });
 };
 Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
  var state = getInternalPromiseState(this);
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
  state.parent = true;
  reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
  reaction.fail = isCallable(onRejected) && onRejected;
  reaction.domain = IS_NODE ? process.domain : undefined;
  if (state.state == PENDING)
   state.reactions.add(reaction);
  else
   microtask(function () {
    callReaction(reaction, state);
   });
  return reaction.promise;
 });
 OwnPromiseCapability = function () {
  var promise = new Internal();
  var state = getInternalPromiseState(promise);
  this.promise = promise;
  this.resolve = bind(internalResolve, state);
  this.reject = bind(internalReject, state);
 };
 newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
  return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C);
 };
 if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {
  nativeThen = NativePromisePrototype.then;
  if (!NATIVE_PROMISE_SUBCLASSING) {
   defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
    var that = this;
    return new PromiseConstructor(function (resolve, reject) {
     call(nativeThen, that, resolve, reject);
    }).then(onFulfilled, onRejected);
   }, { unsafe: true });
  }
  try {
   delete NativePromisePrototype.constructor;
  } catch (error) {
  }
  if (setPrototypeOf) {
   setPrototypeOf(NativePromisePrototype, PromisePrototype);
  }
 }
}
$({
 global: true,
 constructor: true,
 wrap: true,
 forced: FORCED_PROMISE_CONSTRUCTOR
}, { Promise: PromiseConstructor });
setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);

/***/ }),
/* 144 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classof = __webpack_require__(45);
module.exports = typeof process != 'undefined' && classof(process) == 'process';

/***/ }),
/* 145 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
var defineBuiltInAccessor = __webpack_require__(103);
var wellKnownSymbol = __webpack_require__(13);
var DESCRIPTORS = __webpack_require__(24);
var SPECIES = wellKnownSymbol('species');
module.exports = function (CONSTRUCTOR_NAME) {
 var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
 if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
  defineBuiltInAccessor(Constructor, SPECIES, {
   configurable: true,
   get: function () {
    return this;
   }
  });
 }
};

/***/ }),
/* 146 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isPrototypeOf = __webpack_require__(37);
var $TypeError = TypeError;
module.exports = function (it, Prototype) {
 if (isPrototypeOf(Prototype, it))
  return it;
 throw $TypeError('Incorrect invocation');
};

/***/ }),
/* 147 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var anObject = __webpack_require__(31);
var aConstructor = __webpack_require__(125);
var isNullOrUndefined = __webpack_require__(11);
var wellKnownSymbol = __webpack_require__(13);
var SPECIES = wellKnownSymbol('species');
module.exports = function (O, defaultConstructor) {
 var C = anObject(O).constructor;
 var S;
 return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);
};

/***/ }),
/* 148 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var apply = __webpack_require__(116);
var bind = __webpack_require__(106);
var isCallable = __webpack_require__(28);
var hasOwn = __webpack_require__(5);
var fails = __webpack_require__(8);
var html = __webpack_require__(59);
var arraySlice = __webpack_require__(117);
var createElement = __webpack_require__(26);
var validateArgumentsLength = __webpack_require__(149);
var IS_IOS = __webpack_require__(150);
var IS_NODE = __webpack_require__(144);
var set = global.setImmediate;
var clear = global.clearImmediate;
var process = global.process;
var Dispatch = global.Dispatch;
var Function = global.Function;
var MessageChannel = global.MessageChannel;
var String = global.String;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var $location, defer, channel, port;
fails(function () {
 $location = global.location;
});
var run = function (id) {
 if (hasOwn(queue, id)) {
  var fn = queue[id];
  delete queue[id];
  fn();
 }
};
var runner = function (id) {
 return function () {
  run(id);
 };
};
var eventListener = function (event) {
 run(event.data);
};
var globalPostMessageDefer = function (id) {
 global.postMessage(String(id), $location.protocol + '//' + $location.host);
};
if (!set || !clear) {
 set = function setImmediate(handler) {
  validateArgumentsLength(arguments.length, 1);
  var fn = isCallable(handler) ? handler : Function(handler);
  var args = arraySlice(arguments, 1);
  queue[++counter] = function () {
   apply(fn, undefined, args);
  };
  defer(counter);
  return counter;
 };
 clear = function clearImmediate(id) {
  delete queue[id];
 };
 if (IS_NODE) {
  defer = function (id) {
   process.nextTick(runner(id));
  };
 } else if (Dispatch && Dispatch.now) {
  defer = function (id) {
   Dispatch.now(runner(id));
  };
 } else if (MessageChannel && !IS_IOS) {
  channel = new MessageChannel();
  port = channel.port2;
  channel.port1.onmessage = eventListener;
  defer = bind(port.postMessage, port);
 } else if (global.addEventListener && isCallable(global.postMessage) && !global.importScripts && $location && $location.protocol !== 'file:' && !fails(globalPostMessageDefer)) {
  defer = globalPostMessageDefer;
  global.addEventListener('message', eventListener, false);
 } else if (ONREADYSTATECHANGE in createElement('script')) {
  defer = function (id) {
   html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
    html.removeChild(this);
    run(id);
   };
  };
 } else {
  defer = function (id) {
   setTimeout(runner(id), 0);
  };
 }
}
module.exports = {
 set: set,
 clear: clear
};

/***/ }),
/* 149 */
/***/ ((module) => {


var $TypeError = TypeError;
module.exports = function (passed, required) {
 if (passed < required)
  throw $TypeError('Not enough arguments');
 return passed;
};

/***/ }),
/* 150 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var userAgent = __webpack_require__(21);
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);

/***/ }),
/* 151 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var bind = __webpack_require__(106);
var getOwnPropertyDescriptor = (__webpack_require__(68).f);
var macrotask = (__webpack_require__(148).set);
var Queue = __webpack_require__(152);
var IS_IOS = __webpack_require__(150);
var IS_IOS_PEBBLE = __webpack_require__(153);
var IS_WEBOS_WEBKIT = __webpack_require__(154);
var IS_NODE = __webpack_require__(144);
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
var document = global.document;
var process = global.process;
var Promise = global.Promise;
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
var microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
var notify, toggle, node, promise, then;
if (!microtask) {
 var queue = new Queue();
 var flush = function () {
  var parent, fn;
  if (IS_NODE && (parent = process.domain))
   parent.exit();
  while (fn = queue.get())
   try {
    fn();
   } catch (error) {
    if (queue.head)
     notify();
    throw error;
   }
  if (parent)
   parent.enter();
 };
 if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
  toggle = true;
  node = document.createTextNode('');
  new MutationObserver(flush).observe(node, { characterData: true });
  notify = function () {
   node.data = toggle = !toggle;
  };
 } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {
  promise = Promise.resolve(undefined);
  promise.constructor = Promise;
  then = bind(promise.then, promise);
  notify = function () {
   then(flush);
  };
 } else if (IS_NODE) {
  notify = function () {
   process.nextTick(flush);
  };
 } else {
  macrotask = bind(macrotask, global);
  notify = function () {
   macrotask(flush);
  };
 }
 microtask = function (fn) {
  if (!queue.head)
   notify();
  queue.add(fn);
 };
}
module.exports = microtask;

/***/ }),
/* 152 */
/***/ ((module) => {


var Queue = function () {
 this.head = null;
 this.tail = null;
};
Queue.prototype = {
 add: function (item) {
  var entry = {
   item: item,
   next: null
  };
  var tail = this.tail;
  if (tail)
   tail.next = entry;
  else
   this.head = entry;
  this.tail = entry;
 },
 get: function () {
  var entry = this.head;
  if (entry) {
   var next = this.head = entry.next;
   if (next === null)
    this.tail = null;
   return entry.item;
  }
 }
};
module.exports = Queue;

/***/ }),
/* 153 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var userAgent = __webpack_require__(21);
module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';

/***/ }),
/* 154 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var userAgent = __webpack_require__(21);
module.exports = /web0s(?!.*chrome)/i.test(userAgent);

/***/ }),
/* 155 */
/***/ ((module) => {


module.exports = function (a, b) {
 try {
  arguments.length == 1 ? console.error(a) : console.error(a, b);
 } catch (error) {
 }
};

/***/ }),
/* 156 */
/***/ ((module) => {


module.exports = function (exec) {
 try {
  return {
   error: false,
   value: exec()
  };
 } catch (error) {
  return {
   error: true,
   value: error
  };
 }
};

/***/ }),
/* 157 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
module.exports = global.Promise;

/***/ }),
/* 158 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var NativePromiseConstructor = __webpack_require__(157);
var isCallable = __webpack_require__(28);
var isForced = __webpack_require__(78);
var inspectSource = __webpack_require__(73);
var wellKnownSymbol = __webpack_require__(13);
var IS_BROWSER = __webpack_require__(159);
var IS_DENO = __webpack_require__(160);
var IS_PURE = __webpack_require__(15);
var V8_VERSION = __webpack_require__(20);
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var SPECIES = wellKnownSymbol('species');
var SUBCLASSING = false;
var NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);
var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {
 var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);
 var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);
 if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66)
  return true;
 if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally']))
  return true;
 if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
  var promise = new NativePromiseConstructor(function (resolve) {
   resolve(1);
  });
  var FakePromise = function (exec) {
   exec(function () {
   }, function () {
   });
  };
  var constructor = promise.constructor = {};
  constructor[SPECIES] = FakePromise;
  SUBCLASSING = promise.then(function () {
  }) instanceof FakePromise;
  if (!SUBCLASSING)
   return true;
 }
 return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;
});
module.exports = {
 CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,
 REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,
 SUBCLASSING: SUBCLASSING
};

/***/ }),
/* 159 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var IS_DENO = __webpack_require__(160);
var IS_NODE = __webpack_require__(144);
module.exports = !IS_DENO && !IS_NODE && typeof window == 'object' && typeof document == 'object';

/***/ }),
/* 160 */
/***/ ((module) => {


module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';

/***/ }),
/* 161 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aCallable = __webpack_require__(39);
var $TypeError = TypeError;
var PromiseCapability = function (C) {
 var resolve, reject;
 this.promise = new C(function ($$resolve, $$reject) {
  if (resolve !== undefined || reject !== undefined)
   throw $TypeError('Bad Promise constructor');
  resolve = $$resolve;
  reject = $$reject;
 });
 this.resolve = aCallable(resolve);
 this.reject = aCallable(reject);
};
module.exports.f = function (C) {
 return new PromiseCapability(C);
};

/***/ }),
/* 162 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var aCallable = __webpack_require__(39);
var newPromiseCapabilityModule = __webpack_require__(161);
var perform = __webpack_require__(156);
var iterate = __webpack_require__(163);
var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(168);
$({
 target: 'Promise',
 stat: true,
 forced: PROMISE_STATICS_INCORRECT_ITERATION
}, {
 all: function all(iterable) {
  var C = this;
  var capability = newPromiseCapabilityModule.f(C);
  var resolve = capability.resolve;
  var reject = capability.reject;
  var result = perform(function () {
   var $promiseResolve = aCallable(C.resolve);
   var values = [];
   var counter = 0;
   var remaining = 1;
   iterate(iterable, function (promise) {
    var index = counter++;
    var alreadyCalled = false;
    remaining++;
    call($promiseResolve, C, promise).then(function (value) {
     if (alreadyCalled)
      return;
     alreadyCalled = true;
     values[index] = value;
     --remaining || resolve(values);
    }, reject);
   });
   --remaining || resolve(values);
  });
  if (result.error)
   reject(result.value);
  return capability.promise;
 }
});

/***/ }),
/* 163 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var bind = __webpack_require__(106);
var call = __webpack_require__(34);
var anObject = __webpack_require__(31);
var tryToString = __webpack_require__(40);
var isArrayIteratorMethod = __webpack_require__(164);
var lengthOfArrayLike = __webpack_require__(55);
var isPrototypeOf = __webpack_require__(37);
var getIterator = __webpack_require__(165);
var getIteratorMethod = __webpack_require__(166);
var iteratorClose = __webpack_require__(167);
var $TypeError = TypeError;
var Result = function (stopped, result) {
 this.stopped = stopped;
 this.result = result;
};
var ResultPrototype = Result.prototype;
module.exports = function (iterable, unboundFunction, options) {
 var that = options && options.that;
 var AS_ENTRIES = !!(options && options.AS_ENTRIES);
 var IS_RECORD = !!(options && options.IS_RECORD);
 var IS_ITERATOR = !!(options && options.IS_ITERATOR);
 var INTERRUPTED = !!(options && options.INTERRUPTED);
 var fn = bind(unboundFunction, that);
 var iterator, iterFn, index, length, result, next, step;
 var stop = function (condition) {
  if (iterator)
   iteratorClose(iterator, 'normal', condition);
  return new Result(true, condition);
 };
 var callFn = function (value) {
  if (AS_ENTRIES) {
   anObject(value);
   return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
  }
  return INTERRUPTED ? fn(value, stop) : fn(value);
 };
 if (IS_RECORD) {
  iterator = iterable.iterator;
 } else if (IS_ITERATOR) {
  iterator = iterable;
 } else {
  iterFn = getIteratorMethod(iterable);
  if (!iterFn)
   throw $TypeError(tryToString(iterable) + ' is not iterable');
  if (isArrayIteratorMethod(iterFn)) {
   for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
    result = callFn(iterable[index]);
    if (result && isPrototypeOf(ResultPrototype, result))
     return result;
   }
   return new Result(false);
  }
  iterator = getIterator(iterable, iterFn);
 }
 next = IS_RECORD ? iterable.next : iterator.next;
 while (!(step = call(next, iterator)).done) {
  try {
   result = callFn(step.value);
  } catch (error) {
   iteratorClose(iterator, 'throw', error);
  }
  if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result))
   return result;
 }
 return new Result(false);
};

/***/ }),
/* 164 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var wellKnownSymbol = __webpack_require__(13);
var Iterators = __webpack_require__(61);
var ITERATOR = wellKnownSymbol('iterator');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
 return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};

/***/ }),
/* 165 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var aCallable = __webpack_require__(39);
var anObject = __webpack_require__(31);
var tryToString = __webpack_require__(40);
var getIteratorMethod = __webpack_require__(166);
var $TypeError = TypeError;
module.exports = function (argument, usingIterator) {
 var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
 if (aCallable(iteratorMethod))
  return anObject(call(iteratorMethod, argument));
 throw $TypeError(tryToString(argument) + ' is not iterable');
};

/***/ }),
/* 166 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classof = __webpack_require__(91);
var getMethod = __webpack_require__(38);
var isNullOrUndefined = __webpack_require__(11);
var Iterators = __webpack_require__(61);
var wellKnownSymbol = __webpack_require__(13);
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
 if (!isNullOrUndefined(it))
  return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || Iterators[classof(it)];
};

/***/ }),
/* 167 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var anObject = __webpack_require__(31);
var getMethod = __webpack_require__(38);
module.exports = function (iterator, kind, value) {
 var innerResult, innerError;
 anObject(iterator);
 try {
  innerResult = getMethod(iterator, 'return');
  if (!innerResult) {
   if (kind === 'throw')
    throw value;
   return value;
  }
  innerResult = call(innerResult, iterator);
 } catch (error) {
  innerError = true;
  innerResult = error;
 }
 if (kind === 'throw')
  throw value;
 if (innerError)
  throw innerResult;
 anObject(innerResult);
 return value;
};

/***/ }),
/* 168 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NativePromiseConstructor = __webpack_require__(157);
var checkCorrectnessOfIteration = __webpack_require__(169);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(158).CONSTRUCTOR);
module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {
 NativePromiseConstructor.all(iterable).then(undefined, function () {
 });
});

/***/ }),
/* 169 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var wellKnownSymbol = __webpack_require__(13);
var ITERATOR = wellKnownSymbol('iterator');
var SAFE_CLOSING = false;
try {
 var called = 0;
 var iteratorWithReturn = {
  next: function () {
   return { done: !!called++ };
  },
  'return': function () {
   SAFE_CLOSING = true;
  }
 };
 iteratorWithReturn[ITERATOR] = function () {
  return this;
 };
 Array.from(iteratorWithReturn, function () {
  throw 2;
 });
} catch (error) {
}
module.exports = function (exec, SKIP_CLOSING) {
 if (!SKIP_CLOSING && !SAFE_CLOSING)
  return false;
 var ITERATION_SUPPORT = false;
 try {
  var object = {};
  object[ITERATOR] = function () {
   return {
    next: function () {
     return { done: ITERATION_SUPPORT = true };
    }
   };
  };
  exec(object);
 } catch (error) {
 }
 return ITERATION_SUPPORT;
};

/***/ }),
/* 170 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var IS_PURE = __webpack_require__(15);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(158).CONSTRUCTOR);
var NativePromiseConstructor = __webpack_require__(157);
var getBuiltIn = __webpack_require__(36);
var isCallable = __webpack_require__(28);
var defineBuiltIn = __webpack_require__(70);
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
$({
 target: 'Promise',
 proto: true,
 forced: FORCED_PROMISE_CONSTRUCTOR,
 real: true
}, {
 'catch': function (onRejected) {
  return this.then(undefined, onRejected);
 }
});
if (!IS_PURE && isCallable(NativePromiseConstructor)) {
 var method = getBuiltIn('Promise').prototype['catch'];
 if (NativePromisePrototype['catch'] !== method) {
  defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
 }
}

/***/ }),
/* 171 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var aCallable = __webpack_require__(39);
var newPromiseCapabilityModule = __webpack_require__(161);
var perform = __webpack_require__(156);
var iterate = __webpack_require__(163);
var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(168);
$({
 target: 'Promise',
 stat: true,
 forced: PROMISE_STATICS_INCORRECT_ITERATION
}, {
 race: function race(iterable) {
  var C = this;
  var capability = newPromiseCapabilityModule.f(C);
  var reject = capability.reject;
  var result = perform(function () {
   var $promiseResolve = aCallable(C.resolve);
   iterate(iterable, function (promise) {
    call($promiseResolve, C, promise).then(capability.resolve, reject);
   });
  });
  if (result.error)
   reject(result.value);
  return capability.promise;
 }
});

/***/ }),
/* 172 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var newPromiseCapabilityModule = __webpack_require__(161);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(158).CONSTRUCTOR);
$({
 target: 'Promise',
 stat: true,
 forced: FORCED_PROMISE_CONSTRUCTOR
}, {
 reject: function reject(r) {
  var capability = newPromiseCapabilityModule.f(this);
  call(capability.reject, undefined, r);
  return capability.promise;
 }
});

/***/ }),
/* 173 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var getBuiltIn = __webpack_require__(36);
var IS_PURE = __webpack_require__(15);
var NativePromiseConstructor = __webpack_require__(157);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(158).CONSTRUCTOR);
var promiseResolve = __webpack_require__(174);
var PromiseConstructorWrapper = getBuiltIn('Promise');
var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;
$({
 target: 'Promise',
 stat: true,
 forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR
}, {
 resolve: function resolve(x) {
  return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);
 }
});

/***/ }),
/* 174 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var anObject = __webpack_require__(31);
var isObject = __webpack_require__(27);
var newPromiseCapability = __webpack_require__(161);
module.exports = function (C, x) {
 anObject(C);
 if (isObject(x) && x.constructor === C)
  return x;
 var promiseCapability = newPromiseCapability.f(C);
 var resolve = promiseCapability.resolve;
 resolve(x);
 return promiseCapability.promise;
};

/***/ }),
/* 175 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var defineWellKnownSymbol = __webpack_require__(2);
defineWellKnownSymbol('asyncIterator');

/***/ }),
/* 176 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
var defineWellKnownSymbol = __webpack_require__(2);
var setToStringTag = __webpack_require__(83);
defineWellKnownSymbol('toStringTag');
setToStringTag(getBuiltIn('Symbol'), 'Symbol');

/***/ }),
/* 177 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var setToStringTag = __webpack_require__(83);
setToStringTag(global.JSON, 'JSON', true);

/***/ }),
/* 178 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var setToStringTag = __webpack_require__(83);
setToStringTag(Math, 'Math', true);

/***/ }),
/* 179 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
var setArrayLength = __webpack_require__(180);
var doesNotExceedSafeInteger = __webpack_require__(181);
var fails = __webpack_require__(8);
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;
 }
});

/***/ }),
/* 180 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var isArray = __webpack_require__(110);
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;
};

/***/ }),
/* 181 */
/***/ ((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;
};

/***/ }),
/* 182 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var DOMIterables = __webpack_require__(96);
var DOMTokenListPrototype = __webpack_require__(97);
var forEach = __webpack_require__(183);
var createNonEnumerableProperty = __webpack_require__(64);
var handlePrototype = function (CollectionPrototype) {
 if (CollectionPrototype && CollectionPrototype.forEach !== forEach)
  try {
   createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  } catch (error) {
   CollectionPrototype.forEach = forEach;
  }
};
for (var COLLECTION_NAME in DOMIterables) {
 if (DOMIterables[COLLECTION_NAME]) {
  handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
 }
}
handlePrototype(DOMTokenListPrototype);

/***/ }),
/* 183 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var $forEach = (__webpack_require__(105).forEach);
var arrayMethodIsStrict = __webpack_require__(184);
var STRICT_METHOD = arrayMethodIsStrict('forEach');
module.exports = !STRICT_METHOD ? function forEach(callbackfn) {
 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
} : [].forEach;

/***/ }),
/* 184 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
module.exports = function (METHOD_NAME, argument) {
 var method = [][METHOD_NAME];
 return !!method && fails(function () {
  method.call(null, argument || function () {
   return 1;
  }, 1);
 });
};

/***/ }),
/* 185 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var isArray = __webpack_require__(110);
var isConstructor = __webpack_require__(111);
var isObject = __webpack_require__(27);
var toAbsoluteIndex = __webpack_require__(52);
var lengthOfArrayLike = __webpack_require__(55);
var toIndexedObject = __webpack_require__(43);
var createProperty = __webpack_require__(102);
var wellKnownSymbol = __webpack_require__(13);
var arrayMethodHasSpeciesSupport = __webpack_require__(186);
var nativeSlice = __webpack_require__(117);
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
var SPECIES = wellKnownSymbol('species');
var $Array = Array;
var max = Math.max;
$({
 target: 'Array',
 proto: true,
 forced: !HAS_SPECIES_SUPPORT
}, {
 slice: function slice(start, end) {
  var O = toIndexedObject(this);
  var length = lengthOfArrayLike(O);
  var k = toAbsoluteIndex(start, length);
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  var Constructor, result, n;
  if (isArray(O)) {
   Constructor = O.constructor;
   if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
    Constructor = undefined;
   } else if (isObject(Constructor)) {
    Constructor = Constructor[SPECIES];
    if (Constructor === null)
     Constructor = undefined;
   }
   if (Constructor === $Array || Constructor === undefined) {
    return nativeSlice(O, k, fin);
   }
  }
  result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0));
  for (n = 0; k < fin; k++, n++)
   if (k in O)
    createProperty(result, n, O[k]);
  result.length = n;
  return result;
 }
});

/***/ }),
/* 186 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var wellKnownSymbol = __webpack_require__(13);
var V8_VERSION = __webpack_require__(20);
var SPECIES = wellKnownSymbol('species');
module.exports = function (METHOD_NAME) {
 return V8_VERSION >= 51 || !fails(function () {
  var array = [];
  var constructor = array.constructor = {};
  constructor[SPECIES] = function () {
   return { foo: 1 };
  };
  return array[METHOD_NAME](Boolean).foo !== 1;
 });
};

/***/ }),
/* 187 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var toObject = __webpack_require__(9);
var nativeKeys = __webpack_require__(49);
var fails = __webpack_require__(8);
var FAILS_ON_PRIMITIVES = fails(function () {
 nativeKeys(1);
});
$({
 target: 'Object',
 stat: true,
 forced: FAILS_ON_PRIMITIVES
}, {
 keys: function keys(it) {
  return nativeKeys(toObject(it));
 }
});

/***/ }),
/* 188 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var DESCRIPTORS = __webpack_require__(24);
var global = __webpack_require__(4);
var getBuiltIn = __webpack_require__(36);
var uncurryThis = __webpack_require__(6);
var call = __webpack_require__(34);
var isCallable = __webpack_require__(28);
var isObject = __webpack_require__(27);
var isArray = __webpack_require__(110);
var hasOwn = __webpack_require__(5);
var toString = __webpack_require__(94);
var lengthOfArrayLike = __webpack_require__(55);
var createProperty = __webpack_require__(102);
var fails = __webpack_require__(8);
var parseJSONString = __webpack_require__(189);
var NATIVE_SYMBOL = __webpack_require__(19);
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);
 }
});

/***/ }),
/* 189 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var hasOwn = __webpack_require__(5);
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
 };
};

/***/ }),
/* 190 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var fails = __webpack_require__(8);
var toObject = __webpack_require__(9);
var nativeGetPrototypeOf = __webpack_require__(81);
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(82);
var FAILS_ON_PRIMITIVES = fails(function () {
 nativeGetPrototypeOf(1);
});
$({
 target: 'Object',
 stat: true,
 forced: FAILS_ON_PRIMITIVES,
 sham: !CORRECT_PROTOTYPE_GETTER
}, {
 getPrototypeOf: function getPrototypeOf(it) {
  return nativeGetPrototypeOf(toObject(it));
 }
});

/***/ }),
/* 191 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);__webpack_require__(185);__webpack_require__(192);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(197);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFViewerApplication=exports.PDFPrintServiceFactory=exports.DefaultExternalServices=void 0;__webpack_require__(126);__webpack_require__(88);__webpack_require__(142);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(198);__webpack_require__(199);__webpack_require__(200);__webpack_require__(204);__webpack_require__(206);__webpack_require__(212);__webpack_require__(216);__webpack_require__(179);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(217);__webpack_require__(219);__webpack_require__(220);__webpack_require__(222);__webpack_require__(115);__webpack_require__(224);__webpack_require__(225);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);__webpack_require__(236);__webpack_require__(238);var _ui_utils=__webpack_require__(239);var _pdfjsLib=__webpack_require__(286);var _ngxExtendedPdfViewerVersion=__webpack_require__(287);var _app_options=__webpack_require__(288);var _event_utils=__webpack_require__(289);var _pdf_link_service=__webpack_require__(291);var _webAnnotation_editor_params=__webpack_require__(295);var _overlay_manager=__webpack_require__(296);var _password_prompt=__webpack_require__(297);var _webPdf_attachment_viewer=__webpack_require__(298);var _webPdf_cursor_tools=__webpack_require__(302);var _webPdf_document_properties=__webpack_require__(304);var _webPdf_find_bar=__webpack_require__(306);var _pdf_find_controller=__webpack_require__(307);var _pdf_history=__webpack_require__(314);var _webPdf_layer_viewer=__webpack_require__(316);var _webPdf_outline_viewer=__webpack_require__(317);var _webPdf_presentation_mode=__webpack_require__(318);var _pdf_rendering_queue=__webpack_require__(319);var _pdf_scripting_manager=__webpack_require__(321);var _webPdf_sidebar=__webpack_require__(322);var _webPdf_thumbnail_viewer=__webpack_require__(323);var _pdf_viewer=__webpack_require__(325);var _webSecondary_toolbar=__webpack_require__(407);var _webToolbar=__webpack_require__(408);var _view_history=__webpack_require__(409);function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var FORCE_PAGES_LOADED_TIMEOUT=10;var WHEEL_ZOOM_DISABLED_TIMEOUT=1000;var ViewOnLoad={UNKNOWN:-1,PREVIOUS:0,INITIAL:1};var ViewerCssTheme={AUTOMATIC:0,LIGHT:1,DARK:2};var DefaultExternalServices=/*#__PURE__*/function(){function DefaultExternalServices(){_classCallCheck(this,DefaultExternalServices);throw new Error("Cannot initialize DefaultExternalServices.");}_createClass(DefaultExternalServices,null,[{key:"updateFindControlState",value:function updateFindControlState(data){}},{key:"updateFindMatchesCount",value:function updateFindMatchesCount(data){}},{key:"initPassiveLoading",value:function initPassiveLoading(callbacks){}},{key:"reportTelemetry",value:function reportTelemetry(data){}},{key:"createDownloadManager",value:function createDownloadManager(){throw new Error("Not implemented: createDownloadManager");}},{key:"createPreferences",value:function createPreferences(){throw new Error("Not implemented: createPreferences");}},{key:"createL10n",value:function createL10n(options){throw new Error("Not implemented: createL10n");}},{key:"createScripting",value:function createScripting(options){throw new Error("Not implemented: createScripting");}},{key:"supportsPinchToZoom",get:function get(){return(0,_pdfjsLib.shadow)(this,"supportsPinchToZoom",true);}},{key:"supportsIntegratedFind",get:function get(){return(0,_pdfjsLib.shadow)(this,"supportsIntegratedFind",false);}},{key:"supportsDocumentFonts",get:function get(){return(0,_pdfjsLib.shadow)(this,"supportsDocumentFonts",true);}},{key:"supportedMouseWheelZoomModifierKeys",get:function get(){return(0,_pdfjsLib.shadow)(this,"supportedMouseWheelZoomModifierKeys",{ctrlKey:true,metaKey:true});}},{key:"isInAutomation",get:function get(){return(0,_pdfjsLib.shadow)(this,"isInAutomation",false);}},{key:"updateEditorStates",value:function updateEditorStates(data){throw new Error("Not implemented: updateEditorStates");}},{key:"canvasMaxAreaInBytes",get:function get(){return(0,_pdfjsLib.shadow)(this,"canvasMaxAreaInBytes",-1);}},{key:"getNimbusExperimentData",value:function getNimbusExperimentData(){return(0,_pdfjsLib.shadow)(this,"getNimbusExperimentData",Promise.resolve(null));}}]);return DefaultExternalServices;}();exports.DefaultExternalServices=DefaultExternalServices;var PDFViewerApplication={initialBookmark:document.location.hash.substring(1),_initializedCapability:new _pdfjsLib.PromiseCapability(),appConfig:null,pdfDocument:null,pdfLoadingTask:null,printService:null,pdfViewer:null,pdfThumbnailViewer:null,pdfRenderingQueue:null,pdfPresentationMode:null,pdfDocumentProperties:null,pdfLinkService:null,pdfHistory:null,pdfSidebar:null,pdfOutlineViewer:null,pdfAttachmentViewer:null,pdfLayerViewer:null,pdfCursorTools:null,pdfScriptingManager:null,store:null,downloadManager:null,overlayManager:null,preferences:null,toolbar:null,secondaryToolbar:null,eventBus:null,l10n:null,annotationEditorParams:null,isInitialViewSet:false,downloadComplete:false,isViewerEmbedded:window.parent!==window,url:"",baseUrl:"",_downloadUrl:"",externalServices:DefaultExternalServices,_boundEvents:Object.create(null),documentInfo:null,metadata:null,_contentDispositionFilename:null,_contentLength:null,_saveInProgress:false,_wheelUnusedTicks:0,_wheelUnusedFactor:1,_touchUnusedTicks:0,_touchUnusedFactor:1,_PDFBug:null,_hasAnnotationEditors:false,_title:document.title,_printAnnotationStoragePromise:null,_touchInfo:null,_isCtrlKeyDown:false,_nimbusDataPromise:null,initialize:function initialize(appConfig){var _this=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var appContainer;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_this.preferences=_this.externalServices.createPreferences();_this.appConfig=appConfig;_context.next=4;return _this._initializeOptions();case 4:_this._forceCssTheme();_context.next=7;return _this._initializeL10n();case 7:if(_this.isViewerEmbedded&&_app_options.AppOptions.get("externalLinkTarget")===_pdf_link_service.LinkTarget.NONE){_app_options.AppOptions.set("externalLinkTarget",_pdf_link_service.LinkTarget.TOP);}_context.next=10;return _this._initializeViewerComponents();case 10:_this.bindEvents();_this.bindWindowEvents();appContainer=appConfig.appContainer||document.documentElement;_this.l10n.translate(appContainer).then(function(){_this.eventBus.dispatch("localized",{source:_this});});_this._initializedCapability.resolve();_this.initializeLoadingBar();case 16:case"end":return _context.stop();}},_callee);}))();},_initializeOptions:function _initializeOptions(){var _this2=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!_app_options.AppOptions.get("disablePreferences")){_context2.next=5;break;}if(!_app_options.AppOptions.get("pdfBugEnabled")){_context2.next=4;break;}_context2.next=4;return _this2._parseHashParams();case 4:return _context2.abrupt("return");case 5:if(_app_options.AppOptions._hasUserOptions()){globalThis.ngxConsole.warn("_initializeOptions: The Preferences may override manually set AppOptions; "+'please use the "disablePreferences"-option in order to prevent that.');}_context2.prev=6;_context2.t0=_app_options.AppOptions;_context2.next=10;return _this2.preferences.getAll();case 10:_context2.t1=_context2.sent;_context2.t0.setAll.call(_context2.t0,_context2.t1);_context2.next=17;break;case 14:_context2.prev=14;_context2.t2=_context2["catch"](6);globalThis.ngxConsole.error("_initializeOptions: \"".concat(_context2.t2===null||_context2.t2===void 0?void 0:_context2.t2.message,"\"."));case 17:if(!_app_options.AppOptions.get("pdfBugEnabled")){_context2.next=20;break;}_context2.next=20;return _this2._parseHashParams();case 20:case"end":return _context2.stop();}},_callee2,null,[[6,14]]);}))();},_parseHashParams:function _parseHashParams(){var _this3=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var hash,_this3$appConfig,mainContainer,viewerContainer,params,enabled;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:hash=document.location.hash.substring(1);if(hash){_context3.next=3;break;}return _context3.abrupt("return");case 3:_this3$appConfig=_this3.appConfig,mainContainer=_this3$appConfig.mainContainer,viewerContainer=_this3$appConfig.viewerContainer,params=(0,_ui_utils.parseQueryString)(hash);if(!(params.get("disableworker")==="true")){_context3.next=13;break;}_context3.prev=5;_context3.next=8;return loadFakeWorker();case 8:_context3.next=13;break;case 10:_context3.prev=10;_context3.t0=_context3["catch"](5);console.error("_parseHashParams: \"".concat(_context3.t0.message,"\"."));case 13:if(params.has("disablerange")){_app_options.AppOptions.set("disableRange",params.get("disablerange")==="true");}if(params.has("disablestream")){_app_options.AppOptions.set("disableStream",params.get("disablestream")==="true");}if(params.has("disableautofetch")){_app_options.AppOptions.set("disableAutoFetch",params.get("disableautofetch")==="true");}if(params.has("disablefontface")){_app_options.AppOptions.set("disableFontFace",params.get("disablefontface")==="true");}if(params.has("disablehistory")){_app_options.AppOptions.set("disableHistory",params.get("disablehistory")==="true");}if(params.has("verbosity")){_app_options.AppOptions.set("verbosity",params.get("verbosity")|0);}if(!params.has("textlayer")){_context3.next=36;break;}_context3.t1=params.get("textlayer");_context3.next=_context3.t1==="off"?23:_context3.t1==="visible"?25:_context3.t1==="shadow"?25:_context3.t1==="hover"?25:36;break;case 23:_app_options.AppOptions.set("textLayerMode",_ui_utils.TextLayerMode.DISABLE);return _context3.abrupt("break",36);case 25:viewerContainer.classList.add("textLayer-".concat(params.get("textlayer")));_context3.prev=26;_context3.next=29;return loadPDFBug(_this3);case 29:_this3._PDFBug.loadCSS();_context3.next=35;break;case 32:_context3.prev=32;_context3.t2=_context3["catch"](26);console.error("_parseHashParams: \"".concat(_context3.t2.message,"\"."));case 35:return _context3.abrupt("break",36);case 36:if(!params.has("pdfbug")){_context3.next=49;break;}_app_options.AppOptions.set("pdfBug",true);_app_options.AppOptions.set("fontExtraProperties",true);enabled=params.get("pdfbug").split(",");_context3.prev=40;_context3.next=43;return loadPDFBug(_this3);case 43:_this3._PDFBug.init(mainContainer,enabled);_context3.next=49;break;case 46:_context3.prev=46;_context3.t3=_context3["catch"](40);console.error("_parseHashParams: \"".concat(_context3.t3.message,"\"."));case 49:if(params.has("locale")){_app_options.AppOptions.set("locale",params.get("locale"));}case 50:case"end":return _context3.stop();}},_callee3,null,[[5,10],[26,32],[40,46]]);}))();},_initializeL10n:function _initializeL10n(){var _this4=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var dir;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_this4.l10n=_this4.externalServices.createL10n({locale:_app_options.AppOptions.get("locale")});_context4.next=3;return _this4.l10n.getDirection();case 3:dir=_context4.sent;document.getElementsByTagName("html")[0].dir=dir;case 5:case"end":return _context4.stop();}},_callee4);}))();},_forceCssTheme:function _forceCssTheme(){var cssTheme=_app_options.AppOptions.get("viewerCssTheme");if(cssTheme===ViewerCssTheme.AUTOMATIC||!Object.values(ViewerCssTheme).includes(cssTheme)){return;}try{var styleSheet=document.styleSheets[0];var cssRules=(styleSheet===null||styleSheet===void 0?void 0:styleSheet.cssRules)||[];for(var i=0,ii=cssRules.length;i<ii;i++){var _rule$media;var rule=cssRules[i];if(rule instanceof CSSMediaRule&&((_rule$media=rule.media)===null||_rule$media===void 0?void 0:_rule$media[0])==="(prefers-color-scheme: dark)"){if(cssTheme===ViewerCssTheme.LIGHT){styleSheet.deleteRule(i);return;}var darkRules=/^@media \(prefers-color-scheme: dark\) {\n\s*([\w\s-.,:;/\\{}()]+)\n}$/.exec(rule.cssText);if(darkRules!==null&&darkRules!==void 0&&darkRules[1]){styleSheet.deleteRule(i);styleSheet.insertRule(darkRules[1],i);}return;}}}catch(reason){globalThis.ngxConsole.error("_forceCssTheme: \"".concat(reason===null||reason===void 0?void 0:reason.message,"\"."));}},_initializeViewerComponents:function _initializeViewerComponents(){var _this5=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _appConfig$sidebar,_appConfig$secondaryT,_appConfig$toolbar2,_appConfig$secondaryT2,_appConfig$sidebar2,_appConfig$sidebar3,_appConfig$sidebar4;var appConfig,externalServices,l10n,eventBus,pdfRenderingQueue,pdfLinkService,downloadManager,findController,pdfScriptingManager,container,viewer,annotationEditorMode,isOffscreenCanvasSupported,pageColors,pdfViewer,_appConfig$toolbar,_i,_arr,_document$getElementB,id,prompt;return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:appConfig=_this5.appConfig,externalServices=_this5.externalServices,l10n=_this5.l10n;eventBus=externalServices.isInAutomation?new _event_utils.AutomationEventBus():new _event_utils.EventBus();_this5.eventBus=eventBus;_this5.overlayManager=new _overlay_manager.OverlayManager();pdfRenderingQueue=new _pdf_rendering_queue.PDFRenderingQueue();pdfRenderingQueue.onIdle=_this5._cleanup.bind(_this5);_this5.pdfRenderingQueue=pdfRenderingQueue;pdfLinkService=new _pdf_link_service.PDFLinkService({eventBus:eventBus,externalLinkTarget:_app_options.AppOptions.get("externalLinkTarget"),externalLinkRel:_app_options.AppOptions.get("externalLinkRel"),ignoreDestinationZoom:_app_options.AppOptions.get("ignoreDestinationZoom")});_this5.pdfLinkService=pdfLinkService;downloadManager=externalServices.createDownloadManager();_this5.downloadManager=downloadManager;findController=new _pdf_find_controller.PDFFindController({linkService:pdfLinkService,eventBus:eventBus,pageViewMode:_app_options.AppOptions.get("pageViewMode"),updateMatchesCountOnProgress:true});_this5.findController=findController;pdfScriptingManager=new _pdf_scripting_manager.PDFScriptingManager({eventBus:eventBus,sandboxBundleSrc:_app_options.AppOptions.get("sandboxBundleSrc"),externalServices:externalServices,docProperties:_this5._scriptingDocProperties.bind(_this5)});_this5.pdfScriptingManager=pdfScriptingManager;container=appConfig.mainContainer,viewer=appConfig.viewerContainer;annotationEditorMode=_app_options.AppOptions.get("annotationEditorMode");isOffscreenCanvasSupported=_app_options.AppOptions.get("isOffscreenCanvasSupported")&&_pdfjsLib.FeatureTest.isOffscreenCanvasSupported;pageColors=_app_options.AppOptions.get("forcePageColors")||window.matchMedia("(forced-colors: active)").matches?{background:_app_options.AppOptions.get("pageColorsBackground"),foreground:_app_options.AppOptions.get("pageColorsForeground")}:null;pdfViewer=new _pdf_viewer.PDFViewer({container:container,viewer:viewer,eventBus:eventBus,renderingQueue:pdfRenderingQueue,linkService:pdfLinkService,downloadManager:downloadManager,findController:findController,scriptingManager:_app_options.AppOptions.get("enableScripting")&&pdfScriptingManager,l10n:l10n,textLayerMode:_app_options.AppOptions.get("textLayerMode"),annotationMode:_app_options.AppOptions.get("annotationMode"),annotationEditorMode:annotationEditorMode,imageResourcesPath:_app_options.AppOptions.get("imageResourcesPath"),removePageBorders:_app_options.AppOptions.get("removePageBorders"),enablePrintAutoRotate:_app_options.AppOptions.get("enablePrintAutoRotate"),isOffscreenCanvasSupported:isOffscreenCanvasSupported,maxCanvasPixels:_app_options.AppOptions.get("maxCanvasPixels"),pageViewMode:_app_options.AppOptions.get("pageViewMode"),enablePermissions:_app_options.AppOptions.get("enablePermissions"),pageColors:pageColors});_this5.pdfViewer=pdfViewer;pdfRenderingQueue.setViewer(pdfViewer);pdfLinkService.setViewer(pdfViewer);pdfScriptingManager.setViewer(pdfViewer);if((_appConfig$sidebar=appConfig.sidebar)!==null&&_appConfig$sidebar!==void 0&&_appConfig$sidebar.thumbnailView){_this5.pdfThumbnailViewer=new _webPdf_thumbnail_viewer.PDFThumbnailViewer({container:appConfig.sidebar.thumbnailView,eventBus:eventBus,renderingQueue:pdfRenderingQueue,linkService:pdfLinkService,l10n:l10n,pageColors:pageColors});pdfRenderingQueue.setThumbnailViewer(_this5.pdfThumbnailViewer);}if(!_this5.isViewerEmbedded&&!_app_options.AppOptions.get("disableHistory")){_this5.pdfHistory=new _pdf_history.PDFHistory({linkService:pdfLinkService,eventBus:eventBus});pdfLinkService.setHistory(_this5.pdfHistory);}if(!_this5.supportsIntegratedFind&&appConfig.findBar){_this5.findBar=new _webPdf_find_bar.PDFFindBar(appConfig.findBar,eventBus,l10n);}if(appConfig.annotationEditorParams){if(annotationEditorMode!==_pdfjsLib.AnnotationEditorType.DISABLE){if(_app_options.AppOptions.get("enableStampEditor")&&isOffscreenCanvasSupported){(_appConfig$toolbar=appConfig.toolbar)===null||_appConfig$toolbar===void 0||(_appConfig$toolbar=_appConfig$toolbar.editorStampButton)===null||_appConfig$toolbar===void 0?void 0:_appConfig$toolbar.classList.remove("hidden");}_this5.annotationEditorParams=new _webAnnotation_editor_params.AnnotationEditorParams(appConfig.annotationEditorParams,eventBus);}else{for(_i=0,_arr=["editorModeButtons","editorModeSeparator"];_i<_arr.length;_i++){id=_arr[_i];(_document$getElementB=document.getElementById(id))===null||_document$getElementB===void 0?void 0:_document$getElementB.classList.add("hidden");}}}if(appConfig.documentProperties){_this5.pdfDocumentProperties=new _webPdf_document_properties.PDFDocumentProperties(appConfig.documentProperties,_this5.overlayManager,eventBus,l10n,function(){return _this5._docFilename;});}if((_appConfig$secondaryT=appConfig.secondaryToolbar)!==null&&_appConfig$secondaryT!==void 0&&_appConfig$secondaryT.cursorHandToolButton){_this5.pdfCursorTools=new _webPdf_cursor_tools.PDFCursorTools({container:container,eventBus:eventBus,cursorToolOnLoad:_app_options.AppOptions.get("cursorToolOnLoad")});}if(appConfig.toolbar){_this5.toolbar=new _webToolbar.Toolbar(appConfig.toolbar,eventBus,l10n);}if(appConfig.secondaryToolbar){_this5.secondaryToolbar=new _webSecondary_toolbar.SecondaryToolbar(appConfig.secondaryToolbar,eventBus,externalServices);}if(_this5.supportsFullscreen&&((_appConfig$toolbar2=appConfig.toolbar)!==null&&_appConfig$toolbar2!==void 0&&_appConfig$toolbar2.presentationModeButton||(_appConfig$secondaryT2=appConfig.secondaryToolbar)!==null&&_appConfig$secondaryT2!==void 0&&_appConfig$secondaryT2.presentationModeButton)){_this5.pdfPresentationMode=new _webPdf_presentation_mode.PDFPresentationMode({container:container,pdfViewer:pdfViewer,eventBus:eventBus});}prompt=_app_options.AppOptions.get("passwordPrompt");if(!prompt){if(appConfig.passwordOverlay){prompt=new _password_prompt.PasswordPrompt(appConfig.passwordOverlay,_this5.overlayManager,l10n,_this5.isViewerEmbedded);}}_this5.passwordPrompt=prompt;if((_appConfig$sidebar2=appConfig.sidebar)!==null&&_appConfig$sidebar2!==void 0&&_appConfig$sidebar2.outlineView){_this5.pdfOutlineViewer=new _webPdf_outline_viewer.PDFOutlineViewer({container:appConfig.sidebar.outlineView,eventBus:eventBus,linkService:pdfLinkService,downloadManager:downloadManager});}if((_appConfig$sidebar3=appConfig.sidebar)!==null&&_appConfig$sidebar3!==void 0&&_appConfig$sidebar3.attachmentsView){_this5.pdfAttachmentViewer=new _webPdf_attachment_viewer.PDFAttachmentViewer({container:appConfig.sidebar.attachmentsView,eventBus:eventBus,downloadManager:downloadManager});}if((_appConfig$sidebar4=appConfig.sidebar)!==null&&_appConfig$sidebar4!==void 0&&_appConfig$sidebar4.layersView){_this5.pdfLayerViewer=new _webPdf_layer_viewer.PDFLayerViewer({container:appConfig.sidebar.layersView,eventBus:eventBus,l10n:l10n});}if(appConfig.sidebar){_this5.pdfSidebar=new _webPdf_sidebar.PDFSidebar({elements:appConfig.sidebar,eventBus:eventBus,l10n:l10n});_this5.pdfSidebar.onToggled=_this5.forceRendering.bind(_this5);_this5.pdfSidebar.onUpdateThumbnails=function(){var _iterator=_createForOfIteratorHelper(pdfViewer.getCachedPageViews()),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var pageView=_step.value;if(pageView.renderingState===_ui_utils.RenderingStates.FINISHED){var _this5$pdfThumbnailVi;(_this5$pdfThumbnailVi=_this5.pdfThumbnailViewer.getThumbnail(pageView.id-1))===null||_this5$pdfThumbnailVi===void 0?void 0:_this5$pdfThumbnailVi.setImage(pageView);}}}catch(err){_iterator.e(err);}finally{_iterator.f();}_this5.pdfThumbnailViewer.scrollThumbnailIntoView(pdfViewer.currentPageNumber);};}case 40:case"end":return _context5.stop();}},_callee5);}))();},run:function run(config){var _this6=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _params$get;var appConfig,eventBus,file,queryString,params,fileInput,_appConfig$toolbar3,_appConfig$secondaryT3,_appConfig$secondaryT4,_appConfig$toolbar4;return _regeneratorRuntime().wrap(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return _this6.initialize(config);case 2:appConfig=_this6.appConfig,eventBus=_this6.eventBus;queryString=document.location.search.substring(1);params=(0,_ui_utils.parseQueryString)(queryString);file=(_params$get=params.get("file"))!==null&&_params$get!==void 0?_params$get:_app_options.AppOptions.get("defaultUrl");validateFileURL(file);fileInput=appConfig.openFileInput;fileInput.value=null;fileInput.addEventListener("change",function(evt){var files=evt.target.files;if(!files||files.length===0){return;}eventBus.dispatch("fileinputchange",{source:this,fileInput:evt.target});});appConfig.mainContainer.addEventListener("dragover",function(evt){if(_app_options.AppOptions.get("enableDragAndDrop")){evt.preventDefault();evt.dataTransfer.dropEffect=evt.dataTransfer.effectAllowed==="copy"?"copy":"move";}});appConfig.mainContainer.addEventListener("drop",function(evt){evt.preventDefault();var files=evt.dataTransfer.files;if(!files||files.length===0){return;}eventBus.dispatch("fileinputchange",{source:this,fileInput:evt.dataTransfer,dropEvent:evt});});if(!_this6.supportsDocumentFonts){_app_options.AppOptions.set("disableFontFace",true);_this6.l10n.get("web_fonts_disabled").then(function(msg){console.warn(msg);});}if(!_this6.supportsPrinting){(_appConfig$toolbar3=appConfig.toolbar)===null||_appConfig$toolbar3===void 0||(_appConfig$toolbar3=_appConfig$toolbar3.print)===null||_appConfig$toolbar3===void 0?void 0:_appConfig$toolbar3.classList.add("hidden");(_appConfig$secondaryT3=appConfig.secondaryToolbar)===null||_appConfig$secondaryT3===void 0?void 0:_appConfig$secondaryT3.printButton.classList.add("hidden");}if(!_this6.supportsFullscreen){appConfig.toolbar.presentationModeButton.classList.add("hidden");(_appConfig$secondaryT4=appConfig.secondaryToolbar)===null||_appConfig$secondaryT4===void 0?void 0:_appConfig$secondaryT4.presentationModeButton.classList.add("hidden");}if(_this6.supportsIntegratedFind){(_appConfig$toolbar4=appConfig.toolbar)===null||_appConfig$toolbar4===void 0||(_appConfig$toolbar4=_appConfig$toolbar4.viewFind)===null||_appConfig$toolbar4===void 0?void 0:_appConfig$toolbar4.classList.add("hidden");}appConfig.mainContainer.addEventListener("transitionend",function(evt){if(evt.target===this){eventBus.dispatch("resize",{source:this});}},true);try{if(file){_this6.open({url:file});}else{_this6._hideViewBookmark();}}catch(reason){l10n.get("loading_error").then(function(msg){_this6._documentError(msg,reason);if(PDFViewerApplication.onError){PDFViewerApplication.onError(reason);}});}case 18:case"end":return _context6.stop();}},_callee6);}))();},get initialized(){return this._initializedCapability.settled;},get initializedPromise(){return this._initializedCapability.promise;},zoomIn:function zoomIn(steps,scaleFactor){if(this.pdfViewer.isInPresentationMode){return;}this.pdfViewer.increaseScale({drawingDelay:_app_options.AppOptions.get("defaultZoomDelay"),steps:steps,scaleFactor:scaleFactor});},zoomOut:function zoomOut(steps,scaleFactor){if(this.pdfViewer.isInPresentationMode){return;}this.pdfViewer.decreaseScale({drawingDelay:_app_options.AppOptions.get("defaultZoomDelay"),steps:steps,scaleFactor:scaleFactor});},zoomReset:function zoomReset(){if(this.pdfViewer.isInPresentationMode){return;}this.pdfViewer.currentScaleValue=_ui_utils.DEFAULT_SCALE_VALUE;},get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0;},get page(){return this.pdfViewer.currentPageNumber;},set page(val){this.pdfViewer.currentPageNumber=val;},get supportsPrinting(){return PDFPrintServiceFactory.instance.supportsPrinting;},get supportsFullscreen(){return(0,_pdfjsLib.shadow)(this,"supportsFullscreen",document.fullscreenEnabled);},get supportsPinchToZoom(){return this.externalServices.supportsPinchToZoom;},get supportsIntegratedFind(){return this.externalServices.supportsIntegratedFind;},get supportsDocumentFonts(){return this.externalServices.supportsDocumentFonts;},initializeLoadingBar:function initializeLoadingBar(){var barElement=document.getElementById("loadingBar");var bar=barElement?new _ui_utils.ProgressBar(barElement):null;bar===null||bar===void 0?void 0:bar.hide();return(0,_pdfjsLib.shadow)(this,"loadingBar",bar);},get supportedMouseWheelZoomModifierKeys(){return this.externalServices.supportedMouseWheelZoomModifierKeys;},initPassiveLoading:function initPassiveLoading(file){throw new Error("Not implemented: initPassiveLoading");},setTitleUsingUrl:function setTitleUsingUrl(){var url=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var downloadUrl=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;},setTitle:function setTitle(){var title=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._title;this._title=title;if(this.isViewerEmbedded){return;}var editorIndicator=this._hasAnnotationEditors&&!this.pdfRenderingQueue.printing;document.title="".concat(editorIndicator?"* ":"").concat(title);},get _docFilename(){return this._contentDispositionFilename||(0,_pdfjsLib.getPdfFilenameFromUrl)(this.url);},_hideViewBookmark:function _hideViewBookmark(){if(!this.appConfig){return;}var secondaryToolbar=this.appConfig.secondaryToolbar;secondaryToolbar===null||secondaryToolbar===void 0?void 0:secondaryToolbar.viewBookmarkButton.classList.add("hidden");if(secondaryToolbar!==null&&secondaryToolbar!==void 0&&secondaryToolbar.presentationModeButton.classList.contains("hidden")){var _document$getElementB2;(_document$getElementB2=document.getElementById("viewBookmarkSeparator"))===null||_document$getElementB2===void 0?void 0:_document$getElementB2.classList.add("hidden");}},close:function close(){var _this7=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _this7$pdfDocument,_this7$pdfSidebar,_this7$pdfOutlineView,_this7$pdfAttachmentV,_this7$pdfLayerViewer,_this7$pdfHistory,_this7$findBar,_this7$toolbar,_this7$secondaryToolb,_this7$_PDFBug;var promises,_this7$pdfThumbnailVi,_this7$pdfDocumentPro;return _regeneratorRuntime().wrap(function _callee7$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_this7._unblockDocumentLoadEvent();_this7._hideViewBookmark();if(_this7.pdfLoadingTask){_context7.next=4;break;}return _context7.abrupt("return");case 4:if(!(((_this7$pdfDocument=_this7.pdfDocument)===null||_this7$pdfDocument===void 0?void 0:_this7$pdfDocument.annotationStorage.size)>0&&_this7._annotationStorageModified)){_context7.next=12;break;}_context7.prev=5;_context7.next=8;return _this7.save();case 8:_context7.next=12;break;case 10:_context7.prev=10;_context7.t0=_context7["catch"](5);case 12:promises=[];promises.push(_this7.pdfLoadingTask.destroy());_this7.pdfLoadingTask=null;if(_this7.pdfDocument){_this7.pdfDocument=null;(_this7$pdfThumbnailVi=_this7.pdfThumbnailViewer)===null||_this7$pdfThumbnailVi===void 0?void 0:_this7$pdfThumbnailVi.setDocument(null);_this7.pdfViewer.setDocument(null);_this7.pdfLinkService.setDocument(null);(_this7$pdfDocumentPro=_this7.pdfDocumentProperties)===null||_this7$pdfDocumentPro===void 0?void 0:_this7$pdfDocumentPro.setDocument(null);}_this7.pdfLinkService.externalLinkEnabled=true;_this7.store=null;_this7.isInitialViewSet=false;_this7.downloadComplete=false;_this7.url="";_this7.baseUrl="";_this7._downloadUrl="";_this7.documentInfo=null;_this7.metadata=null;_this7._contentDispositionFilename=null;_this7._contentLength=null;_this7._saveInProgress=false;_this7._hasAnnotationEditors=false;promises.push(_this7.pdfScriptingManager.destroyPromise,_this7.passwordPrompt.close());_this7.setTitle();(_this7$pdfSidebar=_this7.pdfSidebar)===null||_this7$pdfSidebar===void 0?void 0:_this7$pdfSidebar.reset();(_this7$pdfOutlineView=_this7.pdfOutlineViewer)===null||_this7$pdfOutlineView===void 0?void 0:_this7$pdfOutlineView.reset();(_this7$pdfAttachmentV=_this7.pdfAttachmentViewer)===null||_this7$pdfAttachmentV===void 0?void 0:_this7$pdfAttachmentV.reset();(_this7$pdfLayerViewer=_this7.pdfLayerViewer)===null||_this7$pdfLayerViewer===void 0?void 0:_this7$pdfLayerViewer.reset();(_this7$pdfHistory=_this7.pdfHistory)===null||_this7$pdfHistory===void 0?void 0:_this7$pdfHistory.reset();(_this7$findBar=_this7.findBar)===null||_this7$findBar===void 0?void 0:_this7$findBar.reset();(_this7$toolbar=_this7.toolbar)===null||_this7$toolbar===void 0?void 0:_this7$toolbar.reset();(_this7$secondaryToolb=_this7.secondaryToolbar)===null||_this7$secondaryToolb===void 0?void 0:_this7$secondaryToolb.reset();(_this7$_PDFBug=_this7._PDFBug)===null||_this7$_PDFBug===void 0?void 0:_this7$_PDFBug.cleanup();_context7.next=42;return Promise.all(promises);case 42:case"end":return _context7.stop();}},_callee7,null,[[5,10]]);}))();},open:function open(args){var _this8=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var _this8$pdfViewer;return _regeneratorRuntime().wrap(function _callee9$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:window.adjacentPagesLoader=undefined;(_this8$pdfViewer=_this8.pdfViewer)===null||_this8$pdfViewer===void 0?void 0:_this8$pdfViewer.destroyBookMode();window.ngxZone.runOutsideAngular(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _args8;var deprecatedArgs,workerParams,apiParams,params,loadingTask;return _regeneratorRuntime().wrap(function _callee8$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:deprecatedArgs=false;if(typeof args==="string"){args={url:args};deprecatedArgs=true;}else if((_args8=args)!==null&&_args8!==void 0&&_args8.byteLength){args={data:args};deprecatedArgs=true;}if(deprecatedArgs){console.error("The `PDFViewerApplication.open` signature was updated, please use an object instead.");}if(!_this8.pdfLoadingTask){_context8.next=6;break;}_context8.next=6;return _this8.close();case 6:workerParams=_app_options.AppOptions.getAll(_app_options.OptionKind.WORKER);Object.assign(_pdfjsLib.GlobalWorkerOptions,workerParams);if(args.url){_this8.setTitleUsingUrl(args.originalUrl||args.url,args.url);}apiParams=_app_options.AppOptions.getAll(_app_options.OptionKind.API);params=_objectSpread(_objectSpread({canvasMaxAreaInBytes:_this8.externalServices.canvasMaxAreaInBytes},apiParams),args);loadingTask=(0,_pdfjsLib.getDocument)(params);_this8.pdfLoadingTask=loadingTask;loadingTask.onPassword=function(updateCallback,reason){if(_this8.isViewerEmbedded){_this8._unblockDocumentLoadEvent();}_this8.pdfLinkService.externalLinkEnabled=false;_this8.passwordPrompt.setUpdateCallback(updateCallback,reason);_this8.passwordPrompt.open();};loadingTask.onProgress=function(_ref2){var _this8$eventBus;var loaded=_ref2.loaded,total=_ref2.total;_this8.progress(loaded/total);(_this8$eventBus=_this8.eventBus)===null||_this8$eventBus===void 0?void 0:_this8$eventBus.dispatch("progress",{source:_this8,type:"load",total:total,loaded:loaded,percent:100*loaded/total});};return _context8.abrupt("return",loadingTask.promise.then(function(pdfDocument){_this8.load(pdfDocument);},function(reason){if(loadingTask!==_this8.pdfLoadingTask){return undefined;}var key="loading_error";if(reason instanceof _pdfjsLib.InvalidPDFException){key="invalid_file_error";}else if(reason instanceof _pdfjsLib.MissingPDFException){key="missing_file_error";}else if(reason instanceof _pdfjsLib.UnexpectedResponseException){key="unexpected_response_error";}if(PDFViewerApplication.onError){PDFViewerApplication.onError(reason);}return _this8.l10n.get(key).then(function(msg){_this8._documentError(msg,{message:reason===null||reason===void 0?void 0:reason.message});throw reason;});}));case 16:case"end":return _context8.stop();}},_callee8);})));case 3:case"end":return _context9.stop();}},_callee9);}))();},_ensureDownloadComplete:function _ensureDownloadComplete(){if(this.pdfDocument&&this.downloadComplete){return;}throw new Error("PDF document not downloaded.");},download:function download(){var _arguments=arguments,_this9=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var options,url,filename,data,blob;return _regeneratorRuntime().wrap(function _callee10$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:options=_arguments.length>0&&_arguments[0]!==undefined?_arguments[0]:{};url=_this9._downloadUrl,filename=_this9._docFilename;_context10.prev=2;_this9._ensureDownloadComplete();_context10.next=6;return _this9.pdfDocument.getData();case 6:data=_context10.sent;blob=new Blob([data],{type:"application/pdf"});_context10.next=10;return _this9.downloadManager.download(blob,url,filename,options);case 10:_context10.next=16;break;case 12:_context10.prev=12;_context10.t0=_context10["catch"](2);_context10.next=16;return _this9.downloadManager.downloadUrl(url,filename,options);case 16:case"end":return _context10.stop();}},_callee10,null,[[2,12]]);}))();},save:function save(){var _arguments2=arguments,_this10=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var options,url,filename,data,blob;return _regeneratorRuntime().wrap(function _callee11$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:options=_arguments2.length>0&&_arguments2[0]!==undefined?_arguments2[0]:{};if(!_this10._saveInProgress){_context11.next=3;break;}return _context11.abrupt("return");case 3:_this10._saveInProgress=true;_context11.next=6;return _this10.pdfScriptingManager.dispatchWillSave();case 6:url=_this10._downloadUrl,filename=_this10._docFilename;_context11.prev=7;_this10._ensureDownloadComplete();_context11.next=11;return _this10.pdfDocument.saveDocument();case 11:data=_context11.sent;blob=new Blob([data],{type:"application/pdf"});_context11.next=15;return _this10.downloadManager.download(blob,url,filename,options);case 15:_context11.next=22;break;case 17:_context11.prev=17;_context11.t0=_context11["catch"](7);globalThis.ngxConsole.error("Error when saving the document: ".concat(_context11.t0.message));_context11.next=22;return _this10.download(options);case 22:_context11.prev=22;_context11.next=25;return _this10.pdfScriptingManager.dispatchDidSave();case 25:_this10._saveInProgress=false;return _context11.finish(22);case 27:if(_this10._hasAnnotationEditors){_this10.externalServices.reportTelemetry({type:"editing",data:{type:"save"}});}case 28:case"end":return _context11.stop();}},_callee11,null,[[7,17,22,27]]);}))();},downloadOrSave:function downloadOrSave(){var _this$pdfDocument;var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(((_this$pdfDocument=this.pdfDocument)===null||_this$pdfDocument===void 0?void 0:_this$pdfDocument.annotationStorage.size)>0){this.save(options);}else{this.download(options);}},_exportWithAnnotations:function _exportWithAnnotations(){var _this11=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var data,blob;return _regeneratorRuntime().wrap(function _callee12$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:if(!_this11._saveInProgress){_context12.next=2;break;}throw new Error("Already downloading");case 2:_this11._saveInProgress=true;_context12.next=5;return _this11.pdfScriptingManager.dispatchWillSave();case 5:_context12.prev=5;_this11._ensureDownloadComplete();_context12.next=9;return _this11.pdfDocument.saveDocument();case 9:data=_context12.sent;blob=new Blob([data],{type:"application/pdf"});return _context12.abrupt("return",blob);case 14:_context12.prev=14;_context12.t0=_context12["catch"](5);throw new Error("Error when saving the document: ".concat(_context12.t0.message));case 17:_context12.prev=17;_context12.next=20;return _this11.pdfScriptingManager.dispatchDidSave();case 20:_this11._saveInProgress=false;return _context12.finish(17);case 22:case"end":return _context12.stop();}},_callee12,null,[[5,14,17,22]]);}))();},_exportWithoutAnnotations:function _exportWithoutAnnotations(){var _this12=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var data,blob;return _regeneratorRuntime().wrap(function _callee13$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.prev=0;_this12._ensureDownloadComplete();_context13.next=4;return _this12.pdfDocument.getData();case 4:data=_context13.sent;blob=new Blob([data],{type:"application/pdf"});return _context13.abrupt("return",blob);case 9:_context13.prev=9;_context13.t0=_context13["catch"](0);throw new Error("Error when saving the document: ".concat(_context13.t0.message));case 12:case"end":return _context13.stop();}},_callee13,null,[[0,9]]);}))();},export:function _export(){var _this13=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _this13$pdfDocument;return _regeneratorRuntime().wrap(function _callee14$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:if(!(((_this13$pdfDocument=_this13.pdfDocument)===null||_this13$pdfDocument===void 0?void 0:_this13$pdfDocument.annotationStorage.size)>0)){_context14.next=2;break;}return _context14.abrupt("return",_this13._exportWithAnnotations());case 2:return _context14.abrupt("return",_this13._exportWithoutAnnotations());case 3:case"end":return _context14.stop();}},_callee14);}))();},openInExternalApp:function openInExternalApp(){this.downloadOrSave({openInExternalApp:true});},_documentError:function _documentError(message){var _moreInfo$message;var moreInfo=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this._unblockDocumentLoadEvent();this._otherError(message,moreInfo);this.eventBus.dispatch("documenterror",{source:this,message:message,reason:(_moreInfo$message=moreInfo===null||moreInfo===void 0?void 0:moreInfo.message)!==null&&_moreInfo$message!==void 0?_moreInfo$message:null});},_otherError:function _otherError(message){var moreInfo=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var moreInfoText=["PDF.js v".concat(_pdfjsLib.version||"?"," (build: ").concat(_pdfjsLib.build||"?",")")];if(moreInfo){moreInfoText.push("Message: ".concat(moreInfo.message));if(moreInfo.stack){moreInfoText.push("Stack: ".concat(moreInfo.stack));}else{if(moreInfo.filename){moreInfoText.push("File: ".concat(moreInfo.filename));}if(moreInfo.lineNumber){moreInfoText.push("Line: ".concat(moreInfo.lineNumber));}}}console.error("".concat(message,"\n\n").concat(moreInfoText.join("\n")));},progress:function progress(level){var _this$pdfDocument$loa,_this$pdfDocument2;if(!this.loadingBar||this.downloadComplete){return;}var percent=Math.round(level*100);if(percent<=this.loadingBar.percent){return;}this.loadingBar.percent=percent;if((_this$pdfDocument$loa=(_this$pdfDocument2=this.pdfDocument)===null||_this$pdfDocument2===void 0?void 0:_this$pdfDocument2.loadingParams.disableAutoFetch)!==null&&_this$pdfDocument$loa!==void 0?_this$pdfDocument$loa:_app_options.AppOptions.get("disableAutoFetch")){this.loadingBar.setDisableAutoFetch();}},load:function load(pdfDocument){var _this14=this,_this$toolbar,_this$secondaryToolba,_this$pdfDocumentProp,_this$pdfThumbnailVie;this.pdfDocument=pdfDocument;pdfDocument.getDownloadInfo().then(function(_ref3){var _this14$loadingBar;var length=_ref3.length;_this14._contentLength=length;_this14.downloadComplete=true;(_this14$loadingBar=_this14.loadingBar)===null||_this14$loadingBar===void 0?void 0:_this14$loadingBar.hide();firstPagePromise.then(function(){var _this14$eventBus;(_this14$eventBus=_this14.eventBus)===null||_this14$eventBus===void 0?void 0:_this14$eventBus.dispatch("documentloaded",{source:_this14});});});var pageLayoutPromise=pdfDocument.getPageLayout().catch(function(){});var pageModePromise=pdfDocument.getPageMode().catch(function(){});var openActionPromise=pdfDocument.getOpenAction().catch(function(){});(_this$toolbar=this.toolbar)===null||_this$toolbar===void 0?void 0:_this$toolbar.setPagesCount(pdfDocument.numPages,false);(_this$secondaryToolba=this.secondaryToolbar)===null||_this$secondaryToolba===void 0?void 0:_this$secondaryToolba.setPagesCount(pdfDocument.numPages);this.pdfLinkService.setDocument(pdfDocument);(_this$pdfDocumentProp=this.pdfDocumentProperties)===null||_this$pdfDocumentProp===void 0?void 0:_this$pdfDocumentProp.setDocument(pdfDocument);var pdfViewer=this.pdfViewer;pdfViewer.setDocument(pdfDocument);var firstPagePromise=pdfViewer.firstPagePromise,onePageRendered=pdfViewer.onePageRendered,pagesPromise=pdfViewer.pagesPromise;(_this$pdfThumbnailVie=this.pdfThumbnailViewer)===null||_this$pdfThumbnailVie===void 0?void 0:_this$pdfThumbnailVie.setDocument(pdfDocument);var storedPromise=(this.store=new _view_history.ViewHistory(pdfDocument.fingerprints[0])).getMultiple({page:null,zoom:_ui_utils.DEFAULT_SCALE_VALUE,scrollLeft:"0",scrollTop:"0",rotation:null,sidebarView:_ui_utils.SidebarView.UNKNOWN,scrollMode:_ui_utils.ScrollMode.UNKNOWN,spreadMode:_ui_utils.SpreadMode.UNKNOWN}).catch(function(){});firstPagePromise.then(function(pdfPage){var _this14$loadingBar2;(_this14$loadingBar2=_this14.loadingBar)===null||_this14$loadingBar2===void 0?void 0:_this14$loadingBar2.setWidth(_this14.appConfig.viewerContainer);_this14._initializeAnnotationStorageCallbacks(pdfDocument);Promise.all([_ui_utils.animationStarted,storedPromise,pageLayoutPromise,pageModePromise,openActionPromise]).then(/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(_ref4){var _ref6,timeStamp,stored,pageLayout,pageMode,openAction,viewOnLoad,initialBookmark,zoom,hash,rotation,sidebarView,scrollMode,spreadMode,modes;return _regeneratorRuntime().wrap(function _callee15$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_ref6=_slicedToArray(_ref4,5),timeStamp=_ref6[0],stored=_ref6[1],pageLayout=_ref6[2],pageMode=_ref6[3],openAction=_ref6[4];viewOnLoad=_app_options.AppOptions.get("viewOnLoad");_this14._initializePdfHistory({fingerprint:pdfDocument.fingerprints[0],viewOnLoad:viewOnLoad,initialDest:openAction===null||openAction===void 0?void 0:openAction.dest});initialBookmark=_this14.initialBookmark;zoom=_app_options.AppOptions.get("defaultZoomValue");hash=zoom?"zoom=".concat(zoom):null;rotation=null;sidebarView=_app_options.AppOptions.get("sidebarViewOnLoad");scrollMode=_app_options.AppOptions.get("scrollModeOnLoad");spreadMode=_app_options.AppOptions.get("spreadModeOnLoad");if(stored!==null&&stored!==void 0&&stored.page&&viewOnLoad!==ViewOnLoad.INITIAL){hash="page=".concat(stored.page,"&zoom=").concat(zoom||stored.zoom,",")+"".concat(stored.scrollLeft,",").concat(stored.scrollTop);rotation=parseInt(stored.rotation,10);if(sidebarView===_ui_utils.SidebarView.UNKNOWN){sidebarView=stored.sidebarView|0;}if(scrollMode===_ui_utils.ScrollMode.UNKNOWN){scrollMode=stored.scrollMode|0;}if(spreadMode===_ui_utils.SpreadMode.UNKNOWN){spreadMode=stored.spreadMode|0;}}if(pageMode&&sidebarView===_ui_utils.SidebarView.UNKNOWN){sidebarView=(0,_ui_utils.apiPageModeToSidebarView)(pageMode);}if(pageLayout&&scrollMode===_ui_utils.ScrollMode.UNKNOWN&&spreadMode===_ui_utils.SpreadMode.UNKNOWN){modes=(0,_ui_utils.apiPageLayoutToViewerModes)(pageLayout);spreadMode=modes.spreadMode;}_this14.setInitialView(hash,{rotation:rotation,sidebarView:sidebarView,scrollMode:scrollMode,spreadMode:spreadMode});_this14.eventBus.dispatch("documentinit",{source:_this14});if(!_this14.isViewerEmbedded){pdfViewer.focus();}_context15.next=18;return Promise.race([pagesPromise,new Promise(function(resolve){setTimeout(resolve,FORCE_PAGES_LOADED_TIMEOUT);})]);case 18:if(!(!initialBookmark&&!hash)){_context15.next=20;break;}return _context15.abrupt("return");case 20:if(!pdfViewer.hasEqualPageSizes){_context15.next=22;break;}return _context15.abrupt("return");case 22:_this14.initialBookmark=initialBookmark;pdfViewer.currentScaleValue=pdfViewer.currentScaleValue;_this14.setInitialView(hash);case 25:case"end":return _context15.stop();}},_callee15);}));return function(_x){return _ref5.apply(this,arguments);};}()).catch(function(){_this14.setInitialView();}).then(function(){pdfViewer.update();});});pagesPromise.then(function(){_this14._unblockDocumentLoadEvent();_this14._initializeAutoPrint(pdfDocument,openActionPromise);},function(reason){if(PDFViewerApplication.onError){PDFViewerApplication.onError(reason);}_this14.l10n.get("loading_error").then(function(msg){_this14._documentError(msg,{message:reason===null||reason===void 0?void 0:reason.message});});});onePageRendered.then(function(data){_this14.externalServices.reportTelemetry({type:"pageInfo",timestamp:data.timestamp});if(_this14.pdfOutlineViewer){pdfDocument.getOutline().then(function(outline){if(pdfDocument!==_this14.pdfDocument){return;}_this14.pdfOutlineViewer.render({outline:outline,pdfDocument:pdfDocument});});}if(_this14.pdfAttachmentViewer){pdfDocument.getAttachments().then(function(attachments){if(pdfDocument!==_this14.pdfDocument){return;}_this14.pdfAttachmentViewer.render({attachments:attachments});});}if(_this14.pdfLayerViewer){pdfViewer.optionalContentConfigPromise.then(function(optionalContentConfig){if(pdfDocument!==_this14.pdfDocument){return;}_this14.pdfLayerViewer.render({optionalContentConfig:optionalContentConfig,pdfDocument:pdfDocument});});}});this._initializePageLabels(pdfDocument);this._initializeMetadata(pdfDocument);},_scriptingDocProperties:function _scriptingDocProperties(pdfDocument){var _this15=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _this15$metadata,_this15$metadata2;return _regeneratorRuntime().wrap(function _callee16$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:if(_this15.documentInfo){_context16.next=5;break;}_context16.next=3;return new Promise(function(resolve){_this15.eventBus._on("metadataloaded",resolve,{once:true});});case 3:if(!(pdfDocument!==_this15.pdfDocument)){_context16.next=5;break;}return _context16.abrupt("return",null);case 5:if(_this15._contentLength){_context16.next=10;break;}_context16.next=8;return new Promise(function(resolve){_this15.eventBus._on("documentloaded",resolve,{once:true});});case 8:if(!(pdfDocument!==_this15.pdfDocument)){_context16.next=10;break;}return _context16.abrupt("return",null);case 10:return _context16.abrupt("return",_objectSpread(_objectSpread({},_this15.documentInfo),{},{baseURL:_this15.baseUrl,filesize:_this15._contentLength,filename:_this15._docFilename,metadata:(_this15$metadata=_this15.metadata)===null||_this15$metadata===void 0?void 0:_this15$metadata.getRaw(),authors:(_this15$metadata2=_this15.metadata)===null||_this15$metadata2===void 0?void 0:_this15$metadata2.get("dc:creator"),numPages:_this15.pagesCount,URL:_this15.url}));case 11:case"end":return _context16.stop();}},_callee16);}))();},_initializeAutoPrint:function _initializeAutoPrint(pdfDocument,openActionPromise){var _this16=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var _yield$Promise$all,_yield$Promise$all2,openAction,jsActions,triggerAutoPrint,name;return _regeneratorRuntime().wrap(function _callee17$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return Promise.all([openActionPromise,_this16.pdfViewer.enableScripting?null:pdfDocument.getJSActions()]);case 2:_yield$Promise$all=_context17.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2);openAction=_yield$Promise$all2[0];jsActions=_yield$Promise$all2[1];if(!(pdfDocument!==_this16.pdfDocument)){_context17.next=8;break;}return _context17.abrupt("return");case 8:triggerAutoPrint=(openAction===null||openAction===void 0?void 0:openAction.action)==="Print";if(!jsActions){_context17.next=23;break;}globalThis.ngxConsole.warn("Warning: JavaScript support is not enabled");_context17.t0=_regeneratorRuntime().keys(jsActions);case 12:if((_context17.t1=_context17.t0()).done){_context17.next=23;break;}name=_context17.t1.value;if(!triggerAutoPrint){_context17.next=16;break;}return _context17.abrupt("break",23);case 16:_context17.t2=name;_context17.next=_context17.t2==="WillClose"?19:_context17.t2==="WillSave"?19:_context17.t2==="DidSave"?19:_context17.t2==="WillPrint"?19:_context17.t2==="DidPrint"?19:20;break;case 19:return _context17.abrupt("continue",12);case 20:triggerAutoPrint=jsActions[name].some(function(js){return _ui_utils.AutoPrintRegExp.test(js);});_context17.next=12;break;case 23:if(triggerAutoPrint){_this16.triggerPrinting();}case 24:case"end":return _context17.stop();}},_callee17);}))();},_initializeMetadata:function _initializeMetadata(pdfDocument){var _this17=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var _this17$_contentDispo,_this17$_contentLengt;var _yield$pdfDocument$ge,info,metadata,contentDispositionFilename,contentLength,options,pdfTitle,metadataTitle;return _regeneratorRuntime().wrap(function _callee18$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return pdfDocument.getMetadata();case 2:_yield$pdfDocument$ge=_context18.sent;info=_yield$pdfDocument$ge.info;metadata=_yield$pdfDocument$ge.metadata;contentDispositionFilename=_yield$pdfDocument$ge.contentDispositionFilename;contentLength=_yield$pdfDocument$ge.contentLength;if(!(pdfDocument!==_this17.pdfDocument)){_context18.next=9;break;}return _context18.abrupt("return");case 9:_this17.documentInfo=info;_this17.metadata=metadata;(_this17$_contentDispo=_this17._contentDispositionFilename)!==null&&_this17$_contentDispo!==void 0?_this17$_contentDispo:_this17._contentDispositionFilename=contentDispositionFilename;(_this17$_contentLengt=_this17._contentLength)!==null&&_this17$_contentLengt!==void 0?_this17$_contentLengt:_this17._contentLength=contentLength;options=window.PDFViewerApplicationOptions;if(!options||options.get("verbosity")>0){globalThis.ngxConsole.log("PDF ".concat(pdfDocument.fingerprints[0]," [").concat(info.PDFFormatVersion," ")+"".concat((info.Producer||"-").trim()," / ").concat((info.Creator||"-").trim(),"] ")+"(PDF.js: ".concat(_pdfjsLib.version||"?"," [").concat(_pdfjsLib.build||"?","])  modified by ngx-extended-pdf-viewer ").concat(_ngxExtendedPdfViewerVersion.ngxExtendedPdfViewerVersion));}pdfTitle=info.Title;metadataTitle=metadata===null||metadata===void 0?void 0:metadata.get("dc:title");if(metadataTitle){if(metadataTitle!=="Untitled"&&!/[\uFFF0-\uFFFF]/g.test(metadataTitle)){pdfTitle=metadataTitle;}}if(pdfTitle){_this17.setTitle("".concat(pdfTitle," - ").concat(_this17._contentDispositionFilename||_this17._title));}else if(_this17._contentDispositionFilename){_this17.setTitle(_this17._contentDispositionFilename);}if(info.IsXFAPresent&&!info.IsAcroFormPresent&&!pdfDocument.isPureXfa){if(pdfDocument.loadingParams.enableXfa){globalThis.ngxConsole.warn("Warning: XFA Foreground documents are not supported");}else{globalThis.ngxConsole.warn("Warning: XFA support is not enabled");}}else if((info.IsAcroFormPresent||info.IsXFAPresent)&&!_this17.pdfViewer.renderForms){console.warn("Warning: Interactive form support is not enabled");}if(info.IsSignaturesPresent){console.warn("Warning: Digital signatures validation is not supported");}_this17.eventBus.dispatch("metadataloaded",{source:_this17});case 22:case"end":return _context18.stop();}},_callee18);}))();},_initializePageLabels:function _initializePageLabels(pdfDocument){var _this18=this;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var labels,numLabels,standardLabels,emptyLabels,i,label,pdfViewer,pdfThumbnailViewer,toolbar;return _regeneratorRuntime().wrap(function _callee19$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return pdfDocument.getPageLabels();case 2:labels=_context19.sent;if(!(pdfDocument!==_this18.pdfDocument)){_context19.next=5;break;}return _context19.abrupt("return");case 5:if(!(!labels||_app_options.AppOptions.get("disablePageLabels"))){_context19.next=7;break;}return _context19.abrupt("return");case 7:numLabels=labels.length;standardLabels=0,emptyLabels=0;i=0;case 10:if(!(i<numLabels)){_context19.next=24;break;}label=labels[i];if(!(label===(i+1).toString())){_context19.next=16;break;}standardLabels++;_context19.next=21;break;case 16:if(!(label==="")){_context19.next=20;break;}emptyLabels++;_context19.next=21;break;case 20:return _context19.abrupt("break",24);case 21:i++;_context19.next=10;break;case 24:if(!(standardLabels>=numLabels||emptyLabels>=numLabels)){_context19.next=26;break;}return _context19.abrupt("return");case 26:pdfViewer=_this18.pdfViewer,pdfThumbnailViewer=_this18.pdfThumbnailViewer,toolbar=_this18.toolbar;pdfViewer.setPageLabels(labels);pdfThumbnailViewer===null||pdfThumbnailViewer===void 0?void 0:pdfThumbnailViewer.setPageLabels(labels);toolbar===null||toolbar===void 0?void 0:toolbar.setPagesCount(numLabels,true);toolbar===null||toolbar===void 0?void 0:toolbar.setPageNumber(pdfViewer.currentPageNumber,pdfViewer.currentPageLabel);case 31:case"end":return _context19.stop();}},_callee19);}))();},_initializePdfHistory:function _initializePdfHistory(_ref7){var fingerprint=_ref7.fingerprint,viewOnLoad=_ref7.viewOnLoad,_ref7$initialDest=_ref7.initialDest,initialDest=_ref7$initialDest===void 0?null:_ref7$initialDest;if(!this.pdfHistory){return;}this.pdfHistory.initialize({fingerprint:fingerprint,resetHistory:viewOnLoad===ViewOnLoad.INITIAL,updateUrl:_app_options.AppOptions.get("historyUpdateUrl")});if(this.pdfHistory.initialBookmark){this.initialBookmark=this.pdfHistory.initialBookmark;this.initialRotation=this.pdfHistory.initialRotation;}if(initialDest&&!this.initialBookmark&&viewOnLoad===ViewOnLoad.UNKNOWN){this.initialBookmark=JSON.stringify(initialDest);this.pdfHistory.push({explicitDest:initialDest,pageNumber:null});}},_initializeAnnotationStorageCallbacks:function _initializeAnnotationStorageCallbacks(pdfDocument){var _this19=this;if(pdfDocument!==this.pdfDocument){return;}var annotationStorage=pdfDocument.annotationStorage;annotationStorage.onSetModified=function(){window.addEventListener("beforeunload",beforeUnload);_this19._annotationStorageModified=true;};annotationStorage.onResetModified=function(){window.removeEventListener("beforeunload",beforeUnload);delete _this19._annotationStorageModified;};annotationStorage.onAnnotationEditor=function(typeStr){_this19._hasAnnotationEditors=!!typeStr;_this19.setTitle();if(typeStr){_this19.externalServices.reportTelemetry({type:"editing",data:{type:typeStr}});}};},setInitialView:function setInitialView(storedHash){var _this20=this,_this$pdfSidebar,_this$toolbar2,_this$secondaryToolba2;var _ref8=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},rotation=_ref8.rotation,sidebarView=_ref8.sidebarView,scrollMode=_ref8.scrollMode,spreadMode=_ref8.spreadMode;var setRotation=function setRotation(angle){if((0,_ui_utils.isValidRotation)(angle)){_this20.pdfViewer.pagesRotation=angle;}};var setViewerModes=function setViewerModes(scroll,spread){if((0,_ui_utils.isValidScrollMode)(scroll)){_this20.pdfViewer.scrollMode=scroll;}if((0,_ui_utils.isValidSpreadMode)(spread)){_this20.pdfViewer.spreadMode=spread;}};this.isInitialViewSet=true;(_this$pdfSidebar=this.pdfSidebar)===null||_this$pdfSidebar===void 0?void 0:_this$pdfSidebar.setInitialView(sidebarView);setViewerModes(scrollMode,spreadMode);if(this.initialBookmark){setRotation(this.initialRotation);delete this.initialRotation;this.pdfLinkService.setHash(this.initialBookmark);this.initialBookmark=null;}else if(storedHash){setRotation(rotation);this.pdfLinkService.setHash(storedHash);}(_this$toolbar2=this.toolbar)===null||_this$toolbar2===void 0?void 0:_this$toolbar2.setPageNumber(this.pdfViewer.currentPageNumber,this.pdfViewer.currentPageLabel);(_this$secondaryToolba2=this.secondaryToolbar)===null||_this$secondaryToolba2===void 0?void 0:_this$secondaryToolba2.setPageNumber(this.pdfViewer.currentPageNumber);if(!this.pdfViewer.currentScaleValue){var defaultZoomOption=PDFViewerApplicationOptions.get('defaultZoomValue');if(defaultZoomOption){this.pdfViewer.currentScaleValue=defaultZoomOption;}}},_cleanup:function _cleanup(){var _this$pdfThumbnailVie2;if(!this.pdfDocument){return;}this.pdfViewer.cleanup();(_this$pdfThumbnailVie2=this.pdfThumbnailViewer)===null||_this$pdfThumbnailVie2===void 0?void 0:_this$pdfThumbnailVie2.cleanup();this.pdfDocument.cleanup();},forceRendering:function forceRendering(){var _this$pdfSidebar2;this.pdfRenderingQueue.printing=!!this.printService;this.pdfRenderingQueue.isThumbnailViewEnabled=((_this$pdfSidebar2=this.pdfSidebar)===null||_this$pdfSidebar2===void 0?void 0:_this$pdfSidebar2.visibleView)===_ui_utils.SidebarView.THUMBS;this.pdfRenderingQueue.renderHighestPriority();},beforePrint:function beforePrint(){var _this21=this;this._printAnnotationStoragePromise=this.pdfScriptingManager.dispatchWillPrint().catch(function(){}).then(function(){var _this21$pdfDocument;return(_this21$pdfDocument=_this21.pdfDocument)===null||_this21$pdfDocument===void 0?void 0:_this21$pdfDocument.annotationStorage.print;});if(this.printService){return;}if(!this.supportsPrinting){this.l10n.get("printing_not_supported").then(function(msg){_this21._otherError(msg);});return;}if(!this.pdfViewer.pageViewsReady){this.l10n.get("printing_not_ready").then(function(msg){window.alert(msg);});return;}var pagesOverview=this.pdfViewer.getPagesOverview();var printContainer=this.appConfig.printContainer;var printResolution=_app_options.AppOptions.get("printResolution");var optionalContentConfigPromise=this.pdfViewer.optionalContentConfigPromise;var printService=PDFPrintServiceFactory.instance.createPrintService(this.pdfDocument,pagesOverview,printContainer,printResolution,optionalContentConfigPromise,this._printAnnotationStoragePromise,this.l10n,this.pdfViewer.eventBus);this.printService=printService;this.forceRendering();this.setTitle();printService.layout();if(this._hasAnnotationEditors){this.externalServices.reportTelemetry({type:"editing",data:{type:"print"}});}},afterPrint:function afterPrint(){var _this22=this;if(this._printAnnotationStoragePromise){this._printAnnotationStoragePromise.then(function(){_this22.pdfScriptingManager.dispatchDidPrint();});this._printAnnotationStoragePromise=null;}if(this.printService){var _this$pdfDocument3;this.printService.destroy();this.printService=null;(_this$pdfDocument3=this.pdfDocument)===null||_this$pdfDocument3===void 0?void 0:_this$pdfDocument3.annotationStorage.resetModified();}this.forceRendering();this.setTitle();},rotatePages:function rotatePages(delta){this.pdfViewer.pagesRotation+=delta;},requestPresentationMode:function requestPresentationMode(){var _this$pdfPresentation;(_this$pdfPresentation=this.pdfPresentationMode)===null||_this$pdfPresentation===void 0?void 0:_this$pdfPresentation.request();},triggerPrinting:function triggerPrinting(){if(!this.supportsPrinting){return;}window.printPDF();},bindEvents:function bindEvents(){var eventBus=this.eventBus,_boundEvents=this._boundEvents;_boundEvents.beforePrint=this.beforePrint.bind(this);_boundEvents.afterPrint=this.afterPrint.bind(this);eventBus._on("resize",webViewerResize);eventBus._on("hashchange",webViewerHashchange);eventBus._on("beforeprint",_boundEvents.beforePrint);eventBus._on("afterprint",_boundEvents.afterPrint);eventBus._on("pagerender",webViewerPageRender);eventBus._on("pagerendered",webViewerPageRendered);eventBus._on("updateviewarea",webViewerUpdateViewarea);eventBus._on("pagechanging",webViewerPageChanging);eventBus._on("scalechanging",webViewerScaleChanging);eventBus._on("rotationchanging",webViewerRotationChanging);eventBus._on("sidebarviewchanged",webViewerSidebarViewChanged);eventBus._on("pagemode",webViewerPageMode);eventBus._on("namedaction",webViewerNamedAction);eventBus._on("presentationmodechanged",webViewerPresentationModeChanged);eventBus._on("presentationmode",webViewerPresentationMode);eventBus._on("switchannotationeditormode",webViewerSwitchAnnotationEditorMode);eventBus._on("switchannotationeditorparams",webViewerSwitchAnnotationEditorParams);eventBus._on("print",webViewerPrint);eventBus._on("download",webViewerDownload);eventBus._on("openinexternalapp",webViewerOpenInExternalApp);eventBus._on("firstpage",webViewerFirstPage);eventBus._on("lastpage",webViewerLastPage);eventBus._on("nextpage",webViewerNextPage);eventBus._on("previouspage",webViewerPreviousPage);eventBus._on("zoomin",webViewerZoomIn);eventBus._on("zoomout",webViewerZoomOut);eventBus._on("zoomreset",webViewerZoomReset);eventBus._on("pagenumberchanged",webViewerPageNumberChanged);eventBus._on("scalechanged",webViewerScaleChanged);eventBus._on("rotatecw",webViewerRotateCw);eventBus._on("rotateccw",webViewerRotateCcw);eventBus._on("optionalcontentconfig",webViewerOptionalContentConfig);eventBus._on("switchscrollmode",webViewerSwitchScrollMode);eventBus._on("scrollmodechanged",webViewerScrollModeChanged);eventBus._on("switchspreadmode",webViewerSwitchSpreadMode);eventBus._on("spreadmodechanged",webViewerSpreadModeChanged);eventBus._on("documentproperties",webViewerDocumentProperties);eventBus._on("findfromurlhash",webViewerFindFromUrlHash);eventBus._on("updatefindmatchescount",webViewerUpdateFindMatchesCount);eventBus._on("updatefindcontrolstate",webViewerUpdateFindControlState);if(_app_options.AppOptions.get("pdfBug")){_boundEvents.reportPageStatsPDFBug=reportPageStatsPDFBug;eventBus._on("pagerendered",_boundEvents.reportPageStatsPDFBug);eventBus._on("pagechanging",_boundEvents.reportPageStatsPDFBug);}eventBus._on("fileinputchange",webViewerFileInputChange);eventBus._on("openfile",webViewerOpenFile);},bindWindowEvents:function bindWindowEvents(){var eventBus=this.eventBus,_boundEvents=this._boundEvents;function addWindowResolutionChange(){var evt=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(evt){webViewerResolutionChange(evt);}var mediaQueryList=window.matchMedia("(resolution: ".concat(window.devicePixelRatio||1,"dppx)"));mediaQueryList.addEventListener("change",addWindowResolutionChange,{once:true});_boundEvents.removeWindowResolutionChange||(_boundEvents.removeWindowResolutionChange=function(){mediaQueryList.removeEventListener("change",addWindowResolutionChange);_boundEvents.removeWindowResolutionChange=null;});}addWindowResolutionChange();_boundEvents.windowResize=function(){eventBus.dispatch("resize",{source:window});};_boundEvents.windowHashChange=function(){eventBus.dispatch("hashchange",{source:window,hash:document.location.hash.substring(1)});};_boundEvents.windowBeforePrint=function(){eventBus.dispatch("beforeprint",{source:window});};_boundEvents.windowAfterPrint=function(){eventBus.dispatch("afterprint",{source:window});};_boundEvents.windowUpdateFromSandbox=function(event){eventBus.dispatch("updatefromsandbox",{source:window,detail:event.detail});};window.addEventListener("visibilitychange",webViewerVisibilityChange);var viewerContainer=document.getElementById("viewerContainer");viewerContainer===null||viewerContainer===void 0?void 0:viewerContainer.addEventListener("wheel",webViewerWheel,{passive:false});var mainContainer=document.getElementById("mainContainer");mainContainer===null||mainContainer===void 0?void 0:mainContainer.addEventListener("touchstart",webViewerTouchStart,{passive:false});mainContainer===null||mainContainer===void 0?void 0:mainContainer.addEventListener("touchmove",webViewerTouchMove,{passive:false});mainContainer===null||mainContainer===void 0?void 0:mainContainer.addEventListener("touchend",webViewerTouchEnd,{passive:false});window.addEventListener("click",webViewerClick);window.addEventListener("keydown",webViewerKeyDown);window.addEventListener("keyup",webViewerKeyUp);window.addEventListener("resize",_boundEvents.windowResize);window.addEventListener("hashchange",_boundEvents.windowHashChange);window.addEventListener("beforeprint",_boundEvents.windowBeforePrint);window.addEventListener("afterprint",_boundEvents.windowAfterPrint);window.addEventListener("updatefromsandbox",_boundEvents.windowUpdateFromSandbox);},unbindEvents:function unbindEvents(){var eventBus=this.eventBus,_boundEvents=this._boundEvents;eventBus._off("resize",webViewerResize);eventBus._off("hashchange",webViewerHashchange);eventBus._off("beforeprint",_boundEvents.beforePrint);eventBus._off("afterprint",_boundEvents.afterPrint);eventBus._off("pagerender",webViewerPageRender);eventBus._off("pagerendered",webViewerPageRendered);eventBus._off("updateviewarea",webViewerUpdateViewarea);eventBus._off("pagechanging",webViewerPageChanging);eventBus._off("scalechanging",webViewerScaleChanging);eventBus._off("rotationchanging",webViewerRotationChanging);eventBus._off("sidebarviewchanged",webViewerSidebarViewChanged);eventBus._off("pagemode",webViewerPageMode);eventBus._off("namedaction",webViewerNamedAction);eventBus._off("presentationmodechanged",webViewerPresentationModeChanged);eventBus._off("presentationmode",webViewerPresentationMode);eventBus._off("print",webViewerPrint);eventBus._off("download",webViewerDownload);eventBus._off("openinexternalapp",webViewerOpenInExternalApp);eventBus._off("firstpage",webViewerFirstPage);eventBus._off("lastpage",webViewerLastPage);eventBus._off("nextpage",webViewerNextPage);eventBus._off("previouspage",webViewerPreviousPage);eventBus._off("zoomin",webViewerZoomIn);eventBus._off("zoomout",webViewerZoomOut);eventBus._off("zoomreset",webViewerZoomReset);eventBus._off("pagenumberchanged",webViewerPageNumberChanged);eventBus._off("scalechanged",webViewerScaleChanged);eventBus._off("rotatecw",webViewerRotateCw);eventBus._off("rotateccw",webViewerRotateCcw);eventBus._off("optionalcontentconfig",webViewerOptionalContentConfig);eventBus._off("switchscrollmode",webViewerSwitchScrollMode);eventBus._off("scrollmodechanged",webViewerScrollModeChanged);eventBus._off("switchspreadmode",webViewerSwitchSpreadMode);eventBus._off("spreadmodechanged",webViewerSpreadModeChanged);eventBus._off("documentproperties",webViewerDocumentProperties);eventBus._off("findfromurlhash",webViewerFindFromUrlHash);eventBus._off("updatefindmatchescount",webViewerUpdateFindMatchesCount);eventBus._off("updatefindcontrolstate",webViewerUpdateFindControlState);if(_boundEvents.reportPageStatsPDFBug){eventBus._off("pagerendered",_boundEvents.reportPageStatsPDFBug);eventBus._off("pagechanging",_boundEvents.reportPageStatsPDFBug);_boundEvents.reportPageStatsPDFBug=null;}eventBus._off("fileinputchange",webViewerFileInputChange);eventBus._off("openfile",webViewerOpenFile);_boundEvents.beforePrint=null;_boundEvents.afterPrint=null;},unbindWindowEvents:function unbindWindowEvents(){var _boundEvents$removeWi;var _boundEvents=this._boundEvents;window.removeEventListener("visibilitychange",webViewerVisibilityChange);window.removeEventListener("wheel",webViewerWheel,{passive:false});var mainContainer=document.getElementById("mainContainer");if(mainContainer){mainContainer.removeEventListener("touchstart",webViewerTouchStart,{passive:false});mainContainer.removeEventListener("touchmove",webViewerTouchMove,{passive:false});mainContainer.removeEventListener("touchend",webViewerTouchEnd,{passive:false});}window.removeEventListener("click",webViewerClick);window.removeEventListener("keydown",webViewerKeyDown);window.removeEventListener("keyup",webViewerKeyUp);window.removeEventListener("resize",_boundEvents.windowResize);window.removeEventListener("hashchange",_boundEvents.windowHashChange);window.removeEventListener("beforeprint",_boundEvents.windowBeforePrint);window.removeEventListener("afterprint",_boundEvents.windowAfterPrint);window.removeEventListener("updatefromsandbox",_boundEvents.windowUpdateFromSandbox);(_boundEvents$removeWi=_boundEvents.removeWindowResolutionChange)===null||_boundEvents$removeWi===void 0?void 0:_boundEvents$removeWi.call(_boundEvents);_boundEvents.windowResize=null;_boundEvents.windowHashChange=null;_boundEvents.windowBeforePrint=null;_boundEvents.windowAfterPrint=null;_boundEvents.windowUpdateFromSandbox=null;},_accumulateTicks:function _accumulateTicks(ticks,prop){if(this[prop]>0&&ticks<0||this[prop]<0&&ticks>0){this[prop]=0;}this[prop]+=ticks;var wholeTicks=Math.trunc(this[prop]);this[prop]-=wholeTicks;return wholeTicks;},_accumulateFactor:function _accumulateFactor(previousScale,factor,prop){if(factor===1){return 1;}if(this[prop]>1&&factor<1||this[prop]<1&&factor>1){this[prop]=1;}var newFactor=Math.floor(previousScale*factor*this[prop]*100)/(100*previousScale);this[prop]=factor/newFactor;return newFactor;},_centerAtPos:function _centerAtPos(previousScale,x,y){var pdfViewer=this.pdfViewer;var scaleDiff=pdfViewer.currentScale/previousScale-1;if(scaleDiff!==0){var _pdfViewer$containerT=_slicedToArray(pdfViewer.containerTopLeft,2),top=_pdfViewer$containerT[0],left=_pdfViewer$containerT[1];pdfViewer.container.scrollLeft+=(x-left)*scaleDiff;pdfViewer.container.scrollTop+=(y-top)*scaleDiff;}},_unblockDocumentLoadEvent:function _unblockDocumentLoadEvent(){var _document$blockUnbloc,_document;(_document$blockUnbloc=(_document=document).blockUnblockOnload)===null||_document$blockUnbloc===void 0?void 0:_document$blockUnbloc.call(_document,false);this._unblockDocumentLoadEvent=function(){};},get scriptingReady(){return this.pdfScriptingManager.ready;}};exports.PDFViewerApplication=PDFViewerApplication;{var HOSTED_VIEWER_ORIGINS=["null","http://mozilla.github.io","https://mozilla.github.io"];var validateFileURL=function validateFileURL(file){if(!file){return;}try{var viewerOrigin=new URL(window.location.href).origin||"null";if(HOSTED_VIEWER_ORIGINS.includes(viewerOrigin)){return;}var fileOrigin=new URL(file,window.location.href).origin;if(fileOrigin!==viewerOrigin){throw new Error("file origin does not match viewer's");}}catch(ex){if(PDFViewerApplication.onError){PDFViewerApplication.onError(ex);}PDFViewerApplication.l10n.get("loading_error").then(function(msg){PDFViewerApplication._documentError(msg,{message:ex===null||ex===void 0?void 0:ex.message});});throw ex;}};}function loadFakeWorker(){return _loadFakeWorker.apply(this,arguments);}function _loadFakeWorker(){_loadFakeWorker=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(){return _regeneratorRuntime().wrap(function _callee20$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_pdfjsLib.GlobalWorkerOptions.workerSrc||(_pdfjsLib.GlobalWorkerOptions.workerSrc=_app_options.AppOptions.get("workerSrc"));if(_pdfjsLib.GlobalWorkerOptions.workerSrc.constructor.name==="Function"){_pdfjsLib.GlobalWorkerOptions.workerSrc=_pdfjsLib.GlobalWorkerOptions.workerSrc();}_context20.next=4;return(0,_pdfjsLib.loadScript)(_pdfjsLib.PDFWorker.workerSrc);case 4:case"end":return _context20.stop();}},_callee20);}));return _loadFakeWorker.apply(this,arguments);}function loadPDFBug(_x2){return _loadPDFBug.apply(this,arguments);}function _loadPDFBug(){_loadPDFBug=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(self){return _regeneratorRuntime().wrap(function _callee21$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:case"end":return _context21.stop();}},_callee21);}));return _loadPDFBug.apply(this,arguments);}function reportPageStatsPDFBug(_ref9){var _globalThis$Stats,_pageView$pdfPage;var pageNumber=_ref9.pageNumber;if(!((_globalThis$Stats=globalThis.Stats)!==null&&_globalThis$Stats!==void 0&&_globalThis$Stats.enabled)){return;}var pageView=PDFViewerApplication.pdfViewer.getPageView(pageNumber-1);globalThis.Stats.add(pageNumber,pageView===null||pageView===void 0||(_pageView$pdfPage=pageView.pdfPage)===null||_pageView$pdfPage===void 0?void 0:_pageView$pdfPage.stats);}function webViewerPageRender(_ref10){var pageNumber=_ref10.pageNumber;if(pageNumber===PDFViewerApplication.page){var _PDFViewerApplication;(_PDFViewerApplication=PDFViewerApplication.toolbar)===null||_PDFViewerApplication===void 0?void 0:_PDFViewerApplication.updateLoadingIndicatorState(true);}}function webViewerPageRendered(_ref11){var _PDFViewerApplication3;var pageNumber=_ref11.pageNumber,error=_ref11.error;if(pageNumber===PDFViewerApplication.page){var _PDFViewerApplication2;(_PDFViewerApplication2=PDFViewerApplication.toolbar)===null||_PDFViewerApplication2===void 0?void 0:_PDFViewerApplication2.updateLoadingIndicatorState(false);}if(((_PDFViewerApplication3=PDFViewerApplication.pdfSidebar)===null||_PDFViewerApplication3===void 0?void 0:_PDFViewerApplication3.visibleView)===_ui_utils.SidebarView.THUMBS){var _PDFViewerApplication4;var pageView=PDFViewerApplication.pdfViewer.getPageView(pageNumber-1);var thumbnailView=(_PDFViewerApplication4=PDFViewerApplication.pdfThumbnailViewer)===null||_PDFViewerApplication4===void 0?void 0:_PDFViewerApplication4.getThumbnail(pageNumber-1);if(pageView){thumbnailView===null||thumbnailView===void 0?void 0:thumbnailView.setImage(pageView);}}if(error){PDFViewerApplication.l10n.get("rendering_error").then(function(msg){PDFViewerApplication._otherError(msg,error);});}}function webViewerPageMode(_ref12){var _PDFViewerApplication5;var mode=_ref12.mode;var view;switch(mode){case"thumbs":view=_ui_utils.SidebarView.THUMBS;break;case"bookmarks":case"outline":view=_ui_utils.SidebarView.OUTLINE;break;case"attachments":view=_ui_utils.SidebarView.ATTACHMENTS;break;case"layers":view=_ui_utils.SidebarView.LAYERS;break;case"none":view=_ui_utils.SidebarView.NONE;break;default:globalThis.ngxConsole.error('Invalid "pagemode" hash parameter: '+mode);return;}(_PDFViewerApplication5=PDFViewerApplication.pdfSidebar)===null||_PDFViewerApplication5===void 0?void 0:_PDFViewerApplication5.switchView(view,true);}function webViewerNamedAction(evt){var _PDFViewerApplication6;switch(evt.action){case"GoToPage":(_PDFViewerApplication6=PDFViewerApplication.appConfig.toolbar)===null||_PDFViewerApplication6===void 0?void 0:_PDFViewerApplication6.pageNumber.select();break;case"Find":if(!PDFViewerApplication.supportsIntegratedFind){PDFViewerApplication===null||PDFViewerApplication===void 0?void 0:PDFViewerApplication.findBar.toggle();}break;case"Print":PDFViewerApplication.triggerPrinting();break;case"SaveAs":PDFViewerApplication.downloadOrSave();break;}}function webViewerPresentationModeChanged(evt){PDFViewerApplication.pdfViewer.presentationModeState=evt.state;}function webViewerSidebarViewChanged(_ref13){var view=_ref13.view;PDFViewerApplication.pdfRenderingQueue.isThumbnailViewEnabled=view===_ui_utils.SidebarView.THUMBS;if(PDFViewerApplication.isInitialViewSet){var _PDFViewerApplication7;(_PDFViewerApplication7=PDFViewerApplication.store)===null||_PDFViewerApplication7===void 0?void 0:_PDFViewerApplication7.set("sidebarView",view).catch(function(){});}}function webViewerUpdateViewarea(_ref14){var location=_ref14.location;if(PDFViewerApplication.isInitialViewSet){var _PDFViewerApplication8;var settings={};if(location.pageNumber!==undefined||location.pageNumber!==null){settings.page=location.pageNumber;}if(location.scale){settings.zoom=location.scale;}if(location.left){settings.scrollLeft=location.left;}if(location.top){settings.scrollTop=location.top;}if(location.rotation!==undefined||location.rotation!==null){settings.rotation=location.rotation;}(_PDFViewerApplication8=PDFViewerApplication.store)===null||_PDFViewerApplication8===void 0?void 0:_PDFViewerApplication8.setMultiple(settings).catch(function(){});}if(PDFViewerApplication.appConfig.secondaryToolbar){var href=PDFViewerApplication.pdfLinkService.getAnchorUrl(location.pdfOpenParams);PDFViewerApplication.appConfig.secondaryToolbar.viewBookmarkButton.href=href;}}function webViewerScrollModeChanged(evt){if(PDFViewerApplication.isInitialViewSet&&!PDFViewerApplication.pdfViewer.isInPresentationMode){var _PDFViewerApplication9;(_PDFViewerApplication9=PDFViewerApplication.store)===null||_PDFViewerApplication9===void 0?void 0:_PDFViewerApplication9.set("scrollMode",evt.mode).catch(function(){});}}function webViewerSpreadModeChanged(evt){if(PDFViewerApplication.isInitialViewSet&&!PDFViewerApplication.pdfViewer.isInPresentationMode){var _PDFViewerApplication10;(_PDFViewerApplication10=PDFViewerApplication.store)===null||_PDFViewerApplication10===void 0?void 0:_PDFViewerApplication10.set("spreadMode",evt.mode).catch(function(){});}}function webViewerResize(){var pdfDocument=PDFViewerApplication.pdfDocument,pdfViewer=PDFViewerApplication.pdfViewer,pdfRenderingQueue=PDFViewerApplication.pdfRenderingQueue;if(pdfRenderingQueue.printing&&window.matchMedia("print").matches){return;}if(!pdfDocument){return;}var currentScaleValue=pdfViewer.currentScaleValue;if(currentScaleValue==="auto"||currentScaleValue==="page-fit"||currentScaleValue==="page-width"){pdfViewer.currentScaleValue=currentScaleValue;}pdfViewer.update();}function webViewerHashchange(evt){var _PDFViewerApplication11;var hash=evt.hash;if(!hash){return;}if(!PDFViewerApplication.isInitialViewSet){PDFViewerApplication.initialBookmark=hash;}else if(!((_PDFViewerApplication11=PDFViewerApplication.pdfHistory)!==null&&_PDFViewerApplication11!==void 0&&_PDFViewerApplication11.popStateInProgress)){PDFViewerApplication.pdfLinkService.setHash(hash);}}{var webViewerFileInputChange=function webViewerFileInputChange(evt){var _PDFViewerApplication12;if((_PDFViewerApplication12=PDFViewerApplication.pdfViewer)!==null&&_PDFViewerApplication12!==void 0&&_PDFViewerApplication12.isInPresentationMode){return;}var file=evt.fileInput.files[0];PDFViewerApplication.open({url:URL.createObjectURL(file),originalUrl:file.name});if(globalThis.setNgxExtendedPdfViewerSource){var _file$name;globalThis.setNgxExtendedPdfViewerSource((_file$name=file.name)!==null&&_file$name!==void 0?_file$name:URL.createObjectURL(file));}};var webViewerOpenFile=function webViewerOpenFile(evt){var fileInput=PDFViewerApplication.appConfig.openFileInput;fileInput.click();};}function webViewerPresentationMode(){PDFViewerApplication.requestPresentationMode();}function webViewerSwitchAnnotationEditorMode(evt){PDFViewerApplication.pdfViewer.annotationEditorMode=evt;}function webViewerSwitchAnnotationEditorParams(evt){PDFViewerApplication.pdfViewer.annotationEditorParams=evt;}function webViewerPrint(){PDFViewerApplication.triggerPrinting();}function webViewerDownload(){PDFViewerApplication.downloadOrSave();}function webViewerOpenInExternalApp(){PDFViewerApplication.openInExternalApp();}function webViewerFirstPage(){PDFViewerApplication.page=1;}function webViewerLastPage(){PDFViewerApplication.page=PDFViewerApplication.pagesCount;}function webViewerNextPage(){PDFViewerApplication.pdfViewer.nextPage();}function webViewerPreviousPage(){PDFViewerApplication.pdfViewer.previousPage();}function webViewerZoomIn(){PDFViewerApplication.zoomIn();}function webViewerZoomOut(){PDFViewerApplication.zoomOut();}function webViewerZoomReset(){PDFViewerApplication.zoomReset();}function webViewerPageNumberChanged(evt){var pdfViewer=PDFViewerApplication.pdfViewer;if(evt.value!==""){PDFViewerApplication.pdfLinkService.goToPage(evt.value);}if(evt.value!==pdfViewer.currentPageNumber.toString()&&evt.value!==pdfViewer.currentPageLabel){var _PDFViewerApplication13;(_PDFViewerApplication13=PDFViewerApplication.toolbar)===null||_PDFViewerApplication13===void 0?void 0:_PDFViewerApplication13.setPageNumber(pdfViewer.currentPageNumber,pdfViewer.currentPageLabel);}}function webViewerScaleChanged(evt){PDFViewerApplication.pdfViewer.currentScaleValue=evt.value;}function webViewerRotateCw(){PDFViewerApplication.rotatePages(90);}function webViewerRotateCcw(){PDFViewerApplication.rotatePages(-90);}function webViewerOptionalContentConfig(evt){PDFViewerApplication.pdfViewer.optionalContentConfigPromise=evt.promise;}function webViewerSwitchScrollMode(evt){PDFViewerApplication.pdfViewer.scrollMode=evt.mode;}function webViewerSwitchSpreadMode(evt){PDFViewerApplication.pdfViewer.spreadMode=evt.mode;}function webViewerDocumentProperties(){var _PDFViewerApplication14;(_PDFViewerApplication14=PDFViewerApplication.pdfDocumentProperties)===null||_PDFViewerApplication14===void 0?void 0:_PDFViewerApplication14.open();}function webViewerFindFromUrlHash(evt){PDFViewerApplication.eventBus.dispatch("find",{source:evt.source,type:"",query:evt.query,caseSensitive:false,entireWord:false,highlightAll:true,findPrevious:false,matchDiacritics:true});}function webViewerUpdateFindMatchesCount(_ref15){var matchesCount=_ref15.matchesCount;if(PDFViewerApplication.supportsIntegratedFind){PDFViewerApplication.externalServices.updateFindMatchesCount(matchesCount);}else{PDFViewerApplication.findBar.updateResultsCount(matchesCount);}}function webViewerUpdateFindControlState(_ref16){var state=_ref16.state,previous=_ref16.previous,matchesCount=_ref16.matchesCount,rawQuery=_ref16.rawQuery;if(PDFViewerApplication.supportsIntegratedFind){PDFViewerApplication.externalServices.updateFindControlState({result:state,findPrevious:previous,matchesCount:matchesCount,rawQuery:rawQuery});}else{var _PDFViewerApplication15;(_PDFViewerApplication15=PDFViewerApplication.findBar)===null||_PDFViewerApplication15===void 0?void 0:_PDFViewerApplication15.updateUIState(state,previous,matchesCount);}}function webViewerScaleChanging(evt){var _PDFViewerApplication16;(_PDFViewerApplication16=PDFViewerApplication.toolbar)===null||_PDFViewerApplication16===void 0?void 0:_PDFViewerApplication16.setPageScale(evt.presetValue,evt.scale);PDFViewerApplication.pdfViewer.update();}function webViewerRotationChanging(evt){if(PDFViewerApplication.pdfThumbnailViewer){PDFViewerApplication.pdfThumbnailViewer.pagesRotation=evt.pagesRotation;}PDFViewerApplication.forceRendering();PDFViewerApplication.pdfViewer.currentPageNumber=evt.pageNumber;}function webViewerPageChanging(_ref17){var _PDFViewerApplication17,_PDFViewerApplication18,_PDFViewerApplication19,_PDFViewerApplication21;var pageNumber=_ref17.pageNumber,pageLabel=_ref17.pageLabel;(_PDFViewerApplication17=PDFViewerApplication.toolbar)===null||_PDFViewerApplication17===void 0?void 0:_PDFViewerApplication17.setPageNumber(pageNumber,pageLabel);(_PDFViewerApplication18=PDFViewerApplication.secondaryToolbar)===null||_PDFViewerApplication18===void 0?void 0:_PDFViewerApplication18.setPageNumber(pageNumber);if(((_PDFViewerApplication19=PDFViewerApplication.pdfSidebar)===null||_PDFViewerApplication19===void 0?void 0:_PDFViewerApplication19.visibleView)===_ui_utils.SidebarView.THUMBS){var _PDFViewerApplication20;(_PDFViewerApplication20=PDFViewerApplication.pdfThumbnailViewer)===null||_PDFViewerApplication20===void 0?void 0:_PDFViewerApplication20.scrollThumbnailIntoView(pageNumber);}var currentPage=PDFViewerApplication.pdfViewer.getPageView(pageNumber-1);(_PDFViewerApplication21=PDFViewerApplication.toolbar)===null||_PDFViewerApplication21===void 0?void 0:_PDFViewerApplication21.updateLoadingIndicatorState((currentPage===null||currentPage===void 0?void 0:currentPage.renderingState)===_ui_utils.RenderingStates.RUNNING);var pageNumberInput=document.getElementById("pageNumber");if(pageNumberInput){var pageScrollEvent=new CustomEvent("page-change");pageNumberInput.dispatchEvent(pageScrollEvent);}}function webViewerResolutionChange(evt){PDFViewerApplication.pdfViewer.refresh();}function webViewerVisibilityChange(evt){if(document.visibilityState==="visible"){setZoomDisabledTimeout();}}var zoomDisabledTimeout=null;function setZoomDisabledTimeout(){if(zoomDisabledTimeout){clearTimeout(zoomDisabledTimeout);}zoomDisabledTimeout=setTimeout(function(){zoomDisabledTimeout=null;},WHEEL_ZOOM_DISABLED_TIMEOUT);}function webViewerWheel(evt){var element=document.getElementById("viewerContainer");var hover=element.parentNode.querySelector(":hover");if(hover!==element){return;}var pdfViewer=PDFViewerApplication.pdfViewer,supportedMouseWheelZoomModifierKeys=PDFViewerApplication.supportedMouseWheelZoomModifierKeys,supportsPinchToZoom=PDFViewerApplication.supportsPinchToZoom;if(pdfViewer.isInPresentationMode){return;}var cmd=(evt.ctrlKey?1:0)|(evt.altKey?2:0)|(evt.shiftKey?4:0)|(evt.metaKey?8:0);if(window.isKeyIgnored&&window.isKeyIgnored(cmd,"WHEEL")){return;}var deltaMode=evt.deltaMode;var scaleFactor=Math.exp(-evt.deltaY/100);var isBuiltInMac=false;var isPinchToZoom=evt.ctrlKey&&!PDFViewerApplication._isCtrlKeyDown&&deltaMode===WheelEvent.DOM_DELTA_PIXEL&&evt.deltaX===0&&(Math.abs(scaleFactor-1)<0.05||isBuiltInMac)&&evt.deltaZ===0;if(isPinchToZoom||evt.ctrlKey&&supportedMouseWheelZoomModifierKeys.ctrlKey||evt.metaKey&&supportedMouseWheelZoomModifierKeys.metaKey){evt.preventDefault();if(zoomDisabledTimeout||document.visibilityState==="hidden"){return;}var previousScale=pdfViewer.currentScale;if(isPinchToZoom&&supportsPinchToZoom){scaleFactor=PDFViewerApplication._accumulateFactor(previousScale,scaleFactor,"_wheelUnusedFactor");if(scaleFactor<1){PDFViewerApplication.zoomOut(null,scaleFactor);}else if(scaleFactor>1){PDFViewerApplication.zoomIn(null,scaleFactor);}else{return;}}else{var delta=(0,_ui_utils.normalizeWheelEventDirection)(evt);var ticks=0;if(deltaMode===WheelEvent.DOM_DELTA_LINE||deltaMode===WheelEvent.DOM_DELTA_PAGE){if(Math.abs(delta)>=1){ticks=Math.sign(delta);}else{ticks=PDFViewerApplication._accumulateTicks(delta,"_wheelUnusedTicks");}}else{var PIXELS_PER_LINE_SCALE=30;ticks=PDFViewerApplication._accumulateTicks(delta/PIXELS_PER_LINE_SCALE,"_wheelUnusedTicks");}if(ticks<0){PDFViewerApplication.zoomOut(-ticks);}else if(ticks>0){PDFViewerApplication.zoomIn(ticks);}else{return;}}PDFViewerApplication._centerAtPos(previousScale,evt.clientX,evt.clientY);}else{setZoomDisabledTimeout();}}function webViewerTouchStart(evt){if(PDFViewerApplication.pdfViewer.isInPresentationMode||evt.touches.length<2){return;}evt.preventDefault();if(evt.touches.length!==2){PDFViewerApplication._touchInfo=null;return;}var _evt$touches=_slicedToArray(evt.touches,2),touch0=_evt$touches[0],touch1=_evt$touches[1];if(touch0.identifier>touch1.identifier){var _ref18=[touch1,touch0];touch0=_ref18[0];touch1=_ref18[1];}PDFViewerApplication._touchInfo={touch0X:touch0.pageX,touch0Y:touch0.pageY,touch1X:touch1.pageX,touch1Y:touch1.pageY};}function webViewerTouchMove(evt){if(!PDFViewerApplication._touchInfo||evt.touches.length!==2){return;}var pdfViewer=PDFViewerApplication.pdfViewer,_touchInfo=PDFViewerApplication._touchInfo,supportsPinchToZoom=PDFViewerApplication.supportsPinchToZoom;var _evt$touches2=_slicedToArray(evt.touches,2),touch0=_evt$touches2[0],touch1=_evt$touches2[1];if(touch0.identifier>touch1.identifier){var _ref19=[touch1,touch0];touch0=_ref19[0];touch1=_ref19[1];}var _touch=touch0,page0X=_touch.pageX,page0Y=_touch.pageY;var _touch2=touch1,page1X=_touch2.pageX,page1Y=_touch2.pageY;var pTouch0X=_touchInfo.touch0X,pTouch0Y=_touchInfo.touch0Y,pTouch1X=_touchInfo.touch1X,pTouch1Y=_touchInfo.touch1Y;if(Math.abs(pTouch0X-page0X)<=1&&Math.abs(pTouch0Y-page0Y)<=1&&Math.abs(pTouch1X-page1X)<=1&&Math.abs(pTouch1Y-page1Y)<=1){return;}_touchInfo.touch0X=page0X;_touchInfo.touch0Y=page0Y;_touchInfo.touch1X=page1X;_touchInfo.touch1Y=page1Y;if(pTouch0X===page0X&&pTouch0Y===page0Y){var v1X=pTouch1X-page0X;var v1Y=pTouch1Y-page0Y;var v2X=page1X-page0X;var v2Y=page1Y-page0Y;var det=v1X*v2Y-v1Y*v2X;if(Math.abs(det)>0.02*Math.hypot(v1X,v1Y)*Math.hypot(v2X,v2Y)){return;}}else if(pTouch1X===page1X&&pTouch1Y===page1Y){var _v1X=pTouch0X-page1X;var _v1Y=pTouch0Y-page1Y;var _v2X=page0X-page1X;var _v2Y=page0Y-page1Y;var _det=_v1X*_v2Y-_v1Y*_v2X;if(Math.abs(_det)>0.02*Math.hypot(_v1X,_v1Y)*Math.hypot(_v2X,_v2Y)){return;}}else{var diff0X=page0X-pTouch0X;var diff1X=page1X-pTouch1X;var diff0Y=page0Y-pTouch0Y;var diff1Y=page1Y-pTouch1Y;var dotProduct=diff0X*diff1X+diff0Y*diff1Y;if(dotProduct>=0){return;}}evt.preventDefault();var distance=Math.hypot(page0X-page1X,page0Y-page1Y)||1;var pDistance=Math.hypot(pTouch0X-pTouch1X,pTouch0Y-pTouch1Y)||1;var previousScale=pdfViewer.currentScale;if(supportsPinchToZoom){var newScaleFactor=PDFViewerApplication._accumulateFactor(previousScale,distance/pDistance,"_touchUnusedFactor");if(newScaleFactor<1){PDFViewerApplication.zoomOut(null,newScaleFactor);}else if(newScaleFactor>1){PDFViewerApplication.zoomIn(null,newScaleFactor);}else{return;}}else{var PIXELS_PER_LINE_SCALE=30;var ticks=PDFViewerApplication._accumulateTicks((distance-pDistance)/PIXELS_PER_LINE_SCALE,"_touchUnusedTicks");if(ticks<0){PDFViewerApplication.zoomOut(-ticks);}else if(ticks>0){PDFViewerApplication.zoomIn(ticks);}else{return;}}PDFViewerApplication._centerAtPos(previousScale,(page0X+page1X)/2,(page0Y+page1Y)/2);}function webViewerTouchEnd(evt){if(!PDFViewerApplication._touchInfo){return;}evt.preventDefault();PDFViewerApplication._touchInfo=null;PDFViewerApplication._touchUnusedTicks=0;PDFViewerApplication._touchUnusedFactor=1;}function webViewerClick(evt){var _PDFViewerApplication22,_appConfig$toolbar5,_appConfig$secondaryT5;if(!((_PDFViewerApplication22=PDFViewerApplication.secondaryToolbar)!==null&&_PDFViewerApplication22!==void 0&&_PDFViewerApplication22.isOpen)){return;}var appConfig=PDFViewerApplication.appConfig;if(PDFViewerApplication.pdfViewer.containsElement(evt.target)||(_appConfig$toolbar5=appConfig.toolbar)!==null&&_appConfig$toolbar5!==void 0&&_appConfig$toolbar5.container.contains(evt.target)&&evt.target!==((_appConfig$secondaryT5=appConfig.secondaryToolbar)===null||_appConfig$secondaryT5===void 0?void 0:_appConfig$secondaryT5.toggleButton)){if(evt.target&&evt.target.parentElement===appConfig.secondaryToolbar.toggleButton){return;}if(evt.target&&evt.target.parentElement&&evt.target.parentElement.parentElement===appConfig.secondaryToolbar.toggleButton){return;}PDFViewerApplication.secondaryToolbar.close();}}function webViewerKeyUp(evt){if(evt.key==="Control"){PDFViewerApplication._isCtrlKeyDown=false;}}function webViewerKeyDown(evt){var _PDFViewerApplication24,_PDFViewerApplication25,_PDFViewerApplication26,_PDFViewerApplication27,_PDFViewerApplication28;PDFViewerApplication._isCtrlKeyDown=evt.key==="Control";if(PDFViewerApplication.overlayManager.active){return;}var eventBus=PDFViewerApplication.eventBus,pdfViewer=PDFViewerApplication.pdfViewer;var isViewerInPresentationMode=pdfViewer.isInPresentationMode;var handled=false,ensureViewerFocused=false;var cmd=(evt.ctrlKey?1:0)|(evt.altKey?2:0)|(evt.shiftKey?4:0)|(evt.metaKey?8:0);if(window.isKeyIgnored&&window.isKeyIgnored(cmd,evt.keyCode)){return;}if(cmd===1||cmd===8||cmd===5||cmd===12){switch(evt.keyCode){case 70:if(!PDFViewerApplication.supportsIntegratedFind&&!evt.shiftKey){var _PDFViewerApplication23;(_PDFViewerApplication23=PDFViewerApplication.findBar)===null||_PDFViewerApplication23===void 0?void 0:_PDFViewerApplication23.open();handled=true;}break;case 71:if(!PDFViewerApplication.supportsIntegratedFind){var state=PDFViewerApplication.findController.state;if(state){var newState={source:window,type:"again",findPrevious:cmd===5||cmd===12};eventBus.dispatch("find",_objectSpread(_objectSpread({},state),newState));}handled=true;}break;case 61:case 107:case 187:case 171:PDFViewerApplication.zoomIn();handled=true;break;case 173:case 109:case 189:PDFViewerApplication.zoomOut();handled=true;break;case 48:case 96:if(!isViewerInPresentationMode){setTimeout(function(){PDFViewerApplication.zoomReset();});handled=false;}break;case 38:if(isViewerInPresentationMode||PDFViewerApplication.page>1){PDFViewerApplication.page=1;handled=true;ensureViewerFocused=true;}break;case 40:if(isViewerInPresentationMode||PDFViewerApplication.page<PDFViewerApplication.pagesCount){PDFViewerApplication.page=PDFViewerApplication.pagesCount;handled=true;ensureViewerFocused=true;}break;}}if(cmd===1||cmd===8){switch(evt.keyCode){case 83:eventBus.dispatch("download",{source:window});handled=true;break;case 79:{eventBus.dispatch("openfile",{source:window});handled=true;}break;}}if(cmd===3||cmd===10){switch(evt.keyCode){case 80:PDFViewerApplication.requestPresentationMode();handled=true;PDFViewerApplication.externalServices.reportTelemetry({type:"buttons",data:{id:"presentationModeKeyboard"}});break;case 71:if(PDFViewerApplication.appConfig.toolbar){PDFViewerApplication.appConfig.toolbar.pageNumber.select();handled=true;}break;}}if(handled){if(ensureViewerFocused&&!isViewerInPresentationMode){pdfViewer.focus();}evt.preventDefault();return;}var curElement=(0,_ui_utils.getActiveOrFocusedElement)();var curElementTagName=curElement===null||curElement===void 0?void 0:curElement.tagName.toUpperCase();if(curElementTagName==="INPUT"||curElementTagName==="TEXTAREA"||curElementTagName==="SELECT"||curElement!==null&&curElement!==void 0&&curElement.isContentEditable){if(evt.keyCode!==27){return;}}if(cmd===0){var turnPage=0,turnOnlyIfPageFit=false;switch(evt.keyCode){case 38:case 33:if(pdfViewer.isVerticalScrollbarEnabled){turnOnlyIfPageFit=true;}turnPage=-1;break;case 8:if(!isViewerInPresentationMode){turnOnlyIfPageFit=true;}turnPage=-1;break;case 37:if(pdfViewer.isHorizontalScrollbarEnabled){turnOnlyIfPageFit=true;}case 75:case 80:turnPage=-1;break;case 27:if((_PDFViewerApplication24=PDFViewerApplication.secondaryToolbar)!==null&&_PDFViewerApplication24!==void 0&&_PDFViewerApplication24.isOpen){PDFViewerApplication.secondaryToolbar.close();handled=true;}if(!PDFViewerApplication.supportsIntegratedFind&&(_PDFViewerApplication25=PDFViewerApplication.findBar)!==null&&_PDFViewerApplication25!==void 0&&_PDFViewerApplication25.opened){PDFViewerApplication.findBar.close();handled=true;}break;case 40:case 34:if(pdfViewer.isVerticalScrollbarEnabled){turnOnlyIfPageFit=true;}turnPage=1;break;case 13:case 32:if(!isViewerInPresentationMode){turnOnlyIfPageFit=true;}turnPage=1;break;case 39:if(pdfViewer.isHorizontalScrollbarEnabled){turnOnlyIfPageFit=true;}case 74:case 78:turnPage=1;break;case 36:if(isViewerInPresentationMode||PDFViewerApplication.page>1){PDFViewerApplication.page=1;handled=true;ensureViewerFocused=true;}break;case 35:if(isViewerInPresentationMode||PDFViewerApplication.page<PDFViewerApplication.pagesCount){PDFViewerApplication.page=PDFViewerApplication.pagesCount;handled=true;ensureViewerFocused=true;}break;case 83:(_PDFViewerApplication26=PDFViewerApplication.pdfCursorTools)===null||_PDFViewerApplication26===void 0?void 0:_PDFViewerApplication26.switchTool(_ui_utils.CursorTool.SELECT);break;case 72:(_PDFViewerApplication27=PDFViewerApplication.pdfCursorTools)===null||_PDFViewerApplication27===void 0?void 0:_PDFViewerApplication27.switchTool(_ui_utils.CursorTool.HAND);break;case 82:PDFViewerApplication.rotatePages(90);break;case 115:(_PDFViewerApplication28=PDFViewerApplication.pdfSidebar)===null||_PDFViewerApplication28===void 0?void 0:_PDFViewerApplication28.toggle();break;}if(turnPage!==0&&(!turnOnlyIfPageFit||pdfViewer.currentScaleValue==="page-fit")){if(turnPage>0){pdfViewer.nextPage();}else{pdfViewer.previousPage();}handled=true;}}if(cmd===4){switch(evt.keyCode){case 13:case 32:if(!isViewerInPresentationMode&&pdfViewer.currentScaleValue!=="page-fit"){break;}pdfViewer.previousPage();handled=true;break;case 82:PDFViewerApplication.rotatePages(-90);break;}}if(ensureViewerFocused&&!pdfViewer.containsElement(curElement)){pdfViewer.focus();}if(handled){evt.preventDefault();}}function beforeUnload(evt){evt.preventDefault();evt.returnValue="";return false;}function webViewerAnnotationEditorStatesChanged(data){PDFViewerApplication.externalServices.updateEditorStates(data);}var PDFPrintServiceFactory={instance:{supportsPrinting:false,createPrintService:function createPrintService(){throw new Error("Not implemented: createPrintService");}}};exports.PDFPrintServiceFactory=PDFPrintServiceFactory;

/***/ }),
/* 192 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var from = __webpack_require__(193);
var checkCorrectnessOfIteration = __webpack_require__(169);
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
 Array.from(iterable);
});
$({
 target: 'Array',
 stat: true,
 forced: INCORRECT_ITERATION
}, { from: from });

/***/ }),
/* 193 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var bind = __webpack_require__(106);
var call = __webpack_require__(34);
var toObject = __webpack_require__(9);
var callWithSafeIterationClosing = __webpack_require__(194);
var isArrayIteratorMethod = __webpack_require__(164);
var isConstructor = __webpack_require__(111);
var lengthOfArrayLike = __webpack_require__(55);
var createProperty = __webpack_require__(102);
var getIterator = __webpack_require__(165);
var getIteratorMethod = __webpack_require__(166);
var $Array = Array;
module.exports = function from(arrayLike) {
 var O = toObject(arrayLike);
 var IS_CONSTRUCTOR = isConstructor(this);
 var argumentsLength = arguments.length;
 var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
 var mapping = mapfn !== undefined;
 if (mapping)
  mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
 var iteratorMethod = getIteratorMethod(O);
 var index = 0;
 var length, result, step, iterator, next, value;
 if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
  iterator = getIterator(O, iteratorMethod);
  next = iterator.next;
  result = IS_CONSTRUCTOR ? new this() : [];
  for (; !(step = call(next, iterator)).done; index++) {
   value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [
    step.value,
    index
   ], true) : step.value;
   createProperty(result, index, value);
  }
 } else {
  length = lengthOfArrayLike(O);
  result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
  for (; length > index; index++) {
   value = mapping ? mapfn(O[index], index) : O[index];
   createProperty(result, index, value);
  }
 }
 result.length = index;
 return result;
};

/***/ }),
/* 194 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var anObject = __webpack_require__(31);
var iteratorClose = __webpack_require__(167);
module.exports = function (iterator, fn, value, ENTRIES) {
 try {
  return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
 } catch (error) {
  iteratorClose(iterator, 'throw', error);
 }
};

/***/ }),
/* 195 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $filter = (__webpack_require__(105).filter);
var arrayMethodHasSpeciesSupport = __webpack_require__(186);
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
$({
 target: 'Array',
 proto: true,
 forced: !HAS_SPECIES_SUPPORT
}, {
 filter: function filter(callbackfn) {
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 196 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var fails = __webpack_require__(8);
var toIndexedObject = __webpack_require__(43);
var nativeGetOwnPropertyDescriptor = (__webpack_require__(68).f);
var DESCRIPTORS = __webpack_require__(24);
var FORCED = !DESCRIPTORS || fails(function () {
 nativeGetOwnPropertyDescriptor(1);
});
$({
 target: 'Object',
 stat: true,
 forced: FORCED,
 sham: !DESCRIPTORS
}, {
 getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
  return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
 }
});

/***/ }),
/* 197 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var DESCRIPTORS = __webpack_require__(24);
var ownKeys = __webpack_require__(75);
var toIndexedObject = __webpack_require__(43);
var getOwnPropertyDescriptorModule = __webpack_require__(68);
var createProperty = __webpack_require__(102);
$({
 target: 'Object',
 stat: true,
 sham: !DESCRIPTORS
}, {
 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
  var O = toIndexedObject(object);
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  var keys = ownKeys(O);
  var result = {};
  var index = 0;
  var key, descriptor;
  while (keys.length > index) {
   descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
   if (descriptor !== undefined)
    createProperty(result, key, descriptor);
  }
  return result;
 }
});

/***/ }),
/* 198 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
$({
 global: true,
 forced: global.globalThis !== global
}, { globalThis: global });

/***/ }),
/* 199 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $includes = (__webpack_require__(51).includes);
var fails = __webpack_require__(8);
var addToUnscopables = __webpack_require__(46);
var BROKEN_ON_SPARSE = fails(function () {
 return !Array(1).includes();
});
$({
 target: 'Array',
 proto: true,
 forced: BROKEN_ON_SPARSE
}, {
 includes: function includes(el) {
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
 }
});
addToUnscopables('includes');

/***/ }),
/* 200 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var uncurryThis = __webpack_require__(6);
var notARegExp = __webpack_require__(201);
var requireObjectCoercible = __webpack_require__(10);
var toString = __webpack_require__(94);
var correctIsRegExpLogic = __webpack_require__(203);
var stringIndexOf = uncurryThis(''.indexOf);
$({
 target: 'String',
 proto: true,
 forced: !correctIsRegExpLogic('includes')
}, {
 includes: function includes(searchString) {
  return !!~stringIndexOf(toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 201 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isRegExp = __webpack_require__(202);
var $TypeError = TypeError;
module.exports = function (it) {
 if (isRegExp(it)) {
  throw $TypeError("The method doesn't accept regular expressions");
 }
 return it;
};

/***/ }),
/* 202 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isObject = __webpack_require__(27);
var classof = __webpack_require__(45);
var wellKnownSymbol = __webpack_require__(13);
var MATCH = wellKnownSymbol('match');
module.exports = function (it) {
 var isRegExp;
 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
};

/***/ }),
/* 203 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var wellKnownSymbol = __webpack_require__(13);
var MATCH = wellKnownSymbol('match');
module.exports = function (METHOD_NAME) {
 var regexp = /./;
 try {
  '/./'[METHOD_NAME](regexp);
 } catch (error1) {
  try {
   regexp[MATCH] = false;
   return '/./'[METHOD_NAME](regexp);
  } catch (error2) {
  }
 }
 return false;
};

/***/ }),
/* 204 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $values = (__webpack_require__(205).values);
$({
 target: 'Object',
 stat: true
}, {
 values: function values(O) {
  return $values(O);
 }
});

/***/ }),
/* 205 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var fails = __webpack_require__(8);
var uncurryThis = __webpack_require__(6);
var objectGetPrototypeOf = __webpack_require__(81);
var objectKeys = __webpack_require__(49);
var toIndexedObject = __webpack_require__(43);
var $propertyIsEnumerable = (__webpack_require__(69).f);
var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
var push = uncurryThis([].push);
var IE_BUG = DESCRIPTORS && fails(function () {
 var O = Object.create(null);
 O[2] = 2;
 return !propertyIsEnumerable(O, 2);
});
var createMethod = function (TO_ENTRIES) {
 return function (it) {
  var O = toIndexedObject(it);
  var keys = objectKeys(O);
  var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  var length = keys.length;
  var i = 0;
  var result = [];
  var key;
  while (length > i) {
   key = keys[i++];
   if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
    push(result, TO_ENTRIES ? [
     key,
     O[key]
    ] : O[key]);
   }
  }
  return result;
 };
};
module.exports = {
 entries: createMethod(true),
 values: createMethod(false)
};

/***/ }),
/* 206 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var exec = __webpack_require__(207);
$({
 target: 'RegExp',
 proto: true,
 forced: /./.exec !== exec
}, { exec: exec });

/***/ }),
/* 207 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var toString = __webpack_require__(94);
var regexpFlags = __webpack_require__(208);
var stickyHelpers = __webpack_require__(209);
var shared = __webpack_require__(14);
var create = __webpack_require__(47);
var getInternalState = (__webpack_require__(62).get);
var UNSUPPORTED_DOT_ALL = __webpack_require__(210);
var UNSUPPORTED_NCG = __webpack_require__(211);
var nativeReplace = shared('native-string-replace', String.prototype.replace);
var nativeExec = RegExp.prototype.exec;
var patchedExec = nativeExec;
var charAt = uncurryThis(''.charAt);
var indexOf = uncurryThis(''.indexOf);
var replace = uncurryThis(''.replace);
var stringSlice = uncurryThis(''.slice);
var UPDATES_LAST_INDEX_WRONG = (function () {
 var re1 = /a/;
 var re2 = /b*/g;
 call(nativeExec, re1, 'a');
 call(nativeExec, re2, 'a');
 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
}());
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
if (PATCH) {
 patchedExec = function exec(string) {
  var re = this;
  var state = getInternalState(re);
  var str = toString(string);
  var raw = state.raw;
  var result, reCopy, lastIndex, match, i, object, group;
  if (raw) {
   raw.lastIndex = re.lastIndex;
   result = call(patchedExec, raw, str);
   re.lastIndex = raw.lastIndex;
   return result;
  }
  var groups = state.groups;
  var sticky = UNSUPPORTED_Y && re.sticky;
  var flags = call(regexpFlags, re);
  var source = re.source;
  var charsAdded = 0;
  var strCopy = str;
  if (sticky) {
   flags = replace(flags, 'y', '');
   if (indexOf(flags, 'g') === -1) {
    flags += 'g';
   }
   strCopy = stringSlice(str, re.lastIndex);
   if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
    source = '(?: ' + source + ')';
    strCopy = ' ' + strCopy;
    charsAdded++;
   }
   reCopy = new RegExp('^(?:' + source + ')', flags);
  }
  if (NPCG_INCLUDED) {
   reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  }
  if (UPDATES_LAST_INDEX_WRONG)
   lastIndex = re.lastIndex;
  match = call(nativeExec, sticky ? reCopy : re, strCopy);
  if (sticky) {
   if (match) {
    match.input = stringSlice(match.input, charsAdded);
    match[0] = stringSlice(match[0], charsAdded);
    match.index = re.lastIndex;
    re.lastIndex += match[0].length;
   } else
    re.lastIndex = 0;
  } else if (UPDATES_LAST_INDEX_WRONG && match) {
   re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  }
  if (NPCG_INCLUDED && match && match.length > 1) {
   call(nativeReplace, match[0], reCopy, function () {
    for (i = 1; i < arguments.length - 2; i++) {
     if (arguments[i] === undefined)
      match[i] = undefined;
    }
   });
  }
  if (match && groups) {
   match.groups = object = create(null);
   for (i = 0; i < groups.length; i++) {
    group = groups[i];
    object[group[0]] = match[group[1]];
   }
  }
  return match;
 };
}
module.exports = patchedExec;

/***/ }),
/* 208 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var anObject = __webpack_require__(31);
module.exports = function () {
 var that = anObject(this);
 var result = '';
 if (that.hasIndices)
  result += 'd';
 if (that.global)
  result += 'g';
 if (that.ignoreCase)
  result += 'i';
 if (that.multiline)
  result += 'm';
 if (that.dotAll)
  result += 's';
 if (that.unicode)
  result += 'u';
 if (that.unicodeSets)
  result += 'v';
 if (that.sticky)
  result += 'y';
 return result;
};

/***/ }),
/* 209 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var global = __webpack_require__(4);
var $RegExp = global.RegExp;
var UNSUPPORTED_Y = fails(function () {
 var re = $RegExp('a', 'y');
 re.lastIndex = 2;
 return re.exec('abcd') != null;
});
var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
 return !$RegExp('a', 'y').sticky;
});
var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
 var re = $RegExp('^r', 'gy');
 re.lastIndex = 2;
 return re.exec('str') != null;
});
module.exports = {
 BROKEN_CARET: BROKEN_CARET,
 MISSED_STICKY: MISSED_STICKY,
 UNSUPPORTED_Y: UNSUPPORTED_Y
};

/***/ }),
/* 210 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var global = __webpack_require__(4);
var $RegExp = global.RegExp;
module.exports = fails(function () {
 var re = $RegExp('.', 's');
 return !(re.dotAll && re.exec('\n') && re.flags === 's');
});

/***/ }),
/* 211 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var global = __webpack_require__(4);
var $RegExp = global.RegExp;
module.exports = fails(function () {
 var re = $RegExp('(?<a>b)', 'g');
 return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$<a>c') !== 'bc';
});

/***/ }),
/* 212 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var fixRegExpWellKnownSymbolLogic = __webpack_require__(213);
var anObject = __webpack_require__(31);
var isNullOrUndefined = __webpack_require__(11);
var requireObjectCoercible = __webpack_require__(10);
var sameValue = __webpack_require__(214);
var toString = __webpack_require__(94);
var getMethod = __webpack_require__(38);
var regExpExec = __webpack_require__(215);
fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
 return [
  function search(regexp) {
   var O = requireObjectCoercible(this);
   var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
   return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
  },
  function (string) {
   var rx = anObject(this);
   var S = toString(string);
   var res = maybeCallNative(nativeSearch, rx, S);
   if (res.done)
    return res.value;
   var previousLastIndex = rx.lastIndex;
   if (!sameValue(previousLastIndex, 0))
    rx.lastIndex = 0;
   var result = regExpExec(rx, S);
   if (!sameValue(rx.lastIndex, previousLastIndex))
    rx.lastIndex = previousLastIndex;
   return result === null ? -1 : result.index;
  }
 ];
});

/***/ }),
/* 213 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(206);
var uncurryThis = __webpack_require__(107);
var defineBuiltIn = __webpack_require__(70);
var regexpExec = __webpack_require__(207);
var fails = __webpack_require__(8);
var wellKnownSymbol = __webpack_require__(13);
var createNonEnumerableProperty = __webpack_require__(64);
var SPECIES = wellKnownSymbol('species');
var RegExpPrototype = RegExp.prototype;
module.exports = function (KEY, exec, FORCED, SHAM) {
 var SYMBOL = wellKnownSymbol(KEY);
 var DELEGATES_TO_SYMBOL = !fails(function () {
  var O = {};
  O[SYMBOL] = function () {
   return 7;
  };
  return ''[KEY](O) != 7;
 });
 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  var execCalled = false;
  var re = /a/;
  if (KEY === 'split') {
   re = {};
   re.constructor = {};
   re.constructor[SPECIES] = function () {
    return re;
   };
   re.flags = '';
   re[SYMBOL] = /./[SYMBOL];
  }
  re.exec = function () {
   execCalled = true;
   return null;
  };
  re[SYMBOL]('');
  return !execCalled;
 });
 if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) {
  var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
   var uncurriedNativeMethod = uncurryThis(nativeMethod);
   var $exec = regexp.exec;
   if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
    if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
     return {
      done: true,
      value: uncurriedNativeRegExpMethod(regexp, str, arg2)
     };
    }
    return {
     done: true,
     value: uncurriedNativeMethod(str, regexp, arg2)
    };
   }
   return { done: false };
  });
  defineBuiltIn(String.prototype, KEY, methods[0]);
  defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
 }
 if (SHAM)
  createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
};

/***/ }),
/* 214 */
/***/ ((module) => {


module.exports = Object.is || function is(x, y) {
 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};

/***/ }),
/* 215 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var anObject = __webpack_require__(31);
var isCallable = __webpack_require__(28);
var classof = __webpack_require__(45);
var regexpExec = __webpack_require__(207);
var $TypeError = TypeError;
module.exports = function (R, S) {
 var exec = R.exec;
 if (isCallable(exec)) {
  var result = call(exec, R, S);
  if (result !== null)
   anObject(result);
  return result;
 }
 if (classof(R) === 'RegExp')
  return call(regexpExec, R, S);
 throw $TypeError('RegExp#exec called on incompatible receiver');
};

/***/ }),
/* 216 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var fails = __webpack_require__(8);
var isArray = __webpack_require__(110);
var isObject = __webpack_require__(27);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
var doesNotExceedSafeInteger = __webpack_require__(181);
var createProperty = __webpack_require__(102);
var arraySpeciesCreate = __webpack_require__(108);
var arrayMethodHasSpeciesSupport = __webpack_require__(186);
var wellKnownSymbol = __webpack_require__(13);
var V8_VERSION = __webpack_require__(20);
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
 var array = [];
 array[IS_CONCAT_SPREADABLE] = false;
 return array.concat()[0] !== array;
});
var isConcatSpreadable = function (O) {
 if (!isObject(O))
  return false;
 var spreadable = O[IS_CONCAT_SPREADABLE];
 return spreadable !== undefined ? !!spreadable : isArray(O);
};
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
$({
 target: 'Array',
 proto: true,
 arity: 1,
 forced: FORCED
}, {
 concat: function concat(arg) {
  var O = toObject(this);
  var A = arraySpeciesCreate(O, 0);
  var n = 0;
  var i, k, length, len, E;
  for (i = -1, length = arguments.length; i < length; i++) {
   E = i === -1 ? O : arguments[i];
   if (isConcatSpreadable(E)) {
    len = lengthOfArrayLike(E);
    doesNotExceedSafeInteger(n + len);
    for (k = 0; k < len; k++, n++)
     if (k in E)
      createProperty(A, n, E[k]);
   } else {
    doesNotExceedSafeInteger(n + 1);
    createProperty(A, n++, E);
   }
  }
  A.length = n;
  return A;
 }
});

/***/ }),
/* 217 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var assign = __webpack_require__(218);
$({
 target: 'Object',
 stat: true,
 arity: 2,
 forced: Object.assign !== assign
}, { assign: assign });

/***/ }),
/* 218 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var uncurryThis = __webpack_require__(6);
var call = __webpack_require__(34);
var fails = __webpack_require__(8);
var objectKeys = __webpack_require__(49);
var getOwnPropertySymbolsModule = __webpack_require__(77);
var propertyIsEnumerableModule = __webpack_require__(69);
var toObject = __webpack_require__(9);
var IndexedObject = __webpack_require__(44);
var $assign = Object.assign;
var defineProperty = Object.defineProperty;
var concat = uncurryThis([].concat);
module.exports = !$assign || fails(function () {
 if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
   enumerable: true,
   get: function () {
    defineProperty(this, 'b', {
     value: 3,
     enumerable: false
    });
   }
  }), { b: 2 })).b !== 1)
  return true;
 var A = {};
 var B = {};
 var symbol = Symbol();
 var alphabet = 'abcdefghijklmnopqrst';
 A[symbol] = 7;
 alphabet.split('').forEach(function (chr) {
  B[chr] = chr;
 });
 return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
}) ? function assign(target, source) {
 var T = toObject(target);
 var argumentsLength = arguments.length;
 var index = 1;
 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
 var propertyIsEnumerable = propertyIsEnumerableModule.f;
 while (argumentsLength > index) {
  var S = IndexedObject(arguments[index++]);
  var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  var length = keys.length;
  var j = 0;
  var key;
  while (length > j) {
   key = keys[j++];
   if (!DESCRIPTORS || call(propertyIsEnumerable, S, key))
    T[key] = S[key];
  }
 }
 return T;
} : $assign;

/***/ }),
/* 219 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(206);
var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var isCallable = __webpack_require__(28);
var anObject = __webpack_require__(31);
var toString = __webpack_require__(94);
var DELEGATES_TO_EXEC = (function () {
 var execCalled = false;
 var re = /[ac]/;
 re.exec = function () {
  execCalled = true;
  return /./.exec.apply(this, arguments);
 };
 return re.test('abc') === true && execCalled;
}());
var nativeTest = /./.test;
$({
 target: 'RegExp',
 proto: true,
 forced: !DELEGATES_TO_EXEC
}, {
 test: function (S) {
  var R = anObject(this);
  var string = toString(S);
  var exec = R.exec;
  if (!isCallable(exec))
   return call(nativeTest, R, string);
  var result = call(exec, R, string);
  if (result === null)
   return false;
  anObject(result);
  return true;
 }
});

/***/ }),
/* 220 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $trim = (__webpack_require__(140).trim);
var forcedStringTrimMethod = __webpack_require__(221);
$({
 target: 'String',
 proto: true,
 forced: forcedStringTrimMethod('trim')
}, {
 trim: function trim() {
  return $trim(this);
 }
});

/***/ }),
/* 221 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var PROPER_FUNCTION_NAME = (__webpack_require__(72).PROPER);
var fails = __webpack_require__(8);
var whitespaces = __webpack_require__(141);
var non = '\u200B\u0085\u180E';
module.exports = function (METHOD_NAME) {
 return fails(function () {
  return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME;
 });
};

/***/ }),
/* 222 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var PROPER_FUNCTION_NAME = (__webpack_require__(72).PROPER);
var defineBuiltIn = __webpack_require__(70);
var anObject = __webpack_require__(31);
var $toString = __webpack_require__(94);
var fails = __webpack_require__(8);
var getRegExpFlags = __webpack_require__(223);
var TO_STRING = 'toString';
var RegExpPrototype = RegExp.prototype;
var nativeToString = RegExpPrototype[TO_STRING];
var NOT_GENERIC = fails(function () {
 return nativeToString.call({
  source: 'a',
  flags: 'b'
 }) != '/a/b';
});
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
if (NOT_GENERIC || INCORRECT_NAME) {
 defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
  var R = anObject(this);
  var pattern = $toString(R.source);
  var flags = $toString(getRegExpFlags(R));
  return '/' + pattern + '/' + flags;
 }, { unsafe: true });
}

/***/ }),
/* 223 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var hasOwn = __webpack_require__(5);
var isPrototypeOf = __webpack_require__(37);
var regExpFlags = __webpack_require__(208);
var RegExpPrototype = RegExp.prototype;
module.exports = function (R) {
 var flags = R.flags;
 return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags;
};

/***/ }),
/* 224 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var trunc = __webpack_require__(54);
$({
 target: 'Math',
 stat: true
}, { trunc: trunc });

/***/ }),
/* 225 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(226);

/***/ }),
/* 226 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(92);
var $ = __webpack_require__(67);
var DESCRIPTORS = __webpack_require__(24);
var USE_NATIVE_URL = __webpack_require__(227);
var global = __webpack_require__(4);
var bind = __webpack_require__(106);
var uncurryThis = __webpack_require__(6);
var defineBuiltIn = __webpack_require__(70);
var defineBuiltInAccessor = __webpack_require__(103);
var anInstance = __webpack_require__(146);
var hasOwn = __webpack_require__(5);
var assign = __webpack_require__(218);
var arrayFrom = __webpack_require__(193);
var arraySlice = __webpack_require__(101);
var codeAt = (__webpack_require__(93).codeAt);
var toASCII = __webpack_require__(228);
var $toString = __webpack_require__(94);
var setToStringTag = __webpack_require__(83);
var validateArgumentsLength = __webpack_require__(149);
var URLSearchParamsModule = __webpack_require__(229);
var InternalStateModule = __webpack_require__(62);
var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor('URL');
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;
var NativeURL = global.URL;
var TypeError = global.TypeError;
var parseInt = global.parseInt;
var floor = Math.floor;
var pow = Math.pow;
var charAt = uncurryThis(''.charAt);
var exec = uncurryThis(/./.exec);
var join = uncurryThis([].join);
var numberToString = uncurryThis(1.0.toString);
var pop = uncurryThis([].pop);
var push = uncurryThis([].push);
var replace = uncurryThis(''.replace);
var shift = uncurryThis([].shift);
var split = uncurryThis(''.split);
var stringSlice = uncurryThis(''.slice);
var toLowerCase = uncurryThis(''.toLowerCase);
var unshift = uncurryThis([].unshift);
var INVALID_AUTHORITY = 'Invalid authority';
var INVALID_SCHEME = 'Invalid scheme';
var INVALID_HOST = 'Invalid host';
var INVALID_PORT = 'Invalid port';
var ALPHA = /[a-z]/i;
var ALPHANUMERIC = /[\d+-.a-z]/i;
var DIGIT = /\d/;
var HEX_START = /^0x/i;
var OCT = /^[0-7]+$/;
var DEC = /^\d+$/;
var HEX = /^[\da-f]+$/i;
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
var EOF;
var parseIPv4 = function (input) {
 var parts = split(input, '.');
 var partsLength, numbers, index, part, radix, number, ipv4;
 if (parts.length && parts[parts.length - 1] == '') {
  parts.length--;
 }
 partsLength = parts.length;
 if (partsLength > 4)
  return input;
 numbers = [];
 for (index = 0; index < partsLength; index++) {
  part = parts[index];
  if (part == '')
   return input;
  radix = 10;
  if (part.length > 1 && charAt(part, 0) == '0') {
   radix = exec(HEX_START, part) ? 16 : 8;
   part = stringSlice(part, radix == 8 ? 1 : 2);
  }
  if (part === '') {
   number = 0;
  } else {
   if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part))
    return input;
   number = parseInt(part, radix);
  }
  push(numbers, number);
 }
 for (index = 0; index < partsLength; index++) {
  number = numbers[index];
  if (index == partsLength - 1) {
   if (number >= pow(256, 5 - partsLength))
    return null;
  } else if (number > 255)
   return null;
 }
 ipv4 = pop(numbers);
 for (index = 0; index < numbers.length; index++) {
  ipv4 += numbers[index] * pow(256, 3 - index);
 }
 return ipv4;
};
var parseIPv6 = function (input) {
 var address = [
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0
 ];
 var pieceIndex = 0;
 var compress = null;
 var pointer = 0;
 var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
 var chr = function () {
  return charAt(input, pointer);
 };
 if (chr() == ':') {
  if (charAt(input, 1) != ':')
   return;
  pointer += 2;
  pieceIndex++;
  compress = pieceIndex;
 }
 while (chr()) {
  if (pieceIndex == 8)
   return;
  if (chr() == ':') {
   if (compress !== null)
    return;
   pointer++;
   pieceIndex++;
   compress = pieceIndex;
   continue;
  }
  value = length = 0;
  while (length < 4 && exec(HEX, chr())) {
   value = value * 16 + parseInt(chr(), 16);
   pointer++;
   length++;
  }
  if (chr() == '.') {
   if (length == 0)
    return;
   pointer -= length;
   if (pieceIndex > 6)
    return;
   numbersSeen = 0;
   while (chr()) {
    ipv4Piece = null;
    if (numbersSeen > 0) {
     if (chr() == '.' && numbersSeen < 4)
      pointer++;
     else
      return;
    }
    if (!exec(DIGIT, chr()))
     return;
    while (exec(DIGIT, chr())) {
     number = parseInt(chr(), 10);
     if (ipv4Piece === null)
      ipv4Piece = number;
     else if (ipv4Piece == 0)
      return;
     else
      ipv4Piece = ipv4Piece * 10 + number;
     if (ipv4Piece > 255)
      return;
     pointer++;
    }
    address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
    numbersSeen++;
    if (numbersSeen == 2 || numbersSeen == 4)
     pieceIndex++;
   }
   if (numbersSeen != 4)
    return;
   break;
  } else if (chr() == ':') {
   pointer++;
   if (!chr())
    return;
  } else if (chr())
   return;
  address[pieceIndex++] = value;
 }
 if (compress !== null) {
  swaps = pieceIndex - compress;
  pieceIndex = 7;
  while (pieceIndex != 0 && swaps > 0) {
   swap = address[pieceIndex];
   address[pieceIndex--] = address[compress + swaps - 1];
   address[compress + --swaps] = swap;
  }
 } else if (pieceIndex != 8)
  return;
 return address;
};
var findLongestZeroSequence = function (ipv6) {
 var maxIndex = null;
 var maxLength = 1;
 var currStart = null;
 var currLength = 0;
 var index = 0;
 for (; index < 8; index++) {
  if (ipv6[index] !== 0) {
   if (currLength > maxLength) {
    maxIndex = currStart;
    maxLength = currLength;
   }
   currStart = null;
   currLength = 0;
  } else {
   if (currStart === null)
    currStart = index;
   ++currLength;
  }
 }
 if (currLength > maxLength) {
  maxIndex = currStart;
  maxLength = currLength;
 }
 return maxIndex;
};
var serializeHost = function (host) {
 var result, index, compress, ignore0;
 if (typeof host == 'number') {
  result = [];
  for (index = 0; index < 4; index++) {
   unshift(result, host % 256);
   host = floor(host / 256);
  }
  return join(result, '.');
 } else if (typeof host == 'object') {
  result = '';
  compress = findLongestZeroSequence(host);
  for (index = 0; index < 8; index++) {
   if (ignore0 && host[index] === 0)
    continue;
   if (ignore0)
    ignore0 = false;
   if (compress === index) {
    result += index ? ':' : '::';
    ignore0 = true;
   } else {
    result += numberToString(host[index], 16);
    if (index < 7)
     result += ':';
   }
  }
  return '[' + result + ']';
 }
 return host;
};
var C0ControlPercentEncodeSet = {};
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
 ' ': 1,
 '"': 1,
 '<': 1,
 '>': 1,
 '`': 1
});
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
 '#': 1,
 '?': 1,
 '{': 1,
 '}': 1
});
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
 '/': 1,
 ':': 1,
 ';': 1,
 '=': 1,
 '@': 1,
 '[': 1,
 '\\': 1,
 ']': 1,
 '^': 1,
 '|': 1
});
var percentEncode = function (chr, set) {
 var code = codeAt(chr, 0);
 return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
};
var specialSchemes = {
 ftp: 21,
 file: null,
 http: 80,
 https: 443,
 ws: 80,
 wss: 443
};
var isWindowsDriveLetter = function (string, normalized) {
 var second;
 return string.length == 2 && exec(ALPHA, charAt(string, 0)) && ((second = charAt(string, 1)) == ':' || !normalized && second == '|');
};
var startsWithWindowsDriveLetter = function (string) {
 var third;
 return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (string.length == 2 || ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#'));
};
var isSingleDot = function (segment) {
 return segment === '.' || toLowerCase(segment) === '%2e';
};
var isDoubleDot = function (segment) {
 segment = toLowerCase(segment);
 return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
};
var SCHEME_START = {};
var SCHEME = {};
var NO_SCHEME = {};
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
var PATH_OR_AUTHORITY = {};
var RELATIVE = {};
var RELATIVE_SLASH = {};
var SPECIAL_AUTHORITY_SLASHES = {};
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
var AUTHORITY = {};
var HOST = {};
var HOSTNAME = {};
var PORT = {};
var FILE = {};
var FILE_SLASH = {};
var FILE_HOST = {};
var PATH_START = {};
var PATH = {};
var CANNOT_BE_A_BASE_URL_PATH = {};
var QUERY = {};
var FRAGMENT = {};
var URLState = function (url, isBase, base) {
 var urlString = $toString(url);
 var baseState, failure, searchParams;
 if (isBase) {
  failure = this.parse(urlString);
  if (failure)
   throw TypeError(failure);
  this.searchParams = null;
 } else {
  if (base !== undefined)
   baseState = new URLState(base, true);
  failure = this.parse(urlString, null, baseState);
  if (failure)
   throw TypeError(failure);
  searchParams = getInternalSearchParamsState(new URLSearchParams());
  searchParams.bindURL(this);
  this.searchParams = searchParams;
 }
};
URLState.prototype = {
 type: 'URL',
 parse: function (input, stateOverride, base) {
  var url = this;
  var state = stateOverride || SCHEME_START;
  var pointer = 0;
  var buffer = '';
  var seenAt = false;
  var seenBracket = false;
  var seenPasswordToken = false;
  var codePoints, chr, bufferCodePoints, failure;
  input = $toString(input);
  if (!stateOverride) {
   url.scheme = '';
   url.username = '';
   url.password = '';
   url.host = null;
   url.port = null;
   url.path = [];
   url.query = null;
   url.fragment = null;
   url.cannotBeABaseURL = false;
   input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');
   input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
  }
  input = replace(input, TAB_AND_NEW_LINE, '');
  codePoints = arrayFrom(input);
  while (pointer <= codePoints.length) {
   chr = codePoints[pointer];
   switch (state) {
   case SCHEME_START:
    if (chr && exec(ALPHA, chr)) {
     buffer += toLowerCase(chr);
     state = SCHEME;
    } else if (!stateOverride) {
     state = NO_SCHEME;
     continue;
    } else
     return INVALID_SCHEME;
    break;
   case SCHEME:
    if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
     buffer += toLowerCase(chr);
    } else if (chr == ':') {
     if (stateOverride && (url.isSpecial() != hasOwn(specialSchemes, buffer) || buffer == 'file' && (url.includesCredentials() || url.port !== null) || url.scheme == 'file' && !url.host))
      return;
     url.scheme = buffer;
     if (stateOverride) {
      if (url.isSpecial() && specialSchemes[url.scheme] == url.port)
       url.port = null;
      return;
     }
     buffer = '';
     if (url.scheme == 'file') {
      state = FILE;
     } else if (url.isSpecial() && base && base.scheme == url.scheme) {
      state = SPECIAL_RELATIVE_OR_AUTHORITY;
     } else if (url.isSpecial()) {
      state = SPECIAL_AUTHORITY_SLASHES;
     } else if (codePoints[pointer + 1] == '/') {
      state = PATH_OR_AUTHORITY;
      pointer++;
     } else {
      url.cannotBeABaseURL = true;
      push(url.path, '');
      state = CANNOT_BE_A_BASE_URL_PATH;
     }
    } else if (!stateOverride) {
     buffer = '';
     state = NO_SCHEME;
     pointer = 0;
     continue;
    } else
     return INVALID_SCHEME;
    break;
   case NO_SCHEME:
    if (!base || base.cannotBeABaseURL && chr != '#')
     return INVALID_SCHEME;
    if (base.cannotBeABaseURL && chr == '#') {
     url.scheme = base.scheme;
     url.path = arraySlice(base.path);
     url.query = base.query;
     url.fragment = '';
     url.cannotBeABaseURL = true;
     state = FRAGMENT;
     break;
    }
    state = base.scheme == 'file' ? FILE : RELATIVE;
    continue;
   case SPECIAL_RELATIVE_OR_AUTHORITY:
    if (chr == '/' && codePoints[pointer + 1] == '/') {
     state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
     pointer++;
    } else {
     state = RELATIVE;
     continue;
    }
    break;
   case PATH_OR_AUTHORITY:
    if (chr == '/') {
     state = AUTHORITY;
     break;
    } else {
     state = PATH;
     continue;
    }
   case RELATIVE:
    url.scheme = base.scheme;
    if (chr == EOF) {
     url.username = base.username;
     url.password = base.password;
     url.host = base.host;
     url.port = base.port;
     url.path = arraySlice(base.path);
     url.query = base.query;
    } else if (chr == '/' || chr == '\\' && url.isSpecial()) {
     state = RELATIVE_SLASH;
    } else if (chr == '?') {
     url.username = base.username;
     url.password = base.password;
     url.host = base.host;
     url.port = base.port;
     url.path = arraySlice(base.path);
     url.query = '';
     state = QUERY;
    } else if (chr == '#') {
     url.username = base.username;
     url.password = base.password;
     url.host = base.host;
     url.port = base.port;
     url.path = arraySlice(base.path);
     url.query = base.query;
     url.fragment = '';
     state = FRAGMENT;
    } else {
     url.username = base.username;
     url.password = base.password;
     url.host = base.host;
     url.port = base.port;
     url.path = arraySlice(base.path);
     url.path.length--;
     state = PATH;
     continue;
    }
    break;
   case RELATIVE_SLASH:
    if (url.isSpecial() && (chr == '/' || chr == '\\')) {
     state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
    } else if (chr == '/') {
     state = AUTHORITY;
    } else {
     url.username = base.username;
     url.password = base.password;
     url.host = base.host;
     url.port = base.port;
     state = PATH;
     continue;
    }
    break;
   case SPECIAL_AUTHORITY_SLASHES:
    state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
    if (chr != '/' || charAt(buffer, pointer + 1) != '/')
     continue;
    pointer++;
    break;
   case SPECIAL_AUTHORITY_IGNORE_SLASHES:
    if (chr != '/' && chr != '\\') {
     state = AUTHORITY;
     continue;
    }
    break;
   case AUTHORITY:
    if (chr == '@') {
     if (seenAt)
      buffer = '%40' + buffer;
     seenAt = true;
     bufferCodePoints = arrayFrom(buffer);
     for (var i = 0; i < bufferCodePoints.length; i++) {
      var codePoint = bufferCodePoints[i];
      if (codePoint == ':' && !seenPasswordToken) {
       seenPasswordToken = true;
       continue;
      }
      var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
      if (seenPasswordToken)
       url.password += encodedCodePoints;
      else
       url.username += encodedCodePoints;
     }
     buffer = '';
    } else if (chr == EOF || chr == '/' || chr == '?' || chr == '#' || chr == '\\' && url.isSpecial()) {
     if (seenAt && buffer == '')
      return INVALID_AUTHORITY;
     pointer -= arrayFrom(buffer).length + 1;
     buffer = '';
     state = HOST;
    } else
     buffer += chr;
    break;
   case HOST:
   case HOSTNAME:
    if (stateOverride && url.scheme == 'file') {
     state = FILE_HOST;
     continue;
    } else if (chr == ':' && !seenBracket) {
     if (buffer == '')
      return INVALID_HOST;
     failure = url.parseHost(buffer);
     if (failure)
      return failure;
     buffer = '';
     state = PORT;
     if (stateOverride == HOSTNAME)
      return;
    } else if (chr == EOF || chr == '/' || chr == '?' || chr == '#' || chr == '\\' && url.isSpecial()) {
     if (url.isSpecial() && buffer == '')
      return INVALID_HOST;
     if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null))
      return;
     failure = url.parseHost(buffer);
     if (failure)
      return failure;
     buffer = '';
     state = PATH_START;
     if (stateOverride)
      return;
     continue;
    } else {
     if (chr == '[')
      seenBracket = true;
     else if (chr == ']')
      seenBracket = false;
     buffer += chr;
    }
    break;
   case PORT:
    if (exec(DIGIT, chr)) {
     buffer += chr;
    } else if (chr == EOF || chr == '/' || chr == '?' || chr == '#' || chr == '\\' && url.isSpecial() || stateOverride) {
     if (buffer != '') {
      var port = parseInt(buffer, 10);
      if (port > 0xFFFF)
       return INVALID_PORT;
      url.port = url.isSpecial() && port === specialSchemes[url.scheme] ? null : port;
      buffer = '';
     }
     if (stateOverride)
      return;
     state = PATH_START;
     continue;
    } else
     return INVALID_PORT;
    break;
   case FILE:
    url.scheme = 'file';
    if (chr == '/' || chr == '\\')
     state = FILE_SLASH;
    else if (base && base.scheme == 'file') {
     if (chr == EOF) {
      url.host = base.host;
      url.path = arraySlice(base.path);
      url.query = base.query;
     } else if (chr == '?') {
      url.host = base.host;
      url.path = arraySlice(base.path);
      url.query = '';
      state = QUERY;
     } else if (chr == '#') {
      url.host = base.host;
      url.path = arraySlice(base.path);
      url.query = base.query;
      url.fragment = '';
      state = FRAGMENT;
     } else {
      if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
       url.host = base.host;
       url.path = arraySlice(base.path);
       url.shortenPath();
      }
      state = PATH;
      continue;
     }
    } else {
     state = PATH;
     continue;
    }
    break;
   case FILE_SLASH:
    if (chr == '/' || chr == '\\') {
     state = FILE_HOST;
     break;
    }
    if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
     if (isWindowsDriveLetter(base.path[0], true))
      push(url.path, base.path[0]);
     else
      url.host = base.host;
    }
    state = PATH;
    continue;
   case FILE_HOST:
    if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
     if (!stateOverride && isWindowsDriveLetter(buffer)) {
      state = PATH;
     } else if (buffer == '') {
      url.host = '';
      if (stateOverride)
       return;
      state = PATH_START;
     } else {
      failure = url.parseHost(buffer);
      if (failure)
       return failure;
      if (url.host == 'localhost')
       url.host = '';
      if (stateOverride)
       return;
      buffer = '';
      state = PATH_START;
     }
     continue;
    } else
     buffer += chr;
    break;
   case PATH_START:
    if (url.isSpecial()) {
     state = PATH;
     if (chr != '/' && chr != '\\')
      continue;
    } else if (!stateOverride && chr == '?') {
     url.query = '';
     state = QUERY;
    } else if (!stateOverride && chr == '#') {
     url.fragment = '';
     state = FRAGMENT;
    } else if (chr != EOF) {
     state = PATH;
     if (chr != '/')
      continue;
    }
    break;
   case PATH:
    if (chr == EOF || chr == '/' || chr == '\\' && url.isSpecial() || !stateOverride && (chr == '?' || chr == '#')) {
     if (isDoubleDot(buffer)) {
      url.shortenPath();
      if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
       push(url.path, '');
      }
     } else if (isSingleDot(buffer)) {
      if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
       push(url.path, '');
      }
     } else {
      if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
       if (url.host)
        url.host = '';
       buffer = charAt(buffer, 0) + ':';
      }
      push(url.path, buffer);
     }
     buffer = '';
     if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
      while (url.path.length > 1 && url.path[0] === '') {
       shift(url.path);
      }
     }
     if (chr == '?') {
      url.query = '';
      state = QUERY;
     } else if (chr == '#') {
      url.fragment = '';
      state = FRAGMENT;
     }
    } else {
     buffer += percentEncode(chr, pathPercentEncodeSet);
    }
    break;
   case CANNOT_BE_A_BASE_URL_PATH:
    if (chr == '?') {
     url.query = '';
     state = QUERY;
    } else if (chr == '#') {
     url.fragment = '';
     state = FRAGMENT;
    } else if (chr != EOF) {
     url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
    }
    break;
   case QUERY:
    if (!stateOverride && chr == '#') {
     url.fragment = '';
     state = FRAGMENT;
    } else if (chr != EOF) {
     if (chr == "'" && url.isSpecial())
      url.query += '%27';
     else if (chr == '#')
      url.query += '%23';
     else
      url.query += percentEncode(chr, C0ControlPercentEncodeSet);
    }
    break;
   case FRAGMENT:
    if (chr != EOF)
     url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
    break;
   }
   pointer++;
  }
 },
 parseHost: function (input) {
  var result, codePoints, index;
  if (charAt(input, 0) == '[') {
   if (charAt(input, input.length - 1) != ']')
    return INVALID_HOST;
   result = parseIPv6(stringSlice(input, 1, -1));
   if (!result)
    return INVALID_HOST;
   this.host = result;
  } else if (!this.isSpecial()) {
   if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input))
    return INVALID_HOST;
   result = '';
   codePoints = arrayFrom(input);
   for (index = 0; index < codePoints.length; index++) {
    result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
   }
   this.host = result;
  } else {
   input = toASCII(input);
   if (exec(FORBIDDEN_HOST_CODE_POINT, input))
    return INVALID_HOST;
   result = parseIPv4(input);
   if (result === null)
    return INVALID_HOST;
   this.host = result;
  }
 },
 cannotHaveUsernamePasswordPort: function () {
  return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
 },
 includesCredentials: function () {
  return this.username != '' || this.password != '';
 },
 isSpecial: function () {
  return hasOwn(specialSchemes, this.scheme);
 },
 shortenPath: function () {
  var path = this.path;
  var pathSize = path.length;
  if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
   path.length--;
  }
 },
 serialize: function () {
  var url = this;
  var scheme = url.scheme;
  var username = url.username;
  var password = url.password;
  var host = url.host;
  var port = url.port;
  var path = url.path;
  var query = url.query;
  var fragment = url.fragment;
  var output = scheme + ':';
  if (host !== null) {
   output += '//';
   if (url.includesCredentials()) {
    output += username + (password ? ':' + password : '') + '@';
   }
   output += serializeHost(host);
   if (port !== null)
    output += ':' + port;
  } else if (scheme == 'file')
   output += '//';
  output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
  if (query !== null)
   output += '?' + query;
  if (fragment !== null)
   output += '#' + fragment;
  return output;
 },
 setHref: function (href) {
  var failure = this.parse(href);
  if (failure)
   throw TypeError(failure);
  this.searchParams.update();
 },
 getOrigin: function () {
  var scheme = this.scheme;
  var port = this.port;
  if (scheme == 'blob')
   try {
    return new URLConstructor(scheme.path[0]).origin;
   } catch (error) {
    return 'null';
   }
  if (scheme == 'file' || !this.isSpecial())
   return 'null';
  return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
 },
 getProtocol: function () {
  return this.scheme + ':';
 },
 setProtocol: function (protocol) {
  this.parse($toString(protocol) + ':', SCHEME_START);
 },
 getUsername: function () {
  return this.username;
 },
 setUsername: function (username) {
  var codePoints = arrayFrom($toString(username));
  if (this.cannotHaveUsernamePasswordPort())
   return;
  this.username = '';
  for (var i = 0; i < codePoints.length; i++) {
   this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
  }
 },
 getPassword: function () {
  return this.password;
 },
 setPassword: function (password) {
  var codePoints = arrayFrom($toString(password));
  if (this.cannotHaveUsernamePasswordPort())
   return;
  this.password = '';
  for (var i = 0; i < codePoints.length; i++) {
   this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
  }
 },
 getHost: function () {
  var host = this.host;
  var port = this.port;
  return host === null ? '' : port === null ? serializeHost(host) : serializeHost(host) + ':' + port;
 },
 setHost: function (host) {
  if (this.cannotBeABaseURL)
   return;
  this.parse(host, HOST);
 },
 getHostname: function () {
  var host = this.host;
  return host === null ? '' : serializeHost(host);
 },
 setHostname: function (hostname) {
  if (this.cannotBeABaseURL)
   return;
  this.parse(hostname, HOSTNAME);
 },
 getPort: function () {
  var port = this.port;
  return port === null ? '' : $toString(port);
 },
 setPort: function (port) {
  if (this.cannotHaveUsernamePasswordPort())
   return;
  port = $toString(port);
  if (port == '')
   this.port = null;
  else
   this.parse(port, PORT);
 },
 getPathname: function () {
  var path = this.path;
  return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
 },
 setPathname: function (pathname) {
  if (this.cannotBeABaseURL)
   return;
  this.path = [];
  this.parse(pathname, PATH_START);
 },
 getSearch: function () {
  var query = this.query;
  return query ? '?' + query : '';
 },
 setSearch: function (search) {
  search = $toString(search);
  if (search == '') {
   this.query = null;
  } else {
   if ('?' == charAt(search, 0))
    search = stringSlice(search, 1);
   this.query = '';
   this.parse(search, QUERY);
  }
  this.searchParams.update();
 },
 getSearchParams: function () {
  return this.searchParams.facade;
 },
 getHash: function () {
  var fragment = this.fragment;
  return fragment ? '#' + fragment : '';
 },
 setHash: function (hash) {
  hash = $toString(hash);
  if (hash == '') {
   this.fragment = null;
   return;
  }
  if ('#' == charAt(hash, 0))
   hash = stringSlice(hash, 1);
  this.fragment = '';
  this.parse(hash, FRAGMENT);
 },
 update: function () {
  this.query = this.searchParams.serialize() || null;
 }
};
var URLConstructor = function URL(url) {
 var that = anInstance(this, URLPrototype);
 var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
 var state = setInternalState(that, new URLState(url, false, base));
 if (!DESCRIPTORS) {
  that.href = state.serialize();
  that.origin = state.getOrigin();
  that.protocol = state.getProtocol();
  that.username = state.getUsername();
  that.password = state.getPassword();
  that.host = state.getHost();
  that.hostname = state.getHostname();
  that.port = state.getPort();
  that.pathname = state.getPathname();
  that.search = state.getSearch();
  that.searchParams = state.getSearchParams();
  that.hash = state.getHash();
 }
};
var URLPrototype = URLConstructor.prototype;
var accessorDescriptor = function (getter, setter) {
 return {
  get: function () {
   return getInternalURLState(this)[getter]();
  },
  set: setter && function (value) {
   return getInternalURLState(this)[setter](value);
  },
  configurable: true,
  enumerable: true
 };
};
if (DESCRIPTORS) {
 defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
 defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
 defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
 defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
 defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
 defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
 defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
 defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
 defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
 defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
 defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
 defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
}
defineBuiltIn(URLPrototype, 'toJSON', function toJSON() {
 return getInternalURLState(this).serialize();
}, { enumerable: true });
defineBuiltIn(URLPrototype, 'toString', function toString() {
 return getInternalURLState(this).serialize();
}, { enumerable: true });
if (NativeURL) {
 var nativeCreateObjectURL = NativeURL.createObjectURL;
 var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
 if (nativeCreateObjectURL)
  defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
 if (nativeRevokeObjectURL)
  defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
}
setToStringTag(URLConstructor, 'URL');
$({
 global: true,
 constructor: true,
 forced: !USE_NATIVE_URL,
 sham: !DESCRIPTORS
}, { URL: URLConstructor });

/***/ }),
/* 227 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var wellKnownSymbol = __webpack_require__(13);
var DESCRIPTORS = __webpack_require__(24);
var IS_PURE = __webpack_require__(15);
var ITERATOR = wellKnownSymbol('iterator');
module.exports = !fails(function () {
 var url = new URL('b?a=1&b=2&c=3', 'http://a');
 var params = url.searchParams;
 var params2 = new URLSearchParams('a=1&a=2&b=3');
 var result = '';
 url.pathname = 'c%20d';
 params.forEach(function (value, key) {
  params['delete']('b');
  result += key + value;
 });
 params2['delete']('a', 2);
 params2['delete']('b', undefined);
 return IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')) || !params.size && (IS_PURE || !DESCRIPTORS) || !params.sort || url.href !== 'http://a/c%20d?a=1&c=3' || params.get('c') !== '3' || String(new URLSearchParams('?a=1')) !== 'a=1' || !params[ITERATOR] || new URL('https://a@b').username !== 'a' || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' || new URL('http://тест').host !== 'xn--e1aybc' || new URL('http://a#б').hash !== '#%D0%B1' || result !== 'a1c3' || new URL('http://x', undefined).host !== 'x';
});

/***/ }),
/* 228 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var maxInt = 2147483647;
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128;
var delimiter = '-';
var regexNonASCII = /[^\0-\u007E]/;
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g;
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
var baseMinusTMin = base - tMin;
var $RangeError = RangeError;
var exec = uncurryThis(regexSeparators.exec);
var floor = Math.floor;
var fromCharCode = String.fromCharCode;
var charCodeAt = uncurryThis(''.charCodeAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis(''.replace);
var split = uncurryThis(''.split);
var toLowerCase = uncurryThis(''.toLowerCase);
var ucs2decode = function (string) {
 var output = [];
 var counter = 0;
 var length = string.length;
 while (counter < length) {
  var value = charCodeAt(string, counter++);
  if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
   var extra = charCodeAt(string, counter++);
   if ((extra & 0xFC00) == 0xDC00) {
    push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
   } else {
    push(output, value);
    counter--;
   }
  } else {
   push(output, value);
  }
 }
 return output;
};
var digitToBasic = function (digit) {
 return digit + 22 + 75 * (digit < 26);
};
var adapt = function (delta, numPoints, firstTime) {
 var k = 0;
 delta = firstTime ? floor(delta / damp) : delta >> 1;
 delta += floor(delta / numPoints);
 while (delta > baseMinusTMin * tMax >> 1) {
  delta = floor(delta / baseMinusTMin);
  k += base;
 }
 return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
};
var encode = function (input) {
 var output = [];
 input = ucs2decode(input);
 var inputLength = input.length;
 var n = initialN;
 var delta = 0;
 var bias = initialBias;
 var i, currentValue;
 for (i = 0; i < input.length; i++) {
  currentValue = input[i];
  if (currentValue < 0x80) {
   push(output, fromCharCode(currentValue));
  }
 }
 var basicLength = output.length;
 var handledCPCount = basicLength;
 if (basicLength) {
  push(output, delimiter);
 }
 while (handledCPCount < inputLength) {
  var m = maxInt;
  for (i = 0; i < input.length; i++) {
   currentValue = input[i];
   if (currentValue >= n && currentValue < m) {
    m = currentValue;
   }
  }
  var handledCPCountPlusOne = handledCPCount + 1;
  if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
   throw $RangeError(OVERFLOW_ERROR);
  }
  delta += (m - n) * handledCPCountPlusOne;
  n = m;
  for (i = 0; i < input.length; i++) {
   currentValue = input[i];
   if (currentValue < n && ++delta > maxInt) {
    throw $RangeError(OVERFLOW_ERROR);
   }
   if (currentValue == n) {
    var q = delta;
    var k = base;
    while (true) {
     var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
     if (q < t)
      break;
     var qMinusT = q - t;
     var baseMinusT = base - t;
     push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
     q = floor(qMinusT / baseMinusT);
     k += base;
    }
    push(output, fromCharCode(digitToBasic(q)));
    bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
    delta = 0;
    handledCPCount++;
   }
  }
  delta++;
  n++;
 }
 return join(output, '');
};
module.exports = function (input) {
 var encoded = [];
 var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.');
 var i, label;
 for (i = 0; i < labels.length; i++) {
  label = labels[i];
  push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);
 }
 return join(encoded, '.');
};

/***/ }),
/* 229 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(42);
var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var DESCRIPTORS = __webpack_require__(24);
var USE_NATIVE_URL = __webpack_require__(227);
var defineBuiltIn = __webpack_require__(70);
var defineBuiltInAccessor = __webpack_require__(103);
var defineBuiltIns = __webpack_require__(230);
var setToStringTag = __webpack_require__(83);
var createIteratorConstructor = __webpack_require__(79);
var InternalStateModule = __webpack_require__(62);
var anInstance = __webpack_require__(146);
var isCallable = __webpack_require__(28);
var hasOwn = __webpack_require__(5);
var bind = __webpack_require__(106);
var classof = __webpack_require__(91);
var anObject = __webpack_require__(31);
var isObject = __webpack_require__(27);
var $toString = __webpack_require__(94);
var create = __webpack_require__(47);
var createPropertyDescriptor = __webpack_require__(65);
var getIterator = __webpack_require__(165);
var getIteratorMethod = __webpack_require__(166);
var validateArgumentsLength = __webpack_require__(149);
var wellKnownSymbol = __webpack_require__(13);
var arraySort = __webpack_require__(231);
var ITERATOR = wellKnownSymbol('iterator');
var URL_SEARCH_PARAMS = 'URLSearchParams';
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
var setInternalState = InternalStateModule.set;
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var safeGetBuiltIn = function (name) {
 if (!DESCRIPTORS)
  return global[name];
 var descriptor = getOwnPropertyDescriptor(global, name);
 return descriptor && descriptor.value;
};
var nativeFetch = safeGetBuiltIn('fetch');
var NativeRequest = safeGetBuiltIn('Request');
var Headers = safeGetBuiltIn('Headers');
var RequestPrototype = NativeRequest && NativeRequest.prototype;
var HeadersPrototype = Headers && Headers.prototype;
var RegExp = global.RegExp;
var TypeError = global.TypeError;
var decodeURIComponent = global.decodeURIComponent;
var encodeURIComponent = global.encodeURIComponent;
var charAt = uncurryThis(''.charAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis(''.replace);
var shift = uncurryThis([].shift);
var splice = uncurryThis([].splice);
var split = uncurryThis(''.split);
var stringSlice = uncurryThis(''.slice);
var plus = /\+/g;
var sequences = Array(4);
var percentSequence = function (bytes) {
 return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
};
var percentDecode = function (sequence) {
 try {
  return decodeURIComponent(sequence);
 } catch (error) {
  return sequence;
 }
};
var deserialize = function (it) {
 var result = replace(it, plus, ' ');
 var bytes = 4;
 try {
  return decodeURIComponent(result);
 } catch (error) {
  while (bytes) {
   result = replace(result, percentSequence(bytes--), percentDecode);
  }
  return result;
 }
};
var find = /[!'()~]|%20/g;
var replacements = {
 '!': '%21',
 "'": '%27',
 '(': '%28',
 ')': '%29',
 '~': '%7E',
 '%20': '+'
};
var replacer = function (match) {
 return replacements[match];
};
var serialize = function (it) {
 return replace(encodeURIComponent(it), find, replacer);
};
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
 setInternalState(this, {
  type: URL_SEARCH_PARAMS_ITERATOR,
  iterator: getIterator(getInternalParamsState(params).entries),
  kind: kind
 });
}, 'Iterator', function next() {
 var state = getInternalIteratorState(this);
 var kind = state.kind;
 var step = state.iterator.next();
 var entry = step.value;
 if (!step.done) {
  step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [
   entry.key,
   entry.value
  ];
 }
 return step;
}, true);
var URLSearchParamsState = function (init) {
 this.entries = [];
 this.url = null;
 if (init !== undefined) {
  if (isObject(init))
   this.parseObject(init);
  else
   this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
 }
};
URLSearchParamsState.prototype = {
 type: URL_SEARCH_PARAMS,
 bindURL: function (url) {
  this.url = url;
  this.update();
 },
 parseObject: function (object) {
  var iteratorMethod = getIteratorMethod(object);
  var iterator, next, step, entryIterator, entryNext, first, second;
  if (iteratorMethod) {
   iterator = getIterator(object, iteratorMethod);
   next = iterator.next;
   while (!(step = call(next, iterator)).done) {
    entryIterator = getIterator(anObject(step.value));
    entryNext = entryIterator.next;
    if ((first = call(entryNext, entryIterator)).done || (second = call(entryNext, entryIterator)).done || !call(entryNext, entryIterator).done)
     throw TypeError('Expected sequence with length 2');
    push(this.entries, {
     key: $toString(first.value),
     value: $toString(second.value)
    });
   }
  } else
   for (var key in object)
    if (hasOwn(object, key)) {
     push(this.entries, {
      key: key,
      value: $toString(object[key])
     });
    }
 },
 parseQuery: function (query) {
  if (query) {
   var attributes = split(query, '&');
   var index = 0;
   var attribute, entry;
   while (index < attributes.length) {
    attribute = attributes[index++];
    if (attribute.length) {
     entry = split(attribute, '=');
     push(this.entries, {
      key: deserialize(shift(entry)),
      value: deserialize(join(entry, '='))
     });
    }
   }
  }
 },
 serialize: function () {
  var entries = this.entries;
  var result = [];
  var index = 0;
  var entry;
  while (index < entries.length) {
   entry = entries[index++];
   push(result, serialize(entry.key) + '=' + serialize(entry.value));
  }
  return join(result, '&');
 },
 update: function () {
  this.entries.length = 0;
  this.parseQuery(this.url.query);
 },
 updateURL: function () {
  if (this.url)
   this.url.update();
 }
};
var URLSearchParamsConstructor = function URLSearchParams() {
 anInstance(this, URLSearchParamsPrototype);
 var init = arguments.length > 0 ? arguments[0] : undefined;
 var state = setInternalState(this, new URLSearchParamsState(init));
 if (!DESCRIPTORS)
  this.size = state.entries.length;
};
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
defineBuiltIns(URLSearchParamsPrototype, {
 append: function append(name, value) {
  var state = getInternalParamsState(this);
  validateArgumentsLength(arguments.length, 2);
  push(state.entries, {
   key: $toString(name),
   value: $toString(value)
  });
  if (!DESCRIPTORS)
   this.length++;
  state.updateURL();
 },
 'delete': function (name) {
  var state = getInternalParamsState(this);
  var length = validateArgumentsLength(arguments.length, 1);
  var entries = state.entries;
  var key = $toString(name);
  var $value = length < 2 ? undefined : arguments[1];
  var value = $value === undefined ? $value : $toString($value);
  var index = 0;
  while (index < entries.length) {
   var entry = entries[index];
   if (entry.key === key && (value === undefined || entry.value === value)) {
    splice(entries, index, 1);
    if (value !== undefined)
     break;
   } else
    index++;
  }
  if (!DESCRIPTORS)
   this.size = entries.length;
  state.updateURL();
 },
 get: function get(name) {
  var entries = getInternalParamsState(this).entries;
  validateArgumentsLength(arguments.length, 1);
  var key = $toString(name);
  var index = 0;
  for (; index < entries.length; index++) {
   if (entries[index].key === key)
    return entries[index].value;
  }
  return null;
 },
 getAll: function getAll(name) {
  var entries = getInternalParamsState(this).entries;
  validateArgumentsLength(arguments.length, 1);
  var key = $toString(name);
  var result = [];
  var index = 0;
  for (; index < entries.length; index++) {
   if (entries[index].key === key)
    push(result, entries[index].value);
  }
  return result;
 },
 has: function has(name) {
  var entries = getInternalParamsState(this).entries;
  var length = validateArgumentsLength(arguments.length, 1);
  var key = $toString(name);
  var $value = length < 2 ? undefined : arguments[1];
  var value = $value === undefined ? $value : $toString($value);
  var index = 0;
  while (index < entries.length) {
   var entry = entries[index++];
   if (entry.key === key && (value === undefined || entry.value === value))
    return true;
  }
  return false;
 },
 set: function set(name, value) {
  var state = getInternalParamsState(this);
  validateArgumentsLength(arguments.length, 1);
  var entries = state.entries;
  var found = false;
  var key = $toString(name);
  var val = $toString(value);
  var index = 0;
  var entry;
  for (; index < entries.length; index++) {
   entry = entries[index];
   if (entry.key === key) {
    if (found)
     splice(entries, index--, 1);
    else {
     found = true;
     entry.value = val;
    }
   }
  }
  if (!found)
   push(entries, {
    key: key,
    value: val
   });
  if (!DESCRIPTORS)
   this.size = entries.length;
  state.updateURL();
 },
 sort: function sort() {
  var state = getInternalParamsState(this);
  arraySort(state.entries, function (a, b) {
   return a.key > b.key ? 1 : -1;
  });
  state.updateURL();
 },
 forEach: function forEach(callback) {
  var entries = getInternalParamsState(this).entries;
  var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
  var index = 0;
  var entry;
  while (index < entries.length) {
   entry = entries[index++];
   boundFunction(entry.value, entry.key, this);
  }
 },
 keys: function keys() {
  return new URLSearchParamsIterator(this, 'keys');
 },
 values: function values() {
  return new URLSearchParamsIterator(this, 'values');
 },
 entries: function entries() {
  return new URLSearchParamsIterator(this, 'entries');
 }
}, { enumerable: true });
defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
 return getInternalParamsState(this).serialize();
}, { enumerable: true });
if (DESCRIPTORS)
 defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
  get: function size() {
   return getInternalParamsState(this).entries.length;
  },
  configurable: true,
  enumerable: true
 });
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
$({
 global: true,
 constructor: true,
 forced: !USE_NATIVE_URL
}, { URLSearchParams: URLSearchParamsConstructor });
if (!USE_NATIVE_URL && isCallable(Headers)) {
 var headersHas = uncurryThis(HeadersPrototype.has);
 var headersSet = uncurryThis(HeadersPrototype.set);
 var wrapRequestOptions = function (init) {
  if (isObject(init)) {
   var body = init.body;
   var headers;
   if (classof(body) === URL_SEARCH_PARAMS) {
    headers = init.headers ? new Headers(init.headers) : new Headers();
    if (!headersHas(headers, 'content-type')) {
     headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
    }
    return create(init, {
     body: createPropertyDescriptor(0, $toString(body)),
     headers: createPropertyDescriptor(0, headers)
    });
   }
  }
  return init;
 };
 if (isCallable(nativeFetch)) {
  $({
   global: true,
   enumerable: true,
   dontCallGetSet: true,
   forced: true
  }, {
   fetch: function fetch(input) {
    return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
   }
  });
 }
 if (isCallable(NativeRequest)) {
  var RequestConstructor = function Request(input) {
   anInstance(this, RequestPrototype);
   return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
  };
  RequestPrototype.constructor = RequestConstructor;
  RequestConstructor.prototype = RequestPrototype;
  $({
   global: true,
   constructor: true,
   dontCallGetSet: true,
   forced: true
  }, { Request: RequestConstructor });
 }
}
module.exports = {
 URLSearchParams: URLSearchParamsConstructor,
 getState: getInternalParamsState
};

/***/ }),
/* 230 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var defineBuiltIn = __webpack_require__(70);
module.exports = function (target, src, options) {
 for (var key in src)
  defineBuiltIn(target, key, src[key], options);
 return target;
};

/***/ }),
/* 231 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var arraySlice = __webpack_require__(101);
var floor = Math.floor;
var mergeSort = function (array, comparefn) {
 var length = array.length;
 var middle = floor(length / 2);
 return length < 8 ? insertionSort(array, comparefn) : merge(array, mergeSort(arraySlice(array, 0, middle), comparefn), mergeSort(arraySlice(array, middle), comparefn), comparefn);
};
var insertionSort = function (array, comparefn) {
 var length = array.length;
 var i = 1;
 var element, j;
 while (i < length) {
  j = i;
  element = array[i];
  while (j && comparefn(array[j - 1], element) > 0) {
   array[j] = array[--j];
  }
  if (j !== i++)
   array[j] = element;
 }
 return array;
};
var merge = function (array, left, right, comparefn) {
 var llength = left.length;
 var rlength = right.length;
 var lindex = 0;
 var rindex = 0;
 while (lindex < llength || rindex < rlength) {
  array[lindex + rindex] = lindex < llength && rindex < rlength ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] : lindex < llength ? left[lindex++] : right[rindex++];
 }
 return array;
};
module.exports = mergeSort;

/***/ }),
/* 232 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(229);

/***/ }),
/* 233 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var defineBuiltIn = __webpack_require__(70);
var uncurryThis = __webpack_require__(6);
var toString = __webpack_require__(94);
var validateArgumentsLength = __webpack_require__(149);
var $URLSearchParams = URLSearchParams;
var URLSearchParamsPrototype = $URLSearchParams.prototype;
var append = uncurryThis(URLSearchParamsPrototype.append);
var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
var push = uncurryThis([].push);
var params = new $URLSearchParams('a=1&a=2&b=3');
params['delete']('a', 1);
params['delete']('b', undefined);
if (params + '' !== 'a=2') {
 defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name) {
  var length = arguments.length;
  var $value = length < 2 ? undefined : arguments[1];
  if (length && $value === undefined)
   return $delete(this, name);
  var entries = [];
  forEach(this, function (v, k) {
   push(entries, {
    key: k,
    value: v
   });
  });
  validateArgumentsLength(length, 1);
  var key = toString(name);
  var value = toString($value);
  var index = 0;
  var dindex = 0;
  var found = false;
  var entriesLength = entries.length;
  var entry;
  while (index < entriesLength) {
   entry = entries[index++];
   if (found || entry.key === key) {
    found = true;
    $delete(this, entry.key);
   } else
    dindex++;
  }
  while (dindex < entriesLength) {
   entry = entries[dindex++];
   if (!(entry.key === key && entry.value === value))
    append(this, entry.key, entry.value);
  }
 }, {
  enumerable: true,
  unsafe: true
 });
}

/***/ }),
/* 234 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var defineBuiltIn = __webpack_require__(70);
var uncurryThis = __webpack_require__(6);
var toString = __webpack_require__(94);
var validateArgumentsLength = __webpack_require__(149);
var $URLSearchParams = URLSearchParams;
var URLSearchParamsPrototype = $URLSearchParams.prototype;
var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
var $has = uncurryThis(URLSearchParamsPrototype.has);
var params = new $URLSearchParams('a=1');
if (params.has('a', 2) || !params.has('a', undefined)) {
 defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name) {
  var length = arguments.length;
  var $value = length < 2 ? undefined : arguments[1];
  if (length && $value === undefined)
   return $has(this, name);
  var values = getAll(this, name);
  validateArgumentsLength(length, 1);
  var value = toString($value);
  var index = 0;
  while (index < values.length) {
   if (values[index++] === value)
    return true;
  }
  return false;
 }, {
  enumerable: true,
  unsafe: true
 });
}

/***/ }),
/* 235 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var uncurryThis = __webpack_require__(6);
var defineBuiltInAccessor = __webpack_require__(103);
var URLSearchParamsPrototype = URLSearchParams.prototype;
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
 defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
  get: function size() {
   var count = 0;
   forEach(this, function () {
    count++;
   });
   return count;
  },
  configurable: true,
  enumerable: true
 });
}

/***/ }),
/* 236 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var sign = __webpack_require__(237);
$({
 target: 'Math',
 stat: true
}, { sign: sign });

/***/ }),
/* 237 */
/***/ ((module) => {


module.exports = Math.sign || function sign(x) {
 var n = +x;
 return n == 0 || n != n ? n : n < 0 ? -1 : 1;
};

/***/ }),
/* 238 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $hypot = Math.hypot;
var abs = Math.abs;
var sqrt = Math.sqrt;
var FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
$({
 target: 'Math',
 stat: true,
 arity: 2,
 forced: FORCED
}, {
 hypot: function hypot(value1, value2) {
  var sum = 0;
  var i = 0;
  var aLen = arguments.length;
  var larg = 0;
  var arg, div;
  while (i < aLen) {
   arg = abs(arguments[i++]);
   if (larg < arg) {
    div = larg / arg;
    sum = sum * div * div + 1;
    larg = arg;
   } else if (arg > 0) {
    div = arg / larg;
    sum += div * div;
   } else
    sum += arg;
  }
  return larg === Infinity ? Infinity : larg * sqrt(sum);
 }
});

/***/ }),
/* 239 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(1);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(219);Object.defineProperty(exports, "__esModule", ({value:true}));exports.animationStarted=exports.VERTICAL_PADDING=exports.UNKNOWN_SCALE=exports.TextLayerMode=exports.SpreadMode=exports.SidebarView=exports.ScrollMode=exports.SCROLLBAR_PADDING=exports.RenderingStates=exports.ProgressBar=exports.PresentationModeState=exports.OutputScale=exports.MIN_SCALE=exports.MAX_SCALE=exports.MAX_AUTO_SCALE=exports.DEFAULT_SCALE_VALUE=exports.DEFAULT_SCALE_DELTA=exports.DEFAULT_SCALE=exports.CursorTool=exports.AutoPrintRegExp=void 0;exports.apiPageLayoutToViewerModes=apiPageLayoutToViewerModes;exports.apiPageModeToSidebarView=apiPageModeToSidebarView;exports.approximateFraction=approximateFraction;exports.backtrackBeforeAllVisibleElements=backtrackBeforeAllVisibleElements;exports.binarySearchFirstItem=binarySearchFirstItem;exports.docStyle=void 0;exports.getActiveOrFocusedElement=getActiveOrFocusedElement;exports.getPageSizeInches=getPageSizeInches;exports.getVisibleElements=getVisibleElements;exports.isPortraitOrientation=isPortraitOrientation;exports.isValidRotation=isValidRotation;exports.isValidScrollMode=isValidScrollMode;exports.isValidSpreadMode=isValidSpreadMode;exports.noContextMenuHandler=noContextMenuHandler;exports.normalizeWheelEventDelta=normalizeWheelEventDelta;exports.normalizeWheelEventDirection=normalizeWheelEventDirection;exports.parseQueryString=parseQueryString;exports.removeNullCharacters=removeNullCharacters;exports.roundToDivide=roundToDivide;exports.scrollIntoView=scrollIntoView;exports.toggleCheckedBtn=toggleCheckedBtn;exports.toggleExpandedBtn=toggleExpandedBtn;exports.watchScroll=watchScroll;__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(126);__webpack_require__(138);__webpack_require__(198);__webpack_require__(42);__webpack_require__(240);__webpack_require__(92);__webpack_require__(95);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);__webpack_require__(206);__webpack_require__(248);__webpack_require__(251);__webpack_require__(252);__webpack_require__(254);__webpack_require__(265);__webpack_require__(267);__webpack_require__(269);__webpack_require__(271);__webpack_require__(273);__webpack_require__(275);__webpack_require__(179);__webpack_require__(277);__webpack_require__(278);__webpack_require__(238);__webpack_require__(199);__webpack_require__(200);__webpack_require__(204);__webpack_require__(142);__webpack_require__(283);function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var DEFAULT_SCALE_VALUE="auto";exports.DEFAULT_SCALE_VALUE=DEFAULT_SCALE_VALUE;var DEFAULT_SCALE=1.0;exports.DEFAULT_SCALE=DEFAULT_SCALE;var DEFAULT_SCALE_DELTA=1.1;exports.DEFAULT_SCALE_DELTA=DEFAULT_SCALE_DELTA;var MIN_SCALE=0.1;exports.MIN_SCALE=MIN_SCALE;var MAX_SCALE=10.0;exports.MAX_SCALE=MAX_SCALE;var UNKNOWN_SCALE=0;exports.UNKNOWN_SCALE=UNKNOWN_SCALE;var MAX_AUTO_SCALE=1.25;exports.MAX_AUTO_SCALE=MAX_AUTO_SCALE;var SCROLLBAR_PADDING=40;exports.SCROLLBAR_PADDING=SCROLLBAR_PADDING;var VERTICAL_PADDING=5;exports.VERTICAL_PADDING=VERTICAL_PADDING;var RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};exports.RenderingStates=RenderingStates;var PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};exports.PresentationModeState=PresentationModeState;var SidebarView={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};exports.SidebarView=SidebarView;var TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2};exports.TextLayerMode=TextLayerMode;var ScrollMode={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};exports.ScrollMode=ScrollMode;var SpreadMode={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};exports.SpreadMode=SpreadMode;var CursorTool={SELECT:0,HAND:1,ZOOM:2};exports.CursorTool=CursorTool;var AutoPrintRegExp=/\bprint\s*\(/;exports.AutoPrintRegExp=AutoPrintRegExp;var OutputScale=/*#__PURE__*/function(){function OutputScale(){_classCallCheck(this,OutputScale);var pixelRatio=window.devicePixelRatio||1;this.sx=pixelRatio;this.sy=pixelRatio;}_createClass(OutputScale,[{key:"scaled",get:function get(){return this.sx!==1||this.sy!==1;}}]);return OutputScale;}();exports.OutputScale=OutputScale;function scrollIntoView(element,spot){var _element$parentElemen,_element$parentElemen2;var scrollMatches=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var infiniteScroll=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(element.classList.contains("stf__item")||(_element$parentElemen=element.parentElement)!==null&&_element$parentElemen!==void 0&&_element$parentElemen.classList.contains("stf__item")||(_element$parentElemen2=element.parentElement)!==null&&_element$parentElemen2!==void 0&&(_element$parentElemen2=_element$parentElemen2.parentElement)!==null&&_element$parentElemen2!==void 0&&_element$parentElemen2.classList.contains("stf__item")){return;}var parent=element.offsetParent;if(!parent){globalThis.ngxConsole.error("offsetParent is not set -- cannot scroll");return;}var offsetY=element.offsetTop+element.clientTop;var offsetX=element.offsetLeft+element.clientLeft;while(parent.clientHeight===parent.scrollHeight&&parent.clientWidth===parent.scrollWidth||scrollMatches&&(parent.classList.contains("markedContent")||getComputedStyle(parent).overflow==="hidden")){offsetY+=parent.offsetTop;offsetX+=parent.offsetLeft;parent=parent.offsetParent;if(!parent){if(infiniteScroll){if(document.body.clientHeight>offsetY){offsetY-=32;window.scrollTo(window.scrollX,offsetY);}}return;}}if(spot){if(spot.top!==undefined){offsetY+=spot.top;}if(spot.left!==undefined){offsetX+=spot.left;parent.scrollLeft=offsetX;}}else if(isDivInViewport(element)){return;}parent.scrollTop=offsetY;}function isDivInViewport(element){var rect=element.getBoundingClientRect();return rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth);}function watchScroll(viewAreaElement,callback){var debounceScroll=function debounceScroll(evt){if(rAF){return;}rAF=window.requestAnimationFrame(function viewAreaElementScrolled(){rAF=null;var currentX=viewAreaElement.scrollLeft;var lastX=state.lastX;if(currentX!==lastX){state.right=currentX>lastX;}state.lastX=currentX;var currentY=viewAreaElement.scrollTop;var lastY=state.lastY;if(currentY!==lastY){state.down=currentY>lastY;}state.lastY=currentY;callback(state);});};var state={right:true,down:true,lastX:viewAreaElement.scrollLeft,lastY:viewAreaElement.scrollTop,_eventHandler:debounceScroll};var rAF=null;viewAreaElement.addEventListener("scroll",debounceScroll,true);return state;}function parseQueryString(query){var params=new Map();var _iterator=_createForOfIteratorHelper(new URLSearchParams(query)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],value=_step$value[1];params.set(key.toLowerCase(),value);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return params;}var InvisibleCharactersRegExp=/[\x01-\x1F]/g;function removeNullCharacters(str){var replaceInvisible=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(typeof str!=="string"){console.error("The argument must be a string.");return str;}if(replaceInvisible){str=str.replaceAll(InvisibleCharactersRegExp," ");}return str.replaceAll("\x00","");}function binarySearchFirstItem(items,condition){var start=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var minIndex=start;var maxIndex=items.length-1;if(maxIndex<0||!condition(items[maxIndex])){return items.length;}if(condition(items[minIndex])){return minIndex;}while(minIndex<maxIndex){var currentIndex=minIndex+maxIndex>>1;var currentItem=items[currentIndex];if(condition(currentItem)){maxIndex=currentIndex;}else{minIndex=currentIndex+1;}}return minIndex;}function approximateFraction(x){if(Math.floor(x)===x){return[x,1];}var xinv=1/x;var limit=8;if(xinv>limit){return[1,limit];}else if(Math.floor(xinv)===xinv){return[1,xinv];}var x_=x>1?xinv:x;var a=0,b=1,c=1,d=1;while(true){var p=a+c,q=b+d;if(q>limit){break;}if(x_<=p/q){c=p;d=q;}else{a=p;b=q;}}var result;if(x_-a/b<c/d-x_){result=x_===x?[a,b]:[b,a];}else{result=x_===x?[c,d]:[d,c];}return result;}function roundToDivide(x,div){var r=x%div;return r===0?x:Math.round(x-r+div);}function getPageSizeInches(_ref){var view=_ref.view,userUnit=_ref.userUnit,rotate=_ref.rotate;var _view=_slicedToArray(view,4),x1=_view[0],y1=_view[1],x2=_view[2],y2=_view[3];var changeOrientation=rotate%180!==0;var width=(x2-x1)/72*userUnit;var height=(y2-y1)/72*userUnit;return{width:changeOrientation?height:width,height:changeOrientation?width:height};}function backtrackBeforeAllVisibleElements(index,views,top){if(index<2){return index;}var elt=views[index].div;var pageTop=elt.offsetTop+elt.clientTop;if(pageTop>=top){elt=views[index-1].div;pageTop=elt.offsetTop+elt.clientTop;}for(var i=index-2;i>=0;--i){elt=views[i].div;if(elt.offsetTop+elt.clientTop+elt.clientHeight<=pageTop){break;}index=i;}return index;}function getVisibleElements(_ref2){var scrollEl=_ref2.scrollEl,views=_ref2.views,_ref2$sortByVisibilit=_ref2.sortByVisibility,sortByVisibility=_ref2$sortByVisibilit===void 0?false:_ref2$sortByVisibilit,_ref2$horizontal=_ref2.horizontal,horizontal=_ref2$horizontal===void 0?false:_ref2$horizontal,_ref2$rtl=_ref2.rtl,rtl=_ref2$rtl===void 0?false:_ref2$rtl;var top=scrollEl.scrollTop,bottom=top+scrollEl.clientHeight;var left=scrollEl.scrollLeft,right=left+scrollEl.clientWidth;function isElementBottomAfterViewTop(view){var element=view.div;var elementBottom=element.offsetTop+element.clientTop+element.clientHeight;return elementBottom>top;}function isElementNextAfterViewHorizontally(view){var element=view.div;var elementLeft=element.offsetLeft+element.clientLeft;var elementRight=elementLeft+element.clientWidth;return rtl?elementLeft<right:elementRight>left;}var visible=[],ids=new Set(),numViews=views.length;var firstVisibleElementInd=binarySearchFirstItem(views,horizontal?isElementNextAfterViewHorizontally:isElementBottomAfterViewTop);if(firstVisibleElementInd>0&&firstVisibleElementInd<numViews&&!horizontal){firstVisibleElementInd=backtrackBeforeAllVisibleElements(firstVisibleElementInd,views,top);}var lastEdge=horizontal?right:-1;for(var i=firstVisibleElementInd;i<numViews;i++){var view=views[i],element=view.div;var currentWidth=element.offsetLeft+element.clientLeft;var currentHeight=element.offsetTop+element.clientTop;var viewWidth=element.clientWidth,viewHeight=element.clientHeight;var viewRight=currentWidth+viewWidth;var viewBottom=currentHeight+viewHeight;if(lastEdge===-1){if(viewBottom>=bottom){lastEdge=viewBottom;}}else if((horizontal?currentWidth:currentHeight)>lastEdge){break;}if(viewBottom<=top||currentHeight>=bottom||viewRight<=left||currentWidth>=right){continue;}var hiddenHeight=Math.max(0,top-currentHeight)+Math.max(0,viewBottom-bottom);var hiddenWidth=Math.max(0,left-currentWidth)+Math.max(0,viewRight-right);var fractionHeight=(viewHeight-hiddenHeight)/viewHeight,fractionWidth=(viewWidth-hiddenWidth)/viewWidth;var percent=fractionHeight*fractionWidth*100|0;visible.push({id:view.id,x:currentWidth,y:currentHeight,view:view,percent:percent,widthPercent:fractionWidth*100|0});ids.add(view.id);}var first=visible[0],last=visible.at(-1);if(sortByVisibility){visible.sort(function(a,b){var pc=a.percent-b.percent;if(Math.abs(pc)>0.001){return-pc;}return a.id-b.id;});}return{first:first,last:last,views:visible,ids:ids};}function noContextMenuHandler(evt){evt.preventDefault();}function normalizeWheelEventDirection(evt){var delta=Math.hypot(evt.deltaX,evt.deltaY);var angle=Math.atan2(evt.deltaY,evt.deltaX);if(-0.25*Math.PI<angle&&angle<0.75*Math.PI){delta=-delta;}return delta;}function normalizeWheelEventDelta(evt){var deltaMode=evt.deltaMode;var delta=normalizeWheelEventDirection(evt);var MOUSE_PIXELS_PER_LINE=30;var MOUSE_LINES_PER_PAGE=30;if(deltaMode===WheelEvent.DOM_DELTA_PIXEL){delta/=MOUSE_PIXELS_PER_LINE*MOUSE_LINES_PER_PAGE;}else if(deltaMode===WheelEvent.DOM_DELTA_LINE){delta/=MOUSE_LINES_PER_PAGE;}return delta;}function isValidRotation(angle){return Number.isInteger(angle)&&angle%90===0;}function isValidScrollMode(mode){return Number.isInteger(mode)&&Object.values(ScrollMode).includes(mode)&&mode!==ScrollMode.UNKNOWN;}function isValidSpreadMode(mode){return Number.isInteger(mode)&&Object.values(SpreadMode).includes(mode)&&mode!==SpreadMode.UNKNOWN;}function isPortraitOrientation(size){return size.width<=size.height;}var animationStarted=new Promise(function(resolve){window.ngxZone.runOutsideAngular(function(){window.requestAnimationFrame(resolve);});});exports.animationStarted=animationStarted;var docStyle=document.documentElement.style;exports.docStyle=docStyle;function clamp(v,min,max){return Math.min(Math.max(v,min),max);}var _classList=/*#__PURE__*/new WeakMap();var _disableAutoFetchTimeout=/*#__PURE__*/new WeakMap();var _percent=/*#__PURE__*/new WeakMap();var _style=/*#__PURE__*/new WeakMap();var _visible=/*#__PURE__*/new WeakMap();var ProgressBar=/*#__PURE__*/function(){function ProgressBar(bar){_classCallCheck(this,ProgressBar);_classPrivateFieldInitSpec(this,_classList,{writable:true,value:null});_classPrivateFieldInitSpec(this,_disableAutoFetchTimeout,{writable:true,value:null});_classPrivateFieldInitSpec(this,_percent,{writable:true,value:0});_classPrivateFieldInitSpec(this,_style,{writable:true,value:null});_classPrivateFieldInitSpec(this,_visible,{writable:true,value:true});_classPrivateFieldSet(this,_classList,bar.classList);_classPrivateFieldSet(this,_style,bar.style);}_createClass(ProgressBar,[{key:"percent",get:function get(){return _classPrivateFieldGet(this,_percent);},set:function set(val){_classPrivateFieldSet(this,_percent,clamp(val,0,100));if(isNaN(val)){_classPrivateFieldGet(this,_classList).add("indeterminate");return;}_classPrivateFieldGet(this,_classList).remove("indeterminate");_classPrivateFieldGet(this,_style).setProperty("--progressBar-percent","".concat(_classPrivateFieldGet(this,_percent),"%"));}},{key:"setWidth",value:function setWidth(viewer){if(!viewer){return;}var container=viewer.parentNode;var scrollbarWidth=container.offsetWidth-viewer.offsetWidth;if(scrollbarWidth>0){_classPrivateFieldGet(this,_style).setProperty("--progressBar-end-offset","".concat(scrollbarWidth,"px"));}}},{key:"setDisableAutoFetch",value:function setDisableAutoFetch(){var _this=this;var delay=arguments.length>0&&arguments[0]!==undefined?arguments[0]:5000;if(isNaN(_classPrivateFieldGet(this,_percent))){return;}if(_classPrivateFieldGet(this,_disableAutoFetchTimeout)){clearTimeout(_classPrivateFieldGet(this,_disableAutoFetchTimeout));}this.show();_classPrivateFieldSet(this,_disableAutoFetchTimeout,setTimeout(function(){_classPrivateFieldSet(_this,_disableAutoFetchTimeout,null);_this.hide();},delay));}},{key:"hide",value:function hide(){if(!_classPrivateFieldGet(this,_visible)){return;}_classPrivateFieldSet(this,_visible,false);_classPrivateFieldGet(this,_classList).add("hidden");}},{key:"show",value:function show(){if(_classPrivateFieldGet(this,_visible)){return;}_classPrivateFieldSet(this,_visible,true);_classPrivateFieldGet(this,_classList).remove("hidden");}}]);return ProgressBar;}();exports.ProgressBar=ProgressBar;function getActiveOrFocusedElement(){var curRoot=document;var curActiveOrFocused=curRoot.activeElement||curRoot.querySelector(":focus");while((_curActiveOrFocused=curActiveOrFocused)!==null&&_curActiveOrFocused!==void 0&&_curActiveOrFocused.shadowRoot){var _curActiveOrFocused;curRoot=curActiveOrFocused.shadowRoot;curActiveOrFocused=curRoot.activeElement||curRoot.querySelector(":focus");}return curActiveOrFocused;}function apiPageLayoutToViewerModes(layout){var scrollMode=ScrollMode.VERTICAL,spreadMode=SpreadMode.NONE;switch(layout){case"SinglePage":scrollMode=ScrollMode.PAGE;break;case"OneColumn":break;case"TwoPageLeft":scrollMode=ScrollMode.PAGE;case"TwoColumnLeft":spreadMode=SpreadMode.ODD;break;case"TwoPageRight":scrollMode=ScrollMode.PAGE;case"TwoColumnRight":spreadMode=SpreadMode.EVEN;break;}return{scrollMode:scrollMode,spreadMode:spreadMode};}function apiPageModeToSidebarView(mode){switch(mode){case"UseNone":return SidebarView.NONE;case"UseThumbs":return SidebarView.THUMBS;case"UseOutlines":return SidebarView.OUTLINE;case"UseAttachments":return SidebarView.ATTACHMENTS;case"UseOC":return SidebarView.LAYERS;}return SidebarView.NONE;}function toggleCheckedBtn(button,toggle){var view=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;button.classList.toggle("toggled",toggle);button.setAttribute("aria-checked",toggle);view===null||view===void 0?void 0:view.classList.toggle("hidden",!toggle);}function toggleExpandedBtn(button,toggle){var view=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;button.classList.toggle("toggled",toggle);button.setAttribute("aria-expanded",toggle);view===null||view===void 0?void 0:view.classList.toggle("hidden",!toggle);}

/***/ }),
/* 240 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(241);

/***/ }),
/* 241 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var collection = __webpack_require__(242);
var collectionStrong = __webpack_require__(247);
collection('Map', function (init) {
 return function Map() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
}, collectionStrong);

/***/ }),
/* 242 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var isForced = __webpack_require__(78);
var defineBuiltIn = __webpack_require__(70);
var InternalMetadataModule = __webpack_require__(243);
var iterate = __webpack_require__(163);
var anInstance = __webpack_require__(146);
var isCallable = __webpack_require__(28);
var isNullOrUndefined = __webpack_require__(11);
var isObject = __webpack_require__(27);
var fails = __webpack_require__(8);
var checkCorrectnessOfIteration = __webpack_require__(169);
var setToStringTag = __webpack_require__(83);
var inheritIfRequired = __webpack_require__(129);
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
 var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
 var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
 var ADDER = IS_MAP ? 'set' : 'add';
 var NativeConstructor = global[CONSTRUCTOR_NAME];
 var NativePrototype = NativeConstructor && NativeConstructor.prototype;
 var Constructor = NativeConstructor;
 var exported = {};
 var fixMethod = function (KEY) {
  var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);
  defineBuiltIn(NativePrototype, KEY, KEY == 'add' ? function add(value) {
   uncurriedNativeMethod(this, value === 0 ? 0 : value);
   return this;
  } : KEY == 'delete' ? function (key) {
   return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
  } : KEY == 'get' ? function get(key) {
   return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
  } : KEY == 'has' ? function has(key) {
   return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
  } : function set(key, value) {
   uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
   return this;
  });
 };
 var REPLACE = isForced(CONSTRUCTOR_NAME, !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
  new NativeConstructor().entries().next();
 })));
 if (REPLACE) {
  Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
  InternalMetadataModule.enable();
 } else if (isForced(CONSTRUCTOR_NAME, true)) {
  var instance = new Constructor();
  var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
  var THROWS_ON_PRIMITIVES = fails(function () {
   instance.has(1);
  });
  var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) {
   new NativeConstructor(iterable);
  });
  var BUGGY_ZERO = !IS_WEAK && fails(function () {
   var $instance = new NativeConstructor();
   var index = 5;
   while (index--)
    $instance[ADDER](index, index);
   return !$instance.has(-0);
  });
  if (!ACCEPT_ITERABLES) {
   Constructor = wrapper(function (dummy, iterable) {
    anInstance(dummy, NativePrototype);
    var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
    if (!isNullOrUndefined(iterable))
     iterate(iterable, that[ADDER], {
      that: that,
      AS_ENTRIES: IS_MAP
     });
    return that;
   });
   Constructor.prototype = NativePrototype;
   NativePrototype.constructor = Constructor;
  }
  if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
   fixMethod('delete');
   fixMethod('has');
   IS_MAP && fixMethod('get');
  }
  if (BUGGY_ZERO || HASNT_CHAINING)
   fixMethod(ADDER);
  if (IS_WEAK && NativePrototype.clear)
   delete NativePrototype.clear;
 }
 exported[CONSTRUCTOR_NAME] = Constructor;
 $({
  global: true,
  constructor: true,
  forced: Constructor != NativeConstructor
 }, exported);
 setToStringTag(Constructor, CONSTRUCTOR_NAME);
 if (!IS_WEAK)
  common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
 return Constructor;
};

/***/ }),
/* 243 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var uncurryThis = __webpack_require__(6);
var hiddenKeys = __webpack_require__(57);
var isObject = __webpack_require__(27);
var hasOwn = __webpack_require__(5);
var defineProperty = (__webpack_require__(23).f);
var getOwnPropertyNamesModule = __webpack_require__(76);
var getOwnPropertyNamesExternalModule = __webpack_require__(100);
var isExtensible = __webpack_require__(244);
var uid = __webpack_require__(18);
var FREEZING = __webpack_require__(246);
var REQUIRED = false;
var METADATA = uid('meta');
var id = 0;
var setMetadata = function (it) {
 defineProperty(it, METADATA, {
  value: {
   objectID: 'O' + id++,
   weakData: {}
  }
 });
};
var fastKey = function (it, create) {
 if (!isObject(it))
  return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
 if (!hasOwn(it, METADATA)) {
  if (!isExtensible(it))
   return 'F';
  if (!create)
   return 'E';
  setMetadata(it);
 }
 return it[METADATA].objectID;
};
var getWeakData = function (it, create) {
 if (!hasOwn(it, METADATA)) {
  if (!isExtensible(it))
   return true;
  if (!create)
   return false;
  setMetadata(it);
 }
 return it[METADATA].weakData;
};
var onFreeze = function (it) {
 if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA))
  setMetadata(it);
 return it;
};
var enable = function () {
 meta.enable = function () {
 };
 REQUIRED = true;
 var getOwnPropertyNames = getOwnPropertyNamesModule.f;
 var splice = uncurryThis([].splice);
 var test = {};
 test[METADATA] = 1;
 if (getOwnPropertyNames(test).length) {
  getOwnPropertyNamesModule.f = function (it) {
   var result = getOwnPropertyNames(it);
   for (var i = 0, length = result.length; i < length; i++) {
    if (result[i] === METADATA) {
     splice(result, i, 1);
     break;
    }
   }
   return result;
  };
  $({
   target: 'Object',
   stat: true,
   forced: true
  }, { getOwnPropertyNames: getOwnPropertyNamesExternalModule.f });
 }
};
var meta = module.exports = {
 enable: enable,
 fastKey: fastKey,
 getWeakData: getWeakData,
 onFreeze: onFreeze
};
hiddenKeys[METADATA] = true;

/***/ }),
/* 244 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
var isObject = __webpack_require__(27);
var classof = __webpack_require__(45);
var ARRAY_BUFFER_NON_EXTENSIBLE = __webpack_require__(245);
var $isExtensible = Object.isExtensible;
var FAILS_ON_PRIMITIVES = fails(function () {
 $isExtensible(1);
});
module.exports = FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) {
 if (!isObject(it))
  return false;
 if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer')
  return false;
 return $isExtensible ? $isExtensible(it) : true;
} : $isExtensible;

/***/ }),
/* 245 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
module.exports = fails(function () {
 if (typeof ArrayBuffer == 'function') {
  var buffer = new ArrayBuffer(8);
  if (Object.isExtensible(buffer))
   Object.defineProperty(buffer, 'a', { value: 8 });
 }
});

/***/ }),
/* 246 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var fails = __webpack_require__(8);
module.exports = !fails(function () {
 return Object.isExtensible(Object.preventExtensions({}));
});

/***/ }),
/* 247 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var create = __webpack_require__(47);
var defineBuiltInAccessor = __webpack_require__(103);
var defineBuiltIns = __webpack_require__(230);
var bind = __webpack_require__(106);
var anInstance = __webpack_require__(146);
var isNullOrUndefined = __webpack_require__(11);
var iterate = __webpack_require__(163);
var defineIterator = __webpack_require__(66);
var createIterResultObject = __webpack_require__(87);
var setSpecies = __webpack_require__(145);
var DESCRIPTORS = __webpack_require__(24);
var fastKey = (__webpack_require__(243).fastKey);
var InternalStateModule = __webpack_require__(62);
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = {
 getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
  var Constructor = wrapper(function (that, iterable) {
   anInstance(that, Prototype);
   setInternalState(that, {
    type: CONSTRUCTOR_NAME,
    index: create(null),
    first: undefined,
    last: undefined,
    size: 0
   });
   if (!DESCRIPTORS)
    that.size = 0;
   if (!isNullOrUndefined(iterable))
    iterate(iterable, that[ADDER], {
     that: that,
     AS_ENTRIES: IS_MAP
    });
  });
  var Prototype = Constructor.prototype;
  var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
  var define = function (that, key, value) {
   var state = getInternalState(that);
   var entry = getEntry(that, key);
   var previous, index;
   if (entry) {
    entry.value = value;
   } else {
    state.last = entry = {
     index: index = fastKey(key, true),
     key: key,
     value: value,
     previous: previous = state.last,
     next: undefined,
     removed: false
    };
    if (!state.first)
     state.first = entry;
    if (previous)
     previous.next = entry;
    if (DESCRIPTORS)
     state.size++;
    else
     that.size++;
    if (index !== 'F')
     state.index[index] = entry;
   }
   return that;
  };
  var getEntry = function (that, key) {
   var state = getInternalState(that);
   var index = fastKey(key);
   var entry;
   if (index !== 'F')
    return state.index[index];
   for (entry = state.first; entry; entry = entry.next) {
    if (entry.key == key)
     return entry;
   }
  };
  defineBuiltIns(Prototype, {
   clear: function clear() {
    var that = this;
    var state = getInternalState(that);
    var data = state.index;
    var entry = state.first;
    while (entry) {
     entry.removed = true;
     if (entry.previous)
      entry.previous = entry.previous.next = undefined;
     delete data[entry.index];
     entry = entry.next;
    }
    state.first = state.last = undefined;
    if (DESCRIPTORS)
     state.size = 0;
    else
     that.size = 0;
   },
   'delete': function (key) {
    var that = this;
    var state = getInternalState(that);
    var entry = getEntry(that, key);
    if (entry) {
     var next = entry.next;
     var prev = entry.previous;
     delete state.index[entry.index];
     entry.removed = true;
     if (prev)
      prev.next = next;
     if (next)
      next.previous = prev;
     if (state.first == entry)
      state.first = next;
     if (state.last == entry)
      state.last = prev;
     if (DESCRIPTORS)
      state.size--;
     else
      that.size--;
    }
    return !!entry;
   },
   forEach: function forEach(callbackfn) {
    var state = getInternalState(this);
    var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
    var entry;
    while (entry = entry ? entry.next : state.first) {
     boundFunction(entry.value, entry.key, this);
     while (entry && entry.removed)
      entry = entry.previous;
    }
   },
   has: function has(key) {
    return !!getEntry(this, key);
   }
  });
  defineBuiltIns(Prototype, IS_MAP ? {
   get: function get(key) {
    var entry = getEntry(this, key);
    return entry && entry.value;
   },
   set: function set(key, value) {
    return define(this, key === 0 ? 0 : key, value);
   }
  } : {
   add: function add(value) {
    return define(this, value = value === 0 ? 0 : value, value);
   }
  });
  if (DESCRIPTORS)
   defineBuiltInAccessor(Prototype, 'size', {
    configurable: true,
    get: function () {
     return getInternalState(this).size;
    }
   });
  return Constructor;
 },
 setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {
  var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
  var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
  var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
  defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {
   setInternalState(this, {
    type: ITERATOR_NAME,
    target: iterated,
    state: getInternalCollectionState(iterated),
    kind: kind,
    last: undefined
   });
  }, function () {
   var state = getInternalIteratorState(this);
   var kind = state.kind;
   var entry = state.last;
   while (entry && entry.removed)
    entry = entry.previous;
   if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
    state.target = undefined;
    return createIterResultObject(undefined, true);
   }
   if (kind == 'keys')
    return createIterResultObject(entry.key, false);
   if (kind == 'values')
    return createIterResultObject(entry.value, false);
   return createIterResultObject([
    entry.key,
    entry.value
   ], false);
  }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
  setSpecies(CONSTRUCTOR_NAME);
 }
};

/***/ }),
/* 248 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var apply = __webpack_require__(116);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var fixRegExpWellKnownSymbolLogic = __webpack_require__(213);
var fails = __webpack_require__(8);
var anObject = __webpack_require__(31);
var isCallable = __webpack_require__(28);
var isNullOrUndefined = __webpack_require__(11);
var toIntegerOrInfinity = __webpack_require__(53);
var toLength = __webpack_require__(56);
var toString = __webpack_require__(94);
var requireObjectCoercible = __webpack_require__(10);
var advanceStringIndex = __webpack_require__(249);
var getMethod = __webpack_require__(38);
var getSubstitution = __webpack_require__(250);
var regExpExec = __webpack_require__(215);
var wellKnownSymbol = __webpack_require__(13);
var REPLACE = wellKnownSymbol('replace');
var max = Math.max;
var min = Math.min;
var concat = uncurryThis([].concat);
var push = uncurryThis([].push);
var stringIndexOf = uncurryThis(''.indexOf);
var stringSlice = uncurryThis(''.slice);
var maybeToString = function (it) {
 return it === undefined ? it : String(it);
};
var REPLACE_KEEPS_$0 = (function () {
 return 'a'.replace(/./, '$0') === '$0';
}());
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
 if (/./[REPLACE]) {
  return /./[REPLACE]('a', '$0') === '';
 }
 return false;
}());
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
 var re = /./;
 re.exec = function () {
  var result = [];
  result.groups = { a: '7' };
  return result;
 };
 return ''.replace(re, '$<a>') !== '7';
});
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
 return [
  function replace(searchValue, replaceValue) {
   var O = requireObjectCoercible(this);
   var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
   return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString(O), searchValue, replaceValue);
  },
  function (string, replaceValue) {
   var rx = anObject(this);
   var S = toString(string);
   if (typeof replaceValue == 'string' && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, '$<') === -1) {
    var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
    if (res.done)
     return res.value;
   }
   var functionalReplace = isCallable(replaceValue);
   if (!functionalReplace)
    replaceValue = toString(replaceValue);
   var global = rx.global;
   if (global) {
    var fullUnicode = rx.unicode;
    rx.lastIndex = 0;
   }
   var results = [];
   while (true) {
    var result = regExpExec(rx, S);
    if (result === null)
     break;
    push(results, result);
    if (!global)
     break;
    var matchStr = toString(result[0]);
    if (matchStr === '')
     rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
   }
   var accumulatedResult = '';
   var nextSourcePosition = 0;
   for (var i = 0; i < results.length; i++) {
    result = results[i];
    var matched = toString(result[0]);
    var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
    var captures = [];
    for (var j = 1; j < result.length; j++)
     push(captures, maybeToString(result[j]));
    var namedCaptures = result.groups;
    if (functionalReplace) {
     var replacerArgs = concat([matched], captures, position, S);
     if (namedCaptures !== undefined)
      push(replacerArgs, namedCaptures);
     var replacement = toString(apply(replaceValue, undefined, replacerArgs));
    } else {
     replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
    }
    if (position >= nextSourcePosition) {
     accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
     nextSourcePosition = position + matched.length;
    }
   }
   return accumulatedResult + stringSlice(S, nextSourcePosition);
  }
 ];
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);

/***/ }),
/* 249 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var charAt = (__webpack_require__(93).charAt);
module.exports = function (S, index, unicode) {
 return index + (unicode ? charAt(S, index).length : 1);
};

/***/ }),
/* 250 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var toObject = __webpack_require__(9);
var floor = Math.floor;
var charAt = uncurryThis(''.charAt);
var replace = uncurryThis(''.replace);
var stringSlice = uncurryThis(''.slice);
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
 var tailPos = position + matched.length;
 var m = captures.length;
 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
 if (namedCaptures !== undefined) {
  namedCaptures = toObject(namedCaptures);
  symbols = SUBSTITUTION_SYMBOLS;
 }
 return replace(replacement, symbols, function (match, ch) {
  var capture;
  switch (charAt(ch, 0)) {
  case '$':
   return '$';
  case '&':
   return matched;
  case '`':
   return stringSlice(str, 0, position);
  case "'":
   return stringSlice(str, tailPos);
  case '<':
   capture = namedCaptures[stringSlice(ch, 1, -1)];
   break;
  default:
   var n = +ch;
   if (n === 0)
    return match;
   if (n > m) {
    var f = floor(n / 10);
    if (f === 0)
     return match;
    if (f <= m)
     return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
    return match;
   }
   capture = captures[n - 1];
  }
  return capture === undefined ? '' : capture;
 });
};

/***/ }),
/* 251 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var requireObjectCoercible = __webpack_require__(10);
var isCallable = __webpack_require__(28);
var isNullOrUndefined = __webpack_require__(11);
var isRegExp = __webpack_require__(202);
var toString = __webpack_require__(94);
var getMethod = __webpack_require__(38);
var getRegExpFlags = __webpack_require__(223);
var getSubstitution = __webpack_require__(250);
var wellKnownSymbol = __webpack_require__(13);
var IS_PURE = __webpack_require__(15);
var REPLACE = wellKnownSymbol('replace');
var $TypeError = TypeError;
var indexOf = uncurryThis(''.indexOf);
var replace = uncurryThis(''.replace);
var stringSlice = uncurryThis(''.slice);
var max = Math.max;
var stringIndexOf = function (string, searchValue, fromIndex) {
 if (fromIndex > string.length)
  return -1;
 if (searchValue === '')
  return fromIndex;
 return indexOf(string, searchValue, fromIndex);
};
$({
 target: 'String',
 proto: true
}, {
 replaceAll: function replaceAll(searchValue, replaceValue) {
  var O = requireObjectCoercible(this);
  var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
  var position = 0;
  var endOfLastMatch = 0;
  var result = '';
  if (!isNullOrUndefined(searchValue)) {
   IS_REG_EXP = isRegExp(searchValue);
   if (IS_REG_EXP) {
    flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));
    if (!~indexOf(flags, 'g'))
     throw $TypeError('`.replaceAll` does not allow non-global regexes');
   }
   replacer = getMethod(searchValue, REPLACE);
   if (replacer) {
    return call(replacer, searchValue, O, replaceValue);
   } else if (IS_PURE && IS_REG_EXP) {
    return replace(toString(O), searchValue, replaceValue);
   }
  }
  string = toString(O);
  searchString = toString(searchValue);
  functionalReplace = isCallable(replaceValue);
  if (!functionalReplace)
   replaceValue = toString(replaceValue);
  searchLength = searchString.length;
  advanceBy = max(1, searchLength);
  position = stringIndexOf(string, searchString, 0);
  while (position !== -1) {
   replacement = functionalReplace ? toString(replaceValue(searchString, position, string)) : getSubstitution(searchString, string, position, [], undefined, replaceValue);
   result += stringSlice(string, endOfLastMatch, position) + replacement;
   endOfLastMatch = position + searchLength;
   position = stringIndexOf(string, searchString, position + advanceBy);
  }
  if (endOfLastMatch < string.length) {
   result += stringSlice(string, endOfLastMatch);
  }
  return result;
 }
});

/***/ }),
/* 252 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(253);

/***/ }),
/* 253 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var collection = __webpack_require__(242);
var collectionStrong = __webpack_require__(247);
collection('Set', function (init) {
 return function Set() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
}, collectionStrong);

/***/ }),
/* 254 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var difference = __webpack_require__(255);
var setMethodAcceptSetLike = __webpack_require__(264);
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: !setMethodAcceptSetLike('difference')
}, { difference: difference });

/***/ }),
/* 255 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var SetHelpers = __webpack_require__(257);
var clone = __webpack_require__(258);
var size = __webpack_require__(261);
var getSetRecord = __webpack_require__(262);
var iterateSet = __webpack_require__(259);
var iterateSimple = __webpack_require__(260);
var has = SetHelpers.has;
var remove = SetHelpers.remove;
module.exports = function difference(other) {
 var O = aSet(this);
 var otherRec = getSetRecord(other);
 var result = clone(O);
 if (size(O) <= otherRec.size)
  iterateSet(O, function (e) {
   if (otherRec.includes(e))
    remove(result, e);
  });
 else
  iterateSimple(otherRec.getIterator(), function (e) {
   if (has(O, e))
    remove(result, e);
  });
 return result;
};

/***/ }),
/* 256 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var has = (__webpack_require__(257).has);
module.exports = function (it) {
 has(it);
 return it;
};

/***/ }),
/* 257 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var SetPrototype = Set.prototype;
module.exports = {
 Set: Set,
 add: uncurryThis(SetPrototype.add),
 has: uncurryThis(SetPrototype.has),
 remove: uncurryThis(SetPrototype['delete']),
 proto: SetPrototype
};

/***/ }),
/* 258 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var SetHelpers = __webpack_require__(257);
var iterate = __webpack_require__(259);
var Set = SetHelpers.Set;
var add = SetHelpers.add;
module.exports = function (set) {
 var result = new Set();
 iterate(set, function (it) {
  add(result, it);
 });
 return result;
};

/***/ }),
/* 259 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var iterateSimple = __webpack_require__(260);
var SetHelpers = __webpack_require__(257);
var Set = SetHelpers.Set;
var SetPrototype = SetHelpers.proto;
var forEach = uncurryThis(SetPrototype.forEach);
var keys = uncurryThis(SetPrototype.keys);
var next = keys(new Set()).next;
module.exports = function (set, fn, interruptible) {
 return interruptible ? iterateSimple({
  iterator: keys(set),
  next: next
 }, fn) : forEach(set, fn);
};

/***/ }),
/* 260 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
 var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
 var next = record.next;
 var step, result;
 while (!(step = call(next, iterator)).done) {
  result = fn(step.value);
  if (result !== undefined)
   return result;
 }
};

/***/ }),
/* 261 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThisAccessor = __webpack_require__(85);
var SetHelpers = __webpack_require__(257);
module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) {
 return set.size;
};

/***/ }),
/* 262 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aCallable = __webpack_require__(39);
var anObject = __webpack_require__(31);
var call = __webpack_require__(34);
var toIntegerOrInfinity = __webpack_require__(53);
var getIteratorDirect = __webpack_require__(263);
var INVALID_SIZE = 'Invalid size';
var $RangeError = RangeError;
var $TypeError = TypeError;
var max = Math.max;
var SetRecord = function (set, size, has, keys) {
 this.set = set;
 this.size = size;
 this.has = has;
 this.keys = keys;
};
SetRecord.prototype = {
 getIterator: function () {
  return getIteratorDirect(anObject(call(this.keys, this.set)));
 },
 includes: function (it) {
  return call(this.has, this.set, it);
 }
};
module.exports = function (obj) {
 anObject(obj);
 var numSize = +obj.size;
 if (numSize != numSize)
  throw $TypeError(INVALID_SIZE);
 var intSize = toIntegerOrInfinity(numSize);
 if (intSize < 0)
  throw $RangeError(INVALID_SIZE);
 return new SetRecord(obj, max(intSize, 0), aCallable(obj.has), aCallable(obj.keys));
};

/***/ }),
/* 263 */
/***/ ((module) => {


module.exports = function (obj) {
 return {
  iterator: obj,
  next: obj.next,
  done: false
 };
};

/***/ }),
/* 264 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var getBuiltIn = __webpack_require__(36);
var createSetLike = function (size) {
 return {
  size: size,
  has: function () {
   return false;
  },
  keys: function () {
   return {
    next: function () {
     return { done: true };
    }
   };
  }
 };
};
module.exports = function (name) {
 var Set = getBuiltIn('Set');
 try {
  new Set()[name](createSetLike(0));
  try {
   new Set()[name](createSetLike(-1));
   return false;
  } catch (error2) {
   return true;
  }
 } catch (error) {
  return false;
 }
};

/***/ }),
/* 265 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var fails = __webpack_require__(8);
var intersection = __webpack_require__(266);
var setMethodAcceptSetLike = __webpack_require__(264);
var INCORRECT = !setMethodAcceptSetLike('intersection') || fails(function () {
 return Array.from(new Set([
  1,
  2,
  3
 ]).intersection(new Set([
  3,
  2
 ]))) != '3,2';
});
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: INCORRECT
}, { intersection: intersection });

/***/ }),
/* 266 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var SetHelpers = __webpack_require__(257);
var size = __webpack_require__(261);
var getSetRecord = __webpack_require__(262);
var iterateSet = __webpack_require__(259);
var iterateSimple = __webpack_require__(260);
var Set = SetHelpers.Set;
var add = SetHelpers.add;
var has = SetHelpers.has;
module.exports = function intersection(other) {
 var O = aSet(this);
 var otherRec = getSetRecord(other);
 var result = new Set();
 if (size(O) > otherRec.size) {
  iterateSimple(otherRec.getIterator(), function (e) {
   if (has(O, e))
    add(result, e);
  });
 } else {
  iterateSet(O, function (e) {
   if (otherRec.includes(e))
    add(result, e);
  });
 }
 return result;
};

/***/ }),
/* 267 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var isDisjointFrom = __webpack_require__(268);
var setMethodAcceptSetLike = __webpack_require__(264);
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: !setMethodAcceptSetLike('isDisjointFrom')
}, { isDisjointFrom: isDisjointFrom });

/***/ }),
/* 268 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var has = (__webpack_require__(257).has);
var size = __webpack_require__(261);
var getSetRecord = __webpack_require__(262);
var iterateSet = __webpack_require__(259);
var iterateSimple = __webpack_require__(260);
var iteratorClose = __webpack_require__(167);
module.exports = function isDisjointFrom(other) {
 var O = aSet(this);
 var otherRec = getSetRecord(other);
 if (size(O) <= otherRec.size)
  return iterateSet(O, function (e) {
   if (otherRec.includes(e))
    return false;
  }, true) !== false;
 var iterator = otherRec.getIterator();
 return iterateSimple(iterator, function (e) {
  if (has(O, e))
   return iteratorClose(iterator, 'normal', false);
 }) !== false;
};

/***/ }),
/* 269 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var isSubsetOf = __webpack_require__(270);
var setMethodAcceptSetLike = __webpack_require__(264);
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: !setMethodAcceptSetLike('isSubsetOf')
}, { isSubsetOf: isSubsetOf });

/***/ }),
/* 270 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var size = __webpack_require__(261);
var iterate = __webpack_require__(259);
var getSetRecord = __webpack_require__(262);
module.exports = function isSubsetOf(other) {
 var O = aSet(this);
 var otherRec = getSetRecord(other);
 if (size(O) > otherRec.size)
  return false;
 return iterate(O, function (e) {
  if (!otherRec.includes(e))
   return false;
 }, true) !== false;
};

/***/ }),
/* 271 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var isSupersetOf = __webpack_require__(272);
var setMethodAcceptSetLike = __webpack_require__(264);
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: !setMethodAcceptSetLike('isSupersetOf')
}, { isSupersetOf: isSupersetOf });

/***/ }),
/* 272 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var has = (__webpack_require__(257).has);
var size = __webpack_require__(261);
var getSetRecord = __webpack_require__(262);
var iterateSimple = __webpack_require__(260);
var iteratorClose = __webpack_require__(167);
module.exports = function isSupersetOf(other) {
 var O = aSet(this);
 var otherRec = getSetRecord(other);
 if (size(O) < otherRec.size)
  return false;
 var iterator = otherRec.getIterator();
 return iterateSimple(iterator, function (e) {
  if (!has(O, e))
   return iteratorClose(iterator, 'normal', false);
 }) !== false;
};

/***/ }),
/* 273 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var symmetricDifference = __webpack_require__(274);
var setMethodAcceptSetLike = __webpack_require__(264);
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: !setMethodAcceptSetLike('symmetricDifference')
}, { symmetricDifference: symmetricDifference });

/***/ }),
/* 274 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var SetHelpers = __webpack_require__(257);
var clone = __webpack_require__(258);
var getSetRecord = __webpack_require__(262);
var iterateSimple = __webpack_require__(260);
var add = SetHelpers.add;
var has = SetHelpers.has;
var remove = SetHelpers.remove;
module.exports = function symmetricDifference(other) {
 var O = aSet(this);
 var keysIter = getSetRecord(other).getIterator();
 var result = clone(O);
 iterateSimple(keysIter, function (e) {
  if (has(O, e))
   remove(result, e);
  else
   add(result, e);
 });
 return result;
};

/***/ }),
/* 275 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var union = __webpack_require__(276);
var setMethodAcceptSetLike = __webpack_require__(264);
$({
 target: 'Set',
 proto: true,
 real: true,
 forced: !setMethodAcceptSetLike('union')
}, { union: union });

/***/ }),
/* 276 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aSet = __webpack_require__(256);
var add = (__webpack_require__(257).add);
var clone = __webpack_require__(258);
var getSetRecord = __webpack_require__(262);
var iterateSimple = __webpack_require__(260);
module.exports = function union(other) {
 var O = aSet(this);
 var keysIter = getSetRecord(other).getIterator();
 var result = clone(O);
 iterateSimple(keysIter, function (it) {
  add(result, it);
 });
 return result;
};

/***/ }),
/* 277 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
var toIntegerOrInfinity = __webpack_require__(53);
var addToUnscopables = __webpack_require__(46);
$({
 target: 'Array',
 proto: true
}, {
 at: function at(index) {
  var O = toObject(this);
  var len = lengthOfArrayLike(O);
  var relativeIndex = toIntegerOrInfinity(index);
  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
  return k < 0 || k >= len ? undefined : O[k];
 }
});
addToUnscopables('at');

/***/ }),
/* 278 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var uncurryThis = __webpack_require__(6);
var aCallable = __webpack_require__(39);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
var deletePropertyOrThrow = __webpack_require__(279);
var toString = __webpack_require__(94);
var fails = __webpack_require__(8);
var internalSort = __webpack_require__(231);
var arrayMethodIsStrict = __webpack_require__(184);
var FF = __webpack_require__(280);
var IE_OR_EDGE = __webpack_require__(281);
var V8 = __webpack_require__(20);
var WEBKIT = __webpack_require__(282);
var test = [];
var nativeSort = uncurryThis(test.sort);
var push = uncurryThis(test.push);
var FAILS_ON_UNDEFINED = fails(function () {
 test.sort(undefined);
});
var FAILS_ON_NULL = fails(function () {
 test.sort(null);
});
var STRICT_METHOD = arrayMethodIsStrict('sort');
var STABLE_SORT = !fails(function () {
 if (V8)
  return V8 < 70;
 if (FF && FF > 3)
  return;
 if (IE_OR_EDGE)
  return true;
 if (WEBKIT)
  return WEBKIT < 603;
 var result = '';
 var code, chr, value, index;
 for (code = 65; code < 76; code++) {
  chr = String.fromCharCode(code);
  switch (code) {
  case 66:
  case 69:
  case 70:
  case 72:
   value = 3;
   break;
  case 68:
  case 71:
   value = 4;
   break;
  default:
   value = 2;
  }
  for (index = 0; index < 47; index++) {
   test.push({
    k: chr + index,
    v: value
   });
  }
 }
 test.sort(function (a, b) {
  return b.v - a.v;
 });
 for (index = 0; index < test.length; index++) {
  chr = test[index].k.charAt(0);
  if (result.charAt(result.length - 1) !== chr)
   result += chr;
 }
 return result !== 'DGBEFHACIJK';
});
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
var getSortCompare = function (comparefn) {
 return function (x, y) {
  if (y === undefined)
   return -1;
  if (x === undefined)
   return 1;
  if (comparefn !== undefined)
   return +comparefn(x, y) || 0;
  return toString(x) > toString(y) ? 1 : -1;
 };
};
$({
 target: 'Array',
 proto: true,
 forced: FORCED
}, {
 sort: function sort(comparefn) {
  if (comparefn !== undefined)
   aCallable(comparefn);
  var array = toObject(this);
  if (STABLE_SORT)
   return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
  var items = [];
  var arrayLength = lengthOfArrayLike(array);
  var itemsLength, index;
  for (index = 0; index < arrayLength; index++) {
   if (index in array)
    push(items, array[index]);
  }
  internalSort(items, getSortCompare(comparefn));
  itemsLength = lengthOfArrayLike(items);
  index = 0;
  while (index < itemsLength)
   array[index] = items[index++];
  while (index < arrayLength)
   deletePropertyOrThrow(array, index++);
  return array;
 }
});

/***/ }),
/* 279 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var tryToString = __webpack_require__(40);
var $TypeError = TypeError;
module.exports = function (O, P) {
 if (!delete O[P])
  throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
};

/***/ }),
/* 280 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var userAgent = __webpack_require__(21);
var firefox = userAgent.match(/firefox\/(\d+)/i);
module.exports = !!firefox && +firefox[1];

/***/ }),
/* 281 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var UA = __webpack_require__(21);
module.exports = /MSIE|Trident/.test(UA);

/***/ }),
/* 282 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var userAgent = __webpack_require__(21);
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
module.exports = !!webkit && +webkit[1];

/***/ }),
/* 283 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(284);

/***/ }),
/* 284 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var FREEZING = __webpack_require__(246);
var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var defineBuiltIns = __webpack_require__(230);
var InternalMetadataModule = __webpack_require__(243);
var collection = __webpack_require__(242);
var collectionWeak = __webpack_require__(285);
var isObject = __webpack_require__(27);
var enforceInternalState = (__webpack_require__(62).enforce);
var fails = __webpack_require__(8);
var NATIVE_WEAK_MAP = __webpack_require__(63);
var $Object = Object;
var isArray = Array.isArray;
var isExtensible = $Object.isExtensible;
var isFrozen = $Object.isFrozen;
var isSealed = $Object.isSealed;
var freeze = $Object.freeze;
var seal = $Object.seal;
var FROZEN = {};
var SEALED = {};
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
var InternalWeakMap;
var wrapper = function (init) {
 return function WeakMap() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
};
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
var WeakMapPrototype = $WeakMap.prototype;
var nativeSet = uncurryThis(WeakMapPrototype.set);
var hasMSEdgeFreezingBug = function () {
 return FREEZING && fails(function () {
  var frozenArray = freeze([]);
  nativeSet(new $WeakMap(), frozenArray, 1);
  return !isFrozen(frozenArray);
 });
};
if (NATIVE_WEAK_MAP)
 if (IS_IE11) {
  InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
  InternalMetadataModule.enable();
  var nativeDelete = uncurryThis(WeakMapPrototype['delete']);
  var nativeHas = uncurryThis(WeakMapPrototype.has);
  var nativeGet = uncurryThis(WeakMapPrototype.get);
  defineBuiltIns(WeakMapPrototype, {
   'delete': function (key) {
    if (isObject(key) && !isExtensible(key)) {
     var state = enforceInternalState(this);
     if (!state.frozen)
      state.frozen = new InternalWeakMap();
     return nativeDelete(this, key) || state.frozen['delete'](key);
    }
    return nativeDelete(this, key);
   },
   has: function has(key) {
    if (isObject(key) && !isExtensible(key)) {
     var state = enforceInternalState(this);
     if (!state.frozen)
      state.frozen = new InternalWeakMap();
     return nativeHas(this, key) || state.frozen.has(key);
    }
    return nativeHas(this, key);
   },
   get: function get(key) {
    if (isObject(key) && !isExtensible(key)) {
     var state = enforceInternalState(this);
     if (!state.frozen)
      state.frozen = new InternalWeakMap();
     return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
    }
    return nativeGet(this, key);
   },
   set: function set(key, value) {
    if (isObject(key) && !isExtensible(key)) {
     var state = enforceInternalState(this);
     if (!state.frozen)
      state.frozen = new InternalWeakMap();
     nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
    } else
     nativeSet(this, key, value);
    return this;
   }
  });
 } else if (hasMSEdgeFreezingBug()) {
  defineBuiltIns(WeakMapPrototype, {
   set: function set(key, value) {
    var arrayIntegrityLevel;
    if (isArray(key)) {
     if (isFrozen(key))
      arrayIntegrityLevel = FROZEN;
     else if (isSealed(key))
      arrayIntegrityLevel = SEALED;
    }
    nativeSet(this, key, value);
    if (arrayIntegrityLevel == FROZEN)
     freeze(key);
    if (arrayIntegrityLevel == SEALED)
     seal(key);
    return this;
   }
  });
 }

/***/ }),
/* 285 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var defineBuiltIns = __webpack_require__(230);
var getWeakData = (__webpack_require__(243).getWeakData);
var anInstance = __webpack_require__(146);
var anObject = __webpack_require__(31);
var isNullOrUndefined = __webpack_require__(11);
var isObject = __webpack_require__(27);
var iterate = __webpack_require__(163);
var ArrayIterationModule = __webpack_require__(105);
var hasOwn = __webpack_require__(5);
var InternalStateModule = __webpack_require__(62);
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
var find = ArrayIterationModule.find;
var findIndex = ArrayIterationModule.findIndex;
var splice = uncurryThis([].splice);
var id = 0;
var uncaughtFrozenStore = function (state) {
 return state.frozen || (state.frozen = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function () {
 this.entries = [];
};
var findUncaughtFrozen = function (store, key) {
 return find(store.entries, function (it) {
  return it[0] === key;
 });
};
UncaughtFrozenStore.prototype = {
 get: function (key) {
  var entry = findUncaughtFrozen(this, key);
  if (entry)
   return entry[1];
 },
 has: function (key) {
  return !!findUncaughtFrozen(this, key);
 },
 set: function (key, value) {
  var entry = findUncaughtFrozen(this, key);
  if (entry)
   entry[1] = value;
  else
   this.entries.push([
    key,
    value
   ]);
 },
 'delete': function (key) {
  var index = findIndex(this.entries, function (it) {
   return it[0] === key;
  });
  if (~index)
   splice(this.entries, index, 1);
  return !!~index;
 }
};
module.exports = {
 getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
  var Constructor = wrapper(function (that, iterable) {
   anInstance(that, Prototype);
   setInternalState(that, {
    type: CONSTRUCTOR_NAME,
    id: id++,
    frozen: undefined
   });
   if (!isNullOrUndefined(iterable))
    iterate(iterable, that[ADDER], {
     that: that,
     AS_ENTRIES: IS_MAP
    });
  });
  var Prototype = Constructor.prototype;
  var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
  var define = function (that, key, value) {
   var state = getInternalState(that);
   var data = getWeakData(anObject(key), true);
   if (data === true)
    uncaughtFrozenStore(state).set(key, value);
   else
    data[state.id] = value;
   return that;
  };
  defineBuiltIns(Prototype, {
   'delete': function (key) {
    var state = getInternalState(this);
    if (!isObject(key))
     return false;
    var data = getWeakData(key);
    if (data === true)
     return uncaughtFrozenStore(state)['delete'](key);
    return data && hasOwn(data, state.id) && delete data[state.id];
   },
   has: function has(key) {
    var state = getInternalState(this);
    if (!isObject(key))
     return false;
    var data = getWeakData(key);
    if (data === true)
     return uncaughtFrozenStore(state).has(key);
    return data && hasOwn(data, state.id);
   }
  });
  defineBuiltIns(Prototype, IS_MAP ? {
   get: function get(key) {
    var state = getInternalState(this);
    if (isObject(key)) {
     var data = getWeakData(key);
     if (data === true)
      return uncaughtFrozenStore(state).get(key);
     return data ? data[state.id] : undefined;
    }
   },
   set: function set(key, value) {
    return define(this, key, value);
   }
  } : {
   add: function add(value) {
    return define(this, value, true);
   }
  });
  return Constructor;
 }
};

/***/ }),
/* 286 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

__webpack_require__(198);globalThis["pdfjs-dist/build/pdf"]=module.exports=globalThis.pdfjsLib;

/***/ }),
/* 287 */
/***/ ((__unused_webpack_module, exports) => {

Object.defineProperty(exports, "__esModule", ({value:true}));exports.ngxExtendedPdfViewerVersion=void 0;var ngxExtendedPdfViewerVersion='18.0.0-beta.9';exports.ngxExtendedPdfViewerVersion=ngxExtendedPdfViewerVersion;

/***/ }),
/* 288 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);Object.defineProperty(exports, "__esModule", ({value:true}));exports.compatibilityParams=exports.OptionKind=exports.AppOptions=void 0;__webpack_require__(206);__webpack_require__(219);__webpack_require__(198);__webpack_require__(126);__webpack_require__(138);__webpack_require__(187);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var compatibilityParams=Object.create(null);exports.compatibilityParams=compatibilityParams;{var userAgent=navigator.userAgent||"";var platform=navigator.platform||"";var maxTouchPoints=navigator.maxTouchPoints||1;var isAndroid=/Android/.test(userAgent);var isIOS=/\b(iPad|iPhone|iPod)(?=;)/.test(userAgent)||platform==="MacIntel"&&maxTouchPoints>1;(function checkCanvasSizeLimitation(){if(isIOS||isAndroid){compatibilityParams.maxCanvasPixels=5242880;}})();}var OptionKind={VIEWER:0x02,API:0x04,WORKER:0x08,PREFERENCE:0x80};exports.OptionKind=OptionKind;var defaultOptions={annotationEditorMode:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},annotationMode:{value:2,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},cursorToolOnLoad:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},defaultZoomDelay:{value:400,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},defaultZoomValue:{value:"",kind:OptionKind.VIEWER+OptionKind.PREFERENCE},disableHistory:{value:false,kind:OptionKind.VIEWER},disablePageLabels:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},enablePermissions:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},enablePrintAutoRotate:{value:true,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},enableScripting:{value:true,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},enableStampEditor:{value:true,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:OptionKind.VIEWER},externalLinkTarget:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},historyUpdateUrl:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},ignoreDestinationZoom:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},imageResourcesPath:{value:"./images/",kind:OptionKind.VIEWER},maxCanvasPixels:{value:16777216,kind:OptionKind.VIEWER},forcePageColors:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:OptionKind.VIEWER+OptionKind.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:OptionKind.VIEWER+OptionKind.PREFERENCE},pdfBugEnabled:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},printResolution:{value:150,kind:OptionKind.VIEWER},removePageBorders:{value:false,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},sidebarViewOnLoad:{value:-1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},scrollModeOnLoad:{value:-1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},spreadModeOnLoad:{value:-1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},textLayerMode:{value:1,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},viewerCssTheme:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},viewOnLoad:{value:0,kind:OptionKind.VIEWER+OptionKind.PREFERENCE},cMapPacked:{value:true,kind:OptionKind.API},cMapUrl:{value:"../web/cmaps/",kind:OptionKind.API},disableAutoFetch:{value:false,kind:OptionKind.API+OptionKind.PREFERENCE},disableFontFace:{value:false,kind:OptionKind.API+OptionKind.PREFERENCE},disableRange:{value:false,kind:OptionKind.API+OptionKind.PREFERENCE},disableStream:{value:false,kind:OptionKind.API+OptionKind.PREFERENCE},docBaseUrl:{value:"",kind:OptionKind.API},enableXfa:{value:true,kind:OptionKind.API+OptionKind.PREFERENCE},fontExtraProperties:{value:false,kind:OptionKind.API},isEvalSupported:{value:true,kind:OptionKind.API},isOffscreenCanvasSupported:{value:true,kind:OptionKind.API},maxImageSize:{value:-1,kind:OptionKind.API},pdfBug:{value:false,kind:OptionKind.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:OptionKind.API},verbosity:{value:1,kind:OptionKind.API},workerPort:{value:null,kind:OptionKind.WORKER},workerSrc:{value:"./assets/pdf.worker.js",kind:OptionKind.WORKER}};{defaultOptions.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:OptionKind.VIEWER};defaultOptions.disablePreferences={value:false,kind:OptionKind.VIEWER};defaultOptions.locale={value:navigator.language||"en-US",kind:OptionKind.VIEWER};defaultOptions.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:OptionKind.VIEWER};}var userOptions=Object.create(null);if(globalThis.pdfDefaultOptions){for(var key in globalThis.pdfDefaultOptions){userOptions[key]=globalThis.pdfDefaultOptions[key];}}var AppOptions=/*#__PURE__*/function(){function AppOptions(){_classCallCheck(this,AppOptions);throw new Error("Cannot initialize AppOptions.");}_createClass(AppOptions,null,[{key:"get",value:function get(name){var userOption=userOptions[name];if(userOption!==undefined){return userOption;}var defaultOption=defaultOptions[name];if(defaultOption!==undefined){var _compatibilityParams$;return(_compatibilityParams$=compatibilityParams[name])!==null&&_compatibilityParams$!==void 0?_compatibilityParams$:defaultOption.value;}return undefined;}},{key:"getAll",value:function getAll(){var kind=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var options=Object.create(null);for(var name in defaultOptions){var _compatibilityParams$2;var defaultOption=defaultOptions[name];if(kind){if((kind&defaultOption.kind)===0){continue;}if(kind===OptionKind.PREFERENCE){var value=defaultOption.value,valueType=_typeof(value);if(valueType==="boolean"||valueType==="string"||valueType==="number"&&Number.isInteger(value)){options[name]=value;continue;}throw new Error("Invalid type for preference: ".concat(name));}}var userOption=userOptions[name];options[name]=userOption!==undefined?userOption:(_compatibilityParams$2=compatibilityParams[name])!==null&&_compatibilityParams$2!==void 0?_compatibilityParams$2:defaultOption.value;}return options;}},{key:"set",value:function set(name,value){userOptions[name]=value;}},{key:"setAll",value:function setAll(options){for(var name in options){userOptions[name]=options[name];}}},{key:"remove",value:function remove(name){delete userOptions[name];}}]);return AppOptions;}();exports.AppOptions=AppOptions;{AppOptions._hasUserOptions=function(){return Object.keys(userOptions).length>0;};}

/***/ }),
/* 289 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(135);__webpack_require__(136);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(190);__webpack_require__(122);__webpack_require__(123);Object.defineProperty(exports, "__esModule", ({value:true}));exports.WaitOnType=exports.EventBus=exports.AutomationEventBus=void 0;exports.waitOnEventOrTimeout=waitOnEventOrTimeout;__webpack_require__(88);__webpack_require__(142);__webpack_require__(138);__webpack_require__(126);__webpack_require__(185);__webpack_require__(179);__webpack_require__(290);__webpack_require__(42);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}var WaitOnType={EVENT:"event",TIMEOUT:"timeout"};exports.WaitOnType=WaitOnType;function waitOnEventOrTimeout(_ref){var target=_ref.target,name=_ref.name,_ref$delay=_ref.delay,delay=_ref$delay===void 0?0:_ref$delay;return new Promise(function(resolve,reject){if(_typeof(target)!=="object"||!(name&&typeof name==="string")||!(Number.isInteger(delay)&&delay>=0)){throw new Error("waitOnEventOrTimeout - invalid parameters.");}function handler(type){if(target instanceof EventBus){target._off(name,eventHandler);}else{target.removeEventListener(name,eventHandler);}if(timeout){clearTimeout(timeout);}resolve(type);}var eventHandler=handler.bind(null,WaitOnType.EVENT);if(target instanceof EventBus){target._on(name,eventHandler);}else{target.addEventListener(name,eventHandler);}var timeoutHandler=handler.bind(null,WaitOnType.TIMEOUT);var timeout=setTimeout(timeoutHandler,delay);});}var _listeners=/*#__PURE__*/new WeakMap();var EventBus=/*#__PURE__*/function(){function EventBus(){_classCallCheck(this,EventBus);_classPrivateFieldInitSpec(this,_listeners,{writable:true,value:Object.create(null)});}_createClass(EventBus,[{key:"on",value:function on(eventName,listener){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;this._on(eventName,listener,{external:true,once:options===null||options===void 0?void 0:options.once});}},{key:"off",value:function off(eventName,listener){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;this._off(eventName,listener,{external:true,once:options===null||options===void 0?void 0:options.once});}},{key:"dispatch",value:function dispatch(eventName,data){var eventListeners=_classPrivateFieldGet(this,_listeners)[eventName];if(!eventListeners||eventListeners.length===0){return;}var externalListeners;var _iterator=_createForOfIteratorHelper(eventListeners.slice(0)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_step.value,_listener=_step$value.listener,external=_step$value.external,once=_step$value.once;if(once){this._off(eventName,_listener);}if(external){(externalListeners||(externalListeners=[])).push(_listener);continue;}_listener(data);}}catch(err){_iterator.e(err);}finally{_iterator.f();}if(externalListeners){var _iterator2=_createForOfIteratorHelper(externalListeners),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var listener=_step2.value;listener(data);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}externalListeners=null;}}},{key:"_on",value:function _on(eventName,listener){var _classPrivateFieldGet2;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var eventListeners=(_classPrivateFieldGet2=_classPrivateFieldGet(this,_listeners))[eventName]||(_classPrivateFieldGet2[eventName]=[]);eventListeners.push({listener:listener,external:(options===null||options===void 0?void 0:options.external)===true,once:(options===null||options===void 0?void 0:options.once)===true});}},{key:"_off",value:function _off(eventName,listener){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var eventListeners=_classPrivateFieldGet(this,_listeners)[eventName];if(!eventListeners){return;}for(var i=0,ii=eventListeners.length;i<ii;i++){if(eventListeners[i].listener===listener){eventListeners.splice(i,1);return;}}}}]);return EventBus;}();exports.EventBus=EventBus;var AutomationEventBus=/*#__PURE__*/function(_EventBus){_inherits(AutomationEventBus,_EventBus);var _super=_createSuper(AutomationEventBus);function AutomationEventBus(){_classCallCheck(this,AutomationEventBus);return _super.apply(this,arguments);}_createClass(AutomationEventBus,[{key:"dispatch",value:function dispatch(eventName,data){throw new Error("Not implemented: AutomationEventBus.dispatch");}}]);return AutomationEventBus;}(EventBus);exports.AutomationEventBus=AutomationEventBus;

/***/ }),
/* 290 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var toObject = __webpack_require__(9);
var toAbsoluteIndex = __webpack_require__(52);
var toIntegerOrInfinity = __webpack_require__(53);
var lengthOfArrayLike = __webpack_require__(55);
var setArrayLength = __webpack_require__(180);
var doesNotExceedSafeInteger = __webpack_require__(181);
var arraySpeciesCreate = __webpack_require__(108);
var createProperty = __webpack_require__(102);
var deletePropertyOrThrow = __webpack_require__(279);
var arrayMethodHasSpeciesSupport = __webpack_require__(186);
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
var max = Math.max;
var min = Math.min;
$({
 target: 'Array',
 proto: true,
 forced: !HAS_SPECIES_SUPPORT
}, {
 splice: function splice(start, deleteCount) {
  var O = toObject(this);
  var len = lengthOfArrayLike(O);
  var actualStart = toAbsoluteIndex(start, len);
  var argumentsLength = arguments.length;
  var insertCount, actualDeleteCount, A, k, from, to;
  if (argumentsLength === 0) {
   insertCount = actualDeleteCount = 0;
  } else if (argumentsLength === 1) {
   insertCount = 0;
   actualDeleteCount = len - actualStart;
  } else {
   insertCount = argumentsLength - 2;
   actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
  }
  doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
  A = arraySpeciesCreate(O, actualDeleteCount);
  for (k = 0; k < actualDeleteCount; k++) {
   from = actualStart + k;
   if (from in O)
    createProperty(A, k, O[from]);
  }
  A.length = actualDeleteCount;
  if (insertCount < actualDeleteCount) {
   for (k = actualStart; k < len - actualDeleteCount; k++) {
    from = k + actualDeleteCount;
    to = k + insertCount;
    if (from in O)
     O[to] = O[from];
    else
     deletePropertyOrThrow(O, to);
   }
   for (k = len; k > len - actualDeleteCount + insertCount; k--)
    deletePropertyOrThrow(O, k - 1);
  } else if (insertCount > actualDeleteCount) {
   for (k = len - actualDeleteCount; k > actualStart; k--) {
    from = k + actualDeleteCount - 1;
    to = k + insertCount - 1;
    if (from in O)
     O[to] = O[from];
    else
     deletePropertyOrThrow(O, to);
   }
  }
  for (k = 0; k < insertCount; k++) {
   O[k + actualStart] = arguments[k + 2];
  }
  setArrayLength(O, len - actualDeleteCount + insertCount);
  return A;
 }
});

/***/ }),
/* 291 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);__webpack_require__(185);__webpack_require__(192);__webpack_require__(219);Object.defineProperty(exports, "__esModule", ({value:true}));exports.SimpleLinkService=exports.PDFLinkService=exports.LinkTarget=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(240);__webpack_require__(88);__webpack_require__(92);__webpack_require__(95);__webpack_require__(198);__webpack_require__(138);__webpack_require__(115);__webpack_require__(199);__webpack_require__(200);__webpack_require__(206);__webpack_require__(248);__webpack_require__(251);__webpack_require__(292);__webpack_require__(187);__webpack_require__(188);__webpack_require__(222);__webpack_require__(142);__webpack_require__(216);__webpack_require__(283);__webpack_require__(293);__webpack_require__(179);var _ui_utils=__webpack_require__(239);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classStaticPrivateMethodGet(receiver,classConstructor,method){_classCheckPrivateStaticAccess(receiver,classConstructor);return method;}function _classCheckPrivateStaticAccess(receiver,classConstructor){if(receiver!==classConstructor){throw new TypeError("Private static access of wrong provenance");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var DEFAULT_LINK_REL="noopener noreferrer nofollow";var LinkTarget={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};exports.LinkTarget=LinkTarget;function _addLinkAttributes(link){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},url=_ref.url,target=_ref.target,rel=_ref.rel,_ref$enabled=_ref.enabled,enabled=_ref$enabled===void 0?true:_ref$enabled;if(!url||typeof url!=="string"){throw new Error('A valid "url" parameter must provided.');}var urlNullRemoved=(0,_ui_utils.removeNullCharacters)(url);if(enabled){link.href=link.title=urlNullRemoved;}else{link.href="";link.title="Disabled: ".concat(urlNullRemoved);link.onclick=function(){return false;};}var targetStr="";switch(target){case LinkTarget.NONE:break;case LinkTarget.SELF:targetStr="_self";break;case LinkTarget.BLANK:targetStr="_blank";break;case LinkTarget.PARENT:targetStr="_parent";break;case LinkTarget.TOP:targetStr="_top";break;}link.target=targetStr;link.rel=typeof rel==="string"?rel:DEFAULT_LINK_REL;}var _pagesRefCache=/*#__PURE__*/new WeakMap();var _goToDestinationHelper=/*#__PURE__*/new WeakSet();var PDFLinkService=/*#__PURE__*/function(){function PDFLinkService(){var _ref2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},eventBus=_ref2.eventBus,_ref2$externalLinkTar=_ref2.externalLinkTarget,externalLinkTarget=_ref2$externalLinkTar===void 0?null:_ref2$externalLinkTar,_ref2$externalLinkRel=_ref2.externalLinkRel,externalLinkRel=_ref2$externalLinkRel===void 0?null:_ref2$externalLinkRel,_ref2$ignoreDestinati=_ref2.ignoreDestinationZoom,ignoreDestinationZoom=_ref2$ignoreDestinati===void 0?false:_ref2$ignoreDestinati;_classCallCheck(this,PDFLinkService);_classPrivateMethodInitSpec(this,_goToDestinationHelper);_classPrivateFieldInitSpec(this,_pagesRefCache,{writable:true,value:new Map()});this.eventBus=eventBus;this.externalLinkTarget=externalLinkTarget;this.externalLinkRel=externalLinkRel;this.externalLinkEnabled=true;this._ignoreDestinationZoom=ignoreDestinationZoom;this.baseUrl=null;this.pdfDocument=null;this.pdfViewer=null;this.pdfHistory=null;}_createClass(PDFLinkService,[{key:"setDocument",value:function setDocument(pdfDocument){var baseUrl=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.baseUrl=baseUrl;this.pdfDocument=pdfDocument;_classPrivateFieldGet(this,_pagesRefCache).clear();}},{key:"setViewer",value:function setViewer(pdfViewer){this.pdfViewer=pdfViewer;}},{key:"setHistory",value:function setHistory(pdfHistory){this.pdfHistory=pdfHistory;}},{key:"pagesCount",get:function get(){return this.pdfDocument?this.pdfDocument.numPages:0;}},{key:"page",get:function get(){return this.pdfViewer.currentPageNumber;},set:function set(value){this.pdfViewer.currentPageNumber=value;}},{key:"rotation",get:function get(){return this.pdfViewer.pagesRotation;},set:function set(value){this.pdfViewer.pagesRotation=value;}},{key:"isInPresentationMode",get:function get(){return this.pdfViewer.isInPresentationMode;}},{key:"goToDestination",value:function(){var _goToDestination=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dest){var namedDest,explicitDest;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(this.pdfDocument){_context.next=2;break;}return _context.abrupt("return");case 2:if(!(typeof dest==="string")){_context.next=9;break;}namedDest=dest;_context.next=6;return this.pdfDocument.getDestination(dest);case 6:explicitDest=_context.sent;_context.next=13;break;case 9:namedDest=null;_context.next=12;return dest;case 12:explicitDest=_context.sent;case 13:if(Array.isArray(explicitDest)){_context.next=16;break;}globalThis.ngxConsole.error("PDFLinkService.goToDestination: \"".concat(explicitDest,"\" is not ")+"a valid destination array, for dest=\"".concat(dest,"\"."));return _context.abrupt("return");case 16:_classPrivateMethodGet(this,_goToDestinationHelper,_goToDestinationHelper2).call(this,dest,namedDest,explicitDest);case 17:case"end":return _context.stop();}},_callee,this);}));function goToDestination(_x){return _goToDestination.apply(this,arguments);}return goToDestination;}()},{key:"goToPage",value:function goToPage(val){if(!this.pdfDocument){return;}var pageNumber=typeof val==="string"&&this.pdfViewer.pageLabelToPageNumber(val)||val|0;if(!(Number.isInteger(pageNumber)&&pageNumber>0&&pageNumber<=this.pagesCount)){globalThis.ngxConsole.error("PDFLinkService.goToPage: \"".concat(val,"\" is not a valid page."));return;}if(this.pdfHistory){this.pdfHistory.pushCurrentPosition();this.pdfHistory.pushPage(pageNumber);}if(this.pdfViewer.pageViewMode==="book"){if(this.pdfViewer.pageFlip){this.pdfViewer.ensureAdjecentPagesAreLoaded();var evenPage=this.pdfViewer.currentPageNumber-this.pdfViewer.currentPageNumber%2;var evenTargetPage=pageNumber-pageNumber%2;if(evenPage===evenTargetPage-2){this.pdfViewer.pageFlip.flipNext();}else if(evenPage===evenTargetPage+2){this.pdfViewer.pageFlip.flipPrev();}else{this.pdfViewer.pageFlip.turnToPage(pageNumber-1);}}}else{this.pdfViewer.scrollPageIntoView({pageNumber:pageNumber});}}},{key:"addLinkAttributes",value:function addLinkAttributes(link,url){var newWindow=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;_addLinkAttributes(link,{url:url,target:newWindow?LinkTarget.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled});}},{key:"getDestinationHash",value:function getDestinationHash(dest){if(typeof dest==="string"){if(dest.length>0){return this.getAnchorUrl("#"+escape(dest));}}else if(Array.isArray(dest)){var str=JSON.stringify(dest);if(str.length>0){return this.getAnchorUrl("#"+escape(str));}}return this.getAnchorUrl("");}},{key:"getAnchorUrl",value:function getAnchorUrl(anchor){return this.baseUrl?this.baseUrl+anchor:anchor;}},{key:"setHash",value:function setHash(hash){if(!this.pdfDocument){return;}var pageNumber,dest;if(hash.includes("=")){var params=(0,_ui_utils.parseQueryString)(hash);if(params.has("search")){var query=params.get("search").replaceAll('"',""),phrase=params.get("phrase")==="true";this.eventBus.dispatch("findfromurlhash",{source:this,query:phrase?query:query.match(/\S+/g)});}if(params.has("page")){pageNumber=params.get("page")|0||1;}if(params.has("zoom")){var zoomArgs=params.get("zoom").split(",");var zoomArg=zoomArgs[0];var zoomArgNumber=parseFloat(zoomArg);if(!zoomArg.includes("Fit")){dest=[null,{name:"XYZ"},zoomArgs.length>1?zoomArgs[1]|0:null,zoomArgs.length>2?zoomArgs[2]|0:null,zoomArgNumber?zoomArgNumber/100:zoomArg];}else if(zoomArg==="Fit"||zoomArg==="FitB"){dest=[null,{name:zoomArg}];}else if(zoomArg==="FitH"||zoomArg==="FitBH"||zoomArg==="FitV"||zoomArg==="FitBV"){dest=[null,{name:zoomArg},zoomArgs.length>1?zoomArgs[1]|0:null];}else if(zoomArg==="FitR"){if(zoomArgs.length!==5){globalThis.ngxConsole.error('PDFLinkService.setHash: Not enough parameters for "FitR".');}else{dest=[null,{name:zoomArg},zoomArgs[1]|0,zoomArgs[2]|0,zoomArgs[3]|0,zoomArgs[4]|0];}}else{globalThis.ngxConsole.error("PDFLinkService.setHash: \"".concat(zoomArg,"\" is not a valid zoom value."));}}if(dest){this.pdfViewer.scrollPageIntoView({pageNumber:pageNumber||this.page,destArray:dest,allowNegativeOffset:true});}else if(pageNumber){this.page=pageNumber;}if(params.has("pagemode")){this.eventBus.dispatch("pagemode",{source:this,mode:params.get("pagemode")});}if(params.has("nameddest")){this.goToDestination(params.get("nameddest"));}}else{dest=unescape(hash);try{dest=JSON.parse(dest);if(!Array.isArray(dest)){dest=dest.toString();}}catch(_unused){}if(typeof dest==="string"||_classStaticPrivateMethodGet(PDFLinkService,PDFLinkService,_isValidExplicitDestination).call(PDFLinkService,dest)){this.goToDestination(dest);return;}globalThis.ngxConsole.error("PDFLinkService.setHash: \"".concat(unescape(hash),"\" is not a valid destination."));}}},{key:"executeNamedAction",value:function executeNamedAction(action){var _this$pdfHistory,_this$pdfHistory2;switch(action){case"GoBack":(_this$pdfHistory=this.pdfHistory)===null||_this$pdfHistory===void 0?void 0:_this$pdfHistory.back();break;case"GoForward":(_this$pdfHistory2=this.pdfHistory)===null||_this$pdfHistory2===void 0?void 0:_this$pdfHistory2.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break;}this.eventBus.dispatch("namedaction",{source:this,action:action});}},{key:"executeSetOCGState",value:function(){var _executeSetOCGState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(action){var pdfDocument,optionalContentConfig,operator,_iterator,_step,elem,group;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:pdfDocument=this.pdfDocument;_context2.next=3;return this.pdfViewer.optionalContentConfigPromise;case 3:optionalContentConfig=_context2.sent;if(!(pdfDocument!==this.pdfDocument)){_context2.next=6;break;}return _context2.abrupt("return");case 6:_iterator=_createForOfIteratorHelper(action.state);_context2.prev=7;_iterator.s();case 9:if((_step=_iterator.n()).done){_context2.next=28;break;}elem=_step.value;_context2.t0=elem;_context2.next=_context2.t0==="ON"?14:_context2.t0==="OFF"?14:_context2.t0==="Toggle"?14:16;break;case 14:operator=elem;return _context2.abrupt("continue",26);case 16:_context2.t1=operator;_context2.next=_context2.t1==="ON"?19:_context2.t1==="OFF"?21:_context2.t1==="Toggle"?23:26;break;case 19:optionalContentConfig.setVisibility(elem,true);return _context2.abrupt("break",26);case 21:optionalContentConfig.setVisibility(elem,false);return _context2.abrupt("break",26);case 23:group=optionalContentConfig.getGroup(elem);if(group){optionalContentConfig.setVisibility(elem,!group.visible);}return _context2.abrupt("break",26);case 26:_context2.next=9;break;case 28:_context2.next=33;break;case 30:_context2.prev=30;_context2.t2=_context2["catch"](7);_iterator.e(_context2.t2);case 33:_context2.prev=33;_iterator.f();return _context2.finish(33);case 36:this.pdfViewer.optionalContentConfigPromise=Promise.resolve(optionalContentConfig);case 37:case"end":return _context2.stop();}},_callee2,this,[[7,30,33,36]]);}));function executeSetOCGState(_x2){return _executeSetOCGState.apply(this,arguments);}return executeSetOCGState;}()},{key:"cachePageRef",value:function cachePageRef(pageNum,pageRef){if(!pageRef){return;}var refStr=pageRef.gen===0?"".concat(pageRef.num,"R"):"".concat(pageRef.num,"R").concat(pageRef.gen);_classPrivateFieldGet(this,_pagesRefCache).set(refStr,pageNum);}},{key:"_cachedPageNumber",value:function _cachedPageNumber(pageRef){if(!pageRef){return null;}var refStr=pageRef.gen===0?"".concat(pageRef.num,"R"):"".concat(pageRef.num,"R").concat(pageRef.gen);return _classPrivateFieldGet(this,_pagesRefCache).get(refStr)||null;}}]);return PDFLinkService;}();exports.PDFLinkService=PDFLinkService;function _goToDestinationHelper2(rawDest){var _this=this;var namedDest=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var explicitDest=arguments.length>2?arguments[2]:undefined;var destRef=explicitDest[0];var pageNumber;if(_typeof(destRef)==="object"&&destRef!==null){pageNumber=this._cachedPageNumber(destRef);if(!pageNumber){this.pdfDocument.getPageIndex(destRef).then(function(pageIndex){_this.cachePageRef(pageIndex+1,destRef);_classPrivateMethodGet(_this,_goToDestinationHelper,_goToDestinationHelper2).call(_this,rawDest,namedDest,explicitDest);}).catch(function(){globalThis.ngxConsole.error("PDFLinkService.#goToDestinationHelper: \"".concat(destRef,"\" is not ")+"a valid page reference, for dest=\"".concat(rawDest,"\"."));});return;}}else if(Number.isInteger(destRef)){pageNumber=destRef+1;}else{globalThis.ngxConsole.error("PDFLinkService.#goToDestinationHelper: \"".concat(destRef,"\" is not ")+"a valid destination reference, for dest=\"".concat(rawDest,"\"."));return;}if(!pageNumber||pageNumber<1||pageNumber>this.pagesCount){globalThis.ngxConsole.error("PDFLinkService.#goToDestinationHelper: \"".concat(pageNumber,"\" is not ")+"a valid page number, for dest=\"".concat(rawDest,"\"."));return;}if(this.pdfHistory){this.pdfHistory.pushCurrentPosition();this.pdfHistory.push({namedDest:namedDest,explicitDest:explicitDest,pageNumber:pageNumber});}this.pdfViewer.scrollPageIntoView({pageNumber:pageNumber,destArray:explicitDest,ignoreDestinationZoom:this._ignoreDestinationZoom});}function _isValidExplicitDestination(dest){if(!Array.isArray(dest)){return false;}var destLength=dest.length;if(destLength<2){return false;}var page=dest[0];if(!(_typeof(page)==="object"&&Number.isInteger(page.num)&&Number.isInteger(page.gen))&&!(Number.isInteger(page)&&page>=0)){return false;}var zoom=dest[1];if(!(_typeof(zoom)==="object"&&typeof zoom.name==="string")){return false;}var allowNull=true;switch(zoom.name){case"XYZ":if(destLength!==5){return false;}break;case"Fit":case"FitB":return destLength===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(destLength!==3){return false;}break;case"FitR":if(destLength!==6){return false;}allowNull=false;break;default:return false;}for(var i=2;i<destLength;i++){var param=dest[i];if(!(typeof param==="number"||allowNull&&param===null)){return false;}}return true;}var SimpleLinkService=/*#__PURE__*/function(){function SimpleLinkService(){_classCallCheck(this,SimpleLinkService);this.externalLinkEnabled=true;}_createClass(SimpleLinkService,[{key:"pagesCount",get:function get(){return 0;}},{key:"page",get:function get(){return 0;},set:function set(value){}},{key:"rotation",get:function get(){return 0;},set:function set(value){}},{key:"isInPresentationMode",get:function get(){return false;}},{key:"goToDestination",value:function(){var _goToDestination2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(dest){return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:case"end":return _context3.stop();}},_callee3);}));function goToDestination(_x3){return _goToDestination2.apply(this,arguments);}return goToDestination;}()},{key:"goToPage",value:function goToPage(val){}},{key:"addLinkAttributes",value:function addLinkAttributes(link,url){var newWindow=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;_addLinkAttributes(link,{url:url,enabled:this.externalLinkEnabled});}},{key:"getDestinationHash",value:function getDestinationHash(dest){return"#";}},{key:"getAnchorUrl",value:function getAnchorUrl(hash){return"#";}},{key:"setHash",value:function setHash(hash){}},{key:"executeNamedAction",value:function executeNamedAction(action){}},{key:"executeSetOCGState",value:function executeSetOCGState(action){}},{key:"cachePageRef",value:function cachePageRef(pageNum,pageRef){}}]);return SimpleLinkService;}();exports.SimpleLinkService=SimpleLinkService;

/***/ }),
/* 292 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var call = __webpack_require__(34);
var fixRegExpWellKnownSymbolLogic = __webpack_require__(213);
var anObject = __webpack_require__(31);
var isNullOrUndefined = __webpack_require__(11);
var toLength = __webpack_require__(56);
var toString = __webpack_require__(94);
var requireObjectCoercible = __webpack_require__(10);
var getMethod = __webpack_require__(38);
var advanceStringIndex = __webpack_require__(249);
var regExpExec = __webpack_require__(215);
fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
 return [
  function match(regexp) {
   var O = requireObjectCoercible(this);
   var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH);
   return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
  },
  function (string) {
   var rx = anObject(this);
   var S = toString(string);
   var res = maybeCallNative(nativeMatch, rx, S);
   if (res.done)
    return res.value;
   if (!rx.global)
    return regExpExec(rx, S);
   var fullUnicode = rx.unicode;
   rx.lastIndex = 0;
   var A = [];
   var n = 0;
   var result;
   while ((result = regExpExec(rx, S)) !== null) {
    var matchStr = toString(result[0]);
    A[n] = matchStr;
    if (matchStr === '')
     rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
    n++;
   }
   return n === 0 ? null : A;
  }
 ];
});

/***/ }),
/* 293 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


__webpack_require__(294);

/***/ }),
/* 294 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var collection = __webpack_require__(242);
var collectionWeak = __webpack_require__(285);
collection('WeakSet', function (init) {
 return function WeakSet() {
  return init(this, arguments.length ? arguments[0] : undefined);
 };
}, collectionWeak);

/***/ }),
/* 295 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(179);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.AnnotationEditorParams=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _pdfjsLib=__webpack_require__(286);function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _bindListeners=/*#__PURE__*/new WeakSet();var AnnotationEditorParams=/*#__PURE__*/_createClass(function AnnotationEditorParams(options,eventBus){_classCallCheck(this,AnnotationEditorParams);_classPrivateMethodInitSpec(this,_bindListeners);this.eventBus=eventBus;_classPrivateMethodGet(this,_bindListeners,_bindListeners2).call(this,options);});exports.AnnotationEditorParams=AnnotationEditorParams;function _bindListeners2(_ref){var _this=this;var editorFreeTextFontSize=_ref.editorFreeTextFontSize,editorFreeTextColor=_ref.editorFreeTextColor,editorInkColor=_ref.editorInkColor,editorInkThickness=_ref.editorInkThickness,editorInkOpacity=_ref.editorInkOpacity,editorStampAddImage=_ref.editorStampAddImage;var dispatchEvent=function dispatchEvent(typeStr,value){_this.eventBus.dispatch("switchannotationeditorparams",{source:_this,type:_pdfjsLib.AnnotationEditorParamsType[typeStr],value:value});};editorFreeTextFontSize.addEventListener("input",function(){dispatchEvent("FREETEXT_SIZE",this.valueAsNumber);});editorFreeTextColor.addEventListener("input",function(){dispatchEvent("FREETEXT_COLOR",this.value);});editorInkColor.addEventListener("input",function(){dispatchEvent("INK_COLOR",this.value);});editorInkThickness.addEventListener("input",function(){dispatchEvent("INK_THICKNESS",this.valueAsNumber);});editorInkOpacity.addEventListener("input",function(){dispatchEvent("INK_OPACITY",this.valueAsNumber);});editorStampAddImage.addEventListener("click",function(){dispatchEvent("CREATE");});this.eventBus._on("annotationeditorparamschanged",function(evt){var _iterator=_createForOfIteratorHelper(evt.details),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),type=_step$value[0],value=_step$value[1];switch(type){case _pdfjsLib.AnnotationEditorParamsType.FREETEXT_SIZE:editorFreeTextFontSize.value=value;break;case _pdfjsLib.AnnotationEditorParamsType.FREETEXT_COLOR:editorFreeTextColor.value=value;break;case _pdfjsLib.AnnotationEditorParamsType.INK_COLOR:editorInkColor.value=value;break;case _pdfjsLib.AnnotationEditorParamsType.INK_THICKNESS:editorInkThickness.value=value;break;case _pdfjsLib.AnnotationEditorParamsType.INK_OPACITY:editorInkOpacity.value=value;break;}}}catch(err){_iterator.e(err);}finally{_iterator.f();}});}

/***/ }),
/* 296 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.OverlayManager=void 0;__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(126);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var _overlays=/*#__PURE__*/new WeakMap();var _active=/*#__PURE__*/new WeakMap();var OverlayManager=/*#__PURE__*/function(){function OverlayManager(){_classCallCheck(this,OverlayManager);_classPrivateFieldInitSpec(this,_overlays,{writable:true,value:new WeakMap()});_classPrivateFieldInitSpec(this,_active,{writable:true,value:null});}_createClass(OverlayManager,[{key:"active",get:function get(){return _classPrivateFieldGet(this,_active);}},{key:"register",value:function(){var _register=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dialog){var _this=this;var canForceClose,_args=arguments;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:canForceClose=_args.length>1&&_args[1]!==undefined?_args[1]:false;if(!(_typeof(dialog)!=="object")){_context.next=5;break;}throw new Error("Not enough parameters.");case 5:if(!_classPrivateFieldGet(this,_overlays).has(dialog)){_context.next=7;break;}throw new Error("The overlay is already registered.");case 7:_classPrivateFieldGet(this,_overlays).set(dialog,{canForceClose:canForceClose});dialog.addEventListener("cancel",function(evt){_classPrivateFieldSet(_this,_active,null);});case 9:case"end":return _context.stop();}},_callee,this);}));function register(_x){return _register.apply(this,arguments);}return register;}()},{key:"open",value:function(){var _open=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(dialog){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(_classPrivateFieldGet(this,_overlays).has(dialog)){_context2.next=4;break;}throw new Error("The overlay does not exist.");case 4:if(!_classPrivateFieldGet(this,_active)){_context2.next=15;break;}if(!(_classPrivateFieldGet(this,_active)===dialog)){_context2.next=9;break;}throw new Error("The overlay is already active.");case 9:if(!_classPrivateFieldGet(this,_overlays).get(dialog).canForceClose){_context2.next=14;break;}_context2.next=12;return this.close();case 12:_context2.next=15;break;case 14:throw new Error("Another overlay is currently active.");case 15:_classPrivateFieldSet(this,_active,dialog);dialog.showModal();dialog.classList.remove("hidden");case 18:case"end":return _context2.stop();}},_callee2,this);}));function open(_x2){return _open.apply(this,arguments);}return open;}()},{key:"close",value:function(){var _close=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var dialog,_args3=arguments;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:dialog=_args3.length>0&&_args3[0]!==undefined?_args3[0]:_classPrivateFieldGet(this,_active);if(_classPrivateFieldGet(this,_overlays).has(dialog)){_context3.next=5;break;}throw new Error("The overlay does not exist.");case 5:if(_classPrivateFieldGet(this,_active)){_context3.next=9;break;}throw new Error("The overlay is currently not active.");case 9:if(!(_classPrivateFieldGet(this,_active)!==dialog)){_context3.next=11;break;}throw new Error("Another overlay is currently active.");case 11:dialog.close();_classPrivateFieldSet(this,_active,null);case 13:case"end":return _context3.stop();}},_callee3,this);}));function close(){return _close.apply(this,arguments);}return close;}()}]);return OverlayManager;}();exports.OverlayManager=OverlayManager;

/***/ }),
/* 297 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PasswordPrompt=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(293);var _pdfjsLib=__webpack_require__(286);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _activeCapability=/*#__PURE__*/new WeakMap();var _updateCallback=/*#__PURE__*/new WeakMap();var _reason=/*#__PURE__*/new WeakMap();var _verify=/*#__PURE__*/new WeakSet();var _cancel=/*#__PURE__*/new WeakSet();var _invokeCallback=/*#__PURE__*/new WeakSet();var PasswordPrompt=/*#__PURE__*/function(){function PasswordPrompt(options,overlayManager,l10n){var _this=this;var isViewerEmbedded=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;_classCallCheck(this,PasswordPrompt);_classPrivateMethodInitSpec(this,_invokeCallback);_classPrivateMethodInitSpec(this,_cancel);_classPrivateMethodInitSpec(this,_verify);_classPrivateFieldInitSpec(this,_activeCapability,{writable:true,value:null});_classPrivateFieldInitSpec(this,_updateCallback,{writable:true,value:null});_classPrivateFieldInitSpec(this,_reason,{writable:true,value:null});this.dialog=options.dialog;this.label=options.label;this.input=options.input;this.submitButton=options.submitButton;this.cancelButton=options.cancelButton;this.overlayManager=overlayManager;this.l10n=l10n;this._isViewerEmbedded=isViewerEmbedded;this.submitButton.addEventListener("click",_classPrivateMethodGet(this,_verify,_verify2).bind(this));this.cancelButton.addEventListener("click",this.close.bind(this));this.input.addEventListener("keydown",function(e){if(e.keyCode===13){_classPrivateMethodGet(_this,_verify,_verify2).call(_this);}});this.overlayManager.register(this.dialog,true);this.dialog.addEventListener("close",_classPrivateMethodGet(this,_cancel,_cancel2).bind(this));}_createClass(PasswordPrompt,[{key:"open",value:function(){var _open=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var passwordIncorrect;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!_classPrivateFieldGet(this,_activeCapability)){_context.next=3;break;}_context.next=3;return _classPrivateFieldGet(this,_activeCapability).promise;case 3:_classPrivateFieldSet(this,_activeCapability,new _pdfjsLib.PromiseCapability());_context.prev=4;_context.next=7;return this.overlayManager.open(this.dialog);case 7:this.input.type="password";this.input.focus();_context.next=15;break;case 11:_context.prev=11;_context.t0=_context["catch"](4);_classPrivateFieldGet(this,_activeCapability).resolve();throw _context.t0;case 15:passwordIncorrect=_classPrivateFieldGet(this,_reason)===_pdfjsLib.PasswordResponses.INCORRECT_PASSWORD;if(!this._isViewerEmbedded||passwordIncorrect){this.input.focus();}_context.next=19;return this.l10n.get("password_".concat(passwordIncorrect?"invalid":"label"));case 19:this.label.textContent=_context.sent;case 20:case"end":return _context.stop();}},_callee,this,[[4,11]]);}));function open(){return _open.apply(this,arguments);}return open;}()},{key:"close",value:function(){var _close=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(this.overlayManager.active===this.dialog){this.overlayManager.close(this.dialog);this.input.value="";this.input.type="hidden";}case 1:case"end":return _context2.stop();}},_callee2,this);}));function close(){return _close.apply(this,arguments);}return close;}()},{key:"setUpdateCallback",value:function(){var _setUpdateCallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(updateCallback,reason){return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!_classPrivateFieldGet(this,_activeCapability)){_context3.next=3;break;}_context3.next=3;return _classPrivateFieldGet(this,_activeCapability).promise;case 3:_classPrivateFieldSet(this,_updateCallback,updateCallback);_classPrivateFieldSet(this,_reason,reason);case 5:case"end":return _context3.stop();}},_callee3,this);}));function setUpdateCallback(_x,_x2){return _setUpdateCallback.apply(this,arguments);}return setUpdateCallback;}()}]);return PasswordPrompt;}();exports.PasswordPrompt=PasswordPrompt;function _verify2(){var password=this.input.value;if((password===null||password===void 0?void 0:password.length)>0){_classPrivateMethodGet(this,_invokeCallback,_invokeCallback2).call(this,password);}}function _cancel2(){_classPrivateMethodGet(this,_invokeCallback,_invokeCallback2).call(this,new Error("PasswordPrompt cancelled."));_classPrivateFieldGet(this,_activeCapability).resolve();}function _invokeCallback2(password){if(!_classPrivateFieldGet(this,_updateCallback)){return;}this.close();this.input.value="";_classPrivateFieldGet(this,_updateCallback).call(this,password);_classPrivateFieldSet(this,_updateCallback,null);}

/***/ }),
/* 298 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}__webpack_require__(190);__webpack_require__(122);__webpack_require__(123);__webpack_require__(299);__webpack_require__(196);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFAttachmentViewer=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _pdfjsLib=__webpack_require__(286);var _base_tree_viewer=__webpack_require__(301);var _event_utils=__webpack_require__(289);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _appendAttachment=/*#__PURE__*/new WeakSet();var PDFAttachmentViewer=/*#__PURE__*/function(_BaseTreeViewer){_inherits(PDFAttachmentViewer,_BaseTreeViewer);var _super=_createSuper(PDFAttachmentViewer);function PDFAttachmentViewer(options){var _this;_classCallCheck(this,PDFAttachmentViewer);_this=_super.call(this,options);_classPrivateMethodInitSpec(_assertThisInitialized(_this),_appendAttachment);_this.downloadManager=options.downloadManager;_this.eventBus._on("fileattachmentannotation",_classPrivateMethodGet(_assertThisInitialized(_this),_appendAttachment,_appendAttachment2).bind(_assertThisInitialized(_this)));return _this;}_createClass(PDFAttachmentViewer,[{key:"reset",value:function reset(){var keepRenderedCapability=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;_get(_getPrototypeOf(PDFAttachmentViewer.prototype),"reset",this).call(this);this._attachments=null;if(!keepRenderedCapability){this._renderedCapability=new _pdfjsLib.PromiseCapability();}this._pendingDispatchEvent=false;}},{key:"_dispatchEvent",value:function(){var _dispatchEvent2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(attachmentsCount){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:this._renderedCapability.resolve();if(!(attachmentsCount===0&&!this._pendingDispatchEvent)){_context.next=7;break;}this._pendingDispatchEvent=true;_context.next=5;return(0,_event_utils.waitOnEventOrTimeout)({target:this.eventBus,name:"annotationlayerrendered",delay:1000});case 5:if(this._pendingDispatchEvent){_context.next=7;break;}return _context.abrupt("return");case 7:this._pendingDispatchEvent=false;this.eventBus.dispatch("attachmentsloaded",{source:this,attachmentsCount:attachmentsCount});case 9:case"end":return _context.stop();}},_callee,this);}));function _dispatchEvent(_x){return _dispatchEvent2.apply(this,arguments);}return _dispatchEvent;}()},{key:"_bindLink",value:function _bindLink(element,_ref){var _this2=this;var content=_ref.content,filename=_ref.filename;element.onclick=function(){_this2.downloadManager.openOrDownloadData(element,content,filename);return false;};}},{key:"render",value:function render(_ref2){var attachments=_ref2.attachments,_ref2$keepRenderedCap=_ref2.keepRenderedCapability,keepRenderedCapability=_ref2$keepRenderedCap===void 0?false:_ref2$keepRenderedCap;if(this._attachments){this.reset(keepRenderedCapability);}this._attachments=attachments||null;if(!attachments){this._dispatchEvent(0);return;}var fragment=document.createDocumentFragment();var attachmentsCount=0;for(var name in attachments){var item=attachments[name];var content=item.content,filename=(0,_pdfjsLib.getFilenameFromUrl)(item.filename,true);var div=document.createElement("div");div.className="treeItem";var element=document.createElement("a");this._bindLink(element,{content:content,filename:filename});element.textContent=this._normalizeTextContent(filename);div.append(element);fragment.append(div);attachmentsCount++;}this._finishRendering(fragment,attachmentsCount);}}]);return PDFAttachmentViewer;}(_base_tree_viewer.BaseTreeViewer);exports.PDFAttachmentViewer=PDFAttachmentViewer;function _appendAttachment2(_ref3){var _this3=this;var filename=_ref3.filename,content=_ref3.content;var renderedPromise=this._renderedCapability.promise;renderedPromise.then(function(){if(renderedPromise!==_this3._renderedCapability.promise){return;}var attachments=_this3._attachments||Object.create(null);for(var name in attachments){if(filename===name){return;}}attachments[filename]={filename:filename,content:content};_this3.render({attachments:attachments,keepRenderedCapability:true});});}

/***/ }),
/* 299 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var call = __webpack_require__(34);
var isObject = __webpack_require__(27);
var anObject = __webpack_require__(31);
var isDataDescriptor = __webpack_require__(300);
var getOwnPropertyDescriptorModule = __webpack_require__(68);
var getPrototypeOf = __webpack_require__(81);
function get(target, propertyKey) {
 var receiver = arguments.length < 3 ? target : arguments[2];
 var descriptor, prototype;
 if (anObject(target) === receiver)
  return target[propertyKey];
 descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);
 if (descriptor)
  return isDataDescriptor(descriptor) ? descriptor.value : descriptor.get === undefined ? undefined : call(descriptor.get, receiver);
 if (isObject(prototype = getPrototypeOf(target)))
  return get(prototype, propertyKey, receiver);
}
$({
 target: 'Reflect',
 stat: true
}, { get: get });

/***/ }),
/* 300 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var hasOwn = __webpack_require__(5);
module.exports = function (descriptor) {
 return descriptor !== undefined && (hasOwn(descriptor, 'value') || hasOwn(descriptor, 'writable'));
};

/***/ }),
/* 301 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(92);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(42);__webpack_require__(95);Object.defineProperty(exports, "__esModule", ({value:true}));exports.BaseTreeViewer=void 0;__webpack_require__(126);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(138);var _ui_utils=__webpack_require__(239);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var TREEITEM_OFFSET_TOP=-100;var TREEITEM_SELECTED_CLASS="selected";var BaseTreeViewer=/*#__PURE__*/function(){function BaseTreeViewer(options){_classCallCheck(this,BaseTreeViewer);if(this.constructor===BaseTreeViewer){throw new Error("Cannot initialize BaseTreeViewer.");}this.container=options.container;this.eventBus=options.eventBus;this.reset();}_createClass(BaseTreeViewer,[{key:"reset",value:function reset(){this._pdfDocument=null;this._lastToggleIsShow=true;this._currentTreeItem=null;this.container.textContent="";this.container.classList.remove("treeWithDeepNesting");}},{key:"_dispatchEvent",value:function _dispatchEvent(count){throw new Error("Not implemented: _dispatchEvent");}},{key:"_bindLink",value:function _bindLink(element,params){throw new Error("Not implemented: _bindLink");}},{key:"_normalizeTextContent",value:function _normalizeTextContent(str){return(0,_ui_utils.removeNullCharacters)(str,true)||"\u2013";}},{key:"_addToggleButton",value:function _addToggleButton(div){var _this=this;var hidden=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var toggler=document.createElement("div");toggler.className="treeItemToggler";if(hidden){toggler.classList.add("treeItemsHidden");}toggler.onclick=function(evt){evt.stopPropagation();toggler.classList.toggle("treeItemsHidden");if(evt.shiftKey){var shouldShowAll=!toggler.classList.contains("treeItemsHidden");_this._toggleTreeItem(div,shouldShowAll);}};div.prepend(toggler);}},{key:"_toggleTreeItem",value:function _toggleTreeItem(root){var show=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;this._lastToggleIsShow=show;var _iterator=_createForOfIteratorHelper(root.querySelectorAll(".treeItemToggler")),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var toggler=_step.value;toggler.classList.toggle("treeItemsHidden",!show);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}},{key:"_toggleAllTreeItems",value:function _toggleAllTreeItems(){this._toggleTreeItem(this.container,!this._lastToggleIsShow);}},{key:"_finishRendering",value:function _finishRendering(fragment,count){var hasAnyNesting=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(hasAnyNesting){this.container.classList.add("treeWithDeepNesting");this._lastToggleIsShow=!fragment.querySelector(".treeItemsHidden");}this.container.append(fragment);this._dispatchEvent(count);}},{key:"render",value:function render(params){throw new Error("Not implemented: render");}},{key:"_updateCurrentTreeItem",value:function _updateCurrentTreeItem(){var treeItem=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(this._currentTreeItem){this._currentTreeItem.classList.remove(TREEITEM_SELECTED_CLASS);this._currentTreeItem=null;}if(treeItem){treeItem.classList.add(TREEITEM_SELECTED_CLASS);this._currentTreeItem=treeItem;}}},{key:"_scrollToCurrentTreeItem",value:function _scrollToCurrentTreeItem(treeItem){if(!treeItem){return;}var currentNode=treeItem.parentNode;while(currentNode&&currentNode!==this.container){if(currentNode.classList.contains("treeItem")){var toggler=currentNode.firstElementChild;toggler===null||toggler===void 0?void 0:toggler.classList.remove("treeItemsHidden");}currentNode=currentNode.parentNode;}this._updateCurrentTreeItem(treeItem);this.container.scrollTo(treeItem.offsetLeft,treeItem.offsetTop+TREEITEM_OFFSET_TOP);}}]);return BaseTreeViewer;}();exports.BaseTreeViewer=BaseTreeViewer;

/***/ }),
/* 302 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFCursorTools=void 0;__webpack_require__(88);__webpack_require__(142);__webpack_require__(198);__webpack_require__(126);__webpack_require__(42);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(293);var _pdfjsLib=__webpack_require__(286);var _ui_utils=__webpack_require__(239);var _grab_to_pan=__webpack_require__(303);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _active=/*#__PURE__*/new WeakMap();var _prevActive=/*#__PURE__*/new WeakMap();var _addEventListeners=/*#__PURE__*/new WeakSet();var PDFCursorTools=/*#__PURE__*/function(){function PDFCursorTools(_ref){var _this=this;var container=_ref.container,eventBus=_ref.eventBus,_ref$cursorToolOnLoad=_ref.cursorToolOnLoad,cursorToolOnLoad=_ref$cursorToolOnLoad===void 0?_ui_utils.CursorTool.SELECT:_ref$cursorToolOnLoad;_classCallCheck(this,PDFCursorTools);_classPrivateMethodInitSpec(this,_addEventListeners);_classPrivateFieldInitSpec(this,_active,{writable:true,value:_ui_utils.CursorTool.SELECT});_classPrivateFieldInitSpec(this,_prevActive,{writable:true,value:null});this.container=container;this.eventBus=eventBus;_classPrivateMethodGet(this,_addEventListeners,_addEventListeners2).call(this);Promise.resolve().then(function(){_this.switchTool(cursorToolOnLoad);});}_createClass(PDFCursorTools,[{key:"activeTool",get:function get(){return _classPrivateFieldGet(this,_active);}},{key:"switchTool",value:function switchTool(tool){var _this2=this;if(_classPrivateFieldGet(this,_prevActive)!==null){return;}if(tool===_classPrivateFieldGet(this,_active)){return;}var disableActiveTool=function disableActiveTool(){switch(_classPrivateFieldGet(_this2,_active)){case _ui_utils.CursorTool.SELECT:break;case _ui_utils.CursorTool.HAND:_this2._handTool.deactivate();break;case _ui_utils.CursorTool.ZOOM:}};switch(tool){case _ui_utils.CursorTool.SELECT:disableActiveTool();break;case _ui_utils.CursorTool.HAND:disableActiveTool();this._handTool.activate();break;case _ui_utils.CursorTool.ZOOM:default:globalThis.ngxConsole.error("switchTool: \"".concat(tool,"\" is an unsupported value."));return;}_classPrivateFieldSet(this,_active,tool);this.eventBus.dispatch("cursortoolchanged",{source:this,tool:tool});}},{key:"_handTool",get:function get(){return(0,_pdfjsLib.shadow)(this,"_handTool",new _grab_to_pan.GrabToPan({element:this.container}));}}]);return PDFCursorTools;}();exports.PDFCursorTools=PDFCursorTools;function _addEventListeners2(){var _this3=this;this.eventBus._on("switchcursortool",function(evt){_this3.switchTool(evt.tool);});var annotationEditorMode=_pdfjsLib.AnnotationEditorType.NONE,presentationModeState=_ui_utils.PresentationModeState.NORMAL;var disableActive=function disableActive(){var _classPrivateFieldGet2;var prevActive=_classPrivateFieldGet(_this3,_active);_this3.switchTool(_ui_utils.CursorTool.SELECT);(_classPrivateFieldGet2=_classPrivateFieldGet(_this3,_prevActive))!==null&&_classPrivateFieldGet2!==void 0?_classPrivateFieldGet2:_classPrivateFieldSet(_this3,_prevActive,prevActive);};var enableActive=function enableActive(){var prevActive=_classPrivateFieldGet(_this3,_prevActive);if(prevActive!==null&&annotationEditorMode===_pdfjsLib.AnnotationEditorType.NONE&&presentationModeState===_ui_utils.PresentationModeState.NORMAL){_classPrivateFieldSet(_this3,_prevActive,null);_this3.switchTool(prevActive);}};this.eventBus._on("secondarytoolbarreset",function(evt){if(_classPrivateFieldGet(_this3,_prevActive)!==null){annotationEditorMode=_pdfjsLib.AnnotationEditorType.NONE;presentationModeState=_ui_utils.PresentationModeState.NORMAL;enableActive();}});this.eventBus._on("annotationeditormodechanged",function(_ref2){var mode=_ref2.mode;annotationEditorMode=mode;if(mode===_pdfjsLib.AnnotationEditorType.NONE){enableActive();}else{disableActive();}});this.eventBus._on("presentationmodechanged",function(_ref3){var state=_ref3.state;presentationModeState=state;if(state===_ui_utils.PresentationModeState.NORMAL){enableActive();}else if(state===_ui_utils.PresentationModeState.FULLSCREEN){disableActive();}});}

/***/ }),
/* 303 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.GrabToPan=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var CSS_CLASS_GRAB="grab-to-pan-grab";var _onMouseDown=/*#__PURE__*/new WeakSet();var _onMouseMove=/*#__PURE__*/new WeakSet();var _endPan=/*#__PURE__*/new WeakSet();var GrabToPan=/*#__PURE__*/function(){function GrabToPan(_ref){var element=_ref.element;_classCallCheck(this,GrabToPan);_classPrivateMethodInitSpec(this,_endPan);_classPrivateMethodInitSpec(this,_onMouseMove);_classPrivateMethodInitSpec(this,_onMouseDown);this.element=element;this.document=element.ownerDocument;this.activate=this.activate.bind(this);this.deactivate=this.deactivate.bind(this);this.toggle=this.toggle.bind(this);this._onMouseDown=_classPrivateMethodGet(this,_onMouseDown,_onMouseDown2).bind(this);this._onMouseMove=_classPrivateMethodGet(this,_onMouseMove,_onMouseMove2).bind(this);this._endPan=_classPrivateMethodGet(this,_endPan,_endPan2).bind(this);var overlay=this.overlay=document.createElement("div");overlay.className="grab-to-pan-grabbing";}_createClass(GrabToPan,[{key:"activate",value:function activate(){if(!this.active){this.active=true;this.element.addEventListener("mousedown",this._onMouseDown);this.element.classList.add(CSS_CLASS_GRAB);}}},{key:"deactivate",value:function deactivate(){if(this.active){this.active=false;this.element.removeEventListener("mousedown",this._onMouseDown);this._endPan();this.element.classList.remove(CSS_CLASS_GRAB);}}},{key:"toggle",value:function toggle(){if(this.active){this.deactivate();}else{this.activate();}}},{key:"ignoreTarget",value:function ignoreTarget(node){if(document.querySelector(".stf__item")){return true;}return node.matches("a[href], a[href] *, input, textarea, button, button *, select, option");}}]);return GrabToPan;}();exports.GrabToPan=GrabToPan;function _onMouseDown2(event){if(event.button!==0||this.ignoreTarget(event.target)){return;}if(event.originalTarget){try{event.originalTarget.tagName;}catch(_unused){return;}}this.scrollLeftStart=this.element.scrollLeft;this.scrollTopStart=this.element.scrollTop;this.clientXStart=event.clientX;this.clientYStart=event.clientY;if(isOverPerfectScrollbar(this.clientXStart,this.clientYStart,"ps__rail-x")){return;}if(isOverPerfectScrollbar(this.clientXStart,this.clientYStart,"ps__rail-y")){return;}this.document.addEventListener("mousemove",this._onMouseMove,true);this.document.addEventListener("mouseup",this._endPan,true);this.element.addEventListener("scroll",this._endPan,true);event.preventDefault();event.stopPropagation();var focusedElement=document.activeElement;if(focusedElement&&!focusedElement.contains(event.target)){focusedElement.blur();}}function _onMouseMove2(event){this.element.removeEventListener("scroll",this._endPan,true);if(!(event.buttons&1)){this._endPan();return;}var xDiff=event.clientX-this.clientXStart;var yDiff=event.clientY-this.clientYStart;this.element.scrollTo({top:this.scrollTopStart-yDiff,left:this.scrollLeftStart-xDiff,behavior:"instant"});if(!this.overlay.parentNode){document.body.append(this.overlay);}}function _endPan2(){this.element.removeEventListener("scroll",this._endPan,true);this.document.removeEventListener("mousemove",this._onMouseMove,true);this.document.removeEventListener("mouseup",this._endPan,true);this.overlay.remove();}function isOverPerfectScrollbar(x,y,divName){var perfectScrollbar=document.getElementsByClassName(divName);if(perfectScrollbar&&perfectScrollbar.length===1){var _perfectScrollbar$0$g=perfectScrollbar[0].getBoundingClientRect(),top=_perfectScrollbar$0$g.top,right=_perfectScrollbar$0$g.right,bottom=_perfectScrollbar$0$g.bottom,left=_perfectScrollbar$0$g.left;if(y>=top&&y<=bottom){if(x<=right&&x>=left){return true;}}}return false;}

/***/ }),
/* 304 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}__webpack_require__(126);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(179);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFDocumentProperties=void 0;__webpack_require__(216);__webpack_require__(199);__webpack_require__(42);__webpack_require__(88);__webpack_require__(142);__webpack_require__(92);__webpack_require__(95);__webpack_require__(305);__webpack_require__(217);__webpack_require__(283);__webpack_require__(293);__webpack_require__(138);var _ui_utils=__webpack_require__(239);var _pdfjsLib=__webpack_require__(286);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var DEFAULT_FIELD_CONTENT="-";var NON_METRIC_LOCALES=["en-us","en-lr","my"];var US_PAGE_NAMES={"8.5x11":"Letter","8.5x14":"Legal"};var METRIC_PAGE_NAMES={"297x420":"A3","210x297":"A4"};function getPageName(size,isPortrait,pageNames){var width=isPortrait?size.width:size.height;var height=isPortrait?size.height:size.width;return pageNames["".concat(width,"x").concat(height)];}var _fieldData=/*#__PURE__*/new WeakMap();var _reset=/*#__PURE__*/new WeakSet();var _updateUI=/*#__PURE__*/new WeakSet();var _parseFileSize=/*#__PURE__*/new WeakSet();var _parsePageSize=/*#__PURE__*/new WeakSet();var _parseDate=/*#__PURE__*/new WeakSet();var _parseLinearization=/*#__PURE__*/new WeakSet();var PDFDocumentProperties=/*#__PURE__*/function(){function PDFDocumentProperties(_ref,overlayManager,eventBus,l10n,fileNameLookup){var _this=this;var dialog=_ref.dialog,fields=_ref.fields,closeButton=_ref.closeButton;_classCallCheck(this,PDFDocumentProperties);_classPrivateMethodInitSpec(this,_parseLinearization);_classPrivateMethodInitSpec(this,_parseDate);_classPrivateMethodInitSpec(this,_parsePageSize);_classPrivateMethodInitSpec(this,_parseFileSize);_classPrivateMethodInitSpec(this,_updateUI);_classPrivateMethodInitSpec(this,_reset);_classPrivateFieldInitSpec(this,_fieldData,{writable:true,value:null});this.dialog=dialog;this.fields=fields;this.overlayManager=overlayManager;this.l10n=l10n;this._fileNameLookup=fileNameLookup;this.eventBus=eventBus;_classPrivateMethodGet(this,_reset,_reset2).call(this);closeButton.addEventListener("click",this.close.bind(this));this.overlayManager.register(this.dialog);eventBus._on("pagechanging",function(evt){_this._currentPageNumber=evt.pageNumber;});eventBus._on("rotationchanging",function(evt){_this._pagesRotation=evt.pagesRotation;});this._isNonMetricLocale=true;l10n.getLanguage().then(function(locale){_this._isNonMetricLocale=NON_METRIC_LOCALES.includes(locale);});}_createClass(PDFDocumentProperties,[{key:"open",value:function(){var _open=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _this2=this;var currentPageNumber,pagesRotation,_yield$this$pdfDocume,info,contentLength,_yield$Promise$all,_yield$Promise$all2,fileName,fileSize,creationDate,modificationDate,pageSize,isLinearized,_yield$this$pdfDocume2,length,data;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return Promise.all([this.overlayManager.open(this.dialog),this._dataAvailableCapability.promise]);case 2:this.eventBus.dispatch("propertiesdialogopen",this);currentPageNumber=this._currentPageNumber;pagesRotation=this._pagesRotation;if(!(_classPrivateFieldGet(this,_fieldData)&&currentPageNumber===_classPrivateFieldGet(this,_fieldData)._currentPageNumber&&pagesRotation===_classPrivateFieldGet(this,_fieldData)._pagesRotation)){_context.next=8;break;}_classPrivateMethodGet(this,_updateUI,_updateUI2).call(this);return _context.abrupt("return");case 8:_context.next=10;return this.pdfDocument.getMetadata();case 10:_yield$this$pdfDocume=_context.sent;info=_yield$this$pdfDocume.info;contentLength=_yield$this$pdfDocume.contentLength;_context.next=15;return Promise.all([this._fileNameLookup(),_classPrivateMethodGet(this,_parseFileSize,_parseFileSize2).call(this,contentLength),_classPrivateMethodGet(this,_parseDate,_parseDate2).call(this,info.CreationDate),_classPrivateMethodGet(this,_parseDate,_parseDate2).call(this,info.ModDate),this.pdfDocument.getPage(currentPageNumber).then(function(pdfPage){return _classPrivateMethodGet(_this2,_parsePageSize,_parsePageSize2).call(_this2,(0,_ui_utils.getPageSizeInches)(pdfPage),pagesRotation);}),_classPrivateMethodGet(this,_parseLinearization,_parseLinearization2).call(this,info.IsLinearized)]);case 15:_yield$Promise$all=_context.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,6);fileName=_yield$Promise$all2[0];fileSize=_yield$Promise$all2[1];creationDate=_yield$Promise$all2[2];modificationDate=_yield$Promise$all2[3];pageSize=_yield$Promise$all2[4];isLinearized=_yield$Promise$all2[5];_classPrivateFieldSet(this,_fieldData,Object.freeze({fileName:fileName,fileSize:fileSize,title:info.Title,author:info.Author,subject:info.Subject,keywords:info.Keywords,creationDate:creationDate,modificationDate:modificationDate,creator:info.Creator,producer:info.Producer,version:info.PDFFormatVersion,pageCount:this.pdfDocument.numPages,pageSize:pageSize,linearized:isLinearized,_currentPageNumber:currentPageNumber,_pagesRotation:pagesRotation}));_classPrivateMethodGet(this,_updateUI,_updateUI2).call(this);_context.next=27;return this.pdfDocument.getDownloadInfo();case 27:_yield$this$pdfDocume2=_context.sent;length=_yield$this$pdfDocume2.length;if(!(contentLength===length)){_context.next=31;break;}return _context.abrupt("return");case 31:data=Object.assign(Object.create(null),_classPrivateFieldGet(this,_fieldData));_context.next=34;return _classPrivateMethodGet(this,_parseFileSize,_parseFileSize2).call(this,length);case 34:data.fileSize=_context.sent;_classPrivateFieldSet(this,_fieldData,Object.freeze(data));_classPrivateMethodGet(this,_updateUI,_updateUI2).call(this);case 37:case"end":return _context.stop();}},_callee,this);}));function open(){return _open.apply(this,arguments);}return open;}()},{key:"close",value:function(){var _close=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:this.overlayManager.close(this.dialog);this.eventBus.dispatch("propertiesdialogclose",this);case 2:case"end":return _context2.stop();}},_callee2,this);}));function close(){return _close.apply(this,arguments);}return close;}()},{key:"setDocument",value:function setDocument(pdfDocument){if(this.pdfDocument){_classPrivateMethodGet(this,_reset,_reset2).call(this);_classPrivateMethodGet(this,_updateUI,_updateUI2).call(this,true);}if(!pdfDocument){return;}this.pdfDocument=pdfDocument;this._dataAvailableCapability.resolve();}}]);return PDFDocumentProperties;}();exports.PDFDocumentProperties=PDFDocumentProperties;function _reset2(){this.pdfDocument=null;_classPrivateFieldSet(this,_fieldData,null);this._dataAvailableCapability=new _pdfjsLib.PromiseCapability();this._currentPageNumber=1;this._pagesRotation=0;}function _updateUI2(){var reset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(reset||!_classPrivateFieldGet(this,_fieldData)){for(var id in this.fields){this.fields[id].textContent=DEFAULT_FIELD_CONTENT;}return;}if(this.overlayManager.active!==this.dialog){return;}for(var _id in this.fields){var content=_classPrivateFieldGet(this,_fieldData)[_id];this.fields[_id].textContent=content||content===0?content:DEFAULT_FIELD_CONTENT;}}function _parseFileSize2(){return _parseFileSize3.apply(this,arguments);}function _parseFileSize3(){_parseFileSize3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var fileSize,kb,mb,_args3=arguments;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:fileSize=_args3.length>0&&_args3[0]!==undefined?_args3[0]:0;kb=fileSize/1024,mb=kb/1024;if(kb){_context3.next=4;break;}return _context3.abrupt("return",undefined);case 4:return _context3.abrupt("return",this.l10n.get("document_properties_".concat(mb>=1?"mb":"kb"),{size_mb:mb>=1&&(+mb.toPrecision(3)).toLocaleString(),size_kb:mb<1&&(+kb.toPrecision(3)).toLocaleString(),size_b:fileSize.toLocaleString()}));case 5:case"end":return _context3.stop();}},_callee3,this);}));return _parseFileSize3.apply(this,arguments);}function _parsePageSize2(_x2,_x3){return _parsePageSize3.apply(this,arguments);}function _parsePageSize3(){_parsePageSize3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(pageSizeInches,pagesRotation){var isPortrait,sizeInches,sizeMillimeters,rawName,exactMillimeters,intMillimeters,_yield$Promise$all3,_yield$Promise$all4,_yield$Promise$all4$,width,height,unit,name,orientation;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:if(pageSizeInches){_context4.next=2;break;}return _context4.abrupt("return",undefined);case 2:if(pagesRotation%180!==0){pageSizeInches={width:pageSizeInches.height,height:pageSizeInches.width};}isPortrait=(0,_ui_utils.isPortraitOrientation)(pageSizeInches);sizeInches={width:Math.round(pageSizeInches.width*100)/100,height:Math.round(pageSizeInches.height*100)/100};sizeMillimeters={width:Math.round(pageSizeInches.width*25.4*10)/10,height:Math.round(pageSizeInches.height*25.4*10)/10};rawName=getPageName(sizeInches,isPortrait,US_PAGE_NAMES)||getPageName(sizeMillimeters,isPortrait,METRIC_PAGE_NAMES);if(!rawName&&!(Number.isInteger(sizeMillimeters.width)&&Number.isInteger(sizeMillimeters.height))){exactMillimeters={width:pageSizeInches.width*25.4,height:pageSizeInches.height*25.4};intMillimeters={width:Math.round(sizeMillimeters.width),height:Math.round(sizeMillimeters.height)};if(Math.abs(exactMillimeters.width-intMillimeters.width)<0.1&&Math.abs(exactMillimeters.height-intMillimeters.height)<0.1){rawName=getPageName(intMillimeters,isPortrait,METRIC_PAGE_NAMES);if(rawName){sizeInches={width:Math.round(intMillimeters.width/25.4*100)/100,height:Math.round(intMillimeters.height/25.4*100)/100};sizeMillimeters=intMillimeters;}}}_context4.next=10;return Promise.all([this._isNonMetricLocale?sizeInches:sizeMillimeters,this.l10n.get("document_properties_page_size_unit_".concat(this._isNonMetricLocale?"inches":"millimeters")),rawName&&this.l10n.get("document_properties_page_size_name_".concat(rawName.toLowerCase())),this.l10n.get("document_properties_page_size_orientation_".concat(isPortrait?"portrait":"landscape"))]);case 10:_yield$Promise$all3=_context4.sent;_yield$Promise$all4=_slicedToArray(_yield$Promise$all3,4);_yield$Promise$all4$=_yield$Promise$all4[0];width=_yield$Promise$all4$.width;height=_yield$Promise$all4$.height;unit=_yield$Promise$all4[1];name=_yield$Promise$all4[2];orientation=_yield$Promise$all4[3];return _context4.abrupt("return",this.l10n.get("document_properties_page_size_dimension_".concat(name?"name_":"","string"),{width:width.toLocaleString(),height:height.toLocaleString(),unit:unit,name:name,orientation:orientation}));case 19:case"end":return _context4.stop();}},_callee4,this);}));return _parsePageSize3.apply(this,arguments);}function _parseDate2(_x4){return _parseDate3.apply(this,arguments);}function _parseDate3(){_parseDate3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(inputDate){var dateObject;return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:dateObject=_pdfjsLib.PDFDateString.toDateObject(inputDate);if(dateObject){_context5.next=3;break;}return _context5.abrupt("return",undefined);case 3:return _context5.abrupt("return",this.l10n.get("document_properties_date_string",{date:dateObject.toLocaleDateString(),time:dateObject.toLocaleTimeString()}));case 4:case"end":return _context5.stop();}},_callee5,this);}));return _parseDate3.apply(this,arguments);}function _parseLinearization2(isLinearized){return this.l10n.get("document_properties_linearized_".concat(isLinearized?"yes":"no"));}

/***/ }),
/* 305 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var FREEZING = __webpack_require__(246);
var fails = __webpack_require__(8);
var isObject = __webpack_require__(27);
var onFreeze = (__webpack_require__(243).onFreeze);
var $freeze = Object.freeze;
var FAILS_ON_PRIMITIVES = fails(function () {
 $freeze(1);
});
$({
 target: 'Object',
 stat: true,
 forced: FAILS_ON_PRIMITIVES,
 sham: !FREEZING
}, {
 freeze: function freeze(it) {
  return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;
 }
});

/***/ }),
/* 306 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFFindBar=void 0;__webpack_require__(88);__webpack_require__(142);__webpack_require__(126);__webpack_require__(42);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _pdf_find_controller=__webpack_require__(307);var _ui_utils=__webpack_require__(239);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var MATCHES_COUNT_LIMIT=1000;var _adjustWidth=/*#__PURE__*/new WeakSet();var PDFFindBar=/*#__PURE__*/function(){function PDFFindBar(options,eventBus,l10n){var _this=this,_this$matchDiacritics;_classCallCheck(this,PDFFindBar);_classPrivateMethodInitSpec(this,_adjustWidth);this.opened=false;this.bar=options.bar;this.toggleButton=options.toggleButton;this.findField=options.findField;this.highlightAll=options.highlightAllCheckbox;this.currentPage=options.findCurrentPageCheckbox;this.pageRange=options.findPageRangeField;this.caseSensitive=options.caseSensitiveCheckbox;this.matchDiacritics=options.matchDiacriticsCheckbox;this.entireWord=options.entireWordCheckbox;this.findMsg=options.findMsg;this.findResultsCount=options.findResultsCount;this.findPreviousButton=options.findPreviousButton;this.findNextButton=options.findNextButton;this.eventBus=eventBus;this.l10n=l10n;this.toggleButton.addEventListener("click",function(){_this.toggle();});this.findField.addEventListener("input",function(){_this.dispatchEvent("");});this.bar.addEventListener("keydown",function(e){switch(e.keyCode){case 13:if(e.target===_this.findField){_this.dispatchEvent("again",e.shiftKey);}break;case 27:_this.close();break;}});this.findPreviousButton.addEventListener("click",function(){_this.dispatchEvent("again",true);});this.findNextButton.addEventListener("click",function(){_this.dispatchEvent("again",false);});this.highlightAll.addEventListener("click",function(){_this.dispatchEvent("highlightallchange");});this.caseSensitive.addEventListener("click",function(){_this.dispatchEvent("casesensitivitychange");});this.entireWord.addEventListener("click",function(){_this.dispatchEvent("entirewordchange");});(_this$matchDiacritics=this.matchDiacritics)===null||_this$matchDiacritics===void 0?void 0:_this$matchDiacritics.addEventListener("click",function(){_this.dispatchEvent("diacriticmatchingchange");});this.eventBus._on("resize",_classPrivateMethodGet(this,_adjustWidth,_adjustWidth2).bind(this));}_createClass(PDFFindBar,[{key:"reset",value:function reset(){this.updateUIState();}},{key:"dispatchEvent",value:function dispatchEvent(type){var findPrev=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;this.eventBus.dispatch("find",{source:this,type:type,query:this.findField.value,caseSensitive:this.caseSensitive.checked,entireWord:this.entireWord.checked,highlightAll:this.highlightAll.checked,findPrevious:findPrev,matchDiacritics:this.matchDiacritics.checked});}},{key:"updateUIState",value:function updateUIState(state,previous,matchesCount){var _this2=this;var findMsg=Promise.resolve("");var status="";switch(state){case _pdf_find_controller.FindState.FOUND:break;case _pdf_find_controller.FindState.PENDING:status="pending";break;case _pdf_find_controller.FindState.NOT_FOUND:findMsg=this.l10n.get("find_not_found");status="notFound";break;case _pdf_find_controller.FindState.WRAPPED:findMsg=this.l10n.get("find_reached_".concat(previous?"top":"bottom"));break;}this.findField.setAttribute("data-status",status);this.findField.setAttribute("aria-invalid",state===_pdf_find_controller.FindState.NOT_FOUND);findMsg.then(function(msg){_this2.findMsg.setAttribute("data-status",status);_this2.findMsg.textContent=msg;_classPrivateMethodGet(_this2,_adjustWidth,_adjustWidth2).call(_this2);});this.updateResultsCount(matchesCount);}},{key:"updateResultsCount",value:function updateResultsCount(){var _this3=this;var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref$current=_ref.current,current=_ref$current===void 0?0:_ref$current,_ref$total=_ref.total,total=_ref$total===void 0?0:_ref$total;var limit=MATCHES_COUNT_LIMIT;var matchCountMsg=Promise.resolve("");if(total>0){if(total>limit){var key="find_match_count_limit";matchCountMsg=this.l10n.get(key,{limit:limit});}else{var _key="find_match_count";matchCountMsg=this.l10n.get(_key,{current:current,total:total});}}matchCountMsg.then(function(msg){_this3.findResultsCount.textContent=msg;_classPrivateMethodGet(_this3,_adjustWidth,_adjustWidth2).call(_this3);});}},{key:"open",value:function open(){if(!this.opened){this.opened=true;(0,_ui_utils.toggleExpandedBtn)(this.toggleButton,true,this.bar);}this.findField.select();this.findField.focus();this.dispatchEvent("");this.eventBus.dispatch("findbaropen",{source:this});_classPrivateMethodGet(this,_adjustWidth,_adjustWidth2).call(this);}},{key:"close",value:function close(){if(!this.opened){return;}this.opened=false;(0,_ui_utils.toggleExpandedBtn)(this.toggleButton,false,this.bar);this.eventBus.dispatch("findbarclose",{source:this});}},{key:"toggle",value:function toggle(){if(this.opened){this.close();}else{this.open();}}}]);return PDFFindBar;}();exports.PDFFindBar=PDFFindBar;function _adjustWidth2(){if(!this.opened){return;}this.bar.classList.remove("wrapContainers");var findbarHeight=this.bar.clientHeight;var inputContainerHeight=this.bar.firstElementChild.clientHeight;if(findbarHeight>inputContainerHeight){this.bar.classList.add("wrapContainers");}}

/***/ }),
/* 307 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(192);__webpack_require__(219);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(126);__webpack_require__(135);__webpack_require__(136);__webpack_require__(138);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFFindController=exports.FindState=void 0;__webpack_require__(42);__webpack_require__(88);__webpack_require__(252);__webpack_require__(92);__webpack_require__(254);__webpack_require__(265);__webpack_require__(267);__webpack_require__(269);__webpack_require__(271);__webpack_require__(273);__webpack_require__(275);__webpack_require__(95);__webpack_require__(240);__webpack_require__(206);__webpack_require__(179);__webpack_require__(187);__webpack_require__(216);__webpack_require__(308);__webpack_require__(309);__webpack_require__(310);__webpack_require__(222);__webpack_require__(248);__webpack_require__(311);__webpack_require__(185);__webpack_require__(283);__webpack_require__(293);__webpack_require__(292);__webpack_require__(312);__webpack_require__(195);__webpack_require__(115);__webpack_require__(251);__webpack_require__(278);__webpack_require__(142);var _ui_utils=__webpack_require__(239);var _pdf_find_utils=__webpack_require__(313);var _pdfjsLib=__webpack_require__(286);function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}var FindState={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};exports.FindState=FindState;var FIND_TIMEOUT=250;var MATCH_SCROLL_OFFSET_TOP=-50;var MATCH_SCROLL_OFFSET_LEFT=-400;var CHARACTERS_TO_NORMALIZE={"\u2010":"-","\u2018":"'","\u2019":"'","\u201A":"'","\u201B":"'","\u201C":'"',"\u201D":'"',"\u201E":'"',"\u201F":'"',"\xBC":"1/4","\xBD":"1/2","\xBE":"3/4"};var DIACRITICS_EXCEPTION=new Set([0x3099,0x309a,0x094d,0x09cd,0x0a4d,0x0acd,0x0b4d,0x0bcd,0x0c4d,0x0ccd,0x0d3b,0x0d3c,0x0d4d,0x0dca,0x0e3a,0x0eba,0x0f84,0x1039,0x103a,0x1714,0x1734,0x17d2,0x1a60,0x1b44,0x1baa,0x1bab,0x1bf2,0x1bf3,0x2d7f,0xa806,0xa82c,0xa8c4,0xa953,0xa9c0,0xaaf6,0xabed,0x0c56,0x0f71,0x0f72,0x0f7a,0x0f7b,0x0f7c,0x0f7d,0x0f80,0x0f74]);var DIACRITICS_EXCEPTION_STR;var DIACRITICS_REG_EXP=/(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])+/g;var SPECIAL_CHARS_REG_EXP=/([\$\(-\+\.\?\[-\^\{-\}])|((?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]))|([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)|((?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF]))|((?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]))/g;var NOT_DIACRITIC_FROM_END_REG_EXP=/((?:[\0-\u02FF\u0370-\u0482\u048A-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u060F\u061B-\u064A\u0660-\u066F\u0671-\u06D5\u06DD\u06DE\u06E5\u06E6\u06E9\u06EE-\u0710\u0712-\u072F\u074B-\u07A5\u07B1-\u07EA\u07F4-\u07FC\u07FE-\u0815\u081A\u0824\u0828\u082E-\u0858\u085C-\u0897\u08A0-\u08C9\u08E2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0964-\u0980\u0984-\u09BB\u09BD\u09C5\u09C6\u09C9\u09CA\u09CE-\u09D6\u09D8-\u09E1\u09E4-\u09FD\u09FF\u0A00\u0A04-\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A6F\u0A72-\u0A74\u0A76-\u0A80\u0A84-\u0ABB\u0ABD\u0AC6\u0ACA\u0ACE-\u0AE1\u0AE4-\u0AF9\u0B00\u0B04-\u0B3B\u0B3D\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B61\u0B64-\u0B81\u0B83-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE-\u0BD6\u0BD8-\u0BFF\u0C05-\u0C3B\u0C3D\u0C45\u0C49\u0C4E-\u0C54\u0C57-\u0C61\u0C64-\u0C80\u0C84-\u0CBB\u0CBD\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CE1\u0CE4-\u0CF2\u0CF4-\u0CFF\u0D04-\u0D3A\u0D3D\u0D45\u0D49\u0D4E-\u0D56\u0D58-\u0D61\u0D64-\u0D80\u0D84-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF4-\u0E30\u0E32\u0E33\u0E3B-\u0E46\u0E4F-\u0EB0\u0EB2\u0EB3\u0EBD-\u0EC7\u0ECF-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F40-\u0F70\u0F85\u0F88-\u0F8C\u0F98\u0FBD-\u0FC5\u0FC7-\u102A\u103F-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u109E-\u135C\u1360-\u1711\u1716-\u1731\u1735-\u1751\u1754-\u1771\u1774-\u17B3\u17D4-\u17DC\u17DE-\u180A\u180E\u1810-\u1884\u1887-\u18A8\u18AA-\u191F\u192C-\u192F\u193C-\u1A16\u1A1C-\u1A54\u1A5F\u1A7D\u1A7E\u1A80-\u1AAF\u1ACF-\u1AFF\u1B05-\u1B33\u1B45-\u1B6A\u1B74-\u1B7F\u1B83-\u1BA0\u1BAE-\u1BE5\u1BF4-\u1C23\u1C38-\u1CCF\u1CD3\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA-\u1DBF\u1E00-\u20CF\u20F1-\u2CEE\u2CF2-\u2D7E\u2D80-\u2DDF\u2E00-\u3029\u3030-\u3098\u309B-\uA66E\uA673\uA67E-\uA69D\uA6A0-\uA6EF\uA6F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA828-\uA82B\uA82D-\uA87F\uA882-\uA8B3\uA8C6-\uA8DF\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA954-\uA97F\uA984-\uA9B2\uA9C1-\uA9E4\uA9E6-\uAA28\uAA37-\uAA42\uAA44-\uAA4B\uAA4E-\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2-\uAAEA\uAAF0-\uAAF4\uAAF7-\uABE2\uABEB\uABEE-\uD7FF\uE000-\uFB1D\uFB1F-\uFDFF\uFE10-\uFE1F\uFE30-\uFFFF]|\uD800[\uDC00-\uDDFC\uDDFE-\uDEDF\uDEE1-\uDF75\uDF7B-\uDFFF]|[\uD801\uD808-\uD80C\uD80E-\uD819\uD81C-\uD82E\uD830-\uD832\uD835\uD837\uD83B-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDE00\uDE04\uDE07-\uDE0B\uDE10-\uDE37\uDE3B-\uDE3E\uDE40-\uDEE4\uDEE7-\uDFFF]|\uD803[\uDC00-\uDD23\uDD28-\uDEAA\uDEAD-\uDEFC\uDF00-\uDF45\uDF51-\uDF81\uDF86-\uDFFF]|\uD804[\uDC03-\uDC37\uDC47-\uDC6F\uDC71\uDC72\uDC75-\uDC7E\uDC83-\uDCAF\uDCBB-\uDCC1\uDCC3-\uDCFF\uDD03-\uDD26\uDD35-\uDD44\uDD47-\uDD72\uDD74-\uDD7F\uDD83-\uDDB2\uDDC1-\uDDC8\uDDCD\uDDD0-\uDE2B\uDE38-\uDE3D\uDE3F\uDE40\uDE42-\uDEDE\uDEEB-\uDEFF\uDF04-\uDF3A\uDF3D\uDF45\uDF46\uDF49\uDF4A\uDF4E-\uDF56\uDF58-\uDF61\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC00-\uDC34\uDC47-\uDC5D\uDC5F-\uDCAF\uDCC4-\uDDAE\uDDB6\uDDB7\uDDC1-\uDDDB\uDDDE-\uDE2F\uDE41-\uDEAA\uDEB8-\uDF1C\uDF2C-\uDFFF]|\uD806[\uDC00-\uDC2B\uDC3B-\uDD2F\uDD36\uDD39\uDD3A\uDD3F\uDD41\uDD44-\uDDD0\uDDD8\uDDD9\uDDE1-\uDDE3\uDDE5-\uDE00\uDE0B-\uDE32\uDE3A\uDE3F-\uDE46\uDE48-\uDE50\uDE5C-\uDE89\uDE9A-\uDFFF]|\uD807[\uDC00-\uDC2E\uDC37\uDC40-\uDC91\uDCA8\uDCB7-\uDD30\uDD37-\uDD39\uDD3B\uDD3E\uDD46\uDD48-\uDD89\uDD8F\uDD92\uDD98-\uDEF2\uDEF7-\uDEFF\uDF02\uDF04-\uDF33\uDF3B-\uDF3D\uDF43-\uDFFF]|\uD80D[\uDC00-\uDC3F\uDC41-\uDC46\uDC56-\uDFFF]|\uD81A[\uDC00-\uDEEF\uDEF5-\uDF2F\uDF37-\uDFFF]|\uD81B[\uDC00-\uDF4E\uDF50\uDF88-\uDF8E\uDF93-\uDFE3\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD82F[\uDC00-\uDC9C\uDC9F-\uDFFF]|\uD833[\uDC00-\uDEFF\uDF2E\uDF2F\uDF47-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDC8E\uDC90-\uDD2F\uDD37-\uDEAD\uDEAF-\uDEEB\uDEF0-\uDFFF]|\uD839[\uDC00-\uDCEB\uDCF0-\uDFFF]|\uD83A[\uDC00-\uDCCF\uDCD7-\uDD43\uDD4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])*$/;var NOT_DIACRITIC_FROM_START_REG_EXP=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])*((?:[\0-\u02FF\u0370-\u0482\u048A-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u060F\u061B-\u064A\u0660-\u066F\u0671-\u06D5\u06DD\u06DE\u06E5\u06E6\u06E9\u06EE-\u0710\u0712-\u072F\u074B-\u07A5\u07B1-\u07EA\u07F4-\u07FC\u07FE-\u0815\u081A\u0824\u0828\u082E-\u0858\u085C-\u0897\u08A0-\u08C9\u08E2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0964-\u0980\u0984-\u09BB\u09BD\u09C5\u09C6\u09C9\u09CA\u09CE-\u09D6\u09D8-\u09E1\u09E4-\u09FD\u09FF\u0A00\u0A04-\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A6F\u0A72-\u0A74\u0A76-\u0A80\u0A84-\u0ABB\u0ABD\u0AC6\u0ACA\u0ACE-\u0AE1\u0AE4-\u0AF9\u0B00\u0B04-\u0B3B\u0B3D\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B61\u0B64-\u0B81\u0B83-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE-\u0BD6\u0BD8-\u0BFF\u0C05-\u0C3B\u0C3D\u0C45\u0C49\u0C4E-\u0C54\u0C57-\u0C61\u0C64-\u0C80\u0C84-\u0CBB\u0CBD\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CE1\u0CE4-\u0CF2\u0CF4-\u0CFF\u0D04-\u0D3A\u0D3D\u0D45\u0D49\u0D4E-\u0D56\u0D58-\u0D61\u0D64-\u0D80\u0D84-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF4-\u0E30\u0E32\u0E33\u0E3B-\u0E46\u0E4F-\u0EB0\u0EB2\u0EB3\u0EBD-\u0EC7\u0ECF-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F40-\u0F70\u0F85\u0F88-\u0F8C\u0F98\u0FBD-\u0FC5\u0FC7-\u102A\u103F-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u109E-\u135C\u1360-\u1711\u1716-\u1731\u1735-\u1751\u1754-\u1771\u1774-\u17B3\u17D4-\u17DC\u17DE-\u180A\u180E\u1810-\u1884\u1887-\u18A8\u18AA-\u191F\u192C-\u192F\u193C-\u1A16\u1A1C-\u1A54\u1A5F\u1A7D\u1A7E\u1A80-\u1AAF\u1ACF-\u1AFF\u1B05-\u1B33\u1B45-\u1B6A\u1B74-\u1B7F\u1B83-\u1BA0\u1BAE-\u1BE5\u1BF4-\u1C23\u1C38-\u1CCF\u1CD3\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA-\u1DBF\u1E00-\u20CF\u20F1-\u2CEE\u2CF2-\u2D7E\u2D80-\u2DDF\u2E00-\u3029\u3030-\u3098\u309B-\uA66E\uA673\uA67E-\uA69D\uA6A0-\uA6EF\uA6F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA828-\uA82B\uA82D-\uA87F\uA882-\uA8B3\uA8C6-\uA8DF\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA954-\uA97F\uA984-\uA9B2\uA9C1-\uA9E4\uA9E6-\uAA28\uAA37-\uAA42\uAA44-\uAA4B\uAA4E-\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2-\uAAEA\uAAF0-\uAAF4\uAAF7-\uABE2\uABEB\uABEE-\uD7FF\uE000-\uFB1D\uFB1F-\uFDFF\uFE10-\uFE1F\uFE30-\uFFFF]|\uD800[\uDC00-\uDDFC\uDDFE-\uDEDF\uDEE1-\uDF75\uDF7B-\uDFFF]|[\uD801\uD808-\uD80C\uD80E-\uD819\uD81C-\uD82E\uD830-\uD832\uD835\uD837\uD83B-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDE00\uDE04\uDE07-\uDE0B\uDE10-\uDE37\uDE3B-\uDE3E\uDE40-\uDEE4\uDEE7-\uDFFF]|\uD803[\uDC00-\uDD23\uDD28-\uDEAA\uDEAD-\uDEFC\uDF00-\uDF45\uDF51-\uDF81\uDF86-\uDFFF]|\uD804[\uDC03-\uDC37\uDC47-\uDC6F\uDC71\uDC72\uDC75-\uDC7E\uDC83-\uDCAF\uDCBB-\uDCC1\uDCC3-\uDCFF\uDD03-\uDD26\uDD35-\uDD44\uDD47-\uDD72\uDD74-\uDD7F\uDD83-\uDDB2\uDDC1-\uDDC8\uDDCD\uDDD0-\uDE2B\uDE38-\uDE3D\uDE3F\uDE40\uDE42-\uDEDE\uDEEB-\uDEFF\uDF04-\uDF3A\uDF3D\uDF45\uDF46\uDF49\uDF4A\uDF4E-\uDF56\uDF58-\uDF61\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC00-\uDC34\uDC47-\uDC5D\uDC5F-\uDCAF\uDCC4-\uDDAE\uDDB6\uDDB7\uDDC1-\uDDDB\uDDDE-\uDE2F\uDE41-\uDEAA\uDEB8-\uDF1C\uDF2C-\uDFFF]|\uD806[\uDC00-\uDC2B\uDC3B-\uDD2F\uDD36\uDD39\uDD3A\uDD3F\uDD41\uDD44-\uDDD0\uDDD8\uDDD9\uDDE1-\uDDE3\uDDE5-\uDE00\uDE0B-\uDE32\uDE3A\uDE3F-\uDE46\uDE48-\uDE50\uDE5C-\uDE89\uDE9A-\uDFFF]|\uD807[\uDC00-\uDC2E\uDC37\uDC40-\uDC91\uDCA8\uDCB7-\uDD30\uDD37-\uDD39\uDD3B\uDD3E\uDD46\uDD48-\uDD89\uDD8F\uDD92\uDD98-\uDEF2\uDEF7-\uDEFF\uDF02\uDF04-\uDF33\uDF3B-\uDF3D\uDF43-\uDFFF]|\uD80D[\uDC00-\uDC3F\uDC41-\uDC46\uDC56-\uDFFF]|\uD81A[\uDC00-\uDEEF\uDEF5-\uDF2F\uDF37-\uDFFF]|\uD81B[\uDC00-\uDF4E\uDF50\uDF88-\uDF8E\uDF93-\uDFE3\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD82F[\uDC00-\uDC9C\uDC9F-\uDFFF]|\uD833[\uDC00-\uDEFF\uDF2E\uDF2F\uDF47-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDC8E\uDC90-\uDD2F\uDD37-\uDEAD\uDEAF-\uDEEB\uDEF0-\uDFFF]|\uD839[\uDC00-\uDCEB\uDCF0-\uDFFF]|\uD83A[\uDC00-\uDCCF\uDCD7-\uDD43\uDD4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/;var SYLLABLES_REG_EXP=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g;var SYLLABLES_LENGTHS=new Map();var FIRST_CHAR_SYLLABLES_REG_EXP="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]";var NFKC_CHARS_TO_NORMALIZE=new Map();var noSyllablesRegExp=null;var withSyllablesRegExp=null;function normalize(text){var syllablePositions=[];var m;while((m=SYLLABLES_REG_EXP.exec(text))!==null){var _m=m,index=_m.index;var _iterator=_createForOfIteratorHelper(m[0]),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var char=_step.value;var len=SYLLABLES_LENGTHS.get(char);if(!len){len=char.normalize("NFD").length;SYLLABLES_LENGTHS.set(char,len);}syllablePositions.push([len,index++]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}var normalizationRegex;if(syllablePositions.length===0&&noSyllablesRegExp){normalizationRegex=noSyllablesRegExp;}else if(syllablePositions.length>0&&withSyllablesRegExp){normalizationRegex=withSyllablesRegExp;}else{var replace=Object.keys(CHARACTERS_TO_NORMALIZE).join("");var toNormalizeWithNFKC=(0,_pdf_find_utils.getNormalizeWithNFKC)();var CJK="(?:\\p{Ideographic}|[\u3040-\u30FF])";var HKDiacritics="(?:\u3099|\u309A)";var regexp="([".concat(replace,"])|([").concat(toNormalizeWithNFKC,"])|(").concat(HKDiacritics,"\\n)|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(").concat(CJK,"\\n)|(\\n)");if(syllablePositions.length===0){normalizationRegex=noSyllablesRegExp=new RegExp(regexp+"|(\\u0000)","gum");}else{normalizationRegex=withSyllablesRegExp=new RegExp(regexp+"|(".concat(FIRST_CHAR_SYLLABLES_REG_EXP,")"),"gum");}}var rawDiacriticsPositions=[];while((m=DIACRITICS_REG_EXP.exec(text))!==null){rawDiacriticsPositions.push([m[0].length,m.index]);}var normalized=text.normalize("NFD");var positions=[[0,0]];var rawDiacriticsIndex=0;var syllableIndex=0;var shift=0;var shiftOrigin=0;var eol=0;var hasDiacritics=false;normalized=normalized.replace(normalizationRegex,function(match,p1,p2,p3,p4,p5,p6,p7,p8,i){var _syllablePositions$sy;i-=shiftOrigin;if(p1){var replacement=CHARACTERS_TO_NORMALIZE[p1];var jj=replacement.length;for(var j=1;j<jj;j++){positions.push([i-shift+j,shift-j]);}shift-=jj-1;return replacement;}if(p2){var _replacement=NFKC_CHARS_TO_NORMALIZE.get(p2);if(!_replacement){_replacement=p2.normalize("NFKC");NFKC_CHARS_TO_NORMALIZE.set(p2,_replacement);}var _jj=_replacement.length;for(var _j=1;_j<_jj;_j++){positions.push([i-shift+_j,shift-_j]);}shift-=_jj-1;return _replacement;}if(p3){var _rawDiacriticsPositio;hasDiacritics=true;if(i+eol===((_rawDiacriticsPositio=rawDiacriticsPositions[rawDiacriticsIndex])===null||_rawDiacriticsPositio===void 0?void 0:_rawDiacriticsPositio[1])){++rawDiacriticsIndex;}else{positions.push([i-1-shift+1,shift-1]);shift-=1;shiftOrigin+=1;}positions.push([i-shift+1,shift]);shiftOrigin+=1;eol+=1;return p3.charAt(0);}if(p4){var _rawDiacriticsPositio2;var hasTrailingDashEOL=p4.endsWith("\n");var _len=hasTrailingDashEOL?p4.length-2:p4.length;hasDiacritics=true;var _jj2=_len;if(i+eol===((_rawDiacriticsPositio2=rawDiacriticsPositions[rawDiacriticsIndex])===null||_rawDiacriticsPositio2===void 0?void 0:_rawDiacriticsPositio2[1])){_jj2-=rawDiacriticsPositions[rawDiacriticsIndex][0];++rawDiacriticsIndex;}for(var _j2=1;_j2<=_jj2;_j2++){positions.push([i-1-shift+_j2,shift-_j2]);}shift-=_jj2;shiftOrigin+=_jj2;if(hasTrailingDashEOL){i+=_len-1;positions.push([i-shift+1,1+shift]);shift+=1;shiftOrigin+=1;eol+=1;return p4.slice(0,_len);}return p4;}if(p5){var _len2=p5.length-2;positions.push([i-shift+_len2,1+shift]);shift+=1;shiftOrigin+=1;eol+=1;return p5.slice(0,-2);}if(p6){var _len3=p6.length-1;positions.push([i-shift+_len3,shift]);shiftOrigin+=1;eol+=1;return p6.slice(0,-1);}if(p7){positions.push([i-shift+1,shift-1]);shift-=1;shiftOrigin+=1;eol+=1;return" ";}if(i+eol===((_syllablePositions$sy=syllablePositions[syllableIndex])===null||_syllablePositions$sy===void 0?void 0:_syllablePositions$sy[1])){var newCharLen=syllablePositions[syllableIndex][0]-1;++syllableIndex;for(var _j3=1;_j3<=newCharLen;_j3++){positions.push([i-(shift-_j3),shift-_j3]);}shift-=newCharLen;shiftOrigin+=newCharLen;}return p8;});positions.push([normalized.length,shift]);return[normalized,positions,hasDiacritics];}function getOriginalIndex(diffs,pos,len){if(!diffs){return[pos,len];}var start=pos;var end=pos+len-1;var i=(0,_ui_utils.binarySearchFirstItem)(diffs,function(x){return x[0]>=start;});if(diffs[i][0]>start){--i;}var j=(0,_ui_utils.binarySearchFirstItem)(diffs,function(x){return x[0]>=end;},i);if(diffs[j][0]>end){--j;}var oldStart=start+diffs[i][1];var oldEnd=end+diffs[j][1];var oldLen=oldEnd+1-oldStart;return[oldStart,oldLen];}var _state=/*#__PURE__*/new WeakMap();var _updateMatchesCountOnProgress=/*#__PURE__*/new WeakMap();var _visitedPagesCount=/*#__PURE__*/new WeakMap();var _onFind=/*#__PURE__*/new WeakSet();var _reset=/*#__PURE__*/new WeakSet();var _query=/*#__PURE__*/new WeakMap();var _shouldDirtyMatch=/*#__PURE__*/new WeakSet();var _isEntireWord=/*#__PURE__*/new WeakSet();var _calculateRegExpMatch=/*#__PURE__*/new WeakSet();var _convertToRegExpString=/*#__PURE__*/new WeakSet();var _calculateMatch=/*#__PURE__*/new WeakSet();var _extractText=/*#__PURE__*/new WeakSet();var _updatePage=/*#__PURE__*/new WeakSet();var _updateAllPages=/*#__PURE__*/new WeakSet();var _nextMatch=/*#__PURE__*/new WeakSet();var _matchesReady=/*#__PURE__*/new WeakSet();var _nextPageMatch=/*#__PURE__*/new WeakSet();var _advanceOffsetPage=/*#__PURE__*/new WeakSet();var _updateMatch=/*#__PURE__*/new WeakSet();var _onFindBarClose=/*#__PURE__*/new WeakSet();var _requestMatchesCount=/*#__PURE__*/new WeakSet();var _updateUIResultsCount=/*#__PURE__*/new WeakSet();var _updateUIState=/*#__PURE__*/new WeakSet();var PDFFindController=/*#__PURE__*/function(){function PDFFindController(_ref){var _linkService=_ref.linkService,eventBus=_ref.eventBus,_ref$updateMatchesCou=_ref.updateMatchesCountOnProgress,updateMatchesCountOnProgress=_ref$updateMatchesCou===void 0?true:_ref$updateMatchesCou,pageViewMode=_ref.pageViewMode;_classCallCheck(this,PDFFindController);_classPrivateMethodInitSpec(this,_updateUIState);_classPrivateMethodInitSpec(this,_updateUIResultsCount);_classPrivateMethodInitSpec(this,_requestMatchesCount);_classPrivateMethodInitSpec(this,_onFindBarClose);_classPrivateMethodInitSpec(this,_updateMatch);_classPrivateMethodInitSpec(this,_advanceOffsetPage);_classPrivateMethodInitSpec(this,_nextPageMatch);_classPrivateMethodInitSpec(this,_matchesReady);_classPrivateMethodInitSpec(this,_nextMatch);_classPrivateMethodInitSpec(this,_updateAllPages);_classPrivateMethodInitSpec(this,_updatePage);_classPrivateMethodInitSpec(this,_extractText);_classPrivateMethodInitSpec(this,_calculateMatch);_classPrivateMethodInitSpec(this,_convertToRegExpString);_classPrivateMethodInitSpec(this,_calculateRegExpMatch);_classPrivateMethodInitSpec(this,_isEntireWord);_classPrivateMethodInitSpec(this,_shouldDirtyMatch);_classPrivateFieldInitSpec(this,_query,{get:_get_query,set:void 0});_classPrivateMethodInitSpec(this,_reset);_classPrivateMethodInitSpec(this,_onFind);_classPrivateFieldInitSpec(this,_state,{writable:true,value:null});_classPrivateFieldInitSpec(this,_updateMatchesCountOnProgress,{writable:true,value:true});_classPrivateFieldInitSpec(this,_visitedPagesCount,{writable:true,value:0});this._linkService=_linkService;this._eventBus=eventBus;_classPrivateFieldSet(this,_updateMatchesCountOnProgress,updateMatchesCountOnProgress);this._pageViewMode=pageViewMode;this.onIsPageVisible=null;_classPrivateMethodGet(this,_reset,_reset2).call(this);eventBus._on("find",_classPrivateMethodGet(this,_onFind,_onFind2).bind(this));eventBus._on("findbarclose",_classPrivateMethodGet(this,_onFindBarClose,_onFindBarClose2).bind(this));}_createClass(PDFFindController,[{key:"highlightMatches",get:function get(){return this._highlightMatches;}},{key:"pageMatches",get:function get(){return this._pageMatches;}},{key:"pageMatchesLength",get:function get(){return this._pageMatchesLength;}},{key:"selected",get:function get(){return this._selected;}},{key:"state",get:function get(){return _classPrivateFieldGet(this,_state);}},{key:"setDocument",value:function setDocument(pdfDocument){if(this._pdfDocument){_classPrivateMethodGet(this,_reset,_reset2).call(this);}if(!pdfDocument){return;}this._pdfDocument=pdfDocument;this._firstPageCapability.resolve();}},{key:"scrollMatchIntoView",value:function scrollMatchIntoView(_ref2){var _ref2$element=_ref2.element,element=_ref2$element===void 0?null:_ref2$element,_ref2$selectedLeft=_ref2.selectedLeft,selectedLeft=_ref2$selectedLeft===void 0?0:_ref2$selectedLeft,_ref2$pageIndex=_ref2.pageIndex,pageIndex=_ref2$pageIndex===void 0?-1:_ref2$pageIndex,_ref2$matchIndex=_ref2.matchIndex,matchIndex=_ref2$matchIndex===void 0?-1:_ref2$matchIndex;if(!this._scrollMatches||!element){return;}else if(matchIndex===-1||matchIndex!==this._selected.matchIdx){return;}else if(pageIndex===-1||pageIndex!==this._selected.pageIdx){return;}this._scrollMatches=false;var spot={top:MATCH_SCROLL_OFFSET_TOP,left:selectedLeft+MATCH_SCROLL_OFFSET_LEFT};(0,_ui_utils.scrollIntoView)(element,spot,true,this._pageViewMode==='infinite-scroll');}}]);return PDFFindController;}();exports.PDFFindController=PDFFindController;function _onFind2(state){var _this=this;if(!state){return;}if(state.phraseSearch===false){console.error("The `phraseSearch`-parameter was removed, please provide "+"an Array of strings in the `query`-parameter instead.");if(typeof state.query==="string"){state.query=state.query.match(/\S+/g);}}var pdfDocument=this._pdfDocument;var type=state.type;if(_classPrivateFieldGet(this,_state)===null||_classPrivateMethodGet(this,_shouldDirtyMatch,_shouldDirtyMatch2).call(this,state)){this._dirtyMatch=true;}_classPrivateFieldSet(this,_state,state);if(type!=="highlightallchange"){_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,FindState.PENDING);}else{var _this$state;var hasMatches=this._pageMatches.some(function(matches){return matches.length>0;});var emptyQuery=!((_this$state=this.state)!==null&&_this$state!==void 0&&_this$state.query);var reportAsFound=emptyQuery||hasMatches;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,reportAsFound?FindState.FOUND:FindState.NOT_FOUND);}this._firstPageCapability.promise.then(function(){if(!_this._pdfDocument||pdfDocument&&_this._pdfDocument!==pdfDocument){return;}_classPrivateMethodGet(_this,_extractText,_extractText2).call(_this);var findbarClosed=!_this._highlightMatches;var pendingTimeout=!!_this._findTimeout;if(_this._findTimeout){clearTimeout(_this._findTimeout);_this._findTimeout=null;}if(!type){_this._findTimeout=setTimeout(function(){_classPrivateMethodGet(_this,_nextMatch,_nextMatch2).call(_this);_this._findTimeout=null;},FIND_TIMEOUT);}else if(_this._dirtyMatch){_classPrivateMethodGet(_this,_nextMatch,_nextMatch2).call(_this);}else if(type==="again"){_classPrivateMethodGet(_this,_nextMatch,_nextMatch2).call(_this);if(findbarClosed&&_classPrivateFieldGet(_this,_state).highlightAll){_classPrivateMethodGet(_this,_updateAllPages,_updateAllPages2).call(_this);}}else if(type==="highlightallchange"){if(pendingTimeout){_classPrivateMethodGet(_this,_nextMatch,_nextMatch2).call(_this);}else{_this._highlightMatches=true;}_classPrivateMethodGet(_this,_updateAllPages,_updateAllPages2).call(_this);}else{_classPrivateMethodGet(_this,_nextMatch,_nextMatch2).call(_this);}});}function _reset2(){this._highlightMatches=false;this._scrollMatches=false;this._pdfDocument=null;this._pageMatches=[];this._pageMatchesLength=[];_classPrivateFieldSet(this,_visitedPagesCount,0);_classPrivateFieldSet(this,_state,null);this._selected={pageIdx:-1,matchIdx:-1};this._offset={pageIdx:null,matchIdx:null,wrapped:false};this._extractTextPromises=[];this._pageContents=[];this._pageDiffs=[];this._hasDiacritics=[];this._matchesCountTotal=0;this._pagesToSearch=null;this._pendingFindMatches=new Set();this._resumePageIdx=null;this._dirtyMatch=false;clearTimeout(this._findTimeout);this._findTimeout=null;this._firstPageCapability=new _pdfjsLib.PromiseCapability();}function _get_query(){var _classPrivateFieldGet2=_classPrivateFieldGet(this,_state),query=_classPrivateFieldGet2.query;if(typeof query==="string"){if(query!==this._rawQuery){this._rawQuery=query;var _normalize=normalize(query);var _normalize2=_slicedToArray(_normalize,1);this._normalizedQuery=_normalize2[0];}return this._normalizedQuery;}return(query||[]).filter(function(q){return!!q;}).map(function(q){return normalize(q)[0];});}function _shouldDirtyMatch2(state){var _this$onIsPageVisible,_this$onIsPageVisible2;var newQuery=state.query,prevQuery=_classPrivateFieldGet(this,_state).query;var newType=_typeof(newQuery),prevType=_typeof(prevQuery);if(newType!==prevType){return true;}if(newType==="string"){if(newQuery!==prevQuery){return true;}}else if(JSON.stringify(newQuery)!==JSON.stringify(prevQuery)){return true;}switch(state.type){case"again":var pageNumber=this._selected.pageIdx+1;var linkService=this._linkService;return pageNumber>=1&&pageNumber<=linkService.pagesCount&&pageNumber!==linkService.page&&!((_this$onIsPageVisible=(_this$onIsPageVisible2=this.onIsPageVisible)===null||_this$onIsPageVisible2===void 0?void 0:_this$onIsPageVisible2.call(this,pageNumber))!==null&&_this$onIsPageVisible!==void 0?_this$onIsPageVisible:true);case"highlightallchange":return false;}return true;}function _isEntireWord2(content,startIdx,length){var match=content.slice(0,startIdx).match(NOT_DIACRITIC_FROM_END_REG_EXP);if(match){var first=content.charCodeAt(startIdx);var limit=match[1].charCodeAt(0);if((0,_pdf_find_utils.getCharacterType)(first)===(0,_pdf_find_utils.getCharacterType)(limit)){return false;}}match=content.slice(startIdx+length).match(NOT_DIACRITIC_FROM_START_REG_EXP);if(match){var last=content.charCodeAt(startIdx+length-1);var _limit=match[1].charCodeAt(0);if((0,_pdf_find_utils.getCharacterType)(last)===(0,_pdf_find_utils.getCharacterType)(_limit)){return false;}}return true;}function _calculateRegExpMatch2(query,entireWord,pageIndex,pageContent){var matches=this._pageMatches[pageIndex]=[];var matchesLength=this._pageMatchesLength[pageIndex]=[];if(!query){return;}var diffs=this._pageDiffs[pageIndex];var match;while((match=query.exec(pageContent))!==null){if(entireWord&&!_classPrivateMethodGet(this,_isEntireWord,_isEntireWord2).call(this,pageContent,match.index,match[0].length)){continue;}var _getOriginalIndex=getOriginalIndex(diffs,match.index,match[0].length),_getOriginalIndex2=_slicedToArray(_getOriginalIndex,2),matchPos=_getOriginalIndex2[0],matchLen=_getOriginalIndex2[1];if(matchLen){matches.push(matchPos);matchesLength.push(matchLen);}}}function _convertToRegExpString2(query,hasDiacritics){var _classPrivateFieldGet3=_classPrivateFieldGet(this,_state),matchDiacritics=_classPrivateFieldGet3.matchDiacritics;var isUnicode=false;query=query.replaceAll(SPECIAL_CHARS_REG_EXP,function(match,p1,p2,p3,p4,p5){if(p1){return"[ ]*\\".concat(p1,"[ ]*");}if(p2){return"[ ]*".concat(p2,"[ ]*");}if(p3){return"[ ]+";}if(matchDiacritics){return p4||p5;}if(p4){return DIACRITICS_EXCEPTION.has(p4.charCodeAt(0))?p4:"";}if(hasDiacritics){isUnicode=true;return"".concat(p5,"\\p{M}*");}return p5;});var trailingSpaces="[ ]*";if(query.endsWith(trailingSpaces)){query=query.slice(0,query.length-trailingSpaces.length);}if(matchDiacritics){if(hasDiacritics){DIACRITICS_EXCEPTION_STR||(DIACRITICS_EXCEPTION_STR=String.fromCharCode.apply(String,_toConsumableArray(DIACRITICS_EXCEPTION)));isUnicode=true;query="".concat(query,"(?=[").concat(DIACRITICS_EXCEPTION_STR,"]|[^\\p{M}]|$)");}}return[isUnicode,query];}function _calculateMatch2(pageIndex){var _this2=this;var _this$visitedPagesCou;var query=_classPrivateFieldGet(this,_query);if(query.length===0){return;}var _classPrivateFieldGet4=_classPrivateFieldGet(this,_state),caseSensitive=_classPrivateFieldGet4.caseSensitive,entireWord=_classPrivateFieldGet4.entireWord;var pageContent=this._pageContents[pageIndex];var hasDiacritics=this._hasDiacritics[pageIndex];var isUnicode=false;if(typeof query==="string"){var _classPrivateMethodGe=_classPrivateMethodGet(this,_convertToRegExpString,_convertToRegExpString2).call(this,query,hasDiacritics);var _classPrivateMethodGe2=_slicedToArray(_classPrivateMethodGe,2);isUnicode=_classPrivateMethodGe2[0];query=_classPrivateMethodGe2[1];}else{query=query.sort().reverse().map(function(q){var _classPrivateMethodGe3=_classPrivateMethodGet(_this2,_convertToRegExpString,_convertToRegExpString2).call(_this2,q,hasDiacritics),_classPrivateMethodGe4=_slicedToArray(_classPrivateMethodGe3,2),isUnicodePart=_classPrivateMethodGe4[0],queryPart=_classPrivateMethodGe4[1];isUnicode||(isUnicode=isUnicodePart);return"(".concat(queryPart,")");}).join("|");}var flags="g".concat(isUnicode?"u":"").concat(caseSensitive?"":"i");query=query?new RegExp(query,flags):null;_classPrivateMethodGet(this,_calculateRegExpMatch,_calculateRegExpMatch2).call(this,query,entireWord,pageIndex,pageContent);if(_classPrivateFieldGet(this,_state).highlightAll){_classPrivateMethodGet(this,_updatePage,_updatePage2).call(this,pageIndex);}if(this._resumePageIdx===pageIndex){this._resumePageIdx=null;_classPrivateMethodGet(this,_nextPageMatch,_nextPageMatch2).call(this);}var pageMatchesCount=this._pageMatches[pageIndex].length;this._matchesCountTotal+=pageMatchesCount;if(_classPrivateFieldGet(this,_updateMatchesCountOnProgress)){if(pageMatchesCount>0){_classPrivateMethodGet(this,_updateUIResultsCount,_updateUIResultsCount2).call(this);}}else if(_classPrivateFieldSet(this,_visitedPagesCount,(_this$visitedPagesCou=_classPrivateFieldGet(this,_visitedPagesCount),++_this$visitedPagesCou))===this._linkService.pagesCount){_classPrivateMethodGet(this,_updateUIResultsCount,_updateUIResultsCount2).call(this);}}function _extractText2(){var _this3=this;if(this._extractTextPromises.length>0){return;}var promise=Promise.resolve();var textOptions={disableNormalization:true};var _loop=function _loop(i){var extractTextCapability=new _pdfjsLib.PromiseCapability();_this3._extractTextPromises[i]=extractTextCapability.promise;promise=promise.then(function(){return _this3._pdfDocument.getPage(i+1).then(function(pdfPage){return pdfPage.getTextContent(textOptions);}).then(function(textContent){var strBuf=[];var _iterator2=_createForOfIteratorHelper(textContent.items),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var textItem=_step2.value;strBuf.push(textItem.str);if(textItem.hasEOL){strBuf.push("\n");}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _normalize3=normalize(strBuf.join(""));var _normalize4=_slicedToArray(_normalize3,3);_this3._pageContents[i]=_normalize4[0];_this3._pageDiffs[i]=_normalize4[1];_this3._hasDiacritics[i]=_normalize4[2];extractTextCapability.resolve();},function(reason){console.error("Unable to get text content for page ".concat(i+1),reason);_this3._pageContents[i]="";_this3._pageDiffs[i]=null;_this3._hasDiacritics[i]=false;extractTextCapability.resolve();});});};for(var i=0,ii=this._linkService.pagesCount;i<ii;i++){_loop(i);}}function _updatePage2(index){if(this._scrollMatches&&this._selected.pageIdx===index){this._linkService.page=index+1;}this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:index});}function _updateAllPages2(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1});}function _nextMatch2(){var _this4=this;var previous=_classPrivateFieldGet(this,_state).findPrevious;var currentPageIndex=this._linkService.page-1;var numPages=this._linkService.pagesCount;this._highlightMatches=true;if(this._dirtyMatch){this._dirtyMatch=false;this._selected.pageIdx=this._selected.matchIdx=-1;this._offset.pageIdx=currentPageIndex;this._offset.matchIdx=null;this._offset.wrapped=false;this._resumePageIdx=null;this._pageMatches.length=0;this._pageMatchesLength.length=0;_classPrivateFieldSet(this,_visitedPagesCount,0);this._matchesCountTotal=0;_classPrivateMethodGet(this,_updateAllPages,_updateAllPages2).call(this);var _loop2=function _loop2(i){if(_this4._pendingFindMatches.has(i)){return"continue";}_this4._pendingFindMatches.add(i);_this4._extractTextPromises[i].then(function(){_this4._pendingFindMatches.delete(i);_classPrivateMethodGet(_this4,_calculateMatch,_calculateMatch2).call(_this4,i);});};for(var i=0;i<numPages;i++){var _ret=_loop2(i);if(_ret==="continue")continue;}}var query=_classPrivateFieldGet(this,_query);if(query.length===0){_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,FindState.FOUND);return;}if(this._resumePageIdx){return;}var offset=this._offset;this._pagesToSearch=numPages;if(offset.matchIdx!==null){var numPageMatches=this._pageMatches[offset.pageIdx].length;if(!previous&&offset.matchIdx+1<numPageMatches||previous&&offset.matchIdx>0){offset.matchIdx=previous?offset.matchIdx-1:offset.matchIdx+1;_classPrivateMethodGet(this,_updateMatch,_updateMatch2).call(this,true);return;}_classPrivateMethodGet(this,_advanceOffsetPage,_advanceOffsetPage2).call(this,previous);}_classPrivateMethodGet(this,_nextPageMatch,_nextPageMatch2).call(this);}function _matchesReady2(matches){var offset=this._offset;var numMatches=matches.length;var previous=_classPrivateFieldGet(this,_state).findPrevious;if(numMatches){offset.matchIdx=previous?numMatches-1:0;_classPrivateMethodGet(this,_updateMatch,_updateMatch2).call(this,true);return true;}_classPrivateMethodGet(this,_advanceOffsetPage,_advanceOffsetPage2).call(this,previous);if(offset.wrapped){offset.matchIdx=null;if(this._pagesToSearch<0){_classPrivateMethodGet(this,_updateMatch,_updateMatch2).call(this,false);return true;}}return false;}function _nextPageMatch2(){if(this._resumePageIdx!==null){console.error("There can only be one pending page.");}var matches=null;do{var pageIdx=this._offset.pageIdx;matches=this._pageMatches[pageIdx];if(!matches){this._resumePageIdx=pageIdx;break;}}while(!_classPrivateMethodGet(this,_matchesReady,_matchesReady2).call(this,matches));}function _advanceOffsetPage2(previous){var offset=this._offset;var numPages=this._linkService.pagesCount;offset.pageIdx=previous?offset.pageIdx-1:offset.pageIdx+1;offset.matchIdx=null;this._pagesToSearch--;if(offset.pageIdx>=numPages||offset.pageIdx<0){offset.pageIdx=previous?numPages-1:0;offset.wrapped=true;}}function _updateMatch2(){var found=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var state=FindState.NOT_FOUND;var wrapped=this._offset.wrapped;this._offset.wrapped=false;if(found){var previousPage=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx;this._selected.matchIdx=this._offset.matchIdx;state=wrapped?FindState.WRAPPED:FindState.FOUND;if(previousPage!==-1&&previousPage!==this._selected.pageIdx){_classPrivateMethodGet(this,_updatePage,_updatePage2).call(this,previousPage);}}_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,state,_classPrivateFieldGet(this,_state).findPrevious);if(this._selected.pageIdx!==-1){this._scrollMatches=true;_classPrivateMethodGet(this,_updatePage,_updatePage2).call(this,this._selected.pageIdx);}}function _onFindBarClose2(evt){var _this5=this;var pdfDocument=this._pdfDocument;this._firstPageCapability.promise.then(function(){if(!_this5._pdfDocument||pdfDocument&&_this5._pdfDocument!==pdfDocument){return;}if(_this5._findTimeout){clearTimeout(_this5._findTimeout);_this5._findTimeout=null;}if(_this5._resumePageIdx){_this5._resumePageIdx=null;_this5._dirtyMatch=true;}_classPrivateMethodGet(_this5,_updateUIState,_updateUIState2).call(_this5,FindState.FOUND);_this5._highlightMatches=false;_classPrivateMethodGet(_this5,_updateAllPages,_updateAllPages2).call(_this5);});}function _requestMatchesCount2(){var _this$_selected=this._selected,pageIdx=_this$_selected.pageIdx,matchIdx=_this$_selected.matchIdx;var current=0,total=this._matchesCountTotal;if(matchIdx!==-1){for(var i=0;i<pageIdx;i++){var _this$_pageMatches$i;current+=((_this$_pageMatches$i=this._pageMatches[i])===null||_this$_pageMatches$i===void 0?void 0:_this$_pageMatches$i.length)||0;}current+=matchIdx+1;}if(current<1||current>total){current=total=0;}return{current:current,total:total};}function _updateUIResultsCount2(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:_classPrivateMethodGet(this,_requestMatchesCount,_requestMatchesCount2).call(this)});}function _updateUIState2(state){var _classPrivateFieldGet5,_classPrivateFieldGet6;var previous=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!_classPrivateFieldGet(this,_updateMatchesCountOnProgress)&&(_classPrivateFieldGet(this,_visitedPagesCount)!==this._linkService.pagesCount||state===FindState.PENDING)){return;}this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:state,previous:previous,matchesCount:_classPrivateMethodGet(this,_requestMatchesCount,_requestMatchesCount2).call(this),rawQuery:(_classPrivateFieldGet5=(_classPrivateFieldGet6=_classPrivateFieldGet(this,_state))===null||_classPrivateFieldGet6===void 0?void 0:_classPrivateFieldGet6.query)!==null&&_classPrivateFieldGet5!==void 0?_classPrivateFieldGet5:null});}

/***/ }),
/* 308 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var isForced = __webpack_require__(78);
var inheritIfRequired = __webpack_require__(129);
var createNonEnumerableProperty = __webpack_require__(64);
var getOwnPropertyNames = (__webpack_require__(76).f);
var isPrototypeOf = __webpack_require__(37);
var isRegExp = __webpack_require__(202);
var toString = __webpack_require__(94);
var getRegExpFlags = __webpack_require__(223);
var stickyHelpers = __webpack_require__(209);
var proxyAccessor = __webpack_require__(128);
var defineBuiltIn = __webpack_require__(70);
var fails = __webpack_require__(8);
var hasOwn = __webpack_require__(5);
var enforceInternalState = (__webpack_require__(62).enforce);
var setSpecies = __webpack_require__(145);
var wellKnownSymbol = __webpack_require__(13);
var UNSUPPORTED_DOT_ALL = __webpack_require__(210);
var UNSUPPORTED_NCG = __webpack_require__(211);
var MATCH = wellKnownSymbol('match');
var NativeRegExp = global.RegExp;
var RegExpPrototype = NativeRegExp.prototype;
var SyntaxError = global.SyntaxError;
var exec = uncurryThis(RegExpPrototype.exec);
var charAt = uncurryThis(''.charAt);
var replace = uncurryThis(''.replace);
var stringIndexOf = uncurryThis(''.indexOf);
var stringSlice = uncurryThis(''.slice);
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
var re1 = /a/g;
var re2 = /a/g;
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var BASE_FORCED = DESCRIPTORS && (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {
 re2[MATCH] = false;
 return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
}));
var handleDotAll = function (string) {
 var length = string.length;
 var index = 0;
 var result = '';
 var brackets = false;
 var chr;
 for (; index <= length; index++) {
  chr = charAt(string, index);
  if (chr === '\\') {
   result += chr + charAt(string, ++index);
   continue;
  }
  if (!brackets && chr === '.') {
   result += '[\\s\\S]';
  } else {
   if (chr === '[') {
    brackets = true;
   } else if (chr === ']') {
    brackets = false;
   }
   result += chr;
  }
 }
 return result;
};
var handleNCG = function (string) {
 var length = string.length;
 var index = 0;
 var result = '';
 var named = [];
 var names = {};
 var brackets = false;
 var ncg = false;
 var groupid = 0;
 var groupname = '';
 var chr;
 for (; index <= length; index++) {
  chr = charAt(string, index);
  if (chr === '\\') {
   chr = chr + charAt(string, ++index);
  } else if (chr === ']') {
   brackets = false;
  } else if (!brackets)
   switch (true) {
   case chr === '[':
    brackets = true;
    break;
   case chr === '(':
    if (exec(IS_NCG, stringSlice(string, index + 1))) {
     index += 2;
     ncg = true;
    }
    result += chr;
    groupid++;
    continue;
   case chr === '>' && ncg:
    if (groupname === '' || hasOwn(names, groupname)) {
     throw new SyntaxError('Invalid capture group name');
    }
    names[groupname] = true;
    named[named.length] = [
     groupname,
     groupid
    ];
    ncg = false;
    groupname = '';
    continue;
   }
  if (ncg)
   groupname += chr;
  else
   result += chr;
 }
 return [
  result,
  named
 ];
};
if (isForced('RegExp', BASE_FORCED)) {
 var RegExpWrapper = function RegExp(pattern, flags) {
  var thisIsRegExp = isPrototypeOf(RegExpPrototype, this);
  var patternIsRegExp = isRegExp(pattern);
  var flagsAreUndefined = flags === undefined;
  var groups = [];
  var rawPattern = pattern;
  var rawFlags, dotAll, sticky, handled, result, state;
  if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
   return pattern;
  }
  if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) {
   pattern = pattern.source;
   if (flagsAreUndefined)
    flags = getRegExpFlags(rawPattern);
  }
  pattern = pattern === undefined ? '' : toString(pattern);
  flags = flags === undefined ? '' : toString(flags);
  rawPattern = pattern;
  if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) {
   dotAll = !!flags && stringIndexOf(flags, 's') > -1;
   if (dotAll)
    flags = replace(flags, /s/g, '');
  }
  rawFlags = flags;
  if (MISSED_STICKY && 'sticky' in re1) {
   sticky = !!flags && stringIndexOf(flags, 'y') > -1;
   if (sticky && UNSUPPORTED_Y)
    flags = replace(flags, /y/g, '');
  }
  if (UNSUPPORTED_NCG) {
   handled = handleNCG(pattern);
   pattern = handled[0];
   groups = handled[1];
  }
  result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
  if (dotAll || sticky || groups.length) {
   state = enforceInternalState(result);
   if (dotAll) {
    state.dotAll = true;
    state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
   }
   if (sticky)
    state.sticky = true;
   if (groups.length)
    state.groups = groups;
  }
  if (pattern !== rawPattern)
   try {
    createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
   } catch (error) {
   }
  return result;
 };
 for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
  proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
 }
 RegExpPrototype.constructor = RegExpWrapper;
 RegExpWrapper.prototype = RegExpPrototype;
 defineBuiltIn(global, 'RegExp', RegExpWrapper, { constructor: true });
}
setSpecies('RegExp');

/***/ }),
/* 309 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var UNSUPPORTED_DOT_ALL = __webpack_require__(210);
var classof = __webpack_require__(45);
var defineBuiltInAccessor = __webpack_require__(103);
var getInternalState = (__webpack_require__(62).get);
var RegExpPrototype = RegExp.prototype;
var $TypeError = TypeError;
if (DESCRIPTORS && UNSUPPORTED_DOT_ALL) {
 defineBuiltInAccessor(RegExpPrototype, 'dotAll', {
  configurable: true,
  get: function dotAll() {
   if (this === RegExpPrototype)
    return undefined;
   if (classof(this) === 'RegExp') {
    return !!getInternalState(this).dotAll;
   }
   throw $TypeError('Incompatible receiver, RegExp required');
  }
 });
}

/***/ }),
/* 310 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var MISSED_STICKY = (__webpack_require__(209).MISSED_STICKY);
var classof = __webpack_require__(45);
var defineBuiltInAccessor = __webpack_require__(103);
var getInternalState = (__webpack_require__(62).get);
var RegExpPrototype = RegExp.prototype;
var $TypeError = TypeError;
if (DESCRIPTORS && MISSED_STICKY) {
 defineBuiltInAccessor(RegExpPrototype, 'sticky', {
  configurable: true,
  get: function sticky() {
   if (this === RegExpPrototype)
    return;
   if (classof(this) === 'RegExp') {
    return !!getInternalState(this).sticky;
   }
   throw $TypeError('Incompatible receiver, RegExp required');
  }
 });
}

/***/ }),
/* 311 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var uncurryThis = __webpack_require__(107);
var getOwnPropertyDescriptor = (__webpack_require__(68).f);
var toLength = __webpack_require__(56);
var toString = __webpack_require__(94);
var notARegExp = __webpack_require__(201);
var requireObjectCoercible = __webpack_require__(10);
var correctIsRegExpLogic = __webpack_require__(203);
var IS_PURE = __webpack_require__(15);
var nativeEndsWith = uncurryThis(''.endsWith);
var slice = uncurryThis(''.slice);
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!(function () {
 var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
 return descriptor && !descriptor.writable;
}());
$({
 target: 'String',
 proto: true,
 forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC
}, {
 endsWith: function endsWith(searchString) {
  var that = toString(requireObjectCoercible(this));
  notARegExp(searchString);
  var endPosition = arguments.length > 1 ? arguments[1] : undefined;
  var len = that.length;
  var end = endPosition === undefined ? len : min(toLength(endPosition), len);
  var search = toString(searchString);
  return nativeEndsWith ? nativeEndsWith(that, search, end) : slice(that, end - search.length, end) === search;
 }
});

/***/ }),
/* 312 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $map = (__webpack_require__(105).map);
var arrayMethodHasSpeciesSupport = __webpack_require__(186);
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
$({
 target: 'Array',
 proto: true,
 forced: !HAS_SPECIES_SUPPORT
}, {
 map: function map(callbackfn) {
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 313 */
/***/ ((__unused_webpack_module, exports) => {

Object.defineProperty(exports, "__esModule", ({value:true}));exports.CharacterType=void 0;exports.getCharacterType=getCharacterType;exports.getNormalizeWithNFKC=getNormalizeWithNFKC;var CharacterType={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};exports.CharacterType=CharacterType;function isAlphabeticalScript(charCode){return charCode<0x2e80;}function isAscii(charCode){return(charCode&0xff80)===0;}function isAsciiAlpha(charCode){return charCode>=0x61&&charCode<=0x7a||charCode>=0x41&&charCode<=0x5a;}function isAsciiDigit(charCode){return charCode>=0x30&&charCode<=0x39;}function isAsciiSpace(charCode){return charCode===0x20||charCode===0x09||charCode===0x0d||charCode===0x0a;}function isHan(charCode){return charCode>=0x3400&&charCode<=0x9fff||charCode>=0xf900&&charCode<=0xfaff;}function isKatakana(charCode){return charCode>=0x30a0&&charCode<=0x30ff;}function isHiragana(charCode){return charCode>=0x3040&&charCode<=0x309f;}function isHalfwidthKatakana(charCode){return charCode>=0xff60&&charCode<=0xff9f;}function isThai(charCode){return(charCode&0xff80)===0x0e00;}function getCharacterType(charCode){if(isAlphabeticalScript(charCode)){if(isAscii(charCode)){if(isAsciiSpace(charCode)){return CharacterType.SPACE;}else if(isAsciiAlpha(charCode)||isAsciiDigit(charCode)||charCode===0x5f){return CharacterType.ALPHA_LETTER;}return CharacterType.PUNCT;}else if(isThai(charCode)){return CharacterType.THAI_LETTER;}else if(charCode===0xa0){return CharacterType.SPACE;}return CharacterType.ALPHA_LETTER;}if(isHan(charCode)){return CharacterType.HAN_LETTER;}else if(isKatakana(charCode)){return CharacterType.KATAKANA_LETTER;}else if(isHiragana(charCode)){return CharacterType.HIRAGANA_LETTER;}else if(isHalfwidthKatakana(charCode)){return CharacterType.HALFWIDTH_KATAKANA_LETTER;}return CharacterType.ALPHA_LETTER;}var NormalizeWithNFKC;function getNormalizeWithNFKC(){NormalizeWithNFKC||(NormalizeWithNFKC="\xA0\xA8\xAA\xAF\xB2-\xB5\xB8-\xBA\xBC-\xBE\u0132-\u0133\u013F-\u0140\u0149\u017F\u01C4-\u01CC\u01F1-\u01F3\u02B0-\u02B8\u02D8-\u02DD\u02E0-\u02E4\u0374\u037A\u037E\u0384-\u0385\u0387\u03D0-\u03D6\u03F0-\u03F2\u03F4-\u03F5\u03F9\u0587\u0675-\u0678\u0958-\u095F\u09DC-\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B5C-\u0B5D\u0E33\u0EB3\u0EDC-\u0EDD\u0F0C\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u10FC\u1D2C-\u1D2E\u1D30-\u1D3A\u1D3C-\u1D4D\u1D4F-\u1D6A\u1D78\u1D9B-\u1DBF\u1E9A-\u1E9B\u1F71\u1F73\u1F75\u1F77\u1F79\u1F7B\u1F7D\u1FBB\u1FBD-\u1FC1\u1FC9\u1FCB\u1FCD-\u1FCF\u1FD3\u1FDB\u1FDD-\u1FDF\u1FE3\u1FEB\u1FED-\u1FEF\u1FF9\u1FFB\u1FFD-\u1FFE\u2000-\u200A\u2011\u2017\u2024-\u2026\u202F\u2033-\u2034\u2036-\u2037\u203C\u203E\u2047-\u2049\u2057\u205F\u2070-\u2071\u2074-\u208E\u2090-\u209C\u20A8\u2100-\u2103\u2105-\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211D\u2120-\u2122\u2124\u2126\u2128\u212A-\u212D\u212F-\u2131\u2133-\u2139\u213B-\u2140\u2145-\u2149\u2150-\u217F\u2189\u222C-\u222D\u222F-\u2230\u2329-\u232A\u2460-\u24EA\u2A0C\u2A74-\u2A76\u2ADC\u2C7C-\u2C7D\u2D6F\u2E9F\u2EF3\u2F00-\u2FD5\u3000\u3036\u3038-\u303A\u309B-\u309C\u309F\u30FF\u3131-\u318E\u3192-\u319F\u3200-\u321E\u3220-\u3247\u3250-\u327E\u3280-\u33FF\uA69C-\uA69D\uA770\uA7F2-\uA7F4\uA7F8-\uA7F9\uAB5C-\uAB5F\uAB69\uF900-\uFA0D\uFA10\uFA12\uFA15-\uFA1E\uFA20\uFA22\uFA25-\uFA26\uFA2A-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE10-\uFE19\uFE30-\uFE44\uFE47-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE72\uFE74\uFE76-\uFEFC\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6");return NormalizeWithNFKC;}

/***/ }),
/* 314 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(179);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFHistory=void 0;exports.isDestArraysEqual=isDestArraysEqual;exports.isDestHashesEqual=isDestHashesEqual;__webpack_require__(198);__webpack_require__(115);__webpack_require__(88);__webpack_require__(142);__webpack_require__(315);__webpack_require__(216);__webpack_require__(217);__webpack_require__(138);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(126);__webpack_require__(187);var _ui_utils=__webpack_require__(239);var _event_utils=__webpack_require__(289);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var HASH_CHANGE_TIMEOUT=1000;var POSITION_UPDATED_THRESHOLD=50;var UPDATE_VIEWAREA_TIMEOUT=1000;function getCurrentHash(){return document.location.hash;}var PDFHistory=/*#__PURE__*/function(){function PDFHistory(_ref){var _this=this;var linkService=_ref.linkService,eventBus=_ref.eventBus;_classCallCheck(this,PDFHistory);this.linkService=linkService;this.eventBus=eventBus;this._initialized=false;this._fingerprint="";this.reset();this._boundEvents=null;this.eventBus._on("pagesinit",function(){_this._isPagesLoaded=false;_this.eventBus._on("pagesloaded",function(evt){_this._isPagesLoaded=!!evt.pagesCount;},{once:true});});}_createClass(PDFHistory,[{key:"initialize",value:function initialize(_ref2){var fingerprint=_ref2.fingerprint,_ref2$resetHistory=_ref2.resetHistory,resetHistory=_ref2$resetHistory===void 0?false:_ref2$resetHistory,_ref2$updateUrl=_ref2.updateUrl,updateUrl=_ref2$updateUrl===void 0?false:_ref2$updateUrl;if(!fingerprint||typeof fingerprint!=="string"){globalThis.ngxConsole.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return;}if(this._initialized){this.reset();}var reInitialized=this._fingerprint!==""&&this._fingerprint!==fingerprint;this._fingerprint=fingerprint;this._updateUrl=updateUrl===true;this._initialized=true;this._bindEvents();var state=window.history.state;this._popStateInProgress=false;this._blockHashChange=0;this._currentHash=getCurrentHash();this._numPositionUpdates=0;this._uid=this._maxUid=0;this._destination=null;this._position=null;if(!this._isValidState(state,true)||resetHistory){var _this$_parseCurrentHa=this._parseCurrentHash(true),hash=_this$_parseCurrentHa.hash,page=_this$_parseCurrentHa.page,rotation=_this$_parseCurrentHa.rotation;if(!hash||reInitialized||resetHistory){this._pushOrReplaceState(null,true);return;}this._pushOrReplaceState({hash:hash,page:page,rotation:rotation},true);return;}var destination=state.destination;this._updateInternalState(destination,state.uid,true);if(destination.rotation!==undefined){this._initialRotation=destination.rotation;}if(destination.dest){this._initialBookmark=JSON.stringify(destination.dest);this._destination.page=null;}else if(destination.hash){this._initialBookmark=destination.hash;}else if(destination.page){this._initialBookmark="page=".concat(destination.page);}}},{key:"reset",value:function reset(){if(this._initialized){this._pageHide();this._initialized=false;this._unbindEvents();}if(this._updateViewareaTimeout){clearTimeout(this._updateViewareaTimeout);this._updateViewareaTimeout=null;}this._initialBookmark=null;this._initialRotation=null;}},{key:"push",value:function push(_ref3){var _this2=this;var _ref3$namedDest=_ref3.namedDest,namedDest=_ref3$namedDest===void 0?null:_ref3$namedDest,explicitDest=_ref3.explicitDest,pageNumber=_ref3.pageNumber;if(!this._initialized){return;}if(namedDest&&typeof namedDest!=="string"){globalThis.ngxConsole.error("PDFHistory.push: "+"\"".concat(namedDest,"\" is not a valid namedDest parameter."));return;}else if(!Array.isArray(explicitDest)){globalThis.ngxConsole.error("PDFHistory.push: "+"\"".concat(explicitDest,"\" is not a valid explicitDest parameter."));return;}else if(!this._isValidPage(pageNumber)){if(pageNumber!==null||this._destination){globalThis.ngxConsole.error("PDFHistory.push: "+"\"".concat(pageNumber,"\" is not a valid pageNumber parameter."));return;}}var hash=namedDest||JSON.stringify(explicitDest);if(!hash){return;}var forceReplace=false;if(this._destination&&(isDestHashesEqual(this._destination.hash,hash)||isDestArraysEqual(this._destination.dest,explicitDest))){if(this._destination.page){return;}forceReplace=true;}if(this._popStateInProgress&&!forceReplace){return;}this._pushOrReplaceState({dest:explicitDest,hash:hash,page:pageNumber,rotation:this.linkService.rotation},forceReplace);if(!this._popStateInProgress){this._popStateInProgress=true;Promise.resolve().then(function(){_this2._popStateInProgress=false;});}}},{key:"pushPage",value:function pushPage(pageNumber){var _this$_destination,_this3=this;if(!this._initialized){return;}if(!this._isValidPage(pageNumber)){globalThis.ngxConsole.error("PDFHistory.pushPage: \"".concat(pageNumber,"\" is not a valid page number."));return;}if(((_this$_destination=this._destination)===null||_this$_destination===void 0?void 0:_this$_destination.page)===pageNumber){return;}if(this._popStateInProgress){return;}this._pushOrReplaceState({dest:null,hash:"page=".concat(pageNumber),page:pageNumber,rotation:this.linkService.rotation});if(!this._popStateInProgress){this._popStateInProgress=true;Promise.resolve().then(function(){_this3._popStateInProgress=false;});}}},{key:"pushCurrentPosition",value:function pushCurrentPosition(){if(!this._initialized||this._popStateInProgress){return;}this._tryPushCurrentPosition();}},{key:"back",value:function back(){if(!this._initialized||this._popStateInProgress){return;}var state=window.history.state;if(this._isValidState(state)&&state.uid>0){window.history.back();}}},{key:"forward",value:function forward(){if(!this._initialized||this._popStateInProgress){return;}var state=window.history.state;if(this._isValidState(state)&&state.uid<this._maxUid){window.history.forward();}}},{key:"popStateInProgress",get:function get(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0);}},{key:"initialBookmark",get:function get(){return this._initialized?this._initialBookmark:null;}},{key:"initialRotation",get:function get(){return this._initialized?this._initialRotation:null;}},{key:"_pushOrReplaceState",value:function _pushOrReplaceState(destination){var forceReplace=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var shouldReplace=forceReplace||!this._destination;var newState={fingerprint:this._fingerprint,uid:shouldReplace?this._uid:this._uid+1,destination:destination};this._updateInternalState(destination,newState.uid);var newUrl;if(this._updateUrl&&destination!==null&&destination!==void 0&&destination.hash){var baseUrl=document.location.href.split("#")[0];if(!baseUrl.startsWith("file://")){newUrl="".concat(baseUrl,"#").concat(destination.hash);}}if(shouldReplace){window.history.replaceState(newState,"",newUrl);}else{window.history.pushState(newState,"",newUrl);}}},{key:"_tryPushCurrentPosition",value:function _tryPushCurrentPosition(){var temporary=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this._position){return;}var position=this._position;if(temporary){position=Object.assign(Object.create(null),this._position);position.temporary=true;}if(!this._destination){this._pushOrReplaceState(position);return;}if(this._destination.temporary){this._pushOrReplaceState(position,true);return;}if(this._destination.hash===position.hash){return;}if(!this._destination.page&&(POSITION_UPDATED_THRESHOLD<=0||this._numPositionUpdates<=POSITION_UPDATED_THRESHOLD)){return;}var forceReplace=false;if(this._destination.page>=position.first&&this._destination.page<=position.page){if(this._destination.dest!==undefined||!this._destination.first){return;}forceReplace=true;}this._pushOrReplaceState(position,forceReplace);}},{key:"_isValidPage",value:function _isValidPage(val){return Number.isInteger(val)&&val>0&&val<=this.linkService.pagesCount;}},{key:"_isValidState",value:function _isValidState(state){var checkReload=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!state){return false;}if(state.fingerprint!==this._fingerprint){if(checkReload){if(typeof state.fingerprint!=="string"||state.fingerprint.length!==this._fingerprint.length){return false;}var _performance$getEntri=performance.getEntriesByType("navigation"),_performance$getEntri2=_slicedToArray(_performance$getEntri,1),perfEntry=_performance$getEntri2[0];if((perfEntry===null||perfEntry===void 0?void 0:perfEntry.type)!=="reload"){return false;}}else{return false;}}if(!Number.isInteger(state.uid)||state.uid<0){return false;}if(state.destination===null||_typeof(state.destination)!=="object"){return false;}return true;}},{key:"_updateInternalState",value:function _updateInternalState(destination,uid){var removeTemporary=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(this._updateViewareaTimeout){clearTimeout(this._updateViewareaTimeout);this._updateViewareaTimeout=null;}if(removeTemporary&&destination!==null&&destination!==void 0&&destination.temporary){delete destination.temporary;}this._destination=destination;this._uid=uid;this._maxUid=Math.max(this._maxUid,uid);this._numPositionUpdates=0;}},{key:"_parseCurrentHash",value:function _parseCurrentHash(){var checkNameddest=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var hash=unescape(getCurrentHash()).substring(1);var params=(0,_ui_utils.parseQueryString)(hash);var nameddest=params.get("nameddest")||"";var page=params.get("page")|0;if(!this._isValidPage(page)||checkNameddest&&nameddest.length>0){page=null;}return{hash:hash,page:page,rotation:this.linkService.rotation};}},{key:"_updateViewarea",value:function _updateViewarea(_ref4){var _this4=this;var location=_ref4.location;if(this._updateViewareaTimeout){clearTimeout(this._updateViewareaTimeout);this._updateViewareaTimeout=null;}this._position={hash:location.pdfOpenParams.substring(1),page:this.linkService.page,first:location.pageNumber,rotation:location.rotation};if(this._popStateInProgress){return;}if(POSITION_UPDATED_THRESHOLD>0&&this._isPagesLoaded&&this._destination&&!this._destination.page){this._numPositionUpdates++;}if(UPDATE_VIEWAREA_TIMEOUT>0){this._updateViewareaTimeout=setTimeout(function(){if(!_this4._popStateInProgress){_this4._tryPushCurrentPosition(true);}_this4._updateViewareaTimeout=null;},UPDATE_VIEWAREA_TIMEOUT);}}},{key:"_popState",value:function _popState(_ref5){var _this5=this;var state=_ref5.state;var newHash=getCurrentHash(),hashChanged=this._currentHash!==newHash;this._currentHash=newHash;if(!state){this._uid++;var _this$_parseCurrentHa2=this._parseCurrentHash(),hash=_this$_parseCurrentHa2.hash,page=_this$_parseCurrentHa2.page,rotation=_this$_parseCurrentHa2.rotation;this._pushOrReplaceState({hash:hash,page:page,rotation:rotation},true);return;}if(!this._isValidState(state)){return;}this._popStateInProgress=true;if(hashChanged){this._blockHashChange++;(0,_event_utils.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:HASH_CHANGE_TIMEOUT}).then(function(){_this5._blockHashChange--;});}var destination=state.destination;this._updateInternalState(destination,state.uid,true);if((0,_ui_utils.isValidRotation)(destination.rotation)){this.linkService.rotation=destination.rotation;}if(destination.dest){this.linkService.goToDestination(destination.dest);}else if(destination.hash){this.linkService.setHash(destination.hash);}else if(destination.page){this.linkService.page=destination.page;}Promise.resolve().then(function(){_this5._popStateInProgress=false;});}},{key:"_pageHide",value:function _pageHide(){if(!this._destination||this._destination.temporary){this._tryPushCurrentPosition();}}},{key:"_bindEvents",value:function _bindEvents(){if(this._boundEvents){return;}this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)};this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea);window.addEventListener("popstate",this._boundEvents.popState);window.addEventListener("pagehide",this._boundEvents.pageHide);}},{key:"_unbindEvents",value:function _unbindEvents(){if(!this._boundEvents){return;}this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea);window.removeEventListener("popstate",this._boundEvents.popState);window.removeEventListener("pagehide",this._boundEvents.pageHide);this._boundEvents=null;}}]);return PDFHistory;}();exports.PDFHistory=PDFHistory;function isDestHashesEqual(destHash,pushHash){if(typeof destHash!=="string"||typeof pushHash!=="string"){return false;}if(destHash===pushHash){return true;}var nameddest=(0,_ui_utils.parseQueryString)(destHash).get("nameddest");if(nameddest===pushHash){return true;}return false;}function isDestArraysEqual(firstDest,secondDest){function isEntryEqual(first,second){if(_typeof(first)!==_typeof(second)){return false;}if(Array.isArray(first)||Array.isArray(second)){return false;}if(first!==null&&_typeof(first)==="object"&&second!==null){if(Object.keys(first).length!==Object.keys(second).length){return false;}for(var key in first){if(!isEntryEqual(first[key],second[key])){return false;}}return true;}return first===second||Number.isNaN(first)&&Number.isNaN(second);}if(!(Array.isArray(firstDest)&&Array.isArray(secondDest))){return false;}if(firstDest.length!==secondDest.length){return false;}for(var i=0,ii=firstDest.length;i<ii;i++){if(!isEntryEqual(firstDest[i],secondDest[i])){return false;}}return true;}

/***/ }),
/* 315 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var uncurryThis = __webpack_require__(107);
var getOwnPropertyDescriptor = (__webpack_require__(68).f);
var toLength = __webpack_require__(56);
var toString = __webpack_require__(94);
var notARegExp = __webpack_require__(201);
var requireObjectCoercible = __webpack_require__(10);
var correctIsRegExpLogic = __webpack_require__(203);
var IS_PURE = __webpack_require__(15);
var nativeStartsWith = uncurryThis(''.startsWith);
var stringSlice = uncurryThis(''.slice);
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!(function () {
 var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
 return descriptor && !descriptor.writable;
}());
$({
 target: 'String',
 proto: true,
 forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC
}, {
 startsWith: function startsWith(searchString) {
  var that = toString(requireObjectCoercible(this));
  notARegExp(searchString);
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
  var search = toString(searchString);
  return nativeStartsWith ? nativeStartsWith(that, search, index) : stringSlice(that, index, index + search.length) === search;
 }
});

/***/ }),
/* 316 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(190);__webpack_require__(122);__webpack_require__(123);__webpack_require__(299);__webpack_require__(196);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(182);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFLayerViewer=void 0;__webpack_require__(88);__webpack_require__(142);__webpack_require__(179);__webpack_require__(126);__webpack_require__(42);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _base_tree_viewer=__webpack_require__(301);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _updateLayers=/*#__PURE__*/new WeakSet();var PDFLayerViewer=/*#__PURE__*/function(_BaseTreeViewer){_inherits(PDFLayerViewer,_BaseTreeViewer);var _super=_createSuper(PDFLayerViewer);function PDFLayerViewer(options){var _this;_classCallCheck(this,PDFLayerViewer);_this=_super.call(this,options);_classPrivateMethodInitSpec(_assertThisInitialized(_this),_updateLayers);_this.l10n=options.l10n;_this.eventBus._on("optionalcontentconfigchanged",function(evt){_classPrivateMethodGet(_assertThisInitialized(_this),_updateLayers,_updateLayers2).call(_assertThisInitialized(_this),evt.promise);});_this.eventBus._on("resetlayers",function(){_classPrivateMethodGet(_assertThisInitialized(_this),_updateLayers,_updateLayers2).call(_assertThisInitialized(_this));});_this.eventBus._on("togglelayerstree",_this._toggleAllTreeItems.bind(_assertThisInitialized(_this)));return _this;}_createClass(PDFLayerViewer,[{key:"reset",value:function reset(){_get(_getPrototypeOf(PDFLayerViewer.prototype),"reset",this).call(this);this._optionalContentConfig=null;this._optionalContentHash=null;}},{key:"_dispatchEvent",value:function _dispatchEvent(layersCount){this.eventBus.dispatch("layersloaded",{source:this,layersCount:layersCount});}},{key:"_bindLink",value:function _bindLink(element,_ref){var _this2=this;var groupId=_ref.groupId,input=_ref.input;var setVisibility=function setVisibility(){_this2._optionalContentConfig.setVisibility(groupId,input.checked);_this2._optionalContentHash=_this2._optionalContentConfig.getHash();_this2.eventBus.dispatch("optionalcontentconfig",{source:_this2,promise:Promise.resolve(_this2._optionalContentConfig)});};element.onclick=function(evt){if(evt.target===input){setVisibility();return true;}else if(evt.target!==element){return true;}input.checked=!input.checked;setVisibility();return false;};}},{key:"_setNestedName",value:function(){var _setNestedName2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(element,_ref2){var _ref2$name,name;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_ref2$name=_ref2.name,name=_ref2$name===void 0?null:_ref2$name;if(!(typeof name==="string")){_context.next=4;break;}element.textContent=this._normalizeTextContent(name);return _context.abrupt("return");case 4:_context.next=6;return this.l10n.get("additional_layers");case 6:element.textContent=_context.sent;element.style.fontStyle="italic";case 8:case"end":return _context.stop();}},_callee,this);}));function _setNestedName(_x,_x2){return _setNestedName2.apply(this,arguments);}return _setNestedName;}()},{key:"_addToggleButton",value:function _addToggleButton(div,_ref3){var _ref3$name=_ref3.name,name=_ref3$name===void 0?null:_ref3$name;_get(_getPrototypeOf(PDFLayerViewer.prototype),"_addToggleButton",this).call(this,div,name===null);}},{key:"_toggleAllTreeItems",value:function _toggleAllTreeItems(){if(!this._optionalContentConfig){return;}_get(_getPrototypeOf(PDFLayerViewer.prototype),"_toggleAllTreeItems",this).call(this);}},{key:"render",value:function render(_ref4){var optionalContentConfig=_ref4.optionalContentConfig,pdfDocument=_ref4.pdfDocument;if(this._optionalContentConfig){this.reset();}this._optionalContentConfig=optionalContentConfig||null;this._pdfDocument=pdfDocument||null;var groups=optionalContentConfig===null||optionalContentConfig===void 0?void 0:optionalContentConfig.getOrder();if(!groups){this._dispatchEvent(0);return;}this._optionalContentHash=optionalContentConfig.getHash();var fragment=document.createDocumentFragment(),queue=[{parent:fragment,groups:groups}];var layersCount=0,hasAnyNesting=false;while(queue.length>0){var levelData=queue.shift();var _iterator=_createForOfIteratorHelper(levelData.groups),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var groupId=_step.value;var div=document.createElement("div");div.className="treeItem";var element=document.createElement("a");div.append(element);if(_typeof(groupId)==="object"){hasAnyNesting=true;this._addToggleButton(div,groupId);this._setNestedName(element,groupId);var itemsDiv=document.createElement("div");itemsDiv.className="treeItems";div.append(itemsDiv);queue.push({parent:itemsDiv,groups:groupId.order});}else{var group=optionalContentConfig.getGroup(groupId);var input=document.createElement("input");this._bindLink(element,{groupId:groupId,input:input});input.type="checkbox";input.checked=group.visible;var label=document.createElement("label");label.textContent=this._normalizeTextContent(group.name);label.append(input);element.append(label);layersCount++;}levelData.parent.append(div);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}this._finishRendering(fragment,layersCount,hasAnyNesting);}}]);return PDFLayerViewer;}(_base_tree_viewer.BaseTreeViewer);exports.PDFLayerViewer=PDFLayerViewer;function _updateLayers2(){return _updateLayers3.apply(this,arguments);}function _updateLayers3(){_updateLayers3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var promise,pdfDocument,optionalContentConfig,_args2=arguments;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:promise=_args2.length>0&&_args2[0]!==undefined?_args2[0]:null;if(this._optionalContentConfig){_context2.next=3;break;}return _context2.abrupt("return");case 3:pdfDocument=this._pdfDocument;_context2.next=6;return promise||pdfDocument.getOptionalContentConfig();case 6:optionalContentConfig=_context2.sent;if(!(pdfDocument!==this._pdfDocument)){_context2.next=9;break;}return _context2.abrupt("return");case 9:if(!promise){_context2.next=14;break;}if(!(optionalContentConfig.getHash()===this._optionalContentHash)){_context2.next=12;break;}return _context2.abrupt("return");case 12:_context2.next=15;break;case 14:this.eventBus.dispatch("optionalcontentconfig",{source:this,promise:Promise.resolve(optionalContentConfig)});case 15:this.render({optionalContentConfig:optionalContentConfig,pdfDocument:this._pdfDocument});case 16:case"end":return _context2.stop();}},_callee2,this);}));return _updateLayers3.apply(this,arguments);}

/***/ }),
/* 317 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(122);__webpack_require__(123);__webpack_require__(299);__webpack_require__(196);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(192);__webpack_require__(185);__webpack_require__(222);__webpack_require__(206);__webpack_require__(219);__webpack_require__(142);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(182);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFOutlineViewer=void 0;__webpack_require__(179);__webpack_require__(126);__webpack_require__(42);__webpack_require__(240);__webpack_require__(88);__webpack_require__(92);__webpack_require__(95);__webpack_require__(138);__webpack_require__(190);var _base_tree_viewer=__webpack_require__(301);var _pdfjsLib=__webpack_require__(286);var _ui_utils=__webpack_require__(239);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}var PDFOutlineViewer=/*#__PURE__*/function(_BaseTreeViewer){_inherits(PDFOutlineViewer,_BaseTreeViewer);var _super=_createSuper(PDFOutlineViewer);function PDFOutlineViewer(options){var _this;_classCallCheck(this,PDFOutlineViewer);_this=_super.call(this,options);_this.linkService=options.linkService;_this.downloadManager=options.downloadManager;_this.eventBus._on("toggleoutlinetree",_this._toggleAllTreeItems.bind(_assertThisInitialized(_this)));_this.eventBus._on("currentoutlineitem",_this._currentOutlineItem.bind(_assertThisInitialized(_this)));_this.eventBus._on("pagechanging",function(evt){_this._currentPageNumber=evt.pageNumber;});_this.eventBus._on("pagesloaded",function(evt){_this._isPagesLoaded=!!evt.pagesCount;if(_this._currentOutlineItemCapability&&!_this._currentOutlineItemCapability.settled){_this._currentOutlineItemCapability.resolve(_this._isPagesLoaded);}});_this.eventBus._on("sidebarviewchanged",function(evt){_this._sidebarView=evt.view;});return _this;}_createClass(PDFOutlineViewer,[{key:"reset",value:function reset(){_get(_getPrototypeOf(PDFOutlineViewer.prototype),"reset",this).call(this);this._outline=null;this._pageNumberToDestHashCapability=null;this._currentPageNumber=1;this._isPagesLoaded=null;if(this._currentOutlineItemCapability&&!this._currentOutlineItemCapability.settled){this._currentOutlineItemCapability.resolve(false);}this._currentOutlineItemCapability=null;}},{key:"_dispatchEvent",value:function _dispatchEvent(outlineCount){var _this$_pdfDocument;this._currentOutlineItemCapability=new _pdfjsLib.PromiseCapability();if(outlineCount===0||(_this$_pdfDocument=this._pdfDocument)!==null&&_this$_pdfDocument!==void 0&&_this$_pdfDocument.loadingParams.disableAutoFetch){this._currentOutlineItemCapability.resolve(false);}else if(this._isPagesLoaded!==null){this._currentOutlineItemCapability.resolve(this._isPagesLoaded);}this.eventBus.dispatch("outlineloaded",{source:this,outlineCount:outlineCount,currentOutlineItemPromise:this._currentOutlineItemCapability.promise});}},{key:"_bindLink",value:function _bindLink(element,_ref){var _this2=this;var url=_ref.url,newWindow=_ref.newWindow,action=_ref.action,attachment=_ref.attachment,dest=_ref.dest,setOCGState=_ref.setOCGState;var linkService=this.linkService;if(url){linkService.addLinkAttributes(element,url,newWindow);return;}if(action){element.href=linkService.getAnchorUrl("");element.onclick=function(){linkService.executeNamedAction(action);return false;};return;}if(attachment){element.href=linkService.getAnchorUrl("");element.onclick=function(){_this2.downloadManager.openOrDownloadData(element,attachment.content,attachment.filename);return false;};return;}if(setOCGState){element.href=linkService.getAnchorUrl("");element.onclick=function(){linkService.executeSetOCGState(setOCGState);return false;};return;}element.href=linkService.getDestinationHash(dest);element.onclick=function(evt){_this2._updateCurrentTreeItem(evt.target.parentNode);if(dest){linkService.goToDestination(dest);}return false;};}},{key:"_setStyles",value:function _setStyles(element,_ref2){var bold=_ref2.bold,italic=_ref2.italic;if(bold){element.style.fontWeight="bold";}if(italic){element.style.fontStyle="italic";}}},{key:"_addToggleButton",value:function _addToggleButton(div,_ref3){var count=_ref3.count,items=_ref3.items;var hidden=false;if(count<0){var totalCount=items.length;if(totalCount>0){var queue=_toConsumableArray(items);while(queue.length>0){var _queue$shift=queue.shift(),nestedCount=_queue$shift.count,nestedItems=_queue$shift.items;if(nestedCount>0&&nestedItems.length>0){totalCount+=nestedItems.length;queue.push.apply(queue,_toConsumableArray(nestedItems));}}}if(Math.abs(count)===totalCount){hidden=true;}}_get(_getPrototypeOf(PDFOutlineViewer.prototype),"_addToggleButton",this).call(this,div,hidden);}},{key:"_toggleAllTreeItems",value:function _toggleAllTreeItems(){if(!this._outline){return;}_get(_getPrototypeOf(PDFOutlineViewer.prototype),"_toggleAllTreeItems",this).call(this);}},{key:"render",value:function render(_ref4){var outline=_ref4.outline,pdfDocument=_ref4.pdfDocument;if(this._outline){this.reset();}this._outline=outline||null;this._pdfDocument=pdfDocument||null;if(!outline){this._dispatchEvent(0);return;}var fragment=document.createDocumentFragment();var queue=[{parent:fragment,items:outline}];var outlineCount=0,hasAnyNesting=false;while(queue.length>0){var levelData=queue.shift();var _iterator=_createForOfIteratorHelper(levelData.items),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var item=_step.value;var div=document.createElement("div");div.className="treeItem";var element=document.createElement("a");this._bindLink(element,item);this._setStyles(element,item);element.textContent=this._normalizeTextContent(item.title);div.append(element);if(item.items.length>0){hasAnyNesting=true;this._addToggleButton(div,item);var itemsDiv=document.createElement("div");itemsDiv.className="treeItems";div.append(itemsDiv);queue.push({parent:itemsDiv,items:item.items});}levelData.parent.append(div);outlineCount++;}}catch(err){_iterator.e(err);}finally{_iterator.f();}}this._finishRendering(fragment,outlineCount,hasAnyNesting);}},{key:"_currentOutlineItem",value:function(){var _currentOutlineItem2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var pageNumberToDestHash,i,destHash,linkElement;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(this._isPagesLoaded){_context.next=2;break;}throw new Error("_currentOutlineItem: All pages have not been loaded.");case 2:if(!(!this._outline||!this._pdfDocument)){_context.next=4;break;}return _context.abrupt("return");case 4:_context.next=6;return this._getPageNumberToDestHash(this._pdfDocument);case 6:pageNumberToDestHash=_context.sent;if(pageNumberToDestHash){_context.next=9;break;}return _context.abrupt("return");case 9:this._updateCurrentTreeItem(null);if(!(this._sidebarView!==_ui_utils.SidebarView.OUTLINE)){_context.next=12;break;}return _context.abrupt("return");case 12:i=this._currentPageNumber;case 13:if(!(i>0)){_context.next=25;break;}destHash=pageNumberToDestHash.get(i);if(destHash){_context.next=17;break;}return _context.abrupt("continue",22);case 17:linkElement=this.container.querySelector("a[href=\"".concat(destHash,"\"]"));if(linkElement){_context.next=20;break;}return _context.abrupt("continue",22);case 20:this._scrollToCurrentTreeItem(linkElement.parentNode);return _context.abrupt("break",25);case 22:i--;_context.next=13;break;case 25:case"end":return _context.stop();}},_callee,this);}));function _currentOutlineItem(){return _currentOutlineItem2.apply(this,arguments);}return _currentOutlineItem;}()},{key:"_getPageNumberToDestHash",value:function(){var _getPageNumberToDestHash2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(pdfDocument){var pageNumberToDestHash,pageNumberNesting,queue,levelData,currentNesting,_iterator2,_step2,_step2$value,dest,items,explicitDest,pageNumber,_explicitDest,_explicitDest2,destRef,destHash;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!this._pageNumberToDestHashCapability){_context2.next=2;break;}return _context2.abrupt("return",this._pageNumberToDestHashCapability.promise);case 2:this._pageNumberToDestHashCapability=new _pdfjsLib.PromiseCapability();pageNumberToDestHash=new Map(),pageNumberNesting=new Map();queue=[{nesting:0,items:this._outline}];case 5:if(!(queue.length>0)){_context2.next=56;break;}levelData=queue.shift(),currentNesting=levelData.nesting;_iterator2=_createForOfIteratorHelper(levelData.items);_context2.prev=8;_iterator2.s();case 10:if((_step2=_iterator2.n()).done){_context2.next=46;break;}_step2$value=_step2.value,dest=_step2$value.dest,items=_step2$value.items;explicitDest=void 0,pageNumber=void 0;if(!(typeof dest==="string")){_context2.next=21;break;}_context2.next=16;return pdfDocument.getDestination(dest);case 16:explicitDest=_context2.sent;if(!(pdfDocument!==this._pdfDocument)){_context2.next=19;break;}return _context2.abrupt("return",null);case 19:_context2.next=22;break;case 21:explicitDest=dest;case 22:if(!Array.isArray(explicitDest)){_context2.next=43;break;}_explicitDest=explicitDest,_explicitDest2=_slicedToArray(_explicitDest,1),destRef=_explicitDest2[0];if(!(_typeof(destRef)==="object"&&destRef!==null)){_context2.next=41;break;}pageNumber=this.linkService._cachedPageNumber(destRef);if(pageNumber){_context2.next=39;break;}_context2.prev=27;_context2.next=30;return pdfDocument.getPageIndex(destRef);case 30:_context2.t0=_context2.sent;pageNumber=_context2.t0+1;if(!(pdfDocument!==this._pdfDocument)){_context2.next=34;break;}return _context2.abrupt("return",null);case 34:this.linkService.cachePageRef(pageNumber,destRef);_context2.next=39;break;case 37:_context2.prev=37;_context2.t1=_context2["catch"](27);case 39:_context2.next=42;break;case 41:if(Number.isInteger(destRef)){pageNumber=destRef+1;}case 42:if(Number.isInteger(pageNumber)&&(!pageNumberToDestHash.has(pageNumber)||currentNesting>pageNumberNesting.get(pageNumber))){destHash=this.linkService.getDestinationHash(dest);pageNumberToDestHash.set(pageNumber,destHash);pageNumberNesting.set(pageNumber,currentNesting);}case 43:if(items.length>0){queue.push({nesting:currentNesting+1,items:items});}case 44:_context2.next=10;break;case 46:_context2.next=51;break;case 48:_context2.prev=48;_context2.t2=_context2["catch"](8);_iterator2.e(_context2.t2);case 51:_context2.prev=51;_iterator2.f();return _context2.finish(51);case 54:_context2.next=5;break;case 56:this._pageNumberToDestHashCapability.resolve(pageNumberToDestHash.size>0?pageNumberToDestHash:null);return _context2.abrupt("return",this._pageNumberToDestHashCapability.promise);case 58:case"end":return _context2.stop();}},_callee2,this,[[8,48,51,54],[27,37]]);}));function _getPageNumberToDestHash(_x){return _getPageNumberToDestHash2.apply(this,arguments);}return _getPageNumberToDestHash;}()}]);return PDFOutlineViewer;}(_base_tree_viewer.BaseTreeViewer);exports.PDFOutlineViewer=PDFOutlineViewer;

/***/ }),
/* 318 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFPresentationMode=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(293);var _ui_utils=__webpack_require__(239);var _pdfjsLib=__webpack_require__(286);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var DELAY_BEFORE_HIDING_CONTROLS=3000;var ACTIVE_SELECTOR="pdfPresentationMode";var CONTROLS_SELECTOR="pdfPresentationModeControls";var MOUSE_SCROLL_COOLDOWN_TIME=50;var PAGE_SWITCH_THRESHOLD=0.1;var SWIPE_MIN_DISTANCE_THRESHOLD=50;var SWIPE_ANGLE_THRESHOLD=Math.PI/6;var _state=/*#__PURE__*/new WeakMap();var _args=/*#__PURE__*/new WeakMap();var _mouseWheel=/*#__PURE__*/new WeakSet();var _notifyStateChange=/*#__PURE__*/new WeakSet();var _enter=/*#__PURE__*/new WeakSet();var _exit=/*#__PURE__*/new WeakSet();var _mouseDown=/*#__PURE__*/new WeakSet();var _contextMenu=/*#__PURE__*/new WeakSet();var _showControls=/*#__PURE__*/new WeakSet();var _hideControls=/*#__PURE__*/new WeakSet();var _resetMouseScrollState=/*#__PURE__*/new WeakSet();var _touchSwipe=/*#__PURE__*/new WeakSet();var _addWindowListeners=/*#__PURE__*/new WeakSet();var _removeWindowListeners=/*#__PURE__*/new WeakSet();var _fullscreenChange=/*#__PURE__*/new WeakSet();var _addFullscreenChangeListeners=/*#__PURE__*/new WeakSet();var _removeFullscreenChangeListeners=/*#__PURE__*/new WeakSet();var PDFPresentationMode=/*#__PURE__*/function(){function PDFPresentationMode(_ref){var container=_ref.container,pdfViewer=_ref.pdfViewer,eventBus=_ref.eventBus;_classCallCheck(this,PDFPresentationMode);_classPrivateMethodInitSpec(this,_removeFullscreenChangeListeners);_classPrivateMethodInitSpec(this,_addFullscreenChangeListeners);_classPrivateMethodInitSpec(this,_fullscreenChange);_classPrivateMethodInitSpec(this,_removeWindowListeners);_classPrivateMethodInitSpec(this,_addWindowListeners);_classPrivateMethodInitSpec(this,_touchSwipe);_classPrivateMethodInitSpec(this,_resetMouseScrollState);_classPrivateMethodInitSpec(this,_hideControls);_classPrivateMethodInitSpec(this,_showControls);_classPrivateMethodInitSpec(this,_contextMenu);_classPrivateMethodInitSpec(this,_mouseDown);_classPrivateMethodInitSpec(this,_exit);_classPrivateMethodInitSpec(this,_enter);_classPrivateMethodInitSpec(this,_notifyStateChange);_classPrivateMethodInitSpec(this,_mouseWheel);_classPrivateFieldInitSpec(this,_state,{writable:true,value:_ui_utils.PresentationModeState.UNKNOWN});_classPrivateFieldInitSpec(this,_args,{writable:true,value:null});this.container=container;this.pdfViewer=pdfViewer;this.eventBus=eventBus;this.contextMenuOpen=false;this.mouseScrollTimeStamp=0;this.mouseScrollDelta=0;this.touchSwipeState=null;}_createClass(PDFPresentationMode,[{key:"request",value:function(){var _request=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var container,pdfViewer,promise;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:container=this.container,pdfViewer=this.pdfViewer;if(!(this.active||!pdfViewer.pagesCount||!container.requestFullscreen)){_context.next=3;break;}return _context.abrupt("return",false);case 3:_classPrivateMethodGet(this,_addFullscreenChangeListeners,_addFullscreenChangeListeners2).call(this);_classPrivateMethodGet(this,_notifyStateChange,_notifyStateChange2).call(this,_ui_utils.PresentationModeState.CHANGING);promise=container.requestFullscreen();_classPrivateFieldSet(this,_args,{pageNumber:pdfViewer.currentPageNumber,scaleValue:pdfViewer.currentScaleValue,scrollMode:pdfViewer.scrollMode,spreadMode:null,annotationEditorMode:null});if(pdfViewer.spreadMode!==_ui_utils.SpreadMode.NONE&&!(pdfViewer.pageViewsReady&&pdfViewer.hasEqualPageSizes)){console.warn("Ignoring Spread modes when entering PresentationMode, "+"since the document may contain varying page sizes.");_classPrivateFieldGet(this,_args).spreadMode=pdfViewer.spreadMode;}if(pdfViewer.annotationEditorMode!==_pdfjsLib.AnnotationEditorType.DISABLE){_classPrivateFieldGet(this,_args).annotationEditorMode=pdfViewer.annotationEditorMode;}_context.prev=9;_context.next=12;return promise;case 12:pdfViewer.focus();return _context.abrupt("return",true);case 16:_context.prev=16;_context.t0=_context["catch"](9);_classPrivateMethodGet(this,_removeFullscreenChangeListeners,_removeFullscreenChangeListeners2).call(this);_classPrivateMethodGet(this,_notifyStateChange,_notifyStateChange2).call(this,_ui_utils.PresentationModeState.NORMAL);case 20:return _context.abrupt("return",false);case 21:case"end":return _context.stop();}},_callee,this,[[9,16]]);}));function request(){return _request.apply(this,arguments);}return request;}()},{key:"active",get:function get(){return _classPrivateFieldGet(this,_state)===_ui_utils.PresentationModeState.CHANGING||_classPrivateFieldGet(this,_state)===_ui_utils.PresentationModeState.FULLSCREEN;}},{key:"_prepareFullscreenMode",value:function _prepareFullscreenMode(){var domElement=document.getElementsByClassName("zoom")[0].parentElement;var parent=domElement.parentElement;this.ngxContainer=parent;for(var i=0;i<parent.childElementCount;i++){if(parent.children.item(i)===domElement){this.ngxContainerIndex=i;}}parent.removeChild(domElement);document.body.append(domElement);var siblings=document.body.children;for(var _i=0;_i<siblings.length;_i++){var s=siblings.item(_i);if(s!==domElement&&s instanceof HTMLElement){s.classList.add("hidden-by-fullscreen");}}document.getElementById("sidebarContainer").classList.add("hidden-by-fullscreen");document.getElementsByClassName("toolbar")[0].classList.add("hidden-by-fullscreen");}},{key:"_tidyUpFullscreenMode",value:function _tidyUpFullscreenMode(){if(this.ngxContainer){var domElement=document.getElementsByClassName("zoom")[0].parentElement;document.body.removeChild(domElement);if(this.ngxContainerIndex>=this.ngxContainer.childElementCount){this.ngxContainer.append(domElement);}else{this.ngxContainer.insertBefore(domElement,this.ngxContainer.children.item(this.ngxContainerIndex));}this.ngxContainer=undefined;var siblings=document.body.children;for(var i=0;i<siblings.length;i++){var s=siblings.item(i);if(s!==domElement&&s instanceof HTMLElement){if(s.classList.contains("hidden-by-fullscreen")){s.classList.remove("hidden-by-fullscreen");}}}document.getElementById("sidebarContainer").classList.remove("hidden-by-fullscreen");document.getElementsByClassName("toolbar")[0].classList.remove("hidden-by-fullscreen");}}}]);return PDFPresentationMode;}();exports.PDFPresentationMode=PDFPresentationMode;function _mouseWheel2(evt){if(!this.active){return;}evt.preventDefault();var delta=(0,_ui_utils.normalizeWheelEventDelta)(evt);var currentTime=Date.now();var storedTime=this.mouseScrollTimeStamp;if(currentTime>storedTime&&currentTime-storedTime<MOUSE_SCROLL_COOLDOWN_TIME){return;}if(this.mouseScrollDelta>0&&delta<0||this.mouseScrollDelta<0&&delta>0){_classPrivateMethodGet(this,_resetMouseScrollState,_resetMouseScrollState2).call(this);}this.mouseScrollDelta+=delta;if(Math.abs(this.mouseScrollDelta)>=PAGE_SWITCH_THRESHOLD){var totalDelta=this.mouseScrollDelta;_classPrivateMethodGet(this,_resetMouseScrollState,_resetMouseScrollState2).call(this);var success=totalDelta>0?this.pdfViewer.previousPage():this.pdfViewer.nextPage();if(success){this.mouseScrollTimeStamp=currentTime;}}}function _notifyStateChange2(state){_classPrivateFieldSet(this,_state,state);this.eventBus.dispatch("presentationmodechanged",{source:this,state:state});}function _enter2(){var _this=this;_classPrivateMethodGet(this,_notifyStateChange,_notifyStateChange2).call(this,_ui_utils.PresentationModeState.FULLSCREEN);this.container.classList.add(ACTIVE_SELECTOR);setTimeout(function(){_this.pdfViewer.scrollMode=_ui_utils.ScrollMode.PAGE;if(_classPrivateFieldGet(_this,_args).spreadMode!==null){_this.pdfViewer.spreadMode=_ui_utils.SpreadMode.NONE;}_this.pdfViewer.currentPageNumber=_classPrivateFieldGet(_this,_args).pageNumber;_this.pdfViewer.currentScaleValue="page-fit";if(_classPrivateFieldGet(_this,_args).annotationEditorMode!==null){_this.pdfViewer.annotationEditorMode={mode:_pdfjsLib.AnnotationEditorType.NONE};}},0);_classPrivateMethodGet(this,_addWindowListeners,_addWindowListeners2).call(this);_classPrivateMethodGet(this,_showControls,_showControls2).call(this);this.contextMenuOpen=false;window.getSelection().removeAllRanges();}function _exit2(){var _this2=this;var pageNumber=this.pdfViewer.currentPageNumber;this.container.classList.remove(ACTIVE_SELECTOR);setTimeout(function(){_classPrivateMethodGet(_this2,_removeFullscreenChangeListeners,_removeFullscreenChangeListeners2).call(_this2);_classPrivateMethodGet(_this2,_notifyStateChange,_notifyStateChange2).call(_this2,_ui_utils.PresentationModeState.NORMAL);_this2.pdfViewer.scrollMode=_classPrivateFieldGet(_this2,_args).scrollMode;if(_classPrivateFieldGet(_this2,_args).spreadMode!==null){_this2.pdfViewer.spreadMode=_classPrivateFieldGet(_this2,_args).spreadMode;}_this2.pdfViewer.currentScaleValue=_classPrivateFieldGet(_this2,_args).scaleValue;_this2.pdfViewer.currentPageNumber=pageNumber;if(_classPrivateFieldGet(_this2,_args).annotationEditorMode!==null){_this2.pdfViewer.annotationEditorMode={mode:_classPrivateFieldGet(_this2,_args).annotationEditorMode};}_classPrivateFieldSet(_this2,_args,null);},0);_classPrivateMethodGet(this,_removeWindowListeners,_removeWindowListeners2).call(this);_classPrivateMethodGet(this,_hideControls,_hideControls2).call(this);_classPrivateMethodGet(this,_resetMouseScrollState,_resetMouseScrollState2).call(this);this.contextMenuOpen=false;}function _mouseDown2(evt){var _evt$target$parentNod;if(this.contextMenuOpen){this.contextMenuOpen=false;evt.preventDefault();return;}if(evt.button!==0){return;}if(evt.target.href&&(_evt$target$parentNod=evt.target.parentNode)!==null&&_evt$target$parentNod!==void 0&&_evt$target$parentNod.hasAttribute("data-internal-link")){return;}evt.preventDefault();if(evt.shiftKey){this.pdfViewer.previousPage();}else{this.pdfViewer.nextPage();}}function _contextMenu2(){this.contextMenuOpen=true;}function _showControls2(){var _this3=this;if(this.controlsTimeout){clearTimeout(this.controlsTimeout);}else{this.container.classList.add(CONTROLS_SELECTOR);}this.controlsTimeout=setTimeout(function(){_this3.container.classList.remove(CONTROLS_SELECTOR);delete _this3.controlsTimeout;},DELAY_BEFORE_HIDING_CONTROLS);}function _hideControls2(){if(!this.controlsTimeout){return;}clearTimeout(this.controlsTimeout);this.container.classList.remove(CONTROLS_SELECTOR);delete this.controlsTimeout;}function _resetMouseScrollState2(){this.mouseScrollTimeStamp=0;this.mouseScrollDelta=0;}function _touchSwipe2(evt){if(!this.active){return;}if(evt.touches.length>1){this.touchSwipeState=null;return;}switch(evt.type){case"touchstart":this.touchSwipeState={startX:evt.touches[0].pageX,startY:evt.touches[0].pageY,endX:evt.touches[0].pageX,endY:evt.touches[0].pageY};break;case"touchmove":if(this.touchSwipeState===null){return;}this.touchSwipeState.endX=evt.touches[0].pageX;this.touchSwipeState.endY=evt.touches[0].pageY;evt.preventDefault();break;case"touchend":if(this.touchSwipeState===null){return;}var delta=0;var dx=this.touchSwipeState.endX-this.touchSwipeState.startX;var dy=this.touchSwipeState.endY-this.touchSwipeState.startY;var absAngle=Math.abs(Math.atan2(dy,dx));if(Math.abs(dx)>SWIPE_MIN_DISTANCE_THRESHOLD&&(absAngle<=SWIPE_ANGLE_THRESHOLD||absAngle>=Math.PI-SWIPE_ANGLE_THRESHOLD)){delta=dx;}else if(Math.abs(dy)>SWIPE_MIN_DISTANCE_THRESHOLD&&Math.abs(absAngle-Math.PI/2)<=SWIPE_ANGLE_THRESHOLD){delta=dy;}if(delta>0){this.pdfViewer.previousPage();}else if(delta<0){this.pdfViewer.nextPage();}break;}}function _addWindowListeners2(){this.showControlsBind=_classPrivateMethodGet(this,_showControls,_showControls2).bind(this);this.mouseDownBind=_classPrivateMethodGet(this,_mouseDown,_mouseDown2).bind(this);this.mouseWheelBind=_classPrivateMethodGet(this,_mouseWheel,_mouseWheel2).bind(this);this.resetMouseScrollStateBind=_classPrivateMethodGet(this,_resetMouseScrollState,_resetMouseScrollState2).bind(this);this.contextMenuBind=_classPrivateMethodGet(this,_contextMenu,_contextMenu2).bind(this);this.touchSwipeBind=_classPrivateMethodGet(this,_touchSwipe,_touchSwipe2).bind(this);window.addEventListener("mousemove",this.showControlsBind);window.addEventListener("mousedown",this.mouseDownBind);window.addEventListener("wheel",this.mouseWheelBind,{passive:false});window.addEventListener("keydown",this.resetMouseScrollStateBind);window.addEventListener("contextmenu",this.contextMenuBind);window.addEventListener("touchstart",this.touchSwipeBind);window.addEventListener("touchmove",this.touchSwipeBind);window.addEventListener("touchend",this.touchSwipeBind);}function _removeWindowListeners2(){window.removeEventListener("mousemove",this.showControlsBind);window.removeEventListener("mousedown",this.mouseDownBind);window.removeEventListener("wheel",this.mouseWheelBind,{passive:false});window.removeEventListener("keydown",this.resetMouseScrollStateBind);window.removeEventListener("contextmenu",this.contextMenuBind);window.removeEventListener("touchstart",this.touchSwipeBind);window.removeEventListener("touchmove",this.touchSwipeBind);window.removeEventListener("touchend",this.touchSwipeBind);delete this.showControlsBind;delete this.mouseDownBind;delete this.mouseWheelBind;delete this.resetMouseScrollStateBind;delete this.contextMenuBind;delete this.touchSwipeBind;}function _fullscreenChange2(){if(document.fullscreenElement){_classPrivateMethodGet(this,_enter,_enter2).call(this);}else{_classPrivateMethodGet(this,_exit,_exit2).call(this);}}function _addFullscreenChangeListeners2(){this.fullscreenChangeBind=_classPrivateMethodGet(this,_fullscreenChange,_fullscreenChange2).bind(this);window.addEventListener("fullscreenchange",this.fullscreenChangeBind);}function _removeFullscreenChangeListeners2(){window.removeEventListener("fullscreenchange",this.fullscreenChangeBind);delete this.fullscreenChangeBind;}

/***/ }),
/* 319 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFRenderingQueue=void 0;__webpack_require__(88);__webpack_require__(142);__webpack_require__(320);__webpack_require__(198);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(126);__webpack_require__(138);var _pdfjsLib=__webpack_require__(286);var _ui_utils=__webpack_require__(239);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var CLEANUP_TIMEOUT=30000;var PDFRenderingQueue=/*#__PURE__*/function(){function PDFRenderingQueue(){var _this=this;_classCallCheck(this,PDFRenderingQueue);this.pdfViewer=null;this.pdfThumbnailViewer=null;this.onIdle=null;this.highestPriorityPage=null;this.idleTimeout=null;this.printing=false;this.isThumbnailViewEnabled=false;Object.defineProperty(this,"hasViewer",{value:function value(){return!!_this.pdfViewer;}});}_createClass(PDFRenderingQueue,[{key:"setViewer",value:function setViewer(pdfViewer){this.pdfViewer=pdfViewer;}},{key:"setThumbnailViewer",value:function setThumbnailViewer(pdfThumbnailViewer){this.pdfThumbnailViewer=pdfThumbnailViewer;}},{key:"isHighestPriority",value:function isHighestPriority(view){return this.highestPriorityPage===view.renderingId;}},{key:"renderHighestPriority",value:function renderHighestPriority(currentlyVisiblePages){var _this$pdfThumbnailVie;if(this.idleTimeout){clearTimeout(this.idleTimeout);this.idleTimeout=null;}if(this.pdfViewer.forceRendering(currentlyVisiblePages)){return;}if(this.isThumbnailViewEnabled&&(_this$pdfThumbnailVie=this.pdfThumbnailViewer)!==null&&_this$pdfThumbnailVie!==void 0&&_this$pdfThumbnailVie.forceRendering()){return;}if(this.printing){return;}if(this.onIdle){this.idleTimeout=setTimeout(this.onIdle.bind(this),CLEANUP_TIMEOUT);}}},{key:"getHighestPriority",value:function getHighestPriority(visible,views,scrolledDown){var preRenderExtra=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var visibleViews=visible.views,numVisible=visibleViews.length;if(numVisible===0){return null;}for(var i=0;i<numVisible;i++){var view=visibleViews[i].view;if(!this.isViewFinished(view)){return view;}}var firstId=visible.first.id,lastId=visible.last.id;if(lastId-firstId+1>numVisible){var visibleIds=visible.ids;for(var _i=1,ii=lastId-firstId;_i<ii;_i++){var holeId=scrolledDown?firstId+_i:lastId-_i;if(visibleIds.has(holeId)){continue;}var holeView=views[holeId-1];if(!this.isViewFinished(holeView)){return holeView;}}}var preRenderIndex=scrolledDown?lastId:firstId-2;var preRenderView=views[preRenderIndex];if(preRenderView&&!this.isViewFinished(preRenderView)){return preRenderView;}if(preRenderExtra){preRenderIndex+=scrolledDown?1:-1;preRenderView=views[preRenderIndex];if(preRenderView&&!this.isViewFinished(preRenderView)){return preRenderView;}}return null;}},{key:"isViewFinished",value:function isViewFinished(view){return view.renderingState===_ui_utils.RenderingStates.FINISHED;}},{key:"renderView",value:function renderView(view){var _this2=this;switch(view.renderingState){case _ui_utils.RenderingStates.FINISHED:return false;case _ui_utils.RenderingStates.PAUSED:this.highestPriorityPage=view.renderingId;view.resume();break;case _ui_utils.RenderingStates.RUNNING:this.highestPriorityPage=view.renderingId;break;case _ui_utils.RenderingStates.INITIAL:this.highestPriorityPage=view.renderingId;view.draw().finally(function(){_this2.renderHighestPriority();}).catch(function(reason){if(reason instanceof _pdfjsLib.RenderingCancelledException){return;}globalThis.ngxConsole.error("renderView: \"".concat(reason,"\""));});break;}return true;}}]);return PDFRenderingQueue;}();exports.PDFRenderingQueue=PDFRenderingQueue;

/***/ }),
/* 320 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var IS_PURE = __webpack_require__(15);
var NativePromiseConstructor = __webpack_require__(157);
var fails = __webpack_require__(8);
var getBuiltIn = __webpack_require__(36);
var isCallable = __webpack_require__(28);
var speciesConstructor = __webpack_require__(147);
var promiseResolve = __webpack_require__(174);
var defineBuiltIn = __webpack_require__(70);
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
 NativePromisePrototype['finally'].call({
  then: function () {
  }
 }, function () {
 });
});
$({
 target: 'Promise',
 proto: true,
 real: true,
 forced: NON_GENERIC
}, {
 'finally': function (onFinally) {
  var C = speciesConstructor(this, getBuiltIn('Promise'));
  var isFunction = isCallable(onFinally);
  return this.then(isFunction ? function (x) {
   return promiseResolve(C, onFinally()).then(function () {
    return x;
   });
  } : onFinally, isFunction ? function (e) {
   return promiseResolve(C, onFinally()).then(function () {
    throw e;
   });
  } : onFinally);
 }
});
if (!IS_PURE && isCallable(NativePromiseConstructor)) {
 var method = getBuiltIn('Promise').prototype['finally'];
 if (NativePromisePrototype['finally'] !== method) {
  defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
 }
}

/***/ }),
/* 321 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);__webpack_require__(179);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(197);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFScriptingManager=void 0;__webpack_require__(42);__webpack_require__(88);__webpack_require__(142);__webpack_require__(92);__webpack_require__(95);__webpack_require__(198);__webpack_require__(240);__webpack_require__(252);__webpack_require__(254);__webpack_require__(265);__webpack_require__(267);__webpack_require__(269);__webpack_require__(271);__webpack_require__(273);__webpack_require__(275);__webpack_require__(126);__webpack_require__(283);__webpack_require__(293);__webpack_require__(216);var _ui_utils=__webpack_require__(239);var _pdfjsLib=__webpack_require__(286);function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var _closeCapability=/*#__PURE__*/new WeakMap();var _destroyCapability=/*#__PURE__*/new WeakMap();var _docProperties=/*#__PURE__*/new WeakMap();var _eventBus=/*#__PURE__*/new WeakMap();var _externalServices=/*#__PURE__*/new WeakMap();var _pdfDocument=/*#__PURE__*/new WeakMap();var _pdfViewer=/*#__PURE__*/new WeakMap();var _ready=/*#__PURE__*/new WeakMap();var _sandboxBundleSrc=/*#__PURE__*/new WeakMap();var _scripting=/*#__PURE__*/new WeakMap();var _willPrintCapability=/*#__PURE__*/new WeakMap();var _updateFromSandbox=/*#__PURE__*/new WeakSet();var _dispatchPageOpen=/*#__PURE__*/new WeakSet();var _dispatchPageClose=/*#__PURE__*/new WeakSet();var _initScripting=/*#__PURE__*/new WeakSet();var _destroyScripting=/*#__PURE__*/new WeakSet();var PDFScriptingManager=/*#__PURE__*/function(){function PDFScriptingManager(_ref){var eventBus=_ref.eventBus,_ref$sandboxBundleSrc=_ref.sandboxBundleSrc,sandboxBundleSrc=_ref$sandboxBundleSrc===void 0?null:_ref$sandboxBundleSrc,_ref$externalServices=_ref.externalServices,externalServices=_ref$externalServices===void 0?null:_ref$externalServices,_ref$docProperties=_ref.docProperties,docProperties=_ref$docProperties===void 0?null:_ref$docProperties;_classCallCheck(this,PDFScriptingManager);_classPrivateMethodInitSpec(this,_destroyScripting);_classPrivateMethodInitSpec(this,_initScripting);_classPrivateMethodInitSpec(this,_dispatchPageClose);_classPrivateMethodInitSpec(this,_dispatchPageOpen);_classPrivateMethodInitSpec(this,_updateFromSandbox);_classPrivateFieldInitSpec(this,_closeCapability,{writable:true,value:null});_classPrivateFieldInitSpec(this,_destroyCapability,{writable:true,value:null});_classPrivateFieldInitSpec(this,_docProperties,{writable:true,value:null});_classPrivateFieldInitSpec(this,_eventBus,{writable:true,value:null});_classPrivateFieldInitSpec(this,_externalServices,{writable:true,value:null});_classPrivateFieldInitSpec(this,_pdfDocument,{writable:true,value:null});_classPrivateFieldInitSpec(this,_pdfViewer,{writable:true,value:null});_classPrivateFieldInitSpec(this,_ready,{writable:true,value:false});_classPrivateFieldInitSpec(this,_sandboxBundleSrc,{writable:true,value:null});_classPrivateFieldInitSpec(this,_scripting,{writable:true,value:null});_classPrivateFieldInitSpec(this,_willPrintCapability,{writable:true,value:null});_classPrivateFieldSet(this,_eventBus,eventBus);_classPrivateFieldSet(this,_sandboxBundleSrc,sandboxBundleSrc);_classPrivateFieldSet(this,_externalServices,externalServices);_classPrivateFieldSet(this,_docProperties,docProperties);}_createClass(PDFScriptingManager,[{key:"setViewer",value:function setViewer(pdfViewer){_classPrivateFieldSet(this,_pdfViewer,pdfViewer);}},{key:"setDocument",value:function(){var _setDocument=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(pdfDocument){var _this=this,_classPrivateFieldGet5;var _yield$Promise$all,_yield$Promise$all2,objects,calculationOrder,docActions,_iterator,_step,_step$value,name,listener,docProperties;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!_classPrivateFieldGet(this,_pdfDocument)){_context2.next=3;break;}_context2.next=3;return _classPrivateMethodGet(this,_destroyScripting,_destroyScripting2).call(this);case 3:_classPrivateFieldSet(this,_pdfDocument,pdfDocument);if(pdfDocument){_context2.next=6;break;}return _context2.abrupt("return");case 6:_context2.next=8;return Promise.all([pdfDocument.getFieldObjects(),pdfDocument.getCalculationOrderIds(),pdfDocument.getJSActions()]);case 8:_yield$Promise$all=_context2.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);objects=_yield$Promise$all2[0];calculationOrder=_yield$Promise$all2[1];docActions=_yield$Promise$all2[2];if(!(!objects&&!docActions)){_context2.next=17;break;}_context2.next=16;return _classPrivateMethodGet(this,_destroyScripting,_destroyScripting2).call(this);case 16:return _context2.abrupt("return");case 17:if(!(pdfDocument!==_classPrivateFieldGet(this,_pdfDocument))){_context2.next=19;break;}return _context2.abrupt("return");case 19:_context2.prev=19;_classPrivateFieldSet(this,_scripting,_classPrivateMethodGet(this,_initScripting,_initScripting2).call(this));_context2.next=29;break;case 23:_context2.prev=23;_context2.t0=_context2["catch"](19);globalThis.ngxConsole.error("setDocument: \"".concat(_context2.t0.message,"\"."));_context2.next=28;return _classPrivateMethodGet(this,_destroyScripting,_destroyScripting2).call(this);case 28:return _context2.abrupt("return");case 29:this._internalEvents.set("updatefromsandbox",function(event){if((event===null||event===void 0?void 0:event.source)===window){_classPrivateMethodGet(_this,_updateFromSandbox,_updateFromSandbox2).call(_this,event.detail);}});this._internalEvents.set("dispatcheventinsandbox",function(event){var _classPrivateFieldGet2;(_classPrivateFieldGet2=_classPrivateFieldGet(_this,_scripting))===null||_classPrivateFieldGet2===void 0?void 0:_classPrivateFieldGet2.dispatchEventInSandbox(event.detail);});this._internalEvents.set("pagechanging",function(_ref2){var pageNumber=_ref2.pageNumber,previous=_ref2.previous;if(pageNumber===previous){return;}_classPrivateMethodGet(_this,_dispatchPageClose,_dispatchPageClose2).call(_this,previous);_classPrivateMethodGet(_this,_dispatchPageOpen,_dispatchPageOpen2).call(_this,pageNumber);});this._internalEvents.set("pagerendered",function(_ref3){var pageNumber=_ref3.pageNumber;if(!_this._pageOpenPending.has(pageNumber)){return;}if(pageNumber!==_classPrivateFieldGet(_this,_pdfViewer).currentPageNumber){return;}_classPrivateMethodGet(_this,_dispatchPageOpen,_dispatchPageOpen2).call(_this,pageNumber);});this._internalEvents.set("pagesdestroy",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _classPrivateFieldGet3,_classPrivateFieldGet4;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return _classPrivateMethodGet(_this,_dispatchPageClose,_dispatchPageClose2).call(_this,_classPrivateFieldGet(_this,_pdfViewer).currentPageNumber);case 2:_context.next=4;return(_classPrivateFieldGet3=_classPrivateFieldGet(_this,_scripting))===null||_classPrivateFieldGet3===void 0?void 0:_classPrivateFieldGet3.dispatchEventInSandbox({id:"doc",name:"WillClose"});case 4:(_classPrivateFieldGet4=_classPrivateFieldGet(_this,_closeCapability))===null||_classPrivateFieldGet4===void 0?void 0:_classPrivateFieldGet4.resolve();case 5:case"end":return _context.stop();}},_callee);})));_iterator=_createForOfIteratorHelper(this._internalEvents);try{for(_iterator.s();!(_step=_iterator.n()).done;){_step$value=_slicedToArray(_step.value,2),name=_step$value[0],listener=_step$value[1];_classPrivateFieldGet(this,_eventBus)._on(name,listener);}}catch(err){_iterator.e(err);}finally{_iterator.f();}_context2.prev=36;_context2.next=39;return _classPrivateFieldGet(this,_docProperties).call(this,pdfDocument);case 39:docProperties=_context2.sent;if(!(pdfDocument!==_classPrivateFieldGet(this,_pdfDocument))){_context2.next=42;break;}return _context2.abrupt("return");case 42:_context2.next=44;return _classPrivateFieldGet(this,_scripting).createSandbox({objects:objects,calculationOrder:calculationOrder,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:_objectSpread(_objectSpread({},docProperties),{},{actions:docActions})});case 44:_classPrivateFieldGet(this,_eventBus).dispatch("sandboxcreated",{source:this});_context2.next=53;break;case 47:_context2.prev=47;_context2.t1=_context2["catch"](36);globalThis.ngxConsole.error("setDocument: \"".concat(_context2.t1.message,"\"."));_context2.next=52;return _classPrivateMethodGet(this,_destroyScripting,_destroyScripting2).call(this);case 52:return _context2.abrupt("return");case 53:_context2.next=55;return(_classPrivateFieldGet5=_classPrivateFieldGet(this,_scripting))===null||_classPrivateFieldGet5===void 0?void 0:_classPrivateFieldGet5.dispatchEventInSandbox({id:"doc",name:"Open"});case 55:_context2.next=57;return _classPrivateMethodGet(this,_dispatchPageOpen,_dispatchPageOpen2).call(this,_classPrivateFieldGet(this,_pdfViewer).currentPageNumber,true);case 57:Promise.resolve().then(function(){if(pdfDocument===_classPrivateFieldGet(_this,_pdfDocument)){_classPrivateFieldSet(_this,_ready,true);}});case 58:case"end":return _context2.stop();}},_callee2,this,[[19,23],[36,47]]);}));function setDocument(_x){return _setDocument.apply(this,arguments);}return setDocument;}()},{key:"dispatchWillSave",value:function(){var _dispatchWillSave=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _classPrivateFieldGet6;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:return _context3.abrupt("return",(_classPrivateFieldGet6=_classPrivateFieldGet(this,_scripting))===null||_classPrivateFieldGet6===void 0?void 0:_classPrivateFieldGet6.dispatchEventInSandbox({id:"doc",name:"WillSave"}));case 1:case"end":return _context3.stop();}},_callee3,this);}));function dispatchWillSave(){return _dispatchWillSave.apply(this,arguments);}return dispatchWillSave;}()},{key:"dispatchDidSave",value:function(){var _dispatchDidSave=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _classPrivateFieldGet7;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:return _context4.abrupt("return",(_classPrivateFieldGet7=_classPrivateFieldGet(this,_scripting))===null||_classPrivateFieldGet7===void 0?void 0:_classPrivateFieldGet7.dispatchEventInSandbox({id:"doc",name:"DidSave"}));case 1:case"end":return _context4.stop();}},_callee4,this);}));function dispatchDidSave(){return _dispatchDidSave.apply(this,arguments);}return dispatchDidSave;}()},{key:"dispatchWillPrint",value:function(){var _dispatchWillPrint=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _classPrivateFieldGet8;return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(_classPrivateFieldGet(this,_scripting)){_context5.next=2;break;}return _context5.abrupt("return");case 2:_context5.next=4;return(_classPrivateFieldGet8=_classPrivateFieldGet(this,_willPrintCapability))===null||_classPrivateFieldGet8===void 0?void 0:_classPrivateFieldGet8.promise;case 4:_classPrivateFieldSet(this,_willPrintCapability,new _pdfjsLib.PromiseCapability());_context5.prev=5;_context5.next=8;return _classPrivateFieldGet(this,_scripting).dispatchEventInSandbox({id:"doc",name:"WillPrint"});case 8:_context5.next=15;break;case 10:_context5.prev=10;_context5.t0=_context5["catch"](5);_classPrivateFieldGet(this,_willPrintCapability).resolve();_classPrivateFieldSet(this,_willPrintCapability,null);throw _context5.t0;case 15:_context5.next=17;return _classPrivateFieldGet(this,_willPrintCapability).promise;case 17:case"end":return _context5.stop();}},_callee5,this,[[5,10]]);}));function dispatchWillPrint(){return _dispatchWillPrint.apply(this,arguments);}return dispatchWillPrint;}()},{key:"dispatchDidPrint",value:function(){var _dispatchDidPrint=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _classPrivateFieldGet9;return _regeneratorRuntime().wrap(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:return _context6.abrupt("return",(_classPrivateFieldGet9=_classPrivateFieldGet(this,_scripting))===null||_classPrivateFieldGet9===void 0?void 0:_classPrivateFieldGet9.dispatchEventInSandbox({id:"doc",name:"DidPrint"}));case 1:case"end":return _context6.stop();}},_callee6,this);}));function dispatchDidPrint(){return _dispatchDidPrint.apply(this,arguments);}return dispatchDidPrint;}()},{key:"destroyPromise",get:function get(){var _classPrivateFieldGet10;return((_classPrivateFieldGet10=_classPrivateFieldGet(this,_destroyCapability))===null||_classPrivateFieldGet10===void 0?void 0:_classPrivateFieldGet10.promise)||null;}},{key:"ready",get:function get(){return _classPrivateFieldGet(this,_ready);}},{key:"_internalEvents",get:function get(){return(0,_pdfjsLib.shadow)(this,"_internalEvents",new Map());}},{key:"_pageOpenPending",get:function get(){return(0,_pdfjsLib.shadow)(this,"_pageOpenPending",new Set());}},{key:"_visitedPages",get:function get(){return(0,_pdfjsLib.shadow)(this,"_visitedPages",new Map());}}]);return PDFScriptingManager;}();exports.PDFScriptingManager=PDFScriptingManager;function _updateFromSandbox2(_x2){return _updateFromSandbox3.apply(this,arguments);}function _updateFromSandbox3(){_updateFromSandbox3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(detail){var _classPrivateFieldGet11;var pdfViewer,isInPresentationMode,id,siblings,command,value,modes,ids,_iterator2,_step2,elementId,element,_classPrivateFieldGet12;return _regeneratorRuntime().wrap(function _callee7$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:pdfViewer=_classPrivateFieldGet(this,_pdfViewer);isInPresentationMode=pdfViewer.isInPresentationMode||pdfViewer.isChangingPresentationMode;id=detail.id,siblings=detail.siblings,command=detail.command,value=detail.value;if(id){_context7.next=41;break;}_context7.t0=command;_context7.next=_context7.t0==="clear"?7:_context7.t0==="error"?9:_context7.t0==="layout"?11:_context7.t0==="page-num"?13:_context7.t0==="print"?15:_context7.t0==="println"?19:_context7.t0==="zoom"?21:_context7.t0==="SaveAs"?23:_context7.t0==="FirstPage"?25:_context7.t0==="LastPage"?27:_context7.t0==="NextPage"?29:_context7.t0==="PrevPage"?31:_context7.t0==="ZoomViewIn"?33:_context7.t0==="ZoomViewOut"?35:_context7.t0==="WillPrintFinished"?37:40;break;case 7:globalThis.ngxConsole.clear();return _context7.abrupt("break",40);case 9:globalThis.ngxConsole.error(value);return _context7.abrupt("break",40);case 11:if(!isInPresentationMode){modes=(0,_ui_utils.apiPageLayoutToViewerModes)(value);pdfViewer.spreadMode=modes.spreadMode;}return _context7.abrupt("break",40);case 13:pdfViewer.currentPageNumber=value+1;return _context7.abrupt("break",40);case 15:_context7.next=17;return pdfViewer.pagesPromise;case 17:_classPrivateFieldGet(this,_eventBus).dispatch("print",{source:this});return _context7.abrupt("break",40);case 19:globalThis.ngxConsole.log(value);return _context7.abrupt("break",40);case 21:if(!isInPresentationMode){pdfViewer.currentScaleValue=value;}return _context7.abrupt("break",40);case 23:_classPrivateFieldGet(this,_eventBus).dispatch("download",{source:this});return _context7.abrupt("break",40);case 25:pdfViewer.currentPageNumber=1;return _context7.abrupt("break",40);case 27:pdfViewer.currentPageNumber=pdfViewer.pagesCount;return _context7.abrupt("break",40);case 29:pdfViewer.nextPage();return _context7.abrupt("break",40);case 31:pdfViewer.previousPage();return _context7.abrupt("break",40);case 33:if(!isInPresentationMode){pdfViewer.increaseScale();}return _context7.abrupt("break",40);case 35:if(!isInPresentationMode){pdfViewer.decreaseScale();}return _context7.abrupt("break",40);case 37:(_classPrivateFieldGet11=_classPrivateFieldGet(this,_willPrintCapability))===null||_classPrivateFieldGet11===void 0?void 0:_classPrivateFieldGet11.resolve();_classPrivateFieldSet(this,_willPrintCapability,null);return _context7.abrupt("break",40);case 40:return _context7.abrupt("return");case 41:if(!(isInPresentationMode&&detail.focus)){_context7.next=43;break;}return _context7.abrupt("return");case 43:delete detail.id;delete detail.siblings;ids=siblings?[id].concat(_toConsumableArray(siblings)):[id];_iterator2=_createForOfIteratorHelper(ids);try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){elementId=_step2.value;element=document.querySelector("[data-element-id=\"".concat(elementId,"\"]"));if(element){element.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:detail}));}else{(_classPrivateFieldGet12=_classPrivateFieldGet(this,_pdfDocument))===null||_classPrivateFieldGet12===void 0?void 0:_classPrivateFieldGet12.annotationStorage.setValue(elementId,detail);}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}case 48:case"end":return _context7.stop();}},_callee7,this);}));return _updateFromSandbox3.apply(this,arguments);}function _dispatchPageOpen2(_x3){return _dispatchPageOpen3.apply(this,arguments);}function _dispatchPageOpen3(){_dispatchPageOpen3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(pageNumber){var _this2=this;var initialize,pdfDocument,visitedPages,pageView,actionsPromise,_args9=arguments;return _regeneratorRuntime().wrap(function _callee9$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:initialize=_args9.length>1&&_args9[1]!==undefined?_args9[1]:false;pdfDocument=_classPrivateFieldGet(this,_pdfDocument),visitedPages=this._visitedPages;if(initialize){_classPrivateFieldSet(this,_closeCapability,new _pdfjsLib.PromiseCapability());}if(_classPrivateFieldGet(this,_closeCapability)){_context9.next=5;break;}return _context9.abrupt("return");case 5:pageView=_classPrivateFieldGet(this,_pdfViewer).getPageView(pageNumber-1);if(!((pageView===null||pageView===void 0?void 0:pageView.renderingState)!==_ui_utils.RenderingStates.FINISHED)){_context9.next=9;break;}this._pageOpenPending.add(pageNumber);return _context9.abrupt("return");case 9:this._pageOpenPending.delete(pageNumber);actionsPromise=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _pageView$pdfPage,_classPrivateFieldGet13;var actions;return _regeneratorRuntime().wrap(function _callee8$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return!visitedPages.has(pageNumber)?(_pageView$pdfPage=pageView.pdfPage)===null||_pageView$pdfPage===void 0?void 0:_pageView$pdfPage.getJSActions():null;case 2:actions=_context8.sent;if(!(pdfDocument!==_classPrivateFieldGet(_this2,_pdfDocument))){_context8.next=5;break;}return _context8.abrupt("return");case 5:_context8.next=7;return(_classPrivateFieldGet13=_classPrivateFieldGet(_this2,_scripting))===null||_classPrivateFieldGet13===void 0?void 0:_classPrivateFieldGet13.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:pageNumber,actions:actions});case 7:case"end":return _context8.stop();}},_callee8);}))();visitedPages.set(pageNumber,actionsPromise);case 12:case"end":return _context9.stop();}},_callee9,this);}));return _dispatchPageOpen3.apply(this,arguments);}function _dispatchPageClose2(_x4){return _dispatchPageClose3.apply(this,arguments);}function _dispatchPageClose3(){_dispatchPageClose3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(pageNumber){var _classPrivateFieldGet14;var pdfDocument,visitedPages,actionsPromise;return _regeneratorRuntime().wrap(function _callee10$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:pdfDocument=_classPrivateFieldGet(this,_pdfDocument),visitedPages=this._visitedPages;if(_classPrivateFieldGet(this,_closeCapability)){_context10.next=3;break;}return _context10.abrupt("return");case 3:if(!this._pageOpenPending.has(pageNumber)){_context10.next=5;break;}return _context10.abrupt("return");case 5:actionsPromise=visitedPages.get(pageNumber);if(actionsPromise){_context10.next=8;break;}return _context10.abrupt("return");case 8:visitedPages.set(pageNumber,null);_context10.next=11;return actionsPromise;case 11:if(!(pdfDocument!==_classPrivateFieldGet(this,_pdfDocument))){_context10.next=13;break;}return _context10.abrupt("return");case 13:_context10.next=15;return(_classPrivateFieldGet14=_classPrivateFieldGet(this,_scripting))===null||_classPrivateFieldGet14===void 0?void 0:_classPrivateFieldGet14.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:pageNumber});case 15:case"end":return _context10.stop();}},_callee10,this);}));return _dispatchPageClose3.apply(this,arguments);}function _initScripting2(){_classPrivateFieldSet(this,_destroyCapability,new _pdfjsLib.PromiseCapability());if(_classPrivateFieldGet(this,_scripting)){throw new Error("#initScripting: Scripting already exists.");}return _classPrivateFieldGet(this,_externalServices).createScripting({sandboxBundleSrc:_classPrivateFieldGet(this,_sandboxBundleSrc)});}function _destroyScripting2(){return _destroyScripting3.apply(this,arguments);}function _destroyScripting3(){_destroyScripting3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _classPrivateFieldGet16,_classPrivateFieldGet17;var _classPrivateFieldGet15,_iterator3,_step3,_step3$value,name,listener;return _regeneratorRuntime().wrap(function _callee11$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:if(_classPrivateFieldGet(this,_scripting)){_context11.next=4;break;}_classPrivateFieldSet(this,_pdfDocument,null);(_classPrivateFieldGet15=_classPrivateFieldGet(this,_destroyCapability))===null||_classPrivateFieldGet15===void 0?void 0:_classPrivateFieldGet15.resolve();return _context11.abrupt("return");case 4:if(!_classPrivateFieldGet(this,_closeCapability)){_context11.next=8;break;}_context11.next=7;return Promise.race([_classPrivateFieldGet(this,_closeCapability).promise,new Promise(function(resolve){setTimeout(resolve,1000);})]).catch(function(){});case 7:_classPrivateFieldSet(this,_closeCapability,null);case 8:_classPrivateFieldSet(this,_pdfDocument,null);_context11.prev=9;_context11.next=12;return _classPrivateFieldGet(this,_scripting).destroySandbox();case 12:_context11.next=16;break;case 14:_context11.prev=14;_context11.t0=_context11["catch"](9);case 16:(_classPrivateFieldGet16=_classPrivateFieldGet(this,_willPrintCapability))===null||_classPrivateFieldGet16===void 0?void 0:_classPrivateFieldGet16.reject(new Error("Scripting destroyed."));_classPrivateFieldSet(this,_willPrintCapability,null);_iterator3=_createForOfIteratorHelper(this._internalEvents);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){_step3$value=_slicedToArray(_step3.value,2),name=_step3$value[0],listener=_step3$value[1];_classPrivateFieldGet(this,_eventBus)._off(name,listener);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}this._internalEvents.clear();this._pageOpenPending.clear();this._visitedPages.clear();_classPrivateFieldSet(this,_scripting,null);_classPrivateFieldSet(this,_ready,false);(_classPrivateFieldGet17=_classPrivateFieldGet(this,_destroyCapability))===null||_classPrivateFieldGet17===void 0?void 0:_classPrivateFieldGet17.resolve();case 26:case"end":return _context11.stop();}},_callee11,this,[[9,14]]);}));return _destroyScripting3.apply(this,arguments);}

/***/ }),
/* 322 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFSidebar=void 0;__webpack_require__(198);__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(293);__webpack_require__(142);var _ui_utils=__webpack_require__(239);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var SIDEBAR_WIDTH_VAR="--sidebar-width";var SIDEBAR_MIN_WIDTH=200;var SIDEBAR_RESIZING_CLASS="sidebarResizing";var UI_NOTIFICATION_CLASS="pdfSidebarNotification";var _isRTL=/*#__PURE__*/new WeakMap();var _mouseMoveBound=/*#__PURE__*/new WeakMap();var _mouseUpBound=/*#__PURE__*/new WeakMap();var _outerContainerWidth=/*#__PURE__*/new WeakMap();var _width=/*#__PURE__*/new WeakMap();var _dispatchEvent=/*#__PURE__*/new WeakSet();var _showUINotification=/*#__PURE__*/new WeakSet();var _hideUINotification=/*#__PURE__*/new WeakSet();var _addEventListeners=/*#__PURE__*/new WeakSet();var _updateWidth=/*#__PURE__*/new WeakSet();var _mouseMove=/*#__PURE__*/new WeakSet();var _mouseUp=/*#__PURE__*/new WeakSet();var PDFSidebar=/*#__PURE__*/function(){function PDFSidebar(_ref){var _this=this;var elements=_ref.elements,eventBus=_ref.eventBus,l10n=_ref.l10n;_classCallCheck(this,PDFSidebar);_classPrivateMethodInitSpec(this,_mouseUp);_classPrivateMethodInitSpec(this,_mouseMove);_classPrivateMethodInitSpec(this,_updateWidth);_classPrivateMethodInitSpec(this,_addEventListeners);_classPrivateMethodInitSpec(this,_hideUINotification);_classPrivateMethodInitSpec(this,_showUINotification);_classPrivateMethodInitSpec(this,_dispatchEvent);_classPrivateFieldInitSpec(this,_isRTL,{writable:true,value:false});_classPrivateFieldInitSpec(this,_mouseMoveBound,{writable:true,value:_classPrivateMethodGet(this,_mouseMove,_mouseMove2).bind(this)});_classPrivateFieldInitSpec(this,_mouseUpBound,{writable:true,value:_classPrivateMethodGet(this,_mouseUp,_mouseUp2).bind(this)});_classPrivateFieldInitSpec(this,_outerContainerWidth,{writable:true,value:null});_classPrivateFieldInitSpec(this,_width,{writable:true,value:null});this.isOpen=false;this.active=_ui_utils.SidebarView.THUMBS;this.isInitialViewSet=false;this.isInitialEventDispatched=false;this.onToggled=null;this.onUpdateThumbnails=null;this.outerContainer=elements.outerContainer;this.sidebarContainer=elements.sidebarContainer;this.toggleButton=elements.toggleButton;this.resizer=elements.resizer;this.thumbnailButton=elements.thumbnailButton;this.outlineButton=elements.outlineButton;this.attachmentsButton=elements.attachmentsButton;this.layersButton=elements.layersButton;this.thumbnailView=elements.thumbnailView;this.outlineView=elements.outlineView;this.attachmentsView=elements.attachmentsView;this.layersView=elements.layersView;this._outlineOptionsContainer=elements.outlineOptionsContainer;this._currentOutlineItemButton=elements.currentOutlineItemButton;this.eventBus=eventBus;this.l10n=l10n;l10n.getDirection().then(function(dir){_classPrivateFieldSet(_this,_isRTL,dir==="rtl");});_classPrivateMethodGet(this,_addEventListeners,_addEventListeners2).call(this);}_createClass(PDFSidebar,[{key:"reset",value:function reset(){this.isInitialViewSet=false;this.isInitialEventDispatched=false;_classPrivateMethodGet(this,_hideUINotification,_hideUINotification2).call(this,true);this.switchView(_ui_utils.SidebarView.THUMBS);this.outlineButton.disabled=false;this.attachmentsButton.disabled=false;this.layersButton.disabled=false;this.outlineButton.hidden=false;this.attachmentsButton.hidden=false;this.layersButton.hidden=false;this._currentOutlineItemButton.disabled=true;}},{key:"visibleView",get:function get(){return this.isOpen?this.active:_ui_utils.SidebarView.NONE;}},{key:"setInitialView",value:function setInitialView(){var view=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_ui_utils.SidebarView.NONE;if(this.isInitialViewSet){return;}this.isInitialViewSet=true;if(view===_ui_utils.SidebarView.NONE||view===_ui_utils.SidebarView.UNKNOWN){_classPrivateMethodGet(this,_dispatchEvent,_dispatchEvent2).call(this);return;}this.switchView(view,true);if(!this.isInitialEventDispatched){_classPrivateMethodGet(this,_dispatchEvent,_dispatchEvent2).call(this);}}},{key:"switchView",value:function switchView(view){var forceOpen=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var isViewChanged=view!==this.active;var forceRendering=false;switch(view){case _ui_utils.SidebarView.NONE:if(this.isOpen){this.close();}return;case _ui_utils.SidebarView.THUMBS:if(this.isOpen&&isViewChanged){forceRendering=true;}break;case _ui_utils.SidebarView.OUTLINE:if(this.outlineButton.disabled){return;}break;case _ui_utils.SidebarView.ATTACHMENTS:if(this.attachmentsButton.disabled){return;}break;case _ui_utils.SidebarView.LAYERS:if(this.layersButton.disabled){return;}break;default:globalThis.ngxConsole.error("PDFSidebar.switchView: \"".concat(view,"\" is not a valid view."));return;}this.active=view;(0,_ui_utils.toggleCheckedBtn)(this.thumbnailButton,view===_ui_utils.SidebarView.THUMBS,this.thumbnailView);(0,_ui_utils.toggleCheckedBtn)(this.outlineButton,view===_ui_utils.SidebarView.OUTLINE,this.outlineView);(0,_ui_utils.toggleCheckedBtn)(this.attachmentsButton,view===_ui_utils.SidebarView.ATTACHMENTS,this.attachmentsView);(0,_ui_utils.toggleCheckedBtn)(this.layersButton,view===_ui_utils.SidebarView.LAYERS,this.layersView);this._outlineOptionsContainer.classList.toggle("hidden",view!==_ui_utils.SidebarView.OUTLINE);if(forceOpen&&!this.isOpen){this.open();return;}if(forceRendering){this.onUpdateThumbnails();this.onToggled();}if(isViewChanged){_classPrivateMethodGet(this,_dispatchEvent,_dispatchEvent2).call(this);}}},{key:"open",value:function open(){if(this.isOpen){return;}this.isOpen=true;(0,_ui_utils.toggleExpandedBtn)(this.toggleButton,true);this.outerContainer.classList.add("sidebarMoving","sidebarOpen");if(this.active===_ui_utils.SidebarView.THUMBS){this.onUpdateThumbnails();}this.onToggled();_classPrivateMethodGet(this,_dispatchEvent,_dispatchEvent2).call(this);_classPrivateMethodGet(this,_hideUINotification,_hideUINotification2).call(this);}},{key:"close",value:function close(){if(!this.isOpen){return;}this.isOpen=false;(0,_ui_utils.toggleExpandedBtn)(this.toggleButton,false);this.outerContainer.classList.add("sidebarMoving");this.outerContainer.classList.remove("sidebarOpen");this.onToggled();_classPrivateMethodGet(this,_dispatchEvent,_dispatchEvent2).call(this);}},{key:"toggle",value:function toggle(){if(this.isOpen){this.close();}else{this.open();}}},{key:"outerContainerWidth",get:function get(){return _classPrivateFieldGet(this,_outerContainerWidth)||_classPrivateFieldSet(this,_outerContainerWidth,this.outerContainer.clientWidth);}}]);return PDFSidebar;}();exports.PDFSidebar=PDFSidebar;function _dispatchEvent2(){if(this.isInitialViewSet){this.isInitialEventDispatched||(this.isInitialEventDispatched=true);}this.eventBus.dispatch("sidebarviewchanged",{source:this,view:this.visibleView});}function _showUINotification2(){this.toggleButton.setAttribute("data-l10n-id","toggle_sidebar_notification2");this.l10n.translate(this.toggleButton);if(!this.isOpen){this.toggleButton.classList.add(UI_NOTIFICATION_CLASS);}}function _hideUINotification2(){var reset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.isOpen||reset){this.toggleButton.classList.remove(UI_NOTIFICATION_CLASS);}if(reset){this.toggleButton.setAttribute("data-l10n-id","toggle_sidebar");this.l10n.translate(this.toggleButton);}}function _addEventListeners2(){var _this2=this;this.sidebarContainer.addEventListener("transitionend",function(evt){if(evt.target===_this2.sidebarContainer){_this2.outerContainer.classList.remove("sidebarMoving");}});this.toggleButton.addEventListener("click",function(){_this2.toggle();});this.thumbnailButton.addEventListener("click",function(){_this2.switchView(_ui_utils.SidebarView.THUMBS);});this.outlineButton.addEventListener("click",function(){_this2.switchView(_ui_utils.SidebarView.OUTLINE);});this.outlineButton.addEventListener("dblclick",function(){_this2.eventBus.dispatch("toggleoutlinetree",{source:_this2});});this.attachmentsButton.addEventListener("click",function(){_this2.switchView(_ui_utils.SidebarView.ATTACHMENTS);});this.layersButton.addEventListener("click",function(){_this2.switchView(_ui_utils.SidebarView.LAYERS);});this.layersButton.addEventListener("dblclick",function(){_this2.eventBus.dispatch("resetlayers",{source:_this2});});this._currentOutlineItemButton.addEventListener("click",function(){_this2.eventBus.dispatch("currentoutlineitem",{source:_this2});});var onTreeLoaded=function onTreeLoaded(count,button,view){button.disabled=!count;button.hidden=!count;if(count){_classPrivateMethodGet(_this2,_showUINotification,_showUINotification2).call(_this2);}else if(_this2.active===view){_this2.switchView(_ui_utils.SidebarView.THUMBS);}};this.eventBus._on("outlineloaded",function(evt){onTreeLoaded(evt.outlineCount,_this2.outlineButton,_ui_utils.SidebarView.OUTLINE);if(evt.enableCurrentOutlineItemButton){if(evt.currentOutlineItemPromise){evt.currentOutlineItemPromise.then(function(enabled){if(!_this2.isInitialViewSet){return;}_this2._currentOutlineItemButton.disabled=!enabled;});}}});this.eventBus._on("attachmentsloaded",function(evt){onTreeLoaded(evt.attachmentsCount,_this2.attachmentsButton,_ui_utils.SidebarView.ATTACHMENTS);});this.eventBus._on("layersloaded",function(evt){onTreeLoaded(evt.layersCount,_this2.layersButton,_ui_utils.SidebarView.LAYERS);});this.eventBus._on("presentationmodechanged",function(evt){if(evt.state===_ui_utils.PresentationModeState.NORMAL&&_this2.visibleView===_ui_utils.SidebarView.THUMBS){_this2.onUpdateThumbnails();}});this.resizer.addEventListener("mousedown",function(evt){if(evt.button!==0){return;}_this2.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);window.addEventListener("mousemove",_classPrivateFieldGet(_this2,_mouseMoveBound));window.addEventListener("mouseup",_classPrivateFieldGet(_this2,_mouseUpBound));});this.eventBus._on("resize",function(evt){if(evt.source!==window){return;}_classPrivateFieldSet(_this2,_outerContainerWidth,null);if(!_classPrivateFieldGet(_this2,_width)){return;}if(!_this2.isOpen){_classPrivateMethodGet(_this2,_updateWidth,_updateWidth2).call(_this2,_classPrivateFieldGet(_this2,_width));return;}_this2.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);var updated=_classPrivateMethodGet(_this2,_updateWidth,_updateWidth2).call(_this2,_classPrivateFieldGet(_this2,_width));Promise.resolve().then(function(){_this2.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS);if(updated){_this2.eventBus.dispatch("resize",{source:_this2});}});});}function _updateWidth2(){var width=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var maxWidth=Math.floor(this.outerContainerWidth/2);if(width>maxWidth){width=maxWidth;}if(width<SIDEBAR_MIN_WIDTH){width=SIDEBAR_MIN_WIDTH;}if(width===_classPrivateFieldGet(this,_width)){return false;}_classPrivateFieldSet(this,_width,width);_ui_utils.docStyle.setProperty(SIDEBAR_WIDTH_VAR,"".concat(width,"px"));return true;}function _mouseMove2(evt){var width=evt.clientX;if(_classPrivateFieldGet(this,_isRTL)){width=this.outerContainerWidth-width;}_classPrivateMethodGet(this,_updateWidth,_updateWidth2).call(this,width);}function _mouseUp2(evt){this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS);this.eventBus.dispatch("resize",{source:this});window.removeEventListener("mousemove",_classPrivateFieldGet(this,_mouseMoveBound));window.removeEventListener("mouseup",_classPrivateFieldGet(this,_mouseUpBound));}

/***/ }),
/* 323 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(142);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFThumbnailViewer=void 0;__webpack_require__(198);__webpack_require__(126);__webpack_require__(179);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _ui_utils=__webpack_require__(239);var _pdf_thumbnail_view=__webpack_require__(324);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var THUMBNAIL_SCROLL_MARGIN=-19;var THUMBNAIL_SELECTED_CLASS="selected";var _ensurePdfPageLoaded=/*#__PURE__*/new WeakSet();var _getScrollAhead=/*#__PURE__*/new WeakSet();var PDFThumbnailViewer=/*#__PURE__*/function(){function PDFThumbnailViewer(_ref){var container=_ref.container,eventBus=_ref.eventBus,linkService=_ref.linkService,renderingQueue=_ref.renderingQueue,l10n=_ref.l10n,pageColors=_ref.pageColors;_classCallCheck(this,PDFThumbnailViewer);_classPrivateMethodInitSpec(this,_getScrollAhead);_classPrivateMethodInitSpec(this,_ensurePdfPageLoaded);this.container=container;this.eventBus=eventBus;this.linkService=linkService;this.renderingQueue=renderingQueue;this.l10n=l10n;this.pageColors=pageColors||null;this.scroll=(0,_ui_utils.watchScroll)(this.container,this._scrollUpdated.bind(this));this._resetView();}_createClass(PDFThumbnailViewer,[{key:"_scrollUpdated",value:function _scrollUpdated(){this.renderingQueue.renderHighestPriority();}},{key:"getThumbnail",value:function getThumbnail(index){return this._thumbnails[index];}},{key:"_getVisibleThumbs",value:function _getVisibleThumbs(){return(0,_ui_utils.getVisibleElements)({scrollEl:this.container,views:this._thumbnails});}},{key:"scrollThumbnailIntoView",value:function scrollThumbnailIntoView(pageNumber){if(!this.pdfDocument){return;}var thumbnailView=this._thumbnails[pageNumber-1];if(!thumbnailView){globalThis.ngxConsole.error('scrollThumbnailIntoView: Invalid "pageNumber" parameter.');return;}if(pageNumber!==this._currentPageNumber){var prevThumbnailView=this._thumbnails[this._currentPageNumber-1];prevThumbnailView.div.classList.remove(THUMBNAIL_SELECTED_CLASS);thumbnailView.div.classList.add(THUMBNAIL_SELECTED_CLASS);}var _this$_getVisibleThum=this._getVisibleThumbs(),first=_this$_getVisibleThum.first,last=_this$_getVisibleThum.last,views=_this$_getVisibleThum.views;if(views.length>0){var shouldScroll=false;if(pageNumber<=first.id||pageNumber>=last.id){shouldScroll=true;}else{var _iterator=_createForOfIteratorHelper(views),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_step.value,id=_step$value.id,percent=_step$value.percent;if(id!==pageNumber){continue;}shouldScroll=percent<100;break;}}catch(err){_iterator.e(err);}finally{_iterator.f();}}if(shouldScroll){(0,_ui_utils.scrollIntoView)(thumbnailView.div,{top:THUMBNAIL_SCROLL_MARGIN});}}this._currentPageNumber=pageNumber;}},{key:"pagesRotation",get:function get(){return this._pagesRotation;},set:function set(rotation){if(!(0,_ui_utils.isValidRotation)(rotation)){throw new Error("Invalid thumbnails rotation angle.");}if(!this.pdfDocument){return;}if(this._pagesRotation===rotation){return;}this._pagesRotation=rotation;var updateArgs={rotation:rotation};var _iterator2=_createForOfIteratorHelper(this._thumbnails),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var thumbnail=_step2.value;thumbnail.update(updateArgs);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}},{key:"cleanup",value:function cleanup(){var _iterator3=_createForOfIteratorHelper(this._thumbnails),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var thumbnail=_step3.value;if(thumbnail.renderingState!==_ui_utils.RenderingStates.FINISHED){thumbnail.reset();}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}_pdf_thumbnail_view.TempImageFactory.destroyCanvas();}},{key:"_resetView",value:function _resetView(){this._thumbnails=[];this._currentPageNumber=1;this._pageLabels=null;this._pagesRotation=0;this.container.textContent="";}},{key:"setDocument",value:function setDocument(pdfDocument){var _this=this;this.initialized=false;if(this.pdfDocument){this._cancelRendering();this._resetView();}this.pdfDocument=pdfDocument;if(!pdfDocument){return;}if(this.initialized){return;}this.initialized=true;var firstPagePromise=pdfDocument.getPage(1);var optionalContentConfigPromise=pdfDocument.getOptionalContentConfig();firstPagePromise.then(function(firstPdfPage){var _this$_thumbnails$;var pagesCount=pdfDocument.numPages;var viewport=firstPdfPage.getViewport({scale:1});for(var pageNum=1;pageNum<=pagesCount;++pageNum){var thumbnail=new _pdf_thumbnail_view.PDFThumbnailView(_defineProperty({container:_this.container,eventBus:_this.eventBus,id:pageNum,defaultViewport:viewport.clone(),optionalContentConfigPromise:optionalContentConfigPromise,linkService:_this.linkService,renderingQueue:_this.renderingQueue,l10n:_this.l10n,pageColors:_this.pageColors},"eventBus",_this.eventBus));_this._thumbnails.push(thumbnail);}(_this$_thumbnails$=_this._thumbnails[0])===null||_this$_thumbnails$===void 0?void 0:_this$_thumbnails$.setPdfPage(firstPdfPage);var thumbnailView=_this._thumbnails[_this._currentPageNumber-1];thumbnailView.div.classList.add(THUMBNAIL_SELECTED_CLASS);}).catch(function(reason){globalThis.ngxConsole.error("Unable to initialize thumbnail viewer",reason);});}},{key:"_cancelRendering",value:function _cancelRendering(){var _iterator4=_createForOfIteratorHelper(this._thumbnails),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var thumbnail=_step4.value;thumbnail.cancelRendering();}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}},{key:"setPageLabels",value:function setPageLabels(labels){if(!this.pdfDocument){return;}if(!labels){this._pageLabels=null;}else if(!(Array.isArray(labels)&&this.pdfDocument.numPages===labels.length)){this._pageLabels=null;globalThis.ngxConsole.error("PDFThumbnailViewer_setPageLabels: Invalid page labels.");}else{this._pageLabels=labels;}for(var i=0,ii=this._thumbnails.length;i<ii;i++){var _this$_pageLabels$i,_this$_pageLabels;this._thumbnails[i].setPageLabel((_this$_pageLabels$i=(_this$_pageLabels=this._pageLabels)===null||_this$_pageLabels===void 0?void 0:_this$_pageLabels[i])!==null&&_this$_pageLabels$i!==void 0?_this$_pageLabels$i:null);}}},{key:"forceRendering",value:function forceRendering(){var _this2=this;var visibleThumbs=this._getVisibleThumbs();var scrollAhead=_classPrivateMethodGet(this,_getScrollAhead,_getScrollAhead2).call(this,visibleThumbs);var thumbView=this.renderingQueue.getHighestPriority(visibleThumbs,this._thumbnails,scrollAhead);if(thumbView){_classPrivateMethodGet(this,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(this,thumbView).then(function(){_this2.renderingQueue.renderView(thumbView);});return true;}return false;}},{key:"stopRendering",value:function stopRendering(){this._cancelRendering();}}]);return PDFThumbnailViewer;}();exports.PDFThumbnailViewer=PDFThumbnailViewer;function _ensurePdfPageLoaded2(_x){return _ensurePdfPageLoaded3.apply(this,arguments);}function _ensurePdfPageLoaded3(){_ensurePdfPageLoaded3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(thumbView){var pdfPage;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!thumbView.pdfPage){_context.next=2;break;}return _context.abrupt("return",thumbView.pdfPage);case 2:_context.prev=2;_context.next=5;return this.pdfDocument.getPage(thumbView.id);case 5:pdfPage=_context.sent;if(!thumbView.pdfPage){thumbView.setPdfPage(pdfPage);}return _context.abrupt("return",pdfPage);case 10:_context.prev=10;_context.t0=_context["catch"](2);globalThis.ngxConsole.error("Unable to get page for thumb view",_context.t0);return _context.abrupt("return",null);case 14:case"end":return _context.stop();}},_callee,this,[[2,10]]);}));return _ensurePdfPageLoaded3.apply(this,arguments);}function _getScrollAhead2(visible){var _visible$first,_visible$last;if(((_visible$first=visible.first)===null||_visible$first===void 0?void 0:_visible$first.id)===1){return true;}else if(((_visible$last=visible.last)===null||_visible$last===void 0?void 0:_visible$last.id)===this._thumbnails.length){return false;}return this.scroll.down;}

/***/ }),
/* 324 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.TempImageFactory=exports.PDFThumbnailView=void 0;__webpack_require__(126);__webpack_require__(198);__webpack_require__(88);__webpack_require__(142);__webpack_require__(320);__webpack_require__(42);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _ui_utils=__webpack_require__(239);var _pdfjsLib=__webpack_require__(286);function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classStaticPrivateFieldSpecSet(receiver,classConstructor,descriptor,value){_classCheckPrivateStaticAccess(receiver,classConstructor);_classCheckPrivateStaticFieldDescriptor(descriptor,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classStaticPrivateFieldSpecGet(receiver,classConstructor,descriptor){_classCheckPrivateStaticAccess(receiver,classConstructor);_classCheckPrivateStaticFieldDescriptor(descriptor,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classCheckPrivateStaticFieldDescriptor(descriptor,action){if(descriptor===undefined){throw new TypeError("attempted to "+action+" private static field before its declaration");}}function _classCheckPrivateStaticAccess(receiver,classConstructor){if(receiver!==classConstructor){throw new TypeError("Private static access of wrong provenance");}}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var DRAW_UPSCALE_FACTOR=2;var MAX_NUM_SCALING_STEPS=3;var THUMBNAIL_WIDTH=98;var TempImageFactory=/*#__PURE__*/function(){function TempImageFactory(){_classCallCheck(this,TempImageFactory);}_createClass(TempImageFactory,null,[{key:"getCanvas",value:function getCanvas(width,height){var tempCanvas=_classStaticPrivateFieldSpecGet(this,TempImageFactory,_tempCanvas)||_classStaticPrivateFieldSpecSet(this,TempImageFactory,_tempCanvas,document.createElement("canvas"));tempCanvas.width=width;tempCanvas.height=height;var options1=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true,alpha:false}:{alpha:false};var options2=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true}:undefined;var ctx=tempCanvas.getContext("2d",options1);ctx.save();ctx.fillStyle="rgb(255, 255, 255)";ctx.fillRect(0,0,width,height);ctx.restore();return[tempCanvas,tempCanvas.getContext("2d",options2)];}},{key:"destroyCanvas",value:function destroyCanvas(){var tempCanvas=_classStaticPrivateFieldSpecGet(this,TempImageFactory,_tempCanvas);if(tempCanvas){tempCanvas.width=0;tempCanvas.height=0;}_classStaticPrivateFieldSpecSet(this,TempImageFactory,_tempCanvas,null);}}]);return TempImageFactory;}();exports.TempImageFactory=TempImageFactory;var _tempCanvas={writable:true,value:null};var _updateDims=/*#__PURE__*/new WeakSet();var _finishRenderTask=/*#__PURE__*/new WeakSet();var PDFThumbnailView=/*#__PURE__*/function(){function PDFThumbnailView(_ref){var container=_ref.container,eventBus=_ref.eventBus,id=_ref.id,defaultViewport=_ref.defaultViewport,optionalContentConfigPromise=_ref.optionalContentConfigPromise,linkService=_ref.linkService,renderingQueue=_ref.renderingQueue,l10n=_ref.l10n,pageColors=_ref.pageColors;_classCallCheck(this,PDFThumbnailView);_classPrivateMethodInitSpec(this,_finishRenderTask);_classPrivateMethodInitSpec(this,_updateDims);this.id=id;this.renderingId="thumbnail"+id;this.pageLabel=null;this.pdfPage=null;this.rotation=0;this.viewport=defaultViewport;this.pdfPageRotate=defaultViewport.rotation;this._optionalContentConfigPromise=optionalContentConfigPromise||null;this.pageColors=pageColors||null;this.eventBus=eventBus;this.linkService=linkService;this.renderingQueue=renderingQueue;this.eventBus=eventBus;this.renderTask=null;this.renderingState=_ui_utils.RenderingStates.INITIAL;this.resume=null;this.l10n=l10n;if(window.pdfThumbnailGenerator){this._placeholderImg=window.pdfThumbnailGenerator(this,linkService,id,container,this._thumbPageTitle);}else{this.createThumbnail(this,linkService,id,container,this._thumbPageTitle);}}_createClass(PDFThumbnailView,[{key:"createThumbnail",value:function createThumbnail(pdfThumbnailView,linkService,id,container,thumbPageTitlePromise){var anchor=document.createElement("a");anchor.href=linkService.getAnchorUrl("#page="+id);this._thumbPageTitle.then(function(msg){anchor.title=msg;});anchor.onclick=function(){linkService.goToPage(id);return false;};this.anchor=anchor;var div=document.createElement("div");div.className="thumbnail";div.setAttribute("data-page-number",this.id);this.div=div;_classPrivateMethodGet(this,_updateDims,_updateDims2).call(this);var img=document.createElement("div");img.className="thumbnailImage";this._placeholderImg=img;div.append(img);anchor.append(div);container.append(anchor);}},{key:"setPdfPage",value:function setPdfPage(pdfPage){this.pdfPage=pdfPage;this.pdfPageRotate=pdfPage.rotate;var totalRotation=(this.rotation+this.pdfPageRotate)%360;this.viewport=pdfPage.getViewport({scale:1,rotation:totalRotation});this.reset();}},{key:"reset",value:function reset(){var _this$image;this.cancelRendering();this.renderingState=_ui_utils.RenderingStates.INITIAL;this.div.removeAttribute("data-loaded");(_this$image=this.image)===null||_this$image===void 0?void 0:_this$image.replaceWith(this._placeholderImg);_classPrivateMethodGet(this,_updateDims,_updateDims2).call(this);if(this.image){this.image.removeAttribute("src");delete this.image;}}},{key:"update",value:function update(_ref2){var _ref2$rotation=_ref2.rotation,rotation=_ref2$rotation===void 0?null:_ref2$rotation;if(typeof rotation==="number"){this.rotation=rotation;}var totalRotation=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:1,rotation:totalRotation});this.reset();}},{key:"cancelRendering",value:function cancelRendering(){if(this.renderTask){this.renderTask.cancel();this.renderTask=null;}this.resume=null;}},{key:"_getPageDrawContext",value:function _getPageDrawContext(){var upscaleFactor=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var canvas=document.createElement("canvas");var options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true,alpha:false}:{alpha:false};var ctx=canvas.getContext("2d",options);var outputScale=new _ui_utils.OutputScale();canvas.width=upscaleFactor*this.canvasWidth*outputScale.sx|0;canvas.height=upscaleFactor*this.canvasHeight*outputScale.sy|0;var transform=outputScale.scaled?[outputScale.sx,0,0,outputScale.sy,0,0]:null;return{ctx:ctx,canvas:canvas,transform:transform};}},{key:"_convertCanvasToImage",value:function _convertCanvasToImage(canvas){if(this.renderingState!==_ui_utils.RenderingStates.FINISHED){throw new Error("_convertCanvasToImage: Rendering has not finished.");}var reducedCanvas=this._reduceImage(canvas);var image=document.createElement("img");image.className="thumbnailImage";this._thumbPageCanvas.then(function(msg){image.setAttribute("aria-label",msg);});image.src=reducedCanvas.toDataURL();this.image=image;this.div.setAttribute("data-loaded",true);this._placeholderImg.replaceWith(image);reducedCanvas.width=0;reducedCanvas.height=0;}},{key:"draw",value:function(){var _draw=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _this=this;var pdfPage,_this$_getPageDrawCon,ctx,canvas,transform,drawViewport,renderContinueCallback,renderContext,renderTask,resultPromise;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!(this.renderingState!==_ui_utils.RenderingStates.INITIAL)){_context.next=3;break;}globalThis.ngxConsole.error("Must be in new state before drawing");return _context.abrupt("return",undefined);case 3:pdfPage=this.pdfPage;if(pdfPage){_context.next=7;break;}this.renderingState=_ui_utils.RenderingStates.FINISHED;throw new Error("pdfPage is not loaded");case 7:this.renderingState=_ui_utils.RenderingStates.RUNNING;_this$_getPageDrawCon=this._getPageDrawContext(DRAW_UPSCALE_FACTOR),ctx=_this$_getPageDrawCon.ctx,canvas=_this$_getPageDrawCon.canvas,transform=_this$_getPageDrawCon.transform;drawViewport=this.viewport.clone({scale:DRAW_UPSCALE_FACTOR*this.scale});renderContinueCallback=function renderContinueCallback(cont){if(!_this.renderingQueue.isHighestPriority(_this)){_this.renderingState=_ui_utils.RenderingStates.PAUSED;_this.resume=function(){_this.renderingState=_ui_utils.RenderingStates.RUNNING;cont();};return;}cont();};renderContext={canvasContext:ctx,transform:transform,viewport:drawViewport,optionalContentConfigPromise:this._optionalContentConfigPromise,pageColors:this.pageColors};renderTask=this.renderTask=pdfPage.render(renderContext);renderTask.onContinue=renderContinueCallback;resultPromise=renderTask.promise.then(function(){return _classPrivateMethodGet(_this,_finishRenderTask,_finishRenderTask2).call(_this,renderTask,canvas);},function(error){return _classPrivateMethodGet(_this,_finishRenderTask,_finishRenderTask2).call(_this,renderTask,canvas,error);});resultPromise.finally(function(){canvas.width=0;canvas.height=0;_this.eventBus.dispatch("thumbnailrendered",{source:_this,pageNumber:_this.id,pdfPage:_this.pdfPage});});return _context.abrupt("return",resultPromise);case 17:case"end":return _context.stop();}},_callee,this);}));function draw(){return _draw.apply(this,arguments);}return draw;}()},{key:"setImage",value:function setImage(pageView){if(this.renderingState!==_ui_utils.RenderingStates.INITIAL){return;}var canvas=pageView.thumbnailCanvas,pdfPage=pageView.pdfPage,scale=pageView.scale;if(!canvas){return;}if(!this.pdfPage){this.setPdfPage(pdfPage);}if(scale<this.scale){return;}this.renderingState=_ui_utils.RenderingStates.FINISHED;this._convertCanvasToImage(canvas);}},{key:"_reduceImage",value:function _reduceImage(img){var _this$_getPageDrawCon2=this._getPageDrawContext(),ctx=_this$_getPageDrawCon2.ctx,canvas=_this$_getPageDrawCon2.canvas;if(img.width<=2*canvas.width){ctx.drawImage(img,0,0,img.width,img.height,0,0,canvas.width,canvas.height);return canvas;}var reducedWidth=canvas.width<<MAX_NUM_SCALING_STEPS;var reducedHeight=canvas.height<<MAX_NUM_SCALING_STEPS;var _TempImageFactory$get=TempImageFactory.getCanvas(reducedWidth,reducedHeight),_TempImageFactory$get2=_slicedToArray(_TempImageFactory$get,2),reducedImage=_TempImageFactory$get2[0],reducedImageCtx=_TempImageFactory$get2[1];while(reducedWidth>img.width||reducedHeight>img.height){reducedWidth>>=1;reducedHeight>>=1;}reducedImageCtx.drawImage(img,0,0,img.width,img.height,0,0,reducedWidth,reducedHeight);while(reducedWidth>2*canvas.width){reducedImageCtx.drawImage(reducedImage,0,0,reducedWidth,reducedHeight,0,0,reducedWidth>>1,reducedHeight>>1);reducedWidth>>=1;reducedHeight>>=1;}ctx.drawImage(reducedImage,0,0,reducedWidth,reducedHeight,0,0,canvas.width,canvas.height);return canvas;}},{key:"_thumbPageTitle",get:function get(){var _this$pageLabel;return this.l10n.get("thumb_page_title",{page:(_this$pageLabel=this.pageLabel)!==null&&_this$pageLabel!==void 0?_this$pageLabel:this.id});}},{key:"_thumbPageCanvas",get:function get(){var _this$pageLabel2;return this.l10n.get("thumb_page_canvas",{page:(_this$pageLabel2=this.pageLabel)!==null&&_this$pageLabel2!==void 0?_this$pageLabel2:this.id});}},{key:"setPageLabel",value:function setPageLabel(label){var _this2=this;this.pageLabel=typeof label==="string"?label:null;this._thumbPageTitle.then(function(msg){_this2.anchor.title=msg;});if(this.renderingState!==_ui_utils.RenderingStates.FINISHED){return;}this._thumbPageCanvas.then(function(msg){var _this2$image;(_this2$image=_this2.image)===null||_this2$image===void 0?void 0:_this2$image.setAttribute("aria-label",msg);});}}]);return PDFThumbnailView;}();exports.PDFThumbnailView=PDFThumbnailView;function _updateDims2(){var _this$viewport=this.viewport,width=_this$viewport.width,height=_this$viewport.height;var ratio=width/height;this.canvasWidth=THUMBNAIL_WIDTH;this.canvasHeight=this.canvasWidth/ratio|0;this.scale=this.canvasWidth/width;var style=this.div.style;style.setProperty("--thumbnail-width","".concat(this.canvasWidth,"px"));style.setProperty("--thumbnail-height","".concat(this.canvasHeight,"px"));}function _finishRenderTask2(_x2,_x3){return _finishRenderTask3.apply(this,arguments);}function _finishRenderTask3(){_finishRenderTask3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(renderTask,canvas){var error,_args2=arguments;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:error=_args2.length>2&&_args2[2]!==undefined?_args2[2]:null;if(renderTask===this.renderTask){this.renderTask=null;}if(!(error instanceof _pdfjsLib.RenderingCancelledException)){_context2.next=4;break;}return _context2.abrupt("return");case 4:this.renderingState=_ui_utils.RenderingStates.FINISHED;this._convertCanvasToImage(canvas);if(!error){_context2.next=8;break;}throw error;case 8:this.eventBus.dispatch("thumbnailRendered",this.id);case 9:case"end":return _context2.stop();}},_callee2,this);}));return _finishRenderTask3.apply(this,arguments);}

/***/ }),
/* 325 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(185);__webpack_require__(192);__webpack_require__(219);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(197);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PagesCountLimit=exports.PDFViewer=exports.PDFPageViewBuffer=void 0;__webpack_require__(199);__webpack_require__(200);__webpack_require__(204);__webpack_require__(42);__webpack_require__(88);__webpack_require__(252);__webpack_require__(92);__webpack_require__(254);__webpack_require__(265);__webpack_require__(267);__webpack_require__(269);__webpack_require__(271);__webpack_require__(273);__webpack_require__(275);__webpack_require__(95);__webpack_require__(126);__webpack_require__(216);__webpack_require__(138);__webpack_require__(198);__webpack_require__(182);__webpack_require__(326);__webpack_require__(327);__webpack_require__(179);__webpack_require__(142);__webpack_require__(311);__webpack_require__(206);__webpack_require__(248);__webpack_require__(312);__webpack_require__(240);__webpack_require__(283);__webpack_require__(293);__webpack_require__(1);__webpack_require__(98);__webpack_require__(120);__webpack_require__(320);__webpack_require__(222);var _pdfjsLib=__webpack_require__(286);var _ui_utils=__webpack_require__(239);var _l10n_utils=__webpack_require__(328);var _pageFlipModule=__webpack_require__(329);var _pdf_page_view=__webpack_require__(332);var _pdf_rendering_queue=__webpack_require__(319);var _pdf_link_service=__webpack_require__(291);var _Symbol$iterator;function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var DEFAULT_CACHE_SIZE=10;var PagesCountLimit={FORCE_SCROLL_MODE_PAGE:15000,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};exports.PagesCountLimit=PagesCountLimit;function isValidAnnotationEditorMode(mode){return Object.values(_pdfjsLib.AnnotationEditorType).includes(mode)&&mode!==_pdfjsLib.AnnotationEditorType.DISABLE;}var _buf=/*#__PURE__*/new WeakMap();var _size=/*#__PURE__*/new WeakMap();var _destroyFirstView=/*#__PURE__*/new WeakSet();_Symbol$iterator=Symbol.iterator;var PDFPageViewBuffer=/*#__PURE__*/function(){function PDFPageViewBuffer(size){_classCallCheck(this,PDFPageViewBuffer);_classPrivateMethodInitSpec(this,_destroyFirstView);_classPrivateFieldInitSpec(this,_buf,{writable:true,value:new Set()});_classPrivateFieldInitSpec(this,_size,{writable:true,value:0});_classPrivateFieldSet(this,_size,size);}_createClass(PDFPageViewBuffer,[{key:"push",value:function push(view){var buf=_classPrivateFieldGet(this,_buf);if(buf.has(view)){buf.delete(view);}buf.add(view);if(buf.size>_classPrivateFieldGet(this,_size)){_classPrivateMethodGet(this,_destroyFirstView,_destroyFirstView2).call(this);}}},{key:"resize",value:function resize(newSize){var idsToKeep=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;_classPrivateFieldSet(this,_size,newSize);var buf=_classPrivateFieldGet(this,_buf);if(idsToKeep){var ii=buf.size;var i=1;var _iterator=_createForOfIteratorHelper(buf),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var view=_step.value;if(idsToKeep.has(view.id)){buf.delete(view);buf.add(view);}if(++i>ii){break;}}}catch(err){_iterator.e(err);}finally{_iterator.f();}}while(buf.size>_classPrivateFieldGet(this,_size)){_classPrivateMethodGet(this,_destroyFirstView,_destroyFirstView2).call(this);}}},{key:"has",value:function has(view){return _classPrivateFieldGet(this,_buf).has(view);}},{key:_Symbol$iterator,value:function value(){return _classPrivateFieldGet(this,_buf).keys();}}]);return PDFPageViewBuffer;}();exports.PDFPageViewBuffer=PDFPageViewBuffer;function _destroyFirstView2(){var firstView=_classPrivateFieldGet(this,_buf).keys().next().value;firstView===null||firstView===void 0?void 0:firstView.destroy();_classPrivateFieldGet(this,_buf).delete(firstView);}var _buffer=/*#__PURE__*/new WeakMap();var _annotationEditorMode=/*#__PURE__*/new WeakMap();var _annotationEditorUIManager=/*#__PURE__*/new WeakMap();var _annotationMode=/*#__PURE__*/new WeakMap();var _containerTopLeft=/*#__PURE__*/new WeakMap();var _copyCallbackBound=/*#__PURE__*/new WeakMap();var _enablePermissions=/*#__PURE__*/new WeakMap();var _getAllTextInProgress=/*#__PURE__*/new WeakMap();var _hiddenCopyElement=/*#__PURE__*/new WeakMap();var _interruptCopyCondition=/*#__PURE__*/new WeakMap();var _previousContainerHeight=/*#__PURE__*/new WeakMap();var _resizeObserver=/*#__PURE__*/new WeakMap();var _scrollModePageState=/*#__PURE__*/new WeakMap();var _onVisibilityChange=/*#__PURE__*/new WeakMap();var _scaleTimeoutId=/*#__PURE__*/new WeakMap();var _textLayerMode=/*#__PURE__*/new WeakMap();var _layerProperties=/*#__PURE__*/new WeakSet();var _initializePermissions=/*#__PURE__*/new WeakSet();var _onePageRenderedOrForceFetch=/*#__PURE__*/new WeakSet();var _copyCallback=/*#__PURE__*/new WeakSet();var _ensurePageViewVisible=/*#__PURE__*/new WeakSet();var _scrollIntoView=/*#__PURE__*/new WeakSet();var _isSameScale=/*#__PURE__*/new WeakSet();var _setScaleUpdatePages=/*#__PURE__*/new WeakSet();var _pageWidthScaleFactor=/*#__PURE__*/new WeakMap();var _setScale=/*#__PURE__*/new WeakSet();var _resetCurrentPageView=/*#__PURE__*/new WeakSet();var _ensurePdfPageLoaded=/*#__PURE__*/new WeakSet();var _getScrollAhead=/*#__PURE__*/new WeakSet();var _updateContainerHeightCss=/*#__PURE__*/new WeakSet();var _resizeObserverCallback=/*#__PURE__*/new WeakSet();var PDFViewer=/*#__PURE__*/function(){function PDFViewer(_options){var _this$container,_this$viewer,_this=this,_options$textLayerMod,_options$annotationMo,_options$annotationEd,_options$isOffscreenC;_classCallCheck(this,PDFViewer);_classPrivateMethodInitSpec(this,_resizeObserverCallback);_classPrivateMethodInitSpec(this,_updateContainerHeightCss);_classPrivateMethodInitSpec(this,_getScrollAhead);_classPrivateMethodInitSpec(this,_ensurePdfPageLoaded);_classPrivateMethodInitSpec(this,_resetCurrentPageView);_classPrivateMethodInitSpec(this,_setScale);_classPrivateFieldInitSpec(this,_pageWidthScaleFactor,{get:_get_pageWidthScaleFactor,set:void 0});_classPrivateMethodInitSpec(this,_setScaleUpdatePages);_classPrivateMethodInitSpec(this,_isSameScale);_classPrivateMethodInitSpec(this,_scrollIntoView);_classPrivateMethodInitSpec(this,_ensurePageViewVisible);_classPrivateMethodInitSpec(this,_copyCallback);_classPrivateMethodInitSpec(this,_onePageRenderedOrForceFetch);_classPrivateMethodInitSpec(this,_initializePermissions);_classPrivateMethodInitSpec(this,_layerProperties);_classPrivateFieldInitSpec(this,_buffer,{writable:true,value:null});_classPrivateFieldInitSpec(this,_annotationEditorMode,{writable:true,value:_pdfjsLib.AnnotationEditorType.NONE});_classPrivateFieldInitSpec(this,_annotationEditorUIManager,{writable:true,value:null});_classPrivateFieldInitSpec(this,_annotationMode,{writable:true,value:_pdfjsLib.AnnotationMode.ENABLE_FORMS});_classPrivateFieldInitSpec(this,_containerTopLeft,{writable:true,value:null});_classPrivateFieldInitSpec(this,_copyCallbackBound,{writable:true,value:null});_classPrivateFieldInitSpec(this,_enablePermissions,{writable:true,value:false});_classPrivateFieldInitSpec(this,_getAllTextInProgress,{writable:true,value:false});_classPrivateFieldInitSpec(this,_hiddenCopyElement,{writable:true,value:null});_classPrivateFieldInitSpec(this,_interruptCopyCondition,{writable:true,value:false});_classPrivateFieldInitSpec(this,_previousContainerHeight,{writable:true,value:0});_classPrivateFieldInitSpec(this,_resizeObserver,{writable:true,value:new ResizeObserver(_classPrivateMethodGet(this,_resizeObserverCallback,_resizeObserverCallback2).bind(this))});_classPrivateFieldInitSpec(this,_scrollModePageState,{writable:true,value:null});_classPrivateFieldInitSpec(this,_onVisibilityChange,{writable:true,value:null});_classPrivateFieldInitSpec(this,_scaleTimeoutId,{writable:true,value:null});_classPrivateFieldInitSpec(this,_textLayerMode,{writable:true,value:_ui_utils.TextLayerMode.ENABLE});var viewerVersion='3.11.438';if(_pdfjsLib.version!==viewerVersion){throw new Error("The API version \"".concat(_pdfjsLib.version,"\" does not match the Viewer version \"").concat(viewerVersion,"\"."));}this.container=_options.container;this.viewer=_options.viewer||_options.container.firstElementChild;this.pageViewMode=_options.pageViewMode||"multiple";if(((_this$container=this.container)===null||_this$container===void 0?void 0:_this$container.tagName)!=="DIV"||((_this$viewer=this.viewer)===null||_this$viewer===void 0?void 0:_this$viewer.tagName)!=="DIV"){throw new Error("Invalid `container` and/or `viewer` option.");}if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute"){throw new Error("The `container` must be absolutely positioned.");}_classPrivateFieldGet(this,_resizeObserver).observe(this.container);this.eventBus=_options.eventBus;this.linkService=_options.linkService||new _pdf_link_service.SimpleLinkService();this.downloadManager=_options.downloadManager||null;this.findController=_options.findController||null;if(this.findController){this.findController.onIsPageVisible=function(pageNumber){return _this._getVisiblePages().ids.has(pageNumber);};}this._scriptingManager=_options.scriptingManager||null;_classPrivateFieldSet(this,_textLayerMode,(_options$textLayerMod=_options.textLayerMode)!==null&&_options$textLayerMod!==void 0?_options$textLayerMod:_ui_utils.TextLayerMode.ENABLE);_classPrivateFieldSet(this,_annotationMode,(_options$annotationMo=_options.annotationMode)!==null&&_options$annotationMo!==void 0?_options$annotationMo:_pdfjsLib.AnnotationMode.ENABLE_FORMS);_classPrivateFieldSet(this,_annotationEditorMode,(_options$annotationEd=_options.annotationEditorMode)!==null&&_options$annotationEd!==void 0?_options$annotationEd:_pdfjsLib.AnnotationEditorType.NONE);this.imageResourcesPath=_options.imageResourcesPath||"";this.enablePrintAutoRotate=_options.enablePrintAutoRotate||false;this.removePageBorders=_options.removePageBorders||false;if(_options.useOnlyCssZoom){console.error("useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead.");_options.maxCanvasPixels=0;}this.isOffscreenCanvasSupported=(_options$isOffscreenC=_options.isOffscreenCanvasSupported)!==null&&_options$isOffscreenC!==void 0?_options$isOffscreenC:true;this.maxCanvasPixels=_options.maxCanvasPixels;this.l10n=_options.l10n||_l10n_utils.NullL10n;_classPrivateFieldSet(this,_enablePermissions,_options.enablePermissions||false);this.pageColors=_options.pageColors||null;this.defaultRenderingQueue=!_options.renderingQueue;if(this.defaultRenderingQueue){this.renderingQueue=new _pdf_rendering_queue.PDFRenderingQueue();this.renderingQueue.setViewer(this);}else{this.renderingQueue=_options.renderingQueue;}this.scroll=(0,_ui_utils.watchScroll)(this.container,this._scrollUpdate.bind(this));this.presentationModeState=_ui_utils.PresentationModeState.UNKNOWN;this._onBeforeDraw=this._onAfterDraw=null;this._resetView();if(this.removePageBorders){this.viewer.classList.add("removePageBorders");}_classPrivateMethodGet(this,_updateContainerHeightCss,_updateContainerHeightCss2).call(this);this.eventBus._on("thumbnailrendered",function(_ref){var pageNumber=_ref.pageNumber,pdfPage=_ref.pdfPage;var pageView=_this._pages[pageNumber-1];if(!_classPrivateFieldGet(_this,_buffer).has(pageView)){pdfPage===null||pdfPage===void 0?void 0:pdfPage.cleanup();}});}_createClass(PDFViewer,[{key:"pagesCount",get:function get(){return this._pages.length;}},{key:"getPageView",value:function getPageView(index){return this._pages[index];}},{key:"getCachedPageViews",value:function getCachedPageViews(){return new Set(_classPrivateFieldGet(this,_buffer));}},{key:"pageViewsReady",get:function get(){return this._pagesCapability.settled&&this._pages.every(function(pageView){return pageView===null||pageView===void 0?void 0:pageView.pdfPage;});}},{key:"renderForms",get:function get(){return _classPrivateFieldGet(this,_annotationMode)===_pdfjsLib.AnnotationMode.ENABLE_FORMS;}},{key:"enableScripting",get:function get(){return!!this._scriptingManager;}},{key:"currentPageNumber",get:function get(){return this._currentPageNumber;},set:function set(val){if(!Number.isInteger(val)){throw new Error("Invalid page number.");}if(!this.pdfDocument){return;}var flip=Math.abs(this._currentPageNumber-val)<=2;if(!this._setCurrentPageNumber(val,true)){globalThis.ngxConsole.error("currentPageNumber: \"".concat(val,"\" is not a valid page."));}if(this.pageFlip){if(flip){this.pageFlip.flip(val-1);}else{this.pageFlip.turnToPage(val-1);}}}},{key:"hidePagesDependingOnpageViewMode",value:function hidePagesDependingOnpageViewMode(){var _this2=this;if(this.pageViewMode==="book"){if(!this.pageFlip){setTimeout(function(){if(!_this2.pageFlip){var page1=_this2._pages[0].div;var htmlParentElement=page1.parentElement;var viewer=htmlParentElement.parentElement;viewer.style.width=2*page1.clientWidth+"px";viewer.style.overflow="hidden";viewer.style.marginLeft="auto";viewer.style.marginRight="auto";_this2.pageFlip=new _pageFlipModule.PageFlip(htmlParentElement,{width:page1.clientWidth,height:page1.clientHeight,showCover:true,size:"fixed"});_this2.pageFlip.loadFromHTML(document.querySelectorAll(".page"));_this2.ensureAdjecentPagesAreLoaded();_this2.pageFlip.on("flip",function(e){if(_this2._currentPageNumber!==e.data+1){_this2._setCurrentPageNumber(e.data+1,false);}});}},100);}}}},{key:"_setCurrentPageNumber",value:function _setCurrentPageNumber(val){var _this3=this,_this$_pageLabels,_this$_pageLabels2;var resetCurrentPageView=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this._currentPageNumber===val){if(resetCurrentPageView){_classPrivateMethodGet(this,_resetCurrentPageView,_resetCurrentPageView2).call(this);}return true;}if(!(0<val&&val<=this.pagesCount)){return false;}var previous=this._currentPageNumber;this._currentPageNumber=val;this.hidePagesDependingOnpageViewMode();if(this.pageViewMode==="book"||this.pageViewMode==="infinite-scroll"){var pageView=this._pages[this.currentPageNumber-1];if(pageView.div.parentElement.classList.contains("spread")){pageView.div.parentElement.childNodes.forEach(function(div){var pageNumber=Number(div.getAttribute("data-page-number"));var pv=_this3._pages[pageNumber-1];_classPrivateMethodGet(_this3,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(_this3,pv).then(function(){_this3.renderingQueue.renderView(pv);});div.style.display="inline-block";});}else{_classPrivateMethodGet(this,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(this,pageView).then(function(){_this3.renderingQueue.renderView(pageView);});if(this.pageViewMode==="book"){this.ensureAdjecentPagesAreLoaded();}}}this.eventBus.dispatch("pagechanging",{source:this,pageNumber:val,pageLabel:(_this$_pageLabels=(_this$_pageLabels2=this._pageLabels)===null||_this$_pageLabels2===void 0?void 0:_this$_pageLabels2[val-1])!==null&&_this$_pageLabels!==void 0?_this$_pageLabels:null,previous:previous});if(resetCurrentPageView){_classPrivateMethodGet(this,_resetCurrentPageView,_resetCurrentPageView2).call(this);}return true;}},{key:"addPageToRenderQueue",value:function addPageToRenderQueue(){var _this4=this;var pageIndex=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(pageIndex>=0&&pageIndex<=this._pages.length-1){var pageView=this._pages[pageIndex];var isLoading=pageView.renderingState===_ui_utils.RenderingStates.INITIAL;if(isLoading){_classPrivateMethodGet(this,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(this,pageView).then(function(){_this4.renderingQueue.renderView(pageView);});return true;}}return false;}},{key:"ensureAdjecentPagesAreLoaded",value:function(){var _ensureAdjecentPagesAreLoaded=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _this5=this;var advances,_i,_advances,advance,pageIndex,pageView,loader;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:advances=[0,1,-1,2,-2];_i=0,_advances=advances;case 2:if(!(_i<_advances.length)){_context.next=12;break;}advance=_advances[_i];pageIndex=this.currentPageNumber+advance;if(!(pageIndex>=0&&pageIndex<this._pages.length)){_context.next=9;break;}pageView=this._pages[pageIndex];_context.next=9;return _classPrivateMethodGet(this,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(this,pageView);case 9:_i++;_context.next=2;break;case 12:loader=function loader(){return _this5.adjacentPagesLoader(loader);};this.eventBus._on("pagerendered",loader);this.eventBus._on("thumbnailRendered",loader);case 15:case"end":return _context.stop();}},_callee,this);}));function ensureAdjecentPagesAreLoaded(){return _ensureAdjecentPagesAreLoaded.apply(this,arguments);}return ensureAdjecentPagesAreLoaded;}()},{key:"adjacentPagesLoader",value:function adjacentPagesLoader(self){var advances=[0,1,-1,2,-2];var isAlreadyRendering=this._pages.some(function(pageView){return pageView.renderingState===_ui_utils.RenderingStates.RUNNING;});if(isAlreadyRendering){return;}var pausedRendering=this._pages.find(function(pageView){return pageView.renderingState===_ui_utils.RenderingStates.PAUSED;});if(pausedRendering){this.renderingQueue.renderView(pausedRendering);return;}for(var _i2=0,_advances2=advances;_i2<_advances2.length;_i2++){var advance=_advances2[_i2];var pageIndex=this.currentPageNumber+advance;if(pageIndex>=0&&pageIndex<this._pages.length){var pageView=this._pages[pageIndex];var needsToBeRendered=pageView.renderingState===_ui_utils.RenderingStates.INITIAL;if(needsToBeRendered){this.renderingQueue.renderView(pageView);return;}}}this.eventBus._off("pagerendered",self);this.eventBus._off("thumbnailRendered",self);}},{key:"currentPageLabel",get:function get(){var _this$_pageLabels3,_this$_pageLabels4;return(_this$_pageLabels3=(_this$_pageLabels4=this._pageLabels)===null||_this$_pageLabels4===void 0?void 0:_this$_pageLabels4[this._currentPageNumber-1])!==null&&_this$_pageLabels3!==void 0?_this$_pageLabels3:null;},set:function set(val){if(!this.pdfDocument){return;}var page=val|0;if(this._pageLabels){var i=this._pageLabels.indexOf(val);if(i>=0){page=i+1;}}if(!this._setCurrentPageNumber(page,true)){globalThis.ngxConsole.error("currentPageLabel: \"".concat(val,"\" is not a valid page."));}}},{key:"currentScale",get:function get(){return this._currentScale!==_ui_utils.UNKNOWN_SCALE?this._currentScale:_ui_utils.DEFAULT_SCALE;},set:function set(val){if(isNaN(val)){throw new Error("Invalid numeric scale.");}if(!this.pdfDocument){return;}_classPrivateMethodGet(this,_setScale,_setScale2).call(this,val,{noScroll:false});}},{key:"currentScaleValue",get:function get(){return this._currentScaleValue;},set:function set(val){if(!this.pdfDocument){return;}_classPrivateMethodGet(this,_setScale,_setScale2).call(this,val,{noScroll:false});}},{key:"pagesRotation",get:function get(){return this._pagesRotation;},set:function set(rotation){if(!(0,_ui_utils.isValidRotation)(rotation)){throw new Error("Invalid pages rotation angle.");}if(!this.pdfDocument){return;}rotation%=360;if(rotation<0){rotation+=360;}if(this._pagesRotation===rotation){return;}this._pagesRotation=rotation;var pageNumber=this._currentPageNumber;this.refresh(true,{rotation:rotation});if(this._currentScaleValue){_classPrivateMethodGet(this,_setScale,_setScale2).call(this,this._currentScaleValue,{noScroll:true});}this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:rotation,pageNumber:pageNumber});if(this.defaultRenderingQueue){this.update();}}},{key:"firstPagePromise",get:function get(){return this.pdfDocument?this._firstPageCapability.promise:null;}},{key:"onePageRendered",get:function get(){return this.pdfDocument?this._onePageRenderedCapability.promise:null;}},{key:"pagesPromise",get:function get(){return this.pdfDocument?this._pagesCapability.promise:null;}},{key:"getAllText",value:function(){var _getAllText=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var texts,buffer,pageNum,pagesCount,page,_yield$page$getTextCo,items,_iterator2,_step2,item;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:texts=[];buffer=[];pageNum=1,pagesCount=this.pdfDocument.numPages;case 3:if(!(pageNum<=pagesCount)){_context2.next=20;break;}if(!_classPrivateFieldGet(this,_interruptCopyCondition)){_context2.next=6;break;}return _context2.abrupt("return",null);case 6:buffer.length=0;_context2.next=9;return this.pdfDocument.getPage(pageNum);case 9:page=_context2.sent;_context2.next=12;return page.getTextContent();case 12:_yield$page$getTextCo=_context2.sent;items=_yield$page$getTextCo.items;_iterator2=_createForOfIteratorHelper(items);try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){item=_step2.value;if(item.str){buffer.push(item.str);}if(item.hasEOL){buffer.push("\n");}}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}texts.push((0,_ui_utils.removeNullCharacters)(buffer.join("")));case 17:++pageNum;_context2.next=3;break;case 20:return _context2.abrupt("return",texts.join("\n"));case 21:case"end":return _context2.stop();}},_callee2,this);}));function getAllText(){return _getAllText.apply(this,arguments);}return getAllText;}()},{key:"setDocument",value:function setDocument(pdfDocument){var _this6=this;if(this.pdfDocument){var _this$findController,_this$_scriptingManag;this.eventBus.dispatch("pagesdestroy",{source:this});this._cancelRendering();this._resetView();(_this$findController=this.findController)===null||_this$findController===void 0?void 0:_this$findController.setDocument(null);(_this$_scriptingManag=this._scriptingManager)===null||_this$_scriptingManag===void 0?void 0:_this$_scriptingManag.setDocument(null);if(_classPrivateFieldGet(this,_annotationEditorUIManager)){_classPrivateFieldGet(this,_annotationEditorUIManager).destroy();_classPrivateFieldSet(this,_annotationEditorUIManager,null);}}this.pdfDocument=pdfDocument;if(!pdfDocument){return;}var pagesCount=pdfDocument.numPages;var firstPagePromise=pdfDocument.getPage(1);var optionalContentConfigPromise=pdfDocument.getOptionalContentConfig();var permissionsPromise=_classPrivateFieldGet(this,_enablePermissions)?pdfDocument.getPermissions():Promise.resolve();if(pagesCount>PagesCountLimit.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");var mode=this._scrollMode=_ui_utils.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:mode});}this._pagesCapability.promise.then(function(){_this6.eventBus.dispatch("pagesloaded",{source:_this6,pagesCount:pagesCount});},function(){});this._onBeforeDraw=function(evt){var pageView=_this6._pages[evt.pageNumber-1];if(!pageView){return;}_classPrivateFieldGet(_this6,_buffer).push(pageView);};this.eventBus._on("pagerender",this._onBeforeDraw);this._onAfterDraw=function(evt){if(evt.cssTransform||_this6._onePageRenderedCapability.settled){return;}_this6._onePageRenderedCapability.resolve({timestamp:evt.timestamp});_this6.eventBus._off("pagerendered",_this6._onAfterDraw);_this6._onAfterDraw=null;if(_classPrivateFieldGet(_this6,_onVisibilityChange)){document.removeEventListener("visibilitychange",_classPrivateFieldGet(_this6,_onVisibilityChange));_classPrivateFieldSet(_this6,_onVisibilityChange,null);}};this.eventBus._on("pagerendered",this._onAfterDraw);Promise.all([firstPagePromise,permissionsPromise]).then(function(_ref2){var _this6$pageColors,_this6$pageColors2;var _ref3=_slicedToArray(_ref2,2),firstPdfPage=_ref3[0],permissions=_ref3[1];if(pdfDocument!==_this6.pdfDocument){return;}_this6._firstPageCapability.resolve(firstPdfPage);_this6._optionalContentConfigPromise=optionalContentConfigPromise;var _classPrivateMethodGe=_classPrivateMethodGet(_this6,_initializePermissions,_initializePermissions2).call(_this6,permissions),annotationEditorMode=_classPrivateMethodGe.annotationEditorMode,annotationMode=_classPrivateMethodGe.annotationMode,textLayerMode=_classPrivateMethodGe.textLayerMode;if(textLayerMode!==_ui_utils.TextLayerMode.DISABLE){var element=_classPrivateFieldSet(_this6,_hiddenCopyElement,document.createElement("div"));element.id="hiddenCopyElement";_this6.viewer.before(element);}if(annotationEditorMode!==_pdfjsLib.AnnotationEditorType.DISABLE){var _mode=annotationEditorMode;if(pdfDocument.isPureXfa){console.warn("Warning: XFA-editing is not implemented.");}else if(isValidAnnotationEditorMode(_mode)){_classPrivateFieldSet(_this6,_annotationEditorUIManager,new _pdfjsLib.AnnotationEditorUIManager(_this6.container,_this6.viewer,_this6.eventBus,pdfDocument,_this6.pageColors));if(_mode!==_pdfjsLib.AnnotationEditorType.NONE){_classPrivateFieldGet(_this6,_annotationEditorUIManager).updateMode(_mode);}}else{console.error("Invalid AnnotationEditor mode: ".concat(_mode));}}var layerProperties=_classPrivateMethodGet(_this6,_layerProperties,_layerProperties2).bind(_this6);var viewerElement=_this6._scrollMode===_ui_utils.ScrollMode.PAGE?null:_this6.viewer;var scale=_this6.currentScale;var viewport=firstPdfPage.getViewport({scale:scale*_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS});_this6.viewer.style.setProperty("--scale-factor",viewport.scale);if(((_this6$pageColors=_this6.pageColors)===null||_this6$pageColors===void 0?void 0:_this6$pageColors.foreground)==="CanvasText"||((_this6$pageColors2=_this6.pageColors)===null||_this6$pageColors2===void 0?void 0:_this6$pageColors2.background)==="Canvas"){_this6.viewer.style.setProperty("--hcm-highligh-filter",pdfDocument.filterFactory.addHighlightHCMFilter("CanvasText","Canvas","HighlightText","Highlight"));}for(var pageNum=1;pageNum<=pagesCount;++pageNum){var pageView=new _pdf_page_view.PDFPageView({container:viewerElement,eventBus:_this6.eventBus,id:pageNum,scale:scale,defaultViewport:viewport.clone(),optionalContentConfigPromise:optionalContentConfigPromise,renderingQueue:_this6.renderingQueue,textLayerMode:textLayerMode,annotationMode:annotationMode,imageResourcesPath:_this6.imageResourcesPath,removePageBorders:_this6.removePageBorders,useOnlyCssZoom:_this6.useOnlyCssZoom,isOffscreenCanvasSupported:_this6.isOffscreenCanvasSupported,maxCanvasPixels:_this6.maxCanvasPixels,pageColors:_this6.pageColors,l10n:_this6.l10n,layerProperties:layerProperties});_this6._pages.push(pageView);}var firstPageView=_this6._pages[0];if(firstPageView){firstPageView.setPdfPage(firstPdfPage);_this6.linkService.cachePageRef(1,firstPdfPage.ref);}if(_this6._scrollMode===_ui_utils.ScrollMode.PAGE){_classPrivateMethodGet(_this6,_ensurePageViewVisible,_ensurePageViewVisible2).call(_this6);}else if(_this6._spreadMode!==_ui_utils.SpreadMode.NONE){_this6._updateSpreadMode();}_classPrivateMethodGet(_this6,_onePageRenderedOrForceFetch,_onePageRenderedOrForceFetch2).call(_this6).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _this6$findController,_this6$_scriptingMana;var getPagesLeft,_loop,_pageNum;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:(_this6$findController=_this6.findController)===null||_this6$findController===void 0?void 0:_this6$findController.setDocument(pdfDocument);(_this6$_scriptingMana=_this6._scriptingManager)===null||_this6$_scriptingMana===void 0?void 0:_this6$_scriptingMana.setDocument(pdfDocument);if(_classPrivateFieldGet(_this6,_hiddenCopyElement)){_classPrivateFieldSet(_this6,_copyCallbackBound,_classPrivateMethodGet(_this6,_copyCallback,_copyCallback2).bind(_this6,textLayerMode));document.addEventListener("copy",_classPrivateFieldGet(_this6,_copyCallbackBound));}if(_classPrivateFieldGet(_this6,_annotationEditorUIManager)){_this6.eventBus.dispatch("annotationeditormodechanged",{source:_this6,mode:_classPrivateFieldGet(_this6,_annotationEditorMode)});}if(!(pdfDocument.loadingParams.disableAutoFetch||pagesCount>PagesCountLimit.FORCE_LAZY_PAGE_INIT)){_context4.next=7;break;}_this6._pagesCapability.resolve();return _context4.abrupt("return");case 7:getPagesLeft=pagesCount-1;if(!(getPagesLeft<=0)){_context4.next=11;break;}_this6._pagesCapability.resolve();return _context4.abrupt("return");case 11:_loop=/*#__PURE__*/_regeneratorRuntime().mark(function _loop(_pageNum){var promise;return _regeneratorRuntime().wrap(function _loop$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:promise=pdfDocument.getPage(_pageNum).then(function(pdfPage){var pageView=_this6._pages[_pageNum-1];if(!pageView.pdfPage){pageView.setPdfPage(pdfPage);}_this6.linkService.cachePageRef(_pageNum,pdfPage.ref);if(--getPagesLeft===0){_this6._pagesCapability.resolve();}},function(reason){console.error("Unable to get page ".concat(_pageNum," to initialize viewer"),reason);if(--getPagesLeft===0){_this6._pagesCapability.resolve();}});if(!(_pageNum%PagesCountLimit.PAUSE_EAGER_PAGE_INIT===0)){_context3.next=4;break;}_context3.next=4;return promise;case 4:case"end":return _context3.stop();}},_loop);});_pageNum=2;case 13:if(!(_pageNum<=pagesCount)){_context4.next=18;break;}return _context4.delegateYield(_loop(_pageNum),"t0",15);case 15:++_pageNum;_context4.next=13;break;case 18:case"end":return _context4.stop();}},_callee3);})));_this6.hidePagesDependingOnpageViewMode();_this6.eventBus.dispatch("pagesinit",{source:_this6});pdfDocument.getMetadata().then(function(_ref5){var info=_ref5.info;if(pdfDocument!==_this6.pdfDocument){return;}if(info.Language){_this6.viewer.lang=info.Language;}});if(_this6.defaultRenderingQueue){_this6.update();}}).catch(function(reason){globalThis.ngxConsole.error("Unable to initialize viewer",reason);_this6._pagesCapability.reject(reason);});}},{key:"setPageLabels",value:function setPageLabels(labels){if(!this.pdfDocument){return;}if(!labels){this._pageLabels=null;}else if(!(Array.isArray(labels)&&this.pdfDocument.numPages===labels.length)){this._pageLabels=null;globalThis.ngxConsole.error("setPageLabels: Invalid page labels.");}else{this._pageLabels=labels;}for(var i=0,ii=this._pages.length;i<ii;i++){var _this$_pageLabels$i,_this$_pageLabels5;this._pages[i].setPageLabel((_this$_pageLabels$i=(_this$_pageLabels5=this._pageLabels)===null||_this$_pageLabels5===void 0?void 0:_this$_pageLabels5[i])!==null&&_this$_pageLabels$i!==void 0?_this$_pageLabels$i:null);}}},{key:"_resetView",value:function _resetView(){this._pages=[];this._currentPageNumber=1;this._currentScale=_ui_utils.UNKNOWN_SCALE;this._currentScaleValue=null;this._pageLabels=null;var bufferSize=Number(PDFViewerApplicationOptions.get("defaultCacheSize"))||DEFAULT_CACHE_SIZE;_classPrivateFieldSet(this,_buffer,new PDFPageViewBuffer(bufferSize));this._location=null;this._pagesRotation=0;this._optionalContentConfigPromise=null;this._firstPageCapability=new _pdfjsLib.PromiseCapability();this._onePageRenderedCapability=new _pdfjsLib.PromiseCapability();this._pagesCapability=new _pdfjsLib.PromiseCapability();this._scrollMode=_ui_utils.ScrollMode.VERTICAL;this._previousScrollMode=_ui_utils.ScrollMode.UNKNOWN;this._spreadMode=_ui_utils.SpreadMode.NONE;_classPrivateFieldSet(this,_scrollModePageState,{previousPageNumber:1,scrollDown:true,pages:[]});if(this._onBeforeDraw){this.eventBus._off("pagerender",this._onBeforeDraw);this._onBeforeDraw=null;}if(this._onAfterDraw){this.eventBus._off("pagerendered",this._onAfterDraw);this._onAfterDraw=null;}if(_classPrivateFieldGet(this,_onVisibilityChange)){document.removeEventListener("visibilitychange",_classPrivateFieldGet(this,_onVisibilityChange));_classPrivateFieldSet(this,_onVisibilityChange,null);}this.viewer.textContent="";this._updateScrollMode();this.viewer.removeAttribute("lang");if(_classPrivateFieldGet(this,_hiddenCopyElement)){document.removeEventListener("copy",_classPrivateFieldGet(this,_copyCallbackBound));_classPrivateFieldSet(this,_copyCallbackBound,null);_classPrivateFieldGet(this,_hiddenCopyElement).remove();_classPrivateFieldSet(this,_hiddenCopyElement,null);}}},{key:"_scrollUpdate",value:function _scrollUpdate(){if(this.pagesCount===0){return;}this.update();}},{key:"scrollPagePosIntoView",value:function scrollPagePosIntoView(pageNumber,pageSpot){var pageDiv=this._pages[pageNumber-1].div;if(pageSpot){var targetPageSpot=_objectSpread({},pageSpot);if(typeof targetPageSpot.top==="string"){if(targetPageSpot.top.endsWith("%")){var _this$viewer$querySel;var percent=Number(targetPageSpot.top.replace("%",""));var viewerHeight=(_this$viewer$querySel=this.viewer.querySelector(".page"))===null||_this$viewer$querySel===void 0?void 0:_this$viewer$querySel.clientHeight;var height=pageDiv.clientHeight?pageDiv.clientHeight:viewerHeight;var visibleWindowHeight=this.viewer.parentElement.clientHeight;height=Math.max(0,height-visibleWindowHeight);targetPageSpot.top=percent*height/100;}}if(typeof targetPageSpot.left==="string"){if(targetPageSpot.left.endsWith("%")){var _this$viewer$querySel2;var _percent=Number(targetPageSpot.left.replace("%",""));var viewerWidth=(_this$viewer$querySel2=this.viewer.querySelector(".page"))===null||_this$viewer$querySel2===void 0?void 0:_this$viewer$querySel2.clientWidth;var width=pageDiv.clientWidth?pageDiv.clientWidth:viewerWidth;targetPageSpot.left=_percent*width/100;}}_classPrivateMethodGet(this,_scrollIntoView,_scrollIntoView2).call(this,{div:pageDiv,id:pageNumber},targetPageSpot);}else{_classPrivateMethodGet(this,_scrollIntoView,_scrollIntoView2).call(this,{pageDiv:pageDiv,pageNumber:pageNumber});}}},{key:"pageLabelToPageNumber",value:function pageLabelToPageNumber(label){if(!this._pageLabels){return null;}var i=this._pageLabels.indexOf(label);if(i<0){return null;}return i+1;}},{key:"scrollPageIntoView",value:function scrollPageIntoView(_ref6){var _this7=this;var pageNumber=_ref6.pageNumber,_ref6$destArray=_ref6.destArray,destArray=_ref6$destArray===void 0?null:_ref6$destArray,_ref6$allowNegativeOf=_ref6.allowNegativeOffset,allowNegativeOffset=_ref6$allowNegativeOf===void 0?false:_ref6$allowNegativeOf,_ref6$ignoreDestinati=_ref6.ignoreDestinationZoom,ignoreDestinationZoom=_ref6$ignoreDestinati===void 0?false:_ref6$ignoreDestinati;if(!this.pdfDocument){return;}var pageView=Number.isInteger(pageNumber)&&this._pages[pageNumber-1];if(!pageView){console.error("scrollPageIntoView: \"".concat(pageNumber,"\" is not a valid pageNumber parameter."));return;}if(this.isInPresentationMode||!destArray){this._setCurrentPageNumber(pageNumber,true);return;}var x=0,y=0;var width=0,height=0,widthScale,heightScale;var changeOrientation=pageView.rotation%180!==0;var pageWidth=(changeOrientation?pageView.height:pageView.width)/pageView.scale/_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;var pageHeight=(changeOrientation?pageView.width:pageView.height)/pageView.scale/_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;var scale=0;switch(destArray[1].name){case"XYZ":x=destArray[2];y=destArray[3];scale=destArray[4];x=x!==null?x:0;y=y!==null?y:pageHeight;break;case"Fit":case"FitB":scale="page-fit";break;case"FitH":case"FitBH":y=destArray[2];scale="page-width";if(y===null&&this._location){x=this._location.left;y=this._location.top;}else if(typeof y!=="number"||y<0){y=pageHeight;}break;case"FitV":case"FitBV":x=destArray[2];width=pageWidth;height=pageHeight;scale="page-height";break;case"FitR":x=destArray[2];y=destArray[3];width=destArray[4]-x;height=destArray[5]-y;var hPadding=_ui_utils.SCROLLBAR_PADDING,vPadding=_ui_utils.VERTICAL_PADDING;if(this.removePageBorders){hPadding=vPadding=0;}widthScale=(this.container.clientWidth-hPadding)/width/_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;heightScale=(this.container.clientHeight-vPadding)/height/_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS;scale=Math.min(Math.abs(widthScale),Math.abs(heightScale));break;default:console.error("scrollPageIntoView: \"".concat(destArray[1].name,"\" is not a valid destination type."));return;}if(!ignoreDestinationZoom){if(scale&&scale!==this._currentScale){this.currentScaleValue=scale;}else if(this._currentScale===_ui_utils.UNKNOWN_SCALE){this.currentScaleValue=_ui_utils.DEFAULT_SCALE_VALUE;}}_classPrivateMethodGet(this,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(this,pageView).then(function(){_this7.renderingQueue.renderView(pageView);if(_this7.pageViewMode==="single"){if(_this7.currentPageNumber!==pageNumber){_this7.currentPageNumber=pageNumber;}}});if(scale==="page-fit"&&!destArray[4]){_classPrivateMethodGet(this,_scrollIntoView,_scrollIntoView2).call(this,pageView);return;}var boundingRect=[pageView.viewport.convertToViewportPoint(x,y),pageView.viewport.convertToViewportPoint(x+width,y+height)];var left=Math.min(boundingRect[0][0],boundingRect[1][0]);var top=Math.min(boundingRect[0][1],boundingRect[1][1]);if(!allowNegativeOffset){left=Math.max(left,0);top=Math.max(top,0);}_classPrivateMethodGet(this,_scrollIntoView,_scrollIntoView2).call(this,pageView,{left:left,top:top});}},{key:"_updateLocation",value:function _updateLocation(firstPage){var currentScale=this._currentScale;var currentScaleValue=this._currentScaleValue;var normalizedScaleValue=parseFloat(currentScaleValue)===currentScale?Math.round(currentScale*10000)/100:currentScaleValue;var pageNumber=firstPage.id;var currentPageView=this._pages[pageNumber-1];var container=this.container;var topLeft=currentPageView.getPagePoint(container.scrollLeft-firstPage.x,container.scrollTop-firstPage.y);var intLeft=Math.round(topLeft[0]);var intTop=Math.round(topLeft[1]);var pdfOpenParams="#page=".concat(pageNumber);if(!this.isInPresentationMode){pdfOpenParams+="&zoom=".concat(normalizedScaleValue,",").concat(intLeft,",").concat(intTop);}this._location={pageNumber:pageNumber,scale:normalizedScaleValue,top:intTop,left:intLeft,rotation:this._pagesRotation,pdfOpenParams:pdfOpenParams};}},{key:"update",value:function update(){if(this.scrollMode===_ui_utils.ScrollMode.PAGE){this.viewer.classList.add("singlePageView");}else{this.viewer.classList.remove("singlePageView");}var visible=this._getVisiblePages();var visiblePages=visible.views,numVisiblePages=visiblePages.length;if(numVisiblePages===0){return;}var bufferSize=Number(PDFViewerApplicationOptions.get("defaultCacheSize"))||DEFAULT_CACHE_SIZE;var newCacheSize=Math.max(bufferSize,2*numVisiblePages+1);_classPrivateFieldGet(this,_buffer).resize(newCacheSize,visible.ids);this.renderingQueue.renderHighestPriority(visible);var isSimpleLayout=this._spreadMode===_ui_utils.SpreadMode.NONE&&(this._scrollMode===_ui_utils.ScrollMode.PAGE||this._scrollMode===_ui_utils.ScrollMode.VERTICAL);var currentId=this._currentPageNumber;var stillFullyVisible=false;var _iterator3=_createForOfIteratorHelper(visiblePages),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var page=_step3.value;if(page.percent<100){break;}if(page.id===currentId&&isSimpleLayout){stillFullyVisible=true;break;}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}if(this.scrollMode!==_ui_utils.ScrollMode.PAGE){this._setCurrentPageNumber(stillFullyVisible?currentId:visiblePages[0].id);this._updateLocation(visible.first);this.eventBus.dispatch("updateviewarea",{source:this,location:this._location});}this.hidePagesDependingOnpageViewMode();}},{key:"containsElement",value:function containsElement(element){return this.container.contains(element);}},{key:"focus",value:function focus(){this.container.focus();}},{key:"_isContainerRtl",get:function get(){return getComputedStyle(this.container).direction==="rtl";}},{key:"isInPresentationMode",get:function get(){return this.presentationModeState===_ui_utils.PresentationModeState.FULLSCREEN;}},{key:"isChangingPresentationMode",get:function get(){return this.presentationModeState===_ui_utils.PresentationModeState.CHANGING;}},{key:"isHorizontalScrollbarEnabled",get:function get(){return this.isInPresentationMode?false:this.container.scrollWidth>this.container.clientWidth;}},{key:"isVerticalScrollbarEnabled",get:function get(){return this.isInPresentationMode?false:this.container.scrollHeight>this.container.clientHeight;}},{key:"_getVisiblePages",value:function _getVisiblePages(){var views=this._scrollMode===_ui_utils.ScrollMode.PAGE?_classPrivateFieldGet(this,_scrollModePageState).pages:this._pages,horizontal=this._scrollMode===_ui_utils.ScrollMode.HORIZONTAL,rtl=horizontal&&this._isContainerRtl;return(0,_ui_utils.getVisibleElements)({scrollEl:this.container,views:views,sortByVisibility:true,horizontal:horizontal,rtl:rtl});}},{key:"cleanup",value:function cleanup(){var _iterator4=_createForOfIteratorHelper(this._pages),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var pageView=_step4.value;if(pageView.renderingState!==_ui_utils.RenderingStates.FINISHED){pageView.reset();}}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}},{key:"_cancelRendering",value:function _cancelRendering(){var _iterator5=_createForOfIteratorHelper(this._pages),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var pageView=_step5.value;pageView.cancelRendering();}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}},{key:"forceRendering",value:function forceRendering(currentlyVisiblePages){var _this8=this;var visiblePages=currentlyVisiblePages||this._getVisiblePages();var scrollAhead=_classPrivateMethodGet(this,_getScrollAhead,_getScrollAhead2).call(this,visiblePages);var preRenderExtra=this._spreadMode!==_ui_utils.SpreadMode.NONE&&this._scrollMode!==_ui_utils.ScrollMode.HORIZONTAL;var pageView=this.renderingQueue.getHighestPriority(visiblePages,this._pages,scrollAhead,preRenderExtra);if(pageView){_classPrivateMethodGet(this,_ensurePdfPageLoaded,_ensurePdfPageLoaded2).call(this,pageView).then(function(){_this8.renderingQueue.renderView(pageView);});return true;}return false;}},{key:"hasEqualPageSizes",get:function get(){var firstPageView=this._pages[0];for(var i=1,ii=this._pages.length;i<ii;++i){var pageView=this._pages[i];if(pageView.width!==firstPageView.width||pageView.height!==firstPageView.height){return false;}}return true;}},{key:"getPagesOverview",value:function getPagesOverview(){var _this9=this;var initialOrientation;return this._pages.map(function(pageView){var viewport=pageView.pdfPage.getViewport({scale:1});var orientation=(0,_ui_utils.isPortraitOrientation)(viewport);if(initialOrientation===undefined){initialOrientation=orientation;}else if(_this9.enablePrintAutoRotate&&orientation!==initialOrientation){return{width:viewport.height,height:viewport.width,rotation:(viewport.rotation-90)%360};}return{width:viewport.width,height:viewport.height,rotation:viewport.rotation};});}},{key:"optionalContentConfigPromise",get:function get(){if(!this.pdfDocument){return Promise.resolve(null);}if(!this._optionalContentConfigPromise){console.error("optionalContentConfigPromise: Not initialized yet.");return this.pdfDocument.getOptionalContentConfig();}return this._optionalContentConfigPromise;},set:function set(promise){if(!(promise instanceof Promise)){throw new Error("Invalid optionalContentConfigPromise: ".concat(promise));}if(!this.pdfDocument){return;}if(!this._optionalContentConfigPromise){return;}this._optionalContentConfigPromise=promise;this.refresh(false,{optionalContentConfigPromise:promise});this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:promise});}},{key:"scrollMode",get:function get(){return this._scrollMode;},set:function set(mode){if(this._scrollMode===mode){return;}if(!(0,_ui_utils.isValidScrollMode)(mode)){throw new Error("Invalid scroll mode: ".concat(mode));}if(this.pagesCount>PagesCountLimit.FORCE_SCROLL_MODE_PAGE){return;}this._previousScrollMode=this._scrollMode;this._scrollMode=mode;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:mode});this._updateScrollMode(this._currentPageNumber);}},{key:"_updateScrollMode",value:function _updateScrollMode(){var pageNumber=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var scrollMode=this._scrollMode,viewer=this.viewer;viewer.classList.toggle("scrollHorizontal",scrollMode===_ui_utils.ScrollMode.HORIZONTAL);viewer.classList.toggle("scrollWrapped",scrollMode===_ui_utils.ScrollMode.WRAPPED);if(!this.pdfDocument||!pageNumber){return;}if(scrollMode===_ui_utils.ScrollMode.PAGE){_classPrivateMethodGet(this,_ensurePageViewVisible,_ensurePageViewVisible2).call(this);}else if(this._previousScrollMode===_ui_utils.ScrollMode.PAGE){this._updateSpreadMode();}if(this._currentScaleValue&&isNaN(this._currentScaleValue)){_classPrivateMethodGet(this,_setScale,_setScale2).call(this,this._currentScaleValue,{noScroll:true});}this._setCurrentPageNumber(pageNumber,true);this.update();}},{key:"spreadMode",get:function get(){return this._spreadMode;},set:function set(mode){if(this._spreadMode===mode){return;}if(!(0,_ui_utils.isValidSpreadMode)(mode)){throw new Error("Invalid spread mode: ".concat(mode));}this._spreadMode=mode;this.eventBus.dispatch("spreadmodechanged",{source:this,mode:mode});this._updateSpreadMode(this._currentPageNumber);}},{key:"_updateSpreadMode",value:function _updateSpreadMode(){var pageNumber=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(!this.pdfDocument){return;}var viewer=this.viewer,pages=this._pages;if(this._scrollMode===_ui_utils.ScrollMode.PAGE){_classPrivateMethodGet(this,_ensurePageViewVisible,_ensurePageViewVisible2).call(this);}else{viewer.textContent="";if(this._spreadMode===_ui_utils.SpreadMode.NONE){var _iterator6=_createForOfIteratorHelper(this._pages),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var pageView=_step6.value;viewer.append(pageView.div);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}else{var parity=this._spreadMode-1;var spread=null;for(var i=0,ii=pages.length;i<ii;++i){if(spread===null){spread=document.createElement("div");spread.className="spread";viewer.append(spread);}else if(i%2===parity){spread=spread.cloneNode(false);viewer.append(spread);}spread.append(pages[i].div);}}}this.hidePagesDependingOnpageViewMode();if(!pageNumber){return;}if(this._currentScaleValue&&isNaN(this._currentScaleValue)){_classPrivateMethodGet(this,_setScale,_setScale2).call(this,this._currentScaleValue,{noScroll:true});}this._setCurrentPageNumber(pageNumber,true);this.update();}},{key:"_getPageAdvance",value:function _getPageAdvance(currentPageNumber){var previous=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.pageViewMode==="book"){return 2;}switch(this._scrollMode){case _ui_utils.ScrollMode.WRAPPED:{var _this$_getVisiblePage=this._getVisiblePages(),views=_this$_getVisiblePage.views,pageLayout=new Map();var _iterator7=_createForOfIteratorHelper(views),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _step7$value=_step7.value,id=_step7$value.id,y=_step7$value.y,percent=_step7$value.percent,widthPercent=_step7$value.widthPercent;if(percent===0||widthPercent<100){continue;}var yArray=pageLayout.get(y);if(!yArray){pageLayout.set(y,yArray||(yArray=[]));}yArray.push(id);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}var _iterator8=_createForOfIteratorHelper(pageLayout.values()),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _yArray=_step8.value;var currentIndex=_yArray.indexOf(currentPageNumber);if(currentIndex===-1){continue;}var numPages=_yArray.length;if(numPages===1){break;}if(previous){for(var i=currentIndex-1,ii=0;i>=ii;i--){var currentId=_yArray[i],expectedId=_yArray[i+1]-1;if(currentId<expectedId){return currentPageNumber-expectedId;}}}else{for(var _i3=currentIndex+1,_ii=numPages;_i3<_ii;_i3++){var _currentId=_yArray[_i3],_expectedId=_yArray[_i3-1]+1;if(_currentId>_expectedId){return _expectedId-currentPageNumber;}}}if(previous){var firstId=_yArray[0];if(firstId<currentPageNumber){return currentPageNumber-firstId+1;}}else{var lastId=_yArray[numPages-1];if(lastId>currentPageNumber){return lastId-currentPageNumber+1;}}break;}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}break;}case _ui_utils.ScrollMode.HORIZONTAL:{break;}case _ui_utils.ScrollMode.PAGE:case _ui_utils.ScrollMode.VERTICAL:{if(this._spreadMode===_ui_utils.SpreadMode.NONE){break;}var parity=this._spreadMode-1;if(previous&&currentPageNumber%2!==parity){break;}else if(!previous&&currentPageNumber%2===parity){break;}var _this$_getVisiblePage2=this._getVisiblePages(),_views=_this$_getVisiblePage2.views,_expectedId2=previous?currentPageNumber-1:currentPageNumber+1;var _iterator9=_createForOfIteratorHelper(_views),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _step9$value=_step9.value,_id=_step9$value.id,_percent2=_step9$value.percent,_widthPercent=_step9$value.widthPercent;if(_id!==_expectedId2){continue;}if(_percent2>0&&_widthPercent===100){return 2;}break;}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}break;}}return 1;}},{key:"nextPage",value:function nextPage(){var currentPageNumber=this._currentPageNumber,pagesCount=this.pagesCount;if(currentPageNumber>=pagesCount){return false;}var advance=this._getPageAdvance(currentPageNumber,false)||1;this.currentPageNumber=Math.min(currentPageNumber+advance,pagesCount);return true;}},{key:"previousPage",value:function previousPage(){var currentPageNumber=this._currentPageNumber;if(currentPageNumber<=1){return false;}var advance=this._getPageAdvance(currentPageNumber,true)||1;this.currentPageNumber=Math.max(currentPageNumber-advance,1);return true;}},{key:"increaseScale",value:function increaseScale(){var _ref7=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},drawingDelay=_ref7.drawingDelay,scaleFactor=_ref7.scaleFactor,steps=_ref7.steps;if(!this.pdfDocument){return;}var newScale=this._currentScale;if(scaleFactor>1){newScale=Math.round(newScale*scaleFactor*100)/100;}else{var _steps;(_steps=steps)!==null&&_steps!==void 0?_steps:steps=1;do{newScale=Math.ceil((newScale*_ui_utils.DEFAULT_SCALE_DELTA).toFixed(2)*10)/10;}while(--steps>0&&newScale<_ui_utils.MAX_SCALE);}var maxScale=Number(PDFViewerApplicationOptions.get("maxZoom"));if(!maxScale){maxScale=_ui_utils.MAX_SCALE;}_classPrivateMethodGet(this,_setScale,_setScale2).call(this,Math.min(maxScale,newScale),{noScroll:false,drawingDelay:drawingDelay});}},{key:"decreaseScale",value:function decreaseScale(){var _ref8=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},drawingDelay=_ref8.drawingDelay,scaleFactor=_ref8.scaleFactor,steps=_ref8.steps;if(!this.pdfDocument){return;}var newScale=this._currentScale;if(scaleFactor>0&&scaleFactor<1){newScale=Math.round(newScale*scaleFactor*100)/100;}else{var _steps2;(_steps2=steps)!==null&&_steps2!==void 0?_steps2:steps=1;do{newScale=Math.floor((newScale/_ui_utils.DEFAULT_SCALE_DELTA).toFixed(2)*10)/10;}while(--steps>0&&newScale>_ui_utils.MIN_SCALE);}var minScale=Number(PDFViewerApplicationOptions.get("minZoom"));if(!minScale){minScale=_ui_utils.MIN_SCALE;}_classPrivateMethodGet(this,_setScale,_setScale2).call(this,Math.max(minScale,newScale),{noScroll:false,drawingDelay:drawingDelay});}},{key:"containerTopLeft",get:function get(){return _classPrivateFieldGet(this,_containerTopLeft)||_classPrivateFieldSet(this,_containerTopLeft,[this.container.offsetTop,this.container.offsetLeft]);}},{key:"annotationEditorMode",get:function get(){return _classPrivateFieldGet(this,_annotationEditorUIManager)?_classPrivateFieldGet(this,_annotationEditorMode):_pdfjsLib.AnnotationEditorType.DISABLE;},set:function set(_ref9){var mode=_ref9.mode,_ref9$editId=_ref9.editId,editId=_ref9$editId===void 0?null:_ref9$editId;if(!_classPrivateFieldGet(this,_annotationEditorUIManager)){throw new Error("The AnnotationEditor is not enabled.");}if(_classPrivateFieldGet(this,_annotationEditorMode)===mode){return;}if(!isValidAnnotationEditorMode(mode)){throw new Error("Invalid AnnotationEditor mode: ".concat(mode));}if(!this.pdfDocument){return;}_classPrivateFieldSet(this,_annotationEditorMode,mode);this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:mode});_classPrivateFieldGet(this,_annotationEditorUIManager).updateMode(mode,editId);}},{key:"annotationEditorParams",set:function set(_ref10){var type=_ref10.type,value=_ref10.value;if(!_classPrivateFieldGet(this,_annotationEditorUIManager)){throw new Error("The AnnotationEditor is not enabled.");}_classPrivateFieldGet(this,_annotationEditorUIManager).updateParams(type,value);}},{key:"refresh",value:function refresh(){var noUpdate=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var updateArgs=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Object.create(null);if(!this.pdfDocument){return;}var _iterator10=_createForOfIteratorHelper(this._pages),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var pageView=_step10.value;pageView.update(updateArgs);}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}if(_classPrivateFieldGet(this,_scaleTimeoutId)!==null){clearTimeout(_classPrivateFieldGet(this,_scaleTimeoutId));_classPrivateFieldSet(this,_scaleTimeoutId,null);}if(!noUpdate){this.update();}}},{key:"getSerializedAnnotations",value:function getSerializedAnnotations(){var rawAnnotations=this.pdfDocument.annotationStorage.getAll();if(rawAnnotations){var annotations=Object.values(rawAnnotations);return annotations.map(function(a){return a.serialize();});}return null;}},{key:"addEditorAnnotation",value:function addEditorAnnotation(data){if(!Array.isArray(data)){data=[data];}_classPrivateFieldGet(this,_annotationEditorUIManager).addSerializedEditor(data,true,true,false);}},{key:"removeEditorAnnotations",value:function removeEditorAnnotations(){var filter=arguments.length>0&&arguments[0]!==undefined?arguments[0]:function(){return true;};_classPrivateFieldGet(this,_annotationEditorUIManager).removeEditors(filter);}},{key:"destroyBookMode",value:function destroyBookMode(){if(this.pageFlip){this.pageFlip.destroy();this.pageFlip=null;}}},{key:"stopRendering",value:function stopRendering(){this._cancelRendering();}}]);return PDFViewer;}();exports.PDFViewer=PDFViewer;function _layerProperties2(){var self=this;return{get annotationEditorUIManager(){return _classPrivateFieldGet(self,_annotationEditorUIManager);},get annotationStorage(){var _self$pdfDocument;return(_self$pdfDocument=self.pdfDocument)===null||_self$pdfDocument===void 0?void 0:_self$pdfDocument.annotationStorage;},get downloadManager(){return self.downloadManager;},get enableScripting(){return!!self._scriptingManager;},get fieldObjectsPromise(){var _self$pdfDocument2;return(_self$pdfDocument2=self.pdfDocument)===null||_self$pdfDocument2===void 0?void 0:_self$pdfDocument2.getFieldObjects();},get findController(){return self.findController;},get hasJSActionsPromise(){var _self$pdfDocument3;return(_self$pdfDocument3=self.pdfDocument)===null||_self$pdfDocument3===void 0?void 0:_self$pdfDocument3.hasJSActions();},get linkService(){return self.linkService;}};}function _initializePermissions2(permissions){var params={annotationEditorMode:_classPrivateFieldGet(this,_annotationEditorMode),annotationMode:_classPrivateFieldGet(this,_annotationMode),textLayerMode:_classPrivateFieldGet(this,_textLayerMode)};if(!permissions){return params;}if(!permissions.includes(_pdfjsLib.PermissionFlag.COPY)&&_classPrivateFieldGet(this,_textLayerMode)===_ui_utils.TextLayerMode.ENABLE){params.textLayerMode=_ui_utils.TextLayerMode.ENABLE_PERMISSIONS;}if(!permissions.includes(_pdfjsLib.PermissionFlag.MODIFY_CONTENTS)){params.annotationEditorMode=_pdfjsLib.AnnotationEditorType.DISABLE;}if(!permissions.includes(_pdfjsLib.PermissionFlag.MODIFY_ANNOTATIONS)&&!permissions.includes(_pdfjsLib.PermissionFlag.FILL_INTERACTIVE_FORMS)&&_classPrivateFieldGet(this,_annotationMode)===_pdfjsLib.AnnotationMode.ENABLE_FORMS){params.annotationMode=_pdfjsLib.AnnotationMode.ENABLE;}return params;}function _onePageRenderedOrForceFetch2(){var _this10=this;if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0){return Promise.resolve();}var visibilityChangePromise=new Promise(function(resolve){_classPrivateFieldSet(_this10,_onVisibilityChange,function(){if(document.visibilityState!=="hidden"){return;}resolve();document.removeEventListener("visibilitychange",_classPrivateFieldGet(_this10,_onVisibilityChange));_classPrivateFieldSet(_this10,_onVisibilityChange,null);});document.addEventListener("visibilitychange",_classPrivateFieldGet(_this10,_onVisibilityChange));});return Promise.race([this._onePageRenderedCapability.promise,visibilityChangePromise]);}function _copyCallback2(textLayerMode,event){var _this11=this;var selection=document.getSelection();var focusNode=selection.focusNode,anchorNode=selection.anchorNode;if(anchorNode&&focusNode&&selection.containsNode(_classPrivateFieldGet(this,_hiddenCopyElement))){if(_classPrivateFieldGet(this,_getAllTextInProgress)||textLayerMode===_ui_utils.TextLayerMode.ENABLE_PERMISSIONS){event.preventDefault();event.stopPropagation();return;}_classPrivateFieldSet(this,_getAllTextInProgress,true);var savedCursor=this.container.style.cursor;this.container.style.cursor="wait";var interruptCopy=function interruptCopy(ev){return _classPrivateFieldSet(_this11,_interruptCopyCondition,ev.key==="Escape");};window.addEventListener("keydown",interruptCopy);this.getAllText().then(/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(text){return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:if(!(text!==null)){_context5.next=3;break;}_context5.next=3;return navigator.clipboard.writeText(text);case 3:case"end":return _context5.stop();}},_callee4);}));return function(_x2){return _ref11.apply(this,arguments);};}()).catch(function(reason){console.warn("Something goes wrong when extracting the text: ".concat(reason.message));}).finally(function(){_classPrivateFieldSet(_this11,_getAllTextInProgress,false);_classPrivateFieldSet(_this11,_interruptCopyCondition,false);window.removeEventListener("keydown",interruptCopy);_this11.container.style.cursor=savedCursor;});event.preventDefault();event.stopPropagation();}}function _ensurePageViewVisible2(){if(this._scrollMode!==_ui_utils.ScrollMode.PAGE){throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");}var pageNumber=this._currentPageNumber,state=_classPrivateFieldGet(this,_scrollModePageState),viewer=this.viewer;viewer.textContent="";state.pages.length=0;if(this._spreadMode===_ui_utils.SpreadMode.NONE&&!this.isInPresentationMode){var pageView=this._pages[pageNumber-1];viewer.append(pageView.div);state.pages.push(pageView);}else{var pageIndexSet=new Set(),parity=this._spreadMode-1;if(parity===-1){pageIndexSet.add(pageNumber-1);}else if(pageNumber%2!==parity){pageIndexSet.add(pageNumber-1);pageIndexSet.add(pageNumber);}else{pageIndexSet.add(pageNumber-2);pageIndexSet.add(pageNumber-1);}var spread=document.createElement("div");spread.className="spread";if(this.isInPresentationMode){var dummyPage=document.createElement("div");dummyPage.className="dummyPage";spread.append(dummyPage);}var _iterator11=_createForOfIteratorHelper(pageIndexSet),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var i=_step11.value;var _pageView=this._pages[i];if(!_pageView){continue;}spread.append(_pageView.div);state.pages.push(_pageView);}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}viewer.append(spread);}state.scrollDown=pageNumber>=state.previousPageNumber;state.previousPageNumber=pageNumber;}function _scrollIntoView2(pageView){var pageSpot=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!pageView){return;}var div=pageView.div,id=pageView.id;if(this._currentPageNumber!==id){this._setCurrentPageNumber(id);}if(this._scrollMode===_ui_utils.ScrollMode.PAGE){_classPrivateMethodGet(this,_ensurePageViewVisible,_ensurePageViewVisible2).call(this);this.update();}if(!pageSpot&&!this.isInPresentationMode){var left=div.offsetLeft+div.clientLeft,right=left+div.clientWidth;var _this$container2=this.container,scrollLeft=_this$container2.scrollLeft,clientWidth=_this$container2.clientWidth;if(this._scrollMode===_ui_utils.ScrollMode.HORIZONTAL||left<scrollLeft||right>scrollLeft+clientWidth){pageSpot={left:0,top:0};}}(0,_ui_utils.scrollIntoView)(div,pageSpot,false,this.pageViewMode==="infinite-scroll");if(!this._currentScaleValue&&this._location){this._location=null;}}function _isSameScale2(newScale){return newScale===this._currentScale||Math.abs(newScale-this._currentScale)<1e-15;}function _setScaleUpdatePages2(newScale,newValue,_ref12){var _this12=this;var _ref12$noScroll=_ref12.noScroll,noScroll=_ref12$noScroll===void 0?false:_ref12$noScroll,_ref12$preset=_ref12.preset,preset=_ref12$preset===void 0?false:_ref12$preset,_ref12$drawingDelay=_ref12.drawingDelay,drawingDelay=_ref12$drawingDelay===void 0?-1:_ref12$drawingDelay;var previousScale=isNaN(Number(this.currentScale))?undefined:Number(this.currentScale);var previousScaleValue=this.currentScaleValue;this._currentScaleValue=newValue.toString();if(_classPrivateMethodGet(this,_isSameScale,_isSameScale2).call(this,newScale)){if(preset){this.eventBus.dispatch("scalechanging",{source:this,scale:newScale,presetValue:newValue,previousScale:previousScale,previousPresetValue:previousScaleValue});}return;}this.viewer.style.setProperty("--scale-factor",newScale*_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS);var postponeDrawing=drawingDelay>=0&&drawingDelay<1000;this.refresh(true,{scale:newScale,drawingDelay:postponeDrawing?drawingDelay:-1});if(postponeDrawing){_classPrivateFieldSet(this,_scaleTimeoutId,setTimeout(function(){_classPrivateFieldSet(_this12,_scaleTimeoutId,null);_this12.refresh();},drawingDelay));}this._currentScale=newScale;if(!noScroll){var page=this._currentPageNumber,dest;if(this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)){page=this._location.pageNumber;dest=[null,{name:"XYZ"},this._location.left,this._location.top,null];}this.scrollPageIntoView({pageNumber:page,destArray:dest,allowNegativeOffset:true});}this.eventBus.dispatch("scalechanging",{source:this,scale:newScale,presetValue:preset?newValue:undefined,previousScale:previousScale,previousPresetValue:previousScaleValue});if(this.defaultRenderingQueue){this.update();}}function _get_pageWidthScaleFactor(){if(this._spreadMode!==_ui_utils.SpreadMode.NONE&&this._scrollMode!==_ui_utils.ScrollMode.HORIZONTAL){return 2;}return 1;}function _setScale2(value,options){if(!value){value="auto";}var scale=parseFloat(value);if(this._currentScale===scale){return;}if(scale>0){options.preset=false;_classPrivateMethodGet(this,_setScaleUpdatePages,_setScaleUpdatePages2).call(this,scale,value,options);}else{var currentPage=this._pages[this._currentPageNumber-1];if(!currentPage){return;}var hPadding=_ui_utils.SCROLLBAR_PADDING,vPadding=_ui_utils.VERTICAL_PADDING;if(this.isInPresentationMode){hPadding=vPadding=4;if(this._spreadMode!==_ui_utils.SpreadMode.NONE){hPadding*=2;}}else if(this.removePageBorders){hPadding=vPadding=0;}else if(this._scrollMode===_ui_utils.ScrollMode.HORIZONTAL){var _ref13=[vPadding,hPadding];hPadding=_ref13[0];vPadding=_ref13[1];}var pageWidthScale=(this.container.clientWidth-hPadding)/currentPage.width*currentPage.scale/_classPrivateFieldGet(this,_pageWidthScaleFactor);var pageHeightScale=(this.container.clientHeight-vPadding)/currentPage.height*currentPage.scale;switch(value){case"page-actual":scale=1;break;case"page-width":scale=pageWidthScale;break;case"page-height":scale=pageHeightScale;break;case"page-fit":scale=Math.min(pageWidthScale,pageHeightScale);break;case"auto":var horizontalScale=(0,_ui_utils.isPortraitOrientation)(currentPage)?pageWidthScale:Math.min(pageHeightScale,pageWidthScale);scale=Math.min(_ui_utils.MAX_AUTO_SCALE,horizontalScale);break;default:globalThis.ngxConsole.error("#setScale: \"".concat(value,"\" is an unknown zoom value."));return;}options.preset=true;_classPrivateMethodGet(this,_setScaleUpdatePages,_setScaleUpdatePages2).call(this,scale,value,options);}}function _resetCurrentPageView2(){var pageView=this._pages[this._currentPageNumber-1];if(this.isInPresentationMode){_classPrivateMethodGet(this,_setScale,_setScale2).call(this,this._currentScaleValue,{noScroll:true});}_classPrivateMethodGet(this,_scrollIntoView,_scrollIntoView2).call(this,pageView);}function _ensurePdfPageLoaded2(_x3){return _ensurePdfPageLoaded3.apply(this,arguments);}function _ensurePdfPageLoaded3(){_ensurePdfPageLoaded3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(pageView){var _this$linkService$_ca,_this$linkService,pdfPage;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!pageView.pdfPage){_context6.next=2;break;}return _context6.abrupt("return",pageView.pdfPage);case 2:_context6.prev=2;_context6.next=5;return this.pdfDocument.getPage(pageView.id);case 5:pdfPage=_context6.sent;if(!pageView.pdfPage){pageView.setPdfPage(pdfPage);}if(!((_this$linkService$_ca=(_this$linkService=this.linkService)._cachedPageNumber)!==null&&_this$linkService$_ca!==void 0&&_this$linkService$_ca.call(_this$linkService,pdfPage.ref))){this.linkService.cachePageRef(pageView.id,pdfPage.ref);}return _context6.abrupt("return",pdfPage);case 11:_context6.prev=11;_context6.t0=_context6["catch"](2);console.error("Unable to get page for page view",_context6.t0);return _context6.abrupt("return",null);case 15:case"end":return _context6.stop();}},_callee5,this,[[2,11]]);}));return _ensurePdfPageLoaded3.apply(this,arguments);}function _getScrollAhead2(visible){var _visible$first,_visible$last;if(((_visible$first=visible.first)===null||_visible$first===void 0?void 0:_visible$first.id)===1){return true;}else if(((_visible$last=visible.last)===null||_visible$last===void 0?void 0:_visible$last.id)===this.pagesCount){return false;}switch(this._scrollMode){case _ui_utils.ScrollMode.PAGE:return _classPrivateFieldGet(this,_scrollModePageState).scrollDown;case _ui_utils.ScrollMode.HORIZONTAL:return this.scroll.right;}return this.scroll.down;}function _updateContainerHeightCss2(){var height=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.container.clientHeight;if(height!==_classPrivateFieldGet(this,_previousContainerHeight)){_classPrivateFieldSet(this,_previousContainerHeight,height);_ui_utils.docStyle.setProperty("--viewer-container-height","".concat(height,"px"));}}function _resizeObserverCallback2(entries){var _iterator12=_createForOfIteratorHelper(entries),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var entry=_step12.value;if(entry.target===this.container){_classPrivateMethodGet(this,_updateContainerHeightCss,_updateContainerHeightCss2).call(this,Math.floor(entry.borderBoxSize[0].blockSize));_classPrivateFieldSet(this,_containerTopLeft,null);break;}}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}}

/***/ }),
/* 326 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $find = (__webpack_require__(105).find);
var addToUnscopables = __webpack_require__(46);
var FIND = 'find';
var SKIPS_HOLES = true;
if (FIND in [])
 Array(1)[FIND](function () {
  SKIPS_HOLES = false;
 });
$({
 target: 'Array',
 proto: true,
 forced: SKIPS_HOLES
}, {
 find: function find(callbackfn) {
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
 }
});
addToUnscopables(FIND);

/***/ }),
/* 327 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var uncurryThis = __webpack_require__(107);
var $indexOf = (__webpack_require__(51).indexOf);
var arrayMethodIsStrict = __webpack_require__(184);
var nativeIndexOf = uncurryThis([].indexOf);
var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
$({
 target: 'Array',
 proto: true,
 forced: FORCED
}, {
 indexOf: function indexOf(searchElement) {
  var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  return NEGATIVE_ZERO ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf(this, searchElement, fromIndex);
 }
});

/***/ }),
/* 328 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}__webpack_require__(88);__webpack_require__(142);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(126);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.NullL10n=void 0;exports.getL10nFallback=getL10nFallback;__webpack_require__(206);__webpack_require__(248);__webpack_require__(251);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var DEFAULT_L10N_STRINGS={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image"};{DEFAULT_L10N_STRINGS.print_progress_percent="{{progress}}%";}function getL10nFallback(key,args){switch(key){case"find_match_count":key="find_match_count[".concat(args.total===1?"one":"other","]");break;case"find_match_count_limit":key="find_match_count_limit[".concat(args.limit===1?"one":"other","]");break;}return DEFAULT_L10N_STRINGS[key]||"";}function formatL10nValue(text,args){if(!args){return text;}return text.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,function(all,name){return name in args?args[name]:"{{"+name+"}}";});}var NullL10n={getLanguage:function getLanguage(){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:return _context.abrupt("return","en-us");case 1:case"end":return _context.stop();}},_callee);}))();},getDirection:function getDirection(){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return","ltr");case 1:case"end":return _context2.stop();}},_callee2);}))();},get:function get(key){var _arguments=arguments;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var args,fallback;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:args=_arguments.length>1&&_arguments[1]!==undefined?_arguments[1]:null;fallback=_arguments.length>2&&_arguments[2]!==undefined?_arguments[2]:getL10nFallback(key,args);return _context3.abrupt("return",formatL10nValue(fallback,args));case 3:case"end":return _context3.stop();}},_callee3);}))();},translate:function translate(element){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:case"end":return _context4.stop();}},_callee4);}))();}};exports.NullL10n=NullL10n;

/***/ }),
/* 329 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(1);__webpack_require__(190);__webpack_require__(122);__webpack_require__(123);__webpack_require__(192);__webpack_require__(219);__webpack_require__(299);__webpack_require__(196);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PageFlip=void 0;__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(126);__webpack_require__(138);__webpack_require__(330);__webpack_require__(179);__webpack_require__(327);__webpack_require__(216);__webpack_require__(185);__webpack_require__(222);__webpack_require__(308);__webpack_require__(309);__webpack_require__(206);__webpack_require__(310);__webpack_require__(199);__webpack_require__(42);__webpack_require__(240);__webpack_require__(92);__webpack_require__(95);__webpack_require__(217);function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var Page=/*#__PURE__*/function(){function Page(render,density){_classCallCheck(this,Page);this.state={angle:0,area:[],position:{x:0,y:0},hardAngle:0,hardDrawingAngle:0};this.createdDensity=density;this.nowDrawingDensity=this.createdDensity;this.render=render;}_createClass(Page,[{key:"setDensity",value:function setDensity(density){this.createdDensity=density;this.nowDrawingDensity=density;}},{key:"setDrawingDensity",value:function setDrawingDensity(density){this.nowDrawingDensity=density;}},{key:"setPosition",value:function setPosition(pagePos){this.state.position=pagePos;}},{key:"setAngle",value:function setAngle(angle){this.state.angle=angle;}},{key:"setArea",value:function setArea(area){this.state.area=area;}},{key:"setHardDrawingAngle",value:function setHardDrawingAngle(angle){this.state.hardDrawingAngle=angle;}},{key:"setHardAngle",value:function setHardAngle(angle){this.state.hardAngle=angle;this.state.hardDrawingAngle=angle;}},{key:"setOrientation",value:function setOrientation(orientation){this.orientation=orientation;}},{key:"getDrawingDensity",value:function getDrawingDensity(){return this.nowDrawingDensity;}},{key:"getDensity",value:function getDensity(){return this.createdDensity;}},{key:"getHardAngle",value:function getHardAngle(){return this.state.hardAngle;}}]);return Page;}();var ImagePage=/*#__PURE__*/function(_Page){_inherits(ImagePage,_Page);var _super=_createSuper(ImagePage);function ImagePage(render,href,density){var _this;_classCallCheck(this,ImagePage);_this=_super.call(this,render,density);_this.image=null;_this.isLoad=false;_this.loadingAngle=0;_this.image=new Image();_this.image.src=href;return _this;}_createClass(ImagePage,[{key:"draw",value:function draw(tempDensity){var options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true}:undefined;var ctx=canvas.getContext("2d",options);var pagePos=this.render.convertToGlobal(this.state.position);var pageWidth=this.render.getRect().pageWidth;var pageHeight=this.render.getRect().height;ctx.save();ctx.translate(pagePos.x,pagePos.y);ctx.beginPath();var _iterator=_createForOfIteratorHelper(this.state.area),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var p=_step.value;if(p!==null){p=this.render.convertToGlobal(p);ctx.lineTo(p.x-pagePos.x,p.y-pagePos.y);}}}catch(err){_iterator.e(err);}finally{_iterator.f();}ctx.rotate(this.state.angle);ctx.clip();if(!this.isLoad){this.drawLoader(ctx,{x:0,y:0},pageWidth,pageHeight);}else{ctx.drawImage(this.image,0,0,pageWidth,pageHeight);}ctx.restore();}},{key:"simpleDraw",value:function simpleDraw(orient){var rect=this.render.getRect();var options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true}:undefined;var ctx=canvas.getContext("2d",options);var pageWidth=rect.pageWidth;var pageHeight=rect.height;var x=orient===1?rect.left+rect.pageWidth:rect.left;var y=rect.top;if(!this.isLoad){this.drawLoader(ctx,{x:x,y:y},pageWidth,pageHeight);}else{ctx.drawImage(this.image,x,y,pageWidth,pageHeight);}}},{key:"drawLoader",value:function drawLoader(ctx,shiftPos,pageWidth,pageHeight){ctx.beginPath();ctx.strokeStyle='rgb(200, 200, 200)';ctx.fillStyle='rgb(255, 255, 255)';ctx.lineWidth=1;ctx.rect(shiftPos.x+1,shiftPos.y+1,pageWidth-1,pageHeight-1);ctx.stroke();ctx.fill();var middlePoint={x:shiftPos.x+pageWidth/2,y:shiftPos.y+pageHeight/2};ctx.beginPath();ctx.lineWidth=10;ctx.arc(middlePoint.x,middlePoint.y,20,this.loadingAngle,3*Math.PI/2+this.loadingAngle);ctx.stroke();ctx.closePath();this.loadingAngle+=0.07;if(this.loadingAngle>=2*Math.PI){this.loadingAngle=0;}}},{key:"load",value:function load(){var _this2=this;if(!this.isLoad)this.image.onload=function(){_this2.isLoad=true;};}},{key:"newTemporaryCopy",value:function newTemporaryCopy(){return this;}},{key:"getTemporaryCopy",value:function getTemporaryCopy(){return this;}},{key:"hideTemporaryCopy",value:function hideTemporaryCopy(){}}]);return ImagePage;}(Page);var PageCollection=/*#__PURE__*/function(){function PageCollection(app,render){_classCallCheck(this,PageCollection);this.pages=[];this.currentPageIndex=0;this.currentSpreadIndex=0;this.landscapeSpread=[];this.portraitSpread=[];this.render=render;this.app=app;this.currentPageIndex=0;this.isShowCover=this.app.getSettings().showCover;}_createClass(PageCollection,[{key:"destroy",value:function destroy(){this.pages=[];}},{key:"createSpread",value:function createSpread(){this.landscapeSpread=[];this.portraitSpread=[];for(var i=0;i<this.pages.length;i++){this.portraitSpread.push([i]);}var start=0;if(this.isShowCover){this.pages[0].setDensity("hard");this.landscapeSpread.push([start]);start++;}for(var _i=start;_i<this.pages.length;_i+=2){if(_i<this.pages.length-1)this.landscapeSpread.push([_i,_i+1]);else{this.landscapeSpread.push([_i]);this.pages[_i].setDensity("hard");}}}},{key:"getSpread",value:function getSpread(){return this.render.getOrientation()==="landscape"?this.landscapeSpread:this.portraitSpread;}},{key:"getSpreadIndexByPage",value:function getSpreadIndexByPage(pageNum){var spread=this.getSpread();for(var i=0;i<spread.length;i++)if(pageNum===spread[i][0]||pageNum===spread[i][1])return i;return null;}},{key:"getPageCount",value:function getPageCount(){return this.pages.length;}},{key:"getPages",value:function getPages(){return this.pages;}},{key:"getPage",value:function getPage(pageIndex){if(pageIndex>=0&&pageIndex<this.pages.length){return this.pages[pageIndex];}throw new Error('Invalid page number');}},{key:"nextBy",value:function nextBy(current){var idx=this.pages.indexOf(current);if(idx<this.pages.length-1)return this.pages[idx+1];return null;}},{key:"prevBy",value:function prevBy(current){var idx=this.pages.indexOf(current);if(idx>0)return this.pages[idx-1];return null;}},{key:"getFlippingPage",value:function getFlippingPage(direction){var current=this.currentSpreadIndex;if(this.render.getOrientation()==="portrait"){return direction===0?this.pages[current].newTemporaryCopy():this.pages[current-1];}else{var spread=direction===0?this.getSpread()[current+1]:this.getSpread()[current-1];if(spread.length===1)return this.pages[spread[0]];return direction===0?this.pages[spread[0]]:this.pages[spread[1]];}}},{key:"getBottomPage",value:function getBottomPage(direction){var current=this.currentSpreadIndex;if(this.render.getOrientation()==="portrait"){return direction===0?this.pages[current+1]:this.pages[current-1];}else{var spread=direction===0?this.getSpread()[current+1]:this.getSpread()[current-1];if(spread.length===1)return this.pages[spread[0]];return direction===0?this.pages[spread[1]]:this.pages[spread[0]];}}},{key:"showNext",value:function showNext(){if(this.currentSpreadIndex<this.getSpread().length){this.currentSpreadIndex++;this.showSpread();}}},{key:"showPrev",value:function showPrev(){if(this.currentSpreadIndex>0){this.currentSpreadIndex--;this.showSpread();}}},{key:"getCurrentPageIndex",value:function getCurrentPageIndex(){return this.currentPageIndex;}},{key:"show",value:function show(){var pageNum=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(pageNum===null)pageNum=this.currentPageIndex;if(pageNum<0||pageNum>=this.pages.length)return;var spreadIndex=this.getSpreadIndexByPage(pageNum);if(spreadIndex!==null){this.currentSpreadIndex=spreadIndex;this.showSpread();}}},{key:"getCurrentSpreadIndex",value:function getCurrentSpreadIndex(){return this.currentSpreadIndex;}},{key:"setCurrentSpreadIndex",value:function setCurrentSpreadIndex(newIndex){if(newIndex>=0&&newIndex<this.getSpread().length){this.currentSpreadIndex=newIndex;}else{throw new Error('Invalid page');}}},{key:"showSpread",value:function showSpread(){var spread=this.getSpread()[this.currentSpreadIndex];if(spread.length===2){this.render.setLeftPage(this.pages[spread[0]]);this.render.setRightPage(this.pages[spread[1]]);}else{if(this.render.getOrientation()==="landscape"){if(spread[0]===this.pages.length-1){this.render.setLeftPage(this.pages[spread[0]]);this.render.setRightPage(null);}else{this.render.setLeftPage(null);this.render.setRightPage(this.pages[spread[0]]);}}else{this.render.setLeftPage(null);this.render.setRightPage(this.pages[spread[0]]);}}this.currentPageIndex=spread[0];this.app.updatePageIndex(this.currentPageIndex);}}]);return PageCollection;}();var ImagePageCollection=/*#__PURE__*/function(_PageCollection){_inherits(ImagePageCollection,_PageCollection);var _super2=_createSuper(ImagePageCollection);function ImagePageCollection(app,render,imagesHref){var _this3;_classCallCheck(this,ImagePageCollection);_this3=_super2.call(this,app,render);_this3.imagesHref=imagesHref;return _this3;}_createClass(ImagePageCollection,[{key:"load",value:function load(){var _iterator2=_createForOfIteratorHelper(this.imagesHref),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var href=_step2.value;var page=new ImagePage(this.render,href,"soft");page.load();this.pages.push(page);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}this.createSpread();}}]);return ImagePageCollection;}(PageCollection);var Helper=/*#__PURE__*/function(){function Helper(){_classCallCheck(this,Helper);}_createClass(Helper,null,[{key:"GetDistanceBetweenTwoPoint",value:function GetDistanceBetweenTwoPoint(point1,point2){if(point1===null||point2===null){return Infinity;}return Math.sqrt(Math.pow(point2.x-point1.x,2)+Math.pow(point2.y-point1.y,2));}},{key:"GetSegmentLength",value:function GetSegmentLength(segment){return Helper.GetDistanceBetweenTwoPoint(segment[0],segment[1]);}},{key:"GetAngleBetweenTwoLine",value:function GetAngleBetweenTwoLine(line1,line2){var A1=line1[0].y-line1[1].y;var A2=line2[0].y-line2[1].y;var B1=line1[1].x-line1[0].x;var B2=line2[1].x-line2[0].x;return Math.acos((A1*A2+B1*B2)/(Math.sqrt(A1*A1+B1*B1)*Math.sqrt(A2*A2+B2*B2)));}},{key:"PointInRect",value:function PointInRect(rect,pos){if(pos===null){return null;}if(pos.x>=rect.left&&pos.x<=rect.width+rect.left&&pos.y>=rect.top&&pos.y<=rect.top+rect.height){return pos;}return null;}},{key:"GetRotatedPoint",value:function GetRotatedPoint(transformedPoint,startPoint,angle){return{x:transformedPoint.x*Math.cos(angle)+transformedPoint.y*Math.sin(angle)+startPoint.x,y:transformedPoint.y*Math.cos(angle)-transformedPoint.x*Math.sin(angle)+startPoint.y};}},{key:"LimitPointToCircle",value:function LimitPointToCircle(startPoint,radius,limitedPoint){if(Helper.GetDistanceBetweenTwoPoint(startPoint,limitedPoint)<=radius){return limitedPoint;}var a=startPoint.x;var b=startPoint.y;var n=limitedPoint.x;var m=limitedPoint.y;var x=Math.sqrt(Math.pow(radius,2)*Math.pow(a-n,2)/(Math.pow(a-n,2)+Math.pow(b-m,2)))+a;if(limitedPoint.x<0){x*=-1;}var y=(x-a)*(b-m)/(a-n)+b;if(a-n+b===0){y=radius;}return{x:x,y:y};}},{key:"GetIntersectBetweenTwoSegment",value:function GetIntersectBetweenTwoSegment(rectBorder,one,two){return Helper.PointInRect(rectBorder,Helper.GetIntersectBeetwenTwoLine(one,two));}},{key:"GetIntersectBeetwenTwoLine",value:function GetIntersectBeetwenTwoLine(one,two){var A1=one[0].y-one[1].y;var A2=two[0].y-two[1].y;var B1=one[1].x-one[0].x;var B2=two[1].x-two[0].x;var C1=one[0].x*one[1].y-one[1].x*one[0].y;var C2=two[0].x*two[1].y-two[1].x*two[0].y;var det1=A1*C2-A2*C1;var det2=B1*C2-B2*C1;var x=-((C1*B2-C2*B1)/(A1*B2-A2*B1));var y=-((A1*C2-A2*C1)/(A1*B2-A2*B1));if(isFinite(x)&&isFinite(y)){return{x:x,y:y};}else{if(Math.abs(det1-det2)<0.1)throw new Error('Segment included');}return null;}},{key:"GetCordsFromTwoPoint",value:function GetCordsFromTwoPoint(pointOne,pointTwo){var sizeX=Math.abs(pointOne.x-pointTwo.x);var sizeY=Math.abs(pointOne.y-pointTwo.y);var lengthLine=Math.max(sizeX,sizeY);var result=[pointOne];function getCord(c1,c2,size,length,index){if(c2>c1){return c1+index*(size/length);}else if(c2<c1){return c1-index*(size/length);}return c1;}for(var i=1;i<=lengthLine;i+=1){result.push({x:getCord(pointOne.x,pointTwo.x,sizeX,lengthLine,i),y:getCord(pointOne.y,pointTwo.y,sizeY,lengthLine,i)});}return result;}}]);return Helper;}();var HTMLPage=/*#__PURE__*/function(_Page2){_inherits(HTMLPage,_Page2);var _super3=_createSuper(HTMLPage);function HTMLPage(render,element,density){var _this4;_classCallCheck(this,HTMLPage);_this4=_super3.call(this,render,density);_this4.copiedElement=null;_this4.temporaryCopy=null;_this4.isLoad=false;_this4.element=element;_this4.element.classList.add('stf__item');_this4.element.classList.add('--'+density);return _this4;}_createClass(HTMLPage,[{key:"newTemporaryCopy",value:function newTemporaryCopy(){if(this.nowDrawingDensity==="hard"){return this;}if(this.temporaryCopy===null){this.copiedElement=this.element.cloneNode(true);this.element.parentElement.appendChild(this.copiedElement);this.temporaryCopy=new HTMLPage(this.render,this.copiedElement,this.nowDrawingDensity);}return this.getTemporaryCopy();}},{key:"getTemporaryCopy",value:function getTemporaryCopy(){return this.temporaryCopy;}},{key:"hideTemporaryCopy",value:function hideTemporaryCopy(){if(this.temporaryCopy!==null){this.copiedElement.remove();this.copiedElement=null;this.temporaryCopy=null;}}},{key:"draw",value:function draw(tempDensity){var density=tempDensity?tempDensity:this.nowDrawingDensity;var pagePos=this.render.convertToGlobal(this.state.position);var pageWidth=this.render.getRect().pageWidth;var pageHeight=this.render.getRect().height;this.element.classList.remove('--simple');var commonStyle="\n            position: absolute;\n            display: block;\n            z-index: ".concat(this.element.style.zIndex,";\n            left: 0;\n            top: 0;\n            width: ").concat(pageWidth,"px;\n            height: ").concat(pageHeight,"px;\n        ");density==="hard"?this.drawHard(commonStyle):this.drawSoft(pagePos,commonStyle);}},{key:"drawHard",value:function drawHard(){var commonStyle=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var pos=this.render.getRect().left+this.render.getRect().width/2;var angle=this.state.hardDrawingAngle;var newStyle=commonStyle+"\n                backface-visibility: hidden;\n                -webkit-backface-visibility: hidden;\n                clip-path: none;\n                -webkit-clip-path: none;\n            "+(this.orientation===0?"transform-origin: ".concat(this.render.getRect().pageWidth,"px 0;\n                   transform: translate3d(0, 0, 0) rotateY(").concat(angle,"deg);"):"transform-origin: 0 0;\n                   transform: translate3d(".concat(pos,"px, 0, 0) rotateY(").concat(angle,"deg);"));this.element.style.cssText=newStyle;}},{key:"drawSoft",value:function drawSoft(position){var commonStyle=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'';var polygon='polygon( ';var _iterator3=_createForOfIteratorHelper(this.state.area),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var p=_step3.value;if(p!==null){var g=this.render.getDirection()===1?{x:-p.x+this.state.position.x,y:p.y-this.state.position.y}:{x:p.x-this.state.position.x,y:p.y-this.state.position.y};g=Helper.GetRotatedPoint(g,{x:0,y:0},this.state.angle);polygon+=g.x+'px '+g.y+'px, ';}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}polygon=polygon.slice(0,-2);polygon+=')';var newStyle=commonStyle+"transform-origin: 0 0; clip-path: ".concat(polygon,"; -webkit-clip-path: ").concat(polygon,";")+(this.render.isSafari()&&this.state.angle===0?"transform: translate(".concat(position.x,"px, ").concat(position.y,"px);"):"transform: translate3d(".concat(position.x,"px, ").concat(position.y,"px, 0) rotate(").concat(this.state.angle,"rad);"));this.element.style.cssText=newStyle;}},{key:"simpleDraw",value:function simpleDraw(orient){var rect=this.render.getRect();var pageWidth=rect.pageWidth;var pageHeight=rect.height;var x=orient===1?rect.left+rect.pageWidth:rect.left;var y=rect.top;this.element.classList.add('--simple');this.element.style.cssText="\n            position: absolute;\n            display: block;\n            height: ".concat(pageHeight,"px;\n            left: ").concat(x,"px;\n            top: ").concat(y,"px;\n            width: ").concat(pageWidth,"px;\n            z-index: ").concat(this.render.getSettings().startZIndex+1,";");}},{key:"getElement",value:function getElement(){return this.element;}},{key:"load",value:function load(){this.isLoad=true;}},{key:"setOrientation",value:function setOrientation(orientation){_get(_getPrototypeOf(HTMLPage.prototype),"setOrientation",this).call(this,orientation);this.element.classList.remove('--left','--right');this.element.classList.add(orientation===1?'--right':'--left');}},{key:"setDrawingDensity",value:function setDrawingDensity(density){this.element.classList.remove('--soft','--hard');this.element.classList.add('--'+density);_get(_getPrototypeOf(HTMLPage.prototype),"setDrawingDensity",this).call(this,density);}}]);return HTMLPage;}(Page);var HTMLPageCollection=/*#__PURE__*/function(_PageCollection2){_inherits(HTMLPageCollection,_PageCollection2);var _super4=_createSuper(HTMLPageCollection);function HTMLPageCollection(app,render,element,items){var _this5;_classCallCheck(this,HTMLPageCollection);_this5=_super4.call(this,app,render);_this5.element=element;_this5.pagesElement=items;return _this5;}_createClass(HTMLPageCollection,[{key:"load",value:function load(){var _iterator4=_createForOfIteratorHelper(this.pagesElement),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var pageElement=_step4.value;var page=new HTMLPage(this.render,pageElement,pageElement.dataset['density']==='hard'?"hard":"soft");page.load();this.pages.push(page);}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}this.createSpread();}}]);return HTMLPageCollection;}(PageCollection);var FlipCalculation=/*#__PURE__*/function(){function FlipCalculation(direction,corner,pageWidth,pageHeight){_classCallCheck(this,FlipCalculation);this.direction=direction;this.corner=corner;this.topIntersectPoint=null;this.sideIntersectPoint=null;this.bottomIntersectPoint=null;this.pageWidth=parseInt(pageWidth,10);this.pageHeight=parseInt(pageHeight,10);}_createClass(FlipCalculation,[{key:"calc",value:function calc(localPos){try{this.position=this.calcAngleAndPosition(localPos);this.calculateIntersectPoint(this.position);return true;}catch(e){return false;}}},{key:"getFlippingClipArea",value:function getFlippingClipArea(){var result=[];var clipBottom=false;result.push(this.rect.topLeft);result.push(this.topIntersectPoint);if(this.sideIntersectPoint===null){clipBottom=true;}else{result.push(this.sideIntersectPoint);if(this.bottomIntersectPoint===null)clipBottom=false;}result.push(this.bottomIntersectPoint);if(clipBottom||this.corner==="bottom"){result.push(this.rect.bottomLeft);}return result;}},{key:"getBottomClipArea",value:function getBottomClipArea(){var result=[];result.push(this.topIntersectPoint);if(this.corner==="top"){result.push({x:this.pageWidth,y:0});}else{if(this.topIntersectPoint!==null){result.push({x:this.pageWidth,y:0});}result.push({x:this.pageWidth,y:this.pageHeight});}if(this.sideIntersectPoint!==null){if(Helper.GetDistanceBetweenTwoPoint(this.sideIntersectPoint,this.topIntersectPoint)>=10)result.push(this.sideIntersectPoint);}else{if(this.corner==="top"){result.push({x:this.pageWidth,y:this.pageHeight});}}result.push(this.bottomIntersectPoint);result.push(this.topIntersectPoint);return result;}},{key:"getAngle",value:function getAngle(){if(this.direction===0){return-this.angle;}return this.angle;}},{key:"getRect",value:function getRect(){return this.rect;}},{key:"getPosition",value:function getPosition(){return this.position;}},{key:"getActiveCorner",value:function getActiveCorner(){if(this.direction===0){return this.rect.topLeft;}return this.rect.topRight;}},{key:"getDirection",value:function getDirection(){return this.direction;}},{key:"getFlippingProgress",value:function getFlippingProgress(){return Math.abs((this.position.x-this.pageWidth)/(2*this.pageWidth)*100);}},{key:"getCorner",value:function getCorner(){return this.corner;}},{key:"getBottomPagePosition",value:function getBottomPagePosition(){if(this.direction===1){return{x:this.pageWidth,y:0};}return{x:0,y:0};}},{key:"getShadowStartPoint",value:function getShadowStartPoint(){if(this.corner==="top"){return this.topIntersectPoint;}else{if(this.sideIntersectPoint!==null)return this.sideIntersectPoint;return this.topIntersectPoint;}}},{key:"getShadowAngle",value:function getShadowAngle(){var angle=Helper.GetAngleBetweenTwoLine(this.getSegmentToShadowLine(),[{x:0,y:0},{x:this.pageWidth,y:0}]);if(this.direction===0){return angle;}return Math.PI-angle;}},{key:"calcAngleAndPosition",value:function calcAngleAndPosition(pos){var result=pos;this.updateAngleAndGeometry(result);if(this.corner==="top"){result=this.checkPositionAtCenterLine(result,{x:0,y:0},{x:0,y:this.pageHeight});}else{result=this.checkPositionAtCenterLine(result,{x:0,y:this.pageHeight},{x:0,y:0});}if(Math.abs(result.x-this.pageWidth)<1&&Math.abs(result.y)<1){throw new Error('Point is too small');}return result;}},{key:"updateAngleAndGeometry",value:function updateAngleAndGeometry(pos){this.angle=this.calculateAngle(pos);this.rect=this.getPageRect(pos);}},{key:"calculateAngle",value:function calculateAngle(pos){var left=this.pageWidth-pos.x+1;var top=this.corner==="bottom"?this.pageHeight-pos.y:pos.y;var angle=2*Math.acos(left/Math.sqrt(top*top+left*left));if(top<0)angle=-angle;var da=Math.PI-angle;if(!isFinite(angle)||da>=0&&da<0.003)throw new Error('The G point is too small');if(this.corner==="bottom")angle=-angle;return angle;}},{key:"getPageRect",value:function getPageRect(localPos){if(this.corner==="top"){return this.getRectFromBasePoint([{x:0,y:0},{x:this.pageWidth,y:0},{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}],localPos);}return this.getRectFromBasePoint([{x:0,y:-this.pageHeight},{x:this.pageWidth,y:-this.pageHeight},{x:0,y:0},{x:this.pageWidth,y:0}],localPos);}},{key:"getRectFromBasePoint",value:function getRectFromBasePoint(points,localPos){return{topLeft:this.getRotatedPoint(points[0],localPos),topRight:this.getRotatedPoint(points[1],localPos),bottomLeft:this.getRotatedPoint(points[2],localPos),bottomRight:this.getRotatedPoint(points[3],localPos)};}},{key:"getRotatedPoint",value:function getRotatedPoint(transformedPoint,startPoint){return{x:transformedPoint.x*Math.cos(this.angle)+transformedPoint.y*Math.sin(this.angle)+startPoint.x,y:transformedPoint.y*Math.cos(this.angle)-transformedPoint.x*Math.sin(this.angle)+startPoint.y};}},{key:"calculateIntersectPoint",value:function calculateIntersectPoint(pos){var boundRect={left:-1,top:-1,width:this.pageWidth+2,height:this.pageHeight+2};if(this.corner==="top"){this.topIntersectPoint=Helper.GetIntersectBetweenTwoSegment(boundRect,[pos,this.rect.topRight],[{x:0,y:0},{x:this.pageWidth,y:0}]);this.sideIntersectPoint=Helper.GetIntersectBetweenTwoSegment(boundRect,[pos,this.rect.bottomLeft],[{x:this.pageWidth,y:0},{x:this.pageWidth,y:this.pageHeight}]);this.bottomIntersectPoint=Helper.GetIntersectBetweenTwoSegment(boundRect,[this.rect.bottomLeft,this.rect.bottomRight],[{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}]);}else{this.topIntersectPoint=Helper.GetIntersectBetweenTwoSegment(boundRect,[this.rect.topLeft,this.rect.topRight],[{x:0,y:0},{x:this.pageWidth,y:0}]);this.sideIntersectPoint=Helper.GetIntersectBetweenTwoSegment(boundRect,[pos,this.rect.topLeft],[{x:this.pageWidth,y:0},{x:this.pageWidth,y:this.pageHeight}]);this.bottomIntersectPoint=Helper.GetIntersectBetweenTwoSegment(boundRect,[this.rect.bottomLeft,this.rect.bottomRight],[{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}]);}}},{key:"checkPositionAtCenterLine",value:function checkPositionAtCenterLine(checkedPos,centerOne,centerTwo){var result=checkedPos;var tmp=Helper.LimitPointToCircle(centerOne,this.pageWidth,result);if(result!==tmp){result=tmp;this.updateAngleAndGeometry(result);}var rad=Math.sqrt(Math.pow(this.pageWidth,2)+Math.pow(this.pageHeight,2));var checkPointOne=this.rect.bottomRight;var checkPointTwo=this.rect.topLeft;if(this.corner==="bottom"){checkPointOne=this.rect.topRight;checkPointTwo=this.rect.bottomLeft;}if(checkPointOne.x<=0){var bottomPoint=Helper.LimitPointToCircle(centerTwo,rad,checkPointTwo);if(bottomPoint!==result){result=bottomPoint;this.updateAngleAndGeometry(result);}}return result;}},{key:"getSegmentToShadowLine",value:function getSegmentToShadowLine(){var first=this.getShadowStartPoint();var second=first!==this.sideIntersectPoint&&this.sideIntersectPoint!==null?this.sideIntersectPoint:this.bottomIntersectPoint;return[first,second];}}]);return FlipCalculation;}();var Flip=/*#__PURE__*/function(){function Flip(render,app){_classCallCheck(this,Flip);this.flippingPage=null;this.bottomPage=null;this.calc=null;this.state="read";this.render=render;this.app=app;}_createClass(Flip,[{key:"fold",value:function fold(globalPos){this.setState("user_fold");if(this.calc===null)this.start(globalPos);this.do(this.render.convertToPage(globalPos));}},{key:"flip",value:function flip(globalPos){if(this.app.getSettings().disableFlipByClick&&!this.isPointOnCorners(globalPos))return;if(this.calc!==null)this.render.finishAnimation();if(!this.start(globalPos))return;var rect=this.getBoundsRect();this.setState("flipping");var topMargins=rect.height/10;var yStart=this.calc.getCorner()==="bottom"?rect.height-topMargins:topMargins;var yDest=this.calc.getCorner()==="bottom"?rect.height:0;this.calc.calc({x:rect.pageWidth-topMargins,y:yStart});this.animateFlippingTo({x:rect.pageWidth-topMargins,y:yStart},{x:-rect.pageWidth,y:yDest},true);}},{key:"start",value:function start(globalPos){this.reset();var bookPos=this.render.convertToBook(globalPos);var rect=this.getBoundsRect();var direction=this.getDirectionByPoint(bookPos);var flipCorner=bookPos.y>=rect.height/2?"bottom":"top";if(!this.checkDirection(direction))return false;try{this.flippingPage=this.app.getPageCollection().getFlippingPage(direction);this.bottomPage=this.app.getPageCollection().getBottomPage(direction);if(this.render.getOrientation()==="landscape"){if(direction===1){var nextPage=this.app.getPageCollection().nextBy(this.flippingPage);if(nextPage!==null){if(this.flippingPage.getDensity()!==nextPage.getDensity()){this.flippingPage.setDrawingDensity("hard");nextPage.setDrawingDensity("hard");}}}else{var prevPage=this.app.getPageCollection().prevBy(this.flippingPage);if(prevPage!==null){if(this.flippingPage.getDensity()!==prevPage.getDensity()){this.flippingPage.setDrawingDensity("hard");prevPage.setDrawingDensity("hard");}}}}this.render.setDirection(direction);this.calc=new FlipCalculation(direction,flipCorner,rect.pageWidth.toString(10),rect.height.toString(10));return true;}catch(e){return false;}}},{key:"do",value:function _do(pagePos){if(this.calc===null)return;if(this.calc.calc(pagePos)){var progress=this.calc.getFlippingProgress();this.bottomPage.setArea(this.calc.getBottomClipArea());this.bottomPage.setPosition(this.calc.getBottomPagePosition());this.bottomPage.setAngle(0);this.bottomPage.setHardAngle(0);this.flippingPage.setArea(this.calc.getFlippingClipArea());this.flippingPage.setPosition(this.calc.getActiveCorner());this.flippingPage.setAngle(this.calc.getAngle());if(this.calc.getDirection()===0){this.flippingPage.setHardAngle(90*(200-progress*2)/100);}else{this.flippingPage.setHardAngle(-90*(200-progress*2)/100);}this.render.setPageRect(this.calc.getRect());this.render.setBottomPage(this.bottomPage);this.render.setFlippingPage(this.flippingPage);this.render.setShadowData(this.calc.getShadowStartPoint(),this.calc.getShadowAngle(),progress,this.calc.getDirection());}}},{key:"flipToPage",value:function flipToPage(page,corner){var current=this.app.getPageCollection().getCurrentSpreadIndex();var next=this.app.getPageCollection().getSpreadIndexByPage(page);try{if(next>current){this.app.getPageCollection().setCurrentSpreadIndex(next-1);this.flipNext(corner);}if(next<current){this.app.getPageCollection().setCurrentSpreadIndex(next+1);this.flipPrev(corner);}}catch(e){}}},{key:"flipNext",value:function flipNext(corner){this.flip({x:this.render.getRect().left+this.render.getRect().pageWidth*2-10,y:corner==="top"?1:this.render.getRect().height-2});}},{key:"flipPrev",value:function flipPrev(corner){this.flip({x:10,y:corner==="top"?1:this.render.getRect().height-2});}},{key:"stopMove",value:function stopMove(){if(this.calc===null)return;var pos=this.calc.getPosition();var rect=this.getBoundsRect();var y=this.calc.getCorner()==="bottom"?rect.height:0;if(pos.x<=0)this.animateFlippingTo(pos,{x:-rect.pageWidth,y:y},true);else this.animateFlippingTo(pos,{x:rect.pageWidth,y:y},false);}},{key:"showCorner",value:function showCorner(globalPos){if(!this.checkState("read","fold_corner"))return;var rect=this.getBoundsRect();var pageWidth=rect.pageWidth;if(this.isPointOnCorners(globalPos)){if(this.calc===null){if(!this.start(globalPos))return;this.setState("fold_corner");this.calc.calc({x:pageWidth-1,y:1});var fixedCornerSize=50;var yStart=this.calc.getCorner()==="bottom"?rect.height-1:1;var yDest=this.calc.getCorner()==="bottom"?rect.height-fixedCornerSize:fixedCornerSize;this.animateFlippingTo({x:pageWidth-1,y:yStart},{x:pageWidth-fixedCornerSize,y:yDest},false,false);}else{this.do(this.render.convertToPage(globalPos));}}else{this.setState("read");this.render.finishAnimation();this.stopMove();}}},{key:"animateFlippingTo",value:function animateFlippingTo(start,dest,isTurned){var _this6=this;var needReset=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var points=Helper.GetCordsFromTwoPoint(start,dest);var frames=[];var _iterator5=_createForOfIteratorHelper(points),_step5;try{var _loop=function _loop(){var p=_step5.value;frames.push(function(){return _this6.do(p);});};for(_iterator5.s();!(_step5=_iterator5.n()).done;){_loop();}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}var duration=this.getAnimationDuration(points.length);this.render.startAnimation(frames,duration,function(){if(!_this6.calc)return;if(isTurned){if(_this6.calc.getDirection()===1)_this6.app.turnToPrevPage();else _this6.app.turnToNextPage();}if(needReset){_this6.render.setBottomPage(null);_this6.render.setFlippingPage(null);_this6.render.clearShadow();_this6.setState("read");_this6.reset();}});}},{key:"getCalculation",value:function getCalculation(){return this.calc;}},{key:"getState",value:function getState(){return this.state;}},{key:"setState",value:function setState(newState){if(this.state!==newState){this.app.updateState(newState);this.state=newState;}}},{key:"getDirectionByPoint",value:function getDirectionByPoint(touchPos){var rect=this.getBoundsRect();if(this.render.getOrientation()==="portrait"){if(touchPos.x-rect.pageWidth<=rect.width/5){return 1;}}else if(touchPos.x<rect.width/2){return 1;}return 0;}},{key:"getAnimationDuration",value:function getAnimationDuration(size){var defaultTime=this.app.getSettings().flippingTime;if(size>=1000)return defaultTime;return size/1000*defaultTime;}},{key:"checkDirection",value:function checkDirection(direction){if(direction===0)return this.app.getCurrentPageIndex()<this.app.getPageCount()-1;return this.app.getCurrentPageIndex()>=1;}},{key:"reset",value:function reset(){this.calc=null;this.flippingPage=null;this.bottomPage=null;}},{key:"getBoundsRect",value:function getBoundsRect(){return this.render.getRect();}},{key:"checkState",value:function checkState(){for(var _len=arguments.length,states=new Array(_len),_key=0;_key<_len;_key++){states[_key]=arguments[_key];}for(var _i2=0,_states=states;_i2<_states.length;_i2++){var state=_states[_i2];if(this.state===state)return true;}return false;}},{key:"isPointOnCorners",value:function isPointOnCorners(globalPos){var rect=this.getBoundsRect();var pageWidth=rect.pageWidth;var operatingDistance=Math.sqrt(Math.pow(pageWidth,2)+Math.pow(rect.height,2))/5;var bookPos=this.render.convertToBook(globalPos);return bookPos.x>0&&bookPos.y>0&&bookPos.x<rect.width&&bookPos.y<rect.height&&(bookPos.x<operatingDistance||bookPos.x>rect.width-operatingDistance)&&(bookPos.y<operatingDistance||bookPos.y>rect.height-operatingDistance);}}]);return Flip;}();var Render=/*#__PURE__*/function(){function Render(app,setting){_classCallCheck(this,Render);this.leftPage=null;this.rightPage=null;this.flippingPage=null;this.bottomPage=null;this.direction=null;this.orientation=null;this.shadow=null;this.animation=null;this.pageRect=null;this.boundsRect=null;this.timer=0;this.safari=false;this.setting=setting;this.app=app;var regex=new RegExp('Version\\/[\\d\\.]+.*Safari/');this.safari=regex.exec(window.navigator.userAgent)!==null;}_createClass(Render,[{key:"render",value:function render(timer){if(this.animation!==null){var frameIndex=Math.round((timer-this.animation.startedAt)/this.animation.durationFrame);if(frameIndex<this.animation.frames.length){this.animation.frames[frameIndex]();}else{this.animation.onAnimateEnd();this.animation=null;}}this.timer=timer;this.drawFrame();}},{key:"start",value:function start(){var _this7=this;this.update();var loop=function loop(timer){window.ngxZone.runOutsideAngular(function(){_this7.render(timer);requestAnimationFrame(loop);});};window.ngxZone.runOutsideAngular(function(){requestAnimationFrame(loop);});}},{key:"startAnimation",value:function startAnimation(frames,duration,onAnimateEnd){this.finishAnimation();this.animation={frames:frames,duration:duration,durationFrame:duration/frames.length,onAnimateEnd:onAnimateEnd,startedAt:this.timer};}},{key:"finishAnimation",value:function finishAnimation(){if(this.animation!==null){this.animation.frames[this.animation.frames.length-1]();if(this.animation.onAnimateEnd!==null){this.animation.onAnimateEnd();}}this.animation=null;}},{key:"update",value:function update(){this.boundsRect=null;var orientation=this.calculateBoundsRect();if(this.orientation!==orientation){this.orientation=orientation;this.app.updateOrientation(orientation);}}},{key:"calculateBoundsRect",value:function calculateBoundsRect(){var orientation="landscape";var blockWidth=this.getBlockWidth();var middlePoint={x:blockWidth/2,y:this.getBlockHeight()/2};var ratio=this.setting.width/this.setting.height;var pageWidth=this.setting.width;var pageHeight=this.setting.height;var left=middlePoint.x-pageWidth;if(this.setting.size==="stretch"){if(blockWidth<this.setting.minWidth*2&&this.app.getSettings().usePortrait)orientation="portrait";pageWidth=orientation==="portrait"?this.getBlockWidth():this.getBlockWidth()/2;if(pageWidth>this.setting.maxWidth)pageWidth=this.setting.maxWidth;pageHeight=pageWidth/ratio;if(pageHeight>this.getBlockHeight()){pageHeight=this.getBlockHeight();pageWidth=pageHeight*ratio;}left=orientation==="portrait"?middlePoint.x-pageWidth/2-pageWidth:middlePoint.x-pageWidth;}else{if(blockWidth<pageWidth*2){if(this.app.getSettings().usePortrait){orientation="portrait";left=middlePoint.x-pageWidth/2-pageWidth;}}}this.boundsRect={left:left,top:middlePoint.y-pageHeight/2,width:pageWidth*2,height:pageHeight,pageWidth:pageWidth};return orientation;}},{key:"setShadowData",value:function setShadowData(pos,angle,progress,direction){if(!this.app.getSettings().drawShadow)return;var maxShadowOpacity=100*this.getSettings().maxShadowOpacity;this.shadow={pos:pos,angle:angle,width:this.getRect().pageWidth*3/4*progress/100,opacity:(100-progress)*maxShadowOpacity/100/100,direction:direction,progress:progress*2};}},{key:"clearShadow",value:function clearShadow(){this.shadow=null;}},{key:"getBlockWidth",value:function getBlockWidth(){return this.app.getUI().getDistElement().offsetWidth;}},{key:"getBlockHeight",value:function getBlockHeight(){return this.app.getUI().getDistElement().offsetHeight;}},{key:"getDirection",value:function getDirection(){return this.direction;}},{key:"getRect",value:function getRect(){if(this.boundsRect===null)this.calculateBoundsRect();return this.boundsRect;}},{key:"getSettings",value:function getSettings(){return this.app.getSettings();}},{key:"getOrientation",value:function getOrientation(){return this.orientation;}},{key:"setPageRect",value:function setPageRect(pageRect){this.pageRect=pageRect;}},{key:"setDirection",value:function setDirection(direction){this.direction=direction;}},{key:"setRightPage",value:function setRightPage(page){if(page!==null)page.setOrientation(1);this.rightPage=page;}},{key:"setLeftPage",value:function setLeftPage(page){if(page!==null)page.setOrientation(0);this.leftPage=page;}},{key:"setBottomPage",value:function setBottomPage(page){if(page!==null)page.setOrientation(this.direction===1?0:1);this.bottomPage=page;}},{key:"setFlippingPage",value:function setFlippingPage(page){if(page!==null)page.setOrientation(this.direction===0&&this.orientation!=="portrait"?0:1);this.flippingPage=page;}},{key:"convertToBook",value:function convertToBook(pos){var rect=this.getRect();return{x:pos.x-rect.left,y:pos.y-rect.top};}},{key:"isSafari",value:function isSafari(){return this.safari;}},{key:"convertToPage",value:function convertToPage(pos,direction){if(!direction)direction=this.direction;var rect=this.getRect();var x=direction===0?pos.x-rect.left-rect.width/2:rect.width/2-pos.x+rect.left;return{x:x,y:pos.y-rect.top};}},{key:"convertToGlobal",value:function convertToGlobal(pos,direction){if(!direction)direction=this.direction;if(pos==null)return null;var rect=this.getRect();var x=direction===0?pos.x+rect.left+rect.width/2:rect.width/2-pos.x+rect.left;return{x:x,y:pos.y+rect.top};}},{key:"convertRectToGlobal",value:function convertRectToGlobal(rect,direction){if(!direction)direction=this.direction;return{topLeft:this.convertToGlobal(rect.topLeft,direction),topRight:this.convertToGlobal(rect.topRight,direction),bottomLeft:this.convertToGlobal(rect.bottomLeft,direction),bottomRight:this.convertToGlobal(rect.bottomRight,direction)};}}]);return Render;}();var CanvasRender=/*#__PURE__*/function(_Render){_inherits(CanvasRender,_Render);var _super5=_createSuper(CanvasRender);function CanvasRender(app,setting,inCanvas){var _this8;_classCallCheck(this,CanvasRender);_this8=_super5.call(this,app,setting);_this8.canvas=inCanvas;var options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true}:undefined;var ctx=canvas.getContext("2d",options);return _this8;}_createClass(CanvasRender,[{key:"getContext",value:function getContext(){return this.ctx;}},{key:"reload",value:function reload(){}},{key:"drawFrame",value:function drawFrame(){this.clear();if(this.orientation!=="portrait")if(this.leftPage!=null)this.leftPage.simpleDraw(0);if(this.rightPage!=null)this.rightPage.simpleDraw(1);if(this.bottomPage!=null)this.bottomPage.draw();this.drawBookShadow();if(this.flippingPage!=null)this.flippingPage.draw();if(this.shadow!=null){this.drawOuterShadow();this.drawInnerShadow();}var rect=this.getRect();if(this.orientation==="portrait"){this.ctx.beginPath();this.ctx.rect(rect.left+rect.pageWidth,rect.top,rect.width,rect.height);this.ctx.clip();}}},{key:"drawBookShadow",value:function drawBookShadow(){var rect=this.getRect();this.ctx.save();this.ctx.beginPath();var shadowSize=rect.width/20;this.ctx.rect(rect.left,rect.top,rect.width,rect.height);var shadowPos={x:rect.left+rect.width/2-shadowSize/2,y:0};this.ctx.translate(shadowPos.x,shadowPos.y);var outerGradient=this.ctx.createLinearGradient(0,0,shadowSize,0);outerGradient.addColorStop(0,'rgba(0, 0, 0, 0)');outerGradient.addColorStop(0.4,'rgba(0, 0, 0, 0.2)');outerGradient.addColorStop(0.49,'rgba(0, 0, 0, 0.1)');outerGradient.addColorStop(0.5,'rgba(0, 0, 0, 0.5)');outerGradient.addColorStop(0.51,'rgba(0, 0, 0, 0.4)');outerGradient.addColorStop(1,'rgba(0, 0, 0, 0)');this.ctx.clip();this.ctx.fillStyle=outerGradient;this.ctx.fillRect(0,0,shadowSize,rect.height*2);this.ctx.restore();}},{key:"drawOuterShadow",value:function drawOuterShadow(){var rect=this.getRect();this.ctx.save();this.ctx.beginPath();this.ctx.rect(rect.left,rect.top,rect.width,rect.height);var shadowPos=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y});this.ctx.translate(shadowPos.x,shadowPos.y);this.ctx.rotate(Math.PI+this.shadow.angle+Math.PI/2);var outerGradient=this.ctx.createLinearGradient(0,0,this.shadow.width,0);if(this.shadow.direction===0){this.ctx.translate(0,-100);outerGradient.addColorStop(0,'rgba(0, 0, 0, '+this.shadow.opacity+')');outerGradient.addColorStop(1,'rgba(0, 0, 0, 0)');}else{this.ctx.translate(-this.shadow.width,-100);outerGradient.addColorStop(0,'rgba(0, 0, 0, 0)');outerGradient.addColorStop(1,'rgba(0, 0, 0, '+this.shadow.opacity+')');}this.ctx.clip();this.ctx.fillStyle=outerGradient;this.ctx.fillRect(0,0,this.shadow.width,rect.height*2);this.ctx.restore();}},{key:"drawInnerShadow",value:function drawInnerShadow(){var rect=this.getRect();this.ctx.save();this.ctx.beginPath();var shadowPos=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y});var pageRect=this.convertRectToGlobal(this.pageRect);this.ctx.moveTo(pageRect.topLeft.x,pageRect.topLeft.y);this.ctx.lineTo(pageRect.topRight.x,pageRect.topRight.y);this.ctx.lineTo(pageRect.bottomRight.x,pageRect.bottomRight.y);this.ctx.lineTo(pageRect.bottomLeft.x,pageRect.bottomLeft.y);this.ctx.translate(shadowPos.x,shadowPos.y);this.ctx.rotate(Math.PI+this.shadow.angle+Math.PI/2);var isw=this.shadow.width*3/4;var innerGradient=this.ctx.createLinearGradient(0,0,isw,0);if(this.shadow.direction===0){this.ctx.translate(-isw,-100);innerGradient.addColorStop(1,'rgba(0, 0, 0, '+this.shadow.opacity+')');innerGradient.addColorStop(0.9,'rgba(0, 0, 0, 0.05)');innerGradient.addColorStop(0.7,'rgba(0, 0, 0, '+this.shadow.opacity+')');innerGradient.addColorStop(0,'rgba(0, 0, 0, 0)');}else{this.ctx.translate(0,-100);innerGradient.addColorStop(0,'rgba(0, 0, 0, '+this.shadow.opacity+')');innerGradient.addColorStop(0.1,'rgba(0, 0, 0, 0.05)');innerGradient.addColorStop(0.3,'rgba(0, 0, 0, '+this.shadow.opacity+')');innerGradient.addColorStop(1,'rgba(0, 0, 0, 0)');}this.ctx.clip();this.ctx.fillStyle=innerGradient;this.ctx.fillRect(0,0,isw,rect.height*2);this.ctx.restore();}},{key:"clear",value:function clear(){this.ctx.fillStyle='white';this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height);}}]);return CanvasRender;}(Render);var UI=/*#__PURE__*/function(){function UI(inBlock,app,setting){var _this9=this;_classCallCheck(this,UI);this.touchPoint=null;this.swipeTimeout=250;this.onResize=function(){_this9.update();};this.onMouseDown=function(e){if(_this9.checkTarget(e.target)){var pos=_this9.getMousePos(e.clientX,e.clientY);_this9.app.startUserTouch(pos);e.preventDefault();}};this.onTouchStart=function(e){if(_this9.checkTarget(e.target)){if(e.changedTouches.length>0){var t=e.changedTouches[0];var pos=_this9.getMousePos(t.clientX,t.clientY);_this9.touchPoint={point:pos,time:Date.now()};setTimeout(function(){if(_this9.touchPoint!==null){_this9.app.startUserTouch(pos);}},_this9.swipeTimeout);if(!_this9.app.getSettings().mobileScrollSupport)e.preventDefault();}}};this.onMouseUp=function(e){var pos=_this9.getMousePos(e.clientX,e.clientY);_this9.app.userStop(pos);};this.onMouseMove=function(e){var pos=_this9.getMousePos(e.clientX,e.clientY);_this9.app.userMove(pos,false);};this.onTouchMove=function(e){if(e.changedTouches.length>0){var t=e.changedTouches[0];var pos=_this9.getMousePos(t.clientX,t.clientY);if(_this9.app.getSettings().mobileScrollSupport){if(_this9.touchPoint!==null){if(Math.abs(_this9.touchPoint.point.x-pos.x)>10||_this9.app.getState()!=="read"){if(e.cancelable)_this9.app.userMove(pos,true);}}if(_this9.app.getState()!=="read"){e.preventDefault();}}else{_this9.app.userMove(pos,true);}}};this.onTouchEnd=function(e){if(e.changedTouches.length>0){var t=e.changedTouches[0];var pos=_this9.getMousePos(t.clientX,t.clientY);var isSwipe=false;if(_this9.touchPoint!==null){var dx=pos.x-_this9.touchPoint.point.x;var distY=Math.abs(pos.y-_this9.touchPoint.point.y);if(Math.abs(dx)>_this9.swipeDistance&&distY<_this9.swipeDistance*2&&Date.now()-_this9.touchPoint.time<_this9.swipeTimeout){if(dx>0){_this9.app.flipPrev(_this9.touchPoint.point.y<_this9.app.getRender().getRect().height/2?"top":"bottom");}else{_this9.app.flipNext(_this9.touchPoint.point.y<_this9.app.getRender().getRect().height/2?"top":"bottom");}isSwipe=true;}_this9.touchPoint=null;}_this9.app.userStop(pos,isSwipe);}};this.parentElement=inBlock;inBlock.classList.add('stf__parent');inBlock.insertAdjacentHTML('afterbegin','<div class="stf__wrapper"></div>');this.wrapper=inBlock.querySelector('.stf__wrapper');this.app=app;var k=this.app.getSettings().usePortrait?1:2;inBlock.style.minWidth=setting.minWidth*k+'px';inBlock.style.minHeight=setting.minHeight+'px';if(setting.size==="fixed"){inBlock.style.minWidth=setting.width*k+'px';inBlock.style.minHeight=setting.height+'px';}if(setting.autoSize){inBlock.style.width='100%';inBlock.style.maxWidth=setting.maxWidth*2+'px';}inBlock.style.display='block';window.addEventListener('resize',this.onResize,false);this.swipeDistance=setting.swipeDistance;}_createClass(UI,[{key:"destroy",value:function destroy(){if(this.app.getSettings().useMouseEvents)this.removeHandlers();this.distElement.remove();this.wrapper.remove();}},{key:"getDistElement",value:function getDistElement(){return this.distElement;}},{key:"getWrapper",value:function getWrapper(){return this.wrapper;}},{key:"setOrientationStyle",value:function setOrientationStyle(orientation){this.wrapper.classList.remove('--portrait','--landscape');if(orientation==="portrait"){if(this.app.getSettings().autoSize)this.wrapper.style.paddingBottom=this.app.getSettings().height/this.app.getSettings().width*100+'%';this.wrapper.classList.add('--portrait');}else{if(this.app.getSettings().autoSize)this.wrapper.style.paddingBottom=this.app.getSettings().height/(this.app.getSettings().width*2)*100+'%';this.wrapper.classList.add('--landscape');}this.update();}},{key:"removeHandlers",value:function removeHandlers(){window.removeEventListener('resize',this.onResize);this.distElement.removeEventListener('mousedown',this.onMouseDown);this.distElement.removeEventListener('touchstart',this.onTouchStart);window.removeEventListener('mousemove',this.onMouseMove);window.removeEventListener('touchmove',this.onTouchMove);window.removeEventListener('mouseup',this.onMouseUp);window.removeEventListener('touchend',this.onTouchEnd);}},{key:"setHandlers",value:function setHandlers(){window.addEventListener('resize',this.onResize,false);if(!this.app.getSettings().useMouseEvents)return;this.distElement.addEventListener('mousedown',this.onMouseDown);this.distElement.addEventListener('touchstart',this.onTouchStart);window.addEventListener('mousemove',this.onMouseMove);window.addEventListener('touchmove',this.onTouchMove,{passive:!this.app.getSettings().mobileScrollSupport});window.addEventListener('mouseup',this.onMouseUp);window.addEventListener('touchend',this.onTouchEnd);}},{key:"getMousePos",value:function getMousePos(x,y){var rect=this.distElement.getBoundingClientRect();return{x:x-rect.left,y:y-rect.top};}},{key:"checkTarget",value:function checkTarget(targer){if(!this.app.getSettings().clickEventForward)return true;if(['a','button'].includes(targer.tagName.toLowerCase())){return false;}return true;}}]);return UI;}();var HTMLUI=/*#__PURE__*/function(_UI){_inherits(HTMLUI,_UI);var _super6=_createSuper(HTMLUI);function HTMLUI(inBlock,app,setting,items){var _this10;_classCallCheck(this,HTMLUI);_this10=_super6.call(this,inBlock,app,setting);_this10.wrapper.insertAdjacentHTML('afterbegin','<div class="stf__block"></div>');_this10.distElement=inBlock.querySelector('.stf__block');_this10.items=items;var _iterator6=_createForOfIteratorHelper(items),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var item=_step6.value;_this10.distElement.appendChild(item);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}_this10.setHandlers();return _this10;}_createClass(HTMLUI,[{key:"clear",value:function clear(){var _iterator7=_createForOfIteratorHelper(this.items),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var item=_step7.value;this.parentElement.appendChild(item);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}},{key:"updateItems",value:function updateItems(items){this.removeHandlers();this.distElement.innerHTML='';var _iterator8=_createForOfIteratorHelper(items),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var item=_step8.value;this.distElement.appendChild(item);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}this.items=items;this.setHandlers();}},{key:"update",value:function update(){this.app.getRender().update();}}]);return HTMLUI;}(UI);var CanvasUI=/*#__PURE__*/function(_UI2){_inherits(CanvasUI,_UI2);var _super7=_createSuper(CanvasUI);function CanvasUI(inBlock,app,setting){var _this11;_classCallCheck(this,CanvasUI);_this11=_super7.call(this,inBlock,app,setting);_this11.wrapper.innerHTML='<canvas class="stf__canvas"></canvas>';_this11.canvas=inBlock.querySelectorAll('canvas')[0];_this11.distElement=_this11.canvas;_this11.resizeCanvas();_this11.setHandlers();return _this11;}_createClass(CanvasUI,[{key:"resizeCanvas",value:function resizeCanvas(){var cs=getComputedStyle(this.canvas);var width=parseInt(cs.getPropertyValue('width'),10);var height=parseInt(cs.getPropertyValue('height'),10);this.canvas.width=width;this.canvas.height=height;}},{key:"getCanvas",value:function getCanvas(){return this.canvas;}},{key:"update",value:function update(){this.resizeCanvas();this.app.getRender().update();}}]);return CanvasUI;}(UI);var EventObject=/*#__PURE__*/function(){function EventObject(){_classCallCheck(this,EventObject);this.events=new Map();}_createClass(EventObject,[{key:"on",value:function on(eventName,callback){if(!this.events.has(eventName)){this.events.set(eventName,[callback]);}else{this.events.get(eventName).push(callback);}return this;}},{key:"off",value:function off(event){this.events.delete(event);}},{key:"trigger",value:function trigger(eventName,app){var data=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(!this.events.has(eventName))return;var _iterator9=_createForOfIteratorHelper(this.events.get(eventName)),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var callback=_step9.value;callback({data:data,object:app});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}}]);return EventObject;}();var HTMLRender=/*#__PURE__*/function(_Render2){_inherits(HTMLRender,_Render2);var _super8=_createSuper(HTMLRender);function HTMLRender(app,setting,element){var _this12;_classCallCheck(this,HTMLRender);_this12=_super8.call(this,app,setting);_this12.outerShadow=null;_this12.innerShadow=null;_this12.hardShadow=null;_this12.hardInnerShadow=null;_this12.element=element;_this12.createShadows();return _this12;}_createClass(HTMLRender,[{key:"createShadows",value:function createShadows(){this.element.insertAdjacentHTML('beforeend',"<div class=\"stf__outerShadow\"></div>\n             <div class=\"stf__innerShadow\"></div>\n             <div class=\"stf__hardShadow\"></div>\n             <div class=\"stf__hardInnerShadow\"></div>");this.outerShadow=this.element.querySelector('.stf__outerShadow');this.innerShadow=this.element.querySelector('.stf__innerShadow');this.hardShadow=this.element.querySelector('.stf__hardShadow');this.hardInnerShadow=this.element.querySelector('.stf__hardInnerShadow');}},{key:"clearShadow",value:function clearShadow(){_get(_getPrototypeOf(HTMLRender.prototype),"clearShadow",this).call(this);this.outerShadow.style.cssText='display: none';this.innerShadow.style.cssText='display: none';this.hardShadow.style.cssText='display: none';this.hardInnerShadow.style.cssText='display: none';}},{key:"reload",value:function reload(){var testShadow=this.element.querySelector('.stf__outerShadow');if(!testShadow){this.createShadows();}}},{key:"drawHardInnerShadow",value:function drawHardInnerShadow(){var rect=this.getRect();var progress=this.shadow.progress>100?200-this.shadow.progress:this.shadow.progress;var innerShadowSize=(100-progress)*(2.5*rect.pageWidth)/100+20;if(innerShadowSize>rect.pageWidth)innerShadowSize=rect.pageWidth;var newStyle="\n            display: block;\n            z-index: ".concat((this.getSettings().startZIndex+5).toString(10),";\n            width: ").concat(innerShadowSize,"px;\n            height: ").concat(rect.height,"px;\n            background: linear-gradient(to right,\n                rgba(0, 0, 0, ").concat(this.shadow.opacity*progress/100,") 5%,\n                rgba(0, 0, 0, 0) 100%);\n            left: ").concat(rect.left+rect.width/2,"px;\n            transform-origin: 0 0;\n        ");newStyle+=this.getDirection()===0&&this.shadow.progress>100||this.getDirection()===1&&this.shadow.progress<=100?"transform: translate3d(0, 0, 0);":"transform: translate3d(0, 0, 0) rotateY(180deg);";this.hardInnerShadow.style.cssText=newStyle;}},{key:"drawHardOuterShadow",value:function drawHardOuterShadow(){var rect=this.getRect();var progress=this.shadow.progress>100?200-this.shadow.progress:this.shadow.progress;var shadowSize=(100-progress)*(2.5*rect.pageWidth)/100+20;if(shadowSize>rect.pageWidth)shadowSize=rect.pageWidth;var newStyle="\n            display: block;\n            z-index: ".concat((this.getSettings().startZIndex+4).toString(10),";\n            width: ").concat(shadowSize,"px;\n            height: ").concat(rect.height,"px;\n            background: linear-gradient(to left, rgba(0, 0, 0, ").concat(this.shadow.opacity,") 5%, rgba(0, 0, 0, 0) 100%);\n            left: ").concat(rect.left+rect.width/2,"px;\n            transform-origin: 0 0;\n        ");newStyle+=this.getDirection()===0&&this.shadow.progress>100||this.getDirection()===1&&this.shadow.progress<=100?"transform: translate3d(0, 0, 0) rotateY(180deg);":"transform: translate3d(0, 0, 0);";this.hardShadow.style.cssText=newStyle;}},{key:"drawInnerShadow",value:function drawInnerShadow(){var rect=this.getRect();var innerShadowSize=this.shadow.width*3/4;var shadowTranslate=this.getDirection()===0?innerShadowSize:0;var shadowDirection=this.getDirection()===0?'to left':'to right';var shadowPos=this.convertToGlobal(this.shadow.pos);var angle=this.shadow.angle+3*Math.PI/2;var clip=[this.pageRect.topLeft,this.pageRect.topRight,this.pageRect.bottomRight,this.pageRect.bottomLeft];var polygon='polygon( ';for(var _i3=0,_clip=clip;_i3<_clip.length;_i3++){var p=_clip[_i3];var g=this.getDirection()===1?{x:-p.x+this.shadow.pos.x,y:p.y-this.shadow.pos.y}:{x:p.x-this.shadow.pos.x,y:p.y-this.shadow.pos.y};g=Helper.GetRotatedPoint(g,{x:shadowTranslate,y:100},angle);polygon+=g.x+'px '+g.y+'px, ';}polygon=polygon.slice(0,-2);polygon+=')';var newStyle="\n            display: block;\n            z-index: ".concat((this.getSettings().startZIndex+10).toString(10),";\n            width: ").concat(innerShadowSize,"px;\n            height: ").concat(rect.height*2,"px;\n            background: linear-gradient(").concat(shadowDirection,",\n                rgba(0, 0, 0, ").concat(this.shadow.opacity,") 5%,\n                rgba(0, 0, 0, 0.05) 15%,\n                rgba(0, 0, 0, ").concat(this.shadow.opacity,") 35%,\n                rgba(0, 0, 0, 0) 100%);\n            transform-origin: ").concat(shadowTranslate,"px 100px;\n            transform: translate3d(").concat(shadowPos.x-shadowTranslate,"px, ").concat(shadowPos.y-100,"px, 0) rotate(").concat(angle,"rad);\n            clip-path: ").concat(polygon,";\n            -webkit-clip-path: ").concat(polygon,";\n        ");this.innerShadow.style.cssText=newStyle;}},{key:"drawOuterShadow",value:function drawOuterShadow(){var rect=this.getRect();var shadowPos=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y});var angle=this.shadow.angle+3*Math.PI/2;var shadowTranslate=this.getDirection()===1?this.shadow.width:0;var shadowDirection=this.getDirection()===0?'to right':'to left';var clip=[{x:0,y:0},{x:rect.pageWidth,y:0},{x:rect.pageWidth,y:rect.height},{x:0,y:rect.height}];var polygon='polygon( ';for(var _i4=0,_clip2=clip;_i4<_clip2.length;_i4++){var p=_clip2[_i4];if(p!==null){var g=this.getDirection()===1?{x:-p.x+this.shadow.pos.x,y:p.y-this.shadow.pos.y}:{x:p.x-this.shadow.pos.x,y:p.y-this.shadow.pos.y};g=Helper.GetRotatedPoint(g,{x:shadowTranslate,y:100},angle);polygon+=g.x+'px '+g.y+'px, ';}}polygon=polygon.slice(0,-2);polygon+=')';var newStyle="\n            display: block;\n            z-index: ".concat((this.getSettings().startZIndex+10).toString(10),";\n            width: ").concat(this.shadow.width,"px;\n            height: ").concat(rect.height*2,"px;\n            background: linear-gradient(").concat(shadowDirection,", rgba(0, 0, 0, ").concat(this.shadow.opacity,"), rgba(0, 0, 0, 0));\n            transform-origin: ").concat(shadowTranslate,"px 100px;\n            transform: translate3d(").concat(shadowPos.x-shadowTranslate,"px, ").concat(shadowPos.y-100,"px, 0) rotate(").concat(angle,"rad);\n            clip-path: ").concat(polygon,";\n            -webkit-clip-path: ").concat(polygon,";\n        ");this.outerShadow.style.cssText=newStyle;}},{key:"drawLeftPage",value:function drawLeftPage(){if(this.orientation==="portrait"||this.leftPage===null)return;if(this.direction===1&&this.flippingPage!==null&&this.flippingPage.getDrawingDensity()==="hard"){var angle=this.flippingPage.getHardAngle();if(angle<-90){this.leftPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10);this.leftPage.setHardDrawingAngle(180+this.flippingPage.getHardAngle());this.leftPage.draw(this.flippingPage.getDrawingDensity());}else{this.leftPage.getElement().style.display="none";}}else{this.leftPage.simpleDraw(0);}}},{key:"drawRightPage",value:function drawRightPage(){if(this.rightPage===null)return;if(this.direction===0&&this.flippingPage!==null&&this.flippingPage.getDrawingDensity()==="hard"){var angle=this.flippingPage.getHardAngle();if(angle>90){this.rightPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10);this.rightPage.setHardDrawingAngle(180+this.flippingPage.getHardAngle());this.rightPage.draw(this.flippingPage.getDrawingDensity());}else{this.rightPage.getElement().style.display="none";}}else{this.rightPage.simpleDraw(1);}}},{key:"drawBottomPage",value:function drawBottomPage(){if(this.bottomPage===null)return;var tempDensity=this.flippingPage!=null?this.flippingPage.getDrawingDensity():null;if(!(this.orientation==="portrait"&&this.direction===1)){this.bottomPage.getElement().style.zIndex=(this.getSettings().startZIndex+3).toString(10);this.bottomPage.draw(tempDensity);}}},{key:"drawFrame",value:function drawFrame(){if(this.flippingPage!==null){if(this.flippingPage.getHardAngle()===this.lastAngle){return;}this.lastAngle=this.flippingPage.getHardAngle();}else{this.lastAngle=-1234;}this.clear();this.drawLeftPage();this.drawRightPage();this.drawBottomPage();if(this.flippingPage!=null){var angle=this.flippingPage.state.hardDrawingAngle;if(angle<=90){this.flippingPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10);this.flippingPage.draw();}else{this.flippingPage.getElement().style.display="none";}}if(this.shadow!=null&&this.flippingPage!==null){if(this.flippingPage.getDrawingDensity()==="soft"){this.drawOuterShadow();this.drawInnerShadow();}else{this.drawHardOuterShadow();this.drawHardInnerShadow();}}}},{key:"clear",value:function clear(){var _iterator10=_createForOfIteratorHelper(this.app.getPageCollection().getPages()),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var page=_step10.value;if(page!==this.leftPage&&page!==this.rightPage&&page!==this.flippingPage&&page!==this.bottomPage){var style=page.getElement().style;if(style.display!=='none'){style.cssText='display: none';}}if(page.getTemporaryCopy()!==this.flippingPage){page.hideTemporaryCopy();}}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}},{key:"update",value:function update(){_get(_getPrototypeOf(HTMLRender.prototype),"update",this).call(this);if(this.rightPage!==null){this.rightPage.setOrientation(1);}if(this.leftPage!==null){this.leftPage.setOrientation(0);}}}]);return HTMLRender;}(Render);var Settings=/*#__PURE__*/function(){function Settings(){_classCallCheck(this,Settings);this._default={startPage:0,size:"fixed",width:0,height:0,minWidth:0,maxWidth:0,minHeight:0,maxHeight:0,drawShadow:true,flippingTime:1000,usePortrait:true,startZIndex:0,autoSize:true,maxShadowOpacity:1,showCover:false,mobileScrollSupport:true,swipeDistance:30,clickEventForward:true,useMouseEvents:true,showPageCorners:true,disableFlipByClick:false};}_createClass(Settings,[{key:"getSettings",value:function getSettings(userSetting){var result=this._default;Object.assign(result,userSetting);if(result.size!=="stretch"&&result.size!=="fixed")throw new Error('Invalid size type. Available only "fixed" and "stretch" value');if(result.width<=0||result.height<=0)throw new Error('Invalid width or height');if(result.flippingTime<=0)throw new Error('Invalid flipping time');if(result.size==="stretch"){if(result.minWidth<=0)result.minWidth=100;if(result.maxWidth<result.minWidth)result.maxWidth=2000;if(result.minHeight<=0)result.minHeight=100;if(result.maxHeight<result.minHeight)result.maxHeight=2000;}else{result.minWidth=result.width;result.maxWidth=result.width;result.minHeight=result.height;result.maxHeight=result.height;}return result;}}]);return Settings;}();function styleInject(css,ref){if(ref===void 0)ref={};var insertAt=ref.insertAt;if(!css||typeof document==='undefined'){return;}var head=document.head||document.getElementsByTagName('head')[0];var style=document.createElement('style');style.type='text/css';if(insertAt==='top'){if(head.firstChild){head.insertBefore(style,head.firstChild);}else{head.appendChild(style);}}else{head.appendChild(style);}if(style.styleSheet){style.styleSheet.cssText=css;}else{style.appendChild(document.createTextNode(css));}}var css_248z=".stf__parent {\n  position: relative;\n  display: block;\n  box-sizing: border-box;\n  transform: translateZ(0);\n\n  -ms-touch-action: pan-y;\n  touch-action: pan-y;\n}\n\n.sft__wrapper {\n  position: relative;\n  width: 100%;\n  box-sizing: border-box;\n}\n\n.stf__parent canvas {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  left: 0;\n  top: 0;\n}\n\n.stf__block {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  box-sizing: border-box;\n  perspective: 2000px;\n}\n\n.stf__item {\n  display: none;\n  position: absolute;\n  transform-style: preserve-3d;\n}\n\n.stf__outerShadow {\n  position: absolute;\n  left: 0;\n  top: 0;\n}\n\n.stf__innerShadow {\n  position: absolute;\n  left: 0;\n  top: 0;\n}\n\n.stf__hardShadow {\n  position: absolute;\n  left: 0;\n  top: 0;\n}\n\n.stf__hardInnerShadow {\n  position: absolute;\n  left: 0;\n  top: 0;\n}";styleInject(css_248z);var PageFlip=/*#__PURE__*/function(_EventObject){_inherits(PageFlip,_EventObject);var _super9=_createSuper(PageFlip);function PageFlip(inBlock,setting){var _this13;_classCallCheck(this,PageFlip);_this13=_super9.call(this);_this13.isUserTouch=false;_this13.isUserMove=false;_this13.setting=null;_this13.pages=null;_this13.setting=new Settings().getSettings(setting);_this13.block=inBlock;return _this13;}_createClass(PageFlip,[{key:"destroy",value:function destroy(){this.ui.destroy();}},{key:"update",value:function update(){this.render.update();this.pages.show();}},{key:"loadFromImages",value:function loadFromImages(imagesHref){var _this14=this;this.ui=new CanvasUI(this.block,this,this.setting);var canvas=this.ui.getCanvas();this.render=new CanvasRender(this,this.setting,canvas);this.flipController=new Flip(this.render,this);this.pages=new ImagePageCollection(this,this.render,imagesHref);this.pages.load();this.render.start();this.pages.show(this.setting.startPage);setTimeout(function(){_this14.ui.update();_this14.trigger('init',_this14,{page:_this14.setting.startPage,mode:_this14.render.getOrientation()});},1);}},{key:"loadFromHTML",value:function loadFromHTML(items){var _this15=this;this.ui=new HTMLUI(this.block,this,this.setting,items);this.render=new HTMLRender(this,this.setting,this.ui.getDistElement());this.flipController=new Flip(this.render,this);this.pages=new HTMLPageCollection(this,this.render,this.ui.getDistElement(),items);this.pages.load();this.render.start();this.pages.show(this.setting.startPage);setTimeout(function(){_this15.ui.update();_this15.trigger('init',_this15,{page:_this15.setting.startPage,mode:_this15.render.getOrientation()});},1);}},{key:"updateFromImages",value:function updateFromImages(imagesHref){var current=this.pages.getCurrentPageIndex();this.pages.destroy();this.pages=new ImagePageCollection(this,this.render,imagesHref);this.pages.load();this.pages.show(current);this.trigger('update',this,{page:current,mode:this.render.getOrientation()});}},{key:"updateFromHtml",value:function updateFromHtml(items){var current=this.pages.getCurrentPageIndex();this.pages.destroy();this.pages=new HTMLPageCollection(this,this.render,this.ui.getDistElement(),items);this.pages.load();this.ui.updateItems(items);this.render.reload();this.pages.show(current);this.trigger('update',this,{page:current,mode:this.render.getOrientation()});}},{key:"clear",value:function clear(){this.pages.destroy();this.ui.clear();}},{key:"turnToPrevPage",value:function turnToPrevPage(){this.pages.showPrev();}},{key:"turnToNextPage",value:function turnToNextPage(){this.pages.showNext();}},{key:"turnToPage",value:function turnToPage(page){this.pages.show(page);}},{key:"flipNext",value:function flipNext(){var corner=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"top";this.flipController.flipNext(corner);}},{key:"flipPrev",value:function flipPrev(){var corner=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"top";this.flipController.flipPrev(corner);}},{key:"flip",value:function flip(page){var corner=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";this.flipController.flipToPage(page,corner);}},{key:"updateState",value:function updateState(newState){this.trigger('changeState',this,newState);}},{key:"updatePageIndex",value:function updatePageIndex(newPage){this.trigger('flip',this,newPage);}},{key:"updateOrientation",value:function updateOrientation(newOrientation){this.ui.setOrientationStyle(newOrientation);this.update();this.trigger('changeOrientation',this,newOrientation);}},{key:"getPageCount",value:function getPageCount(){return this.pages.getPageCount();}},{key:"getCurrentPageIndex",value:function getCurrentPageIndex(){return this.pages.getCurrentPageIndex();}},{key:"getPage",value:function getPage(pageIndex){return this.pages.getPage(pageIndex);}},{key:"getRender",value:function getRender(){return this.render;}},{key:"getFlipController",value:function getFlipController(){return this.flipController;}},{key:"getOrientation",value:function getOrientation(){return this.render.getOrientation();}},{key:"getBoundsRect",value:function getBoundsRect(){return this.render.getRect();}},{key:"getSettings",value:function getSettings(){return this.setting;}},{key:"getUI",value:function getUI(){return this.ui;}},{key:"getState",value:function getState(){return this.flipController.getState();}},{key:"getPageCollection",value:function getPageCollection(){return this.pages;}},{key:"startUserTouch",value:function startUserTouch(pos){this.mousePosition=pos;this.isUserTouch=true;this.isUserMove=false;}},{key:"userMove",value:function userMove(pos,isTouch){if(!this.isUserTouch&&!isTouch&&this.setting.showPageCorners){this.flipController.showCorner(pos);}else if(this.isUserTouch){if(Helper.GetDistanceBetweenTwoPoint(this.mousePosition,pos)>5){this.isUserMove=true;this.flipController.fold(pos);}}}},{key:"userStop",value:function userStop(pos){var isSwipe=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.isUserTouch){this.isUserTouch=false;if(!isSwipe){if(!this.isUserMove)this.flipController.flip(pos);else this.flipController.stopMove();}}}}]);return PageFlip;}(EventObject);exports.PageFlip=PageFlip;

/***/ }),
/* 330 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var fill = __webpack_require__(331);
var addToUnscopables = __webpack_require__(46);
$({
 target: 'Array',
 proto: true
}, { fill: fill });
addToUnscopables('fill');

/***/ }),
/* 331 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toObject = __webpack_require__(9);
var toAbsoluteIndex = __webpack_require__(52);
var lengthOfArrayLike = __webpack_require__(55);
module.exports = function fill(value) {
 var O = toObject(this);
 var length = lengthOfArrayLike(O);
 var argumentsLength = arguments.length;
 var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);
 var end = argumentsLength > 2 ? arguments[2] : undefined;
 var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
 while (endPos > index)
  O[index++] = value;
 return O;
};

/***/ }),
/* 332 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFPageView=void 0;__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(142);__webpack_require__(216);__webpack_require__(198);__webpack_require__(126);__webpack_require__(240);__webpack_require__(206);__webpack_require__(219);__webpack_require__(293);__webpack_require__(179);var _pdfjsLib=__webpack_require__(286);var _ui_utils=__webpack_require__(239);var _annotation_editor_layer_builder=__webpack_require__(333);var _annotation_layer_builder=__webpack_require__(334);var _app_options=__webpack_require__(288);var _l10n_utils=__webpack_require__(328);var _pdf_link_service=__webpack_require__(291);var _struct_tree_layer_builder=__webpack_require__(335);var _text_accessibility=__webpack_require__(336);var _canvasSize=_interopRequireDefault(__webpack_require__(337));var _util=__webpack_require__(339);var _text_highlighter=__webpack_require__(404);var _text_layer_builder=__webpack_require__(405);var _xfa_layer_builder=__webpack_require__(406);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var MAX_CANVAS_PIXELS=_app_options.compatibilityParams.maxCanvasPixels||16777216;var DEFAULT_LAYER_PROPERTIES=function DEFAULT_LAYER_PROPERTIES(){return null;};var _annotationMode=/*#__PURE__*/new WeakMap();var _hasRestrictedScaling=/*#__PURE__*/new WeakMap();var _layerProperties=/*#__PURE__*/new WeakMap();var _loadingId=/*#__PURE__*/new WeakMap();var _previousRotation=/*#__PURE__*/new WeakMap();var _renderError=/*#__PURE__*/new WeakMap();var _renderingState=/*#__PURE__*/new WeakMap();var _textLayerMode=/*#__PURE__*/new WeakMap();var _useThumbnailCanvas=/*#__PURE__*/new WeakMap();var _viewportMap=/*#__PURE__*/new WeakMap();var _setDimensions=/*#__PURE__*/new WeakSet();var _renderAnnotationLayer=/*#__PURE__*/new WeakSet();var _renderAnnotationEditorLayer=/*#__PURE__*/new WeakSet();var _renderXfaLayer=/*#__PURE__*/new WeakSet();var _renderTextLayer=/*#__PURE__*/new WeakSet();var _renderStructTreeLayer=/*#__PURE__*/new WeakSet();var _buildXfaTextContentItems=/*#__PURE__*/new WeakSet();var _finishRenderTask=/*#__PURE__*/new WeakSet();var PDFPageView=/*#__PURE__*/function(){function PDFPageView(options){var _options$textLayerMod,_options$annotationMo,_options$isOffscreenC,_options$maxCanvasPix,_this$renderingQueue,_this=this;_classCallCheck(this,PDFPageView);_classPrivateMethodInitSpec(this,_finishRenderTask);_classPrivateMethodInitSpec(this,_buildXfaTextContentItems);_classPrivateMethodInitSpec(this,_renderStructTreeLayer);_classPrivateMethodInitSpec(this,_renderTextLayer);_classPrivateMethodInitSpec(this,_renderXfaLayer);_classPrivateMethodInitSpec(this,_renderAnnotationEditorLayer);_classPrivateMethodInitSpec(this,_renderAnnotationLayer);_classPrivateMethodInitSpec(this,_setDimensions);_classPrivateFieldInitSpec(this,_annotationMode,{writable:true,value:_pdfjsLib.AnnotationMode.ENABLE_FORMS});_classPrivateFieldInitSpec(this,_hasRestrictedScaling,{writable:true,value:false});_classPrivateFieldInitSpec(this,_layerProperties,{writable:true,value:null});_classPrivateFieldInitSpec(this,_loadingId,{writable:true,value:null});_classPrivateFieldInitSpec(this,_previousRotation,{writable:true,value:null});_classPrivateFieldInitSpec(this,_renderError,{writable:true,value:null});_classPrivateFieldInitSpec(this,_renderingState,{writable:true,value:_ui_utils.RenderingStates.INITIAL});_classPrivateFieldInitSpec(this,_textLayerMode,{writable:true,value:_ui_utils.TextLayerMode.ENABLE});_classPrivateFieldInitSpec(this,_useThumbnailCanvas,{writable:true,value:{directDrawing:true,initialOptionalContent:true,regularAnnotations:true}});_classPrivateFieldInitSpec(this,_viewportMap,{writable:true,value:new WeakMap()});var container=options.container;var defaultViewport=options.defaultViewport;this.id=options.id;this.renderingId="page"+this.id;_classPrivateFieldSet(this,_layerProperties,options.layerProperties||DEFAULT_LAYER_PROPERTIES);this.pdfPage=null;this.pageLabel=null;this.rotation=0;this.scale=options.scale||_ui_utils.DEFAULT_SCALE;this.viewport=defaultViewport;this.pdfPageRotate=defaultViewport.rotation;this._optionalContentConfigPromise=options.optionalContentConfigPromise||null;_classPrivateFieldSet(this,_textLayerMode,(_options$textLayerMod=options.textLayerMode)!==null&&_options$textLayerMod!==void 0?_options$textLayerMod:_ui_utils.TextLayerMode.ENABLE);_classPrivateFieldSet(this,_annotationMode,(_options$annotationMo=options.annotationMode)!==null&&_options$annotationMo!==void 0?_options$annotationMo:_pdfjsLib.AnnotationMode.ENABLE_FORMS);this.imageResourcesPath=options.imageResourcesPath||"";this.isOffscreenCanvasSupported=(_options$isOffscreenC=options.isOffscreenCanvasSupported)!==null&&_options$isOffscreenC!==void 0?_options$isOffscreenC:true;this.maxCanvasPixels=(_options$maxCanvasPix=options.maxCanvasPixels)!==null&&_options$maxCanvasPix!==void 0?_options$maxCanvasPix:MAX_CANVAS_PIXELS;this.pageColors=options.pageColors||null;this.eventBus=options.eventBus;this.renderingQueue=options.renderingQueue;this.l10n=options.l10n||_l10n_utils.NullL10n;this.renderTask=null;this.resume=null;this._isStandalone=!((_this$renderingQueue=this.renderingQueue)!==null&&_this$renderingQueue!==void 0&&_this$renderingQueue.hasViewer());this._container=container;if(options.useOnlyCssZoom){console.error("useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead.");this.maxCanvasPixels=0;}this._annotationCanvasMap=null;this.annotationLayer=null;this.annotationEditorLayer=null;this.textLayer=null;this.zoomLayer=null;this.xfaLayer=null;this.structTreeLayer=null;var div=document.createElement("div");div.className="page";div.setAttribute("data-page-number",this.id);div.setAttribute("role","region");this.l10n.get("page_landmark",{page:this.id}).then(function(msg){div.setAttribute("aria-label",msg);});this.div=div;_classPrivateMethodGet(this,_setDimensions,_setDimensions2).call(this);container===null||container===void 0?void 0:container.append(div);if(this._isStandalone){container===null||container===void 0?void 0:container.style.setProperty("--scale-factor",this.scale*_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS);var optionalContentConfigPromise=options.optionalContentConfigPromise;if(optionalContentConfigPromise){optionalContentConfigPromise.then(function(optionalContentConfig){if(optionalContentConfigPromise!==_this._optionalContentConfigPromise){return;}_classPrivateFieldGet(_this,_useThumbnailCanvas).initialOptionalContent=optionalContentConfig.hasInitialVisibility;});}}}_createClass(PDFPageView,[{key:"renderingState",get:function get(){return _classPrivateFieldGet(this,_renderingState);},set:function set(state){var _this2=this;if(state===_classPrivateFieldGet(this,_renderingState)){return;}_classPrivateFieldSet(this,_renderingState,state);if(_classPrivateFieldGet(this,_loadingId)){clearTimeout(_classPrivateFieldGet(this,_loadingId));_classPrivateFieldSet(this,_loadingId,null);}switch(state){case _ui_utils.RenderingStates.PAUSED:this.div.classList.remove("loading");break;case _ui_utils.RenderingStates.RUNNING:this.div.classList.add("loadingIcon");_classPrivateFieldSet(this,_loadingId,setTimeout(function(){_this2.div.classList.add("loading");_classPrivateFieldSet(_this2,_loadingId,null);},0));break;case _ui_utils.RenderingStates.INITIAL:case _ui_utils.RenderingStates.FINISHED:this.div.classList.remove("loadingIcon","loading");break;}}},{key:"setPdfPage",value:function setPdfPage(pdfPage){var _this$pageColors,_this$pageColors2;if(this._isStandalone&&(((_this$pageColors=this.pageColors)===null||_this$pageColors===void 0?void 0:_this$pageColors.foreground)==="CanvasText"||((_this$pageColors2=this.pageColors)===null||_this$pageColors2===void 0?void 0:_this$pageColors2.background)==="Canvas")){var _this$_container;(_this$_container=this._container)===null||_this$_container===void 0?void 0:_this$_container.style.setProperty("--hcm-highligh-filter",pdfPage.filterFactory.addHighlightHCMFilter("CanvasText","Canvas","HighlightText","Highlight"));}this.pdfPage=pdfPage;this.pdfPageRotate=pdfPage.rotate;var totalRotation=(this.rotation+this.pdfPageRotate)%360;this.viewport=pdfPage.getViewport({scale:this.scale*_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:totalRotation});_classPrivateMethodGet(this,_setDimensions,_setDimensions2).call(this);this.reset();}},{key:"destroy",value:function destroy(){var _this$pdfPage;this.reset();(_this$pdfPage=this.pdfPage)===null||_this$pdfPage===void 0?void 0:_this$pdfPage.cleanup();}},{key:"_textHighlighter",get:function get(){return(0,_pdfjsLib.shadow)(this,"_textHighlighter",new _text_highlighter.TextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus,findController:_classPrivateFieldGet(this,_layerProperties).call(this).findController}));}},{key:"_resetZoomLayer",value:function _resetZoomLayer(){var removeFromDOM=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.zoomLayer){return;}var zoomLayerCanvas=this.zoomLayer.firstChild;_classPrivateFieldGet(this,_viewportMap).delete(zoomLayerCanvas);zoomLayerCanvas.width=0;zoomLayerCanvas.height=0;if(removeFromDOM){this.zoomLayer.remove();}this.zoomLayer=null;}},{key:"reset",value:function reset(){var _this$annotationLayer,_this$annotationEdito,_this$xfaLayer,_this$textLayer,_this$structTreeLayer;var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref$keepZoomLayer=_ref.keepZoomLayer,keepZoomLayer=_ref$keepZoomLayer===void 0?false:_ref$keepZoomLayer,_ref$keepAnnotationLa=_ref.keepAnnotationLayer,keepAnnotationLayer=_ref$keepAnnotationLa===void 0?false:_ref$keepAnnotationLa,_ref$keepAnnotationEd=_ref.keepAnnotationEditorLayer,keepAnnotationEditorLayer=_ref$keepAnnotationEd===void 0?false:_ref$keepAnnotationEd,_ref$keepXfaLayer=_ref.keepXfaLayer,keepXfaLayer=_ref$keepXfaLayer===void 0?false:_ref$keepXfaLayer,_ref$keepTextLayer=_ref.keepTextLayer,keepTextLayer=_ref$keepTextLayer===void 0?false:_ref$keepTextLayer;this.cancelRendering({keepAnnotationLayer:keepAnnotationLayer,keepAnnotationEditorLayer:keepAnnotationEditorLayer,keepXfaLayer:keepXfaLayer,keepTextLayer:keepTextLayer});this.renderingState=_ui_utils.RenderingStates.INITIAL;var div=this.div;var childNodes=div.childNodes,zoomLayerNode=keepZoomLayer&&this.zoomLayer||null,annotationLayerNode=keepAnnotationLayer&&((_this$annotationLayer=this.annotationLayer)===null||_this$annotationLayer===void 0?void 0:_this$annotationLayer.div)||null,annotationEditorLayerNode=keepAnnotationEditorLayer&&((_this$annotationEdito=this.annotationEditorLayer)===null||_this$annotationEdito===void 0?void 0:_this$annotationEdito.div)||null,xfaLayerNode=keepXfaLayer&&((_this$xfaLayer=this.xfaLayer)===null||_this$xfaLayer===void 0?void 0:_this$xfaLayer.div)||null,textLayerNode=keepTextLayer&&((_this$textLayer=this.textLayer)===null||_this$textLayer===void 0?void 0:_this$textLayer.div)||null;for(var i=childNodes.length-1;i>=0;i--){var node=childNodes[i];switch(node){case zoomLayerNode:case annotationLayerNode:case annotationEditorLayerNode:case xfaLayerNode:case textLayerNode:continue;}node.remove();}div.removeAttribute("data-loaded");if(annotationLayerNode){this.annotationLayer.hide();}if(annotationEditorLayerNode){this.annotationEditorLayer.hide();}if(xfaLayerNode){this.xfaLayer.hide();}if(textLayerNode){this.textLayer.hide();}(_this$structTreeLayer=this.structTreeLayer)===null||_this$structTreeLayer===void 0?void 0:_this$structTreeLayer.hide();if(!zoomLayerNode){if(this.canvas){_classPrivateFieldGet(this,_viewportMap).delete(this.canvas);this.canvas.width=0;this.canvas.height=0;delete this.canvas;}this._resetZoomLayer();}}},{key:"update",value:function update(_ref2){var _this3=this;var _ref2$scale=_ref2.scale,scale=_ref2$scale===void 0?0:_ref2$scale,_ref2$rotation=_ref2.rotation,rotation=_ref2$rotation===void 0?null:_ref2$rotation,_ref2$optionalContent=_ref2.optionalContentConfigPromise,optionalContentConfigPromise=_ref2$optionalContent===void 0?null:_ref2$optionalContent,_ref2$drawingDelay=_ref2.drawingDelay,drawingDelay=_ref2$drawingDelay===void 0?-1:_ref2$drawingDelay;this.scale=scale||this.scale;if(typeof rotation==="number"){this.rotation=rotation;}if(optionalContentConfigPromise instanceof Promise){this._optionalContentConfigPromise=optionalContentConfigPromise;optionalContentConfigPromise.then(function(optionalContentConfig){if(optionalContentConfigPromise!==_this3._optionalContentConfigPromise){return;}_classPrivateFieldGet(_this3,_useThumbnailCanvas).initialOptionalContent=optionalContentConfig.hasInitialVisibility;});}_classPrivateFieldGet(this,_useThumbnailCanvas).directDrawing=true;var totalRotation=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:this.scale*_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:totalRotation});_classPrivateMethodGet(this,_setDimensions,_setDimensions2).call(this);if(this._isStandalone){var _this$_container2;(_this$_container2=this._container)===null||_this$_container2===void 0?void 0:_this$_container2.style.setProperty("--scale-factor",this.viewport.scale);}if(this.canvas){var onlyCssZoom=false;if(_classPrivateFieldGet(this,_hasRestrictedScaling)){if(this.maxCanvasPixels===0){onlyCssZoom=true;}else if(this.maxCanvasPixels>0){var _this$viewport=this.viewport,width=_this$viewport.width,height=_this$viewport.height;var _this$outputScale=this.outputScale,sx=_this$outputScale.sx,sy=_this$outputScale.sy;onlyCssZoom=(Math.floor(width)*sx|0)*(Math.floor(height)*sy|0)>this.maxCanvasPixels;}}var postponeDrawing=!onlyCssZoom&&drawingDelay>=0&&drawingDelay<1000;if(postponeDrawing||onlyCssZoom){if(postponeDrawing&&this.renderingState!==_ui_utils.RenderingStates.FINISHED){this.cancelRendering({keepZoomLayer:true,keepAnnotationLayer:true,keepAnnotationEditorLayer:true,keepXfaLayer:true,keepTextLayer:true,cancelExtraDelay:drawingDelay});this.renderingState=_ui_utils.RenderingStates.FINISHED;_classPrivateFieldGet(this,_useThumbnailCanvas).directDrawing=false;}this.cssTransform({target:this.canvas,redrawAnnotationLayer:true,redrawAnnotationEditorLayer:true,redrawXfaLayer:true,redrawTextLayer:!postponeDrawing,hideTextLayer:postponeDrawing});if(postponeDrawing){return;}this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:true,timestamp:performance.now(),error:_classPrivateFieldGet(this,_renderError)});return;}if(!this.zoomLayer&&!this.canvas.hidden){this.zoomLayer=this.canvas.parentNode;this.zoomLayer.style.position="absolute";}}if(this.zoomLayer){this.cssTransform({target:this.zoomLayer.firstChild});}this.reset({keepZoomLayer:true,keepAnnotationLayer:true,keepAnnotationEditorLayer:true,keepXfaLayer:true,keepTextLayer:true});}},{key:"cancelRendering",value:function cancelRendering(){var _ref3=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref3$keepAnnotationL=_ref3.keepAnnotationLayer,keepAnnotationLayer=_ref3$keepAnnotationL===void 0?false:_ref3$keepAnnotationL,_ref3$keepAnnotationE=_ref3.keepAnnotationEditorLayer,keepAnnotationEditorLayer=_ref3$keepAnnotationE===void 0?false:_ref3$keepAnnotationE,_ref3$keepXfaLayer=_ref3.keepXfaLayer,keepXfaLayer=_ref3$keepXfaLayer===void 0?false:_ref3$keepXfaLayer,_ref3$keepTextLayer=_ref3.keepTextLayer,keepTextLayer=_ref3$keepTextLayer===void 0?false:_ref3$keepTextLayer,_ref3$cancelExtraDela=_ref3.cancelExtraDelay,cancelExtraDelay=_ref3$cancelExtraDela===void 0?0:_ref3$cancelExtraDela;if(this.renderTask){this.renderTask.cancel(cancelExtraDelay);this.renderTask=null;}this.resume=null;if(this.textLayer&&(!keepTextLayer||!this.textLayer.div)){this.textLayer.cancel();this.textLayer=null;}if(this.structTreeLayer&&!this.textLayer){this.structTreeLayer=null;}if(this.annotationLayer&&(!keepAnnotationLayer||!this.annotationLayer.div)){this.annotationLayer.cancel();this.annotationLayer=null;this._annotationCanvasMap=null;}if(this.annotationEditorLayer&&(!keepAnnotationEditorLayer||!this.annotationEditorLayer.div)){this.annotationEditorLayer.cancel();this.annotationEditorLayer=null;}if(this.xfaLayer&&(!keepXfaLayer||!this.xfaLayer.div)){var _this$_textHighlighte;this.xfaLayer.cancel();this.xfaLayer=null;(_this$_textHighlighte=this._textHighlighter)===null||_this$_textHighlighte===void 0?void 0:_this$_textHighlighte.disable();}}},{key:"cssTransform",value:function cssTransform(_ref4){var target=_ref4.target,_ref4$redrawAnnotatio=_ref4.redrawAnnotationLayer,redrawAnnotationLayer=_ref4$redrawAnnotatio===void 0?false:_ref4$redrawAnnotatio,_ref4$redrawAnnotatio2=_ref4.redrawAnnotationEditorLayer,redrawAnnotationEditorLayer=_ref4$redrawAnnotatio2===void 0?false:_ref4$redrawAnnotatio2,_ref4$redrawXfaLayer=_ref4.redrawXfaLayer,redrawXfaLayer=_ref4$redrawXfaLayer===void 0?false:_ref4$redrawXfaLayer,_ref4$redrawTextLayer=_ref4.redrawTextLayer,redrawTextLayer=_ref4$redrawTextLayer===void 0?false:_ref4$redrawTextLayer,_ref4$hideTextLayer=_ref4.hideTextLayer,hideTextLayer=_ref4$hideTextLayer===void 0?false:_ref4$hideTextLayer;if(!target.hasAttribute("zooming")){target.setAttribute("zooming",true);var style=target.style;style.width=style.height="";}var originalViewport=_classPrivateFieldGet(this,_viewportMap).get(target);if(this.viewport!==originalViewport){var relativeRotation=this.viewport.rotation-originalViewport.rotation;var absRotation=Math.abs(relativeRotation);var scaleX=1,scaleY=1;if(absRotation===90||absRotation===270){var _this$viewport2=this.viewport,width=_this$viewport2.width,height=_this$viewport2.height;scaleX=height/width;scaleY=width/height;}target.style.transform="rotate(".concat(relativeRotation,"deg) scale(").concat(scaleX,", ").concat(scaleY,")");}if(redrawAnnotationLayer&&this.annotationLayer){_classPrivateMethodGet(this,_renderAnnotationLayer,_renderAnnotationLayer2).call(this);}if(redrawAnnotationEditorLayer&&this.annotationEditorLayer){_classPrivateMethodGet(this,_renderAnnotationEditorLayer,_renderAnnotationEditorLayer2).call(this);}if(redrawXfaLayer&&this.xfaLayer){_classPrivateMethodGet(this,_renderXfaLayer,_renderXfaLayer2).call(this);}if(this.textLayer){if(hideTextLayer){var _this$structTreeLayer2;this.textLayer.hide();(_this$structTreeLayer2=this.structTreeLayer)===null||_this$structTreeLayer2===void 0?void 0:_this$structTreeLayer2.hide();}else if(redrawTextLayer){_classPrivateMethodGet(this,_renderTextLayer,_renderTextLayer2).call(this);}}}},{key:"width",get:function get(){return this.viewport.width;}},{key:"height",get:function get(){return this.viewport.height;}},{key:"getPagePoint",value:function getPagePoint(x,y){return this.viewport.convertToPdfPoint(x,y);}},{key:"draw",value:function(){var _draw=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _this4=this;var div,l10n,pageColors,pdfPage,viewport,canvasWrapper,_classPrivateFieldGet2,annotationStorage,downloadManager,enableScripting,fieldObjectsPromise,hasJSActionsPromise,linkService,renderContinueCallback,width,height,canvas,hasHCM,_showCanvas2,options,ctx,outputScale,invScale,pixelsInViewport,maxScale,sfx,sfy,divisor,max,newScale,style,transform,renderContext,renderTask,resultPromise,_classPrivateFieldGet4,_annotationStorage,_linkService;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(this.renderingState!==_ui_utils.RenderingStates.INITIAL){globalThis.ngxConsole.error("Must be in new state before drawing");this.reset();}div=this.div,l10n=this.l10n,pageColors=this.pageColors,pdfPage=this.pdfPage,viewport=this.viewport;if(pdfPage){_context2.next=5;break;}this.renderingState=_ui_utils.RenderingStates.FINISHED;throw new Error("pdfPage is not loaded");case 5:this.renderingState=_ui_utils.RenderingStates.RUNNING;canvasWrapper=document.createElement("div");canvasWrapper.classList.add("canvasWrapper");div.append(canvasWrapper);if(!this.textLayer&&_classPrivateFieldGet(this,_textLayerMode)!==_ui_utils.TextLayerMode.DISABLE&&!pdfPage.isPureXfa){this._accessibilityManager||(this._accessibilityManager=new _text_accessibility.TextAccessibilityManager());this.textLayer=new _text_layer_builder.TextLayerBuilder({highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,enablePermissions:_classPrivateFieldGet(this,_textLayerMode)===_ui_utils.TextLayerMode.ENABLE_PERMISSIONS});div.append(this.textLayer.div);}if(!this.annotationLayer&&_classPrivateFieldGet(this,_annotationMode)!==_pdfjsLib.AnnotationMode.DISABLE){_classPrivateFieldGet2=_classPrivateFieldGet(this,_layerProperties).call(this),annotationStorage=_classPrivateFieldGet2.annotationStorage,downloadManager=_classPrivateFieldGet2.downloadManager,enableScripting=_classPrivateFieldGet2.enableScripting,fieldObjectsPromise=_classPrivateFieldGet2.fieldObjectsPromise,hasJSActionsPromise=_classPrivateFieldGet2.hasJSActionsPromise,linkService=_classPrivateFieldGet2.linkService;this._annotationCanvasMap||(this._annotationCanvasMap=new Map());this.annotationLayer=new _annotation_layer_builder.AnnotationLayerBuilder({pageDiv:div,pdfPage:pdfPage,annotationStorage:annotationStorage,imageResourcesPath:this.imageResourcesPath,renderForms:_classPrivateFieldGet(this,_annotationMode)===_pdfjsLib.AnnotationMode.ENABLE_FORMS,linkService:linkService,downloadManager:downloadManager,l10n:l10n,enableScripting:enableScripting,hasJSActionsPromise:hasJSActionsPromise,fieldObjectsPromise:fieldObjectsPromise,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager});}renderContinueCallback=function renderContinueCallback(cont){var _showCanvas;(_showCanvas=_showCanvas2)===null||_showCanvas===void 0?void 0:_showCanvas(false);if(_this4.renderingQueue&&!_this4.renderingQueue.isHighestPriority(_this4)){_this4.renderingState=_ui_utils.RenderingStates.PAUSED;_this4.resume=function(){_this4.renderingState=_ui_utils.RenderingStates.RUNNING;cont();};return;}cont();};width=viewport.width,height=viewport.height;canvas=document.createElement("canvas");canvas.setAttribute("role","presentation");canvas.hidden=true;hasHCM=!!(pageColors!==null&&pageColors!==void 0&&pageColors.background&&pageColors!==null&&pageColors!==void 0&&pageColors.foreground);_showCanvas2=function showCanvas(isLastShow){if(!hasHCM||isLastShow){canvas.hidden=false;_showCanvas2=null;}};canvasWrapper.append(canvas);this.canvas=canvas;options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true,alpha:false}:{alpha:false};ctx=canvas.getContext("2d",options);outputScale=this.outputScale=new _ui_utils.OutputScale();if(this.maxCanvasPixels===0){invScale=1/this.scale;outputScale.sx*=invScale;outputScale.sy*=invScale;_classPrivateFieldSet(this,_hasRestrictedScaling,true);}else if(this.maxCanvasPixels>0){pixelsInViewport=width*height;maxScale=Math.sqrt(this.maxCanvasPixels/pixelsInViewport);if(outputScale.sx>maxScale||outputScale.sy>maxScale){outputScale.sx=maxScale;outputScale.sy=maxScale;_classPrivateFieldSet(this,_hasRestrictedScaling,true);}else{_classPrivateFieldSet(this,_hasRestrictedScaling,false);}}sfx=(0,_ui_utils.approximateFraction)(outputScale.sx);sfy=(0,_ui_utils.approximateFraction)(outputScale.sy);width=(0,_ui_utils.roundToDivide)(width*outputScale.sx,sfx[0]);height=(0,_ui_utils.roundToDivide)(height*outputScale.sy,sfy[0]);divisor=1;if(width>=4096||height>=4096){if(!!this.maxWidth||!_canvasSize.default.test({width:width,height:height})){max=this.determineMaxDimensions();divisor=Math.max(width/max,height/max);if(divisor>1){newScale=Math.floor(100*this.scale/divisor)/100;divisor=this.scale/newScale;viewport.width/=divisor;viewport.height/=divisor;(0,_util.warn)("Page ".concat(this.id,": Reduced the maximum zoom to ").concat(newScale," because the browser can't render larger canvases."));}else{divisor=1;}}}canvas.width=(0,_ui_utils.roundToDivide)(viewport.width*outputScale.sx,sfx[0]);canvas.height=(0,_ui_utils.roundToDivide)(viewport.height*outputScale.sy,sfy[0]);style=canvas.style;style.width=(0,_ui_utils.roundToDivide)(viewport.width,sfx[1])+"px";style.height=(0,_ui_utils.roundToDivide)(viewport.height,sfy[1])+"px";_classPrivateFieldGet(this,_viewportMap).set(canvas,viewport);transform=outputScale.scaled?[outputScale.sx,0,0,outputScale.sy,0,0]:null;renderContext={canvasContext:ctx,transform:transform,viewport:viewport,annotationMode:_classPrivateFieldGet(this,_annotationMode),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:pageColors};renderTask=this.renderTask=this.pdfPage.render(renderContext);renderTask.onContinue=renderContinueCallback;resultPromise=renderTask.promise.then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _showCanvas3;var _this4$annotationLaye,_classPrivateFieldGet3,annotationEditorUIManager;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:(_showCanvas3=_showCanvas2)===null||_showCanvas3===void 0?void 0:_showCanvas3(true);_context.next=3;return _classPrivateMethodGet(_this4,_finishRenderTask,_finishRenderTask2).call(_this4,renderTask);case 3:_classPrivateMethodGet(_this4,_renderTextLayer,_renderTextLayer2).call(_this4);if(!_this4.annotationLayer){_context.next=7;break;}_context.next=7;return _classPrivateMethodGet(_this4,_renderAnnotationLayer,_renderAnnotationLayer2).call(_this4);case 7:if(_this4.annotationEditorLayer){_context.next=12;break;}_classPrivateFieldGet3=_classPrivateFieldGet(_this4,_layerProperties).call(_this4),annotationEditorUIManager=_classPrivateFieldGet3.annotationEditorUIManager;if(annotationEditorUIManager){_context.next=11;break;}return _context.abrupt("return");case 11:_this4.annotationEditorLayer=new _annotation_editor_layer_builder.AnnotationEditorLayerBuilder({uiManager:annotationEditorUIManager,pageDiv:div,pdfPage:pdfPage,l10n:l10n,accessibilityManager:_this4._accessibilityManager,annotationLayer:(_this4$annotationLaye=_this4.annotationLayer)===null||_this4$annotationLaye===void 0?void 0:_this4$annotationLaye.annotationLayer});case 12:_classPrivateMethodGet(_this4,_renderAnnotationEditorLayer,_renderAnnotationEditorLayer2).call(_this4);case 13:case"end":return _context.stop();}},_callee);})),function(error){if(!(error instanceof _pdfjsLib.RenderingCancelledException)){var _showCanvas4;(_showCanvas4=_showCanvas2)===null||_showCanvas4===void 0?void 0:_showCanvas4(true);}return _classPrivateMethodGet(_this4,_finishRenderTask,_finishRenderTask2).call(_this4,renderTask,error);});if(pdfPage.isPureXfa){if(!this.xfaLayer){_classPrivateFieldGet4=_classPrivateFieldGet(this,_layerProperties).call(this),_annotationStorage=_classPrivateFieldGet4.annotationStorage,_linkService=_classPrivateFieldGet4.linkService;this.xfaLayer=new _xfa_layer_builder.XfaLayerBuilder({pageDiv:div,pdfPage:pdfPage,annotationStorage:_annotationStorage,linkService:_linkService});}else if(this.xfaLayer.div){div.append(this.xfaLayer.div);}_classPrivateMethodGet(this,_renderXfaLayer,_renderXfaLayer2).call(this);}div.setAttribute("data-loaded",true);this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id});return _context2.abrupt("return",resultPromise);case 45:case"end":return _context2.stop();}},_callee2,this);}));function draw(){return _draw.apply(this,arguments);}return draw;}()},{key:"setPageLabel",value:function setPageLabel(label){this.pageLabel=typeof label==="string"?label:null;if(this.pageLabel!==null){this.div.setAttribute("data-page-label",this.pageLabel);}else{this.div.removeAttribute("data-page-label");}}},{key:"determineMaxDimensions",value:function determineMaxDimensions(){if(this.maxWidth){return this.maxWidth;}var checklist=[4096,8192,10836,11180,11402,14188,16384];for(var _i=0,_checklist=checklist;_i<_checklist.length;_i++){var width=_checklist[_i];if(!_canvasSize.default.test({width:width+1,height:width+1})){this.maxWidth=width;return this.maxWidth;}}return 16384;}},{key:"thumbnailCanvas",get:function get(){var _classPrivateFieldGet5=_classPrivateFieldGet(this,_useThumbnailCanvas),directDrawing=_classPrivateFieldGet5.directDrawing,initialOptionalContent=_classPrivateFieldGet5.initialOptionalContent,regularAnnotations=_classPrivateFieldGet5.regularAnnotations;return directDrawing&&initialOptionalContent&&regularAnnotations?this.canvas:null;}}]);return PDFPageView;}();exports.PDFPageView=PDFPageView;function _setDimensions2(){var viewport=this.viewport;if(this.pdfPage){if(_classPrivateFieldGet(this,_previousRotation)===viewport.rotation){return;}_classPrivateFieldSet(this,_previousRotation,viewport.rotation);}(0,_pdfjsLib.setLayerDimensions)(this.div,viewport,true,false);}function _renderAnnotationLayer2(){return _renderAnnotationLayer3.apply(this,arguments);}function _renderAnnotationLayer3(){_renderAnnotationLayer3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var error;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:error=null;_context3.prev=1;_context3.next=4;return this.annotationLayer.render(this.viewport,"display");case 4:_context3.next=10;break;case 6:_context3.prev=6;_context3.t0=_context3["catch"](1);console.error("#renderAnnotationLayer: \"".concat(_context3.t0,"\"."));error=_context3.t0;case 10:_context3.prev=10;this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:error});return _context3.finish(10);case 13:case"end":return _context3.stop();}},_callee3,this,[[1,6,10,13]]);}));return _renderAnnotationLayer3.apply(this,arguments);}function _renderAnnotationEditorLayer2(){return _renderAnnotationEditorLayer3.apply(this,arguments);}function _renderAnnotationEditorLayer3(){_renderAnnotationEditorLayer3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var error;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:error=null;_context4.prev=1;_context4.next=4;return this.annotationEditorLayer.render(this.viewport,"display");case 4:_context4.next=10;break;case 6:_context4.prev=6;_context4.t0=_context4["catch"](1);console.error("#renderAnnotationEditorLayer: \"".concat(_context4.t0,"\"."));error=_context4.t0;case 10:_context4.prev=10;this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:error});return _context4.finish(10);case 13:case"end":return _context4.stop();}},_callee4,this,[[1,6,10,13]]);}));return _renderAnnotationEditorLayer3.apply(this,arguments);}function _renderXfaLayer2(){return _renderXfaLayer3.apply(this,arguments);}function _renderXfaLayer3(){_renderXfaLayer3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var error,result;return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:error=null;_context5.prev=1;_context5.next=4;return this.xfaLayer.render(this.viewport,"display");case 4:result=_context5.sent;if(result!==null&&result!==void 0&&result.textDivs&&this._textHighlighter){_classPrivateMethodGet(this,_buildXfaTextContentItems,_buildXfaTextContentItems2).call(this,result.textDivs);}_context5.next=12;break;case 8:_context5.prev=8;_context5.t0=_context5["catch"](1);console.error("#renderXfaLayer: \"".concat(_context5.t0,"\"."));error=_context5.t0;case 12:_context5.prev=12;this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:error});return _context5.finish(12);case 15:case"end":return _context5.stop();}},_callee5,this,[[1,8,12,15]]);}));return _renderXfaLayer3.apply(this,arguments);}function _renderTextLayer2(){return _renderTextLayer3.apply(this,arguments);}function _renderTextLayer3(){_renderTextLayer3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var pdfPage,textLayer,viewport,error,readableStream;return _regeneratorRuntime().wrap(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:pdfPage=this.pdfPage,textLayer=this.textLayer,viewport=this.viewport;if(textLayer){_context6.next=3;break;}return _context6.abrupt("return");case 3:error=null;_context6.prev=4;if(!textLayer.renderingDone){readableStream=pdfPage.streamTextContent({includeMarkedContent:true,disableNormalization:true});textLayer.setTextContentSource(readableStream);}_context6.next=8;return textLayer.render(viewport);case 8:_context6.next=16;break;case 10:_context6.prev=10;_context6.t0=_context6["catch"](4);if(!(_context6.t0 instanceof _pdfjsLib.AbortException)){_context6.next=14;break;}return _context6.abrupt("return");case 14:console.error("#renderTextLayer: \"".concat(_context6.t0,"\"."));error=_context6.t0;case 16:this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.id,numTextDivs:textLayer.numTextDivs,error:error});_classPrivateMethodGet(this,_renderStructTreeLayer,_renderStructTreeLayer2).call(this);case 18:case"end":return _context6.stop();}},_callee6,this,[[4,10]]);}));return _renderTextLayer3.apply(this,arguments);}function _renderStructTreeLayer2(){return _renderStructTreeLayer3.apply(this,arguments);}function _renderStructTreeLayer3(){_renderStructTreeLayer3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _this$structTreeLayer3,_this$structTreeLayer4;var tree,treeDom,_this$canvas;return _regeneratorRuntime().wrap(function _callee7$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:if(this.textLayer){_context7.next=2;break;}return _context7.abrupt("return");case 2:this.structTreeLayer||(this.structTreeLayer=new _struct_tree_layer_builder.StructTreeLayerBuilder());_context7.next=5;return!this.structTreeLayer.renderingDone?this.pdfPage.getStructTree():null;case 5:tree=_context7.sent;treeDom=(_this$structTreeLayer3=this.structTreeLayer)===null||_this$structTreeLayer3===void 0?void 0:_this$structTreeLayer3.render(tree);if(treeDom){(_this$canvas=this.canvas)===null||_this$canvas===void 0?void 0:_this$canvas.append(treeDom);}(_this$structTreeLayer4=this.structTreeLayer)===null||_this$structTreeLayer4===void 0?void 0:_this$structTreeLayer4.show();case 9:case"end":return _context7.stop();}},_callee7,this);}));return _renderStructTreeLayer3.apply(this,arguments);}function _buildXfaTextContentItems2(_x){return _buildXfaTextContentItems3.apply(this,arguments);}function _buildXfaTextContentItems3(){_buildXfaTextContentItems3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(textDivs){var text,items,_iterator,_step,item;return _regeneratorRuntime().wrap(function _callee8$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return this.pdfPage.getTextContent();case 2:text=_context8.sent;items=[];_iterator=_createForOfIteratorHelper(text.items);try{for(_iterator.s();!(_step=_iterator.n()).done;){item=_step.value;items.push(item.str);}}catch(err){_iterator.e(err);}finally{_iterator.f();}this._textHighlighter.setTextMapping(textDivs,items);this._textHighlighter.enable();case 8:case"end":return _context8.stop();}},_callee8,this);}));return _buildXfaTextContentItems3.apply(this,arguments);}function _finishRenderTask2(_x2){return _finishRenderTask3.apply(this,arguments);}function _finishRenderTask3(){_finishRenderTask3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(renderTask){var error,_args9=arguments;return _regeneratorRuntime().wrap(function _callee9$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:error=_args9.length>1&&_args9[1]!==undefined?_args9[1]:null;if(renderTask===this.renderTask){this.renderTask=null;}if(!(error instanceof _pdfjsLib.RenderingCancelledException)){_context9.next=5;break;}_classPrivateFieldSet(this,_renderError,null);return _context9.abrupt("return");case 5:_classPrivateFieldSet(this,_renderError,error);this.renderingState=_ui_utils.RenderingStates.FINISHED;this._resetZoomLayer(true);_classPrivateFieldGet(this,_useThumbnailCanvas).regularAnnotations=!renderTask.separateAnnots;this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:false,timestamp:performance.now(),error:_classPrivateFieldGet(this,_renderError)});if(!error){_context9.next=12;break;}throw error;case 12:case"end":return _context9.stop();}},_callee9,this);}));return _finishRenderTask3.apply(this,arguments);}

/***/ }),
/* 333 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.AnnotationEditorLayerBuilder=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);var _pdfjsLib=__webpack_require__(286);var _l10n_utils=__webpack_require__(328);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var _annotationLayer=/*#__PURE__*/new WeakMap();var _uiManager=/*#__PURE__*/new WeakMap();var AnnotationEditorLayerBuilder=/*#__PURE__*/function(){function AnnotationEditorLayerBuilder(options){_classCallCheck(this,AnnotationEditorLayerBuilder);_classPrivateFieldInitSpec(this,_annotationLayer,{writable:true,value:null});_classPrivateFieldInitSpec(this,_uiManager,{writable:true,value:void 0});this.pageDiv=options.pageDiv;this.pdfPage=options.pdfPage;this.accessibilityManager=options.accessibilityManager;this.l10n=options.l10n||_l10n_utils.NullL10n;this.annotationEditorLayer=null;this.div=null;this._cancelled=false;_classPrivateFieldSet(this,_uiManager,options.uiManager);_classPrivateFieldSet(this,_annotationLayer,options.annotationLayer||null);}_createClass(AnnotationEditorLayerBuilder,[{key:"render",value:function(){var _render=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(viewport){var intent,clonedViewport,div,parameters,_args=arguments;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:intent=_args.length>1&&_args[1]!==undefined?_args[1]:"display";if(!(intent!=="display")){_context.next=3;break;}return _context.abrupt("return");case 3:if(!this._cancelled){_context.next=5;break;}return _context.abrupt("return");case 5:clonedViewport=viewport.clone({dontFlip:true});if(!this.div){_context.next=10;break;}this.annotationEditorLayer.update({viewport:clonedViewport});this.show();return _context.abrupt("return");case 10:div=this.div=document.createElement("div");div.className="annotationEditorLayer";div.tabIndex=0;div.hidden=true;this.pageDiv.append(div);this.annotationEditorLayer=new _pdfjsLib.AnnotationEditorLayer({uiManager:_classPrivateFieldGet(this,_uiManager),div:div,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:clonedViewport,annotationLayer:_classPrivateFieldGet(this,_annotationLayer)});parameters={viewport:clonedViewport,div:div,annotations:null,intent:intent};this.annotationEditorLayer.render(parameters);this.show();case 19:case"end":return _context.stop();}},_callee,this);}));function render(_x){return _render.apply(this,arguments);}return render;}()},{key:"cancel",value:function cancel(){this._cancelled=true;if(!this.div){return;}this.pageDiv=null;this.annotationEditorLayer.destroy();this.div.remove();}},{key:"hide",value:function hide(){if(!this.div){return;}this.div.hidden=true;}},{key:"show",value:function show(){if(!this.div||this.annotationEditorLayer.isEmpty){return;}this.div.hidden=false;}}]);return AnnotationEditorLayerBuilder;}();exports.AnnotationEditorLayerBuilder=AnnotationEditorLayerBuilder;

/***/ }),
/* 334 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);__webpack_require__(179);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.AnnotationLayerBuilder=void 0;__webpack_require__(88);__webpack_require__(142);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(126);__webpack_require__(283);__webpack_require__(293);var _pdfjsLib=__webpack_require__(286);var _l10n_utils=__webpack_require__(328);var _ui_utils=__webpack_require__(239);function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _onPresentationModeChanged=/*#__PURE__*/new WeakMap();var _updatePresentationModeState=/*#__PURE__*/new WeakSet();var AnnotationLayerBuilder=/*#__PURE__*/function(){function AnnotationLayerBuilder(_ref){var pageDiv=_ref.pageDiv,pdfPage=_ref.pdfPage,linkService=_ref.linkService,downloadManager=_ref.downloadManager,_ref$annotationStorag=_ref.annotationStorage,annotationStorage=_ref$annotationStorag===void 0?null:_ref$annotationStorag,_ref$imageResourcesPa=_ref.imageResourcesPath,imageResourcesPath=_ref$imageResourcesPa===void 0?"":_ref$imageResourcesPa,_ref$renderForms=_ref.renderForms,renderForms=_ref$renderForms===void 0?true:_ref$renderForms,_ref$l10n=_ref.l10n,l10n=_ref$l10n===void 0?_l10n_utils.NullL10n:_ref$l10n,_ref$enableScripting=_ref.enableScripting,enableScripting=_ref$enableScripting===void 0?false:_ref$enableScripting,_ref$hasJSActionsProm=_ref.hasJSActionsPromise,hasJSActionsPromise=_ref$hasJSActionsProm===void 0?null:_ref$hasJSActionsProm,_ref$fieldObjectsProm=_ref.fieldObjectsPromise,fieldObjectsPromise=_ref$fieldObjectsProm===void 0?null:_ref$fieldObjectsProm,_ref$annotationCanvas=_ref.annotationCanvasMap,annotationCanvasMap=_ref$annotationCanvas===void 0?null:_ref$annotationCanvas,_ref$accessibilityMan=_ref.accessibilityManager,accessibilityManager=_ref$accessibilityMan===void 0?null:_ref$accessibilityMan;_classCallCheck(this,AnnotationLayerBuilder);_classPrivateMethodInitSpec(this,_updatePresentationModeState);_classPrivateFieldInitSpec(this,_onPresentationModeChanged,{writable:true,value:null});this.pageDiv=pageDiv;this.pdfPage=pdfPage;this.linkService=linkService;this.downloadManager=downloadManager;this.imageResourcesPath=imageResourcesPath;this.renderForms=renderForms;this.l10n=l10n;this.annotationStorage=annotationStorage;this.enableScripting=enableScripting;this._hasJSActionsPromise=hasJSActionsPromise||Promise.resolve(false);this._fieldObjectsPromise=fieldObjectsPromise||Promise.resolve(null);this._annotationCanvasMap=annotationCanvasMap;this._accessibilityManager=accessibilityManager;this.annotationLayer=null;this.div=null;this._cancelled=false;this._eventBus=linkService.eventBus;}_createClass(AnnotationLayerBuilder,[{key:"render",value:function(){var _render=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(viewport){var _this=this;var intent,_yield$Promise$all,_yield$Promise$all2,annotations,hasJSActions,fieldObjects,div,_this$_eventBus,_args=arguments;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:intent=_args.length>1&&_args[1]!==undefined?_args[1]:"display";if(!this.div){_context.next=6;break;}if(!(this._cancelled||!this.annotationLayer)){_context.next=4;break;}return _context.abrupt("return");case 4:this.annotationLayer.update({viewport:viewport.clone({dontFlip:true})});return _context.abrupt("return");case 6:_context.next=8;return Promise.all([this.pdfPage.getAnnotations({intent:intent}),this._hasJSActionsPromise,this._fieldObjectsPromise]);case 8:_yield$Promise$all=_context.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);annotations=_yield$Promise$all2[0];hasJSActions=_yield$Promise$all2[1];fieldObjects=_yield$Promise$all2[2];if(!this._cancelled){_context.next=15;break;}return _context.abrupt("return");case 15:div=this.div=document.createElement("div");div.className="annotationLayer";this.pageDiv.append(div);if(!(annotations.length===0)){_context.next=21;break;}this.hide();return _context.abrupt("return");case 21:this.annotationLayer=new _pdfjsLib.AnnotationLayer({div:div,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,l10n:this.l10n,page:this.pdfPage,viewport:viewport.clone({dontFlip:true})});_context.next=24;return this.annotationLayer.render({annotations:annotations,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:hasJSActions,fieldObjects:fieldObjects});case 24:if(this.linkService.isInPresentationMode){_classPrivateMethodGet(this,_updatePresentationModeState,_updatePresentationModeState2).call(this,_ui_utils.PresentationModeState.FULLSCREEN);}if(!_classPrivateFieldGet(this,_onPresentationModeChanged)){_classPrivateFieldSet(this,_onPresentationModeChanged,function(evt){_classPrivateMethodGet(_this,_updatePresentationModeState,_updatePresentationModeState2).call(_this,evt.state);});(_this$_eventBus=this._eventBus)===null||_this$_eventBus===void 0?void 0:_this$_eventBus._on("presentationmodechanged",_classPrivateFieldGet(this,_onPresentationModeChanged));}case 26:case"end":return _context.stop();}},_callee,this);}));function render(_x){return _render.apply(this,arguments);}return render;}()},{key:"cancel",value:function cancel(){this._cancelled=true;if(_classPrivateFieldGet(this,_onPresentationModeChanged)){var _this$_eventBus2;(_this$_eventBus2=this._eventBus)===null||_this$_eventBus2===void 0?void 0:_this$_eventBus2._off("presentationmodechanged",_classPrivateFieldGet(this,_onPresentationModeChanged));_classPrivateFieldSet(this,_onPresentationModeChanged,null);}}},{key:"hide",value:function hide(){if(!this.div){return;}this.div.hidden=true;}}]);return AnnotationLayerBuilder;}();exports.AnnotationLayerBuilder=AnnotationLayerBuilder;function _updatePresentationModeState2(state){if(!this.div){return;}var disableFormElements=false;switch(state){case _ui_utils.PresentationModeState.FULLSCREEN:disableFormElements=true;break;case _ui_utils.PresentationModeState.NORMAL:break;default:return;}var _iterator=_createForOfIteratorHelper(this.div.childNodes),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var section=_step.value;if(section.hasAttribute("data-internal-link")){continue;}section.inert=disableFormElements;}}catch(err){_iterator.e(err);}finally{_iterator.f();}}

/***/ }),
/* 335 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}__webpack_require__(126);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(219);__webpack_require__(1);Object.defineProperty(exports, "__esModule", ({value:true}));exports.StructTreeLayerBuilder=void 0;__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(293);__webpack_require__(206);__webpack_require__(292);function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}var PDF_ROLE_TO_HTML_ROLE={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null};var HEADING_PATTERN=/^H(\d+)$/;var _treeDom=/*#__PURE__*/new WeakMap();var _setAttributes=/*#__PURE__*/new WeakSet();var _walk=/*#__PURE__*/new WeakSet();var StructTreeLayerBuilder=/*#__PURE__*/function(){function StructTreeLayerBuilder(){_classCallCheck(this,StructTreeLayerBuilder);_classPrivateMethodInitSpec(this,_walk);_classPrivateMethodInitSpec(this,_setAttributes);_classPrivateFieldInitSpec(this,_treeDom,{writable:true,value:undefined});}_createClass(StructTreeLayerBuilder,[{key:"renderingDone",get:function get(){return _classPrivateFieldGet(this,_treeDom)!==undefined;}},{key:"render",value:function render(structTree){if(_classPrivateFieldGet(this,_treeDom)!==undefined){return _classPrivateFieldGet(this,_treeDom);}var treeDom=_classPrivateMethodGet(this,_walk,_walk2).call(this,structTree);treeDom===null||treeDom===void 0?void 0:treeDom.classList.add("structTree");return _classPrivateFieldSet(this,_treeDom,treeDom);}},{key:"hide",value:function hide(){if(_classPrivateFieldGet(this,_treeDom)&&!_classPrivateFieldGet(this,_treeDom).hidden){_classPrivateFieldGet(this,_treeDom).hidden=true;}}},{key:"show",value:function show(){var _classPrivateFieldGet2;if((_classPrivateFieldGet2=_classPrivateFieldGet(this,_treeDom))!==null&&_classPrivateFieldGet2!==void 0&&_classPrivateFieldGet2.hidden){_classPrivateFieldGet(this,_treeDom).hidden=false;}}}]);return StructTreeLayerBuilder;}();exports.StructTreeLayerBuilder=StructTreeLayerBuilder;function _setAttributes2(structElement,htmlElement){if(structElement.alt!==undefined){htmlElement.setAttribute("aria-label",structElement.alt);}if(structElement.id!==undefined){htmlElement.setAttribute("aria-owns",structElement.id);}if(structElement.lang!==undefined){htmlElement.setAttribute("lang",structElement.lang);}}function _walk2(node){if(!node){return null;}var element=document.createElement("span");if("role"in node){var role=node.role;var match=role.match(HEADING_PATTERN);if(match){element.setAttribute("role","heading");element.setAttribute("aria-level",match[1]);}else if(PDF_ROLE_TO_HTML_ROLE[role]){element.setAttribute("role",PDF_ROLE_TO_HTML_ROLE[role]);}}_classPrivateMethodGet(this,_setAttributes,_setAttributes2).call(this,node,element);if(node.children){if(node.children.length===1&&"id"in node.children[0]){_classPrivateMethodGet(this,_setAttributes,_setAttributes2).call(this,node.children[0],element);}else{var _iterator=_createForOfIteratorHelper(node.children),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var kid=_step.value;element.append(_classPrivateMethodGet(this,_walk,_walk2).call(this,kid));}}catch(err){_iterator.e(err);}finally{_iterator.f();}}}return element;}

/***/ }),
/* 336 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(222);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(179);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.TextAccessibilityManager=void 0;__webpack_require__(42);__webpack_require__(240);__webpack_require__(88);__webpack_require__(92);__webpack_require__(95);__webpack_require__(126);__webpack_require__(185);__webpack_require__(278);__webpack_require__(199);__webpack_require__(200);__webpack_require__(195);__webpack_require__(192);__webpack_require__(283);__webpack_require__(293);__webpack_require__(216);var _ui_utils=__webpack_require__(239);function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classStaticPrivateMethodGet(receiver,classConstructor,method){_classCheckPrivateStaticAccess(receiver,classConstructor);return method;}function _classCheckPrivateStaticAccess(receiver,classConstructor){if(receiver!==classConstructor){throw new TypeError("Private static access of wrong provenance");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var _enabled=/*#__PURE__*/new WeakMap();var _textChildren=/*#__PURE__*/new WeakMap();var _textNodes=/*#__PURE__*/new WeakMap();var _waitingElements=/*#__PURE__*/new WeakMap();var _addIdToAriaOwns=/*#__PURE__*/new WeakSet();var TextAccessibilityManager=/*#__PURE__*/function(){function TextAccessibilityManager(){_classCallCheck(this,TextAccessibilityManager);_classPrivateMethodInitSpec(this,_addIdToAriaOwns);_classPrivateFieldInitSpec(this,_enabled,{writable:true,value:false});_classPrivateFieldInitSpec(this,_textChildren,{writable:true,value:null});_classPrivateFieldInitSpec(this,_textNodes,{writable:true,value:new Map()});_classPrivateFieldInitSpec(this,_waitingElements,{writable:true,value:new Map()});}_createClass(TextAccessibilityManager,[{key:"setTextMapping",value:function setTextMapping(textDivs){_classPrivateFieldSet(this,_textChildren,textDivs);}},{key:"enable",value:function enable(){if(_classPrivateFieldGet(this,_enabled)){throw new Error("TextAccessibilityManager is already enabled.");}if(!_classPrivateFieldGet(this,_textChildren)){throw new Error("Text divs and strings have not been set.");}_classPrivateFieldSet(this,_enabled,true);_classPrivateFieldSet(this,_textChildren,_classPrivateFieldGet(this,_textChildren).slice());_classPrivateFieldGet(this,_textChildren).sort(_classStaticPrivateMethodGet(TextAccessibilityManager,TextAccessibilityManager,_compareElementPositions));if(_classPrivateFieldGet(this,_textNodes).size>0){var textChildren=_classPrivateFieldGet(this,_textChildren);var _iterator=_createForOfIteratorHelper(_classPrivateFieldGet(this,_textNodes)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),id=_step$value[0],nodeIndex=_step$value[1];var element=document.getElementById(id);if(!element){_classPrivateFieldGet(this,_textNodes).delete(id);continue;}_classPrivateMethodGet(this,_addIdToAriaOwns,_addIdToAriaOwns2).call(this,id,textChildren[nodeIndex]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}var _iterator2=_createForOfIteratorHelper(_classPrivateFieldGet(this,_waitingElements)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),_element=_step2$value[0],isRemovable=_step2$value[1];this.addPointerInTextLayer(_element,isRemovable);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}_classPrivateFieldGet(this,_waitingElements).clear();}},{key:"disable",value:function disable(){if(!_classPrivateFieldGet(this,_enabled)){return;}_classPrivateFieldGet(this,_waitingElements).clear();_classPrivateFieldSet(this,_textChildren,null);_classPrivateFieldSet(this,_enabled,false);}},{key:"removePointerInTextLayer",value:function removePointerInTextLayer(element){var _owns;if(!_classPrivateFieldGet(this,_enabled)){_classPrivateFieldGet(this,_waitingElements).delete(element);return;}var children=_classPrivateFieldGet(this,_textChildren);if(!children||children.length===0){return;}var id=element.id;var nodeIndex=_classPrivateFieldGet(this,_textNodes).get(id);if(nodeIndex===undefined){return;}var node=children[nodeIndex];_classPrivateFieldGet(this,_textNodes).delete(id);var owns=node.getAttribute("aria-owns");if((_owns=owns)!==null&&_owns!==void 0&&_owns.includes(id)){owns=owns.split(" ").filter(function(x){return x!==id;}).join(" ");if(owns){node.setAttribute("aria-owns",owns);}else{node.removeAttribute("aria-owns");node.setAttribute("role","presentation");}}}},{key:"addPointerInTextLayer",value:function addPointerInTextLayer(element,isRemovable){var id=element.id;if(!id){return;}if(!_classPrivateFieldGet(this,_enabled)){_classPrivateFieldGet(this,_waitingElements).set(element,isRemovable);return;}if(isRemovable){this.removePointerInTextLayer(element);}var children=_classPrivateFieldGet(this,_textChildren);if(!children||children.length===0){return;}var index=(0,_ui_utils.binarySearchFirstItem)(children,function(node){return _classStaticPrivateMethodGet(TextAccessibilityManager,TextAccessibilityManager,_compareElementPositions).call(TextAccessibilityManager,element,node)<0;});var nodeIndex=Math.max(0,index-1);_classPrivateMethodGet(this,_addIdToAriaOwns,_addIdToAriaOwns2).call(this,id,children[nodeIndex]);_classPrivateFieldGet(this,_textNodes).set(id,nodeIndex);}},{key:"moveElementInDOM",value:function moveElementInDOM(container,element,contentElement,isRemovable){this.addPointerInTextLayer(contentElement,isRemovable);if(!container.hasChildNodes()){container.append(element);return;}var children=Array.from(container.childNodes).filter(function(node){return node!==element;});if(children.length===0){return;}var elementToCompare=contentElement||element;var index=(0,_ui_utils.binarySearchFirstItem)(children,function(node){return _classStaticPrivateMethodGet(TextAccessibilityManager,TextAccessibilityManager,_compareElementPositions).call(TextAccessibilityManager,elementToCompare,node)<0;});if(index===0){children[0].before(element);}else{children[index-1].after(element);}}}]);return TextAccessibilityManager;}();exports.TextAccessibilityManager=TextAccessibilityManager;function _compareElementPositions(e1,e2){var rect1=e1.getBoundingClientRect();var rect2=e2.getBoundingClientRect();if(rect1.width===0&&rect1.height===0){return+1;}if(rect2.width===0&&rect2.height===0){return-1;}var top1=rect1.y;var bot1=rect1.y+rect1.height;var mid1=rect1.y+rect1.height/2;var top2=rect2.y;var bot2=rect2.y+rect2.height;var mid2=rect2.y+rect2.height/2;if(mid1<=top2&&mid2>=bot1){return-1;}if(mid2<=top1&&mid1>=bot2){return+1;}var centerX1=rect1.x+rect1.width/2;var centerX2=rect2.x+rect2.width/2;return centerX1-centerX2;}function _addIdToAriaOwns2(id,node){var owns=node.getAttribute("aria-owns");if(!(owns!==null&&owns!==void 0&&owns.includes(id))){node.setAttribute("aria-owns",owns?"".concat(owns," ").concat(id):id);}node.removeAttribute("role");}

/***/ }),
/* 337 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

Object.defineProperty(exports, "__esModule", ({value:true}));exports["default"]=void 0;__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(179);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(182);__webpack_require__(197);__webpack_require__(327);__webpack_require__(192);__webpack_require__(185);__webpack_require__(222);__webpack_require__(206);__webpack_require__(219);__webpack_require__(126);__webpack_require__(135);__webpack_require__(136);__webpack_require__(138);__webpack_require__(338);__webpack_require__(225);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);__webpack_require__(142);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function canvasTest(settings){var size=settings.sizes.shift();var width=Math.max(Math.ceil(size[0]),1);var height=Math.max(Math.ceil(size[1]),1);var fill=[width-1,height-1,1,1];var job=Date.now();var isWorker=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope;var cropCvs,testCvs;if(isWorker){cropCvs=new OffscreenCanvas(1,1);testCvs=new OffscreenCanvas(width,height);}else{cropCvs=document.createElement("canvas");cropCvs.width=1;cropCvs.height=1;testCvs=document.createElement("canvas");testCvs.width=width;testCvs.height=height;}var cropCtx=cropCvs.getContext("2d");var testCtx=testCvs.getContext("2d");if(testCtx){testCtx.fillRect.apply(testCtx,fill);cropCtx.drawImage(testCvs,width-1,height-1,1,1,0,0,1,1);}var isTestPass=cropCtx&&cropCtx.getImageData(0,0,1,1).data[3]!==0;var benchmark=Date.now()-job;[cropCvs,testCvs].forEach(function(cvs){cvs.height=0;cvs.width=0;});if(isWorker){postMessage({width:width,height:height,benchmark:benchmark,isTestPass:isTestPass});if(!isTestPass&&settings.sizes.length){canvasTest(settings);}}else if(isTestPass){settings.onSuccess(width,height,benchmark);}else{settings.onError(width,height,benchmark);if(settings.sizes.length){canvasTest(settings);}}return isTestPass;}var testSizes={area:[16384,14188,11402,11180,10836,8192,4096,1],height:[8388607,65535,32767,16384,8192,4096,1],width:[4194303,65535,32767,16384,8192,4096,1]};var _excluded=["onError","onSuccess"];var defaults={max:null,min:1,sizes:[],step:1024,usePromise:false,useWorker:false,onError:Function.prototype,onSuccess:Function.prototype};var workerJobs={};function createSizesArray(settings){var isArea=settings.width===settings.height;var isWidth=settings.height===1;var isHeight=settings.width===1;var sizes=[];if(!settings.width||!settings.height){settings.sizes.forEach(function(testSize){var width=isArea||isWidth?testSize:1;var height=isArea||isHeight?testSize:1;sizes.push([width,height]);});}else{var testMin=settings.min||defaults.min;var testStep=settings.step||defaults.step;var testSize=Math.max(settings.width,settings.height);while(testSize>=testMin){var width=isArea||isWidth?testSize:1;var height=isArea||isHeight?testSize:1;sizes.push([width,height]);testSize-=testStep;}}return sizes;}function handleMethod(settings){var hasCanvasSupport=window&&"HTMLCanvasElement"in window;var hasOffscreenCanvasSupport=window&&"OffscreenCanvas"in window;var jobID=Date.now();var _onError=settings.onError,_onSuccess=settings.onSuccess,settingsWithoutCallbacks=_objectWithoutProperties(settings,_excluded);var worker=null;if(!hasCanvasSupport){return false;}if(settings.useWorker&&hasOffscreenCanvasSupport){var js="\n            var canvasTest = ".concat(canvasTest.toString(),";\n            onmessage = function(e) {\n                canvasTest(e.data);\n            };\n        ");var blob=new Blob([js],{type:"application/javascript"});var blobURL=URL.createObjectURL(blob);worker=new Worker(blobURL);URL.revokeObjectURL(blobURL);worker.onmessage=function(e){var _e$data=e.data,width=_e$data.width,height=_e$data.height,benchmark=_e$data.benchmark,isTestPass=_e$data.isTestPass;if(isTestPass){workerJobs[jobID].onSuccess(width,height,benchmark);delete workerJobs[jobID];}else{workerJobs[jobID].onError(width,height,benchmark);}};}if(settings.usePromise){return new Promise(function(resolve,reject){var promiseSettings=_objectSpread2(_objectSpread2({},settings),{},{onError:function onError(width,height,benchmark){var isLastTest;if(settings.sizes.length===0){isLastTest=true;}else{var _settings$sizes$slice=settings.sizes.slice(-1),_settings$sizes$slice2=_slicedToArray(_settings$sizes$slice,1),_settings$sizes$slice3=_slicedToArray(_settings$sizes$slice2[0],2),lastWidth=_settings$sizes$slice3[0],lastHeight=_settings$sizes$slice3[1];isLastTest=width===lastWidth&&height===lastHeight;}_onError(width,height,benchmark);if(isLastTest){reject({width:width,height:height,benchmark:benchmark});}},onSuccess:function onSuccess(width,height,benchmark){_onSuccess(width,height,benchmark);resolve({width:width,height:height,benchmark:benchmark});}});if(worker){var onError=promiseSettings.onError,onSuccess=promiseSettings.onSuccess;workerJobs[jobID]={onError:onError,onSuccess:onSuccess};worker.postMessage(settingsWithoutCallbacks);}else{canvasTest(promiseSettings);}});}else{if(worker){workerJobs[jobID]={onError:_onError,onSuccess:_onSuccess};worker.postMessage(settingsWithoutCallbacks);}else{return canvasTest(settings);}}}var canvasSize={maxArea:function maxArea(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var sizes=createSizesArray({width:options.max,height:options.max,min:options.min,step:options.step,sizes:_toConsumableArray(testSizes.area)});var settings=_objectSpread2(_objectSpread2(_objectSpread2({},defaults),options),{},{sizes:sizes});return handleMethod(settings);},maxHeight:function maxHeight(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var sizes=createSizesArray({width:1,height:options.max,min:options.min,step:options.step,sizes:_toConsumableArray(testSizes.height)});var settings=_objectSpread2(_objectSpread2(_objectSpread2({},defaults),options),{},{sizes:sizes});return handleMethod(settings);},maxWidth:function maxWidth(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var sizes=createSizesArray({width:options.max,height:1,min:options.min,step:options.step,sizes:_toConsumableArray(testSizes.width)});var settings=_objectSpread2(_objectSpread2(_objectSpread2({},defaults),options),{},{sizes:sizes});return handleMethod(settings);},test:function test(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var settings=_objectSpread2(_objectSpread2({},defaults),options);settings.sizes=_toConsumableArray(settings.sizes);if(settings.width&&settings.height){settings.sizes=[[settings.width,settings.height]];}return handleMethod(settings);}};exports["default"]=canvasSize;

/***/ }),
/* 338 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var defineBuiltInAccessor = __webpack_require__(103);
var DESCRIPTORS = __webpack_require__(24);
var $TypeError = TypeError;
var defineProperty = Object.defineProperty;
var INCORRECT_VALUE = global.self !== global;
try {
 if (DESCRIPTORS) {
  var descriptor = Object.getOwnPropertyDescriptor(global, 'self');
  if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) {
   defineBuiltInAccessor(global, 'self', {
    get: function self() {
     return global;
    },
    set: function self(value) {
     if (this !== global)
      throw $TypeError('Illegal invocation');
     defineProperty(global, 'self', {
      value: value,
      writable: true,
      configurable: true,
      enumerable: true
     });
    },
    configurable: true,
    enumerable: true
   });
  }
 } else
  $({
   global: true,
   simple: true,
   forced: INCORRECT_VALUE
  }, { self: global });
} catch (error) {
}

/***/ }),
/* 339 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(190);__webpack_require__(122);__webpack_require__(123);__webpack_require__(135);__webpack_require__(136);__webpack_require__(192);__webpack_require__(219);Object.defineProperty(exports, "__esModule", ({value:true}));exports.VerbosityLevel=exports.Util=exports.UnknownErrorException=exports.UnexpectedResponseException=exports.TextRenderingMode=exports.RenderingIntentFlag=exports.PromiseCapability=exports.PermissionFlag=exports.PasswordResponses=exports.PasswordException=exports.PageActionEventType=exports.OPS=exports.MissingPDFException=exports.MAX_IMAGE_SIZE_TO_CACHE=exports.LINE_FACTOR=exports.LINE_DESCENT_FACTOR=exports.InvalidPDFException=exports.ImageKind=exports.IDENTITY_MATRIX=exports.FormatError=exports.FeatureTest=exports.FONT_IDENTITY_MATRIX=exports.DocumentActionEventType=exports.CMapCompressionType=exports.BaseException=exports.BASELINE_FACTOR=exports.AnnotationType=exports.AnnotationReplyType=exports.AnnotationMode=exports.AnnotationFlag=exports.AnnotationFieldFlag=exports.AnnotationEditorType=exports.AnnotationEditorPrefix=exports.AnnotationEditorParamsType=exports.AnnotationBorderStyleType=exports.AnnotationActionEventType=exports.AbortException=void 0;exports.assert=assert;exports.bytesToString=bytesToString;exports.createValidAbsoluteUrl=createValidAbsoluteUrl;exports.getModificationDate=getModificationDate;exports.getUuid=getUuid;exports.getVerbosityLevel=getVerbosityLevel;exports.info=info;exports.isArrayBuffer=isArrayBuffer;exports.isArrayEqual=isArrayEqual;exports.isNodeJS=void 0;exports.normalizeUnicode=normalizeUnicode;exports.objectFromMap=objectFromMap;exports.objectSize=objectSize;exports.setVerbosityLevel=setVerbosityLevel;exports.shadow=shadow;exports.string32=string32;exports.stringToBytes=stringToBytes;exports.stringToPDFString=stringToPDFString;exports.stringToUTF8String=stringToUTF8String;exports.unreachable=unreachable;exports.utf8StringToString=utf8StringToString;exports.warn=warn;__webpack_require__(138);__webpack_require__(338);__webpack_require__(198);__webpack_require__(126);__webpack_require__(315);__webpack_require__(206);__webpack_require__(292);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(95);__webpack_require__(225);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);__webpack_require__(179);__webpack_require__(340);__webpack_require__(355);__webpack_require__(356);__webpack_require__(358);__webpack_require__(359);__webpack_require__(360);__webpack_require__(364);__webpack_require__(365);__webpack_require__(366);__webpack_require__(368);__webpack_require__(369);__webpack_require__(370);__webpack_require__(371);__webpack_require__(372);__webpack_require__(373);__webpack_require__(374);__webpack_require__(376);__webpack_require__(377);__webpack_require__(379);__webpack_require__(380);__webpack_require__(381);__webpack_require__(382);__webpack_require__(383);__webpack_require__(384);__webpack_require__(385);__webpack_require__(386);__webpack_require__(388);__webpack_require__(389);__webpack_require__(390);__webpack_require__(392);__webpack_require__(395);__webpack_require__(398);__webpack_require__(187);__webpack_require__(399);__webpack_require__(199);__webpack_require__(200);__webpack_require__(312);__webpack_require__(400);__webpack_require__(222);__webpack_require__(216);__webpack_require__(185);__webpack_require__(142);__webpack_require__(240);__webpack_require__(248);__webpack_require__(251);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(283);function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e2){throw _e2;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e3){didErr=true;err=_e3;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}var isNodeJS=(typeof process==="undefined"?"undefined":_typeof(process))==="object"&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");exports.isNodeJS=isNodeJS;var IDENTITY_MATRIX=[1,0,0,1,0,0];exports.IDENTITY_MATRIX=IDENTITY_MATRIX;var FONT_IDENTITY_MATRIX=[0.001,0,0,0.001,0,0];exports.FONT_IDENTITY_MATRIX=FONT_IDENTITY_MATRIX;var MAX_IMAGE_SIZE_TO_CACHE=10e6;exports.MAX_IMAGE_SIZE_TO_CACHE=MAX_IMAGE_SIZE_TO_CACHE;var LINE_FACTOR=1.35;exports.LINE_FACTOR=LINE_FACTOR;var LINE_DESCENT_FACTOR=0.35;exports.LINE_DESCENT_FACTOR=LINE_DESCENT_FACTOR;var BASELINE_FACTOR=LINE_DESCENT_FACTOR/LINE_FACTOR;exports.BASELINE_FACTOR=BASELINE_FACTOR;var RenderingIntentFlag={ANY:0x01,DISPLAY:0x02,PRINT:0x04,SAVE:0x08,ANNOTATIONS_FORMS:0x10,ANNOTATIONS_STORAGE:0x20,ANNOTATIONS_DISABLE:0x40,OPLIST:0x100};exports.RenderingIntentFlag=RenderingIntentFlag;var AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};exports.AnnotationMode=AnnotationMode;var AnnotationEditorPrefix="pdfjs_internal_editor_";exports.AnnotationEditorPrefix=AnnotationEditorPrefix;var AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};exports.AnnotationEditorType=AnnotationEditorType;var AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};exports.AnnotationEditorParamsType=AnnotationEditorParamsType;var PermissionFlag={PRINT:0x04,MODIFY_CONTENTS:0x08,COPY:0x10,MODIFY_ANNOTATIONS:0x20,FILL_INTERACTIVE_FORMS:0x100,COPY_FOR_ACCESSIBILITY:0x200,ASSEMBLE:0x400,PRINT_HIGH_QUALITY:0x800};exports.PermissionFlag=PermissionFlag;var TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};exports.TextRenderingMode=TextRenderingMode;var ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};exports.ImageKind=ImageKind;var AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};exports.AnnotationType=AnnotationType;var AnnotationReplyType={GROUP:"Group",REPLY:"R"};exports.AnnotationReplyType=AnnotationReplyType;var AnnotationFlag={INVISIBLE:0x01,HIDDEN:0x02,PRINT:0x04,NOZOOM:0x08,NOROTATE:0x10,NOVIEW:0x20,READONLY:0x40,LOCKED:0x80,TOGGLENOVIEW:0x100,LOCKEDCONTENTS:0x200};exports.AnnotationFlag=AnnotationFlag;var AnnotationFieldFlag={READONLY:0x0000001,REQUIRED:0x0000002,NOEXPORT:0x0000004,MULTILINE:0x0001000,PASSWORD:0x0002000,NOTOGGLETOOFF:0x0004000,RADIO:0x0008000,PUSHBUTTON:0x0010000,COMBO:0x0020000,EDIT:0x0040000,SORT:0x0080000,FILESELECT:0x0100000,MULTISELECT:0x0200000,DONOTSPELLCHECK:0x0400000,DONOTSCROLL:0x0800000,COMB:0x1000000,RICHTEXT:0x2000000,RADIOSINUNISON:0x2000000,COMMITONSELCHANGE:0x4000000};exports.AnnotationFieldFlag=AnnotationFieldFlag;var AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};exports.AnnotationBorderStyleType=AnnotationBorderStyleType;var AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};exports.AnnotationActionEventType=AnnotationActionEventType;var DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};exports.DocumentActionEventType=DocumentActionEventType;var PageActionEventType={O:"PageOpen",C:"PageClose"};exports.PageActionEventType=PageActionEventType;var VerbosityLevel={ERRORS:0,WARNINGS:1,INFOS:5};exports.VerbosityLevel=VerbosityLevel;var CMapCompressionType={NONE:0,BINARY:1};exports.CMapCompressionType=CMapCompressionType;var OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};exports.OPS=OPS;var PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};exports.PasswordResponses=PasswordResponses;var verbosity=VerbosityLevel.WARNINGS;function setVerbosityLevel(level){if(Number.isInteger(level)){verbosity=level;}}function getVerbosityLevel(){return verbosity;}function info(msg){if(verbosity>=VerbosityLevel.INFOS){if(typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope){console.log("Info: ".concat(msg));}else if(Window&&globalThis.ngxConsole){globalThis.ngxConsole.log("Info: ".concat(msg));}else{console.log("Info: ".concat(msg));}}}function warn(msg){if(verbosity>=VerbosityLevel.WARNINGS){if(typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope){console.log("Warning: ".concat(msg));}else if(Window&&globalThis.ngxConsole){globalThis.ngxConsole.log("Warning: ".concat(msg));}else{console.log("Warning: ".concat(msg));}}}function unreachable(msg){throw new Error(msg);}function assert(cond,msg){if(!cond){unreachable(msg);}}function _isValidProtocol(url){switch(url===null||url===void 0?void 0:url.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":case"capacitor":return true;default:return false;}}function createValidAbsoluteUrl(url){var baseUrl=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;if(!url){return null;}try{if(options&&typeof url==="string"){if(options.addDefaultProtocol&&url.startsWith("www.")){var dots=url.match(/\./g);if((dots===null||dots===void 0?void 0:dots.length)>=2){url="http://".concat(url);}}if(options.tryConvertEncoding){try{url=stringToUTF8String(url);}catch(_unused){}}}var absoluteUrl=baseUrl?new URL(url,baseUrl):new URL(url);if(_isValidProtocol(absoluteUrl)){return absoluteUrl;}}catch(_unused2){}return null;}function shadow(obj,prop,value){var nonSerializable=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;Object.defineProperty(obj,prop,{value:value,enumerable:!nonSerializable,configurable:true,writable:false});return value;}var BaseException=function BaseExceptionClosure(){function BaseException(message,name){if(this.constructor===BaseException){unreachable("Cannot initialize BaseException.");}this.message=message;this.name=name;}BaseException.prototype=new Error();BaseException.constructor=BaseException;return BaseException;}();exports.BaseException=BaseException;var PasswordException=/*#__PURE__*/function(_BaseException){_inherits(PasswordException,_BaseException);var _super=_createSuper(PasswordException);function PasswordException(msg,code){var _this;_classCallCheck(this,PasswordException);_this=_super.call(this,msg,"PasswordException");_this.code=code;return _this;}return _createClass(PasswordException);}(BaseException);exports.PasswordException=PasswordException;var UnknownErrorException=/*#__PURE__*/function(_BaseException2){_inherits(UnknownErrorException,_BaseException2);var _super2=_createSuper(UnknownErrorException);function UnknownErrorException(msg,details){var _this2;_classCallCheck(this,UnknownErrorException);_this2=_super2.call(this,msg,"UnknownErrorException");_this2.details=details;return _this2;}return _createClass(UnknownErrorException);}(BaseException);exports.UnknownErrorException=UnknownErrorException;var InvalidPDFException=/*#__PURE__*/function(_BaseException3){_inherits(InvalidPDFException,_BaseException3);var _super3=_createSuper(InvalidPDFException);function InvalidPDFException(msg){_classCallCheck(this,InvalidPDFException);return _super3.call(this,msg,"InvalidPDFException");}return _createClass(InvalidPDFException);}(BaseException);exports.InvalidPDFException=InvalidPDFException;var MissingPDFException=/*#__PURE__*/function(_BaseException4){_inherits(MissingPDFException,_BaseException4);var _super4=_createSuper(MissingPDFException);function MissingPDFException(msg){_classCallCheck(this,MissingPDFException);return _super4.call(this,msg,"MissingPDFException");}return _createClass(MissingPDFException);}(BaseException);exports.MissingPDFException=MissingPDFException;var UnexpectedResponseException=/*#__PURE__*/function(_BaseException5){_inherits(UnexpectedResponseException,_BaseException5);var _super5=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(msg,status){var _this3;_classCallCheck(this,UnexpectedResponseException);_this3=_super5.call(this,msg,"UnexpectedResponseException");_this3.status=status;return _this3;}return _createClass(UnexpectedResponseException);}(BaseException);exports.UnexpectedResponseException=UnexpectedResponseException;var FormatError=/*#__PURE__*/function(_BaseException6){_inherits(FormatError,_BaseException6);var _super6=_createSuper(FormatError);function FormatError(msg){_classCallCheck(this,FormatError);return _super6.call(this,msg,"FormatError");}return _createClass(FormatError);}(BaseException);exports.FormatError=FormatError;var AbortException=/*#__PURE__*/function(_BaseException7){_inherits(AbortException,_BaseException7);var _super7=_createSuper(AbortException);function AbortException(msg){_classCallCheck(this,AbortException);return _super7.call(this,msg,"AbortException");}return _createClass(AbortException);}(BaseException);exports.AbortException=AbortException;function bytesToString(bytes){if(_typeof(bytes)!=="object"||(bytes===null||bytes===void 0?void 0:bytes.length)===undefined){unreachable("Invalid argument for bytesToString");}var length=bytes.length;var MAX_ARGUMENT_COUNT=8192;if(length<MAX_ARGUMENT_COUNT){return String.fromCharCode.apply(null,bytes);}var strBuf=[];for(var i=0;i<length;i+=MAX_ARGUMENT_COUNT){var chunkEnd=Math.min(i+MAX_ARGUMENT_COUNT,length);var chunk=bytes.subarray(i,chunkEnd);strBuf.push(String.fromCharCode.apply(null,chunk));}return strBuf.join("");}function stringToBytes(str){if(typeof str!=="string"){unreachable("Invalid argument for stringToBytes");}var length=str.length;var bytes=new Uint8Array(length);for(var i=0;i<length;++i){bytes[i]=str.charCodeAt(i)&0xff;}return bytes;}function string32(value){return String.fromCharCode(value>>24&0xff,value>>16&0xff,value>>8&0xff,value&0xff);}function objectSize(obj){return Object.keys(obj).length;}function objectFromMap(map){var obj=Object.create(null);var _iterator=_createForOfIteratorHelper(map),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],value=_step$value[1];obj[key]=value;}}catch(err){_iterator.e(err);}finally{_iterator.f();}return obj;}function isLittleEndian(){var buffer8=new Uint8Array(4);buffer8[0]=1;var view32=new Uint32Array(buffer8.buffer,0,1);return view32[0]===1;}function isEvalSupported(){try{new Function("");return true;}catch(_unused3){return false;}}var FeatureTest=/*#__PURE__*/function(){function FeatureTest(){_classCallCheck(this,FeatureTest);}_createClass(FeatureTest,null,[{key:"isLittleEndian",get:function get(){return shadow(this,"isLittleEndian",isLittleEndian());}},{key:"isEvalSupported",get:function get(){return shadow(this,"isEvalSupported",isEvalSupported());}},{key:"isOffscreenCanvasSupported",get:function get(){return shadow(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas!=="undefined");}},{key:"platform",get:function get(){if(typeof navigator==="undefined"){return shadow(this,"platform",{isWin:false,isMac:false});}return shadow(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")});}},{key:"isCSSRoundSupported",get:function get(){var _globalThis$CSS,_globalThis$CSS$suppo;return shadow(this,"isCSSRoundSupported",(_globalThis$CSS=globalThis.CSS)===null||_globalThis$CSS===void 0||(_globalThis$CSS$suppo=_globalThis$CSS.supports)===null||_globalThis$CSS$suppo===void 0?void 0:_globalThis$CSS$suppo.call(_globalThis$CSS,"width: round(1.5px, 1px)"));}}]);return FeatureTest;}();exports.FeatureTest=FeatureTest;var hexNumbers=_toConsumableArray(Array(256).keys()).map(function(n){return n.toString(16).padStart(2,"0");});var Util=/*#__PURE__*/function(){function Util(){_classCallCheck(this,Util);}_createClass(Util,null,[{key:"makeHexColor",value:function makeHexColor(r,g,b){return"#".concat(hexNumbers[r]).concat(hexNumbers[g]).concat(hexNumbers[b]);}},{key:"scaleMinMax",value:function scaleMinMax(transform,minMax){var temp;if(transform[0]){if(transform[0]<0){temp=minMax[0];minMax[0]=minMax[1];minMax[1]=temp;}minMax[0]*=transform[0];minMax[1]*=transform[0];if(transform[3]<0){temp=minMax[2];minMax[2]=minMax[3];minMax[3]=temp;}minMax[2]*=transform[3];minMax[3]*=transform[3];}else{temp=minMax[0];minMax[0]=minMax[2];minMax[2]=temp;temp=minMax[1];minMax[1]=minMax[3];minMax[3]=temp;if(transform[1]<0){temp=minMax[2];minMax[2]=minMax[3];minMax[3]=temp;}minMax[2]*=transform[1];minMax[3]*=transform[1];if(transform[2]<0){temp=minMax[0];minMax[0]=minMax[1];minMax[1]=temp;}minMax[0]*=transform[2];minMax[1]*=transform[2];}minMax[0]+=transform[4];minMax[1]+=transform[4];minMax[2]+=transform[5];minMax[3]+=transform[5];}},{key:"transform",value:function transform(m1,m2){return[m1[0]*m2[0]+m1[2]*m2[1],m1[1]*m2[0]+m1[3]*m2[1],m1[0]*m2[2]+m1[2]*m2[3],m1[1]*m2[2]+m1[3]*m2[3],m1[0]*m2[4]+m1[2]*m2[5]+m1[4],m1[1]*m2[4]+m1[3]*m2[5]+m1[5]];}},{key:"applyTransform",value:function applyTransform(p,m){var xt=p[0]*m[0]+p[1]*m[2]+m[4];var yt=p[0]*m[1]+p[1]*m[3]+m[5];return[xt,yt];}},{key:"applyInverseTransform",value:function applyInverseTransform(p,m){var d=m[0]*m[3]-m[1]*m[2];var xt=(p[0]*m[3]-p[1]*m[2]+m[2]*m[5]-m[4]*m[3])/d;var yt=(-p[0]*m[1]+p[1]*m[0]+m[4]*m[1]-m[5]*m[0])/d;return[xt,yt];}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(r,m){var p1=this.applyTransform(r,m);var p2=this.applyTransform(r.slice(2,4),m);var p3=this.applyTransform([r[0],r[3]],m);var p4=this.applyTransform([r[2],r[1]],m);return[Math.min(p1[0],p2[0],p3[0],p4[0]),Math.min(p1[1],p2[1],p3[1],p4[1]),Math.max(p1[0],p2[0],p3[0],p4[0]),Math.max(p1[1],p2[1],p3[1],p4[1])];}},{key:"inverseTransform",value:function inverseTransform(m){var d=m[0]*m[3]-m[1]*m[2];return[m[3]/d,-m[1]/d,-m[2]/d,m[0]/d,(m[2]*m[5]-m[4]*m[3])/d,(m[4]*m[1]-m[5]*m[0])/d];}},{key:"singularValueDecompose2dScale",value:function singularValueDecompose2dScale(m){var transpose=[m[0],m[2],m[1],m[3]];var a=m[0]*transpose[0]+m[1]*transpose[2];var b=m[0]*transpose[1]+m[1]*transpose[3];var c=m[2]*transpose[0]+m[3]*transpose[2];var d=m[2]*transpose[1]+m[3]*transpose[3];var first=(a+d)/2;var second=Math.sqrt(Math.pow(a+d,2)-4*(a*d-c*b))/2;var sx=first+second||1;var sy=first-second||1;return[Math.sqrt(sx),Math.sqrt(sy)];}},{key:"normalizeRect",value:function normalizeRect(rect){var r=rect.slice(0);if(rect[0]>rect[2]){r[0]=rect[2];r[2]=rect[0];}if(rect[1]>rect[3]){r[1]=rect[3];r[3]=rect[1];}return r;}},{key:"intersect",value:function intersect(rect1,rect2){var xLow=Math.max(Math.min(rect1[0],rect1[2]),Math.min(rect2[0],rect2[2]));var xHigh=Math.min(Math.max(rect1[0],rect1[2]),Math.max(rect2[0],rect2[2]));if(xLow>xHigh){return null;}var yLow=Math.max(Math.min(rect1[1],rect1[3]),Math.min(rect2[1],rect2[3]));var yHigh=Math.min(Math.max(rect1[1],rect1[3]),Math.max(rect2[1],rect2[3]));if(yLow>yHigh){return null;}return[xLow,yLow,xHigh,yHigh];}},{key:"bezierBoundingBox",value:function bezierBoundingBox(x0,y0,x1,y1,x2,y2,x3,y3){var tvalues=[],bounds=[[],[]];var a,b,c,t,t1,t2,b2ac,sqrtb2ac;for(var i=0;i<2;++i){if(i===0){b=6*x0-12*x1+6*x2;a=-3*x0+9*x1-9*x2+3*x3;c=3*x1-3*x0;}else{b=6*y0-12*y1+6*y2;a=-3*y0+9*y1-9*y2+3*y3;c=3*y1-3*y0;}if(Math.abs(a)<1e-12){if(Math.abs(b)<1e-12){continue;}t=-c/b;if(0<t&&t<1){tvalues.push(t);}continue;}b2ac=b*b-4*c*a;sqrtb2ac=Math.sqrt(b2ac);if(b2ac<0){continue;}t1=(-b+sqrtb2ac)/(2*a);if(0<t1&&t1<1){tvalues.push(t1);}t2=(-b-sqrtb2ac)/(2*a);if(0<t2&&t2<1){tvalues.push(t2);}}var j=tvalues.length,mt;var jlen=j;while(j--){t=tvalues[j];mt=1-t;bounds[0][j]=mt*mt*mt*x0+3*mt*mt*t*x1+3*mt*t*t*x2+t*t*t*x3;bounds[1][j]=mt*mt*mt*y0+3*mt*mt*t*y1+3*mt*t*t*y2+t*t*t*y3;}bounds[0][jlen]=x0;bounds[1][jlen]=y0;bounds[0][jlen+1]=x3;bounds[1][jlen+1]=y3;bounds[0].length=bounds[1].length=jlen+2;return[Math.min.apply(Math,_toConsumableArray(bounds[0])),Math.min.apply(Math,_toConsumableArray(bounds[1])),Math.max.apply(Math,_toConsumableArray(bounds[0])),Math.max.apply(Math,_toConsumableArray(bounds[1]))];}}]);return Util;}();exports.Util=Util;var PDFStringTranslateTable=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x2d8,0x2c7,0x2c6,0x2d9,0x2dd,0x2db,0x2da,0x2dc,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x2022,0x2020,0x2021,0x2026,0x2014,0x2013,0x192,0x2044,0x2039,0x203a,0x2212,0x2030,0x201e,0x201c,0x201d,0x2018,0x2019,0x201a,0x2122,0xfb01,0xfb02,0x141,0x152,0x160,0x178,0x17d,0x131,0x142,0x153,0x161,0x17e,0,0x20ac];function stringToPDFString(str){if(str[0]>="\xEF"){var encoding;if(str[0]==="\xFE"&&str[1]==="\xFF"){encoding="utf-16be";}else if(str[0]==="\xFF"&&str[1]==="\xFE"){encoding="utf-16le";}else if(str[0]==="\xEF"&&str[1]==="\xBB"&&str[2]==="\xBF"){encoding="utf-8";}if(encoding){try{var decoder=new TextDecoder(encoding,{fatal:true});var buffer=stringToBytes(str);return decoder.decode(buffer);}catch(ex){warn("stringToPDFString: \"".concat(ex,"\"."));}}}var strBuf=[];for(var i=0,ii=str.length;i<ii;i++){var code=PDFStringTranslateTable[str.charCodeAt(i)];strBuf.push(code?String.fromCharCode(code):str.charAt(i));}return strBuf.join("");}function stringToUTF8String(str){return decodeURIComponent(escape(str));}function utf8StringToString(str){return unescape(encodeURIComponent(str));}function isArrayBuffer(v){return _typeof(v)==="object"&&(v===null||v===void 0?void 0:v.byteLength)!==undefined;}function isArrayEqual(arr1,arr2){if(arr1.length!==arr2.length){return false;}for(var i=0,ii=arr1.length;i<ii;i++){if(arr1[i]!==arr2[i]){return false;}}return true;}function getModificationDate(){var date=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new Date();var buffer=[date.getUTCFullYear().toString(),(date.getUTCMonth()+1).toString().padStart(2,"0"),date.getUTCDate().toString().padStart(2,"0"),date.getUTCHours().toString().padStart(2,"0"),date.getUTCMinutes().toString().padStart(2,"0"),date.getUTCSeconds().toString().padStart(2,"0")];return buffer.join("");}var _settled=/*#__PURE__*/new WeakMap();var PromiseCapability=/*#__PURE__*/function(){function PromiseCapability(){var _this4=this;_classCallCheck(this,PromiseCapability);_classPrivateFieldInitSpec(this,_settled,{writable:true,value:false});this.promise=new Promise(function(resolve,reject){_this4.resolve=function(data){_classPrivateFieldSet(_this4,_settled,true);resolve(data);};_this4.reject=function(reason){_classPrivateFieldSet(_this4,_settled,true);reject(reason);};});}_createClass(PromiseCapability,[{key:"settled",get:function get(){return _classPrivateFieldGet(this,_settled);}}]);return PromiseCapability;}();exports.PromiseCapability=PromiseCapability;var NormalizeRegex=null;var NormalizationMap=null;function normalizeUnicode(str){if(!NormalizeRegex){NormalizeRegex=/([\xA0\xB5\u037E\u0EB3\u2000-\u200A\u202F\u2126\uFB00-\uFB04\uFB06\uFB20-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBA1\uFBA4-\uFBA9\uFBAE-\uFBB1\uFBD3-\uFBDC\uFBDE-\uFBE7\uFBEA-\uFBF8\uFBFC\uFBFD\uFC00-\uFC5D\uFC64-\uFCF1\uFCF5-\uFD3D\uFD88\uFDF4\uFDFA\uFDFB\uFE71\uFE77\uFE79\uFE7B\uFE7D]+)|(\uFB05+)/g;NormalizationMap=new Map([["ﬅ","ſt"]]);}return str.replaceAll(NormalizeRegex,function(_,p1,p2){return p1?p1.normalize("NFKC"):NormalizationMap.get(p2);});}function getUuid(){var _crypto,_crypto2;if(typeof crypto!=="undefined"&&typeof((_crypto=crypto)===null||_crypto===void 0?void 0:_crypto.randomUUID)==="function"){return crypto.randomUUID();}var buf=new Uint8Array(32);if(typeof crypto!=="undefined"&&typeof((_crypto2=crypto)===null||_crypto2===void 0?void 0:_crypto2.getRandomValues)==="function"){crypto.getRandomValues(buf);}else{for(var i=0;i<32;i++){buf[i]=Math.floor(Math.random()*255);}}return bytesToString(buf);}

/***/ }),
/* 340 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var createTypedArrayConstructor = __webpack_require__(341);
createTypedArrayConstructor('Uint8', function (init) {
 return function Uint8Array(data, byteOffset, length) {
  return init(this, data, byteOffset, length);
 };
});

/***/ }),
/* 341 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var global = __webpack_require__(4);
var call = __webpack_require__(34);
var DESCRIPTORS = __webpack_require__(24);
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(342);
var ArrayBufferViewCore = __webpack_require__(343);
var ArrayBufferModule = __webpack_require__(345);
var anInstance = __webpack_require__(146);
var createPropertyDescriptor = __webpack_require__(65);
var createNonEnumerableProperty = __webpack_require__(64);
var isIntegralNumber = __webpack_require__(348);
var toLength = __webpack_require__(56);
var toIndex = __webpack_require__(346);
var toOffset = __webpack_require__(349);
var toUint8Clamped = __webpack_require__(351);
var toPropertyKey = __webpack_require__(32);
var hasOwn = __webpack_require__(5);
var classof = __webpack_require__(91);
var isObject = __webpack_require__(27);
var isSymbol = __webpack_require__(35);
var create = __webpack_require__(47);
var isPrototypeOf = __webpack_require__(37);
var setPrototypeOf = __webpack_require__(84);
var getOwnPropertyNames = (__webpack_require__(76).f);
var typedArrayFrom = __webpack_require__(352);
var forEach = (__webpack_require__(105).forEach);
var setSpecies = __webpack_require__(145);
var defineBuiltInAccessor = __webpack_require__(103);
var definePropertyModule = __webpack_require__(23);
var getOwnPropertyDescriptorModule = __webpack_require__(68);
var InternalStateModule = __webpack_require__(62);
var inheritIfRequired = __webpack_require__(129);
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var enforceInternalState = InternalStateModule.enforce;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var RangeError = global.RangeError;
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
var ArrayBufferPrototype = ArrayBuffer.prototype;
var DataView = ArrayBufferModule.DataView;
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
var TypedArray = ArrayBufferViewCore.TypedArray;
var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var isTypedArray = ArrayBufferViewCore.isTypedArray;
var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
var WRONG_LENGTH = 'Wrong length';
var fromList = function (C, list) {
 aTypedArrayConstructor(C);
 var index = 0;
 var length = list.length;
 var result = new C(length);
 while (length > index)
  result[index] = list[index++];
 return result;
};
var addGetter = function (it, key) {
 defineBuiltInAccessor(it, key, {
  configurable: true,
  get: function () {
   return getInternalState(this)[key];
  }
 });
};
var isArrayBuffer = function (it) {
 var klass;
 return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
};
var isTypedArrayIndex = function (target, key) {
 return isTypedArray(target) && !isSymbol(key) && key in target && isIntegralNumber(+key) && key >= 0;
};
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
 key = toPropertyKey(key);
 return isTypedArrayIndex(target, key) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key);
};
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
 key = toPropertyKey(key);
 if (isTypedArrayIndex(target, key) && isObject(descriptor) && hasOwn(descriptor, 'value') && !hasOwn(descriptor, 'get') && !hasOwn(descriptor, 'set') && !descriptor.configurable && (!hasOwn(descriptor, 'writable') || descriptor.writable) && (!hasOwn(descriptor, 'enumerable') || descriptor.enumerable)) {
  target[key] = descriptor.value;
  return target;
 }
 return nativeDefineProperty(target, key, descriptor);
};
if (DESCRIPTORS) {
 if (!NATIVE_ARRAY_BUFFER_VIEWS) {
  getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
  definePropertyModule.f = wrappedDefineProperty;
  addGetter(TypedArrayPrototype, 'buffer');
  addGetter(TypedArrayPrototype, 'byteOffset');
  addGetter(TypedArrayPrototype, 'byteLength');
  addGetter(TypedArrayPrototype, 'length');
 }
 $({
  target: 'Object',
  stat: true,
  forced: !NATIVE_ARRAY_BUFFER_VIEWS
 }, {
  getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
  defineProperty: wrappedDefineProperty
 });
 module.exports = function (TYPE, wrapper, CLAMPED) {
  var BYTES = TYPE.match(/\d+/)[0] / 8;
  var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
  var GETTER = 'get' + TYPE;
  var SETTER = 'set' + TYPE;
  var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME];
  var TypedArrayConstructor = NativeTypedArrayConstructor;
  var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
  var exported = {};
  var getter = function (that, index) {
   var data = getInternalState(that);
   return data.view[GETTER](index * BYTES + data.byteOffset, true);
  };
  var setter = function (that, index, value) {
   var data = getInternalState(that);
   data.view[SETTER](index * BYTES + data.byteOffset, CLAMPED ? toUint8Clamped(value) : value, true);
  };
  var addElement = function (that, index) {
   nativeDefineProperty(that, index, {
    get: function () {
     return getter(this, index);
    },
    set: function (value) {
     return setter(this, index, value);
    },
    enumerable: true
   });
  };
  if (!NATIVE_ARRAY_BUFFER_VIEWS) {
   TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
    anInstance(that, TypedArrayConstructorPrototype);
    var index = 0;
    var byteOffset = 0;
    var buffer, byteLength, length;
    if (!isObject(data)) {
     length = toIndex(data);
     byteLength = length * BYTES;
     buffer = new ArrayBuffer(byteLength);
    } else if (isArrayBuffer(data)) {
     buffer = data;
     byteOffset = toOffset(offset, BYTES);
     var $len = data.byteLength;
     if ($length === undefined) {
      if ($len % BYTES)
       throw RangeError(WRONG_LENGTH);
      byteLength = $len - byteOffset;
      if (byteLength < 0)
       throw RangeError(WRONG_LENGTH);
     } else {
      byteLength = toLength($length) * BYTES;
      if (byteLength + byteOffset > $len)
       throw RangeError(WRONG_LENGTH);
     }
     length = byteLength / BYTES;
    } else if (isTypedArray(data)) {
     return fromList(TypedArrayConstructor, data);
    } else {
     return call(typedArrayFrom, TypedArrayConstructor, data);
    }
    setInternalState(that, {
     buffer: buffer,
     byteOffset: byteOffset,
     byteLength: byteLength,
     length: length,
     view: new DataView(buffer)
    });
    while (index < length)
     addElement(that, index++);
   });
   if (setPrototypeOf)
    setPrototypeOf(TypedArrayConstructor, TypedArray);
   TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
  } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
   TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
    anInstance(dummy, TypedArrayConstructorPrototype);
    return inheritIfRequired((function () {
     if (!isObject(data))
      return new NativeTypedArrayConstructor(toIndex(data));
     if (isArrayBuffer(data))
      return $length !== undefined ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length) : typedArrayOffset !== undefined ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES)) : new NativeTypedArrayConstructor(data);
     if (isTypedArray(data))
      return fromList(TypedArrayConstructor, data);
     return call(typedArrayFrom, TypedArrayConstructor, data);
    }()), dummy, TypedArrayConstructor);
   });
   if (setPrototypeOf)
    setPrototypeOf(TypedArrayConstructor, TypedArray);
   forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {
    if (!(key in TypedArrayConstructor)) {
     createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
    }
   });
   TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
  }
  if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
   createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
  }
  enforceInternalState(TypedArrayConstructorPrototype).TypedArrayConstructor = TypedArrayConstructor;
  if (TYPED_ARRAY_TAG) {
   createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
  }
  var FORCED = TypedArrayConstructor != NativeTypedArrayConstructor;
  exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
  $({
   global: true,
   constructor: true,
   forced: FORCED,
   sham: !NATIVE_ARRAY_BUFFER_VIEWS
  }, exported);
  if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
   createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
  }
  if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
   createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
  }
  setSpecies(CONSTRUCTOR_NAME);
 };
} else
 module.exports = function () {
 };

/***/ }),
/* 342 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var fails = __webpack_require__(8);
var checkCorrectnessOfIteration = __webpack_require__(169);
var NATIVE_ARRAY_BUFFER_VIEWS = (__webpack_require__(343).NATIVE_ARRAY_BUFFER_VIEWS);
var ArrayBuffer = global.ArrayBuffer;
var Int8Array = global.Int8Array;
module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
 Int8Array(1);
}) || !fails(function () {
 new Int8Array(-1);
}) || !checkCorrectnessOfIteration(function (iterable) {
 new Int8Array();
 new Int8Array(null);
 new Int8Array(1.5);
 new Int8Array(iterable);
}, true) || fails(function () {
 return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
});

/***/ }),
/* 343 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var NATIVE_ARRAY_BUFFER = __webpack_require__(344);
var DESCRIPTORS = __webpack_require__(24);
var global = __webpack_require__(4);
var isCallable = __webpack_require__(28);
var isObject = __webpack_require__(27);
var hasOwn = __webpack_require__(5);
var classof = __webpack_require__(91);
var tryToString = __webpack_require__(40);
var createNonEnumerableProperty = __webpack_require__(64);
var defineBuiltIn = __webpack_require__(70);
var defineBuiltInAccessor = __webpack_require__(103);
var isPrototypeOf = __webpack_require__(37);
var getPrototypeOf = __webpack_require__(81);
var setPrototypeOf = __webpack_require__(84);
var wellKnownSymbol = __webpack_require__(13);
var uid = __webpack_require__(18);
var InternalStateModule = __webpack_require__(62);
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
};

/***/ }),
/* 344 */
/***/ ((module) => {


module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';

/***/ }),
/* 345 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var DESCRIPTORS = __webpack_require__(24);
var NATIVE_ARRAY_BUFFER = __webpack_require__(344);
var FunctionName = __webpack_require__(72);
var createNonEnumerableProperty = __webpack_require__(64);
var defineBuiltInAccessor = __webpack_require__(103);
var defineBuiltIns = __webpack_require__(230);
var fails = __webpack_require__(8);
var anInstance = __webpack_require__(146);
var toIntegerOrInfinity = __webpack_require__(53);
var toLength = __webpack_require__(56);
var toIndex = __webpack_require__(346);
var IEEE754 = __webpack_require__(347);
var getPrototypeOf = __webpack_require__(81);
var setPrototypeOf = __webpack_require__(84);
var getOwnPropertyNames = (__webpack_require__(76).f);
var arrayFill = __webpack_require__(331);
var arraySlice = __webpack_require__(101);
var setToStringTag = __webpack_require__(83);
var InternalStateModule = __webpack_require__(62);
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var ARRAY_BUFFER = 'ArrayBuffer';
var DATA_VIEW = 'DataView';
var PROTOTYPE = 'prototype';
var WRONG_LENGTH = 'Wrong length';
var WRONG_INDEX = 'Wrong index';
var getInternalArrayBufferState = InternalStateModule.getterFor(ARRAY_BUFFER);
var getInternalDataViewState = InternalStateModule.getterFor(DATA_VIEW);
var setInternalState = InternalStateModule.set;
var NativeArrayBuffer = global[ARRAY_BUFFER];
var $ArrayBuffer = NativeArrayBuffer;
var ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE];
var $DataView = global[DATA_VIEW];
var DataViewPrototype = $DataView && $DataView[PROTOTYPE];
var ObjectPrototype = Object.prototype;
var Array = global.Array;
var RangeError = global.RangeError;
var fill = uncurryThis(arrayFill);
var reverse = uncurryThis([].reverse);
var packIEEE754 = IEEE754.pack;
var unpackIEEE754 = IEEE754.unpack;
var packInt8 = function (number) {
 return [number & 0xFF];
};
var packInt16 = function (number) {
 return [
  number & 0xFF,
  number >> 8 & 0xFF
 ];
};
var packInt32 = function (number) {
 return [
  number & 0xFF,
  number >> 8 & 0xFF,
  number >> 16 & 0xFF,
  number >> 24 & 0xFF
 ];
};
var unpackInt32 = function (buffer) {
 return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
};
var packFloat32 = function (number) {
 return packIEEE754(number, 23, 4);
};
var packFloat64 = function (number) {
 return packIEEE754(number, 52, 8);
};
var addGetter = function (Constructor, key, getInternalState) {
 defineBuiltInAccessor(Constructor[PROTOTYPE], key, {
  configurable: true,
  get: function () {
   return getInternalState(this)[key];
  }
 });
};
var get = function (view, count, index, isLittleEndian) {
 var store = getInternalDataViewState(view);
 var intIndex = toIndex(index);
 var boolIsLittleEndian = !!isLittleEndian;
 if (intIndex + count > store.byteLength)
  throw RangeError(WRONG_INDEX);
 var bytes = store.bytes;
 var start = intIndex + store.byteOffset;
 var pack = arraySlice(bytes, start, start + count);
 return boolIsLittleEndian ? pack : reverse(pack);
};
var set = function (view, count, index, conversion, value, isLittleEndian) {
 var store = getInternalDataViewState(view);
 var intIndex = toIndex(index);
 var pack = conversion(+value);
 var boolIsLittleEndian = !!isLittleEndian;
 if (intIndex + count > store.byteLength)
  throw RangeError(WRONG_INDEX);
 var bytes = store.bytes;
 var start = intIndex + store.byteOffset;
 for (var i = 0; i < count; i++)
  bytes[start + i] = pack[boolIsLittleEndian ? i : count - i - 1];
};
if (!NATIVE_ARRAY_BUFFER) {
 $ArrayBuffer = function ArrayBuffer(length) {
  anInstance(this, ArrayBufferPrototype);
  var byteLength = toIndex(length);
  setInternalState(this, {
   type: ARRAY_BUFFER,
   bytes: fill(Array(byteLength), 0),
   byteLength: byteLength
  });
  if (!DESCRIPTORS) {
   this.byteLength = byteLength;
   this.detached = false;
  }
 };
 ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE];
 $DataView = function DataView(buffer, byteOffset, byteLength) {
  anInstance(this, DataViewPrototype);
  anInstance(buffer, ArrayBufferPrototype);
  var bufferState = getInternalArrayBufferState(buffer);
  var bufferLength = bufferState.byteLength;
  var offset = toIntegerOrInfinity(byteOffset);
  if (offset < 0 || offset > bufferLength)
   throw RangeError('Wrong offset');
  byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
  if (offset + byteLength > bufferLength)
   throw RangeError(WRONG_LENGTH);
  setInternalState(this, {
   type: DATA_VIEW,
   buffer: buffer,
   byteLength: byteLength,
   byteOffset: offset,
   bytes: bufferState.bytes
  });
  if (!DESCRIPTORS) {
   this.buffer = buffer;
   this.byteLength = byteLength;
   this.byteOffset = offset;
  }
 };
 DataViewPrototype = $DataView[PROTOTYPE];
 if (DESCRIPTORS) {
  addGetter($ArrayBuffer, 'byteLength', getInternalArrayBufferState);
  addGetter($DataView, 'buffer', getInternalDataViewState);
  addGetter($DataView, 'byteLength', getInternalDataViewState);
  addGetter($DataView, 'byteOffset', getInternalDataViewState);
 }
 defineBuiltIns(DataViewPrototype, {
  getInt8: function getInt8(byteOffset) {
   return get(this, 1, byteOffset)[0] << 24 >> 24;
  },
  getUint8: function getUint8(byteOffset) {
   return get(this, 1, byteOffset)[0];
  },
  getInt16: function getInt16(byteOffset) {
   var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : false);
   return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
  },
  getUint16: function getUint16(byteOffset) {
   var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : false);
   return bytes[1] << 8 | bytes[0];
  },
  getInt32: function getInt32(byteOffset) {
   return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false));
  },
  getUint32: function getUint32(byteOffset) {
   return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false)) >>> 0;
  },
  getFloat32: function getFloat32(byteOffset) {
   return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false), 23);
  },
  getFloat64: function getFloat64(byteOffset) {
   return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : false), 52);
  },
  setInt8: function setInt8(byteOffset, value) {
   set(this, 1, byteOffset, packInt8, value);
  },
  setUint8: function setUint8(byteOffset, value) {
   set(this, 1, byteOffset, packInt8, value);
  },
  setInt16: function setInt16(byteOffset, value) {
   set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false);
  },
  setUint16: function setUint16(byteOffset, value) {
   set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false);
  },
  setInt32: function setInt32(byteOffset, value) {
   set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false);
  },
  setUint32: function setUint32(byteOffset, value) {
   set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false);
  },
  setFloat32: function setFloat32(byteOffset, value) {
   set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : false);
  },
  setFloat64: function setFloat64(byteOffset, value) {
   set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : false);
  }
 });
} else {
 var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;
 if (!fails(function () {
   NativeArrayBuffer(1);
  }) || !fails(function () {
   new NativeArrayBuffer(-1);
  }) || fails(function () {
   new NativeArrayBuffer();
   new NativeArrayBuffer(1.5);
   new NativeArrayBuffer(NaN);
   return NativeArrayBuffer.length != 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
  })) {
  $ArrayBuffer = function ArrayBuffer(length) {
   anInstance(this, ArrayBufferPrototype);
   return new NativeArrayBuffer(toIndex(length));
  };
  $ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype;
  for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j;) {
   if (!((key = keys[j++]) in $ArrayBuffer)) {
    createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);
   }
  }
  ArrayBufferPrototype.constructor = $ArrayBuffer;
 } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
  createNonEnumerableProperty(NativeArrayBuffer, 'name', ARRAY_BUFFER);
 }
 if (setPrototypeOf && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) {
  setPrototypeOf(DataViewPrototype, ObjectPrototype);
 }
 var testView = new $DataView(new $ArrayBuffer(2));
 var $setInt8 = uncurryThis(DataViewPrototype.setInt8);
 testView.setInt8(0, 2147483648);
 testView.setInt8(1, 2147483649);
 if (testView.getInt8(0) || !testView.getInt8(1))
  defineBuiltIns(DataViewPrototype, {
   setInt8: function setInt8(byteOffset, value) {
    $setInt8(this, byteOffset, value << 24 >> 24);
   },
   setUint8: function setUint8(byteOffset, value) {
    $setInt8(this, byteOffset, value << 24 >> 24);
   }
  }, { unsafe: true });
}
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
module.exports = {
 ArrayBuffer: $ArrayBuffer,
 DataView: $DataView
};

/***/ }),
/* 346 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIntegerOrInfinity = __webpack_require__(53);
var toLength = __webpack_require__(56);
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;
};

/***/ }),
/* 347 */
/***/ ((module) => {


var $Array = Array;
var abs = Math.abs;
var pow = Math.pow;
var floor = Math.floor;
var log = Math.log;
var LN2 = Math.LN2;
var pack = function (number, mantissaLength, bytes) {
 var buffer = $Array(bytes);
 var exponentLength = bytes * 8 - mantissaLength - 1;
 var eMax = (1 << exponentLength) - 1;
 var eBias = eMax >> 1;
 var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
 var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
 var index = 0;
 var exponent, mantissa, c;
 number = abs(number);
 if (number != number || number === Infinity) {
  mantissa = number != number ? 1 : 0;
  exponent = eMax;
 } else {
  exponent = floor(log(number) / LN2);
  c = pow(2, -exponent);
  if (number * c < 1) {
   exponent--;
   c *= 2;
  }
  if (exponent + eBias >= 1) {
   number += rt / c;
  } else {
   number += rt * pow(2, 1 - eBias);
  }
  if (number * c >= 2) {
   exponent++;
   c /= 2;
  }
  if (exponent + eBias >= eMax) {
   mantissa = 0;
   exponent = eMax;
  } else if (exponent + eBias >= 1) {
   mantissa = (number * c - 1) * pow(2, mantissaLength);
   exponent = exponent + eBias;
  } else {
   mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
   exponent = 0;
  }
 }
 while (mantissaLength >= 8) {
  buffer[index++] = mantissa & 255;
  mantissa /= 256;
  mantissaLength -= 8;
 }
 exponent = exponent << mantissaLength | mantissa;
 exponentLength += mantissaLength;
 while (exponentLength > 0) {
  buffer[index++] = exponent & 255;
  exponent /= 256;
  exponentLength -= 8;
 }
 buffer[--index] |= sign * 128;
 return buffer;
};
var unpack = function (buffer, mantissaLength) {
 var bytes = buffer.length;
 var exponentLength = bytes * 8 - mantissaLength - 1;
 var eMax = (1 << exponentLength) - 1;
 var eBias = eMax >> 1;
 var nBits = exponentLength - 7;
 var index = bytes - 1;
 var sign = buffer[index--];
 var exponent = sign & 127;
 var mantissa;
 sign >>= 7;
 while (nBits > 0) {
  exponent = exponent * 256 + buffer[index--];
  nBits -= 8;
 }
 mantissa = exponent & (1 << -nBits) - 1;
 exponent >>= -nBits;
 nBits += mantissaLength;
 while (nBits > 0) {
  mantissa = mantissa * 256 + buffer[index--];
  nBits -= 8;
 }
 if (exponent === 0) {
  exponent = 1 - eBias;
 } else if (exponent === eMax) {
  return mantissa ? NaN : sign ? -Infinity : Infinity;
 } else {
  mantissa = mantissa + pow(2, mantissaLength);
  exponent = exponent - eBias;
 }
 return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
};
module.exports = {
 pack: pack,
 unpack: unpack
};

/***/ }),
/* 348 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var isObject = __webpack_require__(27);
var floor = Math.floor;
module.exports = Number.isInteger || function isInteger(it) {
 return !isObject(it) && isFinite(it) && floor(it) === it;
};

/***/ }),
/* 349 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toPositiveInteger = __webpack_require__(350);
var $RangeError = RangeError;
module.exports = function (it, BYTES) {
 var offset = toPositiveInteger(it);
 if (offset % BYTES)
  throw $RangeError('Wrong offset');
 return offset;
};

/***/ }),
/* 350 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIntegerOrInfinity = __webpack_require__(53);
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;
};

/***/ }),
/* 351 */
/***/ ((module) => {


var round = Math.round;
module.exports = function (it) {
 var value = round(it);
 return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
};

/***/ }),
/* 352 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var bind = __webpack_require__(106);
var call = __webpack_require__(34);
var aConstructor = __webpack_require__(125);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
var getIterator = __webpack_require__(165);
var getIteratorMethod = __webpack_require__(166);
var isArrayIteratorMethod = __webpack_require__(164);
var isBigIntArray = __webpack_require__(353);
var aTypedArrayConstructor = (__webpack_require__(343).aTypedArrayConstructor);
var toBigInt = __webpack_require__(354);
module.exports = function from(source) {
 var C = aConstructor(this);
 var O = toObject(source);
 var argumentsLength = arguments.length;
 var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
 var mapping = mapfn !== undefined;
 var iteratorMethod = getIteratorMethod(O);
 var i, length, result, thisIsBigIntArray, value, step, iterator, next;
 if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) {
  iterator = getIterator(O, iteratorMethod);
  next = iterator.next;
  O = [];
  while (!(step = call(next, iterator)).done) {
   O.push(step.value);
  }
 }
 if (mapping && argumentsLength > 2) {
  mapfn = bind(mapfn, arguments[2]);
 }
 length = lengthOfArrayLike(O);
 result = new (aTypedArrayConstructor(C))(length);
 thisIsBigIntArray = isBigIntArray(result);
 for (i = 0; length > i; i++) {
  value = mapping ? mapfn(O[i], i) : O[i];
  result[i] = thisIsBigIntArray ? toBigInt(value) : +value;
 }
 return result;
};

/***/ }),
/* 353 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var classof = __webpack_require__(91);
module.exports = function (it) {
 var klass = classof(it);
 return klass == 'BigInt64Array' || klass == 'BigUint64Array';
};

/***/ }),
/* 354 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toPrimitive = __webpack_require__(33);
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);
};

/***/ }),
/* 355 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var lengthOfArrayLike = __webpack_require__(55);
var toIntegerOrInfinity = __webpack_require__(53);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('at', function at(index) {
 var O = aTypedArray(this);
 var len = lengthOfArrayLike(O);
 var relativeIndex = toIntegerOrInfinity(index);
 var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
 return k < 0 || k >= len ? undefined : O[k];
});

/***/ }),
/* 356 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var ArrayBufferViewCore = __webpack_require__(343);
var $ArrayCopyWithin = __webpack_require__(357);
var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('copyWithin', function copyWithin(target, start) {
 return u$ArrayCopyWithin(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
});

/***/ }),
/* 357 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toObject = __webpack_require__(9);
var toAbsoluteIndex = __webpack_require__(52);
var lengthOfArrayLike = __webpack_require__(55);
var deletePropertyOrThrow = __webpack_require__(279);
var min = Math.min;
module.exports = [].copyWithin || function copyWithin(target, start) {
 var O = toObject(this);
 var len = lengthOfArrayLike(O);
 var to = toAbsoluteIndex(target, len);
 var from = toAbsoluteIndex(start, len);
 var end = arguments.length > 2 ? arguments[2] : undefined;
 var count = min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
 var inc = 1;
 if (from < to && to < from + count) {
  inc = -1;
  from += count - 1;
  to += count - 1;
 }
 while (count-- > 0) {
  if (from in O)
   O[to] = O[from];
  else
   deletePropertyOrThrow(O, to);
  to += inc;
  from += inc;
 }
 return O;
};

/***/ }),
/* 358 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $every = (__webpack_require__(105).every);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('every', function every(callbackfn) {
 return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 359 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $fill = __webpack_require__(331);
var toBigInt = __webpack_require__(354);
var classof = __webpack_require__(91);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var fails = __webpack_require__(8);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var slice = uncurryThis(''.slice);
var CONVERSION_BUG = fails(function () {
 var count = 0;
 new Int8Array(2).fill({
  valueOf: function () {
   return count++;
  }
 });
 return count !== 1;
});
exportTypedArrayMethod('fill', function fill(value) {
 var length = arguments.length;
 aTypedArray(this);
 var actualValue = slice(classof(this), 0, 3) === 'Big' ? toBigInt(value) : +value;
 return call($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined);
}, CONVERSION_BUG);

/***/ }),
/* 360 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $filter = (__webpack_require__(105).filter);
var fromSpeciesAndList = __webpack_require__(361);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('filter', function filter(callbackfn) {
 var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
 return fromSpeciesAndList(this, list);
});

/***/ }),
/* 361 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var arrayFromConstructorAndList = __webpack_require__(362);
var typedArraySpeciesConstructor = __webpack_require__(363);
module.exports = function (instance, list) {
 return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);
};

/***/ }),
/* 362 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var lengthOfArrayLike = __webpack_require__(55);
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;
};

/***/ }),
/* 363 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var speciesConstructor = __webpack_require__(147);
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
module.exports = function (originalArray) {
 return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray)));
};

/***/ }),
/* 364 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $find = (__webpack_require__(105).find);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('find', function find(predicate) {
 return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 365 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $findIndex = (__webpack_require__(105).findIndex);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('findIndex', function findIndex(predicate) {
 return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 366 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $findLast = (__webpack_require__(367).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);
});

/***/ }),
/* 367 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var bind = __webpack_require__(106);
var IndexedObject = __webpack_require__(44);
var toObject = __webpack_require__(9);
var lengthOfArrayLike = __webpack_require__(55);
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)
};

/***/ }),
/* 368 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $findLastIndex = (__webpack_require__(367).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);
});

/***/ }),
/* 369 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $forEach = (__webpack_require__(105).forEach);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('forEach', function forEach(callbackfn) {
 $forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 370 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $includes = (__webpack_require__(51).includes);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('includes', function includes(searchElement) {
 return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 371 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $indexOf = (__webpack_require__(51).indexOf);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('indexOf', function indexOf(searchElement) {
 return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 372 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var fails = __webpack_require__(8);
var uncurryThis = __webpack_require__(6);
var ArrayBufferViewCore = __webpack_require__(343);
var ArrayIterators = __webpack_require__(42);
var wellKnownSymbol = __webpack_require__(13);
var ITERATOR = wellKnownSymbol('iterator');
var Uint8Array = global.Uint8Array;
var arrayValues = uncurryThis(ArrayIterators.values);
var arrayKeys = uncurryThis(ArrayIterators.keys);
var arrayEntries = uncurryThis(ArrayIterators.entries);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var TypedArrayPrototype = Uint8Array && Uint8Array.prototype;
var GENERIC = !fails(function () {
 TypedArrayPrototype[ITERATOR].call([1]);
});
var ITERATOR_IS_VALUES = !!TypedArrayPrototype && TypedArrayPrototype.values && TypedArrayPrototype[ITERATOR] === TypedArrayPrototype.values && TypedArrayPrototype.values.name === 'values';
var typedArrayValues = function values() {
 return arrayValues(aTypedArray(this));
};
exportTypedArrayMethod('entries', function entries() {
 return arrayEntries(aTypedArray(this));
}, GENERIC);
exportTypedArrayMethod('keys', function keys() {
 return arrayKeys(aTypedArray(this));
}, GENERIC);
exportTypedArrayMethod('values', typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' });
exportTypedArrayMethod(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' });

/***/ }),
/* 373 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var uncurryThis = __webpack_require__(6);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $join = uncurryThis([].join);
exportTypedArrayMethod('join', function join(separator) {
 return $join(aTypedArray(this), separator);
});

/***/ }),
/* 374 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var apply = __webpack_require__(116);
var $lastIndexOf = __webpack_require__(375);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement) {
 var length = arguments.length;
 return apply($lastIndexOf, aTypedArray(this), length > 1 ? [
  searchElement,
  arguments[1]
 ] : [searchElement]);
});

/***/ }),
/* 375 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var apply = __webpack_require__(116);
var toIndexedObject = __webpack_require__(43);
var toIntegerOrInfinity = __webpack_require__(53);
var lengthOfArrayLike = __webpack_require__(55);
var arrayMethodIsStrict = __webpack_require__(184);
var min = Math.min;
var $lastIndexOf = [].lastIndexOf;
var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf');
var FORCED = NEGATIVE_ZERO || !STRICT_METHOD;
module.exports = FORCED ? function lastIndexOf(searchElement) {
 if (NEGATIVE_ZERO)
  return apply($lastIndexOf, this, arguments) || 0;
 var O = toIndexedObject(this);
 var length = lengthOfArrayLike(O);
 var index = length - 1;
 if (arguments.length > 1)
  index = min(index, toIntegerOrInfinity(arguments[1]));
 if (index < 0)
  index = length + index;
 for (; index >= 0; index--)
  if (index in O && O[index] === searchElement)
   return index || 0;
 return -1;
} : $lastIndexOf;

/***/ }),
/* 376 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $map = (__webpack_require__(105).map);
var typedArraySpeciesConstructor = __webpack_require__(363);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('map', function map(mapfn) {
 return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
  return new (typedArraySpeciesConstructor(O))(length);
 });
});

/***/ }),
/* 377 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $reduce = (__webpack_require__(378).left);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('reduce', function reduce(callbackfn) {
 var length = arguments.length;
 return $reduce(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 378 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var aCallable = __webpack_require__(39);
var toObject = __webpack_require__(9);
var IndexedObject = __webpack_require__(44);
var lengthOfArrayLike = __webpack_require__(55);
var $TypeError = TypeError;
var createMethod = function (IS_RIGHT) {
 return function (that, callbackfn, argumentsLength, memo) {
  aCallable(callbackfn);
  var O = toObject(that);
  var self = IndexedObject(O);
  var length = lengthOfArrayLike(O);
  var index = IS_RIGHT ? length - 1 : 0;
  var i = IS_RIGHT ? -1 : 1;
  if (argumentsLength < 2)
   while (true) {
    if (index in self) {
     memo = self[index];
     index += i;
     break;
    }
    index += i;
    if (IS_RIGHT ? index < 0 : length <= index) {
     throw $TypeError('Reduce of empty array with no initial value');
    }
   }
  for (; IS_RIGHT ? index >= 0 : length > index; index += i)
   if (index in self) {
    memo = callbackfn(memo, self[index], index, O);
   }
  return memo;
 };
};
module.exports = {
 left: createMethod(false),
 right: createMethod(true)
};

/***/ }),
/* 379 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $reduceRight = (__webpack_require__(378).right);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('reduceRight', function reduceRight(callbackfn) {
 var length = arguments.length;
 return $reduceRight(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 380 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var floor = Math.floor;
exportTypedArrayMethod('reverse', function reverse() {
 var that = this;
 var length = aTypedArray(that).length;
 var middle = floor(length / 2);
 var index = 0;
 var value;
 while (index < middle) {
  value = that[index];
  that[index++] = that[--length];
  that[length] = value;
 }
 return that;
});

/***/ }),
/* 381 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var call = __webpack_require__(34);
var ArrayBufferViewCore = __webpack_require__(343);
var lengthOfArrayLike = __webpack_require__(55);
var toOffset = __webpack_require__(349);
var toIndexedObject = __webpack_require__(9);
var fails = __webpack_require__(8);
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);

/***/ }),
/* 382 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var typedArraySpeciesConstructor = __webpack_require__(363);
var fails = __webpack_require__(8);
var arraySlice = __webpack_require__(117);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var FORCED = fails(function () {
 new Int8Array(1).slice();
});
exportTypedArrayMethod('slice', function slice(start, end) {
 var list = arraySlice(aTypedArray(this), start, end);
 var C = typedArraySpeciesConstructor(this);
 var index = 0;
 var length = list.length;
 var result = new C(length);
 while (length > index)
  result[index] = list[index++];
 return result;
}, FORCED);

/***/ }),
/* 383 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var $some = (__webpack_require__(105).some);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod('some', function some(callbackfn) {
 return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});

/***/ }),
/* 384 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(107);
var fails = __webpack_require__(8);
var aCallable = __webpack_require__(39);
var internalSort = __webpack_require__(231);
var ArrayBufferViewCore = __webpack_require__(343);
var FF = __webpack_require__(280);
var IE_OR_EDGE = __webpack_require__(281);
var V8 = __webpack_require__(20);
var WEBKIT = __webpack_require__(282);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var Uint16Array = global.Uint16Array;
var nativeSort = Uint16Array && uncurryThis(Uint16Array.prototype.sort);
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails(function () {
 nativeSort(new Uint16Array(2), null);
}) && fails(function () {
 nativeSort(new Uint16Array(2), {});
}));
var STABLE_SORT = !!nativeSort && !fails(function () {
 if (V8)
  return V8 < 74;
 if (FF)
  return FF < 67;
 if (IE_OR_EDGE)
  return true;
 if (WEBKIT)
  return WEBKIT < 602;
 var array = new Uint16Array(516);
 var expected = Array(516);
 var index, mod;
 for (index = 0; index < 516; index++) {
  mod = index % 4;
  array[index] = 515 - index;
  expected[index] = index - 2 * mod + 3;
 }
 nativeSort(array, function (a, b) {
  return (a / 4 | 0) - (b / 4 | 0);
 });
 for (index = 0; index < 516; index++) {
  if (array[index] !== expected[index])
   return true;
 }
});
var getSortCompare = function (comparefn) {
 return function (x, y) {
  if (comparefn !== undefined)
   return +comparefn(x, y) || 0;
  if (y !== y)
   return -1;
  if (x !== x)
   return 1;
  if (x === 0 && y === 0)
   return 1 / x > 0 && 1 / y < 0 ? 1 : -1;
  return x > y;
 };
};
exportTypedArrayMethod('sort', function sort(comparefn) {
 if (comparefn !== undefined)
  aCallable(comparefn);
 if (STABLE_SORT)
  return nativeSort(this, comparefn);
 return internalSort(aTypedArray(this), getSortCompare(comparefn));
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);

/***/ }),
/* 385 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var apply = __webpack_require__(116);
var ArrayBufferViewCore = __webpack_require__(343);
var fails = __webpack_require__(8);
var arraySlice = __webpack_require__(117);
var Int8Array = global.Int8Array;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $toLocaleString = [].toLocaleString;
var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
 $toLocaleString.call(new Int8Array(1));
});
var FORCED = fails(function () {
 return [
  1,
  2
 ].toLocaleString() != new Int8Array([
  1,
  2
 ]).toLocaleString();
}) || !fails(function () {
 Int8Array.prototype.toLocaleString.call([
  1,
  2
 ]);
});
exportTypedArrayMethod('toLocaleString', function toLocaleString() {
 return apply($toLocaleString, TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this), arraySlice(arguments));
}, FORCED);

/***/ }),
/* 386 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var arrayToReversed = __webpack_require__(387);
var ArrayBufferViewCore = __webpack_require__(343);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
exportTypedArrayMethod('toReversed', function toReversed() {
 return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
});

/***/ }),
/* 387 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var lengthOfArrayLike = __webpack_require__(55);
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;
};

/***/ }),
/* 388 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var ArrayBufferViewCore = __webpack_require__(343);
var uncurryThis = __webpack_require__(6);
var aCallable = __webpack_require__(39);
var arrayFromConstructorAndList = __webpack_require__(362);
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);
});

/***/ }),
/* 389 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var exportTypedArrayMethod = (__webpack_require__(343).exportTypedArrayMethod);
var fails = __webpack_require__(8);
var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var Uint8Array = global.Uint8Array;
var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {};
var arrayToString = [].toString;
var join = uncurryThis([].join);
if (fails(function () {
  arrayToString.call({});
 })) {
 arrayToString = function toString() {
  return join(this);
 };
}
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD);

/***/ }),
/* 390 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var arrayWith = __webpack_require__(391);
var ArrayBufferViewCore = __webpack_require__(343);
var isBigIntArray = __webpack_require__(353);
var toIntegerOrInfinity = __webpack_require__(53);
var toBigInt = __webpack_require__(354);
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);

/***/ }),
/* 391 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var lengthOfArrayLike = __webpack_require__(55);
var toIntegerOrInfinity = __webpack_require__(53);
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;
};

/***/ }),
/* 392 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var DESCRIPTORS = __webpack_require__(24);
var defineBuiltInAccessor = __webpack_require__(103);
var isDetached = __webpack_require__(393);
var ArrayBufferPrototype = ArrayBuffer.prototype;
if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) {
 defineBuiltInAccessor(ArrayBufferPrototype, 'detached', {
  configurable: true,
  get: function detached() {
   return isDetached(this);
  }
 });
}

/***/ }),
/* 393 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var arrayBufferByteLength = __webpack_require__(394);
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;
 }
};

/***/ }),
/* 394 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThisAccessor = __webpack_require__(85);
var classof = __webpack_require__(45);
var $TypeError = TypeError;
module.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
 if (classof(O) != 'ArrayBuffer')
  throw $TypeError('ArrayBuffer expected');
 return O.byteLength;
};

/***/ }),
/* 395 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $transfer = __webpack_require__(396);
if ($transfer)
 $({
  target: 'ArrayBuffer',
  proto: true
 }, {
  transfer: function transfer() {
   return $transfer(this, arguments.length ? arguments[0] : undefined, true);
  }
 });

/***/ }),
/* 396 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var uncurryThis = __webpack_require__(6);
var uncurryThisAccessor = __webpack_require__(85);
var toIndex = __webpack_require__(346);
var isDetached = __webpack_require__(393);
var arrayBufferByteLength = __webpack_require__(394);
var PROPER_TRANSFER = __webpack_require__(397);
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;
};

/***/ }),
/* 397 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var global = __webpack_require__(4);
var fails = __webpack_require__(8);
var V8 = __webpack_require__(20);
var IS_BROWSER = __webpack_require__(159);
var IS_DENO = __webpack_require__(160);
var IS_NODE = __webpack_require__(144);
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;
});

/***/ }),
/* 398 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $transfer = __webpack_require__(396);
if ($transfer)
 $({
  target: 'ArrayBuffer',
  proto: true
 }, {
  transferToFixedLength: function transferToFixedLength() {
   return $transfer(this, arguments.length ? arguments[0] : undefined, false);
  }
 });

/***/ }),
/* 399 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var createTypedArrayConstructor = __webpack_require__(341);
createTypedArrayConstructor('Uint32', function (init) {
 return function Uint32Array(data, byteOffset, length) {
  return init(this, data, byteOffset, length);
 };
});

/***/ }),
/* 400 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var $padStart = (__webpack_require__(401).start);
var WEBKIT_BUG = __webpack_require__(403);
$({
 target: 'String',
 proto: true,
 forced: WEBKIT_BUG
}, {
 padStart: function padStart(maxLength) {
  return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
 }
});

/***/ }),
/* 401 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var uncurryThis = __webpack_require__(6);
var toLength = __webpack_require__(56);
var toString = __webpack_require__(94);
var $repeat = __webpack_require__(402);
var requireObjectCoercible = __webpack_require__(10);
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis(''.slice);
var ceil = Math.ceil;
var createMethod = function (IS_END) {
 return function ($this, maxLength, fillString) {
  var S = toString(requireObjectCoercible($this));
  var intMaxLength = toLength(maxLength);
  var stringLength = S.length;
  var fillStr = fillString === undefined ? ' ' : toString(fillString);
  var fillLen, stringFiller;
  if (intMaxLength <= stringLength || fillStr == '')
   return S;
  fillLen = intMaxLength - stringLength;
  stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
  if (stringFiller.length > fillLen)
   stringFiller = stringSlice(stringFiller, 0, fillLen);
  return IS_END ? S + stringFiller : stringFiller + S;
 };
};
module.exports = {
 start: createMethod(false),
 end: createMethod(true)
};

/***/ }),
/* 402 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var toIntegerOrInfinity = __webpack_require__(53);
var toString = __webpack_require__(94);
var requireObjectCoercible = __webpack_require__(10);
var $RangeError = RangeError;
module.exports = function repeat(count) {
 var str = toString(requireObjectCoercible(this));
 var result = '';
 var n = toIntegerOrInfinity(count);
 if (n < 0 || n == Infinity)
  throw $RangeError('Wrong number of repetitions');
 for (; n > 0; (n >>>= 1) && (str += str))
  if (n & 1)
   result += str;
 return result;
};

/***/ }),
/* 403 */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {


var userAgent = __webpack_require__(21);
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);

/***/ }),
/* 404 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(92);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(42);__webpack_require__(95);Object.defineProperty(exports, "__esModule", ({value:true}));exports.TextHighlighter=void 0;__webpack_require__(126);__webpack_require__(198);__webpack_require__(179);__webpack_require__(199);__webpack_require__(200);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(138);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var TextHighlighter=/*#__PURE__*/function(){function TextHighlighter(_ref){var findController=_ref.findController,eventBus=_ref.eventBus,pageIndex=_ref.pageIndex;_classCallCheck(this,TextHighlighter);this.findController=findController;this.matches=[];this.eventBus=eventBus;this.pageIdx=pageIndex;this._onUpdateTextLayerMatches=null;this.textDivs=null;this.textContentItemsStr=null;this.enabled=false;}_createClass(TextHighlighter,[{key:"setTextMapping",value:function setTextMapping(divs,texts){this.textDivs=divs;this.textContentItemsStr=texts;}},{key:"enable",value:function enable(){var _this=this;if(!this.textDivs||!this.textContentItemsStr){throw new Error("Text divs and strings have not been set.");}if(this.enabled){return;}this.enabled=true;if(!this._onUpdateTextLayerMatches){this._onUpdateTextLayerMatches=function(evt){if(evt.pageIndex===_this.pageIdx||evt.pageIndex===-1){_this._updateMatches();}};this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches);}this._updateMatches();}},{key:"disable",value:function disable(){if(!this.enabled){return;}this.enabled=false;if(this._onUpdateTextLayerMatches){this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches);this._onUpdateTextLayerMatches=null;}this._updateMatches(true);}},{key:"_convertMatches",value:function _convertMatches(matches,matchesLength){if(!matches){return[];}var textContentItemsStr=this.textContentItemsStr;var i=0,iIndex=0;var end=textContentItemsStr.length-1;var result=[];for(var m=0,mm=matches.length;m<mm;m++){var matchIdx=matches[m];while(i!==end&&matchIdx>=iIndex+textContentItemsStr[i].length){iIndex+=textContentItemsStr[i].length;i++;}if(i===textContentItemsStr.length){globalThis.ngxConsole.error("Could not find a matching mapping");}var match={begin:{divIdx:i,offset:matchIdx-iIndex}};matchIdx+=matchesLength[m];while(i!==end&&matchIdx>iIndex+textContentItemsStr[i].length){iIndex+=textContentItemsStr[i].length;i++;}match.end={divIdx:i,offset:matchIdx-iIndex};result.push(match);}return result;}},{key:"_renderMatches",value:function _renderMatches(matches){if(matches.length===0){return;}var findController=this.findController,pageIdx=this.pageIdx;var textContentItemsStr=this.textContentItemsStr,textDivs=this.textDivs;var isSelectedPage=pageIdx===findController.selected.pageIdx;var selectedMatchIdx=findController.selected.matchIdx;var highlightAll=findController.state.highlightAll;var prevEnd=null;var infinity={divIdx:-1,offset:undefined};function beginText(begin,className){var divIdx=begin.divIdx;textDivs[divIdx].textContent="";return appendTextToDiv(divIdx,0,begin.offset,className);}function appendTextToDiv(divIdx,fromOffset,toOffset,className){var div=textDivs[divIdx];if(div.nodeType===Node.TEXT_NODE){var span=document.createElement("span");div.before(span);span.append(div);textDivs[divIdx]=span;div=span;}var content=textContentItemsStr[divIdx].substring(fromOffset,toOffset);var node=document.createTextNode(content);if(className){var _span=document.createElement("span");_span.className="".concat(className," appended");_span.append(node);div.append(_span);return className.includes("selected")?_span.offsetLeft:0;}div.append(node);return 0;}var i0=selectedMatchIdx,i1=i0+1;if(highlightAll){i0=0;i1=matches.length;}else if(!isSelectedPage){return;}var lastDivIdx=-1;var lastOffset=-1;for(var i=i0;i<i1;i++){var match=matches[i];var begin=match.begin;if(begin.divIdx===lastDivIdx&&begin.offset===lastOffset){continue;}lastDivIdx=begin.divIdx;lastOffset=begin.offset;var end=match.end;var isSelected=isSelectedPage&&i===selectedMatchIdx;var highlightSuffix=isSelected?" selected":"";var selectedLeft=0;if(!prevEnd||begin.divIdx!==prevEnd.divIdx){if(prevEnd!==null){appendTextToDiv(prevEnd.divIdx,prevEnd.offset,infinity.offset);}beginText(begin);}else{appendTextToDiv(prevEnd.divIdx,prevEnd.offset,begin.offset);}if(begin.divIdx===end.divIdx){selectedLeft=appendTextToDiv(begin.divIdx,begin.offset,end.offset,"highlight"+highlightSuffix);}else{selectedLeft=appendTextToDiv(begin.divIdx,begin.offset,infinity.offset,"highlight begin"+highlightSuffix);for(var n0=begin.divIdx+1,n1=end.divIdx;n0<n1;n0++){textDivs[n0].className="highlight middle"+highlightSuffix;}beginText(end,"highlight end"+highlightSuffix);}prevEnd=end;if(isSelected){findController.scrollMatchIntoView({element:textDivs[begin.divIdx],selectedLeft:selectedLeft,pageIndex:pageIdx,matchIndex:selectedMatchIdx});}}if(prevEnd){appendTextToDiv(prevEnd.divIdx,prevEnd.offset,infinity.offset);}}},{key:"_updateMatches",value:function _updateMatches(){var reset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.enabled&&!reset){return;}var findController=this.findController,matches=this.matches,pageIdx=this.pageIdx;var textContentItemsStr=this.textContentItemsStr,textDivs=this.textDivs;var clearedUntilDivIdx=-1;var _iterator=_createForOfIteratorHelper(matches),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var match=_step.value;var begin=Math.max(clearedUntilDivIdx,match.begin.divIdx);for(var n=begin,end=match.end.divIdx;n<=end;n++){var div=textDivs[n];div.textContent=textContentItemsStr[n];div.className="";}clearedUntilDivIdx=match.end.divIdx+1;}}catch(err){_iterator.e(err);}finally{_iterator.f();}if(!(findController!==null&&findController!==void 0&&findController.highlightMatches)||reset){return;}var pageMatches=findController.pageMatches[pageIdx]||null;var pageMatchesLength=findController.pageMatchesLength[pageIdx]||null;this.matches=this._convertMatches(pageMatches,pageMatchesLength);this._renderMatches(this.matches);}}]);return TextHighlighter;}();exports.TextHighlighter=TextHighlighter;

/***/ }),
/* 405 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(142);__webpack_require__(1);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.TextLayerBuilder=void 0;__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(126);__webpack_require__(198);__webpack_require__(293);__webpack_require__(222);var _pdfjsLib=__webpack_require__(286);var _ui_utils=__webpack_require__(239);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var _enablePermissions=/*#__PURE__*/new WeakMap();var _rotation=/*#__PURE__*/new WeakMap();var _scale=/*#__PURE__*/new WeakMap();var _textContentSource=/*#__PURE__*/new WeakMap();var _finishRendering=/*#__PURE__*/new WeakSet();var _bindMouse=/*#__PURE__*/new WeakSet();var TextLayerBuilder=/*#__PURE__*/function(){function TextLayerBuilder(_ref){var _ref$highlighter=_ref.highlighter,highlighter=_ref$highlighter===void 0?null:_ref$highlighter,_ref$accessibilityMan=_ref.accessibilityManager,accessibilityManager=_ref$accessibilityMan===void 0?null:_ref$accessibilityMan,_ref$isOffscreenCanva=_ref.isOffscreenCanvasSupported,isOffscreenCanvasSupported=_ref$isOffscreenCanva===void 0?true:_ref$isOffscreenCanva,_ref$enablePermission=_ref.enablePermissions,enablePermissions=_ref$enablePermission===void 0?false:_ref$enablePermission;_classCallCheck(this,TextLayerBuilder);_classPrivateMethodInitSpec(this,_bindMouse);_classPrivateMethodInitSpec(this,_finishRendering);_classPrivateFieldInitSpec(this,_enablePermissions,{writable:true,value:false});_classPrivateFieldInitSpec(this,_rotation,{writable:true,value:0});_classPrivateFieldInitSpec(this,_scale,{writable:true,value:0});_classPrivateFieldInitSpec(this,_textContentSource,{writable:true,value:null});this.textContentItemsStr=[];this.renderingDone=false;this.textDivs=[];this.textDivProperties=new WeakMap();this.textLayerRenderTask=null;this.highlighter=highlighter;this.accessibilityManager=accessibilityManager;this.isOffscreenCanvasSupported=isOffscreenCanvasSupported;_classPrivateFieldSet(this,_enablePermissions,enablePermissions===true);this.div=document.createElement("div");this.div.className="textLayer";this.hide();}_createClass(TextLayerBuilder,[{key:"numTextDivs",get:function get(){return this.textDivs.length;}},{key:"render",value:function(){var _render=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(viewport){var _this$highlighter,_this$accessibilityMa,_this$accessibilityMa2;var scale,rotation,mustRotate,mustRescale;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(_classPrivateFieldGet(this,_textContentSource)){_context.next=2;break;}throw new Error('No "textContentSource" parameter specified.');case 2:scale=viewport.scale*(globalThis.devicePixelRatio||1);rotation=viewport.rotation;if(!this.renderingDone){_context.next=10;break;}mustRotate=rotation!==_classPrivateFieldGet(this,_rotation);mustRescale=scale!==_classPrivateFieldGet(this,_scale);if(mustRotate||mustRescale){this.hide();(0,_pdfjsLib.updateTextLayer)({container:this.div,viewport:viewport,textDivs:this.textDivs,textDivProperties:this.textDivProperties,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,mustRescale:mustRescale,mustRotate:mustRotate});_classPrivateFieldSet(this,_scale,scale);_classPrivateFieldSet(this,_rotation,rotation);}this.show();return _context.abrupt("return");case 10:this.cancel();(_this$highlighter=this.highlighter)===null||_this$highlighter===void 0?void 0:_this$highlighter.setTextMapping(this.textDivs,this.textContentItemsStr);(_this$accessibilityMa=this.accessibilityManager)===null||_this$accessibilityMa===void 0?void 0:_this$accessibilityMa.setTextMapping(this.textDivs);this.textLayerRenderTask=(0,_pdfjsLib.renderTextLayer)({textContentSource:_classPrivateFieldGet(this,_textContentSource),container:this.div,viewport:viewport,textDivs:this.textDivs,textDivProperties:this.textDivProperties,textContentItemsStr:this.textContentItemsStr,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported});_context.next=16;return this.textLayerRenderTask.promise;case 16:_classPrivateMethodGet(this,_finishRendering,_finishRendering2).call(this);_classPrivateFieldSet(this,_scale,scale);_classPrivateFieldSet(this,_rotation,rotation);this.show();(_this$accessibilityMa2=this.accessibilityManager)===null||_this$accessibilityMa2===void 0?void 0:_this$accessibilityMa2.enable();case 21:case"end":return _context.stop();}},_callee,this);}));function render(_x){return _render.apply(this,arguments);}return render;}()},{key:"hide",value:function hide(){if(!this.div.hidden){var _this$highlighter2;(_this$highlighter2=this.highlighter)===null||_this$highlighter2===void 0?void 0:_this$highlighter2.disable();this.div.hidden=true;}}},{key:"show",value:function show(){if(this.div.hidden&&this.renderingDone){var _this$highlighter3;this.div.hidden=false;(_this$highlighter3=this.highlighter)===null||_this$highlighter3===void 0?void 0:_this$highlighter3.enable();}}},{key:"cancel",value:function cancel(){var _this$highlighter4,_this$accessibilityMa3;if(this.textLayerRenderTask){this.textLayerRenderTask.cancel();this.textLayerRenderTask=null;}(_this$highlighter4=this.highlighter)===null||_this$highlighter4===void 0?void 0:_this$highlighter4.disable();(_this$accessibilityMa3=this.accessibilityManager)===null||_this$accessibilityMa3===void 0?void 0:_this$accessibilityMa3.disable();this.textContentItemsStr.length=0;this.textDivs.length=0;this.textDivProperties=new WeakMap();}},{key:"setTextContentSource",value:function setTextContentSource(source){this.cancel();_classPrivateFieldSet(this,_textContentSource,source);}}]);return TextLayerBuilder;}();exports.TextLayerBuilder=TextLayerBuilder;function _finishRendering2(){this.renderingDone=true;var endOfContent=document.createElement("div");endOfContent.className="endOfContent";this.div.append(endOfContent);_classPrivateMethodGet(this,_bindMouse,_bindMouse2).call(this);}function _bindMouse2(){var _this=this;var div=this.div;div.addEventListener("mousedown",function(evt){var end=div.querySelector(".endOfContent");if(!end){return;}var adjustTop=evt.target!==div;adjustTop&&(adjustTop=getComputedStyle(end).getPropertyValue("-moz-user-select")!=="none");if(adjustTop){var divBounds=div.getBoundingClientRect();var r=Math.max(0,(evt.pageY-divBounds.top)/divBounds.height);end.style.top=(r*100).toFixed(2)+"%";}end.classList.add("active");});div.addEventListener("mouseup",function(){var end=div.querySelector(".endOfContent");if(!end){return;}end.style.top="";end.classList.remove("active");});div.addEventListener("copy",function(event){if(!_classPrivateFieldGet(_this,_enablePermissions)){var selection=document.getSelection();event.clipboardData.setData("text/plain",(0,_ui_utils.removeNullCharacters)((0,_pdfjsLib.normalizeUnicode)(selection.toString())));}event.preventDefault();event.stopPropagation();});}

/***/ }),
/* 406 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(142);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.XfaLayerBuilder=void 0;__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(126);__webpack_require__(138);var _pdfjsLib=__webpack_require__(286);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var XfaLayerBuilder=/*#__PURE__*/function(){function XfaLayerBuilder(_ref){var pageDiv=_ref.pageDiv,pdfPage=_ref.pdfPage,_ref$annotationStorag=_ref.annotationStorage,annotationStorage=_ref$annotationStorag===void 0?null:_ref$annotationStorag,linkService=_ref.linkService,_ref$xfaHtml=_ref.xfaHtml,xfaHtml=_ref$xfaHtml===void 0?null:_ref$xfaHtml;_classCallCheck(this,XfaLayerBuilder);this.pageDiv=pageDiv;this.pdfPage=pdfPage;this.annotationStorage=annotationStorage;this.linkService=linkService;this.xfaHtml=xfaHtml;this.div=null;this._cancelled=false;}_createClass(XfaLayerBuilder,[{key:"render",value:function(){var _render=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(viewport){var intent,_parameters,div,xfaHtml,parameters,_args=arguments;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:intent=_args.length>1&&_args[1]!==undefined?_args[1]:"display";if(!(intent==="print")){_context.next=7;break;}_parameters={viewport:viewport.clone({dontFlip:true}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:intent};div=document.createElement("div");this.pageDiv.append(div);_parameters.div=div;return _context.abrupt("return",_pdfjsLib.XfaLayer.render(_parameters));case 7:_context.next=9;return this.pdfPage.getXfa();case 9:xfaHtml=_context.sent;if(!(this._cancelled||!xfaHtml)){_context.next=12;break;}return _context.abrupt("return",{textDivs:[]});case 12:parameters={viewport:viewport.clone({dontFlip:true}),div:this.div,xfaHtml:xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:intent};if(!this.div){_context.next=15;break;}return _context.abrupt("return",_pdfjsLib.XfaLayer.update(parameters));case 15:this.div=document.createElement("div");this.pageDiv.append(this.div);parameters.div=this.div;return _context.abrupt("return",_pdfjsLib.XfaLayer.render(parameters));case 19:case"end":return _context.stop();}},_callee,this);}));function render(_x){return _render.apply(this,arguments);}return render;}()},{key:"cancel",value:function cancel(){this._cancelled=true;}},{key:"hide",value:function hide(){if(!this.div){return;}this.div.hidden=true;}}]);return XfaLayerBuilder;}();exports.XfaLayerBuilder=XfaLayerBuilder;

/***/ }),
/* 407 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(182);__webpack_require__(197);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.SecondaryToolbar=void 0;__webpack_require__(179);__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(293);__webpack_require__(95);var _ui_utils=__webpack_require__(239);var _pdf_viewer=__webpack_require__(325);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var _updateUIState=/*#__PURE__*/new WeakSet();var _bindClickListeners=/*#__PURE__*/new WeakSet();var _bindCursorToolsListener=/*#__PURE__*/new WeakSet();var _bindScrollModeListener=/*#__PURE__*/new WeakSet();var _bindSpreadModeListener=/*#__PURE__*/new WeakSet();var SecondaryToolbar=/*#__PURE__*/function(){function SecondaryToolbar(options,eventBus,externalServices){_classCallCheck(this,SecondaryToolbar);_classPrivateMethodInitSpec(this,_bindSpreadModeListener);_classPrivateMethodInitSpec(this,_bindScrollModeListener);_classPrivateMethodInitSpec(this,_bindCursorToolsListener);_classPrivateMethodInitSpec(this,_bindClickListeners);_classPrivateMethodInitSpec(this,_updateUIState);this.toolbar=options.toolbar;this.toggleButton=options.toggleButton;this.buttons=[{element:options.presentationModeButton,eventName:"presentationmode",close:true},{element:options.printButton,eventName:"print",close:true},{element:options.downloadButton,eventName:"download",close:true},{element:options.viewBookmarkButton,eventName:null,close:true},{element:options.firstPageButton,eventName:"firstpage",close:true},{element:options.lastPageButton,eventName:"lastpage",close:true},{element:options.pageRotateCwButton,eventName:"rotatecw",close:false},{element:options.pageRotateCcwButton,eventName:"rotateccw",close:false},{element:options.cursorSelectToolButton,eventName:"switchcursortool",eventDetails:{tool:_ui_utils.CursorTool.SELECT},close:true},{element:options.cursorHandToolButton,eventName:"switchcursortool",eventDetails:{tool:_ui_utils.CursorTool.HAND},close:true},{element:options.scrollPageButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils.ScrollMode.PAGE},close:true},{element:options.scrollVerticalButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils.ScrollMode.VERTICAL},close:true},{element:options.scrollHorizontalButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils.ScrollMode.HORIZONTAL},close:true},{element:options.scrollWrappedButton,eventName:"switchscrollmode",eventDetails:{mode:_ui_utils.ScrollMode.WRAPPED},close:true},{element:options.spreadNoneButton,eventName:"switchspreadmode",eventDetails:{mode:_ui_utils.SpreadMode.NONE},close:true},{element:options.spreadOddButton,eventName:"switchspreadmode",eventDetails:{mode:_ui_utils.SpreadMode.ODD},close:true},{element:options.spreadEvenButton,eventName:"switchspreadmode",eventDetails:{mode:_ui_utils.SpreadMode.EVEN},close:true},{element:options.documentPropertiesButton,eventName:"documentproperties",close:true}];this.buttons.push({element:options.openFileButton,eventName:"openfile",close:true});this.items={firstPage:options.firstPageButton,lastPage:options.lastPageButton,pageRotateCw:options.pageRotateCwButton,pageRotateCcw:options.pageRotateCcwButton};this.eventBus=eventBus;this.externalServices=externalServices;this.opened=false;_classPrivateMethodGet(this,_bindClickListeners,_bindClickListeners2).call(this);_classPrivateMethodGet(this,_bindCursorToolsListener,_bindCursorToolsListener2).call(this,options);_classPrivateMethodGet(this,_bindScrollModeListener,_bindScrollModeListener2).call(this,options);_classPrivateMethodGet(this,_bindSpreadModeListener,_bindSpreadModeListener2).call(this,options);this.reset();}_createClass(SecondaryToolbar,[{key:"isOpen",get:function get(){return this.opened;}},{key:"setPageNumber",value:function setPageNumber(pageNumber){this.pageNumber=pageNumber;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this);}},{key:"setPagesCount",value:function setPagesCount(pagesCount){this.pagesCount=pagesCount;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this);}},{key:"reset",value:function reset(){this.pageNumber=0;this.pagesCount=0;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this);this.eventBus.dispatch("secondarytoolbarreset",{source:this});}},{key:"open",value:function open(){if(this.opened){return;}this.opened=true;(0,_ui_utils.toggleExpandedBtn)(this.toggleButton,true,this.toolbar);}},{key:"close",value:function close(){if(!this.opened){return;}this.opened=false;(0,_ui_utils.toggleExpandedBtn)(this.toggleButton,false,this.toolbar);}},{key:"toggle",value:function toggle(){if(this.opened){this.close();}else{this.open();}}}]);return SecondaryToolbar;}();exports.SecondaryToolbar=SecondaryToolbar;function _updateUIState2(){this.items.firstPage.disabled=this.pageNumber<=1;if(document.getElementById("previousPage")){document.getElementById("previousPage").disabled=this.pageNumber<=1;}this.items.lastPage.disabled=this.pageNumber>=this.pagesCount;if(document.getElementById("nextPage")){document.getElementById("nextPage").disabled=this.pageNumber>=this.pagesCount;}this.items.pageRotateCw.disabled=this.pagesCount===0;this.items.pageRotateCcw.disabled=this.pagesCount===0;this.eventBus.dispatch("updateuistate",{source:this,widget:"SecondaryToolbar",pageNumber:this.pageNumber,pagesCount:this.pagesCount});}function _bindClickListeners2(){var _this=this;this.toggleButton.addEventListener("click",this.toggle.bind(this));var _iterator=_createForOfIteratorHelper(this.buttons),_step;try{var _loop=function _loop(){var _step$value=_step.value,element=_step$value.element,eventName=_step$value.eventName,close=_step$value.close,eventDetails=_step$value.eventDetails;element===null||element===void 0?void 0:element.addEventListener("click",function(evt){if(eventName!==null){_this.eventBus.dispatch(eventName,_objectSpread({source:_this},eventDetails));}if(close){_this.close();}_this.externalServices.reportTelemetry({type:"buttons",data:{id:element.id}});});};for(_iterator.s();!(_step=_iterator.n()).done;){_loop();}}catch(err){_iterator.e(err);}finally{_iterator.f();}}function _bindCursorToolsListener2(_ref){var cursorSelectToolButton=_ref.cursorSelectToolButton,cursorHandToolButton=_ref.cursorHandToolButton;this.eventBus._on("cursortoolchanged",function(_ref2){var tool=_ref2.tool;(0,_ui_utils.toggleCheckedBtn)(cursorSelectToolButton,tool===_ui_utils.CursorTool.SELECT);(0,_ui_utils.toggleCheckedBtn)(cursorHandToolButton,tool===_ui_utils.CursorTool.HAND);});}function _bindScrollModeListener2(_ref3){var _this2=this;var scrollPageButton=_ref3.scrollPageButton,scrollVerticalButton=_ref3.scrollVerticalButton,scrollHorizontalButton=_ref3.scrollHorizontalButton,scrollWrappedButton=_ref3.scrollWrappedButton,spreadNoneButton=_ref3.spreadNoneButton,spreadOddButton=_ref3.spreadOddButton,spreadEvenButton=_ref3.spreadEvenButton;var scrollModeChanged=function scrollModeChanged(_ref4){var mode=_ref4.mode;(0,_ui_utils.toggleCheckedBtn)(scrollPageButton,mode===_ui_utils.ScrollMode.PAGE);(0,_ui_utils.toggleCheckedBtn)(scrollVerticalButton,mode===_ui_utils.ScrollMode.VERTICAL);(0,_ui_utils.toggleCheckedBtn)(scrollHorizontalButton,mode===_ui_utils.ScrollMode.HORIZONTAL);(0,_ui_utils.toggleCheckedBtn)(scrollWrappedButton,mode===_ui_utils.ScrollMode.WRAPPED);var forceScrollModePage=_this2.pagesCount>_pdf_viewer.PagesCountLimit.FORCE_SCROLL_MODE_PAGE;scrollPageButton.disabled=forceScrollModePage;scrollVerticalButton.disabled=forceScrollModePage;scrollHorizontalButton.disabled=forceScrollModePage;scrollWrappedButton.disabled=forceScrollModePage;var isHorizontal=mode===_ui_utils.ScrollMode.HORIZONTAL;spreadNoneButton.disabled=isHorizontal;spreadOddButton.disabled=isHorizontal;spreadEvenButton.disabled=isHorizontal;};this.eventBus._on("scrollmodechanged",scrollModeChanged);this.eventBus._on("secondarytoolbarreset",function(evt){if(evt.source===_this2){scrollModeChanged({mode:_ui_utils.ScrollMode.VERTICAL});}});}function _bindSpreadModeListener2(_ref5){var _this3=this;var spreadNoneButton=_ref5.spreadNoneButton,spreadOddButton=_ref5.spreadOddButton,spreadEvenButton=_ref5.spreadEvenButton;var spreadModeChanged=function spreadModeChanged(_ref6){var mode=_ref6.mode;(0,_ui_utils.toggleCheckedBtn)(spreadNoneButton,mode===_ui_utils.SpreadMode.NONE);(0,_ui_utils.toggleCheckedBtn)(spreadOddButton,mode===_ui_utils.SpreadMode.ODD);(0,_ui_utils.toggleCheckedBtn)(spreadEvenButton,mode===_ui_utils.SpreadMode.EVEN);};this.eventBus._on("spreadmodechanged",spreadModeChanged);this.eventBus._on("secondarytoolbarreset",function(evt){if(evt.source===_this3){spreadModeChanged({mode:_ui_utils.SpreadMode.NONE});}});}

/***/ }),
/* 408 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(185);__webpack_require__(192);__webpack_require__(206);__webpack_require__(219);__webpack_require__(1);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(182);__webpack_require__(197);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.Toolbar=void 0;__webpack_require__(179);__webpack_require__(88);__webpack_require__(222);__webpack_require__(138);__webpack_require__(126);__webpack_require__(42);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(293);__webpack_require__(142);__webpack_require__(216);var _ui_utils=__webpack_require__(239);var _pdfjsLib=__webpack_require__(286);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateMethodInitSpec(obj,privateSet){_checkPrivateRedeclaration(obj,privateSet);privateSet.add(obj);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}function _classPrivateMethodGet(receiver,privateSet,fn){if(!privateSet.has(receiver)){throw new TypeError("attempted to get private field on non-instance");}return fn;}var PAGE_NUMBER_LOADING_INDICATOR="visiblePageIsLoading";var _wasLocalized=/*#__PURE__*/new WeakMap();var _bindListeners=/*#__PURE__*/new WeakSet();var _bindEditorToolsListener=/*#__PURE__*/new WeakSet();var _updateUIState=/*#__PURE__*/new WeakSet();var _adjustScaleWidth=/*#__PURE__*/new WeakSet();var Toolbar=/*#__PURE__*/function(){function Toolbar(_options,eventBus,_l10n){_classCallCheck(this,Toolbar);_classPrivateMethodInitSpec(this,_adjustScaleWidth);_classPrivateMethodInitSpec(this,_updateUIState);_classPrivateMethodInitSpec(this,_bindEditorToolsListener);_classPrivateMethodInitSpec(this,_bindListeners);_classPrivateFieldInitSpec(this,_wasLocalized,{writable:true,value:false});this.toolbar=_options.container;this.eventBus=eventBus;this.l10n=_l10n;this.buttons=[{element:_options.previous,eventName:"previouspage"},{element:_options.next,eventName:"nextpage"},{element:_options.zoomIn,eventName:"zoomin"},{element:_options.zoomOut,eventName:"zoomout"},{element:_options.print,eventName:"print"},{element:_options.presentationModeButton,eventName:"presentationmode"},{element:_options.download,eventName:"download"},{element:_options.editorFreeTextButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){var classList=_options.editorFreeTextButton.classList;return classList.contains("toggled")?_pdfjsLib.AnnotationEditorType.NONE:_pdfjsLib.AnnotationEditorType.FREETEXT;}}},{element:_options.editorInkButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){var classList=_options.editorInkButton.classList;return classList.contains("toggled")?_pdfjsLib.AnnotationEditorType.NONE:_pdfjsLib.AnnotationEditorType.INK;}}},{element:_options.editorStampButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){var classList=_options.editorStampButton.classList;return classList.contains("toggled")?_pdfjsLib.AnnotationEditorType.NONE:_pdfjsLib.AnnotationEditorType.STAMP;}}}];this.buttons.push({element:_options.openFile,eventName:"openfile"});this.items={numPages:_options.numPages,pageNumber:_options.pageNumber,scaleSelect:_options.scaleSelect,customScaleOption:_options.customScaleOption,previous:_options.previous,next:_options.next,zoomIn:_options.zoomIn,zoomOut:_options.zoomOut};_classPrivateMethodGet(this,_bindListeners,_bindListeners2).call(this,_options);this.reset();}_createClass(Toolbar,[{key:"setPageNumber",value:function setPageNumber(pageNumber,pageLabel){this.pageNumber=pageNumber;this.pageLabel=pageLabel;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,false);}},{key:"setPagesCount",value:function setPagesCount(pagesCount,hasPageLabels){this.pagesCount=pagesCount;this.hasPageLabels=hasPageLabels;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,true);}},{key:"setPageScale",value:function setPageScale(pageScaleValue,pageScale){this.pageScaleValue=(pageScaleValue||pageScale).toString();this.pageScale=pageScale;_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,false);}},{key:"reset",value:function reset(){this.pageNumber=0;this.pageLabel=null;this.hasPageLabels=false;this.pagesCount=0;var defaultZoomOption=PDFViewerApplicationOptions.get('defaultZoomValue');if(defaultZoomOption){this.pageScaleValue=defaultZoomOption;if(!!Number(defaultZoomOption)){this.pageScale=Number(defaultZoomOption);}}else{this.pageScaleValue=_ui_utils.DEFAULT_SCALE_VALUE;this.pageScale=_ui_utils.DEFAULT_SCALE;}_classPrivateMethodGet(this,_updateUIState,_updateUIState2).call(this,true);this.updateLoadingIndicatorState();this.eventBus.dispatch("toolbarreset",{source:this});}},{key:"updateLoadingIndicatorState",value:function updateLoadingIndicatorState(){var loading=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var pageNumber=this.items.pageNumber;pageNumber.classList.toggle(PAGE_NUMBER_LOADING_INDICATOR,loading);}}]);return Toolbar;}();exports.Toolbar=Toolbar;function _bindListeners2(options){var _this=this;var _this$items=this.items,pageNumber=_this$items.pageNumber,scaleSelect=_this$items.scaleSelect;var self=this;var _iterator=_createForOfIteratorHelper(this.buttons),_step;try{var _loop=function _loop(){var _step$value=_step.value,element=_step$value.element,eventName=_step$value.eventName,eventDetails=_step$value.eventDetails;element===null||element===void 0?void 0:element.addEventListener("click",function(evt){if(eventName!==null){_this.eventBus.dispatch(eventName,_objectSpread({source:_this},eventDetails));}});};for(_iterator.s();!(_step=_iterator.n()).done;){_loop();}}catch(err){_iterator.e(err);}finally{_iterator.f();}pageNumber.addEventListener("click",function(){this.select();});pageNumber.addEventListener("change",function(){self.eventBus.dispatch("pagenumberchanged",{source:self,value:this.value});});scaleSelect.addEventListener("change",function(){if(this.value==="custom"){return;}self.eventBus.dispatch("scalechanged",{source:self,value:this.value});});scaleSelect.addEventListener("click",function(evt){var target=evt.target;if(this.value===self.pageScaleValue&&target.tagName.toUpperCase()==="OPTION"){this.blur();}});scaleSelect.oncontextmenu=_ui_utils.noContextMenuHandler;this.eventBus._on("localized",function(){_classPrivateFieldSet(_this,_wasLocalized,true);_classPrivateMethodGet(_this,_adjustScaleWidth,_adjustScaleWidth2).call(_this);_classPrivateMethodGet(_this,_updateUIState,_updateUIState2).call(_this,true);});_classPrivateMethodGet(this,_bindEditorToolsListener,_bindEditorToolsListener2).call(this,options);}function _bindEditorToolsListener2(_ref){var _this2=this;var editorFreeTextButton=_ref.editorFreeTextButton,editorFreeTextParamsToolbar=_ref.editorFreeTextParamsToolbar,editorInkButton=_ref.editorInkButton,editorInkParamsToolbar=_ref.editorInkParamsToolbar,editorStampButton=_ref.editorStampButton,editorStampParamsToolbar=_ref.editorStampParamsToolbar;var editorModeChanged=function editorModeChanged(_ref2){var mode=_ref2.mode;(0,_ui_utils.toggleCheckedBtn)(editorFreeTextButton,mode===_pdfjsLib.AnnotationEditorType.FREETEXT,editorFreeTextParamsToolbar);(0,_ui_utils.toggleCheckedBtn)(editorInkButton,mode===_pdfjsLib.AnnotationEditorType.INK,editorInkParamsToolbar);(0,_ui_utils.toggleCheckedBtn)(editorStampButton,mode===_pdfjsLib.AnnotationEditorType.STAMP,editorStampParamsToolbar);var isDisable=mode===_pdfjsLib.AnnotationEditorType.DISABLE;editorFreeTextButton.disabled=isDisable;editorInkButton.disabled=isDisable;editorStampButton.disabled=isDisable;};this.eventBus._on("annotationeditormodechanged",editorModeChanged);this.eventBus._on("toolbarreset",function(evt){if(evt.source===_this2){editorModeChanged({mode:_pdfjsLib.AnnotationEditorType.DISABLE});}});}function _updateUIState2(){var resetNumPages=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!_classPrivateFieldGet(this,_wasLocalized)){return;}var pageNumber=this.pageNumber,pagesCount=this.pagesCount,pageScaleValue=this.pageScaleValue,pageScale=this.pageScale,items=this.items;if(resetNumPages){if(this.hasPageLabels){items.pageNumber.type="text";}else{items.pageNumber.type="number";this.l10n.get("of_pages",{pagesCount:pagesCount}).then(function(msg){items.numPages.textContent=msg;});}items.pageNumber.max=pagesCount;}if(this.hasPageLabels){items.pageNumber.value=this.pageLabel;this.l10n.get("page_of_pages",{pageNumber:pageNumber,pagesCount:pagesCount}).then(function(msg){items.numPages.textContent=msg;});}else{items.pageNumber.value=pageNumber;}items.previous.disabled=pageNumber<=1;items.next.disabled=pageNumber>=pagesCount;items.zoomOut.disabled=pageScale<=_ui_utils.MIN_SCALE;items.zoomIn.disabled=pageScale>=_ui_utils.MAX_SCALE;this.l10n.get("page_scale_percent",{scale:Math.round(pageScale*10000)/100}).then(function(msg){var predefinedValueFound=false;if(items.scaleSelect.options){var _iterator2=_createForOfIteratorHelper(items.scaleSelect.options),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var option=_step2.value;if(option.value!==pageScaleValue){option.selected=false;continue;}option.selected=true;predefinedValueFound=true;}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}if(!predefinedValueFound){items.customScaleOption.textContent=msg;items.customScaleOption.selected=true;}});this.eventBus.dispatch("updateuistate",{source:this,widget:"Toolbar",pageNumber:pageNumber,pagesCount:pagesCount,pageScaleValue:pageScaleValue,pageScale:pageScale});}function _adjustScaleWidth2(){return _adjustScaleWidth3.apply(this,arguments);}function _adjustScaleWidth3(){_adjustScaleWidth3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var items,l10n,predefinedValuesPromise,style,scaleSelectWidth,canvas,options,ctx,maxWidth,_iterator3,_step3,predefinedValue,_ctx$measureText,width,container;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:items=this.items,l10n=this.l10n;predefinedValuesPromise=Promise.all([l10n.get("page_scale_auto"),l10n.get("page_scale_actual"),l10n.get("page_scale_fit"),l10n.get("page_scale_width")]);_context.next=4;return _ui_utils.animationStarted;case 4:style=getComputedStyle(items.scaleSelect);scaleSelectWidth=parseFloat(style.getPropertyValue("--scale-select-width"));canvas=document.createElement("canvas");options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true,alpha:false}:{alpha:false};ctx=canvas.getContext("2d",options);ctx.font="".concat(style.fontSize," ").concat(style.fontFamily);maxWidth=0;_context.t0=_createForOfIteratorHelper;_context.next=14;return predefinedValuesPromise;case 14:_context.t1=_context.sent;_iterator3=(0,_context.t0)(_context.t1);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){predefinedValue=_step3.value;try{_ctx$measureText=ctx.measureText(predefinedValue),width=_ctx$measureText.width;if(width>maxWidth){maxWidth=width;}}catch(fingerprintIsBlockedException){}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}maxWidth+=0.3*scaleSelectWidth;if(maxWidth>scaleSelectWidth){container=items.scaleSelect.parentNode;container.style.setProperty("--scale-select-width","".concat(maxWidth,"px"));}canvas.width=0;canvas.height=0;case 21:case"end":return _context.stop();}},_callee,this);}));return _adjustScaleWidth3.apply(this,arguments);}

/***/ }),
/* 409 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(142);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.ViewHistory=void 0;__webpack_require__(187);__webpack_require__(188);__webpack_require__(179);__webpack_require__(115);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(88);__webpack_require__(126);__webpack_require__(138);var _app_options=__webpack_require__(288);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var DEFAULT_VIEW_HISTORY_CACHE_SIZE=20;var ViewHistory=/*#__PURE__*/function(){function ViewHistory(fingerprint){var _this=this;var cacheSize=arguments.length>1&&arguments[1]!==undefined?arguments[1]:DEFAULT_VIEW_HISTORY_CACHE_SIZE;_classCallCheck(this,ViewHistory);this.fingerprint=fingerprint;this.cacheSize=cacheSize;this._initializedPromise=this._readFromStorage().then(function(databaseStr){var database=JSON.parse(databaseStr||"{}");var index=-1;if(!Array.isArray(database.files)){database.files=[];}else{while(database.files.length>=_this.cacheSize){database.files.shift();}for(var i=0,ii=database.files.length;i<ii;i++){var branch=database.files[i];if(branch.fingerprint===_this.fingerprint){index=i;break;}}}if(index===-1){index=database.files.push({fingerprint:_this.fingerprint})-1;}_this.file=database.files[index];_this.database=database;});}_createClass(ViewHistory,[{key:"_writeToStorage",value:function(){var _writeToStorage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var databaseStr;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!_app_options.AppOptions.get("disableHistory")){_context.next=2;break;}return _context.abrupt("return");case 2:databaseStr=JSON.stringify(this.database);try{localStorage.setItem("pdfjs.history",databaseStr);}catch(safariSecurityException){}case 4:case"end":return _context.stop();}},_callee,this);}));function _writeToStorage(){return _writeToStorage2.apply(this,arguments);}return _writeToStorage;}()},{key:"_readFromStorage",value:function(){var _readFromStorage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!_app_options.AppOptions.get("disableHistory")){_context2.next=2;break;}return _context2.abrupt("return",undefined);case 2:_context2.prev=2;return _context2.abrupt("return",localStorage.getItem("pdfjs.history"));case 6:_context2.prev=6;_context2.t0=_context2["catch"](2);return _context2.abrupt("return",undefined);case 9:case"end":return _context2.stop();}},_callee2,null,[[2,6]]);}));function _readFromStorage(){return _readFromStorage2.apply(this,arguments);}return _readFromStorage;}()},{key:"set",value:function(){var _set=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(name,val){return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return this._initializedPromise;case 2:this.file[name]=val;return _context3.abrupt("return",this._writeToStorage());case 4:case"end":return _context3.stop();}},_callee3,this);}));function set(_x,_x2){return _set.apply(this,arguments);}return set;}()},{key:"setMultiple",value:function(){var _setMultiple=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(properties){var name;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return this._initializedPromise;case 2:for(name in properties){this.file[name]=properties[name];}return _context4.abrupt("return",this._writeToStorage());case 4:case"end":return _context4.stop();}},_callee4,this);}));function setMultiple(_x3){return _setMultiple.apply(this,arguments);}return setMultiple;}()},{key:"get",value:function(){var _get=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(name,defaultValue){var val;return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return this._initializedPromise;case 2:val=this.file[name];return _context5.abrupt("return",val!==undefined?val:defaultValue);case 4:case"end":return _context5.stop();}},_callee5,this);}));function get(_x4,_x5){return _get.apply(this,arguments);}return get;}()},{key:"getMultiple",value:function(){var _getMultiple=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(properties){var values,name,val;return _regeneratorRuntime().wrap(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return this._initializedPromise;case 2:values=Object.create(null);for(name in properties){val=this.file[name];values[name]=val!==undefined?val:properties[name];}return _context6.abrupt("return",values);case 5:case"end":return _context6.stop();}},_callee6,this);}));function getMultiple(_x6){return _getMultiple.apply(this,arguments);}return getMultiple;}()}]);return ViewHistory;}();exports.ViewHistory=ViewHistory;

/***/ }),
/* 410 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(142);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.BasePreferences=void 0;__webpack_require__(305);__webpack_require__(126);__webpack_require__(88);__webpack_require__(222);__webpack_require__(216);__webpack_require__(138);__webpack_require__(42);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);var _app_options=__webpack_require__(288);function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;}function _classPrivateFieldSet(receiver,privateMap,value){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"set");_classApplyDescriptorSet(receiver,descriptor,value);return value;}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorSet(receiver,descriptor,value){if(descriptor.set){descriptor.set.call(receiver,value);}else{if(!descriptor.writable){throw new TypeError("attempted to set read only private field");}descriptor.value=value;}}var _defaults=/*#__PURE__*/new WeakMap();var _prefs=/*#__PURE__*/new WeakMap();var _initializedPromise=/*#__PURE__*/new WeakMap();var BasePreferences=/*#__PURE__*/function(){function BasePreferences(){var _this=this;_classCallCheck(this,BasePreferences);_classPrivateFieldInitSpec(this,_defaults,{writable:true,value:Object.freeze({"annotationEditorMode":0,"annotationMode":2,"cursorToolOnLoad":0,"defaultZoomDelay":400,"defaultZoomValue":"","disablePageLabels":false,"enablePermissions":false,"enablePrintAutoRotate":true,"enableScripting":true,"enableStampEditor":true,"externalLinkTarget":0,"historyUpdateUrl":false,"ignoreDestinationZoom":false,"forcePageColors":false,"pageColorsBackground":"Canvas","pageColorsForeground":"CanvasText","pdfBugEnabled":false,"removePageBorders":false,"sidebarViewOnLoad":-1,"scrollModeOnLoad":-1,"spreadModeOnLoad":-1,"textLayerMode":1,"viewerCssTheme":0,"viewOnLoad":0,"disableAutoFetch":false,"disableFontFace":false,"disableRange":false,"disableStream":false,"enableXfa":true})});_classPrivateFieldInitSpec(this,_prefs,{writable:true,value:Object.create(null)});_classPrivateFieldInitSpec(this,_initializedPromise,{writable:true,value:null});if(this.constructor===BasePreferences){throw new Error("Cannot initialize BasePreferences.");}_classPrivateFieldSet(this,_initializedPromise,this._readFromStorage(_classPrivateFieldGet(this,_defaults)).then(function(prefs){for(var name in _classPrivateFieldGet(_this,_defaults)){var prefValue=prefs===null||prefs===void 0?void 0:prefs[name];if(_typeof(prefValue)===_typeof(_classPrivateFieldGet(_this,_defaults)[name])){_classPrivateFieldGet(_this,_prefs)[name]=prefValue;}}}));}_createClass(BasePreferences,[{key:"_writeToStorage",value:function(){var _writeToStorage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(prefObj){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:throw new Error("Not implemented: _writeToStorage");case 1:case"end":return _context.stop();}},_callee);}));function _writeToStorage(_x){return _writeToStorage2.apply(this,arguments);}return _writeToStorage;}()},{key:"_readFromStorage",value:function(){var _readFromStorage2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(prefObj){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:throw new Error("Not implemented: _readFromStorage");case 1:case"end":return _context2.stop();}},_callee2);}));function _readFromStorage(_x2){return _readFromStorage2.apply(this,arguments);}return _readFromStorage;}()},{key:"reset",value:function(){var _reset=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _this2=this;var prefs;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return _classPrivateFieldGet(this,_initializedPromise);case 2:prefs=_classPrivateFieldGet(this,_prefs);_classPrivateFieldSet(this,_prefs,Object.create(null));return _context3.abrupt("return",this._writeToStorage(_classPrivateFieldGet(this,_defaults)).catch(function(reason){_classPrivateFieldSet(_this2,_prefs,prefs);throw reason;}));case 5:case"end":return _context3.stop();}},_callee3,this);}));function reset(){return _reset.apply(this,arguments);}return reset;}()},{key:"set",value:function(){var _set=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(name,value){var _this3=this;var defaultValue,prefs,valueType,defaultType;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return _classPrivateFieldGet(this,_initializedPromise);case 2:defaultValue=_classPrivateFieldGet(this,_defaults)[name],prefs=_classPrivateFieldGet(this,_prefs);if(!(defaultValue===undefined)){_context4.next=7;break;}throw new Error("Set preference: \"".concat(name,"\" is undefined."));case 7:if(!(value===undefined)){_context4.next=9;break;}throw new Error("Set preference: no value is specified.");case 9:valueType=_typeof(value),defaultType=_typeof(defaultValue);if(!(valueType!==defaultType)){_context4.next=18;break;}if(!(valueType==="number"&&defaultType==="string")){_context4.next=15;break;}value=value.toString();_context4.next=16;break;case 15:throw new Error("Set preference: \"".concat(value,"\" is a ").concat(valueType,", expected a ").concat(defaultType,"."));case 16:_context4.next=20;break;case 18:if(!(valueType==="number"&&!Number.isInteger(value))){_context4.next=20;break;}throw new Error("Set preference: \"".concat(value,"\" must be an integer."));case 20:_classPrivateFieldGet(this,_prefs)[name]=value;return _context4.abrupt("return",this._writeToStorage(_classPrivateFieldGet(this,_prefs)).catch(function(reason){_classPrivateFieldSet(_this3,_prefs,prefs);throw reason;}));case 22:case"end":return _context4.stop();}},_callee4,this);}));function set(_x3,_x4){return _set.apply(this,arguments);}return set;}()},{key:"get",value:function(){var _get=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(name){var _classPrivateFieldGet2;var defaultValue;return _regeneratorRuntime().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return _classPrivateFieldGet(this,_initializedPromise);case 2:defaultValue=_classPrivateFieldGet(this,_defaults)[name];if(!(defaultValue===undefined)){_context5.next=5;break;}throw new Error("Get preference: \"".concat(name,"\" is undefined."));case 5:return _context5.abrupt("return",(_classPrivateFieldGet2=_classPrivateFieldGet(this,_prefs)[name])!==null&&_classPrivateFieldGet2!==void 0?_classPrivateFieldGet2:defaultValue);case 6:case"end":return _context5.stop();}},_callee5,this);}));function get(_x5){return _get.apply(this,arguments);}return get;}()},{key:"getAll",value:function(){var _getAll=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var obj,name,_classPrivateFieldGet3;return _regeneratorRuntime().wrap(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return _classPrivateFieldGet(this,_initializedPromise);case 2:obj=Object.create(null);for(name in _classPrivateFieldGet(this,_defaults)){obj[name]=(_classPrivateFieldGet3=_classPrivateFieldGet(this,_prefs)[name])!==null&&_classPrivateFieldGet3!==void 0?_classPrivateFieldGet3:_classPrivateFieldGet(this,_defaults)[name];}return _context6.abrupt("return",obj);case 5:case"end":return _context6.stop();}},_callee6,this);}));function getAll(){return _getAll.apply(this,arguments);}return getAll;}()}]);return BasePreferences;}();exports.BasePreferences=BasePreferences;

/***/ }),
/* 411 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(138);__webpack_require__(1);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.DownloadManager=void 0;__webpack_require__(126);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(283);__webpack_require__(95);__webpack_require__(198);__webpack_require__(225);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);var _pdfjsLib=__webpack_require__(286);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _classPrivateFieldInitSpec(obj,privateMap,value){_checkPrivateRedeclaration(obj,privateMap);privateMap.set(obj,value);}function _checkPrivateRedeclaration(obj,privateCollection){if(privateCollection.has(obj)){throw new TypeError("Cannot initialize the same private elements twice on an object");}}function _classPrivateFieldGet(receiver,privateMap){var descriptor=_classExtractFieldDescriptor(receiver,privateMap,"get");return _classApplyDescriptorGet(receiver,descriptor);}function _classExtractFieldDescriptor(receiver,privateMap,action){if(!privateMap.has(receiver)){throw new TypeError("attempted to "+action+" private field on non-instance");}return privateMap.get(receiver);}function _classApplyDescriptorGet(receiver,descriptor){if(descriptor.get){return descriptor.get.call(receiver);}return descriptor.value;};function _download(blobUrl,filename){var a=document.createElement("a");if(!a.click){throw new Error('DownloadManager: "a.click()" is not supported.');}a.href=blobUrl;a.target="_parent";if("download"in a){a.download=filename;}(document.body||document.documentElement).append(a);a.click();a.remove();}var _openBlobUrls=/*#__PURE__*/new WeakMap();var DownloadManager=/*#__PURE__*/function(){function DownloadManager(){_classCallCheck(this,DownloadManager);_classPrivateFieldInitSpec(this,_openBlobUrls,{writable:true,value:new WeakMap()});}_createClass(DownloadManager,[{key:"downloadUrl",value:function downloadUrl(url,filename,_options){if(!(0,_pdfjsLib.createValidAbsoluteUrl)(url,"http://example.com")){globalThis.ngxConsole.error("downloadUrl - not a valid URL: ".concat(url));return;}_download(url+"#pdfjs.action=download",filename);}},{key:"downloadData",value:function downloadData(data,filename,contentType){var blobUrl=URL.createObjectURL(new Blob([data],{type:contentType}));_download(blobUrl,filename);}},{key:"openOrDownloadData",value:function openOrDownloadData(element,data,filename){var isPdfData=(0,_pdfjsLib.isPdfFile)(filename);var contentType=isPdfData?"application/pdf":"";if(isPdfData){var blobUrl=_classPrivateFieldGet(this,_openBlobUrls).get(element);if(!blobUrl){blobUrl=URL.createObjectURL(new Blob([data],{type:contentType}));_classPrivateFieldGet(this,_openBlobUrls).set(element,blobUrl);}try{window.open(blobUrl);return true;}catch(ex){globalThis.ngxConsole.error("openOrDownloadData: ".concat(ex));URL.revokeObjectURL(blobUrl);_classPrivateFieldGet(this,_openBlobUrls).delete(element);}}this.downloadData(data,filename,contentType);return false;}},{key:"download",value:function download(blob,url,filename,_options){var blobUrl=URL.createObjectURL(blob);_download(blobUrl,filename);}}]);return DownloadManager;}();exports.DownloadManager=DownloadManager;

/***/ }),
/* 412 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);Object.defineProperty(exports, "__esModule", ({value:true}));exports.GenericL10n=void 0;__webpack_require__(88);__webpack_require__(142);__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(126);__webpack_require__(138);__webpack_require__(413);var _l10n_utils=__webpack_require__(328);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}var PARTIAL_LANG_CODES={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};function fixupLangCode(langCode){return PARTIAL_LANG_CODES[langCode===null||langCode===void 0?void 0:langCode.toLowerCase()]||langCode;}var GenericL10n=/*#__PURE__*/function(){function GenericL10n(lang){_classCallCheck(this,GenericL10n);var _document=document,webL10n=_document.webL10n;this._lang=lang;this._ready=new Promise(function(resolve,reject){webL10n.setLanguage(fixupLangCode(lang),function(){resolve(webL10n);});});}_createClass(GenericL10n,[{key:"getLanguage",value:function(){var _getLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l10n;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return this._ready;case 2:l10n=_context.sent;return _context.abrupt("return",l10n.getLanguage());case 4:case"end":return _context.stop();}},_callee,this);}));function getLanguage(){return _getLanguage.apply(this,arguments);}return getLanguage;}()},{key:"getDirection",value:function(){var _getDirection=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var l10n;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return this._ready;case 2:l10n=_context2.sent;return _context2.abrupt("return",l10n.getDirection());case 4:case"end":return _context2.stop();}},_callee2,this);}));function getDirection(){return _getDirection.apply(this,arguments);}return getDirection;}()},{key:"get",value:function(){var _get=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(key){var args,fallback,l10n,_args3=arguments;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:args=_args3.length>1&&_args3[1]!==undefined?_args3[1]:null;fallback=_args3.length>2&&_args3[2]!==undefined?_args3[2]:(0,_l10n_utils.getL10nFallback)(key,args);_context3.next=4;return this._ready;case 4:l10n=_context3.sent;return _context3.abrupt("return",l10n.get(key,args,fallback));case 6:case"end":return _context3.stop();}},_callee3,this);}));function get(_x){return _get.apply(this,arguments);}return get;}()},{key:"translate",value:function(){var _translate=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(element){var l10n;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return this._ready;case 2:l10n=_context4.sent;return _context4.abrupt("return",l10n.translate(element));case 4:case"end":return _context4.stop();}},_callee4,this);}));function translate(_x2){return _translate.apply(this,arguments);}return translate;}()}]);return GenericL10n;}();exports.GenericL10n=GenericL10n;

/***/ }),
/* 413 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

__webpack_require__(187);__webpack_require__(188);__webpack_require__(198);__webpack_require__(206);__webpack_require__(248);__webpack_require__(414);__webpack_require__(415);__webpack_require__(219);__webpack_require__(292);__webpack_require__(327);document.webL10n=function(window,document){var gL10nData={};var gTextData='';var gTextProp='textContent';var gLanguage='';var gMacros={};var gReadyState='loading';var gAsyncResourceLoading=true;function getL10nResourceLinks(){return document.querySelectorAll('link[type="application/l10n"]');}function getL10nDictionary(){var script=document.querySelector('script[type="application/l10n"]');return script?JSON.parse(script.innerHTML):null;}function getTranslatableChildren(element){return element?element.querySelectorAll("*[data-l10n-id]"):[];}function getL10nAttributes(element){if(!element)return{};var l10nId=element.getAttribute("data-l10n-id");var l10nArgs=element.getAttribute("data-l10n-args");var args={};if(l10nArgs){try{args=JSON.parse(l10nArgs);}catch(e){var PDFViewerApplicationOptions=window.PDFViewerApplicationOptions;if(!PDFViewerApplicationOptions||PDFViewerApplicationOptions.get("verbosity")>0){globalThis.ngxConsole.warn("could not parse arguments for #"+l10nId);}}}return{id:l10nId,args:args};}function fireL10nReadyEvent(lang){var evtObject=document.createEvent("Event");evtObject.initEvent("localized",true,false);evtObject.language=lang;document.dispatchEvent(evtObject);}function xhrLoadText(url,onSuccess,onFailure){onSuccess=onSuccess||function _onSuccess(data){};onFailure=onFailure||function _onFailure(){};var xhr=new XMLHttpRequest();xhr.open("GET",url,gAsyncResourceLoading);if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=utf-8");}xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200||xhr.status===0){onSuccess(xhr.responseText);}else{onFailure();}}};xhr.onerror=onFailure;xhr.ontimeout=onFailure;try{xhr.send(null);}catch(e){onFailure();}}function parseResource(href,lang,successCallback,failureCallback){var baseURL=href.replace(/[^\/]*$/,"")||"./";function evalString(text){if(text.lastIndexOf("\\")<0)return text;return text.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'");}function parseProperties(text,parsedPropertiesCallback){var dictionary={};var reBlank=/^\s*|\s*$/;var reComment=/^\s*#|^\s*$/;var reSection=/^\s*\[(.*)\]\s*$/;var reImport=/^\s*@import\s+url\((.*)\)\s*$/i;var reSplit=/^([^=\s]*)\s*=\s*(.+)$/;function parseRawLines(rawText,extendedSyntax,parsedRawLinesCallback){var entries=rawText.replace(reBlank,"").split(/[\r\n]+/);var currentLang="*";var genericLang=lang.split("-",1)[0];var skipLang=false;var match="";var languagefound=false;function nextEntry(){var genericMatch=undefined;while(true){if(!entries.length&&genericMatch){if(!languagefound){loadImport(genericMatch,nextEntry);}else{nextEntry();}return;}else if(!entries.length){parsedRawLinesCallback();return;}var line=entries.shift();if(reComment.test(line))continue;if(extendedSyntax){match=reSection.exec(line);if(match){currentLang=match[1].toLowerCase();skipLang=currentLang!=="*"&&currentLang!==lang&&currentLang!==genericLang;continue;}else if(skipLang){continue;}match=reImport.exec(line);if(match){if(currentLang==="*"||currentLang===lang){loadImport(baseURL+match[1],nextEntry);languagefound=true;return;}else{genericMatch=baseURL+match[1];}}}var tmp=line.match(reSplit);if(tmp&&tmp.length==3){dictionary[tmp[1]]=evalString(tmp[2]);}}}nextEntry();}function loadImport(url,callback){xhrLoadText(url,function(content){parseRawLines(content,false,callback);},function(){var PDFViewerApplicationOptions=window.PDFViewerApplicationOptions;if(!PDFViewerApplicationOptions||PDFViewerApplicationOptions.get("verbosity")>0){globalThis.ngxConsole.warn(url+" not found.");}callback();});}parseRawLines(text,true,function(){parsedPropertiesCallback(dictionary);});}xhrLoadText(href,function(response){gTextData+=response;parseProperties(response,function(data){for(var key in data){var id,prop,index=key.lastIndexOf(".");if(index>0){id=key.substring(0,index);prop=key.substring(index+1);}else{id=key;prop=gTextProp;}if(!gL10nData[id]){gL10nData[id]={};}gL10nData[id][prop]=data[key];}if(successCallback){successCallback();}});},failureCallback);}function loadLocale(lang,callback){var originalCaseLang=lang;if(lang){lang=lang.toLowerCase();}callback=callback||function _callback(){};clear();gLanguage=lang;var langLinks=getL10nResourceLinks();var langCount=langLinks.length;if(langCount===0){var dict=getL10nDictionary();if(dict&&dict.locales&&dict.default_locale){globalThis.ngxConsole.log("The PDF viewer uses the pre-compiled language bundle stored in the HTML page.");gL10nData=dict.locales[originalCaseLang];if(!gL10nData){var defaultLocale=dict.default_locale.toLowerCase();for(var anyCaseLang in dict.locales){originalCaseLang=anyCaseLang;anyCaseLang=anyCaseLang.toLowerCase();if(anyCaseLang===lang){gL10nData=dict.locales[originalCaseLang];break;}else if(anyCaseLang===defaultLocale){gL10nData=dict.locales[originalCaseLang];}}}callback();}else{globalThis.ngxConsole.log("Could not load the translation files for the PDF viewer. Check the flag useBrowserLocale, check the locales subfolder of the assets folder, or add the locale definition to the index.html");}fireL10nReadyEvent(lang);gReadyState="complete";return;}var onResourceLoaded=null;var gResourceCount=0;onResourceLoaded=function onResourceLoaded(){gResourceCount++;if(gResourceCount>=langCount){callback();fireL10nReadyEvent(lang);gReadyState="complete";}};function L10nResourceLink(link){var href=link.href;this.load=function(lang,callback){parseResource(href,lang,callback,function(){var PDFViewerApplicationOptions=window.PDFViewerApplicationOptions;if(!PDFViewerApplicationOptions||PDFViewerApplicationOptions.get("verbosity")>0){globalThis.ngxConsole.warn(href+" not found.");globalThis.ngxConsole.warn('"'+lang+'" resource not found');}gLanguage="";callback();});};}for(var i=0;i<langCount;i++){var resource=new L10nResourceLink(langLinks[i]);resource.load(lang,onResourceLoaded);}}function clear(){gL10nData={};gTextData="";gLanguage="";}function getPluralRules(lang){var locales2rules={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function isIn(n,list){return list.indexOf(n)!==-1;}function isBetween(n,start,end){return start<=n&&n<=end;}var pluralRules={"0":function _(n){return"other";},"1":function _(n){if(isBetween(n%100,3,10))return"few";if(n===0)return"zero";if(isBetween(n%100,11,99))return"many";if(n==2)return"two";if(n==1)return"one";return"other";},"2":function _(n){if(n!==0&&n%10===0)return"many";if(n==2)return"two";if(n==1)return"one";return"other";},"3":function _(n){if(n==1)return"one";return"other";},"4":function _(n){if(isBetween(n,0,1))return"one";return"other";},"5":function _(n){if(isBetween(n,0,2)&&n!=2)return"one";return"other";},"6":function _(n){if(n===0)return"zero";if(n%10==1&&n%100!=11)return"one";return"other";},"7":function _(n){if(n==2)return"two";if(n==1)return"one";return"other";},"8":function _(n){if(isBetween(n,3,6))return"few";if(isBetween(n,7,10))return"many";if(n==2)return"two";if(n==1)return"one";return"other";},"9":function _(n){if(n===0||n!=1&&isBetween(n%100,1,19))return"few";if(n==1)return"one";return"other";},"10":function _(n){if(isBetween(n%10,2,9)&&!isBetween(n%100,11,19))return"few";if(n%10==1&&!isBetween(n%100,11,19))return"one";return"other";},"11":function _(n){if(isBetween(n%10,2,4)&&!isBetween(n%100,12,14))return"few";if(n%10===0||isBetween(n%10,5,9)||isBetween(n%100,11,14))return"many";if(n%10==1&&n%100!=11)return"one";return"other";},"12":function _(n){if(isBetween(n,2,4))return"few";if(n==1)return"one";return"other";},"13":function _(n){if(isBetween(n%10,2,4)&&!isBetween(n%100,12,14))return"few";if(n!=1&&isBetween(n%10,0,1)||isBetween(n%10,5,9)||isBetween(n%100,12,14))return"many";if(n==1)return"one";return"other";},"14":function _(n){if(isBetween(n%100,3,4))return"few";if(n%100==2)return"two";if(n%100==1)return"one";return"other";},"15":function _(n){if(n===0||isBetween(n%100,2,10))return"few";if(isBetween(n%100,11,19))return"many";if(n==1)return"one";return"other";},"16":function _(n){if(n%10==1&&n!=11)return"one";return"other";},"17":function _(n){if(n==3)return"few";if(n===0)return"zero";if(n==6)return"many";if(n==2)return"two";if(n==1)return"one";return"other";},"18":function _(n){if(n===0)return"zero";if(isBetween(n,0,2)&&n!==0&&n!=2)return"one";return"other";},"19":function _(n){if(isBetween(n,2,10))return"few";if(isBetween(n,0,1))return"one";return"other";},"20":function _(n){if((isBetween(n%10,3,4)||n%10==9)&&!(isBetween(n%100,10,19)||isBetween(n%100,70,79)||isBetween(n%100,90,99)))return"few";if(n%1000000===0&&n!==0)return"many";if(n%10==2&&!isIn(n%100,[12,72,92]))return"two";if(n%10==1&&!isIn(n%100,[11,71,91]))return"one";return"other";},"21":function _(n){if(n===0)return"zero";if(n==1)return"one";return"other";},"22":function _(n){if(isBetween(n,0,1)||isBetween(n,11,99))return"one";return"other";},"23":function _(n){if(isBetween(n%10,1,2)||n%20===0)return"one";return"other";},"24":function _(n){if(isBetween(n,3,10)||isBetween(n,13,19))return"few";if(isIn(n,[2,12]))return"two";if(isIn(n,[1,11]))return"one";return"other";}};var index=locales2rules[lang.replace(/-.*$/,"")];if(!(index in pluralRules)){var PDFViewerApplicationOptions=window.PDFViewerApplicationOptions;if(!PDFViewerApplicationOptions||PDFViewerApplicationOptions.get("verbosity")>0){globalThis.ngxConsole.warn("plural form unknown for ["+lang+"]");}return function(){return"other";};}return pluralRules[index];}gMacros.plural=function(str,param,key,prop){var n=parseFloat(param);if(isNaN(n))return str;if(prop!=gTextProp)return str;if(!gMacros._pluralRules){gMacros._pluralRules=getPluralRules(gLanguage);}var index="["+gMacros._pluralRules(n)+"]";if(n===0&&key+"[zero]"in gL10nData){str=gL10nData[key+"[zero]"][prop];}else if(n==1&&key+"[one]"in gL10nData){str=gL10nData[key+"[one]"][prop];}else if(n==2&&key+"[two]"in gL10nData){str=gL10nData[key+"[two]"][prop];}else if(key+index in gL10nData){str=gL10nData[key+index][prop];}else if(key+"[other]"in gL10nData){str=gL10nData[key+"[other]"][prop];}return str;};function getL10nData(key,args,fallback){var data=gL10nData[key];if(!data){var PDFViewerApplicationOptions=window.PDFViewerApplicationOptions;if(!PDFViewerApplicationOptions||PDFViewerApplicationOptions.get("verbosity")>0){globalThis.ngxConsole.warn("Translation for the key #"+key+" is missing.");}if(!fallback){return null;}data=fallback;}var rv={};for(var prop in data){var str=data[prop];str=substIndexes(str,args,key,prop);str=substArguments(str,args,key);rv[prop]=str;}return rv;}function substIndexes(str,args,key,prop){var reIndex=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/;var reMatch=reIndex.exec(str);if(!reMatch||!reMatch.length)return str;var macroName=reMatch[1];var paramName=reMatch[2];var param;if(args&&paramName in args){param=args[paramName];}else if(paramName in gL10nData){param=gL10nData[paramName];}if(macroName in gMacros){var macro=gMacros[macroName];str=macro(str,param,key,prop);}return str;}function substArguments(str,args,key){var reArgs=/\{\{\s*(.+?)\s*\}\}/g;return str.replace(reArgs,function(matched_text,arg){if(args&&arg in args){return args[arg];}if(arg in gL10nData){return gL10nData[arg];}globalThis.ngxConsole.log("argument {{"+arg+"}} for #"+key+" is undefined.");return matched_text;});}function translateElement(element){var l10n=getL10nAttributes(element);if(!l10n.id)return;var data=getL10nData(l10n.id,l10n.args);if(!data){var PDFViewerApplicationOptions=window.PDFViewerApplicationOptions;if(!PDFViewerApplicationOptions||PDFViewerApplicationOptions.get("verbosity")>0){globalThis.ngxConsole.warn("#"+l10n.id+" is undefined.");}return;}if(data[gTextProp]){if(getChildElementCount(element)===0){element[gTextProp]=data[gTextProp];}else{var children=element.childNodes;var found=false;for(var i=0,l=children.length;i<l;i++){if(children[i].nodeType===3&&/\S/.test(children[i].nodeValue)){if(found){children[i].nodeValue="";}else{children[i].nodeValue=data[gTextProp];found=true;}}}if(!found){var textNode=document.createTextNode(data[gTextProp]);element.prepend(textNode);}}delete data[gTextProp];}for(var k in data){element[k]=data[k];}}function getChildElementCount(element){if(element.children){return element.children.length;}if(typeof element.childElementCount!=="undefined"){return element.childElementCount;}var count=0;for(var i=0;i<element.childNodes.length;i++){count+=element.nodeType===1?1:0;}return count;}function translateFragment(element){element=element||document.documentElement;var children=getTranslatableChildren(element);var elementCount=children.length;for(var i=0;i<elementCount;i++){translateElement(children[i]);}translateElement(element);}return{get:function get(key,args,fallbackString){var index=key.lastIndexOf(".");var prop=gTextProp;if(index>0){prop=key.substring(index+1);key=key.substring(0,index);}var fallback;if(fallbackString){fallback={};fallback[prop]=fallbackString;}var data=getL10nData(key,args,fallback);if(data&&prop in data){return data[prop];}return"{{"+key+"}}";},getData:function getData(){return gL10nData;},getText:function getText(){return gTextData;},getLanguage:function getLanguage(){return gLanguage;},setLanguage:function setLanguage(lang,callback){loadLocale(lang,function(){if(callback)callback();});},getDirection:function getDirection(){var rtlList=["ar","he","fa","ps","ur"];var shortCode=gLanguage.split("-",1)[0];return rtlList.indexOf(shortCode)>=0?"rtl":"ltr";},translate:translateFragment,getReadyState:function getReadyState(){return gReadyState;},ready:function ready(callback){if(!callback){return;}else if(gReadyState=="complete"||gReadyState=="interactive"){window.setTimeout(function(){callback();});}else if(document.addEventListener){document.addEventListener("localized",function once(){document.removeEventListener("localized",once);callback();});}}};}(window,document);

/***/ }),
/* 414 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var $ = __webpack_require__(67);
var lastIndexOf = __webpack_require__(375);
$({
 target: 'Array',
 proto: true,
 forced: lastIndexOf !== [].lastIndexOf
}, { lastIndexOf: lastIndexOf });

/***/ }),
/* 415 */
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {


var apply = __webpack_require__(116);
var call = __webpack_require__(34);
var uncurryThis = __webpack_require__(6);
var fixRegExpWellKnownSymbolLogic = __webpack_require__(213);
var anObject = __webpack_require__(31);
var isNullOrUndefined = __webpack_require__(11);
var isRegExp = __webpack_require__(202);
var requireObjectCoercible = __webpack_require__(10);
var speciesConstructor = __webpack_require__(147);
var advanceStringIndex = __webpack_require__(249);
var toLength = __webpack_require__(56);
var toString = __webpack_require__(94);
var getMethod = __webpack_require__(38);
var arraySlice = __webpack_require__(101);
var callRegExpExec = __webpack_require__(215);
var regexpExec = __webpack_require__(207);
var stickyHelpers = __webpack_require__(209);
var fails = __webpack_require__(8);
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var MAX_UINT32 = 0xFFFFFFFF;
var min = Math.min;
var $push = [].push;
var exec = uncurryThis(/./.exec);
var push = uncurryThis($push);
var stringSlice = uncurryThis(''.slice);
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
 var re = /(?:)/;
 var originalExec = re.exec;
 re.exec = function () {
  return originalExec.apply(this, arguments);
 };
 var result = 'ab'.split(re);
 return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
});
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
 var internalSplit;
 if ('abbc'.split(/(b)*/)[1] == 'c' || 'test'.split(/(?:)/, -1).length != 4 || 'ab'.split(/(?:ab)*/).length != 2 || '.'.split(/(.?)(.?)/).length != 4 || '.'.split(/()()/).length > 1 || ''.split(/.?/).length) {
  internalSplit = function (separator, limit) {
   var string = toString(requireObjectCoercible(this));
   var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
   if (lim === 0)
    return [];
   if (separator === undefined)
    return [string];
   if (!isRegExp(separator)) {
    return call(nativeSplit, string, separator, lim);
   }
   var output = [];
   var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : '');
   var lastLastIndex = 0;
   var separatorCopy = new RegExp(separator.source, flags + 'g');
   var match, lastIndex, lastLength;
   while (match = call(regexpExec, separatorCopy, string)) {
    lastIndex = separatorCopy.lastIndex;
    if (lastIndex > lastLastIndex) {
     push(output, stringSlice(string, lastLastIndex, match.index));
     if (match.length > 1 && match.index < string.length)
      apply($push, output, arraySlice(match, 1));
     lastLength = match[0].length;
     lastLastIndex = lastIndex;
     if (output.length >= lim)
      break;
    }
    if (separatorCopy.lastIndex === match.index)
     separatorCopy.lastIndex++;
   }
   if (lastLastIndex === string.length) {
    if (lastLength || !exec(separatorCopy, ''))
     push(output, '');
   } else
    push(output, stringSlice(string, lastLastIndex));
   return output.length > lim ? arraySlice(output, 0, lim) : output;
  };
 } else if ('0'.split(undefined, 0).length) {
  internalSplit = function (separator, limit) {
   return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
  };
 } else
  internalSplit = nativeSplit;
 return [
  function split(separator, limit) {
   var O = requireObjectCoercible(this);
   var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
   return splitter ? call(splitter, separator, O, limit) : call(internalSplit, toString(O), separator, limit);
  },
  function (string, limit) {
   var rx = anObject(this);
   var S = toString(string);
   var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
   if (res.done)
    return res.value;
   var C = speciesConstructor(rx, RegExp);
   var unicodeMatching = rx.unicode;
   var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (UNSUPPORTED_Y ? 'g' : 'y');
   var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
   var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
   if (lim === 0)
    return [];
   if (S.length === 0)
    return callRegExpExec(splitter, S) === null ? [S] : [];
   var p = 0;
   var q = 0;
   var A = [];
   while (q < S.length) {
    splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
    var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
    var e;
    if (z === null || (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p) {
     q = advanceStringIndex(S, q, unicodeMatching);
    } else {
     push(A, stringSlice(S, p, q));
     if (A.length === lim)
      return A;
     for (var i = 1; i <= z.length - 1; i++) {
      push(A, z[i]);
      if (A.length === lim)
       return A;
     }
     q = p = e;
    }
   }
   push(A, stringSlice(S, p));
   return A;
  }
 ];
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);

/***/ }),
/* 416 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(135);__webpack_require__(136);__webpack_require__(98);__webpack_require__(120);__webpack_require__(126);__webpack_require__(138);__webpack_require__(1);__webpack_require__(42);__webpack_require__(92);__webpack_require__(95);__webpack_require__(175);__webpack_require__(176);__webpack_require__(177);__webpack_require__(178);__webpack_require__(190);__webpack_require__(179);__webpack_require__(182);__webpack_require__(185);__webpack_require__(187);__webpack_require__(195);__webpack_require__(196);__webpack_require__(197);function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}Object.defineProperty(exports, "__esModule", ({value:true}));exports.GenericScripting=void 0;exports.docProperties=docProperties;__webpack_require__(88);__webpack_require__(142);var _pdfjsLib=__webpack_require__(286);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function define(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==_typeof(value)&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function value(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function reset(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function stop(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function dispatchException(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function abrupt(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function complete(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function finish(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function docProperties(_x){return _docProperties.apply(this,arguments);}function _docProperties(){_docProperties=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(pdfDocument){var url,baseUrl,_yield$pdfDocument$ge,info,metadata,contentDispositionFilename,contentLength,_yield$pdfDocument$ge2,length;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:url="",baseUrl=url.split("#")[0];_context4.next=3;return pdfDocument.getMetadata();case 3:_yield$pdfDocument$ge=_context4.sent;info=_yield$pdfDocument$ge.info;metadata=_yield$pdfDocument$ge.metadata;contentDispositionFilename=_yield$pdfDocument$ge.contentDispositionFilename;contentLength=_yield$pdfDocument$ge.contentLength;if(contentLength){_context4.next=14;break;}_context4.next=11;return pdfDocument.getDownloadInfo();case 11:_yield$pdfDocument$ge2=_context4.sent;length=_yield$pdfDocument$ge2.length;contentLength=length;case 14:return _context4.abrupt("return",_objectSpread(_objectSpread({},info),{},{baseURL:baseUrl,filesize:contentLength,filename:contentDispositionFilename||(0,_pdfjsLib.getPdfFilenameFromUrl)(url),metadata:metadata===null||metadata===void 0?void 0:metadata.getRaw(),authors:metadata===null||metadata===void 0?void 0:metadata.get("dc:creator"),numPages:pdfDocument.numPages,URL:url}));case 15:case"end":return _context4.stop();}},_callee4);}));return _docProperties.apply(this,arguments);}var GenericScripting=/*#__PURE__*/function(){function GenericScripting(sandboxBundleSrc){_classCallCheck(this,GenericScripting);this._ready=(0,_pdfjsLib.loadScript)(sandboxBundleSrc,true).then(function(){return window.pdfjsSandbox.QuickJSSandbox();});}_createClass(GenericScripting,[{key:"createSandbox",value:function(){var _createSandbox=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data){var sandbox;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return this._ready;case 2:sandbox=_context.sent;sandbox.create(data);case 4:case"end":return _context.stop();}},_callee,this);}));function createSandbox(_x2){return _createSandbox.apply(this,arguments);}return createSandbox;}()},{key:"dispatchEventInSandbox",value:function(){var _dispatchEventInSandbox=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event){var sandbox;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return this._ready;case 2:sandbox=_context2.sent;setTimeout(function(){return sandbox.dispatchEvent(event);},0);case 4:case"end":return _context2.stop();}},_callee2,this);}));function dispatchEventInSandbox(_x3){return _dispatchEventInSandbox.apply(this,arguments);}return dispatchEventInSandbox;}()},{key:"destroySandbox",value:function(){var _destroySandbox=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var sandbox;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return this._ready;case 2:sandbox=_context3.sent;sandbox.nukeSandbox();case 4:case"end":return _context3.stop();}},_callee3,this);}));function destroySandbox(){return _destroySandbox.apply(this,arguments);}return destroySandbox;}()}]);return GenericScripting;}();exports.GenericScripting=GenericScripting;

/***/ }),
/* 417 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(179);__webpack_require__(185);__webpack_require__(222);__webpack_require__(192);__webpack_require__(135);__webpack_require__(136);__webpack_require__(138);Object.defineProperty(exports, "__esModule", ({value:true}));exports.PDFPrintService=void 0;__webpack_require__(206);__webpack_require__(219);__webpack_require__(42);__webpack_require__(88);__webpack_require__(142);__webpack_require__(92);__webpack_require__(95);__webpack_require__(198);__webpack_require__(216);__webpack_require__(225);__webpack_require__(232);__webpack_require__(233);__webpack_require__(234);__webpack_require__(235);__webpack_require__(199);__webpack_require__(200);__webpack_require__(126);var _pdfjsLib=__webpack_require__(286);var _app=__webpack_require__(191);var _canvasSize=_interopRequireDefault(__webpack_require__(337));var _print_utils=__webpack_require__(418);var _util=__webpack_require__(339);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_x,_r,_arr=[],_n=!0,_d=!1;try{if(_x=(_i=_i.call(arr)).next,0===i){if(Object(_i)!==_i)return;_n=!1;}else for(;!(_n=(_s=_x.call(_i)).done)&&(_arr.push(_s.value),_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err;}finally{try{if(!_n&&null!=_i.return&&(_r=_i.return(),Object(_r)!==_r))return;}finally{if(_d)throw _e;}}return _arr;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}var activeService=null;var dialog=null;var overlayManager=null;function renderPage(activeServiceOnEntry,pdfDocument,pageNumber,size,printResolution,optionalContentConfigPromise,printAnnotationStoragePromise){var scratchCanvas=activeService.scratchCanvas;var PRINT_UNITS=printResolution/_pdfjsLib.PixelsPerInch.PDF;var scale=1;var canvasWidth=Math.floor(size.width*PRINT_UNITS);var canvasHeight=Math.floor(size.height*PRINT_UNITS);if(canvasWidth>=4096||canvasHeight>=4096){if(!_canvasSize.default.test({width:canvasWidth,height:canvasHeight})){var max=determineMaxDimensions();scale=Math.min(max/canvasWidth,max/canvasHeight)*0.95;}(0,_util.warn)("Page "+pageNumber+": Reduced the [printResolution] to "+Math.floor(printResolution*scale)+" because the browser can't render larger canvases. If you see blank page in the print preview, reduce [printResolution] manually to a lower value.");}PRINT_UNITS*=scale;scratchCanvas.width=Math.floor(size.width*PRINT_UNITS);scratchCanvas.height=Math.floor(size.height*PRINT_UNITS);var options=window.pdfDefaultOptions.activateWillReadFrequentlyFlag?{willReadFrequently:true}:undefined;var ctx=scratchCanvas.getContext("2d",options);ctx.save();ctx.fillStyle="rgb(255, 255, 255)";ctx.fillRect(0,0,scratchCanvas.width,scratchCanvas.height);ctx.restore();return Promise.all([pdfDocument.getPage(pageNumber),printAnnotationStoragePromise]).then(function(_ref){var _ref2=_slicedToArray(_ref,2),pdfPage=_ref2[0],printAnnotationStorage=_ref2[1];var renderContext={canvasContext:ctx,transform:[PRINT_UNITS,0,0,PRINT_UNITS,0,0],viewport:pdfPage.getViewport({scale:1,rotation:size.rotation}),intent:"print",annotationMode:_pdfjsLib.AnnotationMode.ENABLE_STORAGE,optionalContentConfigPromise:optionalContentConfigPromise,printAnnotationStorage:printAnnotationStorage};return pdfPage.render(renderContext).promise;});}function determineMaxDimensions(){var checklist=[4096,8192,10836,11180,11402,14188,16384];for(var _i2=0,_checklist=checklist;_i2<_checklist.length;_i2++){var width=_checklist[_i2];if(!_canvasSize.default.test({width:width+1,height:width+1})){return width;}}return 16384;}var PDFPrintService=/*#__PURE__*/function(){function PDFPrintService(pdfDocument,pagesOverview,printContainer,printResolution){var optionalContentConfigPromise=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;var printAnnotationStoragePromise=arguments.length>5&&arguments[5]!==undefined?arguments[5]:null;var l10n=arguments.length>6?arguments[6]:undefined;var eventBus=arguments.length>7?arguments[7]:undefined;_classCallCheck(this,PDFPrintService);this.pdfDocument=pdfDocument;this.pagesOverview=pagesOverview;this.printContainer=printContainer;this._printResolution=printResolution||150;this._optionalContentConfigPromise=optionalContentConfigPromise||pdfDocument.getOptionalContentConfig();this._printAnnotationStoragePromise=printAnnotationStoragePromise||Promise.resolve();this.l10n=l10n;this.currentPage=-1;this.scratchCanvas=document.createElement("canvas");this.eventBus=eventBus;}_createClass(PDFPrintService,[{key:"layout",value:function layout(){this.throwIfInactive();var body=document.querySelector("body");body.setAttribute("data-pdfjsprinting",true);var html=document.querySelector("html");html.setAttribute("data-pdfjsprinting",true);var _this$pagesOverview$=this.pagesOverview[0],width=_this$pagesOverview$.width,height=_this$pagesOverview$.height;var hasEqualPageSizes=this.pagesOverview.every(function(size){return size.width===width&&size.height===height;});if(!hasEqualPageSizes){globalThis.ngxConsole.warn("Not all pages have the same size. The printed result may be incorrect!");}this.pageStyleSheet=document.createElement("style");this.pageStyleSheet.textContent="@page { size: ".concat(width,"pt ").concat(height,"pt;}");body.append(this.pageStyleSheet);}},{key:"destroy",value:function destroy(){if(activeService!==this){return;}this.printContainer.textContent="";var body=document.querySelector("body");body.removeAttribute("data-pdfjsprinting");var html=document.querySelector("html");html.removeAttribute("data-pdfjsprinting");if(this.pageStyleSheet){this.pageStyleSheet.remove();this.pageStyleSheet=null;}this.scratchCanvas.width=this.scratchCanvas.height=0;this.scratchCanvas=null;activeService=null;ensureOverlay().then(function(){if(overlayManager.active===dialog){overlayManager.close(dialog);}});}},{key:"renderPages",value:function renderPages(){var _this=this;if(this.pdfDocument.isPureXfa){(0,_print_utils.getXfaHtmlForPrinting)(this.printContainer,this.pdfDocument);return Promise.resolve();}var pageCount=this.pagesOverview.length;var renderNextPage=function renderNextPage(resolve,reject){_this.throwIfInactive();while(true){++_this.currentPage;if(_this.currentPage>=pageCount){break;}if(!window.isInPDFPrintRange||window.isInPDFPrintRange(_this.currentPage)){break;}}if(_this.currentPage>=pageCount){renderProgress(window.filteredPageCount|pageCount,window.filteredPageCount|pageCount,_this.l10n,_this.eventBus);resolve();return;}var index=_this.currentPage;renderProgress(index,window.filteredPageCount|pageCount,_this.l10n,_this.eventBus);renderPage(_this,_this.pdfDocument,index+1,_this.pagesOverview[index],_this._printResolution,_this._optionalContentConfigPromise,_this._printAnnotationStoragePromise).then(_this.useRenderedPage.bind(_this)).then(function(){renderNextPage(resolve,reject);},reject);};return new Promise(renderNextPage);}},{key:"useRenderedPage",value:function useRenderedPage(){this.throwIfInactive();var img=document.createElement("img");var scratchCanvas=this.scratchCanvas;if("toBlob"in scratchCanvas){scratchCanvas.toBlob(function(blob){img.src=URL.createObjectURL(blob);});}else{img.src=scratchCanvas.toDataURL();}var wrapper=document.createElement("div");wrapper.className="printedPage";wrapper.append(img);this.printContainer.append(wrapper);return new Promise(function(resolve,reject){img.onload=resolve;img.onerror=reject;});}},{key:"performPrint",value:function performPrint(){var _this2=this;this.throwIfInactive();return new Promise(function(resolve){setTimeout(function(){if(!_this2.active){resolve();return;}print.call(window);var isIOS=navigator.platform&&["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document;setTimeout(resolve,isIOS?1500:20);},0);});}},{key:"active",get:function get(){return this===activeService;}},{key:"throwIfInactive",value:function throwIfInactive(){if(!this.active){throw new Error("This print request was cancelled or completed.");}}}]);return PDFPrintService;}();exports.PDFPrintService=PDFPrintService;var print=window.print;window.printPDF=function printPdf(){if(!_app.PDFViewerApplication.enablePrint){return;}if(activeService){globalThis.ngxConsole.warn("Ignored window.printPDF() because of a pending print job.");return;}ensureOverlay().then(function(){if(activeService){overlayManager.open(dialog);}});try{dispatchEvent("beforeprint");}finally{if(!activeService){globalThis.ngxConsole.error("Expected print service to be initialized.");ensureOverlay().then(function(){if(overlayManager.active===dialog){overlayManager.close(dialog);}});return;}var activeServiceOnEntry=activeService;activeService.renderPages().then(function(){var progressIndicator=document.getElementById("printServiceDialog");if(progressIndicator){progressIndicator.classList.add("hidden");}return activeServiceOnEntry.performPrint();}).catch(function(){}).then(function(){if(activeServiceOnEntry.active){abort();}});}};function dispatchEvent(eventType){var event=new CustomEvent(eventType,{bubbles:false,cancelable:false,detail:"custom"});window.dispatchEvent(event);}function abort(){if(activeService){activeService.destroy();dispatchEvent("afterprint");}}function renderProgress(index,total,l10n,eventBus){dialog=document.getElementById("printServiceDialog");var progress=Math.round(100*index/total);var progressBar=dialog.querySelector("progress");var progressPerc=dialog.querySelector(".relative-progress");progressBar.value=progress;l10n.get("print_progress_percent",{progress:progress}).then(function(msg){progressPerc.textContent=msg;});eventBus.dispatch("progress",{source:this,type:"print",total:total,page:index,percent:100*index/total});}window.addEventListener("keydown",function(event){if(event.keyCode===80&&(event.ctrlKey||event.metaKey)&&!event.altKey&&(!event.shiftKey||window.chrome||window.opera)){window.print();event.preventDefault();event.stopImmediatePropagation();}},true);if("onbeforeprint"in window){var stopPropagationIfNeeded=function stopPropagationIfNeeded(event){if(event.detail!=="custom"){event.stopImmediatePropagation();}};window.addEventListener("beforeprint",stopPropagationIfNeeded);window.addEventListener("afterprint",stopPropagationIfNeeded);}var overlayPromise;function ensureOverlay(){if(!overlayPromise){overlayManager=_app.PDFViewerApplication.overlayManager;if(!overlayManager){throw new Error("The overlay manager has not yet been initialized.");}dialog=document.getElementById("printServiceDialog");overlayPromise=overlayManager.register(dialog,true);document.getElementById("printCancel").onclick=abort;dialog.addEventListener("close",abort);}return overlayPromise;}_app.PDFPrintServiceFactory.instance={supportsPrinting:true,createPrintService:function createPrintService(pdfDocument,pagesOverview,printContainer,printResolution,optionalContentConfigPromise,printAnnotationStoragePromise,l10n,eventBus){if(activeService){throw new Error("The print service is created and active.");}activeService=new PDFPrintService(pdfDocument,pagesOverview,printContainer,printResolution,optionalContentConfigPromise,printAnnotationStoragePromise,l10n,eventBus);return activeService;}};

/***/ }),
/* 418 */
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

__webpack_require__(185);__webpack_require__(88);__webpack_require__(222);__webpack_require__(192);__webpack_require__(92);__webpack_require__(206);__webpack_require__(219);__webpack_require__(98);__webpack_require__(120);__webpack_require__(1);__webpack_require__(42);__webpack_require__(95);__webpack_require__(126);Object.defineProperty(exports, "__esModule", ({value:true}));exports.getXfaHtmlForPrinting=getXfaHtmlForPrinting;var _pdfjsLib=__webpack_require__(286);var _pdf_link_service=__webpack_require__(291);var _xfa_layer_builder=__webpack_require__(406);function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function getXfaHtmlForPrinting(printContainer,pdfDocument){var xfaHtml=pdfDocument.allXfaHtml;var linkService=new _pdf_link_service.SimpleLinkService();var scale=Math.round(_pdfjsLib.PixelsPerInch.PDF_TO_CSS_UNITS*100)/100;var _iterator=_createForOfIteratorHelper(xfaHtml.children),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var xfaPage=_step.value;var page=document.createElement("div");page.className="xfaPrintedPage";printContainer.append(page);var builder=new _xfa_layer_builder.XfaLayerBuilder({pageDiv:page,pdfPage:null,annotationStorage:pdfDocument.annotationStorage,linkService:linkService,xfaHtml:xfaPage});var viewport=(0,_pdfjsLib.getXfaPageViewport)(xfaPage,{scale:scale});builder.render(viewport,"print");}}catch(err){_iterator.e(err);}finally{_iterator.f();}}

/***/ })
/******/ 	]);
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_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, __webpack_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}));Object.defineProperty(exports, "PDFViewerApplication", ({enumerable:true,get:function get(){return _app.PDFViewerApplication;}}));exports.PDFViewerApplicationConstants=void 0;Object.defineProperty(exports, "PDFViewerApplicationOptions", ({enumerable:true,get:function get(){return _app_options.AppOptions;}}));__webpack_require__(1);__webpack_require__(42);__webpack_require__(88);__webpack_require__(92);__webpack_require__(95);__webpack_require__(98);__webpack_require__(120);__webpack_require__(121);__webpack_require__(417);var _ui_utils=__webpack_require__(239);var _app_options=__webpack_require__(288);var _pdf_link_service=__webpack_require__(291);var _app=__webpack_require__(191);var _document$blockUnbloc,_document;var pdfjsVersion='3.11.438';var pdfjsBuild='42b77833e';var AppConstants={LinkTarget:_pdf_link_service.LinkTarget,RenderingStates:_ui_utils.RenderingStates,ScrollMode:_ui_utils.ScrollMode,SpreadMode:_ui_utils.SpreadMode};exports.PDFViewerApplicationConstants=AppConstants;window.PDFViewerApplication=_app.PDFViewerApplication;window.PDFViewerApplicationConstants=AppConstants;window.PDFViewerApplicationOptions=_app_options.AppOptions;if(!HTMLCollection.prototype[Symbol.iterator]){HTMLCollection.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];}(function(){if(typeof window.CustomEvent==="function"){return;}function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:null};var evt=document.createEvent("CustomEvent");evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;}window.CustomEvent=CustomEvent;})();function getViewerConfiguration(){return{appContainer:document.body,mainContainer:document.getElementById("viewerContainer"),viewerContainer:document.getElementById("viewer"),toolbar:{container:document.getElementById("toolbarViewer"),numPages:document.getElementById("numPages"),pageNumber:document.getElementById("pageNumber"),scaleSelect:document.getElementById("scaleSelect"),customScaleOption:document.getElementById("customScaleOption"),previous:document.getElementById("previous"),next:document.getElementById("next"),zoomIn:document.getElementById("zoomIn"),zoomOut:document.getElementById("zoomOut"),viewFind:document.getElementById("viewFind"),openFile:document.getElementById("openFile"),print:document.getElementById("print"),editorFreeTextButton:document.getElementById("editorFreeText"),editorFreeTextParamsToolbar:document.getElementById("editorFreeTextParamsToolbar"),editorInkButton:document.getElementById("editorInk"),editorInkParamsToolbar:document.getElementById("editorInkParamsToolbar"),editorStampButton:document.getElementById("editorStamp"),presentationModeButton:document.getElementById("presentationMode"),editorStampParamsToolbar:document.getElementById("editorStampParamsToolbar"),download:document.getElementById("download")},secondaryToolbar:{toolbar:document.getElementById("secondaryToolbar"),toggleButton:document.getElementById("secondaryToolbarToggle"),presentationModeButton:document.getElementById("secondaryPresentationMode"),openFileButton:document.getElementById("secondaryOpenFile"),printButton:document.getElementById("secondaryPrint"),downloadButton:document.getElementById("secondaryDownload"),viewBookmarkButton:document.getElementById("viewBookmark"),firstPageButton:document.getElementById("firstPage"),lastPageButton:document.getElementById("lastPage"),pageRotateCwButton:document.getElementById("pageRotateCw"),pageRotateCcwButton:document.getElementById("pageRotateCcw"),cursorSelectToolButton:document.getElementById("cursorSelectTool"),cursorHandToolButton:document.getElementById("cursorHandTool"),scrollPageButton:document.getElementById("scrollPage"),scrollVerticalButton:document.getElementById("scrollVertical"),scrollHorizontalButton:document.getElementById("scrollHorizontal"),scrollWrappedButton:document.getElementById("scrollWrapped"),spreadNoneButton:document.getElementById("spreadNone"),spreadOddButton:document.getElementById("spreadOdd"),spreadEvenButton:document.getElementById("spreadEven"),documentPropertiesButton:document.getElementById("documentProperties")},sidebar:{outerContainer:document.getElementById("outerContainer"),sidebarContainer:document.getElementById("sidebarContainer"),toggleButton:document.getElementById("sidebarToggle"),resizer:document.getElementById("sidebarResizer"),thumbnailButton:document.getElementById("viewThumbnail"),outlineButton:document.getElementById("viewOutline"),attachmentsButton:document.getElementById("viewAttachments"),layersButton:document.getElementById("viewLayers"),thumbnailView:document.getElementById("thumbnailView"),outlineView:document.getElementById("outlineView"),attachmentsView:document.getElementById("attachmentsView"),layersView:document.getElementById("layersView"),outlineOptionsContainer:document.getElementById("outlineOptionsContainer"),currentOutlineItemButton:document.getElementById("currentOutlineItem")},findBar:{bar:document.getElementById("findbar"),toggleButton:document.getElementById("viewFind"),findField:document.getElementById("findInput"),highlightAllCheckbox:document.getElementById("findHighlightAll"),caseSensitiveCheckbox:document.getElementById("findMatchCase"),matchDiacriticsCheckbox:document.getElementById("findMatchDiacritics"),entireWordCheckbox:document.getElementById("findEntireWord"),findMsg:document.getElementById("findMsg"),findResultsCount:document.getElementById("findResultsCount"),findPreviousButton:document.getElementById("findPrevious"),findNextButton:document.getElementById("findNext")},passwordOverlay:{dialog:document.getElementById("passwordDialog"),label:document.getElementById("passwordText"),input:document.getElementById("password"),submitButton:document.getElementById("passwordSubmit"),cancelButton:document.getElementById("passwordCancel")},documentProperties:{dialog:document.getElementById("documentPropertiesDialog"),closeButton:document.getElementById("documentPropertiesClose"),fields:{fileName:document.getElementById("fileNameField"),fileSize:document.getElementById("fileSizeField"),title:document.getElementById("titleField"),author:document.getElementById("authorField"),subject:document.getElementById("subjectField"),keywords:document.getElementById("keywordsField"),creationDate:document.getElementById("creationDateField"),modificationDate:document.getElementById("modificationDateField"),creator:document.getElementById("creatorField"),producer:document.getElementById("producerField"),version:document.getElementById("versionField"),pageCount:document.getElementById("pageCountField"),pageSize:document.getElementById("pageSizeField"),linearized:document.getElementById("linearizedField")}},annotationEditorParams:{editorFreeTextFontSize:document.getElementById("editorFreeTextFontSize"),editorFreeTextColor:document.getElementById("editorFreeTextColor"),editorInkColor:document.getElementById("editorInkColor"),editorInkThickness:document.getElementById("editorInkThickness"),editorInkOpacity:document.getElementById("editorInkOpacity"),editorStampAddImage:document.getElementById("editorStampAddImage")},printContainer:document.getElementById("printContainer"),openFileInput:document.getElementById("fileInput"),debuggerScriptPath:"./debugger.js"};}function webViewerLoad(){var config=getViewerConfiguration();var event=new CustomEvent("webviewerloaded",{bubbles:true,cancelable:true,detail:{source:window}});try{parent.document.dispatchEvent(event);}catch(ex){console.error("webviewerloaded: ".concat(ex));document.dispatchEvent(event);}_app.PDFViewerApplication.run(config);}(_document$blockUnbloc=(_document=document).blockUnblockOnload)===null||_document$blockUnbloc===void 0?void 0:_document$blockUnbloc.call(_document,true);window.webViewerLoad=webViewerLoad;
})();

/******/ })()
;
});
