tabby-rdp 0.3.1 → 0.3.3
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/CHANGELOG.md +45 -0
- package/README.md +23 -9
- package/dist/desktop.service.js +94 -6
- package/dist/desktop.service.js.map +1 -1
- package/dist/help.js +13 -5
- package/dist/help.js.map +1 -1
- package/dist/rdcleanpath.js +108 -1
- package/dist/rdcleanpath.js.map +1 -1
- package/dist/remoteSetup.js +78 -4
- package/dist/remoteSetup.js.map +1 -1
- package/dist/settingsPage.js +25 -12
- package/dist/settingsPage.js.map +1 -1
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +1 -1
- package/dist/wake.js +61 -0
- package/dist/wake.js.map +1 -1
- package/package.json +1 -1
- package/vendor/iron-remote-desktop-rdp.js +243 -241
- package/vendor/iron-remote-desktop.js +1081 -1102
- package/vendor/ironrdp_web_bg.wasm +0 -0
|
@@ -4,11 +4,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
class Z {
|
|
5
5
|
static __wrap(A) {
|
|
6
6
|
const I = Object.create(Z.prototype);
|
|
7
|
-
return I.__wbg_ptr = A,
|
|
7
|
+
return I.__wbg_ptr = A, e.register(I, I.__wbg_ptr, I), I;
|
|
8
8
|
}
|
|
9
9
|
__destroy_into_raw() {
|
|
10
10
|
const A = this.__wbg_ptr;
|
|
11
|
-
return this.__wbg_ptr = 0,
|
|
11
|
+
return this.__wbg_ptr = 0, e.unregister(this), A;
|
|
12
12
|
}
|
|
13
13
|
free() {
|
|
14
14
|
const A = this.__destroy_into_raw();
|
|
@@ -19,7 +19,7 @@ class Z {
|
|
|
19
19
|
* @param {Uint8Array} binary
|
|
20
20
|
*/
|
|
21
21
|
addBinary(A, I) {
|
|
22
|
-
const g =
|
|
22
|
+
const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = lA(I, C.__wbindgen_malloc), D = k;
|
|
23
23
|
C.clipboarddata_addBinary(this.__wbg_ptr, g, B, E, D);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
@@ -27,12 +27,12 @@ class Z {
|
|
|
27
27
|
* @param {string} text
|
|
28
28
|
*/
|
|
29
29
|
addText(A, I) {
|
|
30
|
-
const g =
|
|
30
|
+
const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = F(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = k;
|
|
31
31
|
C.clipboarddata_addText(this.__wbg_ptr, g, B, E, D);
|
|
32
32
|
}
|
|
33
33
|
constructor() {
|
|
34
34
|
const A = C.clipboarddata_create();
|
|
35
|
-
return this.__wbg_ptr = A,
|
|
35
|
+
return this.__wbg_ptr = A, e.register(this, this.__wbg_ptr, this), this;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @returns {boolean}
|
|
@@ -190,7 +190,7 @@ class K {
|
|
|
190
190
|
*/
|
|
191
191
|
static unicodePressed(A) {
|
|
192
192
|
const I = A.codePointAt(0);
|
|
193
|
-
|
|
193
|
+
RA(I);
|
|
194
194
|
const g = C.deviceevent_unicodePressed(I);
|
|
195
195
|
return K.__wrap(g);
|
|
196
196
|
}
|
|
@@ -200,7 +200,7 @@ class K {
|
|
|
200
200
|
*/
|
|
201
201
|
static unicodeReleased(A) {
|
|
202
202
|
const I = A.codePointAt(0);
|
|
203
|
-
|
|
203
|
+
RA(I);
|
|
204
204
|
const g = C.deviceevent_unicodeReleased(I);
|
|
205
205
|
return K.__wrap(g);
|
|
206
206
|
}
|
|
@@ -230,7 +230,7 @@ class o {
|
|
|
230
230
|
* @param {any} value
|
|
231
231
|
*/
|
|
232
232
|
constructor(A, I) {
|
|
233
|
-
const g =
|
|
233
|
+
const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = C.extension_create(g, B, I);
|
|
234
234
|
return this.__wbg_ptr = E, iA.register(this, this.__wbg_ptr, this), this;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -376,7 +376,7 @@ class CA {
|
|
|
376
376
|
* @returns {number | undefined}
|
|
377
377
|
*/
|
|
378
378
|
getInt(A) {
|
|
379
|
-
const I =
|
|
379
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.rdpfile_getInt(this.__wbg_ptr, I, g);
|
|
380
380
|
return B === Number.MAX_SAFE_INTEGER ? void 0 : B;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -384,7 +384,7 @@ class CA {
|
|
|
384
384
|
* @returns {string | undefined}
|
|
385
385
|
*/
|
|
386
386
|
getStr(A) {
|
|
387
|
-
const I =
|
|
387
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.rdpfile_getStr(this.__wbg_ptr, I, g);
|
|
388
388
|
let E;
|
|
389
389
|
return B[0] !== 0 && (E = M(B[0], B[1]).slice(), C.__wbindgen_free(B[0], B[1] * 1, 1)), E;
|
|
390
390
|
}
|
|
@@ -393,7 +393,7 @@ class CA {
|
|
|
393
393
|
* @param {number} value
|
|
394
394
|
*/
|
|
395
395
|
insertInt(A, I) {
|
|
396
|
-
const g =
|
|
396
|
+
const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k;
|
|
397
397
|
C.rdpfile_insertInt(this.__wbg_ptr, g, B, I);
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
@@ -401,14 +401,14 @@ class CA {
|
|
|
401
401
|
* @param {string} value
|
|
402
402
|
*/
|
|
403
403
|
insertStr(A, I) {
|
|
404
|
-
const g =
|
|
404
|
+
const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = F(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = k;
|
|
405
405
|
C.rdpfile_insertStr(this.__wbg_ptr, g, B, E, D);
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* @param {string} config
|
|
409
409
|
*/
|
|
410
410
|
parse(A) {
|
|
411
|
-
const I =
|
|
411
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k;
|
|
412
412
|
C.rdpfile_parse(this.__wbg_ptr, I, g);
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
@@ -519,9 +519,9 @@ class n {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
Symbol.dispose && (n.prototype[Symbol.dispose] = n.prototype.free);
|
|
522
|
-
class
|
|
522
|
+
class Y {
|
|
523
523
|
static __wrap(A) {
|
|
524
|
-
const I = Object.create(
|
|
524
|
+
const I = Object.create(Y.prototype);
|
|
525
525
|
return I.__wbg_ptr = A, $.register(I, I.__wbg_ptr, I), I;
|
|
526
526
|
}
|
|
527
527
|
__destroy_into_raw() {
|
|
@@ -537,8 +537,8 @@ class U {
|
|
|
537
537
|
* @returns {SessionBuilder}
|
|
538
538
|
*/
|
|
539
539
|
authToken(A) {
|
|
540
|
-
const I =
|
|
541
|
-
return
|
|
540
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_authToken(this.__wbg_ptr, I, g);
|
|
541
|
+
return Y.__wrap(B);
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
544
|
* @param {Function} callback
|
|
@@ -546,7 +546,7 @@ class U {
|
|
|
546
546
|
*/
|
|
547
547
|
canvasResizedCallback(A) {
|
|
548
548
|
const I = C.sessionbuilder_canvasResizedCallback(this.__wbg_ptr, A);
|
|
549
|
-
return
|
|
549
|
+
return Y.__wrap(I);
|
|
550
550
|
}
|
|
551
551
|
/**
|
|
552
552
|
* @returns {Promise<Session>}
|
|
@@ -566,15 +566,15 @@ class U {
|
|
|
566
566
|
d(A, p);
|
|
567
567
|
var I = A.__destroy_into_raw();
|
|
568
568
|
const g = C.sessionbuilder_desktopSize(this.__wbg_ptr, I);
|
|
569
|
-
return
|
|
569
|
+
return Y.__wrap(g);
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
572
|
* @param {string} destination
|
|
573
573
|
* @returns {SessionBuilder}
|
|
574
574
|
*/
|
|
575
575
|
destination(A) {
|
|
576
|
-
const I =
|
|
577
|
-
return
|
|
576
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_destination(this.__wbg_ptr, I, g);
|
|
577
|
+
return Y.__wrap(B);
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* @param {Extension} ext
|
|
@@ -584,7 +584,7 @@ class U {
|
|
|
584
584
|
d(A, o);
|
|
585
585
|
var I = A.__destroy_into_raw();
|
|
586
586
|
const g = C.sessionbuilder_extension(this.__wbg_ptr, I);
|
|
587
|
-
return
|
|
587
|
+
return Y.__wrap(g);
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* @param {Function} callback
|
|
@@ -592,23 +592,23 @@ class U {
|
|
|
592
592
|
*/
|
|
593
593
|
forceClipboardUpdateCallback(A) {
|
|
594
594
|
const I = C.sessionbuilder_forceClipboardUpdateCallback(this.__wbg_ptr, A);
|
|
595
|
-
return
|
|
595
|
+
return Y.__wrap(I);
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
598
598
|
* @param {string} password
|
|
599
599
|
* @returns {SessionBuilder}
|
|
600
600
|
*/
|
|
601
601
|
password(A) {
|
|
602
|
-
const I =
|
|
603
|
-
return
|
|
602
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_password(this.__wbg_ptr, I, g);
|
|
603
|
+
return Y.__wrap(B);
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* @param {string} address
|
|
607
607
|
* @returns {SessionBuilder}
|
|
608
608
|
*/
|
|
609
609
|
proxyAddress(A) {
|
|
610
|
-
const I =
|
|
611
|
-
return
|
|
610
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_proxyAddress(this.__wbg_ptr, I, g);
|
|
611
|
+
return Y.__wrap(B);
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @param {Function} callback
|
|
@@ -616,7 +616,7 @@ class U {
|
|
|
616
616
|
*/
|
|
617
617
|
remoteClipboardChangedCallback(A) {
|
|
618
618
|
const I = C.sessionbuilder_remoteClipboardChangedCallback(this.__wbg_ptr, A);
|
|
619
|
-
return
|
|
619
|
+
return Y.__wrap(I);
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
622
|
* @param {HTMLCanvasElement} canvas
|
|
@@ -624,15 +624,15 @@ class U {
|
|
|
624
624
|
*/
|
|
625
625
|
renderCanvas(A) {
|
|
626
626
|
const I = C.sessionbuilder_renderCanvas(this.__wbg_ptr, A);
|
|
627
|
-
return
|
|
627
|
+
return Y.__wrap(I);
|
|
628
628
|
}
|
|
629
629
|
/**
|
|
630
630
|
* @param {string} server_domain
|
|
631
631
|
* @returns {SessionBuilder}
|
|
632
632
|
*/
|
|
633
633
|
serverDomain(A) {
|
|
634
|
-
const I =
|
|
635
|
-
return
|
|
634
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_serverDomain(this.__wbg_ptr, I, g);
|
|
635
|
+
return Y.__wrap(B);
|
|
636
636
|
}
|
|
637
637
|
/**
|
|
638
638
|
* @param {Function} callback
|
|
@@ -640,7 +640,7 @@ class U {
|
|
|
640
640
|
*/
|
|
641
641
|
setCursorStyleCallback(A) {
|
|
642
642
|
const I = C.sessionbuilder_setCursorStyleCallback(this.__wbg_ptr, A);
|
|
643
|
-
return
|
|
643
|
+
return Y.__wrap(I);
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
646
|
* @param {any} context
|
|
@@ -648,26 +648,26 @@ class U {
|
|
|
648
648
|
*/
|
|
649
649
|
setCursorStyleCallbackContext(A) {
|
|
650
650
|
const I = C.sessionbuilder_setCursorStyleCallbackContext(this.__wbg_ptr, A);
|
|
651
|
-
return
|
|
651
|
+
return Y.__wrap(I);
|
|
652
652
|
}
|
|
653
653
|
/**
|
|
654
654
|
* @param {string} username
|
|
655
655
|
* @returns {SessionBuilder}
|
|
656
656
|
*/
|
|
657
657
|
username(A) {
|
|
658
|
-
const I =
|
|
659
|
-
return
|
|
658
|
+
const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_username(this.__wbg_ptr, I, g);
|
|
659
|
+
return Y.__wrap(B);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
Symbol.dispose && (
|
|
663
|
-
class
|
|
662
|
+
Symbol.dispose && (Y.prototype[Symbol.dispose] = Y.prototype.free);
|
|
663
|
+
class P {
|
|
664
664
|
static __wrap(A) {
|
|
665
|
-
const I = Object.create(
|
|
666
|
-
return I.__wbg_ptr = A,
|
|
665
|
+
const I = Object.create(P.prototype);
|
|
666
|
+
return I.__wbg_ptr = A, FA.register(I, I.__wbg_ptr, I), I;
|
|
667
667
|
}
|
|
668
668
|
__destroy_into_raw() {
|
|
669
669
|
const A = this.__wbg_ptr;
|
|
670
|
-
return this.__wbg_ptr = 0,
|
|
670
|
+
return this.__wbg_ptr = 0, FA.unregister(this), A;
|
|
671
671
|
}
|
|
672
672
|
free() {
|
|
673
673
|
const A = this.__destroy_into_raw();
|
|
@@ -686,12 +686,12 @@ class r {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
Symbol.dispose && (
|
|
690
|
-
function
|
|
691
|
-
const A =
|
|
689
|
+
Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
|
|
690
|
+
function JA(Q) {
|
|
691
|
+
const A = F(Q, C.__wbindgen_malloc, C.__wbindgen_realloc), I = k;
|
|
692
692
|
C.setup(A, I);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function cA() {
|
|
695
695
|
return {
|
|
696
696
|
__proto__: null,
|
|
697
697
|
"./ironrdp_web_bg.js": {
|
|
@@ -701,7 +701,7 @@ function JA() {
|
|
|
701
701
|
return h(g) ? 16777215 : g ? 1 : 0;
|
|
702
702
|
},
|
|
703
703
|
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(A, I) {
|
|
704
|
-
const g = gA(I), B =
|
|
704
|
+
const g = gA(I), B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
705
705
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
706
706
|
},
|
|
707
707
|
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(A) {
|
|
@@ -726,7 +726,7 @@ function JA() {
|
|
|
726
726
|
},
|
|
727
727
|
__wbg___wbindgen_string_get_b0ca35b86a603356: function(A, I) {
|
|
728
728
|
const g = I, B = typeof g == "string" ? g : void 0;
|
|
729
|
-
var E = h(B) ? 0 :
|
|
729
|
+
var E = h(B) ? 0 : F(B, C.__wbindgen_malloc, C.__wbindgen_realloc), D = k;
|
|
730
730
|
y().setInt32(A + 4, D, true), y().setInt32(A + 0, E, true);
|
|
731
731
|
},
|
|
732
732
|
__wbg___wbindgen_throw_344f42d3211c4765: function(A, I) {
|
|
@@ -821,22 +821,22 @@ function JA() {
|
|
|
821
821
|
__wbg_getContext_e79ddf6a9cb3cc76: function() {
|
|
822
822
|
return G(function(A, I, g) {
|
|
823
823
|
const B = A.getContext(M(I, g));
|
|
824
|
-
return h(B) ? 0 :
|
|
824
|
+
return h(B) ? 0 : L(B);
|
|
825
825
|
}, arguments);
|
|
826
826
|
},
|
|
827
827
|
__wbg_getRandomValues_3f44b700395062e5: function() {
|
|
828
828
|
return G(function(A, I) {
|
|
829
|
-
globalThis.crypto.getRandomValues(
|
|
829
|
+
globalThis.crypto.getRandomValues(l(A, I));
|
|
830
830
|
}, arguments);
|
|
831
831
|
},
|
|
832
832
|
__wbg_getRandomValues_bf16787eede473f5: function() {
|
|
833
833
|
return G(function(A, I) {
|
|
834
|
-
globalThis.crypto.getRandomValues(
|
|
834
|
+
globalThis.crypto.getRandomValues(l(A, I));
|
|
835
835
|
}, arguments);
|
|
836
836
|
},
|
|
837
837
|
__wbg_getRandomValues_cc7f052a444bb2ce: function() {
|
|
838
838
|
return G(function(A, I) {
|
|
839
|
-
globalThis.crypto.getRandomValues(
|
|
839
|
+
globalThis.crypto.getRandomValues(l(A, I));
|
|
840
840
|
}, arguments);
|
|
841
841
|
},
|
|
842
842
|
__wbg_getTime_d6f070c088c9b5ed: function(A) {
|
|
@@ -976,7 +976,7 @@ function JA() {
|
|
|
976
976
|
return new Uint32Array(dA(A, I));
|
|
977
977
|
},
|
|
978
978
|
__wbg_new_from_slice_77cdfb7977362f3c: function(A, I) {
|
|
979
|
-
return new Uint8Array(
|
|
979
|
+
return new Uint8Array(l(A, I));
|
|
980
980
|
},
|
|
981
981
|
__wbg_new_typed_1824d93f294193e5: function(A, I) {
|
|
982
982
|
try {
|
|
@@ -984,7 +984,7 @@ function JA() {
|
|
|
984
984
|
const w = g.a;
|
|
985
985
|
g.a = 0;
|
|
986
986
|
try {
|
|
987
|
-
return
|
|
987
|
+
return sA(w, g.b, D, i);
|
|
988
988
|
} finally {
|
|
989
989
|
g.a = w;
|
|
990
990
|
}
|
|
@@ -1016,7 +1016,7 @@ function JA() {
|
|
|
1016
1016
|
},
|
|
1017
1017
|
__wbg_new_with_u8_clamped_array_and_sh_2767e4741c267d25: function() {
|
|
1018
1018
|
return G(function(A, I, g, B) {
|
|
1019
|
-
return new ImageData(
|
|
1019
|
+
return new ImageData(VA(A, I), g >>> 0, B >>> 0);
|
|
1020
1020
|
}, arguments);
|
|
1021
1021
|
},
|
|
1022
1022
|
__wbg_now_390768da5ee9e776: function(A) {
|
|
@@ -1036,13 +1036,13 @@ function JA() {
|
|
|
1036
1036
|
},
|
|
1037
1037
|
__wbg_performance_3ef602e13d6c3b56: function(A) {
|
|
1038
1038
|
const I = A.performance;
|
|
1039
|
-
return h(I) ? 0 :
|
|
1039
|
+
return h(I) ? 0 : L(I);
|
|
1040
1040
|
},
|
|
1041
1041
|
__wbg_performance_3fcf6e32a7e1ed0a: function(A) {
|
|
1042
1042
|
return A.performance;
|
|
1043
1043
|
},
|
|
1044
1044
|
__wbg_prototypesetcall_4770620bbe4688a0: function(A, I, g) {
|
|
1045
|
-
Uint8Array.prototype.set.call(
|
|
1045
|
+
Uint8Array.prototype.set.call(l(A, I), g);
|
|
1046
1046
|
},
|
|
1047
1047
|
__wbg_push_d2ae3af0c1217ae6: function(A, I) {
|
|
1048
1048
|
return A.push(I);
|
|
@@ -1062,7 +1062,7 @@ function JA() {
|
|
|
1062
1062
|
return A.readyState;
|
|
1063
1063
|
},
|
|
1064
1064
|
__wbg_reason_5dc8e429d537d6a9: function(A, I) {
|
|
1065
|
-
const g = I.reason, B =
|
|
1065
|
+
const g = I.reason, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1066
1066
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
1067
1067
|
},
|
|
1068
1068
|
__wbg_removeEventListener_a3f23c70077bdcc1: function() {
|
|
@@ -1074,7 +1074,7 @@ function JA() {
|
|
|
1074
1074
|
return Promise.resolve(A);
|
|
1075
1075
|
},
|
|
1076
1076
|
__wbg_search_c905fb82fd20bc6b: function(A, I) {
|
|
1077
|
-
const g = I.search, B =
|
|
1077
|
+
const g = I.search, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1078
1078
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
1079
1079
|
},
|
|
1080
1080
|
__wbg_send_1733c45567a373ff: function() {
|
|
@@ -1091,7 +1091,7 @@ function JA() {
|
|
|
1091
1091
|
return n.__wrap(A);
|
|
1092
1092
|
},
|
|
1093
1093
|
__wbg_sessionterminationinfo_new: function(A) {
|
|
1094
|
-
return
|
|
1094
|
+
return P.__wrap(A);
|
|
1095
1095
|
},
|
|
1096
1096
|
__wbg_setInterval_cbf1c35c6a692d37: function() {
|
|
1097
1097
|
return G(function(A, I) {
|
|
@@ -1144,27 +1144,27 @@ function JA() {
|
|
|
1144
1144
|
A.width = I >>> 0;
|
|
1145
1145
|
},
|
|
1146
1146
|
__wbg_stack_3b0d974bbf31e44f: function(A, I) {
|
|
1147
|
-
const g = I.stack, B =
|
|
1147
|
+
const g = I.stack, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1148
1148
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
1149
1149
|
},
|
|
1150
1150
|
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
1151
1151
|
const A = typeof global > "u" ? null : global;
|
|
1152
|
-
return h(A) ? 0 :
|
|
1152
|
+
return h(A) ? 0 : L(A);
|
|
1153
1153
|
},
|
|
1154
1154
|
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
1155
1155
|
const A = typeof globalThis > "u" ? null : globalThis;
|
|
1156
|
-
return h(A) ? 0 :
|
|
1156
|
+
return h(A) ? 0 : L(A);
|
|
1157
1157
|
},
|
|
1158
1158
|
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
1159
1159
|
const A = typeof self > "u" ? null : self;
|
|
1160
|
-
return h(A) ? 0 :
|
|
1160
|
+
return h(A) ? 0 : L(A);
|
|
1161
1161
|
},
|
|
1162
1162
|
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
1163
1163
|
const A = typeof window > "u" ? null : window;
|
|
1164
|
-
return h(A) ? 0 :
|
|
1164
|
+
return h(A) ? 0 : L(A);
|
|
1165
1165
|
},
|
|
1166
1166
|
__wbg_statusText_9f08c32741a99815: function(A, I) {
|
|
1167
|
-
const g = I.statusText, B =
|
|
1167
|
+
const g = I.statusText, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1168
1168
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
1169
1169
|
},
|
|
1170
1170
|
__wbg_status_c45b3b9b3033184a: function(A) {
|
|
@@ -1183,12 +1183,12 @@ function JA() {
|
|
|
1183
1183
|
return A.toString();
|
|
1184
1184
|
},
|
|
1185
1185
|
__wbg_url_f6cd241d61f89b82: function(A, I) {
|
|
1186
|
-
const g = I.url, B =
|
|
1186
|
+
const g = I.url, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1187
1187
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
1188
1188
|
},
|
|
1189
1189
|
__wbg_userAgent_0558f0ac642f7771: function() {
|
|
1190
1190
|
return G(function(A, I) {
|
|
1191
|
-
const g = I.userAgent, B =
|
|
1191
|
+
const g = I.userAgent, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1192
1192
|
y().setInt32(A + 4, E, true), y().setInt32(A + 0, B, true);
|
|
1193
1193
|
}, arguments);
|
|
1194
1194
|
},
|
|
@@ -1202,13 +1202,13 @@ function JA() {
|
|
|
1202
1202
|
return A.width;
|
|
1203
1203
|
},
|
|
1204
1204
|
__wbindgen_cast_0000000000000001: function(A, I) {
|
|
1205
|
-
return H(A, I,
|
|
1205
|
+
return H(A, I, LA);
|
|
1206
1206
|
},
|
|
1207
1207
|
__wbindgen_cast_0000000000000002: function(A, I) {
|
|
1208
|
-
return H(A, I,
|
|
1208
|
+
return H(A, I, aA);
|
|
1209
1209
|
},
|
|
1210
1210
|
__wbindgen_cast_0000000000000003: function(A, I) {
|
|
1211
|
-
return H(A, I,
|
|
1211
|
+
return H(A, I, SA);
|
|
1212
1212
|
},
|
|
1213
1213
|
__wbindgen_cast_0000000000000004: function(A, I) {
|
|
1214
1214
|
return H(A, I, HA);
|
|
@@ -1241,27 +1241,27 @@ function KA(Q, A) {
|
|
|
1241
1241
|
function hA(Q, A) {
|
|
1242
1242
|
C.wasm_bindgen__convert__closures_____invoke__h59fff34e32ed8cec(Q, A);
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function aA(Q, A, I) {
|
|
1245
1245
|
C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69(Q, A, I);
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function SA(Q, A, I) {
|
|
1248
1248
|
C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69_2(Q, A, I);
|
|
1249
1249
|
}
|
|
1250
1250
|
function HA(Q, A, I) {
|
|
1251
1251
|
C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69_3(Q, A, I);
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function LA(Q, A, I) {
|
|
1254
1254
|
const g = C.wasm_bindgen__convert__closures_____invoke__hfbb046a5343bcac9(Q, A, I);
|
|
1255
1255
|
if (g[1])
|
|
1256
1256
|
throw q(g[0]);
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function sA(Q, A, I, g) {
|
|
1259
1259
|
C.wasm_bindgen__convert__closures_____invoke__h4cc111f3c9bb2945(Q, A, I, g);
|
|
1260
1260
|
}
|
|
1261
1261
|
function qA(Q, A, I, g, B) {
|
|
1262
1262
|
C.wasm_bindgen__convert__closures_____invoke__h777de2c1fe9da8ab(Q, A, I, g, B);
|
|
1263
1263
|
}
|
|
1264
|
-
const ZA = ["blob", "arraybuffer"],
|
|
1264
|
+
const ZA = ["blob", "arraybuffer"], e = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1265
1265
|
}, unregister: () => {
|
|
1266
1266
|
} } : new FinalizationRegistry((Q) => C.__wbg_clipboarddata_free(Q, 1)), EA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1267
1267
|
}, unregister: () => {
|
|
@@ -1283,14 +1283,14 @@ const ZA = ["blob", "arraybuffer"], u = typeof FinalizationRegistry > "u" ? { re
|
|
|
1283
1283
|
}, unregister: () => {
|
|
1284
1284
|
} } : new FinalizationRegistry((Q) => C.__wbg_session_free(Q, 1)), $ = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1285
1285
|
}, unregister: () => {
|
|
1286
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_sessionbuilder_free(Q, 1)),
|
|
1286
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_sessionbuilder_free(Q, 1)), FA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1287
1287
|
}, unregister: () => {
|
|
1288
1288
|
} } : new FinalizationRegistry((Q) => C.__wbg_sessionterminationinfo_free(Q, 1));
|
|
1289
|
-
function
|
|
1289
|
+
function L(Q) {
|
|
1290
1290
|
const A = C.__externref_table_alloc();
|
|
1291
1291
|
return C.__wbindgen_externrefs.set(A, Q), A;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function RA(Q) {
|
|
1294
1294
|
if (typeof Q == "number" && (Q >= 1114112 || Q >= 55296 && Q < 57344)) throw new Error(`expected a valid Unicode scalar value, found ${Q}`);
|
|
1295
1295
|
}
|
|
1296
1296
|
function d(Q, A) {
|
|
@@ -1345,38 +1345,38 @@ function pA(Q, A) {
|
|
|
1345
1345
|
return C.__externref_drop_slice(Q, A), g;
|
|
1346
1346
|
}
|
|
1347
1347
|
function dA(Q, A) {
|
|
1348
|
-
return Q = Q >>> 0,
|
|
1348
|
+
return Q = Q >>> 0, OA().subarray(Q / 4, Q / 4 + A);
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return Q = Q >>> 0,
|
|
1350
|
+
function l(Q, A) {
|
|
1351
|
+
return Q = Q >>> 0, V().subarray(Q / 1, Q / 1 + A);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return Q = Q >>> 0,
|
|
1353
|
+
function VA(Q, A) {
|
|
1354
|
+
return Q = Q >>> 0, WA().subarray(Q / 1, Q / 1 + A);
|
|
1355
1355
|
}
|
|
1356
|
-
let
|
|
1356
|
+
let s = null;
|
|
1357
1357
|
function y() {
|
|
1358
|
-
return (
|
|
1358
|
+
return (s === null || s.buffer.detached === true || s.buffer.detached === void 0 && s.buffer !== C.memory.buffer) && (s = new DataView(C.memory.buffer)), s;
|
|
1359
1359
|
}
|
|
1360
1360
|
function M(Q, A) {
|
|
1361
|
-
return
|
|
1361
|
+
return xA(Q >>> 0, A);
|
|
1362
1362
|
}
|
|
1363
|
-
let
|
|
1364
|
-
function
|
|
1365
|
-
return (
|
|
1363
|
+
let x = null;
|
|
1364
|
+
function OA() {
|
|
1365
|
+
return (x === null || x.byteLength === 0) && (x = new Uint32Array(C.memory.buffer)), x;
|
|
1366
1366
|
}
|
|
1367
|
-
let
|
|
1368
|
-
function
|
|
1369
|
-
return (
|
|
1367
|
+
let t = null;
|
|
1368
|
+
function V() {
|
|
1369
|
+
return (t === null || t.byteLength === 0) && (t = new Uint8Array(C.memory.buffer)), t;
|
|
1370
1370
|
}
|
|
1371
1371
|
let b = null;
|
|
1372
|
-
function
|
|
1372
|
+
function WA() {
|
|
1373
1373
|
return (b === null || b.byteLength === 0) && (b = new Uint8ClampedArray(C.memory.buffer)), b;
|
|
1374
1374
|
}
|
|
1375
1375
|
function G(Q, A) {
|
|
1376
1376
|
try {
|
|
1377
1377
|
return Q.apply(this, A);
|
|
1378
1378
|
} catch (I) {
|
|
1379
|
-
const g =
|
|
1379
|
+
const g = L(I);
|
|
1380
1380
|
C.__wbindgen_exn_store(g);
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
@@ -1398,17 +1398,17 @@ function H(Q, A, I) {
|
|
|
1398
1398
|
--g.cnt === 0 && (C.__wbindgen_destroy_closure(g.a, g.b), g.a = 0, MA.unregister(g));
|
|
1399
1399
|
}, MA.register(B, g, g), B;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function lA(Q, A) {
|
|
1402
1402
|
const I = A(Q.length * 1, 1) >>> 0;
|
|
1403
|
-
return
|
|
1403
|
+
return V().set(Q, I / 1), k = Q.length, I;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function F(Q, A, I) {
|
|
1406
1406
|
if (I === void 0) {
|
|
1407
1407
|
const i = m.encode(Q), w = A(i.length, 1) >>> 0;
|
|
1408
|
-
return
|
|
1408
|
+
return V().subarray(w, w + i.length).set(i), k = i.length, w;
|
|
1409
1409
|
}
|
|
1410
1410
|
let g = Q.length, B = A(g, 1) >>> 0;
|
|
1411
|
-
const E =
|
|
1411
|
+
const E = V();
|
|
1412
1412
|
let D = 0;
|
|
1413
1413
|
for (; D < g; D++) {
|
|
1414
1414
|
const i = Q.charCodeAt(D);
|
|
@@ -1417,7 +1417,7 @@ function R(Q, A, I) {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
if (D !== g) {
|
|
1419
1419
|
D !== 0 && (Q = Q.slice(D)), B = I(B, g, g = D + Q.length * 3, 1) >>> 0;
|
|
1420
|
-
const i =
|
|
1420
|
+
const i = V().subarray(B + D, B + g), w = m.encodeInto(Q, i);
|
|
1421
1421
|
D += w.written, B = I(B, g, D, 1) >>> 0;
|
|
1422
1422
|
}
|
|
1423
1423
|
return k = D, B;
|
|
@@ -1426,12 +1426,12 @@ function q(Q) {
|
|
|
1426
1426
|
const A = C.__wbindgen_externrefs.get(Q);
|
|
1427
1427
|
return C.__externref_table_dealloc(Q), A;
|
|
1428
1428
|
}
|
|
1429
|
-
let
|
|
1430
|
-
|
|
1429
|
+
let r = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
1430
|
+
r.decode();
|
|
1431
1431
|
const jA = 2146435072;
|
|
1432
1432
|
let AA = 0;
|
|
1433
|
-
function
|
|
1434
|
-
return AA += A, AA >= jA && (
|
|
1433
|
+
function xA(Q, A) {
|
|
1434
|
+
return AA += A, AA >= jA && (r = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }), r.decode(), AA = A), r.decode(V().subarray(Q, Q + A));
|
|
1435
1435
|
}
|
|
1436
1436
|
const m = new TextEncoder();
|
|
1437
1437
|
"encodeInto" in m || (m.encodeInto = function(Q, A) {
|
|
@@ -1442,8 +1442,8 @@ const m = new TextEncoder();
|
|
|
1442
1442
|
};
|
|
1443
1443
|
});
|
|
1444
1444
|
let k = 0, C;
|
|
1445
|
-
function
|
|
1446
|
-
return C = Q.exports,
|
|
1445
|
+
function tA(Q, A) {
|
|
1446
|
+
return C = Q.exports, s = null, x = null, t = null, b = null, C.__wbindgen_start(), C;
|
|
1447
1447
|
}
|
|
1448
1448
|
async function bA(Q, A) {
|
|
1449
1449
|
if (typeof Response == "function" && Q instanceof Response) {
|
|
@@ -1475,13 +1475,13 @@ async function bA(Q, A) {
|
|
|
1475
1475
|
async function mA(Q) {
|
|
1476
1476
|
if (C !== void 0) return C;
|
|
1477
1477
|
Q !== void 0 && (Object.getPrototypeOf(Q) === Object.prototype ? { module_or_path: Q } = Q : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), Q === void 0 && (Q = new URL("ironrdp_web_bg.wasm", import.meta.url));
|
|
1478
|
-
const A =
|
|
1478
|
+
const A = cA();
|
|
1479
1479
|
(typeof Q == "string" || typeof Request == "function" && Q instanceof Request || typeof URL == "function" && Q instanceof URL) && (Q = fetch(Q));
|
|
1480
1480
|
const { instance: I, module: g } = await bA(await Q, A);
|
|
1481
|
-
return
|
|
1481
|
+
return tA(I);
|
|
1482
1482
|
}
|
|
1483
1483
|
const XA = "avc1.640033";
|
|
1484
|
-
function
|
|
1484
|
+
function UA() {
|
|
1485
1485
|
return {
|
|
1486
1486
|
codec: XA,
|
|
1487
1487
|
optimizeForLatency: true,
|
|
@@ -1493,7 +1493,7 @@ async function BI() {
|
|
|
1493
1493
|
if (typeof VideoDecoder > "u" || typeof EncodedVideoChunk > "u")
|
|
1494
1494
|
return false;
|
|
1495
1495
|
try {
|
|
1496
|
-
return (await VideoDecoder.isConfigSupported(
|
|
1496
|
+
return (await VideoDecoder.isConfigSupported(UA())).supported === true;
|
|
1497
1497
|
} catch {
|
|
1498
1498
|
return false;
|
|
1499
1499
|
}
|
|
@@ -1568,7 +1568,7 @@ class QI {
|
|
|
1568
1568
|
waitingSince: null,
|
|
1569
1569
|
pending: /* @__PURE__ */ new Map()
|
|
1570
1570
|
};
|
|
1571
|
-
return I.decoder.configure(
|
|
1571
|
+
return I.decoder.configure(UA()), this.surfaces.set(A, I), I;
|
|
1572
1572
|
}
|
|
1573
1573
|
output(A, I) {
|
|
1574
1574
|
const g = I.timestamp, B = A.pending.get(g);
|
|
@@ -1600,47 +1600,49 @@ class QI {
|
|
|
1600
1600
|
y: N.top - D,
|
|
1601
1601
|
width: N.right - N.left,
|
|
1602
1602
|
height: N.bottom - N.top
|
|
1603
|
-
}))
|
|
1604
|
-
if (i.length === 0)
|
|
1605
|
-
return F;
|
|
1603
|
+
}));
|
|
1606
1604
|
for (const N of i)
|
|
1607
1605
|
if (N.x < 0 || N.y < 0 || N.x + N.width > g.width || N.y + N.height > g.height)
|
|
1608
1606
|
throw new Error(
|
|
1609
1607
|
`region ${JSON.stringify(N)} is outside the ${g.width}x${g.height} picture`
|
|
1610
1608
|
);
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1609
|
+
const w = i.reduce((N, S) => N + S.width * S.height * 4, 0), R = new Uint8Array(w);
|
|
1610
|
+
if (i.length === 0)
|
|
1611
|
+
return R;
|
|
1612
|
+
const a = Math.min(...i.map((N) => N.x)), J = Math.min(...i.map((N) => N.y)), U = {
|
|
1613
|
+
x: a,
|
|
1614
|
+
y: J,
|
|
1615
|
+
width: Math.max(...i.map((N) => N.x + N.width)) - a,
|
|
1616
|
+
height: Math.max(...i.map((N) => N.y + N.height)) - J
|
|
1617
|
+
}, W = i.length === 1, z = W ? R : new Uint8Array(U.width * U.height * 4);
|
|
1618
|
+
if (await this.readBox(A, g, U, z), !W) {
|
|
1618
1619
|
let N = 0;
|
|
1619
|
-
for (const
|
|
1620
|
-
const BA =
|
|
1621
|
-
for (let
|
|
1622
|
-
const QA = ((
|
|
1623
|
-
|
|
1620
|
+
for (const S of i) {
|
|
1621
|
+
const BA = S.width * 4;
|
|
1622
|
+
for (let u = 0; u < S.height; u++) {
|
|
1623
|
+
const QA = ((S.y - U.y + u) * U.width + (S.x - U.x)) * 4;
|
|
1624
|
+
R.set(z.subarray(QA, QA + BA), N), N += BA;
|
|
1624
1625
|
}
|
|
1625
1626
|
}
|
|
1626
1627
|
}
|
|
1627
|
-
return
|
|
1628
|
+
return R;
|
|
1628
1629
|
}
|
|
1629
1630
|
async readBox(A, I, g, B) {
|
|
1630
1631
|
var _a, _b;
|
|
1631
|
-
if (this.stats.readback === "copyTo")
|
|
1632
|
+
if (this.stats.readback === "copyTo") {
|
|
1633
|
+
const D = { x: I.x + g.x, y: I.y + g.y, width: g.width, height: g.height };
|
|
1632
1634
|
try {
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
throw D;
|
|
1635
|
+
if (A.allocationSize({ rect: D, format: "RGBA" }) === g.width * g.height * 4) {
|
|
1636
|
+
await A.copyTo(B, { rect: D, format: "RGBA", colorSpace: "srgb" });
|
|
1637
|
+
return;
|
|
1638
|
+
}
|
|
1639
|
+
this.stats.readback = "canvas";
|
|
1640
|
+
} catch (i) {
|
|
1641
|
+
if (!(i instanceof DOMException && i.name === "NotSupportedError") && !(i instanceof TypeError))
|
|
1642
|
+
throw i;
|
|
1642
1643
|
this.stats.readback = "canvas";
|
|
1643
1644
|
}
|
|
1645
|
+
}
|
|
1644
1646
|
(this.canvas === null || this.canvas.width < g.width || this.canvas.height < g.height) && (this.canvas = new OffscreenCanvas(
|
|
1645
1647
|
Math.max(g.width, ((_a = this.canvas) == null ? void 0 : _a.width) ?? 0),
|
|
1646
1648
|
Math.max(g.height, ((_b = this.canvas) == null ? void 0 : _b.height) ?? 0)
|
|
@@ -1648,7 +1650,7 @@ class QI {
|
|
|
1648
1650
|
const E = this.canvas.getContext("2d", { willReadFrequently: true, colorSpace: "srgb" });
|
|
1649
1651
|
if (E === null)
|
|
1650
1652
|
throw new Error("no 2D canvas context");
|
|
1651
|
-
E.drawImage(A, g.x, g.y,
|
|
1653
|
+
E.drawImage(A, -g.x, -g.y, I.width, I.height), B.set(E.getImageData(0, 0, g.width, g.height).data);
|
|
1652
1654
|
}
|
|
1653
1655
|
stopWatchdog() {
|
|
1654
1656
|
this.watchdog !== null && (clearInterval(this.watchdog), this.watchdog = null);
|
|
@@ -1714,13 +1716,13 @@ function fA(Q) {
|
|
|
1714
1716
|
function nA(Q) {
|
|
1715
1717
|
return new o("file_contents_response_callback", Q);
|
|
1716
1718
|
}
|
|
1717
|
-
function
|
|
1719
|
+
function PA(Q) {
|
|
1718
1720
|
return new o("lock_callback", Q);
|
|
1719
1721
|
}
|
|
1720
1722
|
function zA(Q) {
|
|
1721
1723
|
return new o("unlock_callback", Q);
|
|
1722
1724
|
}
|
|
1723
|
-
function
|
|
1725
|
+
function rA(Q) {
|
|
1724
1726
|
return new o("locks_expired_callback", Q);
|
|
1725
1727
|
}
|
|
1726
1728
|
function vA(Q) {
|
|
@@ -1742,10 +1744,10 @@ function iI(Q) {
|
|
|
1742
1744
|
function wI(Q) {
|
|
1743
1745
|
return new o("printer_driver_name", Q);
|
|
1744
1746
|
}
|
|
1745
|
-
function
|
|
1747
|
+
function uA(Q) {
|
|
1746
1748
|
return new o("request_file_contents", Q);
|
|
1747
1749
|
}
|
|
1748
|
-
function
|
|
1750
|
+
function eA(Q) {
|
|
1749
1751
|
return new o("submit_file_contents", Q);
|
|
1750
1752
|
}
|
|
1751
1753
|
function _A(Q) {
|
|
@@ -1776,7 +1778,7 @@ class $A {
|
|
|
1776
1778
|
this.finalized || (this.finalized = true, this.chunks = []);
|
|
1777
1779
|
}
|
|
1778
1780
|
}
|
|
1779
|
-
class
|
|
1781
|
+
class YA {
|
|
1780
1782
|
constructor() {
|
|
1781
1783
|
__publicField(this, "name", "blob");
|
|
1782
1784
|
}
|
|
@@ -1822,7 +1824,7 @@ class AI {
|
|
|
1822
1824
|
}
|
|
1823
1825
|
}
|
|
1824
1826
|
}
|
|
1825
|
-
const
|
|
1827
|
+
const _O = class _O {
|
|
1826
1828
|
constructor(A, I, g) {
|
|
1827
1829
|
__publicField(this, "name", "opfs");
|
|
1828
1830
|
/** Sequence counter for generating unique temp file names. */
|
|
@@ -1837,7 +1839,7 @@ const _V = class _V {
|
|
|
1837
1839
|
*/
|
|
1838
1840
|
static async create(A, I) {
|
|
1839
1841
|
const g = I ?? `s-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, B = await A.getDirectoryHandle("ironrdp-transfers", { create: true }), E = await B.getDirectoryHandle(g, { create: true });
|
|
1840
|
-
return
|
|
1842
|
+
return _O.cleanupStale(B, g), new _O(A, E, g);
|
|
1841
1843
|
}
|
|
1842
1844
|
// 24 hours
|
|
1843
1845
|
/**
|
|
@@ -1858,7 +1860,7 @@ const _V = class _V {
|
|
|
1858
1860
|
if (!E)
|
|
1859
1861
|
continue;
|
|
1860
1862
|
const D = Number(E[1]);
|
|
1861
|
-
if (g - D >
|
|
1863
|
+
if (g - D > _O.STALE_SESSION_THRESHOLD_MS)
|
|
1862
1864
|
try {
|
|
1863
1865
|
await A.removeEntry(B, { recursive: true });
|
|
1864
1866
|
} catch {
|
|
@@ -1915,8 +1917,8 @@ const _V = class _V {
|
|
|
1915
1917
|
}
|
|
1916
1918
|
};
|
|
1917
1919
|
/** Maximum age (in milliseconds) before a session directory is considered stale. */
|
|
1918
|
-
__publicField(
|
|
1919
|
-
let
|
|
1920
|
+
__publicField(_O, "STALE_SESSION_THRESHOLD_MS", 1440 * 60 * 1e3);
|
|
1921
|
+
let O = _O;
|
|
1920
1922
|
function II(Q) {
|
|
1921
1923
|
let A = Q.replace(/[\u0000-\u001f]/g, "");
|
|
1922
1924
|
A = A.replace(/[/\\]/g, "_"), A = A.replace(/^\.+/, ""), A.length === 0 && (A = "unnamed");
|
|
@@ -1931,19 +1933,19 @@ function II(Q) {
|
|
|
1931
1933
|
async function gI(Q = "auto", A) {
|
|
1932
1934
|
var _a, _b;
|
|
1933
1935
|
if (Q === "blob")
|
|
1934
|
-
return new
|
|
1936
|
+
return new YA();
|
|
1935
1937
|
if (typeof ((_b = (_a = globalThis.navigator) == null ? void 0 : _a.storage) == null ? void 0 : _b.getDirectory) == "function")
|
|
1936
1938
|
try {
|
|
1937
1939
|
const I = await navigator.storage.getDirectory();
|
|
1938
|
-
if (await
|
|
1939
|
-
return
|
|
1940
|
+
if (await O.probe(I))
|
|
1941
|
+
return O.create(I, A);
|
|
1940
1942
|
console.debug("OPFS probe failed (createWritable not functional), falling back to blob storage");
|
|
1941
1943
|
} catch (I) {
|
|
1942
1944
|
console.debug("OPFS unavailable, falling back to blob storage:", I);
|
|
1943
1945
|
}
|
|
1944
|
-
return new
|
|
1946
|
+
return new YA();
|
|
1945
1947
|
}
|
|
1946
|
-
const
|
|
1948
|
+
const _c = class _c {
|
|
1947
1949
|
constructor(A) {
|
|
1948
1950
|
__publicField(this, "session");
|
|
1949
1951
|
__publicField(this, "chunkSize");
|
|
@@ -2031,7 +2033,7 @@ const _J = class _J {
|
|
|
2031
2033
|
// with invokeExtension() to keep the Session interface protocol-agnostic.
|
|
2032
2034
|
sendRequestFileContents(A, I, g, B, E, D) {
|
|
2033
2035
|
this.ensureSession().invokeExtension(
|
|
2034
|
-
|
|
2036
|
+
uA({
|
|
2035
2037
|
stream_id: A,
|
|
2036
2038
|
file_index: I,
|
|
2037
2039
|
flags: g,
|
|
@@ -2043,7 +2045,7 @@ const _J = class _J {
|
|
|
2043
2045
|
}
|
|
2044
2046
|
sendSubmitFileContents(A, I, g) {
|
|
2045
2047
|
var _a;
|
|
2046
|
-
(_a = this.session) == null ? void 0 : _a.invokeExtension(
|
|
2048
|
+
(_a = this.session) == null ? void 0 : _a.invokeExtension(eA({ stream_id: A, is_error: I, data: g }));
|
|
2047
2049
|
}
|
|
2048
2050
|
sendInitiateFileCopy(A) {
|
|
2049
2051
|
this.ensureSession().invokeExtension(_A(A));
|
|
@@ -2059,9 +2061,9 @@ const _J = class _J {
|
|
|
2059
2061
|
),
|
|
2060
2062
|
fA((A) => this.handleFileContentsRequest(A)),
|
|
2061
2063
|
nA((A) => this.handleFileContentsResponse(A)),
|
|
2062
|
-
|
|
2064
|
+
PA((A) => this.handleLock(A)),
|
|
2063
2065
|
zA((A) => this.handleUnlock(A)),
|
|
2064
|
-
|
|
2066
|
+
rA((A) => this.handleLocksExpired(A)),
|
|
2065
2067
|
vA((A) => this.handleFormatListResponse(A))
|
|
2066
2068
|
];
|
|
2067
2069
|
}
|
|
@@ -2197,19 +2199,19 @@ const _J = class _J {
|
|
|
2197
2199
|
* ```
|
|
2198
2200
|
*/
|
|
2199
2201
|
async downloadFilesConcurrent(A, I = {}) {
|
|
2200
|
-
const g = I.maxConcurrent ?? 3, B = /* @__PURE__ */ new Map(), E = [], D = A.map((w,
|
|
2202
|
+
const g = I.maxConcurrent ?? 3, B = /* @__PURE__ */ new Map(), E = [], D = A.map((w, R) => async () => {
|
|
2201
2203
|
try {
|
|
2202
|
-
const { completion:
|
|
2203
|
-
B.set(
|
|
2204
|
-
} catch (
|
|
2205
|
-
E.push({ index:
|
|
2204
|
+
const { completion: a } = this.downloadFile(w, R), J = await a;
|
|
2205
|
+
B.set(R, J);
|
|
2206
|
+
} catch (a) {
|
|
2207
|
+
E.push({ index: R, error: a });
|
|
2206
2208
|
}
|
|
2207
2209
|
}), i = [];
|
|
2208
2210
|
for (const w of D) {
|
|
2209
|
-
const
|
|
2210
|
-
i.splice(i.indexOf(
|
|
2211
|
+
const R = w().finally(() => {
|
|
2212
|
+
i.splice(i.indexOf(R), 1);
|
|
2211
2213
|
});
|
|
2212
|
-
i.push(
|
|
2214
|
+
i.push(R), i.length >= g && await Promise.race(i);
|
|
2213
2215
|
}
|
|
2214
2216
|
if (await Promise.all(i), E.length > 0)
|
|
2215
2217
|
throw new Error(
|
|
@@ -2237,7 +2239,7 @@ const _J = class _J {
|
|
|
2237
2239
|
*/
|
|
2238
2240
|
uploadFiles(A) {
|
|
2239
2241
|
this.uploadState !== void 0 && this.supersedeUpload(), this.retainedFiles = void 0;
|
|
2240
|
-
const I =
|
|
2242
|
+
const I = _c.normalizeToDroppedFiles(A), g = /* @__PURE__ */ new Map();
|
|
2241
2243
|
for (let w = 0; w < I.length; w++)
|
|
2242
2244
|
g.set(w, this.generateStreamId());
|
|
2243
2245
|
const B = I.map((w) => ({
|
|
@@ -2246,7 +2248,7 @@ const _J = class _J {
|
|
|
2246
2248
|
lastModified: w.lastModified,
|
|
2247
2249
|
path: w.path,
|
|
2248
2250
|
isDirectory: w.isDirectory
|
|
2249
|
-
})), E = I.filter((w) => w.isDirectory !== true).length, D = I.map((w) => w.file), i = new Promise((w,
|
|
2251
|
+
})), E = I.filter((w) => w.isDirectory !== true).length, D = I.map((w) => w.file), i = new Promise((w, R) => {
|
|
2250
2252
|
this.uploadState = {
|
|
2251
2253
|
files: D,
|
|
2252
2254
|
droppedFiles: I,
|
|
@@ -2258,18 +2260,18 @@ const _J = class _J {
|
|
|
2258
2260
|
readerTimeouts: /* @__PURE__ */ new Map(),
|
|
2259
2261
|
transferIds: g,
|
|
2260
2262
|
resolve: w,
|
|
2261
|
-
reject:
|
|
2263
|
+
reject: R
|
|
2262
2264
|
}, this.suppressUploadMonitoring();
|
|
2263
2265
|
try {
|
|
2264
2266
|
this.sendInitiateFileCopy(B), this.emit("upload-batch-started", g, I);
|
|
2265
|
-
} catch (
|
|
2267
|
+
} catch (a) {
|
|
2266
2268
|
this.uploadState = void 0, this.resumeUploadMonitoring();
|
|
2267
|
-
const
|
|
2269
|
+
const J = {
|
|
2268
2270
|
message: "Failed to initiate file upload",
|
|
2269
2271
|
direction: "upload",
|
|
2270
|
-
cause:
|
|
2272
|
+
cause: a
|
|
2271
2273
|
};
|
|
2272
|
-
this.emit("error",
|
|
2274
|
+
this.emit("error", J), R(new Error(J.message, { cause: a }));
|
|
2273
2275
|
return;
|
|
2274
2276
|
}
|
|
2275
2277
|
this.armPasteAckWatchdog();
|
|
@@ -2313,7 +2315,7 @@ const _J = class _J {
|
|
|
2313
2315
|
this.pasteAckTimeout = void 0;
|
|
2314
2316
|
const A = this.uploadState;
|
|
2315
2317
|
A !== void 0 && A.isRePaste !== true ? this.failPendingUpload("The remote did not request the files in time, so the paste was not completed") : this.resumeUploadMonitoring();
|
|
2316
|
-
},
|
|
2318
|
+
}, _c.PASTE_ACK_TIMEOUT_MS);
|
|
2317
2319
|
}
|
|
2318
2320
|
/** Disarm the paste-acknowledgment watchdog, if armed. */
|
|
2319
2321
|
clearPasteAckWatchdog() {
|
|
@@ -2331,7 +2333,7 @@ const _J = class _J {
|
|
|
2331
2333
|
this.uploadInactivityTimeout = void 0;
|
|
2332
2334
|
const A = this.uploadState;
|
|
2333
2335
|
A !== void 0 && A.isRePaste !== true && this.failPendingUpload("The remote stopped requesting the files, so the paste did not complete");
|
|
2334
|
-
},
|
|
2336
|
+
}, _c.UPLOAD_INACTIVITY_TIMEOUT_MS);
|
|
2335
2337
|
}
|
|
2336
2338
|
/** Disarm the upload inactivity watchdog, if armed. */
|
|
2337
2339
|
clearUploadInactivityWatchdog() {
|
|
@@ -2468,7 +2470,7 @@ const _J = class _J {
|
|
|
2468
2470
|
* ```
|
|
2469
2471
|
*/
|
|
2470
2472
|
async handleDrop(A) {
|
|
2471
|
-
var _a, _b,
|
|
2473
|
+
var _a, _b, _c2;
|
|
2472
2474
|
A.preventDefault();
|
|
2473
2475
|
const I = [];
|
|
2474
2476
|
if ((_a = A.dataTransfer) == null ? void 0 : _a.items) {
|
|
@@ -2492,7 +2494,7 @@ const _J = class _J {
|
|
|
2492
2494
|
size: E.size,
|
|
2493
2495
|
lastModified: E.lastModified
|
|
2494
2496
|
});
|
|
2495
|
-
} else if ((
|
|
2497
|
+
} else if ((_c2 = A.dataTransfer) == null ? void 0 : _c2.files)
|
|
2496
2498
|
for (const g of Array.from(A.dataTransfer.files))
|
|
2497
2499
|
I.push({
|
|
2498
2500
|
file: g,
|
|
@@ -2519,10 +2521,10 @@ const _J = class _J {
|
|
|
2519
2521
|
* entries into `results`.
|
|
2520
2522
|
*/
|
|
2521
2523
|
async traverseEntry(A, I, g, B) {
|
|
2522
|
-
if (!(g.length >=
|
|
2523
|
-
if (B >
|
|
2524
|
+
if (!(g.length >= _c.MAX_DIRECTORY_ENTRIES)) {
|
|
2525
|
+
if (B > _c.MAX_DIRECTORY_DEPTH) {
|
|
2524
2526
|
console.warn(
|
|
2525
|
-
`Skipping "${A.name}": directory depth exceeds ${
|
|
2527
|
+
`Skipping "${A.name}": directory depth exceeds ${_c.MAX_DIRECTORY_DEPTH}`
|
|
2526
2528
|
);
|
|
2527
2529
|
return;
|
|
2528
2530
|
}
|
|
@@ -2547,7 +2549,7 @@ const _J = class _J {
|
|
|
2547
2549
|
path: I,
|
|
2548
2550
|
isDirectory: true
|
|
2549
2551
|
});
|
|
2550
|
-
const D = A.createReader(), i = await
|
|
2552
|
+
const D = A.createReader(), i = await _c.readAllDirectoryEntries(D);
|
|
2551
2553
|
for (const w of i)
|
|
2552
2554
|
await this.traverseEntry(w, E, g, B + 1);
|
|
2553
2555
|
}
|
|
@@ -2599,8 +2601,8 @@ const _J = class _J {
|
|
|
2599
2601
|
this.failPendingUpload("Upload interrupted: the remote clipboard changed");
|
|
2600
2602
|
const g = A.map((B) => ({
|
|
2601
2603
|
...B,
|
|
2602
|
-
name:
|
|
2603
|
-
path: B.path !== void 0 ?
|
|
2604
|
+
name: _c.sanitizeFileName(B.name),
|
|
2605
|
+
path: B.path !== void 0 ? _c.sanitizePath(B.path) : void 0
|
|
2604
2606
|
}));
|
|
2605
2607
|
this.availableFiles = g, this.clipDataId = I, this.emit("files-available", g);
|
|
2606
2608
|
}
|
|
@@ -2663,60 +2665,60 @@ const _J = class _J {
|
|
|
2663
2665
|
const w = new Uint8Array(8);
|
|
2664
2666
|
new DataView(w.buffer).setBigUint64(0, BigInt(i.size), true), this.sendSubmitFileContents(A.streamId, false, w), i.size === 0 && this.markUploadFileComplete(A.index, i, I.transferIds.get(A.index) ?? -1);
|
|
2665
2667
|
} else if ((A.flags & j.RANGE) !== 0) {
|
|
2666
|
-
const w = i.slice(A.position, A.position + A.size),
|
|
2667
|
-
I.activeReaders.set(A.streamId,
|
|
2668
|
-
const
|
|
2668
|
+
const w = i.slice(A.position, A.position + A.size), R = new FileReader();
|
|
2669
|
+
I.activeReaders.set(A.streamId, R);
|
|
2670
|
+
const a = setTimeout(() => {
|
|
2669
2671
|
var _a;
|
|
2670
|
-
|
|
2671
|
-
const
|
|
2672
|
-
message: `File read timeout after ${
|
|
2672
|
+
R.abort(), this.uploadState !== void 0 && (this.uploadState.activeReaders.delete(A.streamId), this.uploadState.readerTimeouts.delete(A.streamId)), this.sendSubmitFileContents(A.streamId, true, new Uint8Array());
|
|
2673
|
+
const J = {
|
|
2674
|
+
message: `File read timeout after ${_c.FILE_READER_TIMEOUT_MS / 1e3}s`,
|
|
2673
2675
|
transferId: (_a = this.uploadState) == null ? void 0 : _a.transferIds.get(A.index),
|
|
2674
2676
|
fileIndex: A.index,
|
|
2675
2677
|
fileName: D.name,
|
|
2676
2678
|
direction: "upload"
|
|
2677
2679
|
};
|
|
2678
|
-
this.emit("error",
|
|
2679
|
-
},
|
|
2680
|
-
I.readerTimeouts.set(A.streamId,
|
|
2680
|
+
this.emit("error", J), this.uploadState !== void 0 && (this.uploadState.failedFiles.add(A.index), this.uploadState.completedFiles.add(A.index), this.uploadState.completedFiles.size >= this.uploadState.expectedFileCount && this.finishUploadBatch(this.uploadState));
|
|
2681
|
+
}, _c.FILE_READER_TIMEOUT_MS);
|
|
2682
|
+
I.readerTimeouts.set(A.streamId, a), R.onload = () => {
|
|
2681
2683
|
if (this.uploadState !== void 0) {
|
|
2682
2684
|
this.uploadState.activeReaders.delete(A.streamId);
|
|
2683
|
-
const
|
|
2684
|
-
|
|
2685
|
+
const U = this.uploadState.readerTimeouts.get(A.streamId);
|
|
2686
|
+
U !== void 0 && (clearTimeout(U), this.uploadState.readerTimeouts.delete(A.streamId));
|
|
2685
2687
|
}
|
|
2686
|
-
const
|
|
2687
|
-
if (this.sendSubmitFileContents(A.streamId, false,
|
|
2688
|
-
const
|
|
2689
|
-
this.uploadState.bytesServed.set(A.index,
|
|
2690
|
-
const
|
|
2691
|
-
transferId:
|
|
2688
|
+
const J = new Uint8Array(R.result);
|
|
2689
|
+
if (this.sendSubmitFileContents(A.streamId, false, J), this.uploadState !== void 0) {
|
|
2690
|
+
const U = (this.uploadState.bytesServed.get(A.index) ?? 0) + J.length;
|
|
2691
|
+
this.uploadState.bytesServed.set(A.index, U);
|
|
2692
|
+
const W = this.uploadState.transferIds.get(A.index) ?? -1, z = {
|
|
2693
|
+
transferId: W,
|
|
2692
2694
|
fileIndex: A.index,
|
|
2693
2695
|
fileName: D.name,
|
|
2694
|
-
bytesTransferred:
|
|
2696
|
+
bytesTransferred: U,
|
|
2695
2697
|
totalBytes: i.size,
|
|
2696
|
-
percentage: i.size === 0 ? 100 : Math.min(
|
|
2698
|
+
percentage: i.size === 0 ? 100 : Math.min(U / i.size * 100, 100)
|
|
2697
2699
|
};
|
|
2698
|
-
this.emit("upload-progress", z),
|
|
2700
|
+
this.emit("upload-progress", z), U >= i.size && this.markUploadFileComplete(A.index, i, W);
|
|
2699
2701
|
}
|
|
2700
|
-
},
|
|
2702
|
+
}, R.onerror = () => {
|
|
2701
2703
|
var _a, _b;
|
|
2702
2704
|
if (this.uploadState !== void 0) {
|
|
2703
2705
|
this.uploadState.activeReaders.delete(A.streamId);
|
|
2704
|
-
const
|
|
2705
|
-
|
|
2706
|
+
const U = this.uploadState.readerTimeouts.get(A.streamId);
|
|
2707
|
+
U !== void 0 && (clearTimeout(U), this.uploadState.readerTimeouts.delete(A.streamId));
|
|
2706
2708
|
}
|
|
2707
2709
|
if (((_a = this.uploadState) == null ? void 0 : _a.failedFiles.has(A.index)) === true)
|
|
2708
2710
|
return;
|
|
2709
2711
|
this.sendSubmitFileContents(A.streamId, true, new Uint8Array());
|
|
2710
|
-
const
|
|
2712
|
+
const J = {
|
|
2711
2713
|
message: "Failed to read file chunk",
|
|
2712
2714
|
transferId: (_b = this.uploadState) == null ? void 0 : _b.transferIds.get(A.index),
|
|
2713
2715
|
fileIndex: A.index,
|
|
2714
2716
|
fileName: D.name,
|
|
2715
2717
|
direction: "upload",
|
|
2716
|
-
cause:
|
|
2718
|
+
cause: R.error
|
|
2717
2719
|
};
|
|
2718
|
-
this.emit("error",
|
|
2719
|
-
},
|
|
2720
|
+
this.emit("error", J), this.uploadState !== void 0 && (this.uploadState.failedFiles.add(A.index), this.uploadState.completedFiles.add(A.index), this.uploadState.completedFiles.size >= this.uploadState.expectedFileCount && this.finishUploadBatch(this.uploadState));
|
|
2721
|
+
}, R.readAsArrayBuffer(w);
|
|
2720
2722
|
}
|
|
2721
2723
|
}
|
|
2722
2724
|
/**
|
|
@@ -2788,7 +2790,7 @@ const _J = class _J {
|
|
|
2788
2790
|
return;
|
|
2789
2791
|
}
|
|
2790
2792
|
const g = new DataView(A.data.buffer, A.data.byteOffset, A.data.byteLength), B = Number(g.getBigUint64(0, true));
|
|
2791
|
-
if (B >
|
|
2793
|
+
if (B > _c.MAX_FILE_SIZE) {
|
|
2792
2794
|
this.activeDownloads.delete(A.streamId), this.abortWriteHandle(I);
|
|
2793
2795
|
const E = {
|
|
2794
2796
|
message: `File size ${(B / (1024 * 1024 * 1024)).toFixed(2)}GB exceeds maximum download limit of 2GB`,
|
|
@@ -2821,7 +2823,7 @@ const _J = class _J {
|
|
|
2821
2823
|
initWriteHandleAndRequestFirstChunk(A) {
|
|
2822
2824
|
A.writeHandleReady = (async () => {
|
|
2823
2825
|
try {
|
|
2824
|
-
const I = (async () => (await this.ensureStorageBackend()).createWriteHandle(A.fileInfo.name, A.expectedSize ?? 0))(), g =
|
|
2826
|
+
const I = (async () => (await this.ensureStorageBackend()).createWriteHandle(A.fileInfo.name, A.expectedSize ?? 0))(), g = _c.WRITE_HANDLE_INIT_TIMEOUT_MS, B = await Promise.race([
|
|
2825
2827
|
I,
|
|
2826
2828
|
new Promise(
|
|
2827
2829
|
(E, D) => setTimeout(() => D(new Error(`Storage init timed out after ${g / 1e3}s`)), g)
|
|
@@ -3007,9 +3009,9 @@ const _J = class _J {
|
|
|
3007
3009
|
}
|
|
3008
3010
|
};
|
|
3009
3011
|
/** Maximum file size for downloads (2GB) to prevent browser out-of-memory errors */
|
|
3010
|
-
__publicField(
|
|
3012
|
+
__publicField(_c, "MAX_FILE_SIZE", 2 * 1024 * 1024 * 1024);
|
|
3011
3013
|
/** Timeout for FileReader operations (60 seconds) to prevent stalled uploads */
|
|
3012
|
-
__publicField(
|
|
3014
|
+
__publicField(_c, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
|
|
3013
3015
|
/**
|
|
3014
3016
|
* How long to keep clipboard monitoring suppressed after advertising an upload
|
|
3015
3017
|
* while waiting for the remote to pull the files (first FileContentsRequest),
|
|
@@ -3019,7 +3021,7 @@ __publicField(_J, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
|
|
|
3019
3021
|
* clobbered), the watchdog resumes monitoring and fails the upload so its state
|
|
3020
3022
|
* cannot wedge later uploads.
|
|
3021
3023
|
*/
|
|
3022
|
-
__publicField(
|
|
3024
|
+
__publicField(_c, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
|
|
3023
3025
|
/**
|
|
3024
3026
|
* Upload inactivity window. After the remote starts pulling, each FileContentsRequest
|
|
3025
3027
|
* resets this; if pulls then stop for this long -- e.g. the remote grabbed the
|
|
@@ -3027,21 +3029,21 @@ __publicField(_J, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
|
|
|
3027
3029
|
* upload is failed so `uploadState` is released and later uploads aren't wedged. A
|
|
3028
3030
|
* slow-but-progressing transfer keeps resetting it, so it is never killed.
|
|
3029
3031
|
*/
|
|
3030
|
-
__publicField(
|
|
3032
|
+
__publicField(_c, "UPLOAD_INACTIVITY_TIMEOUT_MS", 60 * 1e3);
|
|
3031
3033
|
/** Timeout for storage backend write handle initialization (30 seconds). */
|
|
3032
|
-
__publicField(
|
|
3034
|
+
__publicField(_c, "WRITE_HANDLE_INIT_TIMEOUT_MS", 30 * 1e3);
|
|
3033
3035
|
/** Maximum recursion depth when traversing dropped directories. */
|
|
3034
|
-
__publicField(
|
|
3036
|
+
__publicField(_c, "MAX_DIRECTORY_DEPTH", 32);
|
|
3035
3037
|
/** Maximum total entries (files + directories) collected from a single drop. */
|
|
3036
|
-
__publicField(
|
|
3037
|
-
let
|
|
3038
|
+
__publicField(_c, "MAX_DIRECTORY_ENTRIES", 1e3);
|
|
3039
|
+
let c = _c;
|
|
3038
3040
|
async function GI(Q, A) {
|
|
3039
|
-
await mA(A === void 0 ? void 0 : { module_or_path: A }),
|
|
3041
|
+
await mA(A === void 0 ? void 0 : { module_or_path: A }), JA(Q);
|
|
3040
3042
|
}
|
|
3041
3043
|
const oI = {
|
|
3042
3044
|
DesktopSize: p,
|
|
3043
3045
|
InputTransaction: v,
|
|
3044
|
-
SessionBuilder:
|
|
3046
|
+
SessionBuilder: Y,
|
|
3045
3047
|
ClipboardData: Z,
|
|
3046
3048
|
DeviceEvent: K
|
|
3047
3049
|
};
|
|
@@ -3054,10 +3056,10 @@ function kI(Q, A = "enhanced") {
|
|
|
3054
3056
|
const I = A === "enhanced" ? `${Q};EnhancedMode=1` : Q;
|
|
3055
3057
|
return new o("vmconnect", I);
|
|
3056
3058
|
}
|
|
3057
|
-
function
|
|
3059
|
+
function FI(Q) {
|
|
3058
3060
|
return new o("display_control", Q);
|
|
3059
3061
|
}
|
|
3060
|
-
function
|
|
3062
|
+
function RI(Q) {
|
|
3061
3063
|
return new o("graphics_pipeline", Q);
|
|
3062
3064
|
}
|
|
3063
3065
|
function MI(Q) {
|
|
@@ -3066,17 +3068,17 @@ function MI(Q) {
|
|
|
3066
3068
|
function yI(Q) {
|
|
3067
3069
|
return new o("audio_playback", Q);
|
|
3068
3070
|
}
|
|
3069
|
-
function
|
|
3071
|
+
function YI(Q) {
|
|
3070
3072
|
return new o("audio_input", Q);
|
|
3071
3073
|
}
|
|
3072
|
-
function
|
|
3074
|
+
function UI(Q) {
|
|
3073
3075
|
const A = Q instanceof Uint8Array ? Q : new Uint8Array(Q.buffer, Q.byteOffset, Q.byteLength);
|
|
3074
3076
|
return new o("audio_input_data", A);
|
|
3075
3077
|
}
|
|
3076
|
-
function
|
|
3078
|
+
function JI(Q) {
|
|
3077
3079
|
return new o("kdc_proxy_url", Q);
|
|
3078
3080
|
}
|
|
3079
|
-
function
|
|
3081
|
+
function cI(Q) {
|
|
3080
3082
|
return new o("outbound_message_size_limit", Q);
|
|
3081
3083
|
}
|
|
3082
3084
|
function KI(Q) {
|
|
@@ -3085,45 +3087,45 @@ function KI(Q) {
|
|
|
3085
3087
|
function hI(Q) {
|
|
3086
3088
|
return new o("enable_server_pointer", Q);
|
|
3087
3089
|
}
|
|
3088
|
-
function
|
|
3090
|
+
function aI(Q) {
|
|
3089
3091
|
return new o("legacy_graphics", Q);
|
|
3090
3092
|
}
|
|
3091
3093
|
export {
|
|
3092
3094
|
oI as Backend,
|
|
3093
|
-
|
|
3095
|
+
YA as BlobStorageBackend,
|
|
3094
3096
|
j as FileContentsFlags,
|
|
3095
|
-
|
|
3097
|
+
O as OpfsStorageBackend,
|
|
3096
3098
|
CI as PrinterDriverName,
|
|
3097
3099
|
CA as RdpFile,
|
|
3098
|
-
|
|
3100
|
+
c as RdpFileTransferProvider,
|
|
3099
3101
|
QI as WebCodecsH264Decoder,
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
+
YI as audioInput,
|
|
3103
|
+
UI as audioInputData,
|
|
3102
3104
|
yI as audioPlayback,
|
|
3103
3105
|
gI as detectStorageBackend,
|
|
3104
|
-
|
|
3106
|
+
FI as displayControl,
|
|
3105
3107
|
KI as enableCredssp,
|
|
3106
3108
|
hI as enableServerPointer,
|
|
3107
3109
|
fA as fileContentsRequestCallback,
|
|
3108
3110
|
nA as fileContentsResponseCallback,
|
|
3109
3111
|
TA as filesAvailableCallback,
|
|
3110
|
-
|
|
3112
|
+
RI as graphicsPipeline,
|
|
3111
3113
|
MI as h264Decoder,
|
|
3112
3114
|
BI as h264Supported,
|
|
3113
3115
|
GI as init,
|
|
3114
3116
|
_A as initiateFileCopy,
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3117
|
+
JI as kdcProxyUrl,
|
|
3118
|
+
aI as legacyGraphics,
|
|
3119
|
+
PA as lockCallback,
|
|
3120
|
+
rA as locksExpiredCallback,
|
|
3121
|
+
cI as outboundMessageSizeLimit,
|
|
3120
3122
|
NI as preConnectionBlob,
|
|
3121
3123
|
EI as printJobStreamCallbacks,
|
|
3122
3124
|
iI as printerDeviceId,
|
|
3123
3125
|
wI as printerDriverName,
|
|
3124
3126
|
DI as printerName,
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
+
uA as requestFileContents,
|
|
3128
|
+
eA as submitFileContents,
|
|
3127
3129
|
zA as unlockCallback,
|
|
3128
3130
|
kI as vmConnect
|
|
3129
3131
|
};
|