@libresign/pdf-elements 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,6 +196,22 @@ module.exports = !fails(function () {
196
196
  });
197
197
 
198
198
 
199
+ /***/ },
200
+
201
+ /***/ 655
202
+ (module, __unused_webpack_exports, __webpack_require__) {
203
+
204
+
205
+ var classof = __webpack_require__(6955);
206
+
207
+ var $String = String;
208
+
209
+ module.exports = function (argument) {
210
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
211
+ return $String(argument);
212
+ };
213
+
214
+
199
215
  /***/ },
200
216
 
201
217
  /***/ 679
@@ -270,6 +286,13 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
270
286
  };
271
287
 
272
288
 
289
+ /***/ },
290
+
291
+ /***/ 824
292
+ (module, __unused_webpack_exports, __webpack_require__) {
293
+
294
+ module.exports = __webpack_require__.p + "pdf.worker.min.mjs";
295
+
273
296
  /***/ },
274
297
 
275
298
  /***/ 851
@@ -928,6 +951,20 @@ var POLYFILL = isForced.POLYFILL = 'P';
928
951
  module.exports = isForced;
929
952
 
930
953
 
954
+ /***/ },
955
+
956
+ /***/ 2812
957
+ (module) {
958
+
959
+
960
+ var $TypeError = TypeError;
961
+
962
+ module.exports = function (passed, required) {
963
+ if (passed < required) throw new $TypeError('Not enough arguments');
964
+ return passed;
965
+ };
966
+
967
+
931
968
  /***/ },
932
969
 
933
970
  /***/ 2839
@@ -1256,6 +1293,62 @@ module.exports =
1256
1293
  (function () { return this; })() || Function('return this')();
1257
1294
 
1258
1295
 
1296
+ /***/ },
1297
+
1298
+ /***/ 4603
1299
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1300
+
1301
+
1302
+ var defineBuiltIn = __webpack_require__(6840);
1303
+ var uncurryThis = __webpack_require__(9504);
1304
+ var toString = __webpack_require__(655);
1305
+ var validateArgumentsLength = __webpack_require__(2812);
1306
+
1307
+ var $URLSearchParams = URLSearchParams;
1308
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
1309
+ var append = uncurryThis(URLSearchParamsPrototype.append);
1310
+ var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
1311
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
1312
+ var push = uncurryThis([].push);
1313
+ var params = new $URLSearchParams('a=1&a=2&b=3');
1314
+
1315
+ params['delete']('a', 1);
1316
+ // `undefined` case is a Chromium 117 bug
1317
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1318
+ params['delete']('b', undefined);
1319
+
1320
+ if (params + '' !== 'a=2') {
1321
+ defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
1322
+ var length = arguments.length;
1323
+ var $value = length < 2 ? undefined : arguments[1];
1324
+ if (length && $value === undefined) return $delete(this, name);
1325
+ var entries = [];
1326
+ forEach(this, function (v, k) { // also validates `this`
1327
+ push(entries, { key: k, value: v });
1328
+ });
1329
+ validateArgumentsLength(length, 1);
1330
+ var key = toString(name);
1331
+ var value = toString($value);
1332
+ var index = 0;
1333
+ var dindex = 0;
1334
+ var found = false;
1335
+ var entriesLength = entries.length;
1336
+ var entry;
1337
+ while (index < entriesLength) {
1338
+ entry = entries[index++];
1339
+ if (found || entry.key === key) {
1340
+ found = true;
1341
+ $delete(this, entry.key);
1342
+ } else dindex++;
1343
+ }
1344
+ while (dindex < entriesLength) {
1345
+ entry = entries[dindex++];
1346
+ if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
1347
+ }
1348
+ }, { enumerable: true, unsafe: true });
1349
+ }
1350
+
1351
+
1259
1352
  /***/ },
1260
1353
 
1261
1354
  /***/ 4659
@@ -1880,6 +1973,41 @@ module.exports = function (fn) {
1880
1973
  };
1881
1974
 
1882
1975
 
1976
+ /***/ },
1977
+
1978
+ /***/ 7566
1979
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1980
+
1981
+
1982
+ var defineBuiltIn = __webpack_require__(6840);
1983
+ var uncurryThis = __webpack_require__(9504);
1984
+ var toString = __webpack_require__(655);
1985
+ var validateArgumentsLength = __webpack_require__(2812);
1986
+
1987
+ var $URLSearchParams = URLSearchParams;
1988
+ var URLSearchParamsPrototype = $URLSearchParams.prototype;
1989
+ var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
1990
+ var $has = uncurryThis(URLSearchParamsPrototype.has);
1991
+ var params = new $URLSearchParams('a=1');
1992
+
1993
+ // `undefined` case is a Chromium 117 bug
1994
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1995
+ if (params.has('a', 2) || !params.has('a', undefined)) {
1996
+ defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
1997
+ var length = arguments.length;
1998
+ var $value = length < 2 ? undefined : arguments[1];
1999
+ if (length && $value === undefined) return $has(this, name);
2000
+ var values = getAll(this, name); // also validates `this`
2001
+ validateArgumentsLength(length, 1);
2002
+ var value = toString($value);
2003
+ var index = 0;
2004
+ while (index < values.length) {
2005
+ if (values[index++] === value) return true;
2006
+ } return false;
2007
+ }, { enumerable: true, unsafe: true });
2008
+ }
2009
+
2010
+
1883
2011
  /***/ },
1884
2012
 
1885
2013
  /***/ 7588
@@ -2244,6 +2372,34 @@ module.exports = DESCRIPTORS && fails(function () {
2244
2372
  });
2245
2373
 
2246
2374
 
2375
+ /***/ },
2376
+
2377
+ /***/ 8721
2378
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
2379
+
2380
+
2381
+ var DESCRIPTORS = __webpack_require__(3724);
2382
+ var uncurryThis = __webpack_require__(9504);
2383
+ var defineBuiltInAccessor = __webpack_require__(2106);
2384
+
2385
+ var URLSearchParamsPrototype = URLSearchParams.prototype;
2386
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
2387
+
2388
+ // `URLSearchParams.prototype.size` getter
2389
+ // https://github.com/whatwg/url/pull/734
2390
+ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
2391
+ defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
2392
+ get: function size() {
2393
+ var count = 0;
2394
+ forEach(this, function () { count++; });
2395
+ return count;
2396
+ },
2397
+ configurable: true,
2398
+ enumerable: true
2399
+ });
2400
+ }
2401
+
2402
+
2247
2403
  /***/ },
2248
2404
 
2249
2405
  /***/ 8727
@@ -2635,6 +2791,9 @@ module.exports = {
2635
2791
  /******/ return module.exports;
2636
2792
  /******/ }
2637
2793
  /******/
2794
+ /******/ // expose the modules object (__webpack_modules__)
2795
+ /******/ __webpack_require__.m = __webpack_modules__;
2796
+ /******/
2638
2797
  /************************************************************************/
2639
2798
  /******/ /* webpack/runtime/define property getters */
2640
2799
  /******/ (() => {
@@ -2658,6 +2817,32 @@ module.exports = {
2658
2817
  /******/ __webpack_require__.p = "";
2659
2818
  /******/ })();
2660
2819
  /******/
2820
+ /******/ /* webpack/runtime/jsonp chunk loading */
2821
+ /******/ (() => {
2822
+ /******/ __webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;
2823
+ /******/
2824
+ /******/ // object to store loaded and loading chunks
2825
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
2826
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
2827
+ /******/ var installedChunks = {
2828
+ /******/ 380: 0
2829
+ /******/ };
2830
+ /******/
2831
+ /******/ // no chunk on demand loading
2832
+ /******/
2833
+ /******/ // no prefetching
2834
+ /******/
2835
+ /******/ // no preloaded
2836
+ /******/
2837
+ /******/ // no HMR
2838
+ /******/
2839
+ /******/ // no HMR manifest
2840
+ /******/
2841
+ /******/ // no on chunks loaded
2842
+ /******/
2843
+ /******/ // no jsonp function
2844
+ /******/ })();
2845
+ /******/
2661
2846
  /************************************************************************/
2662
2847
  var __webpack_exports__ = {};
2663
2848
 
@@ -3638,6 +3823,12 @@ var DraggableElement_component = normalizeComponent(
3638
3823
  )
3639
3824
 
3640
3825
  /* harmony default export */ const DraggableElement = (DraggableElement_component.exports);
3826
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
3827
+ var web_url_search_params_delete = __webpack_require__(4603);
3828
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
3829
+ var web_url_search_params_has = __webpack_require__(7566);
3830
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
3831
+ var web_url_search_params_size = __webpack_require__(8721);
3641
3832
  ;// ./node_modules/pdfjs-dist/build/pdf.mjs
3642
3833
  /**
3643
3834
  * @licstart The following is the entire license notice for the
@@ -30030,15 +30221,16 @@ globalThis.pdfjsLib = {
30030
30221
 
30031
30222
 
30032
30223
  //# sourceMappingURL=pdf.mjs.map
30033
- ;// ./node_modules/pdfjs-dist/build/pdf.worker.min.mjs
30034
- const pdf_worker_min_namespaceObject = __webpack_require__.p + "pdf.worker.min.mjs";
30035
30224
  ;// ./src/utils/asyncReader.js
30225
+
30226
+
30227
+
30036
30228
  // SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
30037
30229
  // SPDX-License-Identifier: AGPL-3.0-or-later
30038
30230
 
30039
30231
 
30040
-
30041
- GlobalWorkerOptions.workerSrc = pdf_worker_min_namespaceObject;
30232
+ const workerUrl = new URL(/* asset import */ __webpack_require__(824), __webpack_require__.b).href;
30233
+ GlobalWorkerOptions.workerSrc = workerUrl;
30042
30234
  function readAsArrayBuffer(file) {
30043
30235
  return new Promise((resolve, reject) => {
30044
30236
  const reader = new FileReader();