@xberg-io/crawlberg-wasm 1.12.2 → 1.12.4
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.
- package/package.json +1 -1
- package/pkg/bundler/crawlberg_wasm.d.ts +3 -2
- package/pkg/bundler/crawlberg_wasm_bg.js +1050 -662
- package/pkg/bundler/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/bundler/crawlberg_wasm_bg.wasm.d.ts +5 -5
- package/pkg/bundler/package.json +2 -2
- package/pkg/deno/crawlberg_wasm.d.ts +3 -2
- package/pkg/deno/crawlberg_wasm.js +1047 -659
- package/pkg/deno/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/deno/crawlberg_wasm_bg.wasm.d.ts +5 -5
- package/pkg/nodejs/crawlberg_wasm.d.ts +3 -2
- package/pkg/nodejs/crawlberg_wasm.js +1047 -659
- package/pkg/nodejs/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/nodejs/crawlberg_wasm_bg.wasm.d.ts +5 -5
- package/pkg/nodejs/package.json +2 -2
- package/pkg/web/crawlberg_wasm.d.ts +8 -7
- package/pkg/web/crawlberg_wasm.js +1058 -662
- package/pkg/web/crawlberg_wasm_bg.wasm +0 -0
- package/pkg/web/crawlberg_wasm_bg.wasm.d.ts +5 -5
- package/pkg/web/package.json +2 -2
|
@@ -91,11 +91,19 @@ export class WasmActionResult {
|
|
|
91
91
|
* @param {string | null} [error]
|
|
92
92
|
*/
|
|
93
93
|
constructor(actionIndex, actionType, success, data, error) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
const val3 = +(isLikeNone(actionIndex) ? Number.MAX_SAFE_INTEGER : (actionIndex) >>> 0);
|
|
95
|
+
let ptr0, len0, ptr1, len1;
|
|
96
|
+
try {
|
|
97
|
+
ptr0 = isLikeNone(actionType) ? 0 : passStringToWasm0(actionType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
98
|
+
len0 = WASM_VECTOR_LEN;
|
|
99
|
+
ptr1 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
100
|
+
len1 = WASM_VECTOR_LEN;
|
|
101
|
+
} catch (e) {
|
|
102
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
103
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
104
|
+
throw e;
|
|
105
|
+
}
|
|
106
|
+
const ret = wasm.wasmactionresult_new(val3, ptr0, len0, isLikeNone(success) ? 0xFFFFFF : success ? 1 : 0, isLikeNone(data) ? 0 : addToExternrefTable0(data), ptr1, len1);
|
|
99
107
|
this.__wbg_ptr = ret;
|
|
100
108
|
WasmActionResultFinalization.register(this, this.__wbg_ptr, this);
|
|
101
109
|
return this;
|
|
@@ -214,16 +222,26 @@ export class WasmArticleMetadata {
|
|
|
214
222
|
* @param {string | null} [section]
|
|
215
223
|
*/
|
|
216
224
|
constructor(tags, publishedTime, modifiedTime, author, section) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4;
|
|
226
|
+
try {
|
|
227
|
+
ptr0 = isLikeNone(tags) ? 0 : passArrayJsValueToWasm0(tags, wasm.__wbindgen_malloc);
|
|
228
|
+
len0 = WASM_VECTOR_LEN;
|
|
229
|
+
ptr1 = isLikeNone(publishedTime) ? 0 : passStringToWasm0(publishedTime, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
230
|
+
len1 = WASM_VECTOR_LEN;
|
|
231
|
+
ptr2 = isLikeNone(modifiedTime) ? 0 : passStringToWasm0(modifiedTime, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
+
len2 = WASM_VECTOR_LEN;
|
|
233
|
+
ptr3 = isLikeNone(author) ? 0 : passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
+
len3 = WASM_VECTOR_LEN;
|
|
235
|
+
ptr4 = isLikeNone(section) ? 0 : passStringToWasm0(section, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
+
len4 = WASM_VECTOR_LEN;
|
|
237
|
+
} catch (e) {
|
|
238
|
+
if (ptr4) { wasm.__wbindgen_free(ptr4, len4 * 1, 1); }
|
|
239
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
240
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
241
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
242
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
243
|
+
throw e;
|
|
244
|
+
}
|
|
227
245
|
const ret = wasm.wasmarticlemetadata_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
228
246
|
this.__wbg_ptr = ret;
|
|
229
247
|
WasmArticleMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -551,15 +569,22 @@ export class WasmBatchCrawlResult {
|
|
|
551
569
|
* @param {string | null} [error]
|
|
552
570
|
*/
|
|
553
571
|
constructor(url, result, error) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
572
|
+
let ptr0, len0, ptr1 = 0, ptr2, len2;
|
|
573
|
+
try {
|
|
574
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
575
|
+
len0 = WASM_VECTOR_LEN;
|
|
576
|
+
if (!isLikeNone(result)) {
|
|
577
|
+
_assertClass(result, WasmCrawlResult);
|
|
578
|
+
ptr1 = result.__destroy_into_raw();
|
|
579
|
+
}
|
|
580
|
+
ptr2 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
581
|
+
len2 = WASM_VECTOR_LEN;
|
|
582
|
+
} catch (e) {
|
|
583
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
584
|
+
if (ptr1) wasm.__wbg_wasmcrawlresult_free(ptr1, 1);
|
|
585
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
586
|
+
throw e;
|
|
560
587
|
}
|
|
561
|
-
var ptr2 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
562
|
-
var len2 = WASM_VECTOR_LEN;
|
|
563
588
|
const ret = wasm.wasmbatchcrawlresult_new(ptr0, len0, ptr1, ptr2, len2);
|
|
564
589
|
this.__wbg_ptr = ret;
|
|
565
590
|
WasmBatchCrawlResultFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -682,9 +707,12 @@ export class WasmBatchCrawlResults {
|
|
|
682
707
|
* @param {number | null} [failedCount]
|
|
683
708
|
*/
|
|
684
709
|
constructor(results, totalCount, completedCount, failedCount) {
|
|
710
|
+
const val2 = +(isLikeNone(totalCount) ? Number.MAX_SAFE_INTEGER : (totalCount) >>> 0);
|
|
711
|
+
const val3 = +(isLikeNone(completedCount) ? Number.MAX_SAFE_INTEGER : (completedCount) >>> 0);
|
|
712
|
+
const val4 = +(isLikeNone(failedCount) ? Number.MAX_SAFE_INTEGER : (failedCount) >>> 0);
|
|
685
713
|
var ptr0 = isLikeNone(results) ? 0 : passArrayJsValueToWasm0(results, wasm.__wbindgen_malloc);
|
|
686
714
|
var len0 = WASM_VECTOR_LEN;
|
|
687
|
-
const ret = wasm.wasmbatchcrawlresults_new(ptr0, len0,
|
|
715
|
+
const ret = wasm.wasmbatchcrawlresults_new(ptr0, len0, val2, val3, val4);
|
|
688
716
|
this.__wbg_ptr = ret;
|
|
689
717
|
WasmBatchCrawlResultsFinalization.register(this, this.__wbg_ptr, this);
|
|
690
718
|
return this;
|
|
@@ -811,15 +839,22 @@ export class WasmBatchScrapeResult {
|
|
|
811
839
|
* @param {string | null} [error]
|
|
812
840
|
*/
|
|
813
841
|
constructor(url, result, error) {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
842
|
+
let ptr0, len0, ptr1 = 0, ptr2, len2;
|
|
843
|
+
try {
|
|
844
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
845
|
+
len0 = WASM_VECTOR_LEN;
|
|
846
|
+
if (!isLikeNone(result)) {
|
|
847
|
+
_assertClass(result, WasmScrapeResult);
|
|
848
|
+
ptr1 = result.__destroy_into_raw();
|
|
849
|
+
}
|
|
850
|
+
ptr2 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
851
|
+
len2 = WASM_VECTOR_LEN;
|
|
852
|
+
} catch (e) {
|
|
853
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
854
|
+
if (ptr1) wasm.__wbg_wasmscraperesult_free(ptr1, 1);
|
|
855
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
856
|
+
throw e;
|
|
820
857
|
}
|
|
821
|
-
var ptr2 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
822
|
-
var len2 = WASM_VECTOR_LEN;
|
|
823
858
|
const ret = wasm.wasmbatchscraperesult_new(ptr0, len0, ptr1, ptr2, len2);
|
|
824
859
|
this.__wbg_ptr = ret;
|
|
825
860
|
WasmBatchScrapeResultFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -942,9 +977,12 @@ export class WasmBatchScrapeResults {
|
|
|
942
977
|
* @param {number | null} [failedCount]
|
|
943
978
|
*/
|
|
944
979
|
constructor(results, totalCount, completedCount, failedCount) {
|
|
980
|
+
const val2 = +(isLikeNone(totalCount) ? Number.MAX_SAFE_INTEGER : (totalCount) >>> 0);
|
|
981
|
+
const val3 = +(isLikeNone(completedCount) ? Number.MAX_SAFE_INTEGER : (completedCount) >>> 0);
|
|
982
|
+
const val4 = +(isLikeNone(failedCount) ? Number.MAX_SAFE_INTEGER : (failedCount) >>> 0);
|
|
945
983
|
var ptr0 = isLikeNone(results) ? 0 : passArrayJsValueToWasm0(results, wasm.__wbindgen_malloc);
|
|
946
984
|
var len0 = WASM_VECTOR_LEN;
|
|
947
|
-
const ret = wasm.wasmbatchscraperesults_new(ptr0, len0,
|
|
985
|
+
const ret = wasm.wasmbatchscraperesults_new(ptr0, len0, val2, val3, val4);
|
|
948
986
|
this.__wbg_ptr = ret;
|
|
949
987
|
WasmBatchScrapeResultsFinalization.register(this, this.__wbg_ptr, this);
|
|
950
988
|
return this;
|
|
@@ -1191,26 +1229,47 @@ export class WasmBrowserConfig {
|
|
|
1191
1229
|
* @param {bigint | null} [domQuietCap]
|
|
1192
1230
|
*/
|
|
1193
1231
|
constructor(mode, backend, timeout, overallTimeout, shutdownTimeout, wait, blockUrlPatterns, captureNetworkEvents, sessionAffinity, chromeArgs, endpoint, waitSelector, extraWait, proxy, evalScript, robotsUserAgent, chromePath, scrollContainers, domQuietWindow, domQuietCap) {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1232
|
+
const val9 = +(isLikeNone(mode) ? 4 : mode);
|
|
1233
|
+
const val10 = +(isLikeNone(backend) ? 2 : backend);
|
|
1234
|
+
const val11 = BigInt.asIntN(64, (isLikeNone(timeout) ? BigInt(0) : timeout));
|
|
1235
|
+
const val12 = BigInt.asIntN(64, (isLikeNone(overallTimeout) ? BigInt(0) : overallTimeout));
|
|
1236
|
+
const val13 = BigInt.asIntN(64, (isLikeNone(shutdownTimeout) ? BigInt(0) : shutdownTimeout));
|
|
1237
|
+
const val14 = +(isLikeNone(wait) ? 3 : wait);
|
|
1238
|
+
const val15 = BigInt.asIntN(64, (isLikeNone(extraWait) ? BigInt(0) : extraWait));
|
|
1239
|
+
const val16 = BigInt.asIntN(64, (isLikeNone(domQuietWindow) ? BigInt(0) : domQuietWindow));
|
|
1240
|
+
const val17 = BigInt.asIntN(64, (isLikeNone(domQuietCap) ? BigInt(0) : domQuietCap));
|
|
1241
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4 = 0, ptr5, len5, ptr6, len6, ptr7, len7;
|
|
1242
|
+
try {
|
|
1243
|
+
ptr0 = isLikeNone(blockUrlPatterns) ? 0 : passArrayJsValueToWasm0(blockUrlPatterns, wasm.__wbindgen_malloc);
|
|
1244
|
+
len0 = WASM_VECTOR_LEN;
|
|
1245
|
+
ptr1 = isLikeNone(chromeArgs) ? 0 : passArrayJsValueToWasm0(chromeArgs, wasm.__wbindgen_malloc);
|
|
1246
|
+
len1 = WASM_VECTOR_LEN;
|
|
1247
|
+
ptr2 = isLikeNone(endpoint) ? 0 : passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1248
|
+
len2 = WASM_VECTOR_LEN;
|
|
1249
|
+
ptr3 = isLikeNone(waitSelector) ? 0 : passStringToWasm0(waitSelector, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1250
|
+
len3 = WASM_VECTOR_LEN;
|
|
1251
|
+
if (!isLikeNone(proxy)) {
|
|
1252
|
+
_assertClass(proxy, WasmProxyConfig);
|
|
1253
|
+
ptr4 = proxy.__destroy_into_raw();
|
|
1254
|
+
}
|
|
1255
|
+
ptr5 = isLikeNone(evalScript) ? 0 : passStringToWasm0(evalScript, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1256
|
+
len5 = WASM_VECTOR_LEN;
|
|
1257
|
+
ptr6 = isLikeNone(robotsUserAgent) ? 0 : passStringToWasm0(robotsUserAgent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1258
|
+
len6 = WASM_VECTOR_LEN;
|
|
1259
|
+
ptr7 = isLikeNone(chromePath) ? 0 : passStringToWasm0(chromePath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1260
|
+
len7 = WASM_VECTOR_LEN;
|
|
1261
|
+
} catch (e) {
|
|
1262
|
+
if (ptr7) { wasm.__wbindgen_free(ptr7, len7 * 1, 1); }
|
|
1263
|
+
if (ptr6) { wasm.__wbindgen_free(ptr6, len6 * 1, 1); }
|
|
1264
|
+
if (ptr5) { wasm.__wbindgen_free(ptr5, len5 * 1, 1); }
|
|
1265
|
+
if (ptr4) wasm.__wbg_wasmproxyconfig_free(ptr4, 1);
|
|
1266
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
1267
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
1268
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
1269
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
1270
|
+
throw e;
|
|
1271
|
+
}
|
|
1272
|
+
const ret = wasm.wasmbrowserconfig_new(val9, val10, !isLikeNone(timeout), val11, !isLikeNone(overallTimeout), val12, !isLikeNone(shutdownTimeout), val13, val14, ptr0, len0, isLikeNone(captureNetworkEvents) ? 0xFFFFFF : captureNetworkEvents ? 1 : 0, isLikeNone(sessionAffinity) ? 0xFFFFFF : sessionAffinity ? 1 : 0, ptr1, len1, ptr2, len2, ptr3, len3, !isLikeNone(extraWait), val15, ptr4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(scrollContainers) ? 0xFFFFFF : scrollContainers ? 1 : 0, !isLikeNone(domQuietWindow), val16, !isLikeNone(domQuietCap), val17);
|
|
1214
1273
|
this.__wbg_ptr = ret;
|
|
1215
1274
|
WasmBrowserConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
1216
1275
|
return this;
|
|
@@ -1520,10 +1579,17 @@ export class WasmBrowserExtras {
|
|
|
1520
1579
|
* @param {any | null} [evalResult]
|
|
1521
1580
|
*/
|
|
1522
1581
|
constructor(networkEvents, cookies, evalResult) {
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1582
|
+
let ptr0, len0, ptr1, len1;
|
|
1583
|
+
try {
|
|
1584
|
+
ptr0 = isLikeNone(networkEvents) ? 0 : passArrayJsValueToWasm0(networkEvents, wasm.__wbindgen_malloc);
|
|
1585
|
+
len0 = WASM_VECTOR_LEN;
|
|
1586
|
+
ptr1 = isLikeNone(cookies) ? 0 : passArrayJsValueToWasm0(cookies, wasm.__wbindgen_malloc);
|
|
1587
|
+
len1 = WASM_VECTOR_LEN;
|
|
1588
|
+
} catch (e) {
|
|
1589
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
1590
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
1591
|
+
throw e;
|
|
1592
|
+
}
|
|
1527
1593
|
const ret = wasm.wasmbrowserextras_new(ptr0, len0, ptr1, len1, isLikeNone(evalResult) ? 0 : addToExternrefTable0(evalResult));
|
|
1528
1594
|
this.__wbg_ptr = ret;
|
|
1529
1595
|
WasmBrowserExtrasFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -1639,11 +1705,19 @@ export class WasmCitationReference {
|
|
|
1639
1705
|
* @param {string | null} [text]
|
|
1640
1706
|
*/
|
|
1641
1707
|
constructor(index, url, text) {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1708
|
+
const val3 = +(isLikeNone(index) ? Number.MAX_SAFE_INTEGER : (index) >>> 0);
|
|
1709
|
+
let ptr0, len0, ptr1, len1;
|
|
1710
|
+
try {
|
|
1711
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1712
|
+
len0 = WASM_VECTOR_LEN;
|
|
1713
|
+
ptr1 = isLikeNone(text) ? 0 : passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1714
|
+
len1 = WASM_VECTOR_LEN;
|
|
1715
|
+
} catch (e) {
|
|
1716
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1717
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1718
|
+
throw e;
|
|
1719
|
+
}
|
|
1720
|
+
const ret = wasm.wasmcitationreference_new(val3, ptr0, len0, ptr1, len1);
|
|
1647
1721
|
this.__wbg_ptr = ret;
|
|
1648
1722
|
WasmCitationReferenceFinalization.register(this, this.__wbg_ptr, this);
|
|
1649
1723
|
return this;
|
|
@@ -1764,10 +1838,17 @@ export class WasmCitationResult {
|
|
|
1764
1838
|
* @param {WasmCitationReference[] | null} [references]
|
|
1765
1839
|
*/
|
|
1766
1840
|
constructor(content, references) {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1841
|
+
let ptr0, len0, ptr1, len1;
|
|
1842
|
+
try {
|
|
1843
|
+
ptr0 = isLikeNone(content) ? 0 : passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1844
|
+
len0 = WASM_VECTOR_LEN;
|
|
1845
|
+
ptr1 = isLikeNone(references) ? 0 : passArrayJsValueToWasm0(references, wasm.__wbindgen_malloc);
|
|
1846
|
+
len1 = WASM_VECTOR_LEN;
|
|
1847
|
+
} catch (e) {
|
|
1848
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
1849
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1850
|
+
throw e;
|
|
1851
|
+
}
|
|
1771
1852
|
const ret = wasm.wasmcitationresult_new(ptr0, len0, ptr1, len1);
|
|
1772
1853
|
this.__wbg_ptr = ret;
|
|
1773
1854
|
WasmCitationResultFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -1980,23 +2061,39 @@ export class WasmContentConfig {
|
|
|
1980
2061
|
* @param {boolean | null} [includeIconLabels]
|
|
1981
2062
|
*/
|
|
1982
2063
|
constructor(outputFormat, preprocessingPreset, removeNavigation, removeForms, stripTags, preserveTags, excludeSelectors, skipImages, wrap, wrapWidth, includeDocumentStructure, extractMetadata, maxDepth, stripNewlines, bullets, listIndentWidth, strongEmSymbol, compactTables, keepInlineImagesIn, keepHidden, expandAbbreviations, escapeMisc, escapeAsterisks, includeIconLabels) {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2064
|
+
const val9 = +(isLikeNone(wrapWidth) ? Number.MAX_SAFE_INTEGER : (wrapWidth) >>> 0);
|
|
2065
|
+
const val10 = +(isLikeNone(maxDepth) ? Number.MAX_SAFE_INTEGER : (maxDepth) >>> 0);
|
|
2066
|
+
const val11 = +(isLikeNone(listIndentWidth) ? Number.MAX_SAFE_INTEGER : (listIndentWidth) >>> 0);
|
|
2067
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7;
|
|
2068
|
+
try {
|
|
2069
|
+
ptr0 = isLikeNone(outputFormat) ? 0 : passStringToWasm0(outputFormat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2070
|
+
len0 = WASM_VECTOR_LEN;
|
|
2071
|
+
ptr1 = isLikeNone(preprocessingPreset) ? 0 : passStringToWasm0(preprocessingPreset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2072
|
+
len1 = WASM_VECTOR_LEN;
|
|
2073
|
+
ptr2 = isLikeNone(stripTags) ? 0 : passArrayJsValueToWasm0(stripTags, wasm.__wbindgen_malloc);
|
|
2074
|
+
len2 = WASM_VECTOR_LEN;
|
|
2075
|
+
ptr3 = isLikeNone(preserveTags) ? 0 : passArrayJsValueToWasm0(preserveTags, wasm.__wbindgen_malloc);
|
|
2076
|
+
len3 = WASM_VECTOR_LEN;
|
|
2077
|
+
ptr4 = isLikeNone(excludeSelectors) ? 0 : passArrayJsValueToWasm0(excludeSelectors, wasm.__wbindgen_malloc);
|
|
2078
|
+
len4 = WASM_VECTOR_LEN;
|
|
2079
|
+
ptr5 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2080
|
+
len5 = WASM_VECTOR_LEN;
|
|
2081
|
+
ptr6 = isLikeNone(strongEmSymbol) ? 0 : passStringToWasm0(strongEmSymbol, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2082
|
+
len6 = WASM_VECTOR_LEN;
|
|
2083
|
+
ptr7 = isLikeNone(keepInlineImagesIn) ? 0 : passArrayJsValueToWasm0(keepInlineImagesIn, wasm.__wbindgen_malloc);
|
|
2084
|
+
len7 = WASM_VECTOR_LEN;
|
|
2085
|
+
} catch (e) {
|
|
2086
|
+
if (ptr7) { wasm.__externref_drop_slice(ptr7, len7); wasm.__wbindgen_free(ptr7, len7 * 4, 4); }
|
|
2087
|
+
if (ptr6) { wasm.__wbindgen_free(ptr6, len6 * 1, 1); }
|
|
2088
|
+
if (ptr5) { wasm.__wbindgen_free(ptr5, len5 * 1, 1); }
|
|
2089
|
+
if (ptr4) { wasm.__externref_drop_slice(ptr4, len4); wasm.__wbindgen_free(ptr4, len4 * 4, 4); }
|
|
2090
|
+
if (ptr3) { wasm.__externref_drop_slice(ptr3, len3); wasm.__wbindgen_free(ptr3, len3 * 4, 4); }
|
|
2091
|
+
if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
|
|
2092
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
2093
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
2094
|
+
throw e;
|
|
2095
|
+
}
|
|
2096
|
+
const ret = wasm.wasmcontentconfig_new(ptr0, len0, ptr1, len1, isLikeNone(removeNavigation) ? 0xFFFFFF : removeNavigation ? 1 : 0, isLikeNone(removeForms) ? 0xFFFFFF : removeForms ? 1 : 0, ptr2, len2, ptr3, len3, ptr4, len4, isLikeNone(skipImages) ? 0xFFFFFF : skipImages ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, val9, isLikeNone(includeDocumentStructure) ? 0xFFFFFF : includeDocumentStructure ? 1 : 0, isLikeNone(extractMetadata) ? 0xFFFFFF : extractMetadata ? 1 : 0, val10, isLikeNone(stripNewlines) ? 0xFFFFFF : stripNewlines ? 1 : 0, ptr5, len5, val11, ptr6, len6, isLikeNone(compactTables) ? 0xFFFFFF : compactTables ? 1 : 0, ptr7, len7, isLikeNone(keepHidden) ? 0xFFFFFF : keepHidden ? 1 : 0, isLikeNone(expandAbbreviations) ? 0xFFFFFF : expandAbbreviations ? 1 : 0, isLikeNone(escapeMisc) ? 0xFFFFFF : escapeMisc ? 1 : 0, isLikeNone(escapeAsterisks) ? 0xFFFFFF : escapeAsterisks ? 1 : 0, isLikeNone(includeIconLabels) ? 0xFFFFFF : includeIconLabels ? 1 : 0);
|
|
2000
2097
|
this.__wbg_ptr = ret;
|
|
2001
2098
|
WasmContentConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
2002
2099
|
return this;
|
|
@@ -2358,14 +2455,23 @@ export class WasmCookieInfo {
|
|
|
2358
2455
|
* @param {string | null} [path]
|
|
2359
2456
|
*/
|
|
2360
2457
|
constructor(name, value, domain, path) {
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2458
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
2459
|
+
try {
|
|
2460
|
+
ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2461
|
+
len0 = WASM_VECTOR_LEN;
|
|
2462
|
+
ptr1 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2463
|
+
len1 = WASM_VECTOR_LEN;
|
|
2464
|
+
ptr2 = isLikeNone(domain) ? 0 : passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2465
|
+
len2 = WASM_VECTOR_LEN;
|
|
2466
|
+
ptr3 = isLikeNone(path) ? 0 : passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2467
|
+
len3 = WASM_VECTOR_LEN;
|
|
2468
|
+
} catch (e) {
|
|
2469
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
2470
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
2471
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
2472
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
2473
|
+
throw e;
|
|
2474
|
+
}
|
|
2369
2475
|
const ret = wasm.wasmcookieinfo_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2370
2476
|
this.__wbg_ptr = ret;
|
|
2371
2477
|
WasmCookieInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -2788,7 +2894,7 @@ export class WasmCrawlConfig {
|
|
|
2788
2894
|
* @param {bigint | null} [requestTimeout]
|
|
2789
2895
|
* @param {number | null} [maxRedirects]
|
|
2790
2896
|
* @param {number | null} [retryCount]
|
|
2791
|
-
* @param {Uint16Array | null} [retryCodes]
|
|
2897
|
+
* @param {Uint16Array | number[] | null} [retryCodes]
|
|
2792
2898
|
* @param {bigint | null} [retryInitialDelayMs]
|
|
2793
2899
|
* @param {bigint | null} [retryMaxDelayMs]
|
|
2794
2900
|
* @param {number | null} [rateLimitJitterRatio]
|
|
@@ -2831,57 +2937,105 @@ export class WasmCrawlConfig {
|
|
|
2831
2937
|
* @param {string[] | null} [subdomainHeaderAllowlist]
|
|
2832
2938
|
*/
|
|
2833
2939
|
constructor(crawlStrategy, respectRobotsTxt, softHttpErrors, stayOnDomain, allowSubdomains, includePaths, excludePaths, pathPatternsMatchQuery, pathPatternsMatchUrl, dedupIncludeQuery, stripTrackingParams, trackingParams, customHeaders, requestTimeout, maxRedirects, retryCount, retryCodes, retryInitialDelayMs, retryMaxDelayMs, rateLimitJitterRatio, cookiesEnabled, removeTags, content, downloadAssets, assetTypes, browser, userAgents, captureScreenshot, followDocumentUrls, downloadDocuments, documentMimeTypes, saveBrowserProfile, ssrf, maxDepth, maxPages, maxLinksPerPage, maxConcurrent, contentFilter, bm25Query, bm25Threshold, userAgent, rateLimitMs, auth, maxBodySize, mapLimit, mapSearch, maxAssetSize, proxy, documentUrlDepth, documentMaxSize, documentOutputDir, documentContentEncoding, warcOutput, browserProfile, ssrfDenyPrivateExplicit, dangerAcceptInvalidCerts, subdomainHeaderAllowlist) {
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2940
|
+
const val20 = +(isLikeNone(crawlStrategy) ? 4 : crawlStrategy);
|
|
2941
|
+
const val21 = BigInt.asIntN(64, (isLikeNone(requestTimeout) ? BigInt(0) : requestTimeout));
|
|
2942
|
+
const val22 = +(isLikeNone(maxRedirects) ? Number.MAX_SAFE_INTEGER : (maxRedirects) >>> 0);
|
|
2943
|
+
const val23 = +(isLikeNone(retryCount) ? Number.MAX_SAFE_INTEGER : (retryCount) >>> 0);
|
|
2944
|
+
const val24 = BigInt.asIntN(64, (isLikeNone(retryInitialDelayMs) ? BigInt(0) : retryInitialDelayMs));
|
|
2945
|
+
const val25 = BigInt.asIntN(64, (isLikeNone(retryMaxDelayMs) ? BigInt(0) : retryMaxDelayMs));
|
|
2946
|
+
const val26 = +(isLikeNone(rateLimitJitterRatio) ? 0 : rateLimitJitterRatio);
|
|
2947
|
+
const val27 = +(isLikeNone(maxDepth) ? Number.MAX_SAFE_INTEGER : (maxDepth) >>> 0);
|
|
2948
|
+
const val28 = +(isLikeNone(maxPages) ? Number.MAX_SAFE_INTEGER : (maxPages) >>> 0);
|
|
2949
|
+
const val29 = +(isLikeNone(maxLinksPerPage) ? Number.MAX_SAFE_INTEGER : (maxLinksPerPage) >>> 0);
|
|
2950
|
+
const val30 = +(isLikeNone(maxConcurrent) ? Number.MAX_SAFE_INTEGER : (maxConcurrent) >>> 0);
|
|
2951
|
+
const val31 = +(isLikeNone(contentFilter) ? 1 : contentFilter);
|
|
2952
|
+
const val32 = +(isLikeNone(bm25Threshold) ? 0 : bm25Threshold);
|
|
2953
|
+
const val33 = BigInt.asIntN(64, (isLikeNone(rateLimitMs) ? BigInt(0) : rateLimitMs));
|
|
2954
|
+
const val34 = +(isLikeNone(maxBodySize) ? Number.MAX_SAFE_INTEGER : (maxBodySize) >>> 0);
|
|
2955
|
+
const val35 = +(isLikeNone(mapLimit) ? Number.MAX_SAFE_INTEGER : (mapLimit) >>> 0);
|
|
2956
|
+
const val36 = +(isLikeNone(maxAssetSize) ? Number.MAX_SAFE_INTEGER : (maxAssetSize) >>> 0);
|
|
2957
|
+
const val37 = +(isLikeNone(documentUrlDepth) ? Number.MAX_SAFE_INTEGER : (documentUrlDepth) >>> 0);
|
|
2958
|
+
const val38 = +(isLikeNone(documentMaxSize) ? Number.MAX_SAFE_INTEGER : (documentMaxSize) >>> 0);
|
|
2959
|
+
const val39 = +(isLikeNone(documentContentEncoding) ? 1 : documentContentEncoding);
|
|
2960
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5 = 0, ptr6 = 0, len6 = 0, ptr7 = 0, ptr8, len8, ptr9, len9, ptr10 = 0, ptr11, len11, ptr12, len12, ptr13, len13, ptr14 = 0, ptr15, len15, ptr16, len16, ptr17, len17, ptr18, len18;
|
|
2961
|
+
try {
|
|
2962
|
+
ptr0 = isLikeNone(includePaths) ? 0 : passArrayJsValueToWasm0(includePaths, wasm.__wbindgen_malloc);
|
|
2963
|
+
len0 = WASM_VECTOR_LEN;
|
|
2964
|
+
ptr1 = isLikeNone(excludePaths) ? 0 : passArrayJsValueToWasm0(excludePaths, wasm.__wbindgen_malloc);
|
|
2965
|
+
len1 = WASM_VECTOR_LEN;
|
|
2966
|
+
ptr2 = isLikeNone(trackingParams) ? 0 : passArrayJsValueToWasm0(trackingParams, wasm.__wbindgen_malloc);
|
|
2967
|
+
len2 = WASM_VECTOR_LEN;
|
|
2968
|
+
ptr3 = isLikeNone(retryCodes) ? 0 : passArray16ToWasm0(retryCodes, wasm.__wbindgen_malloc);
|
|
2969
|
+
len3 = WASM_VECTOR_LEN;
|
|
2970
|
+
ptr4 = isLikeNone(removeTags) ? 0 : passArrayJsValueToWasm0(removeTags, wasm.__wbindgen_malloc);
|
|
2971
|
+
len4 = WASM_VECTOR_LEN;
|
|
2972
|
+
if (!isLikeNone(content)) {
|
|
2973
|
+
_assertClass(content, WasmContentConfig);
|
|
2974
|
+
ptr5 = content.__destroy_into_raw();
|
|
2975
|
+
}
|
|
2976
|
+
if (!isLikeNone(assetTypes)) {
|
|
2977
|
+
len6 = assetTypes.length;
|
|
2978
|
+
ptr6 = wasm.__wbindgen_malloc(len6 * 8, 8) >>> 0;
|
|
2979
|
+
const view6 = getDataViewMemory0();
|
|
2980
|
+
for (let j6 = 0; j6 < len6; j6++) {
|
|
2981
|
+
const e6 = assetTypes[j6];
|
|
2982
|
+
const p6 = ptr6 + j6 * 8;
|
|
2983
|
+
view6.setFloat64(p6 + 0, e6, true);
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
if (!isLikeNone(browser)) {
|
|
2987
|
+
_assertClass(browser, WasmBrowserConfig);
|
|
2988
|
+
ptr7 = browser.__destroy_into_raw();
|
|
2989
|
+
}
|
|
2990
|
+
ptr8 = isLikeNone(userAgents) ? 0 : passArrayJsValueToWasm0(userAgents, wasm.__wbindgen_malloc);
|
|
2991
|
+
len8 = WASM_VECTOR_LEN;
|
|
2992
|
+
ptr9 = isLikeNone(documentMimeTypes) ? 0 : passArrayJsValueToWasm0(documentMimeTypes, wasm.__wbindgen_malloc);
|
|
2993
|
+
len9 = WASM_VECTOR_LEN;
|
|
2994
|
+
if (!isLikeNone(ssrf)) {
|
|
2995
|
+
_assertClass(ssrf, WasmSsrfPolicy);
|
|
2996
|
+
ptr10 = ssrf.__destroy_into_raw();
|
|
2997
|
+
}
|
|
2998
|
+
ptr11 = isLikeNone(bm25Query) ? 0 : passStringToWasm0(bm25Query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2999
|
+
len11 = WASM_VECTOR_LEN;
|
|
3000
|
+
ptr12 = isLikeNone(userAgent) ? 0 : passStringToWasm0(userAgent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3001
|
+
len12 = WASM_VECTOR_LEN;
|
|
3002
|
+
ptr13 = isLikeNone(mapSearch) ? 0 : passStringToWasm0(mapSearch, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3003
|
+
len13 = WASM_VECTOR_LEN;
|
|
3004
|
+
if (!isLikeNone(proxy)) {
|
|
3005
|
+
_assertClass(proxy, WasmProxyConfig);
|
|
3006
|
+
ptr14 = proxy.__destroy_into_raw();
|
|
3007
|
+
}
|
|
3008
|
+
ptr15 = isLikeNone(documentOutputDir) ? 0 : passStringToWasm0(documentOutputDir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3009
|
+
len15 = WASM_VECTOR_LEN;
|
|
3010
|
+
ptr16 = isLikeNone(warcOutput) ? 0 : passStringToWasm0(warcOutput, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3011
|
+
len16 = WASM_VECTOR_LEN;
|
|
3012
|
+
ptr17 = isLikeNone(browserProfile) ? 0 : passStringToWasm0(browserProfile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3013
|
+
len17 = WASM_VECTOR_LEN;
|
|
3014
|
+
ptr18 = isLikeNone(subdomainHeaderAllowlist) ? 0 : passArrayJsValueToWasm0(subdomainHeaderAllowlist, wasm.__wbindgen_malloc);
|
|
3015
|
+
len18 = WASM_VECTOR_LEN;
|
|
3016
|
+
} catch (e) {
|
|
3017
|
+
if (ptr18) { wasm.__externref_drop_slice(ptr18, len18); wasm.__wbindgen_free(ptr18, len18 * 4, 4); }
|
|
3018
|
+
if (ptr17) { wasm.__wbindgen_free(ptr17, len17 * 1, 1); }
|
|
3019
|
+
if (ptr16) { wasm.__wbindgen_free(ptr16, len16 * 1, 1); }
|
|
3020
|
+
if (ptr15) { wasm.__wbindgen_free(ptr15, len15 * 1, 1); }
|
|
3021
|
+
if (ptr14) wasm.__wbg_wasmproxyconfig_free(ptr14, 1);
|
|
3022
|
+
if (ptr13) { wasm.__wbindgen_free(ptr13, len13 * 1, 1); }
|
|
3023
|
+
if (ptr12) { wasm.__wbindgen_free(ptr12, len12 * 1, 1); }
|
|
3024
|
+
if (ptr11) { wasm.__wbindgen_free(ptr11, len11 * 1, 1); }
|
|
3025
|
+
if (ptr10) wasm.__wbg_wasmssrfpolicy_free(ptr10, 1);
|
|
3026
|
+
if (ptr9) { wasm.__externref_drop_slice(ptr9, len9); wasm.__wbindgen_free(ptr9, len9 * 4, 4); }
|
|
3027
|
+
if (ptr8) { wasm.__externref_drop_slice(ptr8, len8); wasm.__wbindgen_free(ptr8, len8 * 4, 4); }
|
|
3028
|
+
if (ptr7) wasm.__wbg_wasmbrowserconfig_free(ptr7, 1);
|
|
3029
|
+
if (ptr6) wasm.__wbindgen_free(ptr6, len6 * 8, 8);
|
|
3030
|
+
if (ptr5) wasm.__wbg_wasmcontentconfig_free(ptr5, 1);
|
|
3031
|
+
if (ptr4) { wasm.__externref_drop_slice(ptr4, len4); wasm.__wbindgen_free(ptr4, len4 * 4, 4); }
|
|
3032
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 2, 2); }
|
|
3033
|
+
if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
|
|
3034
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
3035
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
3036
|
+
throw e;
|
|
3037
|
+
}
|
|
3038
|
+
const ret = wasm.wasmcrawlconfig_new(val20, isLikeNone(respectRobotsTxt) ? 0xFFFFFF : respectRobotsTxt ? 1 : 0, isLikeNone(softHttpErrors) ? 0xFFFFFF : softHttpErrors ? 1 : 0, isLikeNone(stayOnDomain) ? 0xFFFFFF : stayOnDomain ? 1 : 0, isLikeNone(allowSubdomains) ? 0xFFFFFF : allowSubdomains ? 1 : 0, ptr0, len0, ptr1, len1, isLikeNone(pathPatternsMatchQuery) ? 0xFFFFFF : pathPatternsMatchQuery ? 1 : 0, isLikeNone(pathPatternsMatchUrl) ? 0xFFFFFF : pathPatternsMatchUrl ? 1 : 0, isLikeNone(dedupIncludeQuery) ? 0xFFFFFF : dedupIncludeQuery ? 1 : 0, isLikeNone(stripTrackingParams) ? 0xFFFFFF : stripTrackingParams ? 1 : 0, ptr2, len2, isLikeNone(customHeaders) ? 0 : addToExternrefTable0(customHeaders), !isLikeNone(requestTimeout), val21, val22, val23, ptr3, len3, !isLikeNone(retryInitialDelayMs), val24, !isLikeNone(retryMaxDelayMs), val25, !isLikeNone(rateLimitJitterRatio), val26, isLikeNone(cookiesEnabled) ? 0xFFFFFF : cookiesEnabled ? 1 : 0, ptr4, len4, ptr5, isLikeNone(downloadAssets) ? 0xFFFFFF : downloadAssets ? 1 : 0, ptr6, len6, ptr7, ptr8, len8, isLikeNone(captureScreenshot) ? 0xFFFFFF : captureScreenshot ? 1 : 0, isLikeNone(followDocumentUrls) ? 0xFFFFFF : followDocumentUrls ? 1 : 0, isLikeNone(downloadDocuments) ? 0xFFFFFF : downloadDocuments ? 1 : 0, ptr9, len9, isLikeNone(saveBrowserProfile) ? 0xFFFFFF : saveBrowserProfile ? 1 : 0, ptr10, val27, val28, val29, val30, val31, ptr11, len11, !isLikeNone(bm25Threshold), val32, ptr12, len12, !isLikeNone(rateLimitMs), val33, isLikeNone(auth) ? 0 : addToExternrefTable0(auth), val34, val35, ptr13, len13, val36, ptr14, val37, val38, ptr15, len15, val39, ptr16, len16, ptr17, len17, isLikeNone(ssrfDenyPrivateExplicit) ? 0xFFFFFF : ssrfDenyPrivateExplicit ? 1 : 0, isLikeNone(dangerAcceptInvalidCerts) ? 0xFFFFFF : dangerAcceptInvalidCerts ? 1 : 0, ptr18, len18);
|
|
2885
3039
|
this.__wbg_ptr = ret;
|
|
2886
3040
|
WasmCrawlConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
2887
3041
|
return this;
|
|
@@ -3259,7 +3413,7 @@ export class WasmCrawlConfig {
|
|
|
3259
3413
|
wasm.wasmcrawlconfig_set_respectRobotsTxt(this.__wbg_ptr, value);
|
|
3260
3414
|
}
|
|
3261
3415
|
/**
|
|
3262
|
-
* @param {Uint16Array} value
|
|
3416
|
+
* @param {Uint16Array | number[]} value
|
|
3263
3417
|
*/
|
|
3264
3418
|
set retryCodes(value) {
|
|
3265
3419
|
const ptr0 = passArray16ToWasm0(value, wasm.__wbindgen_malloc);
|
|
@@ -3782,51 +3936,72 @@ export class WasmCrawlPageResult {
|
|
|
3782
3936
|
* @param {string | null} [originalUrl]
|
|
3783
3937
|
*/
|
|
3784
3938
|
constructor(url, normalizedUrl, statusCode, contentType, html, bodySize, metadata, links, images, feeds, jsonLd, depth, stayedOnDomain, wasSkipped, isPdf, browserUsed, finalUrl, redirectCount, noindexDetected, nofollowDetected, ssrfRefusedUrls, detectedCharset, markdown, extractedData, extractionMeta, downloadedDocument, originalUrl) {
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3939
|
+
const val17 = +(isLikeNone(statusCode) ? 0xFFFFFF : statusCode);
|
|
3940
|
+
const val18 = +(isLikeNone(bodySize) ? Number.MAX_SAFE_INTEGER : (bodySize) >>> 0);
|
|
3941
|
+
const val19 = +(isLikeNone(depth) ? Number.MAX_SAFE_INTEGER : (depth) >>> 0);
|
|
3942
|
+
const val20 = +(isLikeNone(redirectCount) ? Number.MAX_SAFE_INTEGER : (redirectCount) >>> 0);
|
|
3943
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4 = 0, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, ptr11, len11, ptr12 = 0, ptr13 = 0, ptr14 = 0, ptr15, len15;
|
|
3944
|
+
try {
|
|
3945
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3946
|
+
len0 = WASM_VECTOR_LEN;
|
|
3947
|
+
ptr1 = isLikeNone(normalizedUrl) ? 0 : passStringToWasm0(normalizedUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3948
|
+
len1 = WASM_VECTOR_LEN;
|
|
3949
|
+
ptr2 = isLikeNone(contentType) ? 0 : passStringToWasm0(contentType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3950
|
+
len2 = WASM_VECTOR_LEN;
|
|
3951
|
+
ptr3 = isLikeNone(html) ? 0 : passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3952
|
+
len3 = WASM_VECTOR_LEN;
|
|
3953
|
+
if (!isLikeNone(metadata)) {
|
|
3954
|
+
_assertClass(metadata, WasmPageMetadata);
|
|
3955
|
+
ptr4 = metadata.__destroy_into_raw();
|
|
3956
|
+
}
|
|
3957
|
+
ptr5 = isLikeNone(links) ? 0 : passArrayJsValueToWasm0(links, wasm.__wbindgen_malloc);
|
|
3958
|
+
len5 = WASM_VECTOR_LEN;
|
|
3959
|
+
ptr6 = isLikeNone(images) ? 0 : passArrayJsValueToWasm0(images, wasm.__wbindgen_malloc);
|
|
3960
|
+
len6 = WASM_VECTOR_LEN;
|
|
3961
|
+
ptr7 = isLikeNone(feeds) ? 0 : passArrayJsValueToWasm0(feeds, wasm.__wbindgen_malloc);
|
|
3962
|
+
len7 = WASM_VECTOR_LEN;
|
|
3963
|
+
ptr8 = isLikeNone(jsonLd) ? 0 : passArrayJsValueToWasm0(jsonLd, wasm.__wbindgen_malloc);
|
|
3964
|
+
len8 = WASM_VECTOR_LEN;
|
|
3965
|
+
ptr9 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3966
|
+
len9 = WASM_VECTOR_LEN;
|
|
3967
|
+
ptr10 = isLikeNone(ssrfRefusedUrls) ? 0 : passArrayJsValueToWasm0(ssrfRefusedUrls, wasm.__wbindgen_malloc);
|
|
3968
|
+
len10 = WASM_VECTOR_LEN;
|
|
3969
|
+
ptr11 = isLikeNone(detectedCharset) ? 0 : passStringToWasm0(detectedCharset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3970
|
+
len11 = WASM_VECTOR_LEN;
|
|
3971
|
+
if (!isLikeNone(markdown)) {
|
|
3972
|
+
_assertClass(markdown, WasmMarkdownResult);
|
|
3973
|
+
ptr12 = markdown.__destroy_into_raw();
|
|
3974
|
+
}
|
|
3975
|
+
if (!isLikeNone(extractionMeta)) {
|
|
3976
|
+
_assertClass(extractionMeta, WasmExtractionMeta);
|
|
3977
|
+
ptr13 = extractionMeta.__destroy_into_raw();
|
|
3978
|
+
}
|
|
3979
|
+
if (!isLikeNone(downloadedDocument)) {
|
|
3980
|
+
_assertClass(downloadedDocument, WasmDownloadedDocument);
|
|
3981
|
+
ptr14 = downloadedDocument.__destroy_into_raw();
|
|
3982
|
+
}
|
|
3983
|
+
ptr15 = isLikeNone(originalUrl) ? 0 : passStringToWasm0(originalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3984
|
+
len15 = WASM_VECTOR_LEN;
|
|
3985
|
+
} catch (e) {
|
|
3986
|
+
if (ptr15) { wasm.__wbindgen_free(ptr15, len15 * 1, 1); }
|
|
3987
|
+
if (ptr14) wasm.__wbg_wasmdownloadeddocument_free(ptr14, 1);
|
|
3988
|
+
if (ptr13) wasm.__wbg_wasmextractionmeta_free(ptr13, 1);
|
|
3989
|
+
if (ptr12) wasm.__wbg_wasmmarkdownresult_free(ptr12, 1);
|
|
3990
|
+
if (ptr11) { wasm.__wbindgen_free(ptr11, len11 * 1, 1); }
|
|
3991
|
+
if (ptr10) { wasm.__externref_drop_slice(ptr10, len10); wasm.__wbindgen_free(ptr10, len10 * 4, 4); }
|
|
3992
|
+
if (ptr9) { wasm.__wbindgen_free(ptr9, len9 * 1, 1); }
|
|
3993
|
+
if (ptr8) { wasm.__externref_drop_slice(ptr8, len8); wasm.__wbindgen_free(ptr8, len8 * 4, 4); }
|
|
3994
|
+
if (ptr7) { wasm.__externref_drop_slice(ptr7, len7); wasm.__wbindgen_free(ptr7, len7 * 4, 4); }
|
|
3995
|
+
if (ptr6) { wasm.__externref_drop_slice(ptr6, len6); wasm.__wbindgen_free(ptr6, len6 * 4, 4); }
|
|
3996
|
+
if (ptr5) { wasm.__externref_drop_slice(ptr5, len5); wasm.__wbindgen_free(ptr5, len5 * 4, 4); }
|
|
3997
|
+
if (ptr4) wasm.__wbg_wasmpagemetadata_free(ptr4, 1);
|
|
3998
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
3999
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
4000
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
4001
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
4002
|
+
throw e;
|
|
4003
|
+
}
|
|
4004
|
+
const ret = wasm.wasmcrawlpageresult_new(ptr0, len0, ptr1, len1, val17, ptr2, len2, ptr3, len3, val18, ptr4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, val19, isLikeNone(stayedOnDomain) ? 0xFFFFFF : stayedOnDomain ? 1 : 0, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, isLikeNone(isPdf) ? 0xFFFFFF : isPdf ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, ptr9, len9, val20, isLikeNone(noindexDetected) ? 0xFFFFFF : noindexDetected ? 1 : 0, isLikeNone(nofollowDetected) ? 0xFFFFFF : nofollowDetected ? 1 : 0, ptr10, len10, ptr11, len11, ptr12, isLikeNone(extractedData) ? 0 : addToExternrefTable0(extractedData), ptr13, ptr14, ptr15, len15);
|
|
3830
4005
|
this.__wbg_ptr = ret;
|
|
3831
4006
|
WasmCrawlPageResultFinalization.register(this, this.__wbg_ptr, this);
|
|
3832
4007
|
return this;
|
|
@@ -4240,20 +4415,30 @@ export class WasmCrawlResult {
|
|
|
4240
4415
|
* @param {WasmWafBlockDetails | null} [wafBlock]
|
|
4241
4416
|
*/
|
|
4242
4417
|
constructor(pages, finalUrl, redirectCount, wasSkipped, cookies, stayedOnDomain, browserUsed, error, wafBlock) {
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4418
|
+
const val6 = +(isLikeNone(redirectCount) ? Number.MAX_SAFE_INTEGER : (redirectCount) >>> 0);
|
|
4419
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4 = 0;
|
|
4420
|
+
try {
|
|
4421
|
+
ptr0 = isLikeNone(pages) ? 0 : passArrayJsValueToWasm0(pages, wasm.__wbindgen_malloc);
|
|
4422
|
+
len0 = WASM_VECTOR_LEN;
|
|
4423
|
+
ptr1 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4424
|
+
len1 = WASM_VECTOR_LEN;
|
|
4425
|
+
ptr2 = isLikeNone(cookies) ? 0 : passArrayJsValueToWasm0(cookies, wasm.__wbindgen_malloc);
|
|
4426
|
+
len2 = WASM_VECTOR_LEN;
|
|
4427
|
+
ptr3 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4428
|
+
len3 = WASM_VECTOR_LEN;
|
|
4429
|
+
if (!isLikeNone(wafBlock)) {
|
|
4430
|
+
_assertClass(wafBlock, WasmWafBlockDetails);
|
|
4431
|
+
ptr4 = wafBlock.__destroy_into_raw();
|
|
4432
|
+
}
|
|
4433
|
+
} catch (e) {
|
|
4434
|
+
if (ptr4) wasm.__wbg_wasmwafblockdetails_free(ptr4, 1);
|
|
4435
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
4436
|
+
if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
|
|
4437
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
4438
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
4439
|
+
throw e;
|
|
4440
|
+
}
|
|
4441
|
+
const ret = wasm.wasmcrawlresult_new(ptr0, len0, ptr1, len1, val6, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, ptr2, len2, isLikeNone(stayedOnDomain) ? 0xFFFFFF : stayedOnDomain ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, ptr3, len3, ptr4);
|
|
4257
4442
|
this.__wbg_ptr = ret;
|
|
4258
4443
|
WasmCrawlResultFinalization.register(this, this.__wbg_ptr, this);
|
|
4259
4444
|
return this;
|
|
@@ -4525,15 +4710,26 @@ export class WasmDownloadedAsset {
|
|
|
4525
4710
|
* @param {string | null} [htmlTag]
|
|
4526
4711
|
*/
|
|
4527
4712
|
constructor(url, contentHash, size, assetCategory, mimeType, htmlTag) {
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4713
|
+
const val5 = +(isLikeNone(size) ? Number.MAX_SAFE_INTEGER : (size) >>> 0);
|
|
4714
|
+
const val6 = +(isLikeNone(assetCategory) ? 10 : assetCategory);
|
|
4715
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
4716
|
+
try {
|
|
4717
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4718
|
+
len0 = WASM_VECTOR_LEN;
|
|
4719
|
+
ptr1 = isLikeNone(contentHash) ? 0 : passStringToWasm0(contentHash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4720
|
+
len1 = WASM_VECTOR_LEN;
|
|
4721
|
+
ptr2 = isLikeNone(mimeType) ? 0 : passStringToWasm0(mimeType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4722
|
+
len2 = WASM_VECTOR_LEN;
|
|
4723
|
+
ptr3 = isLikeNone(htmlTag) ? 0 : passStringToWasm0(htmlTag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4724
|
+
len3 = WASM_VECTOR_LEN;
|
|
4725
|
+
} catch (e) {
|
|
4726
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
4727
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
4728
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
4729
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
4730
|
+
throw e;
|
|
4731
|
+
}
|
|
4732
|
+
const ret = wasm.wasmdownloadedasset_new(ptr0, len0, ptr1, len1, val5, val6, ptr2, len2, ptr3, len3);
|
|
4537
4733
|
this.__wbg_ptr = ret;
|
|
4538
4734
|
WasmDownloadedAssetFinalization.register(this, this.__wbg_ptr, this);
|
|
4539
4735
|
return this;
|
|
@@ -4734,19 +4930,31 @@ export class WasmDownloadedDocument {
|
|
|
4734
4930
|
* @param {string | null} [contentBase64]
|
|
4735
4931
|
*/
|
|
4736
4932
|
constructor(url, mimeType, size, contentHash, headers, truncated, filename, contentPath, contentBase64) {
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4933
|
+
const val7 = +(isLikeNone(size) ? Number.MAX_SAFE_INTEGER : (size) >>> 0);
|
|
4934
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5;
|
|
4935
|
+
try {
|
|
4936
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4937
|
+
len0 = WASM_VECTOR_LEN;
|
|
4938
|
+
ptr1 = isLikeNone(mimeType) ? 0 : passStringToWasm0(mimeType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4939
|
+
len1 = WASM_VECTOR_LEN;
|
|
4940
|
+
ptr2 = isLikeNone(contentHash) ? 0 : passStringToWasm0(contentHash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4941
|
+
len2 = WASM_VECTOR_LEN;
|
|
4942
|
+
ptr3 = isLikeNone(filename) ? 0 : passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4943
|
+
len3 = WASM_VECTOR_LEN;
|
|
4944
|
+
ptr4 = isLikeNone(contentPath) ? 0 : passStringToWasm0(contentPath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4945
|
+
len4 = WASM_VECTOR_LEN;
|
|
4946
|
+
ptr5 = isLikeNone(contentBase64) ? 0 : passStringToWasm0(contentBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4947
|
+
len5 = WASM_VECTOR_LEN;
|
|
4948
|
+
} catch (e) {
|
|
4949
|
+
if (ptr5) { wasm.__wbindgen_free(ptr5, len5 * 1, 1); }
|
|
4950
|
+
if (ptr4) { wasm.__wbindgen_free(ptr4, len4 * 1, 1); }
|
|
4951
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
4952
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
4953
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
4954
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
4955
|
+
throw e;
|
|
4956
|
+
}
|
|
4957
|
+
const ret = wasm.wasmdownloadeddocument_new(ptr0, len0, ptr1, len1, val7, ptr2, len2, isLikeNone(headers) ? 0 : addToExternrefTable0(headers), isLikeNone(truncated) ? 0xFFFFFF : truncated ? 1 : 0, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
4750
4958
|
this.__wbg_ptr = ret;
|
|
4751
4959
|
WasmDownloadedDocumentFinalization.register(this, this.__wbg_ptr, this);
|
|
4752
4960
|
return this;
|
|
@@ -4928,9 +5136,13 @@ export class WasmExtractionMeta {
|
|
|
4928
5136
|
* @param {string | null} [model]
|
|
4929
5137
|
*/
|
|
4930
5138
|
constructor(chunksProcessed, cost, promptTokens, completionTokens, model) {
|
|
5139
|
+
const val2 = +(isLikeNone(chunksProcessed) ? Number.MAX_SAFE_INTEGER : (chunksProcessed) >>> 0);
|
|
5140
|
+
const val3 = +(isLikeNone(cost) ? 0 : cost);
|
|
5141
|
+
const val4 = BigInt.asIntN(64, (isLikeNone(promptTokens) ? BigInt(0) : promptTokens));
|
|
5142
|
+
const val5 = BigInt.asIntN(64, (isLikeNone(completionTokens) ? BigInt(0) : completionTokens));
|
|
4931
5143
|
var ptr0 = isLikeNone(model) ? 0 : passStringToWasm0(model, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4932
5144
|
var len0 = WASM_VECTOR_LEN;
|
|
4933
|
-
const ret = wasm.wasmextractionmeta_new(
|
|
5145
|
+
const ret = wasm.wasmextractionmeta_new(val2, !isLikeNone(cost), val3, !isLikeNone(promptTokens), val4, !isLikeNone(completionTokens), val5, ptr0, len0);
|
|
4934
5146
|
this.__wbg_ptr = ret;
|
|
4935
5147
|
WasmExtractionMetaFinalization.register(this, this.__wbg_ptr, this);
|
|
4936
5148
|
return this;
|
|
@@ -5040,14 +5252,23 @@ export class WasmFaviconInfo {
|
|
|
5040
5252
|
* @param {string | null} [mimeType]
|
|
5041
5253
|
*/
|
|
5042
5254
|
constructor(url, rel, sizes, mimeType) {
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5255
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
5256
|
+
try {
|
|
5257
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5258
|
+
len0 = WASM_VECTOR_LEN;
|
|
5259
|
+
ptr1 = isLikeNone(rel) ? 0 : passStringToWasm0(rel, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5260
|
+
len1 = WASM_VECTOR_LEN;
|
|
5261
|
+
ptr2 = isLikeNone(sizes) ? 0 : passStringToWasm0(sizes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5262
|
+
len2 = WASM_VECTOR_LEN;
|
|
5263
|
+
ptr3 = isLikeNone(mimeType) ? 0 : passStringToWasm0(mimeType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5264
|
+
len3 = WASM_VECTOR_LEN;
|
|
5265
|
+
} catch (e) {
|
|
5266
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
5267
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
5268
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
5269
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
5270
|
+
throw e;
|
|
5271
|
+
}
|
|
5051
5272
|
const ret = wasm.wasmfaviconinfo_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
5052
5273
|
this.__wbg_ptr = ret;
|
|
5053
5274
|
WasmFaviconInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -5195,11 +5416,19 @@ export class WasmFeedInfo {
|
|
|
5195
5416
|
* @param {string | null} [title]
|
|
5196
5417
|
*/
|
|
5197
5418
|
constructor(url, feedType, title) {
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5419
|
+
const val3 = +(isLikeNone(feedType) ? 3 : feedType);
|
|
5420
|
+
let ptr0, len0, ptr1, len1;
|
|
5421
|
+
try {
|
|
5422
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5423
|
+
len0 = WASM_VECTOR_LEN;
|
|
5424
|
+
ptr1 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5425
|
+
len1 = WASM_VECTOR_LEN;
|
|
5426
|
+
} catch (e) {
|
|
5427
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
5428
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
5429
|
+
throw e;
|
|
5430
|
+
}
|
|
5431
|
+
const ret = wasm.wasmfeedinfo_new(ptr0, len0, val3, ptr1, len1);
|
|
5203
5432
|
this.__wbg_ptr = ret;
|
|
5204
5433
|
WasmFeedInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
5205
5434
|
return this;
|
|
@@ -5322,9 +5551,10 @@ export class WasmHeadingInfo {
|
|
|
5322
5551
|
* @param {string | null} [text]
|
|
5323
5552
|
*/
|
|
5324
5553
|
constructor(level, text) {
|
|
5554
|
+
const val2 = +(isLikeNone(level) ? 0xFFFFFF : level);
|
|
5325
5555
|
var ptr0 = isLikeNone(text) ? 0 : passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5326
5556
|
var len0 = WASM_VECTOR_LEN;
|
|
5327
|
-
const ret = wasm.wasmheadinginfo_new(
|
|
5557
|
+
const ret = wasm.wasmheadinginfo_new(val2, ptr0, len0);
|
|
5328
5558
|
this.__wbg_ptr = ret;
|
|
5329
5559
|
WasmHeadingInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
5330
5560
|
return this;
|
|
@@ -5518,10 +5748,17 @@ export class WasmHreflangEntry {
|
|
|
5518
5748
|
* @param {string | null} [url]
|
|
5519
5749
|
*/
|
|
5520
5750
|
constructor(lang, url) {
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5751
|
+
let ptr0, len0, ptr1, len1;
|
|
5752
|
+
try {
|
|
5753
|
+
ptr0 = isLikeNone(lang) ? 0 : passStringToWasm0(lang, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5754
|
+
len0 = WASM_VECTOR_LEN;
|
|
5755
|
+
ptr1 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5756
|
+
len1 = WASM_VECTOR_LEN;
|
|
5757
|
+
} catch (e) {
|
|
5758
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
5759
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
5760
|
+
throw e;
|
|
5761
|
+
}
|
|
5525
5762
|
const ret = wasm.wasmhreflangentry_new(ptr0, len0, ptr1, len1);
|
|
5526
5763
|
this.__wbg_ptr = ret;
|
|
5527
5764
|
WasmHreflangEntryFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -5632,11 +5869,21 @@ export class WasmImageInfo {
|
|
|
5632
5869
|
* @param {number | null} [height]
|
|
5633
5870
|
*/
|
|
5634
5871
|
constructor(url, source, alt, width, height) {
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5872
|
+
const val3 = +(isLikeNone(source) ? 4 : source);
|
|
5873
|
+
const val4 = +(isLikeNone(width) ? Number.MAX_SAFE_INTEGER : (width) >>> 0);
|
|
5874
|
+
const val5 = +(isLikeNone(height) ? Number.MAX_SAFE_INTEGER : (height) >>> 0);
|
|
5875
|
+
let ptr0, len0, ptr1, len1;
|
|
5876
|
+
try {
|
|
5877
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5878
|
+
len0 = WASM_VECTOR_LEN;
|
|
5879
|
+
ptr1 = isLikeNone(alt) ? 0 : passStringToWasm0(alt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5880
|
+
len1 = WASM_VECTOR_LEN;
|
|
5881
|
+
} catch (e) {
|
|
5882
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
5883
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
5884
|
+
throw e;
|
|
5885
|
+
}
|
|
5886
|
+
const ret = wasm.wasmimageinfo_new(ptr0, len0, val3, ptr1, len1, val4, val5);
|
|
5640
5887
|
this.__wbg_ptr = ret;
|
|
5641
5888
|
WasmImageInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
5642
5889
|
return this;
|
|
@@ -5818,16 +6065,26 @@ export class WasmInteractionResult {
|
|
|
5818
6065
|
* @param {string | null} [screenshotBase64]
|
|
5819
6066
|
*/
|
|
5820
6067
|
constructor(actionResults, finalHtml, finalUrl, ssrfRefusedUrls, screenshotBase64) {
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
6068
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4;
|
|
6069
|
+
try {
|
|
6070
|
+
ptr0 = isLikeNone(actionResults) ? 0 : passArrayJsValueToWasm0(actionResults, wasm.__wbindgen_malloc);
|
|
6071
|
+
len0 = WASM_VECTOR_LEN;
|
|
6072
|
+
ptr1 = isLikeNone(finalHtml) ? 0 : passStringToWasm0(finalHtml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6073
|
+
len1 = WASM_VECTOR_LEN;
|
|
6074
|
+
ptr2 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6075
|
+
len2 = WASM_VECTOR_LEN;
|
|
6076
|
+
ptr3 = isLikeNone(ssrfRefusedUrls) ? 0 : passArrayJsValueToWasm0(ssrfRefusedUrls, wasm.__wbindgen_malloc);
|
|
6077
|
+
len3 = WASM_VECTOR_LEN;
|
|
6078
|
+
ptr4 = isLikeNone(screenshotBase64) ? 0 : passStringToWasm0(screenshotBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6079
|
+
len4 = WASM_VECTOR_LEN;
|
|
6080
|
+
} catch (e) {
|
|
6081
|
+
if (ptr4) { wasm.__wbindgen_free(ptr4, len4 * 1, 1); }
|
|
6082
|
+
if (ptr3) { wasm.__externref_drop_slice(ptr3, len3); wasm.__wbindgen_free(ptr3, len3 * 4, 4); }
|
|
6083
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
6084
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
6085
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
6086
|
+
throw e;
|
|
6087
|
+
}
|
|
5831
6088
|
const ret = wasm.wasminteractionresult_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
5832
6089
|
this.__wbg_ptr = ret;
|
|
5833
6090
|
WasmInteractionResultFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -5962,12 +6219,20 @@ export class WasmJsonLdEntry {
|
|
|
5962
6219
|
* @param {string | null} [name]
|
|
5963
6220
|
*/
|
|
5964
6221
|
constructor(schemaType, raw, name) {
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
6222
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
6223
|
+
try {
|
|
6224
|
+
ptr0 = isLikeNone(schemaType) ? 0 : passStringToWasm0(schemaType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6225
|
+
len0 = WASM_VECTOR_LEN;
|
|
6226
|
+
ptr1 = isLikeNone(raw) ? 0 : passStringToWasm0(raw, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6227
|
+
len1 = WASM_VECTOR_LEN;
|
|
6228
|
+
ptr2 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6229
|
+
len2 = WASM_VECTOR_LEN;
|
|
6230
|
+
} catch (e) {
|
|
6231
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
6232
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
6233
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
6234
|
+
throw e;
|
|
6235
|
+
}
|
|
5971
6236
|
const ret = wasm.wasmjsonldentry_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
5972
6237
|
this.__wbg_ptr = ret;
|
|
5973
6238
|
WasmJsonLdEntryFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -6098,15 +6363,25 @@ export class WasmLinkInfo {
|
|
|
6098
6363
|
* @param {string | null} [originalUrl]
|
|
6099
6364
|
*/
|
|
6100
6365
|
constructor(url, text, linkType, nofollow, rel, originalUrl) {
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6366
|
+
const val5 = +(isLikeNone(linkType) ? 4 : linkType);
|
|
6367
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
6368
|
+
try {
|
|
6369
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6370
|
+
len0 = WASM_VECTOR_LEN;
|
|
6371
|
+
ptr1 = isLikeNone(text) ? 0 : passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6372
|
+
len1 = WASM_VECTOR_LEN;
|
|
6373
|
+
ptr2 = isLikeNone(rel) ? 0 : passStringToWasm0(rel, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6374
|
+
len2 = WASM_VECTOR_LEN;
|
|
6375
|
+
ptr3 = isLikeNone(originalUrl) ? 0 : passStringToWasm0(originalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6376
|
+
len3 = WASM_VECTOR_LEN;
|
|
6377
|
+
} catch (e) {
|
|
6378
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
6379
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
6380
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
6381
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
6382
|
+
throw e;
|
|
6383
|
+
}
|
|
6384
|
+
const ret = wasm.wasmlinkinfo_new(ptr0, len0, ptr1, len1, val5, isLikeNone(nofollow) ? 0xFFFFFF : nofollow ? 1 : 0, ptr2, len2, ptr3, len3);
|
|
6110
6385
|
this.__wbg_ptr = ret;
|
|
6111
6386
|
WasmLinkInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
6112
6387
|
return this;
|
|
@@ -6400,12 +6675,20 @@ export class WasmMarkdownResult {
|
|
|
6400
6675
|
* @param {string | null} [fitContent]
|
|
6401
6676
|
*/
|
|
6402
6677
|
constructor(content, tables, warnings, citations, documentStructure, fitContent) {
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6678
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
6679
|
+
try {
|
|
6680
|
+
ptr0 = isLikeNone(content) ? 0 : passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6681
|
+
len0 = WASM_VECTOR_LEN;
|
|
6682
|
+
ptr1 = isLikeNone(warnings) ? 0 : passArrayJsValueToWasm0(warnings, wasm.__wbindgen_malloc);
|
|
6683
|
+
len1 = WASM_VECTOR_LEN;
|
|
6684
|
+
ptr2 = isLikeNone(fitContent) ? 0 : passStringToWasm0(fitContent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6685
|
+
len2 = WASM_VECTOR_LEN;
|
|
6686
|
+
} catch (e) {
|
|
6687
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
6688
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
6689
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
6690
|
+
throw e;
|
|
6691
|
+
}
|
|
6409
6692
|
const ret = wasm.wasmmarkdownresult_new(ptr0, len0, isLikeNone(tables) ? 0 : addToExternrefTable0(tables), ptr1, len1, isLikeNone(citations) ? 0xFFFFFF : citations ? 1 : 0, isLikeNone(documentStructure) ? 0 : addToExternrefTable0(documentStructure), ptr2, len2);
|
|
6410
6693
|
this.__wbg_ptr = ret;
|
|
6411
6694
|
WasmMarkdownResultFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -7027,94 +7310,141 @@ export class WasmPageMetadata {
|
|
|
7027
7310
|
* @param {number | null} [wordCount]
|
|
7028
7311
|
*/
|
|
7029
7312
|
constructor(title, description, canonicalUrl, keywords, author, viewport, themeColor, generator, robots, htmlLang, htmlDir, ogTitle, ogType, ogImage, ogDescription, ogUrl, ogSiteName, ogLocale, ogVideo, ogAudio, ogLocaleAlternates, twitterCard, twitterTitle, twitterDescription, twitterImage, twitterSite, twitterCreator, dcTitle, dcCreator, dcSubject, dcDescription, dcPublisher, dcDate, dcType, dcFormat, dcIdentifier, dcLanguage, dcRights, article, hreflangs, favicons, headings, wordCount) {
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7313
|
+
const val43 = +(isLikeNone(wordCount) ? Number.MAX_SAFE_INTEGER : (wordCount) >>> 0);
|
|
7314
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, ptr11, len11, ptr12, len12, ptr13, len13, ptr14, len14, ptr15, len15, ptr16, len16, ptr17, len17, ptr18, len18, ptr19, len19, ptr20, len20, ptr21, len21, ptr22, len22, ptr23, len23, ptr24, len24, ptr25, len25, ptr26, len26, ptr27, len27, ptr28, len28, ptr29, len29, ptr30, len30, ptr31, len31, ptr32, len32, ptr33, len33, ptr34, len34, ptr35, len35, ptr36, len36, ptr37, len37, ptr38 = 0, ptr39, len39, ptr40, len40, ptr41, len41;
|
|
7315
|
+
try {
|
|
7316
|
+
ptr0 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7317
|
+
len0 = WASM_VECTOR_LEN;
|
|
7318
|
+
ptr1 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7319
|
+
len1 = WASM_VECTOR_LEN;
|
|
7320
|
+
ptr2 = isLikeNone(canonicalUrl) ? 0 : passStringToWasm0(canonicalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7321
|
+
len2 = WASM_VECTOR_LEN;
|
|
7322
|
+
ptr3 = isLikeNone(keywords) ? 0 : passStringToWasm0(keywords, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7323
|
+
len3 = WASM_VECTOR_LEN;
|
|
7324
|
+
ptr4 = isLikeNone(author) ? 0 : passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7325
|
+
len4 = WASM_VECTOR_LEN;
|
|
7326
|
+
ptr5 = isLikeNone(viewport) ? 0 : passStringToWasm0(viewport, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7327
|
+
len5 = WASM_VECTOR_LEN;
|
|
7328
|
+
ptr6 = isLikeNone(themeColor) ? 0 : passStringToWasm0(themeColor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7329
|
+
len6 = WASM_VECTOR_LEN;
|
|
7330
|
+
ptr7 = isLikeNone(generator) ? 0 : passStringToWasm0(generator, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7331
|
+
len7 = WASM_VECTOR_LEN;
|
|
7332
|
+
ptr8 = isLikeNone(robots) ? 0 : passStringToWasm0(robots, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7333
|
+
len8 = WASM_VECTOR_LEN;
|
|
7334
|
+
ptr9 = isLikeNone(htmlLang) ? 0 : passStringToWasm0(htmlLang, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7335
|
+
len9 = WASM_VECTOR_LEN;
|
|
7336
|
+
ptr10 = isLikeNone(htmlDir) ? 0 : passStringToWasm0(htmlDir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7337
|
+
len10 = WASM_VECTOR_LEN;
|
|
7338
|
+
ptr11 = isLikeNone(ogTitle) ? 0 : passStringToWasm0(ogTitle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7339
|
+
len11 = WASM_VECTOR_LEN;
|
|
7340
|
+
ptr12 = isLikeNone(ogType) ? 0 : passStringToWasm0(ogType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7341
|
+
len12 = WASM_VECTOR_LEN;
|
|
7342
|
+
ptr13 = isLikeNone(ogImage) ? 0 : passStringToWasm0(ogImage, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7343
|
+
len13 = WASM_VECTOR_LEN;
|
|
7344
|
+
ptr14 = isLikeNone(ogDescription) ? 0 : passStringToWasm0(ogDescription, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7345
|
+
len14 = WASM_VECTOR_LEN;
|
|
7346
|
+
ptr15 = isLikeNone(ogUrl) ? 0 : passStringToWasm0(ogUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7347
|
+
len15 = WASM_VECTOR_LEN;
|
|
7348
|
+
ptr16 = isLikeNone(ogSiteName) ? 0 : passStringToWasm0(ogSiteName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7349
|
+
len16 = WASM_VECTOR_LEN;
|
|
7350
|
+
ptr17 = isLikeNone(ogLocale) ? 0 : passStringToWasm0(ogLocale, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7351
|
+
len17 = WASM_VECTOR_LEN;
|
|
7352
|
+
ptr18 = isLikeNone(ogVideo) ? 0 : passStringToWasm0(ogVideo, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7353
|
+
len18 = WASM_VECTOR_LEN;
|
|
7354
|
+
ptr19 = isLikeNone(ogAudio) ? 0 : passStringToWasm0(ogAudio, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7355
|
+
len19 = WASM_VECTOR_LEN;
|
|
7356
|
+
ptr20 = isLikeNone(ogLocaleAlternates) ? 0 : passArrayJsValueToWasm0(ogLocaleAlternates, wasm.__wbindgen_malloc);
|
|
7357
|
+
len20 = WASM_VECTOR_LEN;
|
|
7358
|
+
ptr21 = isLikeNone(twitterCard) ? 0 : passStringToWasm0(twitterCard, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7359
|
+
len21 = WASM_VECTOR_LEN;
|
|
7360
|
+
ptr22 = isLikeNone(twitterTitle) ? 0 : passStringToWasm0(twitterTitle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7361
|
+
len22 = WASM_VECTOR_LEN;
|
|
7362
|
+
ptr23 = isLikeNone(twitterDescription) ? 0 : passStringToWasm0(twitterDescription, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7363
|
+
len23 = WASM_VECTOR_LEN;
|
|
7364
|
+
ptr24 = isLikeNone(twitterImage) ? 0 : passStringToWasm0(twitterImage, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7365
|
+
len24 = WASM_VECTOR_LEN;
|
|
7366
|
+
ptr25 = isLikeNone(twitterSite) ? 0 : passStringToWasm0(twitterSite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7367
|
+
len25 = WASM_VECTOR_LEN;
|
|
7368
|
+
ptr26 = isLikeNone(twitterCreator) ? 0 : passStringToWasm0(twitterCreator, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7369
|
+
len26 = WASM_VECTOR_LEN;
|
|
7370
|
+
ptr27 = isLikeNone(dcTitle) ? 0 : passStringToWasm0(dcTitle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7371
|
+
len27 = WASM_VECTOR_LEN;
|
|
7372
|
+
ptr28 = isLikeNone(dcCreator) ? 0 : passStringToWasm0(dcCreator, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7373
|
+
len28 = WASM_VECTOR_LEN;
|
|
7374
|
+
ptr29 = isLikeNone(dcSubject) ? 0 : passStringToWasm0(dcSubject, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7375
|
+
len29 = WASM_VECTOR_LEN;
|
|
7376
|
+
ptr30 = isLikeNone(dcDescription) ? 0 : passStringToWasm0(dcDescription, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7377
|
+
len30 = WASM_VECTOR_LEN;
|
|
7378
|
+
ptr31 = isLikeNone(dcPublisher) ? 0 : passStringToWasm0(dcPublisher, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7379
|
+
len31 = WASM_VECTOR_LEN;
|
|
7380
|
+
ptr32 = isLikeNone(dcDate) ? 0 : passStringToWasm0(dcDate, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7381
|
+
len32 = WASM_VECTOR_LEN;
|
|
7382
|
+
ptr33 = isLikeNone(dcType) ? 0 : passStringToWasm0(dcType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7383
|
+
len33 = WASM_VECTOR_LEN;
|
|
7384
|
+
ptr34 = isLikeNone(dcFormat) ? 0 : passStringToWasm0(dcFormat, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7385
|
+
len34 = WASM_VECTOR_LEN;
|
|
7386
|
+
ptr35 = isLikeNone(dcIdentifier) ? 0 : passStringToWasm0(dcIdentifier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7387
|
+
len35 = WASM_VECTOR_LEN;
|
|
7388
|
+
ptr36 = isLikeNone(dcLanguage) ? 0 : passStringToWasm0(dcLanguage, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7389
|
+
len36 = WASM_VECTOR_LEN;
|
|
7390
|
+
ptr37 = isLikeNone(dcRights) ? 0 : passStringToWasm0(dcRights, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7391
|
+
len37 = WASM_VECTOR_LEN;
|
|
7392
|
+
if (!isLikeNone(article)) {
|
|
7393
|
+
_assertClass(article, WasmArticleMetadata);
|
|
7394
|
+
ptr38 = article.__destroy_into_raw();
|
|
7395
|
+
}
|
|
7396
|
+
ptr39 = isLikeNone(hreflangs) ? 0 : passArrayJsValueToWasm0(hreflangs, wasm.__wbindgen_malloc);
|
|
7397
|
+
len39 = WASM_VECTOR_LEN;
|
|
7398
|
+
ptr40 = isLikeNone(favicons) ? 0 : passArrayJsValueToWasm0(favicons, wasm.__wbindgen_malloc);
|
|
7399
|
+
len40 = WASM_VECTOR_LEN;
|
|
7400
|
+
ptr41 = isLikeNone(headings) ? 0 : passArrayJsValueToWasm0(headings, wasm.__wbindgen_malloc);
|
|
7401
|
+
len41 = WASM_VECTOR_LEN;
|
|
7402
|
+
} catch (e) {
|
|
7403
|
+
if (ptr41) { wasm.__externref_drop_slice(ptr41, len41); wasm.__wbindgen_free(ptr41, len41 * 4, 4); }
|
|
7404
|
+
if (ptr40) { wasm.__externref_drop_slice(ptr40, len40); wasm.__wbindgen_free(ptr40, len40 * 4, 4); }
|
|
7405
|
+
if (ptr39) { wasm.__externref_drop_slice(ptr39, len39); wasm.__wbindgen_free(ptr39, len39 * 4, 4); }
|
|
7406
|
+
if (ptr38) wasm.__wbg_wasmarticlemetadata_free(ptr38, 1);
|
|
7407
|
+
if (ptr37) { wasm.__wbindgen_free(ptr37, len37 * 1, 1); }
|
|
7408
|
+
if (ptr36) { wasm.__wbindgen_free(ptr36, len36 * 1, 1); }
|
|
7409
|
+
if (ptr35) { wasm.__wbindgen_free(ptr35, len35 * 1, 1); }
|
|
7410
|
+
if (ptr34) { wasm.__wbindgen_free(ptr34, len34 * 1, 1); }
|
|
7411
|
+
if (ptr33) { wasm.__wbindgen_free(ptr33, len33 * 1, 1); }
|
|
7412
|
+
if (ptr32) { wasm.__wbindgen_free(ptr32, len32 * 1, 1); }
|
|
7413
|
+
if (ptr31) { wasm.__wbindgen_free(ptr31, len31 * 1, 1); }
|
|
7414
|
+
if (ptr30) { wasm.__wbindgen_free(ptr30, len30 * 1, 1); }
|
|
7415
|
+
if (ptr29) { wasm.__wbindgen_free(ptr29, len29 * 1, 1); }
|
|
7416
|
+
if (ptr28) { wasm.__wbindgen_free(ptr28, len28 * 1, 1); }
|
|
7417
|
+
if (ptr27) { wasm.__wbindgen_free(ptr27, len27 * 1, 1); }
|
|
7418
|
+
if (ptr26) { wasm.__wbindgen_free(ptr26, len26 * 1, 1); }
|
|
7419
|
+
if (ptr25) { wasm.__wbindgen_free(ptr25, len25 * 1, 1); }
|
|
7420
|
+
if (ptr24) { wasm.__wbindgen_free(ptr24, len24 * 1, 1); }
|
|
7421
|
+
if (ptr23) { wasm.__wbindgen_free(ptr23, len23 * 1, 1); }
|
|
7422
|
+
if (ptr22) { wasm.__wbindgen_free(ptr22, len22 * 1, 1); }
|
|
7423
|
+
if (ptr21) { wasm.__wbindgen_free(ptr21, len21 * 1, 1); }
|
|
7424
|
+
if (ptr20) { wasm.__externref_drop_slice(ptr20, len20); wasm.__wbindgen_free(ptr20, len20 * 4, 4); }
|
|
7425
|
+
if (ptr19) { wasm.__wbindgen_free(ptr19, len19 * 1, 1); }
|
|
7426
|
+
if (ptr18) { wasm.__wbindgen_free(ptr18, len18 * 1, 1); }
|
|
7427
|
+
if (ptr17) { wasm.__wbindgen_free(ptr17, len17 * 1, 1); }
|
|
7428
|
+
if (ptr16) { wasm.__wbindgen_free(ptr16, len16 * 1, 1); }
|
|
7429
|
+
if (ptr15) { wasm.__wbindgen_free(ptr15, len15 * 1, 1); }
|
|
7430
|
+
if (ptr14) { wasm.__wbindgen_free(ptr14, len14 * 1, 1); }
|
|
7431
|
+
if (ptr13) { wasm.__wbindgen_free(ptr13, len13 * 1, 1); }
|
|
7432
|
+
if (ptr12) { wasm.__wbindgen_free(ptr12, len12 * 1, 1); }
|
|
7433
|
+
if (ptr11) { wasm.__wbindgen_free(ptr11, len11 * 1, 1); }
|
|
7434
|
+
if (ptr10) { wasm.__wbindgen_free(ptr10, len10 * 1, 1); }
|
|
7435
|
+
if (ptr9) { wasm.__wbindgen_free(ptr9, len9 * 1, 1); }
|
|
7436
|
+
if (ptr8) { wasm.__wbindgen_free(ptr8, len8 * 1, 1); }
|
|
7437
|
+
if (ptr7) { wasm.__wbindgen_free(ptr7, len7 * 1, 1); }
|
|
7438
|
+
if (ptr6) { wasm.__wbindgen_free(ptr6, len6 * 1, 1); }
|
|
7439
|
+
if (ptr5) { wasm.__wbindgen_free(ptr5, len5 * 1, 1); }
|
|
7440
|
+
if (ptr4) { wasm.__wbindgen_free(ptr4, len4 * 1, 1); }
|
|
7441
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
7442
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
7443
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
7444
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
7445
|
+
throw e;
|
|
7446
|
+
}
|
|
7447
|
+
const ret = wasm.wasmpagemetadata_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, ptr11, len11, ptr12, len12, ptr13, len13, ptr14, len14, ptr15, len15, ptr16, len16, ptr17, len17, ptr18, len18, ptr19, len19, ptr20, len20, ptr21, len21, ptr22, len22, ptr23, len23, ptr24, len24, ptr25, len25, ptr26, len26, ptr27, len27, ptr28, len28, ptr29, len29, ptr30, len30, ptr31, len31, ptr32, len32, ptr33, len33, ptr34, len34, ptr35, len35, ptr36, len36, ptr37, len37, ptr38, ptr39, len39, ptr40, len40, ptr41, len41, val43);
|
|
7118
7448
|
this.__wbg_ptr = ret;
|
|
7119
7449
|
WasmPageMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
7120
7450
|
return this;
|
|
@@ -7763,12 +8093,20 @@ export class WasmProxyConfig {
|
|
|
7763
8093
|
* @param {string | null} [password]
|
|
7764
8094
|
*/
|
|
7765
8095
|
constructor(url, username, password) {
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
8096
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
8097
|
+
try {
|
|
8098
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8099
|
+
len0 = WASM_VECTOR_LEN;
|
|
8100
|
+
ptr1 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8101
|
+
len1 = WASM_VECTOR_LEN;
|
|
8102
|
+
ptr2 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8103
|
+
len2 = WASM_VECTOR_LEN;
|
|
8104
|
+
} catch (e) {
|
|
8105
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
8106
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
8107
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
8108
|
+
throw e;
|
|
8109
|
+
}
|
|
7772
8110
|
const ret = wasm.wasmproxyconfig_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7773
8111
|
this.__wbg_ptr = ret;
|
|
7774
8112
|
WasmProxyConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -7954,20 +8292,32 @@ export class WasmResponseMeta {
|
|
|
7954
8292
|
* @param {string | null} [contentEncoding]
|
|
7955
8293
|
*/
|
|
7956
8294
|
constructor(etag, lastModified, cacheControl, server, xPoweredBy, contentLanguage, contentEncoding) {
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
8295
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6;
|
|
8296
|
+
try {
|
|
8297
|
+
ptr0 = isLikeNone(etag) ? 0 : passStringToWasm0(etag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8298
|
+
len0 = WASM_VECTOR_LEN;
|
|
8299
|
+
ptr1 = isLikeNone(lastModified) ? 0 : passStringToWasm0(lastModified, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8300
|
+
len1 = WASM_VECTOR_LEN;
|
|
8301
|
+
ptr2 = isLikeNone(cacheControl) ? 0 : passStringToWasm0(cacheControl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8302
|
+
len2 = WASM_VECTOR_LEN;
|
|
8303
|
+
ptr3 = isLikeNone(server) ? 0 : passStringToWasm0(server, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8304
|
+
len3 = WASM_VECTOR_LEN;
|
|
8305
|
+
ptr4 = isLikeNone(xPoweredBy) ? 0 : passStringToWasm0(xPoweredBy, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8306
|
+
len4 = WASM_VECTOR_LEN;
|
|
8307
|
+
ptr5 = isLikeNone(contentLanguage) ? 0 : passStringToWasm0(contentLanguage, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8308
|
+
len5 = WASM_VECTOR_LEN;
|
|
8309
|
+
ptr6 = isLikeNone(contentEncoding) ? 0 : passStringToWasm0(contentEncoding, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8310
|
+
len6 = WASM_VECTOR_LEN;
|
|
8311
|
+
} catch (e) {
|
|
8312
|
+
if (ptr6) { wasm.__wbindgen_free(ptr6, len6 * 1, 1); }
|
|
8313
|
+
if (ptr5) { wasm.__wbindgen_free(ptr5, len5 * 1, 1); }
|
|
8314
|
+
if (ptr4) { wasm.__wbindgen_free(ptr4, len4 * 1, 1); }
|
|
8315
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
8316
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
8317
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
8318
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
8319
|
+
throw e;
|
|
8320
|
+
}
|
|
7971
8321
|
const ret = wasm.wasmresponsemeta_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6);
|
|
7972
8322
|
this.__wbg_ptr = ret;
|
|
7973
8323
|
WasmResponseMetaFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -8383,61 +8733,81 @@ export class WasmScrapeResult {
|
|
|
8383
8733
|
* @param {WasmBrowserExtras | null} [browser]
|
|
8384
8734
|
*/
|
|
8385
8735
|
constructor(statusCode, finalUrl, contentType, html, bodySize, metadata, links, images, feeds, jsonLd, isAllowed, noindexDetected, nofollowDetected, isPdf, wasSkipped, authHeaderSent, assets, jsRenderHint, browserUsed, ssrfRefusedUrls, crawlDelay, xRobotsTag, detectedCharset, responseMeta, markdown, extractedData, extractionMeta, screenshotBase64, downloadedDocument, browser) {
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
}
|
|
8440
|
-
|
|
8736
|
+
const val19 = +(isLikeNone(statusCode) ? 0xFFFFFF : statusCode);
|
|
8737
|
+
const val20 = +(isLikeNone(bodySize) ? Number.MAX_SAFE_INTEGER : (bodySize) >>> 0);
|
|
8738
|
+
const val21 = BigInt.asIntN(64, (isLikeNone(crawlDelay) ? BigInt(0) : crawlDelay));
|
|
8739
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3 = 0, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10, ptr11, len11, ptr12 = 0, ptr13 = 0, ptr14 = 0, ptr15, len15, ptr16 = 0, ptr17 = 0;
|
|
8740
|
+
try {
|
|
8741
|
+
ptr0 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8742
|
+
len0 = WASM_VECTOR_LEN;
|
|
8743
|
+
ptr1 = isLikeNone(contentType) ? 0 : passStringToWasm0(contentType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8744
|
+
len1 = WASM_VECTOR_LEN;
|
|
8745
|
+
ptr2 = isLikeNone(html) ? 0 : passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8746
|
+
len2 = WASM_VECTOR_LEN;
|
|
8747
|
+
if (!isLikeNone(metadata)) {
|
|
8748
|
+
_assertClass(metadata, WasmPageMetadata);
|
|
8749
|
+
ptr3 = metadata.__destroy_into_raw();
|
|
8750
|
+
}
|
|
8751
|
+
ptr4 = isLikeNone(links) ? 0 : passArrayJsValueToWasm0(links, wasm.__wbindgen_malloc);
|
|
8752
|
+
len4 = WASM_VECTOR_LEN;
|
|
8753
|
+
ptr5 = isLikeNone(images) ? 0 : passArrayJsValueToWasm0(images, wasm.__wbindgen_malloc);
|
|
8754
|
+
len5 = WASM_VECTOR_LEN;
|
|
8755
|
+
ptr6 = isLikeNone(feeds) ? 0 : passArrayJsValueToWasm0(feeds, wasm.__wbindgen_malloc);
|
|
8756
|
+
len6 = WASM_VECTOR_LEN;
|
|
8757
|
+
ptr7 = isLikeNone(jsonLd) ? 0 : passArrayJsValueToWasm0(jsonLd, wasm.__wbindgen_malloc);
|
|
8758
|
+
len7 = WASM_VECTOR_LEN;
|
|
8759
|
+
ptr8 = isLikeNone(assets) ? 0 : passArrayJsValueToWasm0(assets, wasm.__wbindgen_malloc);
|
|
8760
|
+
len8 = WASM_VECTOR_LEN;
|
|
8761
|
+
ptr9 = isLikeNone(ssrfRefusedUrls) ? 0 : passArrayJsValueToWasm0(ssrfRefusedUrls, wasm.__wbindgen_malloc);
|
|
8762
|
+
len9 = WASM_VECTOR_LEN;
|
|
8763
|
+
ptr10 = isLikeNone(xRobotsTag) ? 0 : passStringToWasm0(xRobotsTag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8764
|
+
len10 = WASM_VECTOR_LEN;
|
|
8765
|
+
ptr11 = isLikeNone(detectedCharset) ? 0 : passStringToWasm0(detectedCharset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8766
|
+
len11 = WASM_VECTOR_LEN;
|
|
8767
|
+
if (!isLikeNone(responseMeta)) {
|
|
8768
|
+
_assertClass(responseMeta, WasmResponseMeta);
|
|
8769
|
+
ptr12 = responseMeta.__destroy_into_raw();
|
|
8770
|
+
}
|
|
8771
|
+
if (!isLikeNone(markdown)) {
|
|
8772
|
+
_assertClass(markdown, WasmMarkdownResult);
|
|
8773
|
+
ptr13 = markdown.__destroy_into_raw();
|
|
8774
|
+
}
|
|
8775
|
+
if (!isLikeNone(extractionMeta)) {
|
|
8776
|
+
_assertClass(extractionMeta, WasmExtractionMeta);
|
|
8777
|
+
ptr14 = extractionMeta.__destroy_into_raw();
|
|
8778
|
+
}
|
|
8779
|
+
ptr15 = isLikeNone(screenshotBase64) ? 0 : passStringToWasm0(screenshotBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
8780
|
+
len15 = WASM_VECTOR_LEN;
|
|
8781
|
+
if (!isLikeNone(downloadedDocument)) {
|
|
8782
|
+
_assertClass(downloadedDocument, WasmDownloadedDocument);
|
|
8783
|
+
ptr16 = downloadedDocument.__destroy_into_raw();
|
|
8784
|
+
}
|
|
8785
|
+
if (!isLikeNone(browser)) {
|
|
8786
|
+
_assertClass(browser, WasmBrowserExtras);
|
|
8787
|
+
ptr17 = browser.__destroy_into_raw();
|
|
8788
|
+
}
|
|
8789
|
+
} catch (e) {
|
|
8790
|
+
if (ptr17) wasm.__wbg_wasmbrowserextras_free(ptr17, 1);
|
|
8791
|
+
if (ptr16) wasm.__wbg_wasmdownloadeddocument_free(ptr16, 1);
|
|
8792
|
+
if (ptr15) { wasm.__wbindgen_free(ptr15, len15 * 1, 1); }
|
|
8793
|
+
if (ptr14) wasm.__wbg_wasmextractionmeta_free(ptr14, 1);
|
|
8794
|
+
if (ptr13) wasm.__wbg_wasmmarkdownresult_free(ptr13, 1);
|
|
8795
|
+
if (ptr12) wasm.__wbg_wasmresponsemeta_free(ptr12, 1);
|
|
8796
|
+
if (ptr11) { wasm.__wbindgen_free(ptr11, len11 * 1, 1); }
|
|
8797
|
+
if (ptr10) { wasm.__wbindgen_free(ptr10, len10 * 1, 1); }
|
|
8798
|
+
if (ptr9) { wasm.__externref_drop_slice(ptr9, len9); wasm.__wbindgen_free(ptr9, len9 * 4, 4); }
|
|
8799
|
+
if (ptr8) { wasm.__externref_drop_slice(ptr8, len8); wasm.__wbindgen_free(ptr8, len8 * 4, 4); }
|
|
8800
|
+
if (ptr7) { wasm.__externref_drop_slice(ptr7, len7); wasm.__wbindgen_free(ptr7, len7 * 4, 4); }
|
|
8801
|
+
if (ptr6) { wasm.__externref_drop_slice(ptr6, len6); wasm.__wbindgen_free(ptr6, len6 * 4, 4); }
|
|
8802
|
+
if (ptr5) { wasm.__externref_drop_slice(ptr5, len5); wasm.__wbindgen_free(ptr5, len5 * 4, 4); }
|
|
8803
|
+
if (ptr4) { wasm.__externref_drop_slice(ptr4, len4); wasm.__wbindgen_free(ptr4, len4 * 4, 4); }
|
|
8804
|
+
if (ptr3) wasm.__wbg_wasmpagemetadata_free(ptr3, 1);
|
|
8805
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
8806
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
8807
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
8808
|
+
throw e;
|
|
8809
|
+
}
|
|
8810
|
+
const ret = wasm.wasmscraperesult_new(val19, ptr0, len0, ptr1, len1, ptr2, len2, val20, ptr3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(isAllowed) ? 0xFFFFFF : isAllowed ? 1 : 0, isLikeNone(noindexDetected) ? 0xFFFFFF : noindexDetected ? 1 : 0, isLikeNone(nofollowDetected) ? 0xFFFFFF : nofollowDetected ? 1 : 0, isLikeNone(isPdf) ? 0xFFFFFF : isPdf ? 1 : 0, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, isLikeNone(authHeaderSent) ? 0xFFFFFF : authHeaderSent ? 1 : 0, ptr8, len8, isLikeNone(jsRenderHint) ? 0xFFFFFF : jsRenderHint ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, ptr9, len9, !isLikeNone(crawlDelay), val21, ptr10, len10, ptr11, len11, ptr12, ptr13, isLikeNone(extractedData) ? 0 : addToExternrefTable0(extractedData), ptr14, ptr15, len15, ptr16, ptr17);
|
|
8441
8811
|
this.__wbg_ptr = ret;
|
|
8442
8812
|
WasmScrapeResultFinalization.register(this, this.__wbg_ptr, this);
|
|
8443
8813
|
return this;
|
|
@@ -8826,14 +9196,23 @@ export class WasmSitemapUrl {
|
|
|
8826
9196
|
* @param {string | null} [priority]
|
|
8827
9197
|
*/
|
|
8828
9198
|
constructor(url, lastmod, changefreq, priority) {
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
9199
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
9200
|
+
try {
|
|
9201
|
+
ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9202
|
+
len0 = WASM_VECTOR_LEN;
|
|
9203
|
+
ptr1 = isLikeNone(lastmod) ? 0 : passStringToWasm0(lastmod, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9204
|
+
len1 = WASM_VECTOR_LEN;
|
|
9205
|
+
ptr2 = isLikeNone(changefreq) ? 0 : passStringToWasm0(changefreq, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9206
|
+
len2 = WASM_VECTOR_LEN;
|
|
9207
|
+
ptr3 = isLikeNone(priority) ? 0 : passStringToWasm0(priority, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9208
|
+
len3 = WASM_VECTOR_LEN;
|
|
9209
|
+
} catch (e) {
|
|
9210
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
9211
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
9212
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
9213
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
9214
|
+
throw e;
|
|
9215
|
+
}
|
|
8837
9216
|
const ret = wasm.wasmsitemapurl_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
8838
9217
|
this.__wbg_ptr = ret;
|
|
8839
9218
|
WasmSitemapUrlFinalization.register(this, this.__wbg_ptr, this);
|
|
@@ -9000,9 +9379,10 @@ export class WasmSsrfPolicy {
|
|
|
9000
9379
|
* @param {string[] | null} [schemeAllowlist]
|
|
9001
9380
|
*/
|
|
9002
9381
|
constructor(denyPrivate, allowlist, denylist, maxRedirects, schemeAllowlist) {
|
|
9382
|
+
const val2 = +(isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects);
|
|
9003
9383
|
var ptr0 = isLikeNone(schemeAllowlist) ? 0 : passArrayJsValueToWasm0(schemeAllowlist, wasm.__wbindgen_malloc);
|
|
9004
9384
|
var len0 = WASM_VECTOR_LEN;
|
|
9005
|
-
const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(denylist) ? 0 : addToExternrefTable0(denylist),
|
|
9385
|
+
const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(denylist) ? 0 : addToExternrefTable0(denylist), val2, ptr0, len0);
|
|
9006
9386
|
this.__wbg_ptr = ret;
|
|
9007
9387
|
WasmSsrfPolicyFinalization.register(this, this.__wbg_ptr, this);
|
|
9008
9388
|
return this;
|
|
@@ -9107,11 +9487,19 @@ export class WasmWafBlockDetails {
|
|
|
9107
9487
|
* @param {string | null} [bodyPrefix]
|
|
9108
9488
|
*/
|
|
9109
9489
|
constructor(vendor, status, bodyPrefix) {
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9490
|
+
const val3 = +(isLikeNone(status) ? 0xFFFFFF : status);
|
|
9491
|
+
let ptr0, len0, ptr1, len1;
|
|
9492
|
+
try {
|
|
9493
|
+
ptr0 = isLikeNone(vendor) ? 0 : passStringToWasm0(vendor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9494
|
+
len0 = WASM_VECTOR_LEN;
|
|
9495
|
+
ptr1 = isLikeNone(bodyPrefix) ? 0 : passStringToWasm0(bodyPrefix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9496
|
+
len1 = WASM_VECTOR_LEN;
|
|
9497
|
+
} catch (e) {
|
|
9498
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
9499
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
9500
|
+
throw e;
|
|
9501
|
+
}
|
|
9502
|
+
const ret = wasm.wasmwafblockdetails_new(ptr0, len0, val3, ptr1, len1);
|
|
9115
9503
|
this.__wbg_ptr = ret;
|
|
9116
9504
|
WasmWafBlockDetailsFinalization.register(this, this.__wbg_ptr, this);
|
|
9117
9505
|
return this;
|
|
@@ -9251,10 +9639,17 @@ export function generateCitations(markdown) {
|
|
|
9251
9639
|
*/
|
|
9252
9640
|
export function interact(engine, url, actions) {
|
|
9253
9641
|
_assertClass(engine, WasmCrawlEngineHandle);
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9642
|
+
let ptr0, len0, ptr1, len1;
|
|
9643
|
+
try {
|
|
9644
|
+
ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9645
|
+
len0 = WASM_VECTOR_LEN;
|
|
9646
|
+
ptr1 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
|
|
9647
|
+
len1 = WASM_VECTOR_LEN;
|
|
9648
|
+
} catch (e) {
|
|
9649
|
+
if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
|
|
9650
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
9651
|
+
throw e;
|
|
9652
|
+
}
|
|
9258
9653
|
const ret = wasm.interact(engine.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
9259
9654
|
return ret;
|
|
9260
9655
|
}
|
|
@@ -9286,162 +9681,162 @@ export function scrape(engine, url) {
|
|
|
9286
9681
|
const ret = wasm.scrape(engine.__wbg_ptr, ptr0, len0);
|
|
9287
9682
|
return ret;
|
|
9288
9683
|
}
|
|
9289
|
-
export function
|
|
9684
|
+
export function __wbg_Error_208446807d0d1e30(arg0, arg1) {
|
|
9290
9685
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
9291
9686
|
return ret;
|
|
9292
9687
|
}
|
|
9293
|
-
export function
|
|
9688
|
+
export function __wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef(arg0, arg1) {
|
|
9294
9689
|
const v = arg1;
|
|
9295
9690
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
9296
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
9297
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
9691
|
+
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
9692
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
9298
9693
|
}
|
|
9299
|
-
export function
|
|
9694
|
+
export function __wbg___wbindgen_boolean_get_4f1baf9a00be3c74(arg0) {
|
|
9300
9695
|
const v = arg0;
|
|
9301
9696
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
9302
9697
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
9303
9698
|
}
|
|
9304
|
-
export function
|
|
9699
|
+
export function __wbg___wbindgen_debug_string_f249a2a76caa9a55(arg0, arg1) {
|
|
9305
9700
|
const ret = debugString(arg1);
|
|
9306
9701
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9307
9702
|
const len1 = WASM_VECTOR_LEN;
|
|
9308
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9309
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
9703
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
9704
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
9310
9705
|
}
|
|
9311
|
-
export function
|
|
9706
|
+
export function __wbg___wbindgen_in_3f58a9d3b3a7eed2(arg0, arg1) {
|
|
9312
9707
|
const ret = arg0 in arg1;
|
|
9313
9708
|
return ret;
|
|
9314
9709
|
}
|
|
9315
|
-
export function
|
|
9710
|
+
export function __wbg___wbindgen_is_bigint_5fa10641e039d3ef(arg0) {
|
|
9316
9711
|
const ret = typeof(arg0) === 'bigint';
|
|
9317
9712
|
return ret;
|
|
9318
9713
|
}
|
|
9319
|
-
export function
|
|
9714
|
+
export function __wbg___wbindgen_is_function_741ff2bb612836f5(arg0) {
|
|
9320
9715
|
const ret = typeof(arg0) === 'function';
|
|
9321
9716
|
return ret;
|
|
9322
9717
|
}
|
|
9323
|
-
export function
|
|
9718
|
+
export function __wbg___wbindgen_is_object_8b968c3ab8e96595(arg0) {
|
|
9324
9719
|
const val = arg0;
|
|
9325
9720
|
const ret = typeof(val) === 'object' && val !== null;
|
|
9326
9721
|
return ret;
|
|
9327
9722
|
}
|
|
9328
|
-
export function
|
|
9723
|
+
export function __wbg___wbindgen_is_string_fc456fee5d3317de(arg0) {
|
|
9329
9724
|
const ret = typeof(arg0) === 'string';
|
|
9330
9725
|
return ret;
|
|
9331
9726
|
}
|
|
9332
|
-
export function
|
|
9727
|
+
export function __wbg___wbindgen_is_undefined_be5b34249ff1fc15(arg0) {
|
|
9333
9728
|
const ret = arg0 === undefined;
|
|
9334
9729
|
return ret;
|
|
9335
9730
|
}
|
|
9336
|
-
export function
|
|
9731
|
+
export function __wbg___wbindgen_jsval_eq_38d7bfbe4cc84039(arg0, arg1) {
|
|
9337
9732
|
const ret = arg0 === arg1;
|
|
9338
9733
|
return ret;
|
|
9339
9734
|
}
|
|
9340
|
-
export function
|
|
9735
|
+
export function __wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36(arg0, arg1) {
|
|
9341
9736
|
const ret = arg0 == arg1;
|
|
9342
9737
|
return ret;
|
|
9343
9738
|
}
|
|
9344
|
-
export function
|
|
9739
|
+
export function __wbg___wbindgen_number_get_934b640d0889af78(arg0, arg1) {
|
|
9345
9740
|
const obj = arg1;
|
|
9346
9741
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
9347
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
9348
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
9742
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
9743
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
9349
9744
|
}
|
|
9350
|
-
export function
|
|
9745
|
+
export function __wbg___wbindgen_string_get_7ce8eee7fd327545(arg0, arg1) {
|
|
9351
9746
|
const obj = arg1;
|
|
9352
9747
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
9353
9748
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9354
9749
|
var len1 = WASM_VECTOR_LEN;
|
|
9355
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9356
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
9750
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
9751
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
9357
9752
|
}
|
|
9358
|
-
export function
|
|
9753
|
+
export function __wbg___wbindgen_throw_4c88d8bf264fd984(arg0, arg1) {
|
|
9359
9754
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
9360
9755
|
}
|
|
9361
|
-
export function
|
|
9756
|
+
export function __wbg__wbg_cb_unref_09736879a3f67559(arg0) {
|
|
9362
9757
|
arg0._wbg_cb_unref();
|
|
9363
9758
|
}
|
|
9364
|
-
export function
|
|
9759
|
+
export function __wbg_abort_d3b62653236ec492(arg0, arg1) {
|
|
9365
9760
|
arg0.abort(arg1);
|
|
9366
9761
|
}
|
|
9367
|
-
export function
|
|
9762
|
+
export function __wbg_abort_f8d1589eb0c65ee2(arg0) {
|
|
9368
9763
|
arg0.abort();
|
|
9369
9764
|
}
|
|
9370
|
-
export function
|
|
9765
|
+
export function __wbg_append_ba9a4dc30a0323fd() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
9371
9766
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
9372
9767
|
}, arguments); }
|
|
9373
|
-
export function
|
|
9768
|
+
export function __wbg_arrayBuffer_2c99a9ba14ba536c() { return handleError(function (arg0) {
|
|
9374
9769
|
const ret = arg0.arrayBuffer();
|
|
9375
9770
|
return ret;
|
|
9376
9771
|
}, arguments); }
|
|
9377
|
-
export function
|
|
9378
|
-
const ret = arg0.call(arg1
|
|
9772
|
+
export function __wbg_call_40b008ba32f73991() { return handleError(function (arg0, arg1) {
|
|
9773
|
+
const ret = arg0.call(arg1);
|
|
9379
9774
|
return ret;
|
|
9380
9775
|
}, arguments); }
|
|
9381
|
-
export function
|
|
9382
|
-
const ret = arg0.call(arg1);
|
|
9776
|
+
export function __wbg_call_a410eb4b59ed5965() { return handleError(function (arg0, arg1, arg2) {
|
|
9777
|
+
const ret = arg0.call(arg1, arg2);
|
|
9383
9778
|
return ret;
|
|
9384
9779
|
}, arguments); }
|
|
9385
9780
|
export function __wbg_clearTimeout_1daad5c6ee4fcd3b(arg0) {
|
|
9386
9781
|
const ret = clearTimeout(arg0);
|
|
9387
9782
|
return ret;
|
|
9388
9783
|
}
|
|
9389
|
-
export function
|
|
9784
|
+
export function __wbg_create_8853e9d4d0f625e5(arg0) {
|
|
9390
9785
|
const ret = Object.create(arg0);
|
|
9391
9786
|
return ret;
|
|
9392
9787
|
}
|
|
9393
|
-
export function
|
|
9788
|
+
export function __wbg_done_57e08d0be6e30c02(arg0) {
|
|
9394
9789
|
const ret = arg0.done;
|
|
9395
9790
|
return ret;
|
|
9396
9791
|
}
|
|
9397
|
-
export function
|
|
9792
|
+
export function __wbg_entries_7bb1459bd9b5c2b9(arg0) {
|
|
9793
|
+
const ret = Object.entries(arg0);
|
|
9794
|
+
return ret;
|
|
9795
|
+
}
|
|
9796
|
+
export function __wbg_entries_fb0b3ba27a6e0bf7(arg0) {
|
|
9398
9797
|
const ret = arg0.entries();
|
|
9399
9798
|
return ret;
|
|
9400
9799
|
}
|
|
9401
|
-
export function
|
|
9402
|
-
const ret =
|
|
9800
|
+
export function __wbg_fetch_41d29a2b2428e0c7(arg0, arg1) {
|
|
9801
|
+
const ret = arg0.fetch(arg1);
|
|
9403
9802
|
return ret;
|
|
9404
9803
|
}
|
|
9405
9804
|
export function __wbg_fetch_7a37768ab67c5bd8(arg0) {
|
|
9406
9805
|
const ret = fetch(arg0);
|
|
9407
9806
|
return ret;
|
|
9408
9807
|
}
|
|
9409
|
-
export function
|
|
9410
|
-
const ret = arg0.fetch(arg1);
|
|
9411
|
-
return ret;
|
|
9412
|
-
}
|
|
9413
|
-
export function __wbg_for_beb5dc4e908dd8b8(arg0, arg1) {
|
|
9808
|
+
export function __wbg_for_e12451d86fef973f(arg0, arg1) {
|
|
9414
9809
|
const ret = Symbol.for(getStringFromWasm0(arg0, arg1));
|
|
9415
9810
|
return ret;
|
|
9416
9811
|
}
|
|
9417
|
-
export function
|
|
9812
|
+
export function __wbg_getRandomValues_5d8c030b527203a6() { return handleError(function (arg0, arg1) {
|
|
9418
9813
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
9419
9814
|
}, arguments); }
|
|
9420
|
-
export function
|
|
9815
|
+
export function __wbg_getTime_edc91481cbc4cd78(arg0) {
|
|
9421
9816
|
const ret = arg0.getTime();
|
|
9422
9817
|
return ret;
|
|
9423
9818
|
}
|
|
9424
|
-
export function
|
|
9819
|
+
export function __wbg_get_635eea311fa1a291() { return handleError(function (arg0, arg1) {
|
|
9425
9820
|
const ret = Reflect.get(arg0, arg1);
|
|
9426
9821
|
return ret;
|
|
9427
9822
|
}, arguments); }
|
|
9428
|
-
export function
|
|
9823
|
+
export function __wbg_get_d7176cfb76d71114(arg0, arg1) {
|
|
9429
9824
|
const ret = arg0[arg1 >>> 0];
|
|
9430
9825
|
return ret;
|
|
9431
9826
|
}
|
|
9432
|
-
export function
|
|
9827
|
+
export function __wbg_get_unchecked_e6325ad374eff861(arg0, arg1) {
|
|
9433
9828
|
const ret = arg0[arg1 >>> 0];
|
|
9434
9829
|
return ret;
|
|
9435
9830
|
}
|
|
9436
|
-
export function
|
|
9831
|
+
export function __wbg_has_2c4d5cf25ec8c1cf() { return handleError(function (arg0, arg1) {
|
|
9437
9832
|
const ret = Reflect.has(arg0, arg1);
|
|
9438
9833
|
return ret;
|
|
9439
9834
|
}, arguments); }
|
|
9440
|
-
export function
|
|
9835
|
+
export function __wbg_headers_5fc0106c076eb731(arg0) {
|
|
9441
9836
|
const ret = arg0.headers;
|
|
9442
9837
|
return ret;
|
|
9443
9838
|
}
|
|
9444
|
-
export function
|
|
9839
|
+
export function __wbg_instanceof_ArrayBuffer_12cdaa4161423e6b(arg0) {
|
|
9445
9840
|
let result;
|
|
9446
9841
|
try {
|
|
9447
9842
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -9451,7 +9846,7 @@ export function __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8(arg0) {
|
|
|
9451
9846
|
const ret = result;
|
|
9452
9847
|
return ret;
|
|
9453
9848
|
}
|
|
9454
|
-
export function
|
|
9849
|
+
export function __wbg_instanceof_Map_0b4fc8b62e73f163(arg0) {
|
|
9455
9850
|
let result;
|
|
9456
9851
|
try {
|
|
9457
9852
|
result = arg0 instanceof Map;
|
|
@@ -9461,7 +9856,7 @@ export function __wbg_instanceof_Map_b2611749102d7ba3(arg0) {
|
|
|
9461
9856
|
const ret = result;
|
|
9462
9857
|
return ret;
|
|
9463
9858
|
}
|
|
9464
|
-
export function
|
|
9859
|
+
export function __wbg_instanceof_Response_5b0b4f7f1daeae51(arg0) {
|
|
9465
9860
|
let result;
|
|
9466
9861
|
try {
|
|
9467
9862
|
result = arg0 instanceof Response;
|
|
@@ -9471,7 +9866,7 @@ export function __wbg_instanceof_Response_b8758567269c30b2(arg0) {
|
|
|
9471
9866
|
const ret = result;
|
|
9472
9867
|
return ret;
|
|
9473
9868
|
}
|
|
9474
|
-
export function
|
|
9869
|
+
export function __wbg_instanceof_Uint8Array_d7aeb0dcb3108fea(arg0) {
|
|
9475
9870
|
let result;
|
|
9476
9871
|
try {
|
|
9477
9872
|
result = arg0 instanceof Uint8Array;
|
|
@@ -9481,70 +9876,70 @@ export function __wbg_instanceof_Uint8Array_828cef2aaacafc31(arg0) {
|
|
|
9481
9876
|
const ret = result;
|
|
9482
9877
|
return ret;
|
|
9483
9878
|
}
|
|
9484
|
-
export function
|
|
9879
|
+
export function __wbg_isArray_bcf1376d0d732d08(arg0) {
|
|
9485
9880
|
const ret = Array.isArray(arg0);
|
|
9486
9881
|
return ret;
|
|
9487
9882
|
}
|
|
9488
|
-
export function
|
|
9883
|
+
export function __wbg_isSafeInteger_1a35ba4d31e71d38(arg0) {
|
|
9489
9884
|
const ret = Number.isSafeInteger(arg0);
|
|
9490
9885
|
return ret;
|
|
9491
9886
|
}
|
|
9492
|
-
export function
|
|
9887
|
+
export function __wbg_iterator_e4c5e8f68ada7b58() {
|
|
9493
9888
|
const ret = Symbol.iterator;
|
|
9494
9889
|
return ret;
|
|
9495
9890
|
}
|
|
9496
|
-
export function
|
|
9891
|
+
export function __wbg_length_186163212ffe79c3(arg0) {
|
|
9497
9892
|
const ret = arg0.length;
|
|
9498
9893
|
return ret;
|
|
9499
9894
|
}
|
|
9500
|
-
export function
|
|
9895
|
+
export function __wbg_length_b03a0fabb109b1e9(arg0) {
|
|
9501
9896
|
const ret = arg0.length;
|
|
9502
9897
|
return ret;
|
|
9503
9898
|
}
|
|
9504
|
-
export function
|
|
9899
|
+
export function __wbg_new_0_36d738a0c8cfac43() {
|
|
9505
9900
|
const ret = new Date();
|
|
9506
9901
|
return ret;
|
|
9507
9902
|
}
|
|
9508
|
-
export function
|
|
9903
|
+
export function __wbg_new_13de428334042d26(arg0) {
|
|
9509
9904
|
const ret = new Uint8Array(arg0);
|
|
9510
9905
|
return ret;
|
|
9511
9906
|
}
|
|
9512
|
-
export function
|
|
9513
|
-
const ret = new
|
|
9907
|
+
export function __wbg_new_277c27c26f94cbc2() { return handleError(function () {
|
|
9908
|
+
const ret = new Headers();
|
|
9909
|
+
return ret;
|
|
9910
|
+
}, arguments); }
|
|
9911
|
+
export function __wbg_new_37eb45aaf5eeb820() {
|
|
9912
|
+
const ret = new Array();
|
|
9514
9913
|
return ret;
|
|
9515
9914
|
}
|
|
9516
|
-
export function
|
|
9915
|
+
export function __wbg_new_5f28518387ad0e34() { return handleError(function () {
|
|
9517
9916
|
const ret = new AbortController();
|
|
9518
9917
|
return ret;
|
|
9519
9918
|
}, arguments); }
|
|
9520
|
-
export function
|
|
9521
|
-
const ret = new
|
|
9919
|
+
export function __wbg_new_7075786089b89c5e() {
|
|
9920
|
+
const ret = new Map();
|
|
9522
9921
|
return ret;
|
|
9523
9922
|
}
|
|
9524
|
-
export function
|
|
9525
|
-
const ret = new
|
|
9923
|
+
export function __wbg_new_787b9fb330d55d78(arg0, arg1) {
|
|
9924
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
9526
9925
|
return ret;
|
|
9527
9926
|
}
|
|
9528
|
-
export function
|
|
9529
|
-
const ret = new
|
|
9530
|
-
return ret;
|
|
9531
|
-
}, arguments); }
|
|
9532
|
-
export function __wbg_new_ee2291f50781bf1d() {
|
|
9533
|
-
const ret = new Array();
|
|
9927
|
+
export function __wbg_new_cd4348290afae586() {
|
|
9928
|
+
const ret = new Object();
|
|
9534
9929
|
return ret;
|
|
9535
9930
|
}
|
|
9536
|
-
export function
|
|
9931
|
+
export function __wbg_new_from_slice_b8daf545a41c6aa0(arg0, arg1) {
|
|
9537
9932
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
9538
9933
|
return ret;
|
|
9539
9934
|
}
|
|
9540
|
-
export function
|
|
9935
|
+
export function __wbg_new_typed_e09da9dae6ee5935(arg0, arg1) {
|
|
9541
9936
|
try {
|
|
9542
9937
|
var state0 = {a: arg0, b: arg1};
|
|
9543
9938
|
var cb0 = (arg0, arg1) => {
|
|
9544
9939
|
const a = state0.a;
|
|
9545
9940
|
state0.a = 0;
|
|
9546
9941
|
try {
|
|
9547
|
-
return
|
|
9942
|
+
return wasm_bindgen_ada118ad91144bf___convert__closures_____invoke___js_sys_d0245ee335b06e0e___Function_fn_wasm_bindgen_ada118ad91144bf___JsValue_____wasm_bindgen_ada118ad91144bf___sys__Undefined___js_sys_d0245ee335b06e0e___Function_fn_wasm_bindgen_ada118ad91144bf___JsValue_____wasm_bindgen_ada118ad91144bf___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
9548
9943
|
} finally {
|
|
9549
9944
|
state0.a = a;
|
|
9550
9945
|
}
|
|
@@ -9555,15 +9950,15 @@ export function __wbg_new_typed_b01cb72a8af741a3(arg0, arg1) {
|
|
|
9555
9950
|
state0.a = 0;
|
|
9556
9951
|
}
|
|
9557
9952
|
}
|
|
9558
|
-
export function
|
|
9953
|
+
export function __wbg_new_with_str_and_init_d9f6b5611184e16b() { return handleError(function (arg0, arg1, arg2) {
|
|
9559
9954
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
9560
9955
|
return ret;
|
|
9561
9956
|
}, arguments); }
|
|
9562
|
-
export function
|
|
9957
|
+
export function __wbg_next_178c1651c11432b3(arg0) {
|
|
9563
9958
|
const ret = arg0.next;
|
|
9564
9959
|
return ret;
|
|
9565
9960
|
}
|
|
9566
|
-
export function
|
|
9961
|
+
export function __wbg_next_af5ac6a08bb0a717() { return handleError(function (arg0) {
|
|
9567
9962
|
const ret = arg0.next();
|
|
9568
9963
|
return ret;
|
|
9569
9964
|
}, arguments); }
|
|
@@ -9571,29 +9966,29 @@ export function __wbg_now_e7c6795a7f81e10f(arg0) {
|
|
|
9571
9966
|
const ret = arg0.now();
|
|
9572
9967
|
return ret;
|
|
9573
9968
|
}
|
|
9574
|
-
export function
|
|
9969
|
+
export function __wbg_parse_c3f72b5a24f83c01() { return handleError(function (arg0, arg1) {
|
|
9575
9970
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
9576
9971
|
return ret;
|
|
9577
9972
|
}, arguments); }
|
|
9578
|
-
export function
|
|
9973
|
+
export function __wbg_performance_7e4e4494fdc9d07a(arg0) {
|
|
9579
9974
|
const ret = arg0.performance;
|
|
9580
9975
|
return ret;
|
|
9581
9976
|
}
|
|
9582
|
-
export function
|
|
9977
|
+
export function __wbg_prototypesetcall_13162965d1fe7aa3(arg0, arg1, arg2) {
|
|
9583
9978
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
9584
9979
|
}
|
|
9585
|
-
export function
|
|
9980
|
+
export function __wbg_push_c9f4893fc209f768(arg0, arg1) {
|
|
9586
9981
|
const ret = arg0.push(arg1);
|
|
9587
9982
|
return ret;
|
|
9588
9983
|
}
|
|
9589
|
-
export function
|
|
9984
|
+
export function __wbg_queueMicrotask_1e8503a8a690f0a3(arg0) {
|
|
9590
9985
|
const ret = arg0.queueMicrotask;
|
|
9591
9986
|
return ret;
|
|
9592
9987
|
}
|
|
9593
|
-
export function
|
|
9988
|
+
export function __wbg_queueMicrotask_4a1a4d8dd332373b(arg0) {
|
|
9594
9989
|
queueMicrotask(arg0);
|
|
9595
9990
|
}
|
|
9596
|
-
export function
|
|
9991
|
+
export function __wbg_resolve_dbf78ab4942478b0(arg0) {
|
|
9597
9992
|
const ret = Promise.resolve(arg0);
|
|
9598
9993
|
return ret;
|
|
9599
9994
|
}
|
|
@@ -9601,87 +9996,87 @@ export function __wbg_setTimeout_b4a9096784635514(arg0, arg1) {
|
|
|
9601
9996
|
const ret = setTimeout(arg0, arg1);
|
|
9602
9997
|
return ret;
|
|
9603
9998
|
}
|
|
9604
|
-
export function
|
|
9999
|
+
export function __wbg_set_2793479888329cb6() { return handleError(function (arg0, arg1, arg2) {
|
|
9605
10000
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
9606
10001
|
return ret;
|
|
9607
10002
|
}, arguments); }
|
|
9608
|
-
export function
|
|
10003
|
+
export function __wbg_set_8282f7e0d2d01336(arg0, arg1, arg2) {
|
|
9609
10004
|
const ret = arg0.set(arg1, arg2);
|
|
9610
10005
|
return ret;
|
|
9611
10006
|
}
|
|
9612
|
-
export function
|
|
9613
|
-
arg0[arg1] = arg2;
|
|
9614
|
-
}
|
|
9615
|
-
export function __wbg_set_bea140a88be9b277(arg0, arg1, arg2) {
|
|
9616
|
-
arg0[arg1 >>> 0] = arg2;
|
|
9617
|
-
}
|
|
9618
|
-
export function __wbg_set_body_1fb0f1008bfc7df6(arg0, arg1) {
|
|
10007
|
+
export function __wbg_set_body_877d5251e78ca815(arg0, arg1) {
|
|
9619
10008
|
arg0.body = arg1;
|
|
9620
10009
|
}
|
|
9621
|
-
export function
|
|
10010
|
+
export function __wbg_set_cache_7a23201e29cbd632(arg0, arg1) {
|
|
9622
10011
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
9623
10012
|
}
|
|
9624
|
-
export function
|
|
10013
|
+
export function __wbg_set_credentials_bb5277b4006149d4(arg0, arg1) {
|
|
9625
10014
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
9626
10015
|
}
|
|
9627
|
-
export function
|
|
10016
|
+
export function __wbg_set_d2d33b52458e984a(arg0, arg1, arg2) {
|
|
10017
|
+
arg0[arg1 >>> 0] = arg2;
|
|
10018
|
+
}
|
|
10019
|
+
export function __wbg_set_e4b9a833d288759a(arg0, arg1, arg2) {
|
|
10020
|
+
arg0[arg1] = arg2;
|
|
10021
|
+
}
|
|
10022
|
+
export function __wbg_set_headers_6d75a7df4eb22716(arg0, arg1) {
|
|
9628
10023
|
arg0.headers = arg1;
|
|
9629
10024
|
}
|
|
9630
|
-
export function
|
|
10025
|
+
export function __wbg_set_method_639e69af35614d36(arg0, arg1, arg2) {
|
|
9631
10026
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
9632
10027
|
}
|
|
9633
|
-
export function
|
|
10028
|
+
export function __wbg_set_mode_07e051ad8b4e2126(arg0, arg1) {
|
|
9634
10029
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
9635
10030
|
}
|
|
9636
|
-
export function
|
|
10031
|
+
export function __wbg_set_referrer_413a47ffe5e2e157(arg0, arg1, arg2) {
|
|
9637
10032
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
9638
10033
|
}
|
|
9639
|
-
export function
|
|
10034
|
+
export function __wbg_set_referrer_policy_f3e837a21403cf06(arg0, arg1) {
|
|
9640
10035
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
9641
10036
|
}
|
|
9642
|
-
export function
|
|
10037
|
+
export function __wbg_set_signal_0b2eee78907e5ba7(arg0, arg1) {
|
|
9643
10038
|
arg0.signal = arg1;
|
|
9644
10039
|
}
|
|
9645
|
-
export function
|
|
10040
|
+
export function __wbg_signal_fac908876f45725d(arg0) {
|
|
9646
10041
|
const ret = arg0.signal;
|
|
9647
10042
|
return ret;
|
|
9648
10043
|
}
|
|
9649
|
-
export function
|
|
9650
|
-
const ret = typeof
|
|
10044
|
+
export function __wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc() {
|
|
10045
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
9651
10046
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
9652
10047
|
}
|
|
9653
|
-
export function
|
|
9654
|
-
const ret = typeof
|
|
10048
|
+
export function __wbg_static_accessor_GLOBAL_e4293fb22cbe77da() {
|
|
10049
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
9655
10050
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
9656
10051
|
}
|
|
9657
|
-
export function
|
|
9658
|
-
const ret = typeof self === 'undefined' ?
|
|
10052
|
+
export function __wbg_static_accessor_SELF_53bb20457401453d() {
|
|
10053
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
9659
10054
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
9660
10055
|
}
|
|
9661
|
-
export function
|
|
9662
|
-
const ret = typeof window === 'undefined' ?
|
|
10056
|
+
export function __wbg_static_accessor_WINDOW_b5e0810bfecb7feb() {
|
|
10057
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
9663
10058
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
9664
10059
|
}
|
|
9665
|
-
export function
|
|
10060
|
+
export function __wbg_status_cb85b6c8d1769fa1(arg0) {
|
|
9666
10061
|
const ret = arg0.status;
|
|
9667
10062
|
return ret;
|
|
9668
10063
|
}
|
|
9669
|
-
export function
|
|
10064
|
+
export function __wbg_then_656f253a5dd7d8ea(arg0, arg1, arg2) {
|
|
9670
10065
|
const ret = arg0.then(arg1, arg2);
|
|
9671
10066
|
return ret;
|
|
9672
10067
|
}
|
|
9673
|
-
export function
|
|
10068
|
+
export function __wbg_then_e3f7f2d365708be8(arg0, arg1) {
|
|
9674
10069
|
const ret = arg0.then(arg1);
|
|
9675
10070
|
return ret;
|
|
9676
10071
|
}
|
|
9677
|
-
export function
|
|
10072
|
+
export function __wbg_url_9fadea28ec624f1d(arg0, arg1) {
|
|
9678
10073
|
const ret = arg1.url;
|
|
9679
10074
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
9680
10075
|
const len1 = WASM_VECTOR_LEN;
|
|
9681
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
9682
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
10076
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
10077
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
9683
10078
|
}
|
|
9684
|
-
export function
|
|
10079
|
+
export function __wbg_value_e0f328965e184931(arg0) {
|
|
9685
10080
|
const ret = arg0.value;
|
|
9686
10081
|
return ret;
|
|
9687
10082
|
}
|
|
@@ -9842,13 +10237,13 @@ export function __wbg_wasmsitemapurl_unwrap(arg0) {
|
|
|
9842
10237
|
return ret;
|
|
9843
10238
|
}
|
|
9844
10239
|
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
9845
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
9846
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
10240
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1520, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
10241
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_ada118ad91144bf___convert__closures_____invoke___wasm_bindgen_ada118ad91144bf___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_ada118ad91144bf___JsError___true_);
|
|
9847
10242
|
return ret;
|
|
9848
10243
|
}
|
|
9849
10244
|
export function __wbindgen_generic_0000000000000002(arg0, arg1) {
|
|
9850
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
9851
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
10245
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1368, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
10246
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_ada118ad91144bf___convert__closures_____invoke_______true_);
|
|
9852
10247
|
return ret;
|
|
9853
10248
|
}
|
|
9854
10249
|
export function __wbindgen_generic_0000000000000003(arg0) {
|
|
@@ -9873,26 +10268,25 @@ export function __wbindgen_generic_0000000000000006(arg0) {
|
|
|
9873
10268
|
}
|
|
9874
10269
|
export function __wbindgen_init_externref_table() {
|
|
9875
10270
|
const table = wasm.__wbindgen_externrefs;
|
|
9876
|
-
const offset = table.grow(4);
|
|
9877
10271
|
table.set(0, undefined);
|
|
9878
|
-
table.set(
|
|
9879
|
-
table.set(
|
|
9880
|
-
table.set(
|
|
9881
|
-
table.set(
|
|
10272
|
+
table.set(1024, undefined);
|
|
10273
|
+
table.set(1025, null);
|
|
10274
|
+
table.set(1026, true);
|
|
10275
|
+
table.set(1027, false);
|
|
9882
10276
|
}
|
|
9883
|
-
function
|
|
9884
|
-
wasm.
|
|
10277
|
+
function wasm_bindgen_ada118ad91144bf___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
10278
|
+
wasm.wasm_bindgen_ada118ad91144bf___convert__closures_____invoke_______true_(arg0, arg1);
|
|
9885
10279
|
}
|
|
9886
10280
|
|
|
9887
|
-
function
|
|
9888
|
-
const ret = wasm.
|
|
10281
|
+
function wasm_bindgen_ada118ad91144bf___convert__closures_____invoke___wasm_bindgen_ada118ad91144bf___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_ada118ad91144bf___JsError___true_(arg0, arg1, arg2) {
|
|
10282
|
+
const ret = wasm.wasm_bindgen_ada118ad91144bf___convert__closures_____invoke___wasm_bindgen_ada118ad91144bf___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_ada118ad91144bf___JsError___true_(arg0, arg1, arg2);
|
|
9889
10283
|
if (ret[1]) {
|
|
9890
10284
|
throw takeFromExternrefTable0(ret[0]);
|
|
9891
10285
|
}
|
|
9892
10286
|
}
|
|
9893
10287
|
|
|
9894
|
-
function
|
|
9895
|
-
wasm.
|
|
10288
|
+
function wasm_bindgen_ada118ad91144bf___convert__closures_____invoke___js_sys_d0245ee335b06e0e___Function_fn_wasm_bindgen_ada118ad91144bf___JsValue_____wasm_bindgen_ada118ad91144bf___sys__Undefined___js_sys_d0245ee335b06e0e___Function_fn_wasm_bindgen_ada118ad91144bf___JsValue_____wasm_bindgen_ada118ad91144bf___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
10289
|
+
wasm.wasm_bindgen_ada118ad91144bf___convert__closures_____invoke___js_sys_d0245ee335b06e0e___Function_fn_wasm_bindgen_ada118ad91144bf___JsValue_____wasm_bindgen_ada118ad91144bf___sys__Undefined___js_sys_d0245ee335b06e0e___Function_fn_wasm_bindgen_ada118ad91144bf___JsValue_____wasm_bindgen_ada118ad91144bf___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
9896
10290
|
}
|
|
9897
10291
|
|
|
9898
10292
|
|
|
@@ -10041,68 +10435,61 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
|
10041
10435
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
10042
10436
|
|
|
10043
10437
|
function debugString(val) {
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
10096
|
-
} catch (_) {
|
|
10097
|
-
return 'Object';
|
|
10438
|
+
switch (typeof val) {
|
|
10439
|
+
// primitive types
|
|
10440
|
+
case 'number':
|
|
10441
|
+
case 'boolean':
|
|
10442
|
+
case 'undefined':
|
|
10443
|
+
return `${val}`;
|
|
10444
|
+
case 'string':
|
|
10445
|
+
return JSON.stringify(val);
|
|
10446
|
+
case 'bigint':
|
|
10447
|
+
return `${val}n`;
|
|
10448
|
+
case 'symbol':
|
|
10449
|
+
return val.description !== undefined
|
|
10450
|
+
? `Symbol(${val.description})`
|
|
10451
|
+
: 'Symbol';
|
|
10452
|
+
case 'function':
|
|
10453
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
10454
|
+
? `Function(${val.name})`
|
|
10455
|
+
: 'Function';
|
|
10456
|
+
case 'object': {
|
|
10457
|
+
if (val === null) {
|
|
10458
|
+
return 'null';
|
|
10459
|
+
}
|
|
10460
|
+
// objects
|
|
10461
|
+
if (Array.isArray(val)) {
|
|
10462
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
10463
|
+
}
|
|
10464
|
+
// errors
|
|
10465
|
+
if (val instanceof Error) {
|
|
10466
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
10467
|
+
}
|
|
10468
|
+
|
|
10469
|
+
const toStringOutput = toString.call(val);
|
|
10470
|
+
// Test for built-in
|
|
10471
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
10472
|
+
|
|
10473
|
+
// Failed to match the standard '[object ClassName]'
|
|
10474
|
+
if (className === undefined) {
|
|
10475
|
+
return toStringOutput;
|
|
10476
|
+
}
|
|
10477
|
+
if (className === 'Object') {
|
|
10478
|
+
// we're a user defined class or Object
|
|
10479
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
10480
|
+
// easier than looping through ownProperties of `val`.
|
|
10481
|
+
try {
|
|
10482
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
10483
|
+
} catch (_) {
|
|
10484
|
+
return 'Object';
|
|
10485
|
+
}
|
|
10486
|
+
}
|
|
10487
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
10488
|
+
return className;
|
|
10098
10489
|
}
|
|
10490
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
10491
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
10099
10492
|
}
|
|
10100
|
-
// errors
|
|
10101
|
-
if (val instanceof Error) {
|
|
10102
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
10103
|
-
}
|
|
10104
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
10105
|
-
return className;
|
|
10106
10493
|
}
|
|
10107
10494
|
|
|
10108
10495
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
@@ -10135,7 +10522,8 @@ function getDataViewMemory0() {
|
|
|
10135
10522
|
}
|
|
10136
10523
|
|
|
10137
10524
|
function getStringFromWasm0(ptr, len) {
|
|
10138
|
-
|
|
10525
|
+
ptr = ptr >>> 0;
|
|
10526
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
10139
10527
|
}
|
|
10140
10528
|
|
|
10141
10529
|
let cachedUint16ArrayMemory0 = null;
|
|
@@ -10255,18 +10643,18 @@ function takeFromExternrefTable0(idx) {
|
|
|
10255
10643
|
return value;
|
|
10256
10644
|
}
|
|
10257
10645
|
|
|
10258
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
10646
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
10259
10647
|
cachedTextDecoder.decode();
|
|
10260
10648
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
10261
10649
|
let numBytesDecoded = 0;
|
|
10262
|
-
function decodeText(
|
|
10263
|
-
numBytesDecoded +=
|
|
10650
|
+
function decodeText(bytes) {
|
|
10651
|
+
numBytesDecoded += bytes.length;
|
|
10264
10652
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
10265
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
10653
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
10266
10654
|
cachedTextDecoder.decode();
|
|
10267
|
-
numBytesDecoded =
|
|
10655
|
+
numBytesDecoded = bytes.length;
|
|
10268
10656
|
}
|
|
10269
|
-
return cachedTextDecoder.decode(
|
|
10657
|
+
return cachedTextDecoder.decode(bytes);
|
|
10270
10658
|
}
|
|
10271
10659
|
|
|
10272
10660
|
const cachedTextEncoder = new TextEncoder();
|