@uxland/primary-shell 7.47.3 → 7.47.5
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/dist/{component-BQSdR2nu.js → component-C6IdTseU.js} +2 -2
- package/dist/{component-BQSdR2nu.js.map → component-C6IdTseU.js.map} +1 -1
- package/dist/{index-COaCoudK.js → index-C2OnQp-I.js} +497 -457
- package/dist/index-C2OnQp-I.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/index.umd.cjs.map +1 -1
- package/dist/{plugin-Bt7PVg3Z.js → plugin-C6qd-VVE.js} +7 -5
- package/dist/{plugin-Bt7PVg3Z.js.map → plugin-C6qd-VVE.js.map} +1 -1
- package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +3 -2
- package/dist/primary/shell/src/api/region-manager/remove-view-idempotency.test.d.ts +1 -0
- package/dist/primary/shell/src/features/exit/handler.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/region-manager/region-manager.test.ts +57 -2
- package/src/api/region-manager/region-manager.ts +36 -4
- package/src/api/region-manager/remove-view-idempotency.test.ts +98 -0
- package/src/features/exit/handler.test.ts +60 -0
- package/src/features/exit/handler.ts +17 -1
- package/dist/index-COaCoudK.js.map +0 -1
|
@@ -70,7 +70,7 @@ function require_Reflect() {
|
|
|
70
70
|
}
|
|
71
71
|
}, he = Object.getPrototypeOf(Function), ge = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Xt(), ve = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : As(), me = typeof WeakMap == "function" ? WeakMap : is(), _e = re ? Symbol.for("@reflect-metadata:registry") : void 0, ye = Ft(), Ae = Ut(ye);
|
|
72
72
|
function Ce(ot, gt, yt, Ct) {
|
|
73
|
-
if (
|
|
73
|
+
if (Ve(yt)) {
|
|
74
74
|
if (!Pt(ot))
|
|
75
75
|
throw new TypeError();
|
|
76
76
|
if (!Ht(gt))
|
|
@@ -79,9 +79,9 @@ function require_Reflect() {
|
|
|
79
79
|
} else {
|
|
80
80
|
if (!Pt(ot))
|
|
81
81
|
throw new TypeError();
|
|
82
|
-
if (!
|
|
82
|
+
if (!Be(gt))
|
|
83
83
|
throw new TypeError();
|
|
84
|
-
if (!
|
|
84
|
+
if (!Be(Ct) && !Ve(Ct) && !Qe(Ct))
|
|
85
85
|
throw new TypeError();
|
|
86
86
|
return Qe(Ct) && (Ct = void 0), yt = St(yt), He(ot, gt, yt, Ct);
|
|
87
87
|
}
|
|
@@ -89,9 +89,9 @@ function require_Reflect() {
|
|
|
89
89
|
te("decorate", Ce);
|
|
90
90
|
function we(ot, gt) {
|
|
91
91
|
function yt(Ct, Mt) {
|
|
92
|
-
if (!
|
|
92
|
+
if (!Be(Ct))
|
|
93
93
|
throw new TypeError();
|
|
94
|
-
if (!
|
|
94
|
+
if (!Ve(Mt) && !jt(Mt))
|
|
95
95
|
throw new TypeError();
|
|
96
96
|
Xe(ot, gt, Ct, Mt);
|
|
97
97
|
}
|
|
@@ -99,66 +99,66 @@ function require_Reflect() {
|
|
|
99
99
|
}
|
|
100
100
|
te("metadata", we);
|
|
101
101
|
function Se(ot, gt, yt, Ct) {
|
|
102
|
-
if (!
|
|
102
|
+
if (!Be(yt))
|
|
103
103
|
throw new TypeError();
|
|
104
|
-
return
|
|
104
|
+
return Ve(Ct) || (Ct = St(Ct)), Xe(ot, gt, yt, Ct);
|
|
105
105
|
}
|
|
106
106
|
te("defineMetadata", Se);
|
|
107
107
|
function Me(ot, gt, yt) {
|
|
108
|
-
if (!
|
|
108
|
+
if (!Be(gt))
|
|
109
109
|
throw new TypeError();
|
|
110
|
-
return
|
|
110
|
+
return Ve(yt) || (yt = St(yt)), Ge(ot, gt, yt);
|
|
111
111
|
}
|
|
112
112
|
te("hasMetadata", Me);
|
|
113
113
|
function Ie(ot, gt, yt) {
|
|
114
|
-
if (!
|
|
114
|
+
if (!Be(gt))
|
|
115
115
|
throw new TypeError();
|
|
116
|
-
return
|
|
116
|
+
return Ve(yt) || (yt = St(yt)), Ze(ot, gt, yt);
|
|
117
117
|
}
|
|
118
118
|
te("hasOwnMetadata", Ie);
|
|
119
119
|
function ze(ot, gt, yt) {
|
|
120
|
-
if (!
|
|
120
|
+
if (!Be(gt))
|
|
121
121
|
throw new TypeError();
|
|
122
|
-
return
|
|
122
|
+
return Ve(yt) || (yt = St(yt)), Ye(ot, gt, yt);
|
|
123
123
|
}
|
|
124
124
|
te("getMetadata", ze);
|
|
125
125
|
function Ue(ot, gt, yt) {
|
|
126
|
-
if (!
|
|
126
|
+
if (!Be(gt))
|
|
127
127
|
throw new TypeError();
|
|
128
|
-
return
|
|
128
|
+
return Ve(yt) || (yt = St(yt)), bt(ot, gt, yt);
|
|
129
129
|
}
|
|
130
130
|
te("getOwnMetadata", Ue);
|
|
131
131
|
function Le(ot, gt) {
|
|
132
|
-
if (!
|
|
132
|
+
if (!Be(ot))
|
|
133
133
|
throw new TypeError();
|
|
134
|
-
return
|
|
134
|
+
return Ve(gt) || (gt = St(gt)), Ke(ot, gt);
|
|
135
135
|
}
|
|
136
136
|
te("getMetadataKeys", Le);
|
|
137
137
|
function Oe(ot, gt) {
|
|
138
|
-
if (!
|
|
138
|
+
if (!Be(ot))
|
|
139
139
|
throw new TypeError();
|
|
140
|
-
return
|
|
140
|
+
return Ve(gt) || (gt = St(gt)), Fe(ot, gt);
|
|
141
141
|
}
|
|
142
142
|
te("getOwnMetadataKeys", Oe);
|
|
143
143
|
function qe(ot, gt, yt) {
|
|
144
|
-
if (!
|
|
144
|
+
if (!Be(gt))
|
|
145
145
|
throw new TypeError();
|
|
146
|
-
if (
|
|
146
|
+
if (Ve(yt) || (yt = St(yt)), !Be(gt))
|
|
147
147
|
throw new TypeError();
|
|
148
|
-
|
|
148
|
+
Ve(yt) || (yt = St(yt));
|
|
149
149
|
var Ct = cs(
|
|
150
150
|
gt,
|
|
151
151
|
yt,
|
|
152
152
|
/*Create*/
|
|
153
153
|
!1
|
|
154
154
|
);
|
|
155
|
-
return
|
|
155
|
+
return Ve(Ct) ? !1 : Ct.OrdinaryDeleteMetadata(ot, gt, yt);
|
|
156
156
|
}
|
|
157
157
|
te("deleteMetadata", qe);
|
|
158
158
|
function Pe(ot, gt) {
|
|
159
159
|
for (var yt = ot.length - 1; yt >= 0; --yt) {
|
|
160
160
|
var Ct = ot[yt], Mt = Ct(gt);
|
|
161
|
-
if (!
|
|
161
|
+
if (!Ve(Mt) && !Qe(Mt)) {
|
|
162
162
|
if (!Ht(Mt))
|
|
163
163
|
throw new TypeError();
|
|
164
164
|
gt = Mt;
|
|
@@ -169,8 +169,8 @@ function require_Reflect() {
|
|
|
169
169
|
function He(ot, gt, yt, Ct) {
|
|
170
170
|
for (var Mt = ot.length - 1; Mt >= 0; --Mt) {
|
|
171
171
|
var rs = ot[Mt], ds = rs(gt, yt, Ct);
|
|
172
|
-
if (!
|
|
173
|
-
if (!
|
|
172
|
+
if (!Ve(ds) && !Qe(ds)) {
|
|
173
|
+
if (!Be(ds))
|
|
174
174
|
throw new TypeError();
|
|
175
175
|
Ct = ds;
|
|
176
176
|
}
|
|
@@ -191,7 +191,7 @@ function require_Reflect() {
|
|
|
191
191
|
/*Create*/
|
|
192
192
|
!1
|
|
193
193
|
);
|
|
194
|
-
return
|
|
194
|
+
return Ve(Ct) ? !1 : ft(Ct.OrdinaryHasOwnMetadata(ot, gt, yt));
|
|
195
195
|
}
|
|
196
196
|
function Ye(ot, gt, yt) {
|
|
197
197
|
var Ct = Ze(ot, gt, yt);
|
|
@@ -208,7 +208,7 @@ function require_Reflect() {
|
|
|
208
208
|
/*Create*/
|
|
209
209
|
!1
|
|
210
210
|
);
|
|
211
|
-
if (!
|
|
211
|
+
if (!Ve(Ct))
|
|
212
212
|
return Ct.OrdinaryGetOwnMetadata(ot, gt, yt);
|
|
213
213
|
}
|
|
214
214
|
function Xe(ot, gt, yt, Ct) {
|
|
@@ -229,12 +229,12 @@ function require_Reflect() {
|
|
|
229
229
|
return yt;
|
|
230
230
|
if (yt.length <= 0)
|
|
231
231
|
return Mt;
|
|
232
|
-
for (var rs = new ve(), ds = [],
|
|
233
|
-
var Dt = Ot[
|
|
232
|
+
for (var rs = new ve(), ds = [], Bt = 0, Ot = yt; Bt < Ot.length; Bt++) {
|
|
233
|
+
var Dt = Ot[Bt], Lt = rs.has(Dt);
|
|
234
234
|
Lt || (rs.add(Dt), ds.push(Dt));
|
|
235
235
|
}
|
|
236
|
-
for (var qt = 0,
|
|
237
|
-
var Dt =
|
|
236
|
+
for (var qt = 0, Vt = Mt; qt < Vt.length; qt++) {
|
|
237
|
+
var Dt = Vt[qt], Lt = rs.has(Dt);
|
|
238
238
|
Lt || (rs.add(Dt), ds.push(Dt));
|
|
239
239
|
}
|
|
240
240
|
return ds;
|
|
@@ -268,7 +268,7 @@ function require_Reflect() {
|
|
|
268
268
|
return 6;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ve(ot) {
|
|
272
272
|
return ot === void 0;
|
|
273
273
|
}
|
|
274
274
|
function Qe(ot) {
|
|
@@ -277,7 +277,7 @@ function require_Reflect() {
|
|
|
277
277
|
function tt(ot) {
|
|
278
278
|
return typeof ot == "symbol";
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Be(ot) {
|
|
281
281
|
return typeof ot == "object" ? ot !== null : typeof ot == "function";
|
|
282
282
|
}
|
|
283
283
|
function Je(ot, gt) {
|
|
@@ -298,7 +298,7 @@ function require_Reflect() {
|
|
|
298
298
|
var yt = "string", Ct = es(ot, de);
|
|
299
299
|
if (Ct !== void 0) {
|
|
300
300
|
var Mt = Ct.call(ot, yt);
|
|
301
|
-
if (
|
|
301
|
+
if (Be(Mt))
|
|
302
302
|
throw new TypeError();
|
|
303
303
|
return Mt;
|
|
304
304
|
}
|
|
@@ -310,13 +310,13 @@ function require_Reflect() {
|
|
|
310
310
|
var rs = ot.toString;
|
|
311
311
|
if (It(rs)) {
|
|
312
312
|
var Ct = rs.call(ot);
|
|
313
|
-
if (!
|
|
313
|
+
if (!Be(Ct))
|
|
314
314
|
return Ct;
|
|
315
315
|
}
|
|
316
316
|
var yt = ot.valueOf;
|
|
317
317
|
if (It(yt)) {
|
|
318
318
|
var Ct = yt.call(ot);
|
|
319
|
-
if (!
|
|
319
|
+
if (!Be(Ct))
|
|
320
320
|
return Ct;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -367,7 +367,7 @@ function require_Reflect() {
|
|
|
367
367
|
if (!It(gt))
|
|
368
368
|
throw new TypeError();
|
|
369
369
|
var yt = gt.call(ot);
|
|
370
|
-
if (!
|
|
370
|
+
if (!Be(yt))
|
|
371
371
|
throw new TypeError();
|
|
372
372
|
return yt;
|
|
373
373
|
}
|
|
@@ -394,7 +394,7 @@ function require_Reflect() {
|
|
|
394
394
|
}
|
|
395
395
|
function Nt() {
|
|
396
396
|
var ot;
|
|
397
|
-
!
|
|
397
|
+
!Ve(_e) && typeof oe.Reflect < "u" && !(_e in oe.Reflect) && typeof oe.Reflect.defineMetadata == "function" && (ot = us(oe.Reflect));
|
|
398
398
|
var gt, yt, Ct, Mt = new me(), rs = {
|
|
399
399
|
registerProvider: ds,
|
|
400
400
|
getProvider: Ot,
|
|
@@ -407,12 +407,12 @@ function require_Reflect() {
|
|
|
407
407
|
switch (!0) {
|
|
408
408
|
case ot === qt:
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case Ve(gt):
|
|
411
411
|
gt = qt;
|
|
412
412
|
break;
|
|
413
413
|
case gt === qt:
|
|
414
414
|
break;
|
|
415
|
-
case
|
|
415
|
+
case Ve(yt):
|
|
416
416
|
yt = qt;
|
|
417
417
|
break;
|
|
418
418
|
case yt === qt:
|
|
@@ -422,52 +422,52 @@ function require_Reflect() {
|
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
if (!
|
|
427
|
-
if (gt.isProviderFor(qt,
|
|
425
|
+
function Bt(qt, Vt) {
|
|
426
|
+
if (!Ve(gt)) {
|
|
427
|
+
if (gt.isProviderFor(qt, Vt))
|
|
428
428
|
return gt;
|
|
429
|
-
if (!
|
|
430
|
-
if (yt.isProviderFor(qt,
|
|
429
|
+
if (!Ve(yt)) {
|
|
430
|
+
if (yt.isProviderFor(qt, Vt))
|
|
431
431
|
return gt;
|
|
432
|
-
if (!
|
|
432
|
+
if (!Ve(Ct))
|
|
433
433
|
for (var ts = vt(Ct); ; ) {
|
|
434
434
|
var as = At(ts);
|
|
435
435
|
if (!as)
|
|
436
436
|
return;
|
|
437
437
|
var fs = _t(as);
|
|
438
|
-
if (fs.isProviderFor(qt,
|
|
438
|
+
if (fs.isProviderFor(qt, Vt))
|
|
439
439
|
return Et(ts), fs;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
if (!
|
|
443
|
+
if (!Ve(ot) && ot.isProviderFor(qt, Vt))
|
|
444
444
|
return ot;
|
|
445
445
|
}
|
|
446
|
-
function Ot(qt,
|
|
446
|
+
function Ot(qt, Vt) {
|
|
447
447
|
var ts = Mt.get(qt), as;
|
|
448
|
-
return
|
|
448
|
+
return Ve(ts) || (as = ts.get(Vt)), Ve(as) && (as = Bt(qt, Vt), Ve(as) || (Ve(ts) && (ts = new ge(), Mt.set(qt, ts)), ts.set(Vt, as))), as;
|
|
449
449
|
}
|
|
450
450
|
function Dt(qt) {
|
|
451
|
-
if (
|
|
451
|
+
if (Ve(qt))
|
|
452
452
|
throw new TypeError();
|
|
453
|
-
return gt === qt || yt === qt || !
|
|
453
|
+
return gt === qt || yt === qt || !Ve(Ct) && Ct.has(qt);
|
|
454
454
|
}
|
|
455
|
-
function Lt(qt,
|
|
455
|
+
function Lt(qt, Vt, ts) {
|
|
456
456
|
if (!Dt(ts))
|
|
457
457
|
throw new Error("Metadata provider not registered.");
|
|
458
|
-
var as = Ot(qt,
|
|
458
|
+
var as = Ot(qt, Vt);
|
|
459
459
|
if (as !== ts) {
|
|
460
|
-
if (!
|
|
460
|
+
if (!Ve(as))
|
|
461
461
|
return !1;
|
|
462
462
|
var fs = Mt.get(qt);
|
|
463
|
-
|
|
463
|
+
Ve(fs) && (fs = new ge(), Mt.set(qt, fs)), fs.set(Vt, ts);
|
|
464
464
|
}
|
|
465
465
|
return !0;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
function Ft() {
|
|
469
469
|
var ot;
|
|
470
|
-
return !
|
|
470
|
+
return !Ve(_e) && Be(oe.Reflect) && Object.isExtensible(oe.Reflect) && (ot = oe.Reflect[_e]), Ve(ot) && (ot = Nt()), !Ve(_e) && Be(oe.Reflect) && Object.isExtensible(oe.Reflect) && Object.defineProperty(oe.Reflect, _e, {
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
configurable: !1,
|
|
473
473
|
writable: !1,
|
|
@@ -478,69 +478,69 @@ function require_Reflect() {
|
|
|
478
478
|
var gt = new me(), yt = {
|
|
479
479
|
isProviderFor: function(Dt, Lt) {
|
|
480
480
|
var qt = gt.get(Dt);
|
|
481
|
-
return
|
|
481
|
+
return Ve(qt) ? !1 : qt.has(Lt);
|
|
482
482
|
},
|
|
483
483
|
OrdinaryDefineOwnMetadata: ds,
|
|
484
484
|
OrdinaryHasOwnMetadata: Mt,
|
|
485
485
|
OrdinaryGetOwnMetadata: rs,
|
|
486
|
-
OrdinaryOwnMetadataKeys:
|
|
486
|
+
OrdinaryOwnMetadataKeys: Bt,
|
|
487
487
|
OrdinaryDeleteMetadata: Ot
|
|
488
488
|
};
|
|
489
489
|
return ye.registerProvider(yt), yt;
|
|
490
490
|
function Ct(Dt, Lt, qt) {
|
|
491
|
-
var
|
|
492
|
-
if (
|
|
491
|
+
var Vt = gt.get(Dt), ts = !1;
|
|
492
|
+
if (Ve(Vt)) {
|
|
493
493
|
if (!qt)
|
|
494
494
|
return;
|
|
495
|
-
|
|
495
|
+
Vt = new ge(), gt.set(Dt, Vt), ts = !0;
|
|
496
496
|
}
|
|
497
|
-
var as =
|
|
498
|
-
if (
|
|
497
|
+
var as = Vt.get(Lt);
|
|
498
|
+
if (Ve(as)) {
|
|
499
499
|
if (!qt)
|
|
500
500
|
return;
|
|
501
|
-
if (as = new ge(),
|
|
502
|
-
throw
|
|
501
|
+
if (as = new ge(), Vt.set(Lt, as), !ot.setProvider(Dt, Lt, yt))
|
|
502
|
+
throw Vt.delete(Lt), ts && gt.delete(Dt), new Error("Wrong provider for target.");
|
|
503
503
|
}
|
|
504
504
|
return as;
|
|
505
505
|
}
|
|
506
506
|
function Mt(Dt, Lt, qt) {
|
|
507
|
-
var
|
|
507
|
+
var Vt = Ct(
|
|
508
508
|
Lt,
|
|
509
509
|
qt,
|
|
510
510
|
/*Create*/
|
|
511
511
|
!1
|
|
512
512
|
);
|
|
513
|
-
return
|
|
513
|
+
return Ve(Vt) ? !1 : ft(Vt.has(Dt));
|
|
514
514
|
}
|
|
515
515
|
function rs(Dt, Lt, qt) {
|
|
516
|
-
var
|
|
516
|
+
var Vt = Ct(
|
|
517
517
|
Lt,
|
|
518
518
|
qt,
|
|
519
519
|
/*Create*/
|
|
520
520
|
!1
|
|
521
521
|
);
|
|
522
|
-
if (!
|
|
523
|
-
return
|
|
522
|
+
if (!Ve(Vt))
|
|
523
|
+
return Vt.get(Dt);
|
|
524
524
|
}
|
|
525
|
-
function ds(Dt, Lt, qt,
|
|
525
|
+
function ds(Dt, Lt, qt, Vt) {
|
|
526
526
|
var ts = Ct(
|
|
527
527
|
qt,
|
|
528
|
-
|
|
528
|
+
Vt,
|
|
529
529
|
/*Create*/
|
|
530
530
|
!0
|
|
531
531
|
);
|
|
532
532
|
ts.set(Dt, Lt);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
var qt = [],
|
|
534
|
+
function Bt(Dt, Lt) {
|
|
535
|
+
var qt = [], Vt = Ct(
|
|
536
536
|
Dt,
|
|
537
537
|
Lt,
|
|
538
538
|
/*Create*/
|
|
539
539
|
!1
|
|
540
540
|
);
|
|
541
|
-
if (
|
|
541
|
+
if (Ve(Vt))
|
|
542
542
|
return qt;
|
|
543
|
-
for (var ts =
|
|
543
|
+
for (var ts = Vt.keys(), as = vt(ts), fs = 0; ; ) {
|
|
544
544
|
var Cs = At(as);
|
|
545
545
|
if (!Cs)
|
|
546
546
|
return qt.length = fs, qt;
|
|
@@ -558,26 +558,26 @@ function require_Reflect() {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function Ot(Dt, Lt, qt) {
|
|
561
|
-
var
|
|
561
|
+
var Vt = Ct(
|
|
562
562
|
Lt,
|
|
563
563
|
qt,
|
|
564
564
|
/*Create*/
|
|
565
565
|
!1
|
|
566
566
|
);
|
|
567
|
-
if (
|
|
567
|
+
if (Ve(Vt) || !Vt.delete(Dt))
|
|
568
568
|
return !1;
|
|
569
|
-
if (
|
|
569
|
+
if (Vt.size === 0) {
|
|
570
570
|
var ts = gt.get(Lt);
|
|
571
|
-
|
|
571
|
+
Ve(ts) || (ts.delete(qt), ts.size === 0 && gt.delete(ts));
|
|
572
572
|
}
|
|
573
573
|
return !0;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
function us(ot) {
|
|
577
|
-
var gt = ot.defineMetadata, yt = ot.hasOwnMetadata, Ct = ot.getOwnMetadata, Mt = ot.getOwnMetadataKeys, rs = ot.deleteMetadata, ds = new me(),
|
|
577
|
+
var gt = ot.defineMetadata, yt = ot.hasOwnMetadata, Ct = ot.getOwnMetadata, Mt = ot.getOwnMetadataKeys, rs = ot.deleteMetadata, ds = new me(), Bt = {
|
|
578
578
|
isProviderFor: function(Ot, Dt) {
|
|
579
579
|
var Lt = ds.get(Ot);
|
|
580
|
-
return !
|
|
580
|
+
return !Ve(Lt) && Lt.has(Dt) ? !0 : Mt(Ot, Dt).length ? (Ve(Lt) && (Lt = new ve(), ds.set(Ot, Lt)), Lt.add(Dt), !0) : !1;
|
|
581
581
|
},
|
|
582
582
|
OrdinaryDefineOwnMetadata: gt,
|
|
583
583
|
OrdinaryHasOwnMetadata: yt,
|
|
@@ -585,11 +585,11 @@ function require_Reflect() {
|
|
|
585
585
|
OrdinaryOwnMetadataKeys: Mt,
|
|
586
586
|
OrdinaryDeleteMetadata: rs
|
|
587
587
|
};
|
|
588
|
-
return
|
|
588
|
+
return Bt;
|
|
589
589
|
}
|
|
590
590
|
function cs(ot, gt, yt) {
|
|
591
591
|
var Ct = ye.getProvider(ot, gt);
|
|
592
|
-
if (!
|
|
592
|
+
if (!Ve(Ct))
|
|
593
593
|
return Ct;
|
|
594
594
|
if (yt) {
|
|
595
595
|
if (ye.setProvider(ot, gt, Ae))
|
|
@@ -601,59 +601,59 @@ function require_Reflect() {
|
|
|
601
601
|
var ot = {}, gt = [], yt = (
|
|
602
602
|
/** @class */
|
|
603
603
|
(function() {
|
|
604
|
-
function
|
|
604
|
+
function Bt(Ot, Dt, Lt) {
|
|
605
605
|
this._index = 0, this._keys = Ot, this._values = Dt, this._selector = Lt;
|
|
606
606
|
}
|
|
607
|
-
return
|
|
607
|
+
return Bt.prototype["@@iterator"] = function() {
|
|
608
608
|
return this;
|
|
609
|
-
},
|
|
609
|
+
}, Bt.prototype[ce] = function() {
|
|
610
610
|
return this;
|
|
611
|
-
},
|
|
611
|
+
}, Bt.prototype.next = function() {
|
|
612
612
|
var Ot = this._index;
|
|
613
613
|
if (Ot >= 0 && Ot < this._keys.length) {
|
|
614
614
|
var Dt = this._selector(this._keys[Ot], this._values[Ot]);
|
|
615
615
|
return Ot + 1 >= this._keys.length ? (this._index = -1, this._keys = gt, this._values = gt) : this._index++, { value: Dt, done: !1 };
|
|
616
616
|
}
|
|
617
617
|
return { value: void 0, done: !0 };
|
|
618
|
-
},
|
|
618
|
+
}, Bt.prototype.throw = function(Ot) {
|
|
619
619
|
throw this._index >= 0 && (this._index = -1, this._keys = gt, this._values = gt), Ot;
|
|
620
|
-
},
|
|
620
|
+
}, Bt.prototype.return = function(Ot) {
|
|
621
621
|
return this._index >= 0 && (this._index = -1, this._keys = gt, this._values = gt), { value: Ot, done: !0 };
|
|
622
|
-
},
|
|
622
|
+
}, Bt;
|
|
623
623
|
})()
|
|
624
624
|
), Ct = (
|
|
625
625
|
/** @class */
|
|
626
626
|
(function() {
|
|
627
|
-
function
|
|
627
|
+
function Bt() {
|
|
628
628
|
this._keys = [], this._values = [], this._cacheKey = ot, this._cacheIndex = -2;
|
|
629
629
|
}
|
|
630
|
-
return Object.defineProperty(
|
|
630
|
+
return Object.defineProperty(Bt.prototype, "size", {
|
|
631
631
|
get: function() {
|
|
632
632
|
return this._keys.length;
|
|
633
633
|
},
|
|
634
634
|
enumerable: !0,
|
|
635
635
|
configurable: !0
|
|
636
|
-
}),
|
|
636
|
+
}), Bt.prototype.has = function(Ot) {
|
|
637
637
|
return this._find(
|
|
638
638
|
Ot,
|
|
639
639
|
/*insert*/
|
|
640
640
|
!1
|
|
641
641
|
) >= 0;
|
|
642
|
-
},
|
|
642
|
+
}, Bt.prototype.get = function(Ot) {
|
|
643
643
|
var Dt = this._find(
|
|
644
644
|
Ot,
|
|
645
645
|
/*insert*/
|
|
646
646
|
!1
|
|
647
647
|
);
|
|
648
648
|
return Dt >= 0 ? this._values[Dt] : void 0;
|
|
649
|
-
},
|
|
649
|
+
}, Bt.prototype.set = function(Ot, Dt) {
|
|
650
650
|
var Lt = this._find(
|
|
651
651
|
Ot,
|
|
652
652
|
/*insert*/
|
|
653
653
|
!0
|
|
654
654
|
);
|
|
655
655
|
return this._values[Lt] = Dt, this;
|
|
656
|
-
},
|
|
656
|
+
}, Bt.prototype.delete = function(Ot) {
|
|
657
657
|
var Dt = this._find(
|
|
658
658
|
Ot,
|
|
659
659
|
/*insert*/
|
|
@@ -665,19 +665,19 @@ function require_Reflect() {
|
|
|
665
665
|
return this._keys.length--, this._values.length--, ns(Ot, this._cacheKey) && (this._cacheKey = ot, this._cacheIndex = -2), !0;
|
|
666
666
|
}
|
|
667
667
|
return !1;
|
|
668
|
-
},
|
|
668
|
+
}, Bt.prototype.clear = function() {
|
|
669
669
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = ot, this._cacheIndex = -2;
|
|
670
|
-
},
|
|
670
|
+
}, Bt.prototype.keys = function() {
|
|
671
671
|
return new yt(this._keys, this._values, Mt);
|
|
672
|
-
},
|
|
672
|
+
}, Bt.prototype.values = function() {
|
|
673
673
|
return new yt(this._keys, this._values, rs);
|
|
674
|
-
},
|
|
674
|
+
}, Bt.prototype.entries = function() {
|
|
675
675
|
return new yt(this._keys, this._values, ds);
|
|
676
|
-
},
|
|
676
|
+
}, Bt.prototype["@@iterator"] = function() {
|
|
677
677
|
return this.entries();
|
|
678
|
-
},
|
|
678
|
+
}, Bt.prototype[ce] = function() {
|
|
679
679
|
return this.entries();
|
|
680
|
-
},
|
|
680
|
+
}, Bt.prototype._find = function(Ot, Dt) {
|
|
681
681
|
if (!ns(this._cacheKey, Ot)) {
|
|
682
682
|
this._cacheIndex = -1;
|
|
683
683
|
for (var Lt = 0; Lt < this._keys.length; Lt++)
|
|
@@ -687,18 +687,18 @@ function require_Reflect() {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
return this._cacheIndex < 0 && Dt && (this._cacheIndex = this._keys.length, this._keys.push(Ot), this._values.push(void 0)), this._cacheIndex;
|
|
690
|
-
},
|
|
690
|
+
}, Bt;
|
|
691
691
|
})()
|
|
692
692
|
);
|
|
693
693
|
return Ct;
|
|
694
|
-
function Mt(
|
|
695
|
-
return
|
|
694
|
+
function Mt(Bt, Ot) {
|
|
695
|
+
return Bt;
|
|
696
696
|
}
|
|
697
|
-
function rs(
|
|
697
|
+
function rs(Bt, Ot) {
|
|
698
698
|
return Ot;
|
|
699
699
|
}
|
|
700
|
-
function ds(
|
|
701
|
-
return [
|
|
700
|
+
function ds(Bt, Ot) {
|
|
701
|
+
return [Bt, Ot];
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
function As() {
|
|
@@ -781,7 +781,7 @@ function require_Reflect() {
|
|
|
781
781
|
function Ct() {
|
|
782
782
|
var Ot;
|
|
783
783
|
do
|
|
784
|
-
Ot = "@@WeakMap@@" +
|
|
784
|
+
Ot = "@@WeakMap@@" + Bt();
|
|
785
785
|
while (be.has(gt, Ot));
|
|
786
786
|
return gt[Ot] = !0, Ot;
|
|
787
787
|
}
|
|
@@ -805,7 +805,7 @@ function require_Reflect() {
|
|
|
805
805
|
}
|
|
806
806
|
return rs(new Array(Ot), Ot);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Bt() {
|
|
809
809
|
var Ot = ds(ot);
|
|
810
810
|
Ot[6] = Ot[6] & 79 | 64, Ot[8] = Ot[8] & 191 | 128;
|
|
811
811
|
for (var Dt = "", Lt = 0; Lt < ot; ++Lt) {
|
|
@@ -3983,11 +3983,11 @@ const resolveConfig = (X) => {
|
|
|
3983
3983
|
duplex: "half"
|
|
3984
3984
|
}), je;
|
|
3985
3985
|
if (utils$1.isFormData(ye) && (je = Fe.headers.get("content-type")) && ze.setContentType(je), Fe.body) {
|
|
3986
|
-
const [
|
|
3986
|
+
const [Ve, Qe] = progressEventDecorator(
|
|
3987
3987
|
Ge,
|
|
3988
3988
|
progressEventReducer(asyncDecorator(Me))
|
|
3989
3989
|
);
|
|
3990
|
-
ye = trackStream(Fe.body, DEFAULT_CHUNK_SIZE,
|
|
3990
|
+
ye = trackStream(Fe.body, DEFAULT_CHUNK_SIZE, Ve, Qe);
|
|
3991
3991
|
}
|
|
3992
3992
|
}
|
|
3993
3993
|
utils$1.isString(Ue) || (Ue = Ue ? "include" : "omit");
|
|
@@ -4008,12 +4008,12 @@ const resolveConfig = (X) => {
|
|
|
4008
4008
|
["status", "statusText", "headers"].forEach((tt) => {
|
|
4009
4009
|
Fe[tt] = bt[tt];
|
|
4010
4010
|
});
|
|
4011
|
-
const je = utils$1.toFiniteNumber(bt.headers.get("content-length")), [
|
|
4011
|
+
const je = utils$1.toFiniteNumber(bt.headers.get("content-length")), [Ve, Qe] = Se && progressEventDecorator(
|
|
4012
4012
|
je,
|
|
4013
4013
|
progressEventReducer(asyncDecorator(Se), !0)
|
|
4014
4014
|
) || [];
|
|
4015
4015
|
bt = new oe(
|
|
4016
|
-
trackStream(bt.body, DEFAULT_CHUNK_SIZE,
|
|
4016
|
+
trackStream(bt.body, DEFAULT_CHUNK_SIZE, Ve, () => {
|
|
4017
4017
|
Qe && Qe(), He && He();
|
|
4018
4018
|
}),
|
|
4019
4019
|
Fe
|
|
@@ -5165,7 +5165,7 @@ function peg$parse(X, W) {
|
|
|
5165
5165
|
return _s.pop(), De.replace(/\s*$/, "");
|
|
5166
5166
|
}, Ze = ",", Ye = hs(",", !1), bt = "number", Xe = hs("number", !1), Ke = function(De, We, it) {
|
|
5167
5167
|
return __assign$4({ type: We === "number" ? TYPE.number : We === "date" ? TYPE.date : TYPE.time, style: it && it[2], value: De }, ys());
|
|
5168
|
-
}, Fe = "'", je = hs("'", !1),
|
|
5168
|
+
}, Fe = "'", je = hs("'", !1), Ve = /^[^']/, Qe = ws(["'"], !0, !1), tt = /^[^a-zA-Z'{}]/, Be = ws([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Je = /^[a-zA-Z]/, nt = ws([["a", "z"], ["A", "Z"]], !1, !1), ft = function(De) {
|
|
5169
5169
|
return __assign$4({ type: 1, pattern: De }, ys());
|
|
5170
5170
|
}, $t = function() {
|
|
5171
5171
|
return _s.push("dateOrTimeArgStyle"), !0;
|
|
@@ -5199,9 +5199,9 @@ function peg$parse(X, W) {
|
|
|
5199
5199
|
id: De,
|
|
5200
5200
|
value: We
|
|
5201
5201
|
}, ys());
|
|
5202
|
-
}, ps = gs("whitespace"), ot = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, gt = ws([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), yt = gs("syntax pattern"), Ct = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, Mt = ws([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), rs = gs("optional whitespace"), ds = gs("number"),
|
|
5202
|
+
}, ps = gs("whitespace"), ot = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, gt = ws([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), yt = gs("syntax pattern"), Ct = /^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/, Mt = ws([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), rs = gs("optional whitespace"), ds = gs("number"), Bt = "-", Ot = hs("-", !1), Dt = function(De, We) {
|
|
5203
5203
|
return We ? De ? -We : We : 0;
|
|
5204
|
-
}, Lt = gs("double apostrophes"), qt = "''",
|
|
5204
|
+
}, Lt = gs("double apostrophes"), qt = "''", Vt = hs("''", !1), ts = function() {
|
|
5205
5205
|
return "'";
|
|
5206
5206
|
}, as = function(De, We) {
|
|
5207
5207
|
return De + We.replace("''", "'");
|
|
@@ -5343,7 +5343,7 @@ function peg$parse(X, W) {
|
|
|
5343
5343
|
Ne = De, De = te;
|
|
5344
5344
|
return wt--, De === te && (We = te, wt === 0 && Tt(ze)), De;
|
|
5345
5345
|
}
|
|
5346
|
-
function
|
|
5346
|
+
function Vi() {
|
|
5347
5347
|
var De, We, it;
|
|
5348
5348
|
if (De = Ne, We = [], it = ui(), it !== te)
|
|
5349
5349
|
for (; it !== te; )
|
|
@@ -5352,29 +5352,29 @@ function peg$parse(X, W) {
|
|
|
5352
5352
|
We = te;
|
|
5353
5353
|
return We !== te && (Kt = De, We = Le(We)), De = We, De;
|
|
5354
5354
|
}
|
|
5355
|
-
function
|
|
5355
|
+
function Bi() {
|
|
5356
5356
|
var De, We, it;
|
|
5357
|
-
return De = Ne, X.substr(Ne, 2) === Oe ? (We = Oe, Ne += 2) : (We = te, wt === 0 && Tt(qe)), We !== te ? (it =
|
|
5357
|
+
return De = Ne, X.substr(Ne, 2) === Oe ? (We = Oe, Ne += 2) : (We = te, wt === 0 && Tt(qe)), We !== te ? (it = Vi(), it !== te ? (Kt = De, We = Pe(it), De = We) : (Ne = De, De = te)) : (Ne = De, De = te), De === te && (De = Ne, Kt = Ne, We = He(), We ? We = void 0 : We = te, We !== te ? (it = Ps(), it !== te ? (Kt = De, We = Ge(it), De = We) : (Ne = De, De = te)) : (Ne = De, De = te)), De;
|
|
5358
5358
|
}
|
|
5359
5359
|
function ji() {
|
|
5360
5360
|
var De, We, it, mt, kt, zt, ss, Wt, bs, Zt, ls, Yt, os;
|
|
5361
|
-
return De = Ne, X.charCodeAt(Ne) === 123 ? (We = be, Ne++) : (We = te, wt === 0 && Tt(he)), We !== te ? (it = Gt(), it !== te ? (mt = Ss(), mt !== te ? (kt = Gt(), kt !== te ? (X.charCodeAt(Ne) === 44 ? (zt = Ze, Ne++) : (zt = te, wt === 0 && Tt(Ye)), zt !== te ? (ss = Gt(), ss !== te ? (X.substr(Ne, 6) === bt ? (Wt = bt, Ne += 6) : (Wt = te, wt === 0 && Tt(Xe)), Wt !== te ? (bs = Gt(), bs !== te ? (Zt = Ne, X.charCodeAt(Ne) === 44 ? (ls = Ze, Ne++) : (ls = te, wt === 0 && Tt(Ye)), ls !== te ? (Yt = Gt(), Yt !== te ? (os =
|
|
5361
|
+
return De = Ne, X.charCodeAt(Ne) === 123 ? (We = be, Ne++) : (We = te, wt === 0 && Tt(he)), We !== te ? (it = Gt(), it !== te ? (mt = Ss(), mt !== te ? (kt = Gt(), kt !== te ? (X.charCodeAt(Ne) === 44 ? (zt = Ze, Ne++) : (zt = te, wt === 0 && Tt(Ye)), zt !== te ? (ss = Gt(), ss !== te ? (X.substr(Ne, 6) === bt ? (Wt = bt, Ne += 6) : (Wt = te, wt === 0 && Tt(Xe)), Wt !== te ? (bs = Gt(), bs !== te ? (Zt = Ne, X.charCodeAt(Ne) === 44 ? (ls = Ze, Ne++) : (ls = te, wt === 0 && Tt(Ye)), ls !== te ? (Yt = Gt(), Yt !== te ? (os = Bi(), os !== te ? (ls = [ls, Yt, os], Zt = ls) : (Ne = Zt, Zt = te)) : (Ne = Zt, Zt = te)) : (Ne = Zt, Zt = te), Zt === te && (Zt = null), Zt !== te ? (ls = Gt(), ls !== te ? (X.charCodeAt(Ne) === 125 ? (Yt = ge, Ne++) : (Yt = te, wt === 0 && Tt(ve)), Yt !== te ? (Kt = De, We = Ke(mt, Wt, Zt), De = We) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te)) : (Ne = De, De = te), De;
|
|
5362
5362
|
}
|
|
5363
5363
|
function hi() {
|
|
5364
5364
|
var De, We, it, mt;
|
|
5365
5365
|
if (De = Ne, X.charCodeAt(Ne) === 39 ? (We = Fe, Ne++) : (We = te, wt === 0 && Tt(je)), We !== te) {
|
|
5366
|
-
if (it = [], mt = ks(), mt === te && (
|
|
5366
|
+
if (it = [], mt = ks(), mt === te && (Ve.test(X.charAt(Ne)) ? (mt = X.charAt(Ne), Ne++) : (mt = te, wt === 0 && Tt(Qe))), mt !== te)
|
|
5367
5367
|
for (; mt !== te; )
|
|
5368
|
-
it.push(mt), mt = ks(), mt === te && (
|
|
5368
|
+
it.push(mt), mt = ks(), mt === te && (Ve.test(X.charAt(Ne)) ? (mt = X.charAt(Ne), Ne++) : (mt = te, wt === 0 && Tt(Qe)));
|
|
5369
5369
|
else
|
|
5370
5370
|
it = te;
|
|
5371
5371
|
it !== te ? (X.charCodeAt(Ne) === 39 ? (mt = Fe, Ne++) : (mt = te, wt === 0 && Tt(je)), mt !== te ? (We = [We, it, mt], De = We) : (Ne = De, De = te)) : (Ne = De, De = te);
|
|
5372
5372
|
} else
|
|
5373
5373
|
Ne = De, De = te;
|
|
5374
5374
|
if (De === te)
|
|
5375
|
-
if (De = [], We = ks(), We === te && (tt.test(X.charAt(Ne)) ? (We = X.charAt(Ne), Ne++) : (We = te, wt === 0 && Tt(
|
|
5375
|
+
if (De = [], We = ks(), We === te && (tt.test(X.charAt(Ne)) ? (We = X.charAt(Ne), Ne++) : (We = te, wt === 0 && Tt(Be))), We !== te)
|
|
5376
5376
|
for (; We !== te; )
|
|
5377
|
-
De.push(We), We = ks(), We === te && (tt.test(X.charAt(Ne)) ? (We = X.charAt(Ne), Ne++) : (We = te, wt === 0 && Tt(
|
|
5377
|
+
De.push(We), We = ks(), We === te && (tt.test(X.charAt(Ne)) ? (We = X.charAt(Ne), Ne++) : (We = te, wt === 0 && Tt(Be)));
|
|
5378
5378
|
else
|
|
5379
5379
|
De = te;
|
|
5380
5380
|
return De;
|
|
@@ -5523,18 +5523,18 @@ function peg$parse(X, W) {
|
|
|
5523
5523
|
}
|
|
5524
5524
|
function mi() {
|
|
5525
5525
|
var De, We, it;
|
|
5526
|
-
return wt++, De = Ne, X.charCodeAt(Ne) === 45 ? (We =
|
|
5526
|
+
return wt++, De = Ne, X.charCodeAt(Ne) === 45 ? (We = Bt, Ne++) : (We = te, wt === 0 && Tt(Ot)), We === te && (We = null), We !== te ? (it = yi(), it !== te ? (Kt = De, We = Dt(We, it), De = We) : (Ne = De, De = te)) : (Ne = De, De = te), wt--, De === te && (We = te, wt === 0 && Tt(ds)), De;
|
|
5527
5527
|
}
|
|
5528
5528
|
function ks() {
|
|
5529
5529
|
var De, We;
|
|
5530
|
-
return wt++, De = Ne, X.substr(Ne, 2) === qt ? (We = qt, Ne += 2) : (We = te, wt === 0 && Tt(
|
|
5530
|
+
return wt++, De = Ne, X.substr(Ne, 2) === qt ? (We = qt, Ne += 2) : (We = te, wt === 0 && Tt(Vt)), We !== te && (Kt = De, We = ts()), De = We, wt--, De === te && (We = te, wt === 0 && Tt(Lt)), De;
|
|
5531
5531
|
}
|
|
5532
5532
|
function vi() {
|
|
5533
5533
|
var De, We, it, mt, kt, zt;
|
|
5534
5534
|
if (De = Ne, X.charCodeAt(Ne) === 39 ? (We = Fe, Ne++) : (We = te, wt === 0 && Tt(je)), We !== te)
|
|
5535
5535
|
if (it = Qi(), it !== te) {
|
|
5536
|
-
for (mt = Ne, kt = [], X.substr(Ne, 2) === qt ? (zt = qt, Ne += 2) : (zt = te, wt === 0 && Tt(
|
|
5537
|
-
kt.push(zt), X.substr(Ne, 2) === qt ? (zt = qt, Ne += 2) : (zt = te, wt === 0 && Tt(
|
|
5536
|
+
for (mt = Ne, kt = [], X.substr(Ne, 2) === qt ? (zt = qt, Ne += 2) : (zt = te, wt === 0 && Tt(Vt)), zt === te && (Ve.test(X.charAt(Ne)) ? (zt = X.charAt(Ne), Ne++) : (zt = te, wt === 0 && Tt(Qe))); zt !== te; )
|
|
5537
|
+
kt.push(zt), X.substr(Ne, 2) === qt ? (zt = qt, Ne += 2) : (zt = te, wt === 0 && Tt(Vt)), zt === te && (Ve.test(X.charAt(Ne)) ? (zt = X.charAt(Ne), Ne++) : (zt = te, wt === 0 && Tt(Qe)));
|
|
5538
5538
|
kt !== te ? mt = X.substring(mt, Ne) : mt = kt, mt !== te ? (X.charCodeAt(Ne) === 39 ? (kt = Fe, Ne++) : (kt = te, wt === 0 && Tt(je)), kt === te && (kt = null), kt !== te ? (Kt = De, We = as(it, mt), De = We) : (Ne = De, De = te)) : (Ne = De, De = te);
|
|
5539
5539
|
} else
|
|
5540
5540
|
Ne = De, De = te;
|
|
@@ -8743,7 +8743,12 @@ const shellRegions = {
|
|
|
8743
8743
|
widgets: "administrative-management-widgets-region",
|
|
8744
8744
|
tabs: "administrative-management-tabs-region",
|
|
8745
8745
|
detail: "administrative-management-detail-region"
|
|
8746
|
-
}
|
|
8746
|
+
}, ALL_REGION_NAMES = [
|
|
8747
|
+
...Object.values(shellRegions),
|
|
8748
|
+
...Object.values(clinicalMonitoringRegions),
|
|
8749
|
+
...Object.values(activityHistoryRegions),
|
|
8750
|
+
...Object.values(administrativeManagementRegions)
|
|
8751
|
+
];
|
|
8747
8752
|
class RegionManagerProxy {
|
|
8748
8753
|
constructor(W, te, oe) {
|
|
8749
8754
|
this.pluginInfo = W, this.regionManager = te, this.broker = oe, this.regions = {
|
|
@@ -8880,6 +8885,27 @@ class RegionManagerProxy {
|
|
|
8880
8885
|
_notifyMainViewChanged(W) {
|
|
8881
8886
|
this.broker.publish(BROKER_EVENTS.shell.mainViewChanged, { viewId: W });
|
|
8882
8887
|
}
|
|
8888
|
+
/**
|
|
8889
|
+
* Desmunta totes les vistes de totes les regions, i espera que acabin.
|
|
8890
|
+
*
|
|
8891
|
+
* Es crida en tancar, ABANS de fer el `dispose` dels plugins: els cleanups dels `useEffect` que
|
|
8892
|
+
* s'executen en desmuntar-se poden enviar comandes pel broker, i han de trobar el handler encara
|
|
8893
|
+
* registrat. Cada plugin ja ho fa pel seu compte al `dispose`, però això només cobreix els
|
|
8894
|
+
* plugins d'aquest repositori; els de tercers (econsulta, allergies…) no els controlem.
|
|
8895
|
+
*
|
|
8896
|
+
* Fa servir `unregisterViewFromRegion` i no `destroy()`/`clear()` del regionManager perquè
|
|
8897
|
+
* aquests fan `forEach` amb crides asíncrones sense esperar-les, així que retornen abans que les
|
|
8898
|
+
* vistes s'hagin desmuntat de debò.
|
|
8899
|
+
*
|
|
8900
|
+
* És idempotent: desregistrar una vista que ja no hi és no fa res.
|
|
8901
|
+
*/
|
|
8902
|
+
async _removeAllViews() {
|
|
8903
|
+
for (const W of ALL_REGION_NAMES) {
|
|
8904
|
+
const te = this.regionManager.getRegisteredViews(W) ?? [];
|
|
8905
|
+
for (const { key: oe } of [...te])
|
|
8906
|
+
await this.regionManager.unregisterViewFromRegion(W, oe);
|
|
8907
|
+
}
|
|
8908
|
+
}
|
|
8883
8909
|
_destroy() {
|
|
8884
8910
|
this.regionManager.destroy();
|
|
8885
8911
|
}
|
|
@@ -8943,7 +8969,7 @@ class ImportDataManagerImpl {
|
|
|
8943
8969
|
async import(W, te) {
|
|
8944
8970
|
this.currentImporterId = W, this.currentImportParams = te, this.selectedItems = {}, this.pluginTexts = {};
|
|
8945
8971
|
try {
|
|
8946
|
-
const { ImportDataManagerModal: oe } = await import("./component-
|
|
8972
|
+
const { ImportDataManagerModal: oe } = await import("./component-C6IdTseU.js"), { confirmed: ne } = await this.interactionService.confirm(
|
|
8947
8973
|
void 0,
|
|
8948
8974
|
{ component: oe },
|
|
8949
8975
|
{
|
|
@@ -9046,7 +9072,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
|
|
|
9046
9072
|
let bootstrappedPlugins = [];
|
|
9047
9073
|
const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
|
|
9048
9074
|
pluginId: CORE_FIRST_ID,
|
|
9049
|
-
importer: () => import("./plugin-
|
|
9075
|
+
importer: () => import("./plugin-C6qd-VVE.js")
|
|
9050
9076
|
}, bootstrapPlugins = async (X, W) => {
|
|
9051
9077
|
const te = X ?? [], oe = te.filter((ue) => ue.pluginId === CORE_FIRST_ID), ne = te.filter((ue) => ue.pluginId !== CORE_FIRST_ID), re = oe.length ? oe : [bundledActivityHistory], de = await p$d(
|
|
9052
9078
|
re,
|
|
@@ -9080,7 +9106,7 @@ let ExitShellHandler = class {
|
|
|
9080
9106
|
if (!ne) return;
|
|
9081
9107
|
}
|
|
9082
9108
|
await Promise.race([
|
|
9083
|
-
|
|
9109
|
+
this.unmountViewsAndDisposePlugins(),
|
|
9084
9110
|
// S'intenta executar un dispose normal
|
|
9085
9111
|
this.timeout(1e4)
|
|
9086
9112
|
// Si passen 5s, es segueix amb l'execució
|
|
@@ -9089,6 +9115,20 @@ let ExitShellHandler = class {
|
|
|
9089
9115
|
this.api.notificationService.error(translate("errors.exit")), this.emitClose(W);
|
|
9090
9116
|
}
|
|
9091
9117
|
}
|
|
9118
|
+
/**
|
|
9119
|
+
* Desmunta les vistes de tots els plugins abans de fer-los el `dispose`.
|
|
9120
|
+
*
|
|
9121
|
+
* Els cleanups dels `useEffect` s'executen en desmuntar-se el component i poden enviar comandes
|
|
9122
|
+
* pel broker (p. ex. `ClearTransportDetail` a petitioner). Si el `dispose` s'executa primer, el
|
|
9123
|
+
* handler ja no hi és i el `send` rebutja. Cada plugin d'aquest repositori ja desmunta les seves
|
|
9124
|
+
* vistes primer, però els de tercers no els controlem: fer-ho aquí els cobreix tots.
|
|
9125
|
+
*
|
|
9126
|
+
* Va dins del mateix `Promise.race` que el `dispose`, així que el límit de temps del tancament
|
|
9127
|
+
* no canvia.
|
|
9128
|
+
*/
|
|
9129
|
+
async unmountViewsAndDisposePlugins() {
|
|
9130
|
+
await this.api.regionManager._removeAllViews(), await disposePlugins();
|
|
9131
|
+
}
|
|
9092
9132
|
timeout(X) {
|
|
9093
9133
|
return new Promise((W) => setTimeout(W, X));
|
|
9094
9134
|
}
|
|
@@ -10723,18 +10763,18 @@ function flip(X) {
|
|
|
10723
10763
|
}
|
|
10724
10764
|
if (ze)
|
|
10725
10765
|
for (var Ke = ve ? 3 : 1, Fe = function(tt) {
|
|
10726
|
-
var
|
|
10766
|
+
var Be = we.find(function(Je) {
|
|
10727
10767
|
var nt = Ie.get(Je);
|
|
10728
10768
|
if (nt)
|
|
10729
10769
|
return nt.slice(0, tt).every(function(ft) {
|
|
10730
10770
|
return ft;
|
|
10731
10771
|
});
|
|
10732
10772
|
});
|
|
10733
|
-
if (
|
|
10734
|
-
return Ue =
|
|
10773
|
+
if (Be)
|
|
10774
|
+
return Ue = Be, "break";
|
|
10735
10775
|
}, je = Ke; je > 0; je--) {
|
|
10736
|
-
var
|
|
10737
|
-
if (
|
|
10776
|
+
var Ve = Fe(je);
|
|
10777
|
+
if (Ve === "break") break;
|
|
10738
10778
|
}
|
|
10739
10779
|
W.placement !== Ue && (W.modifiersData[oe]._skip = !0, W.placement = Ue, W.reset = !0);
|
|
10740
10780
|
}
|
|
@@ -10851,10 +10891,10 @@ function preventOverflow(X) {
|
|
|
10851
10891
|
};
|
|
10852
10892
|
if (Me) {
|
|
10853
10893
|
if (re) {
|
|
10854
|
-
var Pe, He = we === "y" ? top : left, Ge = we === "y" ? bottom : right, Ze = we === "y" ? "height" : "width", Ye = Me[we], bt = Ye + _e[He], Xe = Ye - _e[Ge], Ke = ge ? -ze[Ze] / 2 : 0, Fe = Ae === start ? Ie[Ze] : ze[Ze], je = Ae === start ? -ze[Ze] : -Ie[Ze],
|
|
10894
|
+
var Pe, He = we === "y" ? top : left, Ge = we === "y" ? bottom : right, Ze = we === "y" ? "height" : "width", Ye = Me[we], bt = Ye + _e[He], Xe = Ye - _e[Ge], Ke = ge ? -ze[Ze] / 2 : 0, Fe = Ae === start ? Ie[Ze] : ze[Ze], je = Ae === start ? -ze[Ze] : -Ie[Ze], Ve = W.elements.arrow, Qe = ge && Ve ? getLayoutRect(Ve) : {
|
|
10855
10895
|
width: 0,
|
|
10856
10896
|
height: 0
|
|
10857
|
-
}, tt = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(),
|
|
10897
|
+
}, tt = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = tt[He], Je = tt[Ge], nt = within(0, Ie[Ze], Qe[Ze]), ft = Ce ? Ie[Ze] / 2 - Ke - nt - Be - Le.mainAxis : Fe - nt - Be - Le.mainAxis, $t = Ce ? -Ie[Ze] / 2 + Ke + nt + Je + Le.mainAxis : je + nt + Je + Le.mainAxis, St = W.elements.arrow && getOffsetParent(W.elements.arrow), Pt = St ? we === "y" ? St.clientTop || 0 : St.clientLeft || 0 : 0, It = (Pe = Oe?.[we]) != null ? Pe : 0, Ht = Ye + ft - It - Pt, jt = Ye + $t - It, ns = within(ge ? min(bt, Ht) : bt, Ye, ge ? max(Xe, jt) : Xe);
|
|
10858
10898
|
Me[we] = ns, qe[we] = ns - Ye;
|
|
10859
10899
|
}
|
|
10860
10900
|
if (ce) {
|
|
@@ -36344,15 +36384,15 @@ var __defProp$e = Object.defineProperty, __decorateClass$e = (X, W, te, oe) => {
|
|
|
36344
36384
|
(de = X[re]) && (ne = de(W, te, ne) || ne);
|
|
36345
36385
|
return ne && __defProp$e(W, te, ne), ne;
|
|
36346
36386
|
};
|
|
36347
|
-
const
|
|
36387
|
+
const Vs = class Vs extends h$n {
|
|
36348
36388
|
render() {
|
|
36349
36389
|
return ke$1`${template$9(this)}`;
|
|
36350
36390
|
}
|
|
36351
36391
|
};
|
|
36352
|
-
|
|
36392
|
+
Vs.styles = i$R`
|
|
36353
36393
|
${r$L(styles$8)}
|
|
36354
36394
|
`;
|
|
36355
|
-
let PrimariaErrorView =
|
|
36395
|
+
let PrimariaErrorView = Vs;
|
|
36356
36396
|
__decorateClass$e([
|
|
36357
36397
|
n$A()
|
|
36358
36398
|
], PrimariaErrorView.prototype, "error");
|
|
@@ -36429,7 +36469,7 @@ var __defProp$d = Object.defineProperty, __decorateClass$d = (X, W, te, oe) => {
|
|
|
36429
36469
|
(de = X[re]) && (ne = de(W, te, ne) || ne);
|
|
36430
36470
|
return ne && __defProp$d(W, te, ne), ne;
|
|
36431
36471
|
};
|
|
36432
|
-
const
|
|
36472
|
+
const Bs = class Bs extends PrimariaRegionHost(h$n) {
|
|
36433
36473
|
constructor() {
|
|
36434
36474
|
super(...arguments), this.menuOpened = !1;
|
|
36435
36475
|
}
|
|
@@ -36463,10 +36503,10 @@ const Vs = class Vs extends PrimariaRegionHost(h$n) {
|
|
|
36463
36503
|
te = new MutationObserver(oe), te.observe(W, { childList: !0 });
|
|
36464
36504
|
}
|
|
36465
36505
|
};
|
|
36466
|
-
|
|
36506
|
+
Bs.styles = i$R`
|
|
36467
36507
|
${r$L(styles$7)}
|
|
36468
36508
|
`;
|
|
36469
|
-
let PrimariaShellHeader =
|
|
36509
|
+
let PrimariaShellHeader = Bs;
|
|
36470
36510
|
__decorateClass$d([
|
|
36471
36511
|
s$H({ targetId: "header-region-container", name: shellApi.regionManager.regions.shell.header })
|
|
36472
36512
|
], PrimariaShellHeader.prototype, "headerRegion");
|
|
@@ -37486,15 +37526,15 @@ function requireQuill() {
|
|
|
37486
37526
|
return Xe && typeof Symbol == "function" && Xe.constructor === Symbol && Xe !== Symbol.prototype ? "symbol" : typeof Xe;
|
|
37487
37527
|
}, de = /* @__PURE__ */ (function() {
|
|
37488
37528
|
function Xe(Ke, Fe) {
|
|
37489
|
-
var je = [],
|
|
37529
|
+
var je = [], Ve = !0, Qe = !1, tt = void 0;
|
|
37490
37530
|
try {
|
|
37491
|
-
for (var
|
|
37531
|
+
for (var Be = Ke[Symbol.iterator](), Je; !(Ve = (Je = Be.next()).done) && (je.push(Je.value), !(Fe && je.length === Fe)); Ve = !0)
|
|
37492
37532
|
;
|
|
37493
37533
|
} catch (nt) {
|
|
37494
37534
|
Qe = !0, tt = nt;
|
|
37495
37535
|
} finally {
|
|
37496
37536
|
try {
|
|
37497
|
-
!
|
|
37537
|
+
!Ve && Be.return && Be.return();
|
|
37498
37538
|
} finally {
|
|
37499
37539
|
if (Qe) throw tt;
|
|
37500
37540
|
}
|
|
@@ -37511,8 +37551,8 @@ function requireQuill() {
|
|
|
37511
37551
|
})(), ce = /* @__PURE__ */ (function() {
|
|
37512
37552
|
function Xe(Ke, Fe) {
|
|
37513
37553
|
for (var je = 0; je < Fe.length; je++) {
|
|
37514
|
-
var
|
|
37515
|
-
|
|
37554
|
+
var Ve = Fe[je];
|
|
37555
|
+
Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Ke, Ve.key, Ve);
|
|
37516
37556
|
}
|
|
37517
37557
|
}
|
|
37518
37558
|
return function(Ke, Fe, je) {
|
|
@@ -37550,11 +37590,11 @@ function requireQuill() {
|
|
|
37550
37590
|
}, {
|
|
37551
37591
|
key: "register",
|
|
37552
37592
|
value: function(Fe, je) {
|
|
37553
|
-
var
|
|
37593
|
+
var Ve = this, Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
37554
37594
|
if (typeof Fe != "string") {
|
|
37555
37595
|
var tt = Fe.attrName || Fe.blotName;
|
|
37556
|
-
typeof tt == "string" ? this.register("formats/" + tt, Fe, je) : Object.keys(Fe).forEach(function(
|
|
37557
|
-
|
|
37596
|
+
typeof tt == "string" ? this.register("formats/" + tt, Fe, je) : Object.keys(Fe).forEach(function(Be) {
|
|
37597
|
+
Ve.register(Be, Fe[Be], je);
|
|
37558
37598
|
});
|
|
37559
37599
|
} else
|
|
37560
37600
|
this.imports[Fe] != null && !Qe && Pe.warn("Overwriting " + Fe + " with", je), this.imports[Fe] = je, (Fe.startsWith("blots/") || Fe.startsWith("formats/")) && je.blotName !== "abstract" ? ye.default.register(je) : Fe.startsWith("modules") && typeof je.register == "function" && je.register();
|
|
@@ -37565,19 +37605,19 @@ function requireQuill() {
|
|
|
37565
37605
|
if (qe(this, Xe), this.options = Ge(Ke, je), this.container = this.options.container, this.container == null)
|
|
37566
37606
|
return Pe.error("Invalid Quill container", Ke);
|
|
37567
37607
|
this.options.debug && Xe.debug(this.options.debug);
|
|
37568
|
-
var
|
|
37608
|
+
var Ve = this.container.innerHTML.trim();
|
|
37569
37609
|
this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new ge.default(), this.scroll = ye.default.create(this.root, {
|
|
37570
37610
|
emitter: this.emitter,
|
|
37571
37611
|
whitelist: this.options.formats
|
|
37572
37612
|
}), this.editor = new be.default(this.scroll), this.selection = new Ce.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(ge.default.events.EDITOR_CHANGE, function(tt) {
|
|
37573
37613
|
tt === ge.default.events.TEXT_CHANGE && Fe.root.classList.toggle("ql-blank", Fe.editor.isBlank());
|
|
37574
|
-
}), this.emitter.on(ge.default.events.SCROLL_UPDATE, function(tt,
|
|
37614
|
+
}), this.emitter.on(ge.default.events.SCROLL_UPDATE, function(tt, Be) {
|
|
37575
37615
|
var Je = Fe.selection.lastRange, nt = Je && Je.length === 0 ? Je.index : void 0;
|
|
37576
37616
|
Ze.call(Fe, function() {
|
|
37577
|
-
return Fe.editor.update(null,
|
|
37617
|
+
return Fe.editor.update(null, Be, nt);
|
|
37578
37618
|
}, tt);
|
|
37579
37619
|
});
|
|
37580
|
-
var Qe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` +
|
|
37620
|
+
var Qe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Ve + "<p><br></p></div>");
|
|
37581
37621
|
this.setContents(Qe), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
37582
37622
|
}
|
|
37583
37623
|
return ce(Xe, [{
|
|
@@ -37585,8 +37625,8 @@ function requireQuill() {
|
|
|
37585
37625
|
value: function(Fe) {
|
|
37586
37626
|
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
37587
37627
|
if (typeof Fe == "string") {
|
|
37588
|
-
var
|
|
37589
|
-
Fe = document.createElement("div"), Fe.classList.add(
|
|
37628
|
+
var Ve = Fe;
|
|
37629
|
+
Fe = document.createElement("div"), Fe.classList.add(Ve);
|
|
37590
37630
|
}
|
|
37591
37631
|
return this.container.insertBefore(Fe, je), Fe;
|
|
37592
37632
|
}
|
|
@@ -37597,11 +37637,11 @@ function requireQuill() {
|
|
|
37597
37637
|
}
|
|
37598
37638
|
}, {
|
|
37599
37639
|
key: "deleteText",
|
|
37600
|
-
value: function(Fe, je,
|
|
37601
|
-
var Qe = this, tt = Ye(Fe, je,
|
|
37602
|
-
return Fe =
|
|
37640
|
+
value: function(Fe, je, Ve) {
|
|
37641
|
+
var Qe = this, tt = Ye(Fe, je, Ve), Be = de(tt, 4);
|
|
37642
|
+
return Fe = Be[0], je = Be[1], Ve = Be[3], Ze.call(this, function() {
|
|
37603
37643
|
return Qe.editor.deleteText(Fe, je);
|
|
37604
|
-
},
|
|
37644
|
+
}, Ve, Fe, -1 * je);
|
|
37605
37645
|
}
|
|
37606
37646
|
}, {
|
|
37607
37647
|
key: "disable",
|
|
@@ -37623,56 +37663,56 @@ function requireQuill() {
|
|
|
37623
37663
|
}, {
|
|
37624
37664
|
key: "format",
|
|
37625
37665
|
value: function(Fe, je) {
|
|
37626
|
-
var
|
|
37666
|
+
var Ve = this, Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ge.default.sources.API;
|
|
37627
37667
|
return Ze.call(this, function() {
|
|
37628
|
-
var tt =
|
|
37668
|
+
var tt = Ve.getSelection(!0), Be = new fe.default();
|
|
37629
37669
|
if (tt == null)
|
|
37630
|
-
return
|
|
37670
|
+
return Be;
|
|
37631
37671
|
if (ye.default.query(Fe, ye.default.Scope.BLOCK))
|
|
37632
|
-
|
|
37672
|
+
Be = Ve.editor.formatLine(tt.index, tt.length, Oe({}, Fe, je));
|
|
37633
37673
|
else {
|
|
37634
37674
|
if (tt.length === 0)
|
|
37635
|
-
return
|
|
37636
|
-
|
|
37675
|
+
return Ve.selection.format(Fe, je), Be;
|
|
37676
|
+
Be = Ve.editor.formatText(tt.index, tt.length, Oe({}, Fe, je));
|
|
37637
37677
|
}
|
|
37638
|
-
return
|
|
37678
|
+
return Ve.setSelection(tt, ge.default.sources.SILENT), Be;
|
|
37639
37679
|
}, Qe);
|
|
37640
37680
|
}
|
|
37641
37681
|
}, {
|
|
37642
37682
|
key: "formatLine",
|
|
37643
|
-
value: function(Fe, je,
|
|
37644
|
-
var
|
|
37683
|
+
value: function(Fe, je, Ve, Qe, tt) {
|
|
37684
|
+
var Be = this, Je = void 0, nt = Ye(Fe, je, Ve, Qe, tt), ft = de(nt, 4);
|
|
37645
37685
|
return Fe = ft[0], je = ft[1], Je = ft[2], tt = ft[3], Ze.call(this, function() {
|
|
37646
|
-
return
|
|
37686
|
+
return Be.editor.formatLine(Fe, je, Je);
|
|
37647
37687
|
}, tt, Fe, 0);
|
|
37648
37688
|
}
|
|
37649
37689
|
}, {
|
|
37650
37690
|
key: "formatText",
|
|
37651
|
-
value: function(Fe, je,
|
|
37652
|
-
var
|
|
37691
|
+
value: function(Fe, je, Ve, Qe, tt) {
|
|
37692
|
+
var Be = this, Je = void 0, nt = Ye(Fe, je, Ve, Qe, tt), ft = de(nt, 4);
|
|
37653
37693
|
return Fe = ft[0], je = ft[1], Je = ft[2], tt = ft[3], Ze.call(this, function() {
|
|
37654
|
-
return
|
|
37694
|
+
return Be.editor.formatText(Fe, je, Je);
|
|
37655
37695
|
}, tt, Fe, 0);
|
|
37656
37696
|
}
|
|
37657
37697
|
}, {
|
|
37658
37698
|
key: "getBounds",
|
|
37659
37699
|
value: function(Fe) {
|
|
37660
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
37661
|
-
typeof Fe == "number" ?
|
|
37700
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = void 0;
|
|
37701
|
+
typeof Fe == "number" ? Ve = this.selection.getBounds(Fe, je) : Ve = this.selection.getBounds(Fe.index, Fe.length);
|
|
37662
37702
|
var Qe = this.container.getBoundingClientRect();
|
|
37663
37703
|
return {
|
|
37664
|
-
bottom:
|
|
37665
|
-
height:
|
|
37666
|
-
left:
|
|
37667
|
-
right:
|
|
37668
|
-
top:
|
|
37669
|
-
width:
|
|
37704
|
+
bottom: Ve.bottom - Qe.top,
|
|
37705
|
+
height: Ve.height,
|
|
37706
|
+
left: Ve.left - Qe.left,
|
|
37707
|
+
right: Ve.right - Qe.left,
|
|
37708
|
+
top: Ve.top - Qe.top,
|
|
37709
|
+
width: Ve.width
|
|
37670
37710
|
};
|
|
37671
37711
|
}
|
|
37672
37712
|
}, {
|
|
37673
37713
|
key: "getContents",
|
|
37674
37714
|
value: function() {
|
|
37675
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe,
|
|
37715
|
+
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Ve = Ye(Fe, je), Qe = de(Ve, 2);
|
|
37676
37716
|
return Fe = Qe[0], je = Qe[1], this.editor.getContents(Fe, je);
|
|
37677
37717
|
}
|
|
37678
37718
|
}, {
|
|
@@ -37721,7 +37761,7 @@ function requireQuill() {
|
|
|
37721
37761
|
}, {
|
|
37722
37762
|
key: "getText",
|
|
37723
37763
|
value: function() {
|
|
37724
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe,
|
|
37764
|
+
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Ve = Ye(Fe, je), Qe = de(Ve, 2);
|
|
37725
37765
|
return Fe = Qe[0], je = Qe[1], this.editor.getText(Fe, je);
|
|
37726
37766
|
}
|
|
37727
37767
|
}, {
|
|
@@ -37731,18 +37771,18 @@ function requireQuill() {
|
|
|
37731
37771
|
}
|
|
37732
37772
|
}, {
|
|
37733
37773
|
key: "insertEmbed",
|
|
37734
|
-
value: function(Fe, je,
|
|
37774
|
+
value: function(Fe, je, Ve) {
|
|
37735
37775
|
var Qe = this, tt = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Xe.sources.API;
|
|
37736
37776
|
return Ze.call(this, function() {
|
|
37737
|
-
return Qe.editor.insertEmbed(Fe, je,
|
|
37777
|
+
return Qe.editor.insertEmbed(Fe, je, Ve);
|
|
37738
37778
|
}, tt, Fe);
|
|
37739
37779
|
}
|
|
37740
37780
|
}, {
|
|
37741
37781
|
key: "insertText",
|
|
37742
|
-
value: function(Fe, je,
|
|
37743
|
-
var
|
|
37782
|
+
value: function(Fe, je, Ve, Qe, tt) {
|
|
37783
|
+
var Be = this, Je = void 0, nt = Ye(Fe, 0, Ve, Qe, tt), ft = de(nt, 4);
|
|
37744
37784
|
return Fe = ft[0], Je = ft[2], tt = ft[3], Ze.call(this, function() {
|
|
37745
|
-
return
|
|
37785
|
+
return Be.editor.insertText(Fe, je, Je);
|
|
37746
37786
|
}, tt, Fe, je.length);
|
|
37747
37787
|
}
|
|
37748
37788
|
}, {
|
|
@@ -37767,16 +37807,16 @@ function requireQuill() {
|
|
|
37767
37807
|
}
|
|
37768
37808
|
}, {
|
|
37769
37809
|
key: "pasteHTML",
|
|
37770
|
-
value: function(Fe, je,
|
|
37771
|
-
this.clipboard.dangerouslyPasteHTML(Fe, je,
|
|
37810
|
+
value: function(Fe, je, Ve) {
|
|
37811
|
+
this.clipboard.dangerouslyPasteHTML(Fe, je, Ve);
|
|
37772
37812
|
}
|
|
37773
37813
|
}, {
|
|
37774
37814
|
key: "removeFormat",
|
|
37775
|
-
value: function(Fe, je,
|
|
37776
|
-
var Qe = this, tt = Ye(Fe, je,
|
|
37777
|
-
return Fe =
|
|
37815
|
+
value: function(Fe, je, Ve) {
|
|
37816
|
+
var Qe = this, tt = Ye(Fe, je, Ve), Be = de(tt, 4);
|
|
37817
|
+
return Fe = Be[0], je = Be[1], Ve = Be[3], Ze.call(this, function() {
|
|
37778
37818
|
return Qe.editor.removeFormat(Fe, je);
|
|
37779
|
-
},
|
|
37819
|
+
}, Ve, Fe);
|
|
37780
37820
|
}
|
|
37781
37821
|
}, {
|
|
37782
37822
|
key: "scrollIntoView",
|
|
@@ -37786,31 +37826,31 @@ function requireQuill() {
|
|
|
37786
37826
|
}, {
|
|
37787
37827
|
key: "setContents",
|
|
37788
37828
|
value: function(Fe) {
|
|
37789
|
-
var je = this,
|
|
37829
|
+
var je = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API;
|
|
37790
37830
|
return Ze.call(this, function() {
|
|
37791
37831
|
Fe = new fe.default(Fe);
|
|
37792
|
-
var Qe = je.getLength(), tt = je.editor.deleteText(0, Qe),
|
|
37832
|
+
var Qe = je.getLength(), tt = je.editor.deleteText(0, Qe), Be = je.editor.applyDelta(Fe), Je = Be.ops[Be.ops.length - 1];
|
|
37793
37833
|
Je != null && typeof Je.insert == "string" && Je.insert[Je.insert.length - 1] === `
|
|
37794
|
-
` && (je.editor.deleteText(je.getLength() - 1, 1),
|
|
37795
|
-
var nt = tt.compose(
|
|
37834
|
+
` && (je.editor.deleteText(je.getLength() - 1, 1), Be.delete(1));
|
|
37835
|
+
var nt = tt.compose(Be);
|
|
37796
37836
|
return nt;
|
|
37797
|
-
},
|
|
37837
|
+
}, Ve);
|
|
37798
37838
|
}
|
|
37799
37839
|
}, {
|
|
37800
37840
|
key: "setSelection",
|
|
37801
|
-
value: function(Fe, je,
|
|
37841
|
+
value: function(Fe, je, Ve) {
|
|
37802
37842
|
if (Fe == null)
|
|
37803
37843
|
this.selection.setRange(null, je || Xe.sources.API);
|
|
37804
37844
|
else {
|
|
37805
|
-
var Qe = Ye(Fe, je,
|
|
37806
|
-
Fe = tt[0], je = tt[1],
|
|
37845
|
+
var Qe = Ye(Fe, je, Ve), tt = de(Qe, 4);
|
|
37846
|
+
Fe = tt[0], je = tt[1], Ve = tt[3], this.selection.setRange(new Ae.Range(Fe, je), Ve), Ve !== ge.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
37807
37847
|
}
|
|
37808
37848
|
}
|
|
37809
37849
|
}, {
|
|
37810
37850
|
key: "setText",
|
|
37811
37851
|
value: function(Fe) {
|
|
37812
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API,
|
|
37813
|
-
return this.setContents(
|
|
37852
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API, Ve = new fe.default().insert(Fe);
|
|
37853
|
+
return this.setContents(Ve, je);
|
|
37814
37854
|
}
|
|
37815
37855
|
}, {
|
|
37816
37856
|
key: "update",
|
|
@@ -37821,10 +37861,10 @@ function requireQuill() {
|
|
|
37821
37861
|
}, {
|
|
37822
37862
|
key: "updateContents",
|
|
37823
37863
|
value: function(Fe) {
|
|
37824
|
-
var je = this,
|
|
37864
|
+
var je = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API;
|
|
37825
37865
|
return Ze.call(this, function() {
|
|
37826
|
-
return Fe = new fe.default(Fe), je.editor.applyDelta(Fe,
|
|
37827
|
-
},
|
|
37866
|
+
return Fe = new fe.default(Fe), je.editor.applyDelta(Fe, Ve);
|
|
37867
|
+
}, Ve, !0);
|
|
37828
37868
|
}
|
|
37829
37869
|
}]), Xe;
|
|
37830
37870
|
})();
|
|
@@ -37861,13 +37901,13 @@ function requireQuill() {
|
|
|
37861
37901
|
Qe.modules[tt] === !0 && (Qe.modules[tt] = {});
|
|
37862
37902
|
});
|
|
37863
37903
|
});
|
|
37864
|
-
var je = Object.keys(Fe.modules).concat(Object.keys(Ke.modules)),
|
|
37865
|
-
var
|
|
37866
|
-
return
|
|
37904
|
+
var je = Object.keys(Fe.modules).concat(Object.keys(Ke.modules)), Ve = je.reduce(function(Qe, tt) {
|
|
37905
|
+
var Be = He.import("modules/" + tt);
|
|
37906
|
+
return Be == null ? Pe.error("Cannot load " + tt + " module. Are you sure you registered it?") : Qe[tt] = Be.DEFAULTS || {}, Qe;
|
|
37867
37907
|
}, {});
|
|
37868
37908
|
return Ke.modules != null && Ke.modules.toolbar && Ke.modules.toolbar.constructor !== Object && (Ke.modules.toolbar = {
|
|
37869
37909
|
container: Ke.modules.toolbar
|
|
37870
|
-
}), Ke = (0, Se.default)(!0, {}, He.DEFAULTS, { modules:
|
|
37910
|
+
}), Ke = (0, Se.default)(!0, {}, He.DEFAULTS, { modules: Ve }, Fe, Ke), ["bounds", "container", "scrollingContainer"].forEach(function(Qe) {
|
|
37871
37911
|
typeof Ke[Qe] == "string" && (Ke[Qe] = document.querySelector(Ke[Qe]));
|
|
37872
37912
|
}), Ke.modules = Object.keys(Ke.modules).reduce(function(Qe, tt) {
|
|
37873
37913
|
return Ke.modules[tt] && (Qe[tt] = Ke.modules[tt]), Qe;
|
|
@@ -37876,35 +37916,35 @@ function requireQuill() {
|
|
|
37876
37916
|
function Ze(Xe, Ke, Fe, je) {
|
|
37877
37917
|
if (this.options.strict && !this.isEnabled() && Ke === ge.default.sources.USER)
|
|
37878
37918
|
return new fe.default();
|
|
37879
|
-
var
|
|
37880
|
-
if (
|
|
37881
|
-
var
|
|
37882
|
-
if ((
|
|
37919
|
+
var Ve = Fe == null ? null : this.getSelection(), Qe = this.editor.delta, tt = Xe();
|
|
37920
|
+
if (Ve != null && (Fe === !0 && (Fe = Ve.index), je == null ? Ve = bt(Ve, tt, Ke) : je !== 0 && (Ve = bt(Ve, Fe, je, Ke)), this.setSelection(Ve, ge.default.sources.SILENT)), tt.length() > 0) {
|
|
37921
|
+
var Be, Je = [ge.default.events.TEXT_CHANGE, tt, Qe, Ke];
|
|
37922
|
+
if ((Be = this.emitter).emit.apply(Be, [ge.default.events.EDITOR_CHANGE].concat(Je)), Ke !== ge.default.sources.SILENT) {
|
|
37883
37923
|
var nt;
|
|
37884
37924
|
(nt = this.emitter).emit.apply(nt, Je);
|
|
37885
37925
|
}
|
|
37886
37926
|
}
|
|
37887
37927
|
return tt;
|
|
37888
37928
|
}
|
|
37889
|
-
function Ye(Xe, Ke, Fe, je,
|
|
37929
|
+
function Ye(Xe, Ke, Fe, je, Ve) {
|
|
37890
37930
|
var Qe = {};
|
|
37891
|
-
return typeof Xe.index == "number" && typeof Xe.length == "number" ? typeof Ke != "number" ? (
|
|
37931
|
+
return typeof Xe.index == "number" && typeof Xe.length == "number" ? typeof Ke != "number" ? (Ve = je, je = Fe, Fe = Ke, Ke = Xe.length, Xe = Xe.index) : (Ke = Xe.length, Xe = Xe.index) : typeof Ke != "number" && (Ve = je, je = Fe, Fe = Ke, Ke = 0), (typeof Fe > "u" ? "undefined" : re(Fe)) === "object" ? (Qe = Fe, Ve = je) : typeof Fe == "string" && (je != null ? Qe[Fe] = je : Ve = Fe), Ve = Ve || ge.default.sources.API, [Xe, Ke, Qe, Ve];
|
|
37892
37932
|
}
|
|
37893
37933
|
function bt(Xe, Ke, Fe, je) {
|
|
37894
37934
|
if (Xe == null) return null;
|
|
37895
|
-
var
|
|
37935
|
+
var Ve = void 0, Qe = void 0;
|
|
37896
37936
|
if (Ke instanceof fe.default) {
|
|
37897
37937
|
var tt = [Xe.index, Xe.index + Xe.length].map(function(ft) {
|
|
37898
37938
|
return Ke.transformPosition(ft, je !== ge.default.sources.USER);
|
|
37899
|
-
}),
|
|
37900
|
-
|
|
37939
|
+
}), Be = de(tt, 2);
|
|
37940
|
+
Ve = Be[0], Qe = Be[1];
|
|
37901
37941
|
} else {
|
|
37902
37942
|
var Je = [Xe.index, Xe.index + Xe.length].map(function(ft) {
|
|
37903
37943
|
return ft < Ke || ft === Ke && je === ge.default.sources.USER ? ft : Fe >= 0 ? ft + Fe : Math.max(Ke, ft + Fe);
|
|
37904
37944
|
}), nt = de(Je, 2);
|
|
37905
|
-
|
|
37945
|
+
Ve = nt[0], Qe = nt[1];
|
|
37906
37946
|
}
|
|
37907
|
-
return new Ae.Range(
|
|
37947
|
+
return new Ae.Range(Ve, Qe - Ve);
|
|
37908
37948
|
}
|
|
37909
37949
|
oe.expandConfig = Ge, oe.overload = Ye, oe.default = He;
|
|
37910
37950
|
}),
|
|
@@ -38431,15 +38471,15 @@ function requireQuill() {
|
|
|
38431
38471
|
return Xe && typeof Symbol == "function" && Xe.constructor === Symbol && Xe !== Symbol.prototype ? "symbol" : typeof Xe;
|
|
38432
38472
|
}, de = /* @__PURE__ */ (function() {
|
|
38433
38473
|
function Xe(Ke, Fe) {
|
|
38434
|
-
var je = [],
|
|
38474
|
+
var je = [], Ve = !0, Qe = !1, tt = void 0;
|
|
38435
38475
|
try {
|
|
38436
|
-
for (var
|
|
38476
|
+
for (var Be = Ke[Symbol.iterator](), Je; !(Ve = (Je = Be.next()).done) && (je.push(Je.value), !(Fe && je.length === Fe)); Ve = !0)
|
|
38437
38477
|
;
|
|
38438
38478
|
} catch (nt) {
|
|
38439
38479
|
Qe = !0, tt = nt;
|
|
38440
38480
|
} finally {
|
|
38441
38481
|
try {
|
|
38442
|
-
!
|
|
38482
|
+
!Ve && Be.return && Be.return();
|
|
38443
38483
|
} finally {
|
|
38444
38484
|
if (Qe) throw tt;
|
|
38445
38485
|
}
|
|
@@ -38456,8 +38496,8 @@ function requireQuill() {
|
|
|
38456
38496
|
})(), ce = /* @__PURE__ */ (function() {
|
|
38457
38497
|
function Xe(Ke, Fe) {
|
|
38458
38498
|
for (var je = 0; je < Fe.length; je++) {
|
|
38459
|
-
var
|
|
38460
|
-
|
|
38499
|
+
var Ve = Fe[je];
|
|
38500
|
+
Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Ke, Ve.key, Ve);
|
|
38461
38501
|
}
|
|
38462
38502
|
}
|
|
38463
38503
|
return function(Ke, Fe, je) {
|
|
@@ -38481,35 +38521,35 @@ function requireQuill() {
|
|
|
38481
38521
|
return ce(Xe, [{
|
|
38482
38522
|
key: "applyDelta",
|
|
38483
38523
|
value: function(Fe) {
|
|
38484
|
-
var je = this,
|
|
38524
|
+
var je = this, Ve = !1;
|
|
38485
38525
|
this.scroll.update();
|
|
38486
38526
|
var Qe = this.scroll.length();
|
|
38487
|
-
return this.scroll.batchStart(), Fe = bt(Fe), Fe.reduce(function(tt,
|
|
38488
|
-
var Je =
|
|
38489
|
-
if (
|
|
38490
|
-
if (typeof
|
|
38491
|
-
var ft =
|
|
38527
|
+
return this.scroll.batchStart(), Fe = bt(Fe), Fe.reduce(function(tt, Be) {
|
|
38528
|
+
var Je = Be.retain || Be.delete || Be.insert.length || 1, nt = Be.attributes || {};
|
|
38529
|
+
if (Be.insert != null) {
|
|
38530
|
+
if (typeof Be.insert == "string") {
|
|
38531
|
+
var ft = Be.insert;
|
|
38492
38532
|
ft.endsWith(`
|
|
38493
|
-
`) &&
|
|
38494
|
-
`) && (
|
|
38533
|
+
`) && Ve && (Ve = !1, ft = ft.slice(0, -1)), tt >= Qe && !ft.endsWith(`
|
|
38534
|
+
`) && (Ve = !0), je.scroll.insertAt(tt, ft);
|
|
38495
38535
|
var $t = je.scroll.line(tt), St = de($t, 2), Pt = St[0], It = St[1], Ht = (0, Oe.default)({}, (0, Ae.bubbleFormats)(Pt));
|
|
38496
38536
|
if (Pt instanceof Ce.default) {
|
|
38497
38537
|
var jt = Pt.descendant(ge.default.Leaf, It), ns = de(jt, 1), es = ns[0];
|
|
38498
38538
|
Ht = (0, Oe.default)(Ht, (0, Ae.bubbleFormats)(es));
|
|
38499
38539
|
}
|
|
38500
38540
|
nt = be.default.attributes.diff(Ht, nt) || {};
|
|
38501
|
-
} else if (re(
|
|
38502
|
-
var vt = Object.keys(
|
|
38541
|
+
} else if (re(Be.insert) === "object") {
|
|
38542
|
+
var vt = Object.keys(Be.insert)[0];
|
|
38503
38543
|
if (vt == null) return tt;
|
|
38504
|
-
je.scroll.insertAt(tt, vt,
|
|
38544
|
+
je.scroll.insertAt(tt, vt, Be.insert[vt]);
|
|
38505
38545
|
}
|
|
38506
38546
|
Qe += Je;
|
|
38507
38547
|
}
|
|
38508
38548
|
return Object.keys(nt).forEach(function(_t) {
|
|
38509
38549
|
je.scroll.formatAt(tt, Je, _t, nt[_t]);
|
|
38510
38550
|
}), tt + Je;
|
|
38511
|
-
}, 0), Fe.reduce(function(tt,
|
|
38512
|
-
return typeof
|
|
38551
|
+
}, 0), Fe.reduce(function(tt, Be) {
|
|
38552
|
+
return typeof Be.delete == "number" ? (je.scroll.deleteAt(tt, Be.delete), tt) : tt + (Be.retain || Be.insert.length || 1);
|
|
38513
38553
|
}, 0), this.scroll.batchEnd(), this.update(Fe);
|
|
38514
38554
|
}
|
|
38515
38555
|
}, {
|
|
@@ -38520,16 +38560,16 @@ function requireQuill() {
|
|
|
38520
38560
|
}, {
|
|
38521
38561
|
key: "formatLine",
|
|
38522
38562
|
value: function(Fe, je) {
|
|
38523
|
-
var
|
|
38563
|
+
var Ve = this, Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
38524
38564
|
return this.scroll.update(), Object.keys(Qe).forEach(function(tt) {
|
|
38525
|
-
if (!(
|
|
38526
|
-
var
|
|
38527
|
-
|
|
38565
|
+
if (!(Ve.scroll.whitelist != null && !Ve.scroll.whitelist[tt])) {
|
|
38566
|
+
var Be = Ve.scroll.lines(Fe, Math.max(je, 1)), Je = je;
|
|
38567
|
+
Be.forEach(function(nt) {
|
|
38528
38568
|
var ft = nt.length();
|
|
38529
38569
|
if (!(nt instanceof me.default))
|
|
38530
38570
|
nt.format(tt, Qe[tt]);
|
|
38531
38571
|
else {
|
|
38532
|
-
var $t = Fe - nt.offset(
|
|
38572
|
+
var $t = Fe - nt.offset(Ve.scroll), St = nt.newlineIndex($t + Je) - $t + 1;
|
|
38533
38573
|
nt.formatAt($t, St, tt, Qe[tt]);
|
|
38534
38574
|
}
|
|
38535
38575
|
Je -= ft;
|
|
@@ -38540,9 +38580,9 @@ function requireQuill() {
|
|
|
38540
38580
|
}, {
|
|
38541
38581
|
key: "formatText",
|
|
38542
38582
|
value: function(Fe, je) {
|
|
38543
|
-
var
|
|
38583
|
+
var Ve = this, Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
38544
38584
|
return Object.keys(Qe).forEach(function(tt) {
|
|
38545
|
-
|
|
38585
|
+
Ve.scroll.formatAt(Fe, je, tt, Qe[tt]);
|
|
38546
38586
|
}), this.update(new fe.default().retain(Fe).retain(je, (0, Ie.default)(Qe)));
|
|
38547
38587
|
}
|
|
38548
38588
|
}, {
|
|
@@ -38560,15 +38600,15 @@ function requireQuill() {
|
|
|
38560
38600
|
}, {
|
|
38561
38601
|
key: "getFormat",
|
|
38562
38602
|
value: function(Fe) {
|
|
38563
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
38564
|
-
je === 0 ? this.scroll.path(Fe).forEach(function(
|
|
38565
|
-
var Je = de(
|
|
38566
|
-
nt instanceof Ce.default ?
|
|
38567
|
-
}) : (
|
|
38568
|
-
var tt = [
|
|
38569
|
-
if (
|
|
38570
|
-
for (var Je = (0, Ae.bubbleFormats)(
|
|
38571
|
-
var nt =
|
|
38603
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = [], Qe = [];
|
|
38604
|
+
je === 0 ? this.scroll.path(Fe).forEach(function(Be) {
|
|
38605
|
+
var Je = de(Be, 1), nt = Je[0];
|
|
38606
|
+
nt instanceof Ce.default ? Ve.push(nt) : nt instanceof ge.default.Leaf && Qe.push(nt);
|
|
38607
|
+
}) : (Ve = this.scroll.lines(Fe, je), Qe = this.scroll.descendants(ge.default.Leaf, Fe, je));
|
|
38608
|
+
var tt = [Ve, Qe].map(function(Be) {
|
|
38609
|
+
if (Be.length === 0) return {};
|
|
38610
|
+
for (var Je = (0, Ae.bubbleFormats)(Be.shift()); Object.keys(Je).length > 0; ) {
|
|
38611
|
+
var nt = Be.shift();
|
|
38572
38612
|
if (nt == null) return Je;
|
|
38573
38613
|
Je = Ye((0, Ae.bubbleFormats)(nt), Je);
|
|
38574
38614
|
}
|
|
@@ -38579,25 +38619,25 @@ function requireQuill() {
|
|
|
38579
38619
|
}, {
|
|
38580
38620
|
key: "getText",
|
|
38581
38621
|
value: function(Fe, je) {
|
|
38582
|
-
return this.getContents(Fe, je).filter(function(
|
|
38583
|
-
return typeof
|
|
38584
|
-
}).map(function(
|
|
38585
|
-
return
|
|
38622
|
+
return this.getContents(Fe, je).filter(function(Ve) {
|
|
38623
|
+
return typeof Ve.insert == "string";
|
|
38624
|
+
}).map(function(Ve) {
|
|
38625
|
+
return Ve.insert;
|
|
38586
38626
|
}).join("");
|
|
38587
38627
|
}
|
|
38588
38628
|
}, {
|
|
38589
38629
|
key: "insertEmbed",
|
|
38590
|
-
value: function(Fe, je,
|
|
38591
|
-
return this.scroll.insertAt(Fe, je,
|
|
38630
|
+
value: function(Fe, je, Ve) {
|
|
38631
|
+
return this.scroll.insertAt(Fe, je, Ve), this.update(new fe.default().retain(Fe).insert(Pe({}, je, Ve)));
|
|
38592
38632
|
}
|
|
38593
38633
|
}, {
|
|
38594
38634
|
key: "insertText",
|
|
38595
38635
|
value: function(Fe, je) {
|
|
38596
|
-
var
|
|
38636
|
+
var Ve = this, Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
38597
38637
|
return je = je.replace(/\r\n/g, `
|
|
38598
38638
|
`).replace(/\r/g, `
|
|
38599
38639
|
`), this.scroll.insertAt(Fe, je), Object.keys(Qe).forEach(function(tt) {
|
|
38600
|
-
|
|
38640
|
+
Ve.scroll.formatAt(Fe, je.length, tt, Qe[tt]);
|
|
38601
38641
|
}), this.update(new fe.default().retain(Fe).insert(je, (0, Ie.default)(Qe)));
|
|
38602
38642
|
}
|
|
38603
38643
|
}, {
|
|
@@ -38611,23 +38651,23 @@ function requireQuill() {
|
|
|
38611
38651
|
}, {
|
|
38612
38652
|
key: "removeFormat",
|
|
38613
38653
|
value: function(Fe, je) {
|
|
38614
|
-
var
|
|
38615
|
-
|
|
38654
|
+
var Ve = this.getText(Fe, je), Qe = this.scroll.line(Fe + je), tt = de(Qe, 2), Be = tt[0], Je = tt[1], nt = 0, ft = new fe.default();
|
|
38655
|
+
Be != null && (Be instanceof me.default ? nt = Be.newlineIndex(Je) - Je + 1 : nt = Be.length() - Je, ft = Be.delta().slice(Je, Je + nt - 1).insert(`
|
|
38616
38656
|
`));
|
|
38617
|
-
var $t = this.getContents(Fe, je + nt), St = $t.diff(new fe.default().insert(
|
|
38657
|
+
var $t = this.getContents(Fe, je + nt), St = $t.diff(new fe.default().insert(Ve).concat(ft)), Pt = new fe.default().retain(Fe).concat(St);
|
|
38618
38658
|
return this.applyDelta(Pt);
|
|
38619
38659
|
}
|
|
38620
38660
|
}, {
|
|
38621
38661
|
key: "update",
|
|
38622
38662
|
value: function(Fe) {
|
|
38623
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [],
|
|
38663
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Ve = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Qe = this.delta;
|
|
38624
38664
|
if (je.length === 1 && je[0].type === "characterData" && je[0].target.data.match(Ge) && ge.default.find(je[0].target)) {
|
|
38625
|
-
var tt = ge.default.find(je[0].target),
|
|
38665
|
+
var tt = ge.default.find(je[0].target), Be = (0, Ae.bubbleFormats)(tt), Je = tt.offset(this.scroll), nt = je[0].oldValue.replace(ye.default.CONTENTS, ""), ft = new fe.default().insert(nt), $t = new fe.default().insert(tt.value()), St = new fe.default().retain(Je).concat(ft.diff($t, Ve));
|
|
38626
38666
|
Fe = St.reduce(function(Pt, It) {
|
|
38627
|
-
return It.insert ? Pt.insert(It.insert,
|
|
38667
|
+
return It.insert ? Pt.insert(It.insert, Be) : Pt.push(It);
|
|
38628
38668
|
}, new fe.default()), this.delta = Qe.compose(Fe);
|
|
38629
38669
|
} else
|
|
38630
|
-
this.delta = this.getDelta(), (!Fe || !(0, Ue.default)(Qe.compose(Fe), this.delta)) && (Fe = Qe.diff(this.delta,
|
|
38670
|
+
this.delta = this.getDelta(), (!Fe || !(0, Ue.default)(Qe.compose(Fe), this.delta)) && (Fe = Qe.diff(this.delta, Ve));
|
|
38631
38671
|
return Fe;
|
|
38632
38672
|
}
|
|
38633
38673
|
}]), Xe;
|
|
@@ -38644,10 +38684,10 @@ function requireQuill() {
|
|
|
38644
38684
|
return delete je.image, Ke.insert({ image: Fe.attributes.image }, je);
|
|
38645
38685
|
}
|
|
38646
38686
|
if (Fe.attributes != null && (Fe.attributes.list === !0 || Fe.attributes.bullet === !0) && (Fe = (0, Ie.default)(Fe), Fe.attributes.list ? Fe.attributes.list = "ordered" : (Fe.attributes.list = "bullet", delete Fe.attributes.bullet)), typeof Fe.insert == "string") {
|
|
38647
|
-
var
|
|
38687
|
+
var Ve = Fe.insert.replace(/\r\n/g, `
|
|
38648
38688
|
`).replace(/\r/g, `
|
|
38649
38689
|
`);
|
|
38650
|
-
return Ke.insert(
|
|
38690
|
+
return Ke.insert(Ve, Fe.attributes);
|
|
38651
38691
|
}
|
|
38652
38692
|
return Ke.push(Fe);
|
|
38653
38693
|
}, new fe.default());
|
|
@@ -38801,17 +38841,17 @@ function requireQuill() {
|
|
|
38801
38841
|
var Fe = document.createRange();
|
|
38802
38842
|
if (qe > 0) {
|
|
38803
38843
|
Fe.setStart(He, bt);
|
|
38804
|
-
var je = this.scroll.leaf(Oe + qe),
|
|
38805
|
-
if (Ye =
|
|
38844
|
+
var je = this.scroll.leaf(Oe + qe), Ve = re(je, 2);
|
|
38845
|
+
if (Ye = Ve[0], bt = Ve[1], Ye == null) return null;
|
|
38806
38846
|
var Qe = Ye.position(bt, !0), tt = re(Qe, 2);
|
|
38807
38847
|
return He = tt[0], bt = tt[1], Fe.setEnd(He, bt), Fe.getBoundingClientRect();
|
|
38808
38848
|
} else {
|
|
38809
|
-
var
|
|
38810
|
-
return He instanceof Text ? (bt < He.data.length ? (Fe.setStart(He, bt), Fe.setEnd(He, bt + 1)) : (Fe.setStart(He, bt - 1), Fe.setEnd(He, bt),
|
|
38849
|
+
var Be = "left", Je = void 0;
|
|
38850
|
+
return He instanceof Text ? (bt < He.data.length ? (Fe.setStart(He, bt), Fe.setEnd(He, bt + 1)) : (Fe.setStart(He, bt - 1), Fe.setEnd(He, bt), Be = "right"), Je = Fe.getBoundingClientRect()) : (Je = Ye.domNode.getBoundingClientRect(), bt > 0 && (Be = "right")), {
|
|
38811
38851
|
bottom: Je.top + Je.height,
|
|
38812
38852
|
height: Je.height,
|
|
38813
|
-
left: Je[
|
|
38814
|
-
right: Je[
|
|
38853
|
+
left: Je[Be],
|
|
38854
|
+
right: Je[Be],
|
|
38815
38855
|
top: Je.top,
|
|
38816
38856
|
width: 0
|
|
38817
38857
|
};
|
|
@@ -38876,7 +38916,7 @@ function requireQuill() {
|
|
|
38876
38916
|
var qe = this, Pe = Oe.collapsed ? [Oe.index] : [Oe.index, Oe.index + Oe.length], He = [], Ge = this.scroll.length();
|
|
38877
38917
|
return Pe.forEach(function(Ze, Ye) {
|
|
38878
38918
|
Ze = Math.min(Ge - 1, Ze);
|
|
38879
|
-
var bt = void 0, Xe = qe.scroll.leaf(Ze), Ke = re(Xe, 2), Fe = Ke[0], je = Ke[1],
|
|
38919
|
+
var bt = void 0, Xe = qe.scroll.leaf(Ze), Ke = re(Xe, 2), Fe = Ke[0], je = Ke[1], Ve = Fe.position(je, Ye !== 0), Qe = re(Ve, 2);
|
|
38880
38920
|
bt = Qe[0], je = Qe[1], He.push(bt, je);
|
|
38881
38921
|
}), He.length < 2 && (He = He.concat(He)), He;
|
|
38882
38922
|
}
|
|
@@ -39417,8 +39457,8 @@ function requireQuill() {
|
|
|
39417
39457
|
we.push(ze), Se.push(Le);
|
|
39418
39458
|
}
|
|
39419
39459
|
re(ze, de) && ze.forEach(function(Ke, Fe) {
|
|
39420
|
-
var je = Ie(Fe, Ue - 1),
|
|
39421
|
-
Le.set(je,
|
|
39460
|
+
var je = Ie(Fe, Ue - 1), Ve = Ie(Ke, Ue - 1);
|
|
39461
|
+
Le.set(je, Ve);
|
|
39422
39462
|
}), re(ze, ce) && ze.forEach(function(Ke) {
|
|
39423
39463
|
var Fe = Ie(Ke, Ue - 1);
|
|
39424
39464
|
Le.add(Fe);
|
|
@@ -39585,8 +39625,8 @@ function requireQuill() {
|
|
|
39585
39625
|
return;
|
|
39586
39626
|
}
|
|
39587
39627
|
} else if (Fe instanceof ye.default) {
|
|
39588
|
-
var
|
|
39589
|
-
|
|
39628
|
+
var Ve = Fe.newlineIndex(0);
|
|
39629
|
+
Ve > -1 && Fe.split(Ve + 1);
|
|
39590
39630
|
}
|
|
39591
39631
|
var Qe = Fe.children.head instanceof me.default ? null : Fe.children.head;
|
|
39592
39632
|
Ye.moveChildren(Fe, Qe), Ye.remove();
|
|
@@ -39646,8 +39686,8 @@ function requireQuill() {
|
|
|
39646
39686
|
value: function() {
|
|
39647
39687
|
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, He = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, Ge = function Ze(Ye, bt, Xe) {
|
|
39648
39688
|
var Ke = [], Fe = Xe;
|
|
39649
|
-
return Ye.children.forEachAt(bt, Xe, function(je,
|
|
39650
|
-
ze(je) ? Ke.push(je) : je instanceof fe.default.Container && (Ke = Ke.concat(Ze(je,
|
|
39689
|
+
return Ye.children.forEachAt(bt, Xe, function(je, Ve, Qe) {
|
|
39690
|
+
ze(je) ? Ke.push(je) : je instanceof fe.default.Container && (Ke = Ke.concat(Ze(je, Ve, Fe))), Fe -= Qe;
|
|
39651
39691
|
}), Ke;
|
|
39652
39692
|
};
|
|
39653
39693
|
return Ge(this, Pe, He);
|
|
@@ -39681,12 +39721,12 @@ function requireQuill() {
|
|
|
39681
39721
|
Object.defineProperty(oe, "__esModule", {
|
|
39682
39722
|
value: !0
|
|
39683
39723
|
}), oe.SHORTKEY = oe.default = void 0;
|
|
39684
|
-
var re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
39685
|
-
return typeof
|
|
39686
|
-
} : function(
|
|
39687
|
-
return
|
|
39724
|
+
var re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Be) {
|
|
39725
|
+
return typeof Be;
|
|
39726
|
+
} : function(Be) {
|
|
39727
|
+
return Be && typeof Symbol == "function" && Be.constructor === Symbol && Be !== Symbol.prototype ? "symbol" : typeof Be;
|
|
39688
39728
|
}, de = /* @__PURE__ */ (function() {
|
|
39689
|
-
function
|
|
39729
|
+
function Be(Je, nt) {
|
|
39690
39730
|
var ft = [], $t = !0, St = !1, Pt = void 0;
|
|
39691
39731
|
try {
|
|
39692
39732
|
for (var It = Je[Symbol.iterator](), Ht; !($t = (Ht = It.next()).done) && (ft.push(Ht.value), !(nt && ft.length === nt)); $t = !0)
|
|
@@ -39706,42 +39746,42 @@ function requireQuill() {
|
|
|
39706
39746
|
if (Array.isArray(Je))
|
|
39707
39747
|
return Je;
|
|
39708
39748
|
if (Symbol.iterator in Object(Je))
|
|
39709
|
-
return
|
|
39749
|
+
return Be(Je, nt);
|
|
39710
39750
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
39711
39751
|
};
|
|
39712
39752
|
})(), ce = /* @__PURE__ */ (function() {
|
|
39713
|
-
function
|
|
39753
|
+
function Be(Je, nt) {
|
|
39714
39754
|
for (var ft = 0; ft < nt.length; ft++) {
|
|
39715
39755
|
var $t = nt[ft];
|
|
39716
39756
|
$t.enumerable = $t.enumerable || !1, $t.configurable = !0, "value" in $t && ($t.writable = !0), Object.defineProperty(Je, $t.key, $t);
|
|
39717
39757
|
}
|
|
39718
39758
|
}
|
|
39719
39759
|
return function(Je, nt, ft) {
|
|
39720
|
-
return nt &&
|
|
39760
|
+
return nt && Be(Je.prototype, nt), ft && Be(Je, ft), Je;
|
|
39721
39761
|
};
|
|
39722
39762
|
})(), ue = ne(21), fe = Le(ue), pe = ne(11), be = Le(pe), he = ne(3), ge = Le(he), ve = ne(2), me = Le(ve), _e = ne(20), ye = Le(_e), Ae = ne(0), Ce = Le(Ae), we = ne(5), Se = Le(we), Me = ne(10), Ie = Le(Me), ze = ne(9), Ue = Le(ze);
|
|
39723
|
-
function Le(
|
|
39724
|
-
return
|
|
39763
|
+
function Le(Be) {
|
|
39764
|
+
return Be && Be.__esModule ? Be : { default: Be };
|
|
39725
39765
|
}
|
|
39726
|
-
function Oe(
|
|
39727
|
-
return Je in
|
|
39766
|
+
function Oe(Be, Je, nt) {
|
|
39767
|
+
return Je in Be ? Object.defineProperty(Be, Je, { value: nt, enumerable: !0, configurable: !0, writable: !0 }) : Be[Je] = nt, Be;
|
|
39728
39768
|
}
|
|
39729
|
-
function qe(
|
|
39730
|
-
if (!(
|
|
39769
|
+
function qe(Be, Je) {
|
|
39770
|
+
if (!(Be instanceof Je))
|
|
39731
39771
|
throw new TypeError("Cannot call a class as a function");
|
|
39732
39772
|
}
|
|
39733
|
-
function Pe(
|
|
39734
|
-
if (!
|
|
39773
|
+
function Pe(Be, Je) {
|
|
39774
|
+
if (!Be)
|
|
39735
39775
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
39736
|
-
return Je && (typeof Je == "object" || typeof Je == "function") ? Je :
|
|
39776
|
+
return Je && (typeof Je == "object" || typeof Je == "function") ? Je : Be;
|
|
39737
39777
|
}
|
|
39738
|
-
function He(
|
|
39778
|
+
function He(Be, Je) {
|
|
39739
39779
|
if (typeof Je != "function" && Je !== null)
|
|
39740
39780
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Je);
|
|
39741
|
-
|
|
39781
|
+
Be.prototype = Object.create(Je && Je.prototype, { constructor: { value: Be, enumerable: !1, writable: !0, configurable: !0 } }), Je && (Object.setPrototypeOf ? Object.setPrototypeOf(Be, Je) : Be.__proto__ = Je);
|
|
39742
39782
|
}
|
|
39743
|
-
var Ge = (0, Ie.default)("quill:keyboard"), Ze = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(
|
|
39744
|
-
He(Je,
|
|
39783
|
+
var Ge = (0, Ie.default)("quill:keyboard"), Ze = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(Be) {
|
|
39784
|
+
He(Je, Be), ce(Je, null, [{
|
|
39745
39785
|
key: "match",
|
|
39746
39786
|
value: function(ft, $t) {
|
|
39747
39787
|
return $t = tt($t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(St) {
|
|
@@ -39852,8 +39892,8 @@ function requireQuill() {
|
|
|
39852
39892
|
nt.format.indent != null ? this.quill.format("indent", "-1", Se.default.sources.USER) : nt.format.list != null && this.quill.format("list", !1, Se.default.sources.USER);
|
|
39853
39893
|
}
|
|
39854
39894
|
},
|
|
39855
|
-
"indent code-block":
|
|
39856
|
-
"outdent code-block":
|
|
39895
|
+
"indent code-block": Ve(!0),
|
|
39896
|
+
"outdent code-block": Ve(!1),
|
|
39857
39897
|
"remove tab": {
|
|
39858
39898
|
key: Ye.keys.TAB,
|
|
39859
39899
|
shiftKey: !0,
|
|
@@ -39947,70 +39987,70 @@ function requireQuill() {
|
|
|
39947
39987
|
"embed right shift": bt(Ye.keys.RIGHT, !0)
|
|
39948
39988
|
}
|
|
39949
39989
|
};
|
|
39950
|
-
function bt(
|
|
39951
|
-
var nt, ft =
|
|
39990
|
+
function bt(Be, Je) {
|
|
39991
|
+
var nt, ft = Be === Ye.keys.LEFT ? "prefix" : "suffix";
|
|
39952
39992
|
return nt = {
|
|
39953
|
-
key:
|
|
39993
|
+
key: Be,
|
|
39954
39994
|
shiftKey: Je,
|
|
39955
39995
|
altKey: null
|
|
39956
39996
|
}, Oe(nt, ft, /^$/), Oe(nt, "handler", function(St) {
|
|
39957
39997
|
var Pt = St.index;
|
|
39958
|
-
|
|
39998
|
+
Be === Ye.keys.RIGHT && (Pt += St.length + 1);
|
|
39959
39999
|
var It = this.quill.getLeaf(Pt), Ht = de(It, 1), jt = Ht[0];
|
|
39960
|
-
return jt instanceof Ce.default.Embed ? (
|
|
40000
|
+
return jt instanceof Ce.default.Embed ? (Be === Ye.keys.LEFT ? Je ? this.quill.setSelection(St.index - 1, St.length + 1, Se.default.sources.USER) : this.quill.setSelection(St.index - 1, Se.default.sources.USER) : Je ? this.quill.setSelection(St.index, St.length + 1, Se.default.sources.USER) : this.quill.setSelection(St.index + St.length + 1, Se.default.sources.USER), !1) : !0;
|
|
39961
40001
|
}), nt;
|
|
39962
40002
|
}
|
|
39963
|
-
function Xe(
|
|
39964
|
-
if (!(
|
|
39965
|
-
var nt = this.quill.getLine(
|
|
40003
|
+
function Xe(Be, Je) {
|
|
40004
|
+
if (!(Be.index === 0 || this.quill.getLength() <= 1)) {
|
|
40005
|
+
var nt = this.quill.getLine(Be.index), ft = de(nt, 1), $t = ft[0], St = {};
|
|
39966
40006
|
if (Je.offset === 0) {
|
|
39967
|
-
var Pt = this.quill.getLine(
|
|
40007
|
+
var Pt = this.quill.getLine(Be.index - 1), It = de(Pt, 1), Ht = It[0];
|
|
39968
40008
|
if (Ht != null && Ht.length() > 1) {
|
|
39969
|
-
var jt = $t.formats(), ns = this.quill.getFormat(
|
|
40009
|
+
var jt = $t.formats(), ns = this.quill.getFormat(Be.index - 1, 1);
|
|
39970
40010
|
St = ye.default.attributes.diff(jt, ns) || {};
|
|
39971
40011
|
}
|
|
39972
40012
|
}
|
|
39973
40013
|
var es = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Je.prefix) ? 2 : 1;
|
|
39974
|
-
this.quill.deleteText(
|
|
40014
|
+
this.quill.deleteText(Be.index - es, es, Se.default.sources.USER), Object.keys(St).length > 0 && this.quill.formatLine(Be.index - es, es, St, Se.default.sources.USER), this.quill.focus();
|
|
39975
40015
|
}
|
|
39976
40016
|
}
|
|
39977
|
-
function Ke(
|
|
40017
|
+
function Ke(Be, Je) {
|
|
39978
40018
|
var nt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Je.suffix) ? 2 : 1;
|
|
39979
|
-
if (!(
|
|
39980
|
-
var ft = {}, $t = 0, St = this.quill.getLine(
|
|
40019
|
+
if (!(Be.index >= this.quill.getLength() - nt)) {
|
|
40020
|
+
var ft = {}, $t = 0, St = this.quill.getLine(Be.index), Pt = de(St, 1), It = Pt[0];
|
|
39981
40021
|
if (Je.offset >= It.length() - 1) {
|
|
39982
|
-
var Ht = this.quill.getLine(
|
|
40022
|
+
var Ht = this.quill.getLine(Be.index + 1), jt = de(Ht, 1), ns = jt[0];
|
|
39983
40023
|
if (ns) {
|
|
39984
|
-
var es = It.formats(), vt = this.quill.getFormat(
|
|
40024
|
+
var es = It.formats(), vt = this.quill.getFormat(Be.index, 1);
|
|
39985
40025
|
ft = ye.default.attributes.diff(es, vt) || {}, $t = ns.length();
|
|
39986
40026
|
}
|
|
39987
40027
|
}
|
|
39988
|
-
this.quill.deleteText(
|
|
40028
|
+
this.quill.deleteText(Be.index, nt, Se.default.sources.USER), Object.keys(ft).length > 0 && this.quill.formatLine(Be.index + $t - 1, nt, ft, Se.default.sources.USER);
|
|
39989
40029
|
}
|
|
39990
40030
|
}
|
|
39991
|
-
function Fe(
|
|
39992
|
-
var Je = this.quill.getLines(
|
|
40031
|
+
function Fe(Be) {
|
|
40032
|
+
var Je = this.quill.getLines(Be), nt = {};
|
|
39993
40033
|
if (Je.length > 1) {
|
|
39994
40034
|
var ft = Je[0].formats(), $t = Je[Je.length - 1].formats();
|
|
39995
40035
|
nt = ye.default.attributes.diff($t, ft) || {};
|
|
39996
40036
|
}
|
|
39997
|
-
this.quill.deleteText(
|
|
40037
|
+
this.quill.deleteText(Be, Se.default.sources.USER), Object.keys(nt).length > 0 && this.quill.formatLine(Be.index, 1, nt, Se.default.sources.USER), this.quill.setSelection(Be.index, Se.default.sources.SILENT), this.quill.focus();
|
|
39998
40038
|
}
|
|
39999
|
-
function je(
|
|
40039
|
+
function je(Be, Je) {
|
|
40000
40040
|
var nt = this;
|
|
40001
|
-
|
|
40041
|
+
Be.length > 0 && this.quill.scroll.deleteAt(Be.index, Be.length);
|
|
40002
40042
|
var ft = Object.keys(Je.format).reduce(function($t, St) {
|
|
40003
40043
|
return Ce.default.query(St, Ce.default.Scope.BLOCK) && !Array.isArray(Je.format[St]) && ($t[St] = Je.format[St]), $t;
|
|
40004
40044
|
}, {});
|
|
40005
|
-
this.quill.insertText(
|
|
40006
|
-
`, ft, Se.default.sources.USER), this.quill.setSelection(
|
|
40045
|
+
this.quill.insertText(Be.index, `
|
|
40046
|
+
`, ft, Se.default.sources.USER), this.quill.setSelection(Be.index + 1, Se.default.sources.SILENT), this.quill.focus(), Object.keys(Je.format).forEach(function($t) {
|
|
40007
40047
|
ft[$t] == null && (Array.isArray(Je.format[$t]) || $t !== "link" && nt.quill.format($t, Je.format[$t], Se.default.sources.USER));
|
|
40008
40048
|
});
|
|
40009
40049
|
}
|
|
40010
|
-
function Be
|
|
40050
|
+
function Ve(Be) {
|
|
40011
40051
|
return {
|
|
40012
40052
|
key: Ye.keys.TAB,
|
|
40013
|
-
shiftKey: !
|
|
40053
|
+
shiftKey: !Be,
|
|
40014
40054
|
format: { "code-block": !0 },
|
|
40015
40055
|
handler: function(nt) {
|
|
40016
40056
|
var ft = Ce.default.query("code-block"), $t = nt.index, St = nt.length, Pt = this.quill.scroll.descendant(ft, $t), It = de(Pt, 2), Ht = It[0], jt = It[1];
|
|
@@ -40018,32 +40058,32 @@ function requireQuill() {
|
|
|
40018
40058
|
var ns = this.quill.getIndex(Ht), es = Ht.newlineIndex(jt, !0) + 1, vt = Ht.newlineIndex(ns + jt + St), _t = Ht.domNode.textContent.slice(es, vt).split(`
|
|
40019
40059
|
`);
|
|
40020
40060
|
jt = 0, _t.forEach(function(At, Et) {
|
|
40021
|
-
|
|
40061
|
+
Be ? (Ht.insertAt(es + jt, ft.TAB), jt += ft.TAB.length, Et === 0 ? $t += ft.TAB.length : St += ft.TAB.length) : At.startsWith(ft.TAB) && (Ht.deleteAt(es + jt, ft.TAB.length), jt -= ft.TAB.length, Et === 0 ? $t -= ft.TAB.length : St -= ft.TAB.length), jt += At.length + 1;
|
|
40022
40062
|
}), this.quill.update(Se.default.sources.USER), this.quill.setSelection($t, St, Se.default.sources.SILENT);
|
|
40023
40063
|
}
|
|
40024
40064
|
}
|
|
40025
40065
|
};
|
|
40026
40066
|
}
|
|
40027
|
-
function Qe(
|
|
40067
|
+
function Qe(Be) {
|
|
40028
40068
|
return {
|
|
40029
|
-
key:
|
|
40069
|
+
key: Be[0].toUpperCase(),
|
|
40030
40070
|
shortKey: !0,
|
|
40031
40071
|
handler: function(nt, ft) {
|
|
40032
|
-
this.quill.format(
|
|
40072
|
+
this.quill.format(Be, !ft.format[Be], Se.default.sources.USER);
|
|
40033
40073
|
}
|
|
40034
40074
|
};
|
|
40035
40075
|
}
|
|
40036
|
-
function tt(
|
|
40037
|
-
if (typeof
|
|
40038
|
-
return tt({ key:
|
|
40039
|
-
if ((typeof
|
|
40040
|
-
if (Ye.keys[
|
|
40041
|
-
|
|
40042
|
-
else if (
|
|
40043
|
-
|
|
40076
|
+
function tt(Be) {
|
|
40077
|
+
if (typeof Be == "string" || typeof Be == "number")
|
|
40078
|
+
return tt({ key: Be });
|
|
40079
|
+
if ((typeof Be > "u" ? "undefined" : re(Be)) === "object" && (Be = (0, fe.default)(Be, !1)), typeof Be.key == "string")
|
|
40080
|
+
if (Ye.keys[Be.key.toUpperCase()] != null)
|
|
40081
|
+
Be.key = Ye.keys[Be.key.toUpperCase()];
|
|
40082
|
+
else if (Be.key.length === 1)
|
|
40083
|
+
Be.key = Be.key.toUpperCase().charCodeAt(0);
|
|
40044
40084
|
else
|
|
40045
40085
|
return null;
|
|
40046
|
-
return
|
|
40086
|
+
return Be.shortKey && (Be[Ze] = Be.shortKey, delete Be.shortKey), Be;
|
|
40047
40087
|
}
|
|
40048
40088
|
oe.default = Ye, oe.SHORTKEY = Ze;
|
|
40049
40089
|
}),
|
|
@@ -40904,8 +40944,8 @@ function requireQuill() {
|
|
|
40904
40944
|
throw new TypeError("unexpected type: " + qe.type);
|
|
40905
40945
|
return Oe.setStart(Ze, 0), Oe.setEnd(Ye, Ye.length), { range: Oe, mode: "all" };
|
|
40906
40946
|
}
|
|
40907
|
-
var Ke = Ge(), Fe = void 0, je = void 0,
|
|
40908
|
-
return bt ? (qe.extend(Ze, 0), Fe = Ge() + we(Ze), qe.extend(Ye,
|
|
40947
|
+
var Ke = Ge(), Fe = void 0, je = void 0, Ve = Ye.length - Se(Ye);
|
|
40948
|
+
return bt ? (qe.extend(Ze, 0), Fe = Ge() + we(Ze), qe.extend(Ye, Ve), je = Ve - (Ge() - Ke), qe.extend(Ye, je)) : (qe.extend(Ye, Ve), je = Ve - Ge(), qe.extend(Ze, 0), Fe = Ge() - Ke + we(Ze), qe.extend(Ze, Fe)), Oe.setStart(Ze, Fe), Oe.setEnd(Ye, je), {
|
|
40909
40949
|
mode: bt ? "right" : "left",
|
|
40910
40950
|
range: Oe
|
|
40911
40951
|
};
|
|
@@ -41370,92 +41410,92 @@ function requireQuill() {
|
|
|
41370
41410
|
value: !0
|
|
41371
41411
|
}), oe.default = oe.BaseTooltip = void 0;
|
|
41372
41412
|
var re = /* @__PURE__ */ (function() {
|
|
41373
|
-
function je(
|
|
41413
|
+
function je(Ve, Qe) {
|
|
41374
41414
|
for (var tt = 0; tt < Qe.length; tt++) {
|
|
41375
|
-
var
|
|
41376
|
-
|
|
41415
|
+
var Be = Qe[tt];
|
|
41416
|
+
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ve, Be.key, Be);
|
|
41377
41417
|
}
|
|
41378
41418
|
}
|
|
41379
|
-
return function(
|
|
41380
|
-
return Qe && je(
|
|
41419
|
+
return function(Ve, Qe, tt) {
|
|
41420
|
+
return Qe && je(Ve.prototype, Qe), tt && je(Ve, tt), Ve;
|
|
41381
41421
|
};
|
|
41382
|
-
})(), de = function je(
|
|
41383
|
-
|
|
41384
|
-
var
|
|
41385
|
-
if (
|
|
41386
|
-
var Je = Object.getPrototypeOf(
|
|
41422
|
+
})(), de = function je(Ve, Qe, tt) {
|
|
41423
|
+
Ve === null && (Ve = Function.prototype);
|
|
41424
|
+
var Be = Object.getOwnPropertyDescriptor(Ve, Qe);
|
|
41425
|
+
if (Be === void 0) {
|
|
41426
|
+
var Je = Object.getPrototypeOf(Ve);
|
|
41387
41427
|
return Je === null ? void 0 : je(Je, Qe, tt);
|
|
41388
41428
|
} else {
|
|
41389
|
-
if ("value" in
|
|
41390
|
-
return
|
|
41391
|
-
var nt =
|
|
41429
|
+
if ("value" in Be)
|
|
41430
|
+
return Be.value;
|
|
41431
|
+
var nt = Be.get;
|
|
41392
41432
|
return nt === void 0 ? void 0 : nt.call(tt);
|
|
41393
41433
|
}
|
|
41394
41434
|
}, ce = ne(3), ue = Ue(ce), fe = ne(2), pe = Ue(fe), be = ne(8), he = Ue(be), ge = ne(23), ve = Ue(ge), me = ne(35), _e = Ue(me), ye = ne(60), Ae = Ue(ye), Ce = ne(61), we = Ue(Ce), Se = ne(28), Me = Ue(Se), Ie = ne(62), ze = Ue(Ie);
|
|
41395
41435
|
function Ue(je) {
|
|
41396
41436
|
return je && je.__esModule ? je : { default: je };
|
|
41397
41437
|
}
|
|
41398
|
-
function Le(je,
|
|
41399
|
-
if (!(je instanceof
|
|
41438
|
+
function Le(je, Ve) {
|
|
41439
|
+
if (!(je instanceof Ve))
|
|
41400
41440
|
throw new TypeError("Cannot call a class as a function");
|
|
41401
41441
|
}
|
|
41402
|
-
function Oe(je,
|
|
41442
|
+
function Oe(je, Ve) {
|
|
41403
41443
|
if (!je)
|
|
41404
41444
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
41405
|
-
return
|
|
41445
|
+
return Ve && (typeof Ve == "object" || typeof Ve == "function") ? Ve : je;
|
|
41406
41446
|
}
|
|
41407
|
-
function qe(je,
|
|
41408
|
-
if (typeof
|
|
41409
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
41410
|
-
je.prototype = Object.create(
|
|
41447
|
+
function qe(je, Ve) {
|
|
41448
|
+
if (typeof Ve != "function" && Ve !== null)
|
|
41449
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Ve);
|
|
41450
|
+
je.prototype = Object.create(Ve && Ve.prototype, { constructor: { value: je, enumerable: !1, writable: !0, configurable: !0 } }), Ve && (Object.setPrototypeOf ? Object.setPrototypeOf(je, Ve) : je.__proto__ = Ve);
|
|
41411
41451
|
}
|
|
41412
41452
|
var Pe = [!1, "center", "right", "justify"], He = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], Ge = [!1, "serif", "monospace"], Ze = ["1", "2", "3", !1], Ye = ["petita", !1, "gran", "enorme"], bt = (function(je) {
|
|
41413
|
-
qe(
|
|
41414
|
-
function
|
|
41415
|
-
Le(this,
|
|
41416
|
-
var
|
|
41453
|
+
qe(Ve, je);
|
|
41454
|
+
function Ve(Qe, tt) {
|
|
41455
|
+
Le(this, Ve);
|
|
41456
|
+
var Be = Oe(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Qe, tt)), Je = function nt(ft) {
|
|
41417
41457
|
if (!document.body.contains(Qe.root))
|
|
41418
41458
|
return document.body.removeEventListener("click", nt);
|
|
41419
|
-
|
|
41459
|
+
Be.tooltip != null && !Be.tooltip.root.contains(ft.target) && document.activeElement !== Be.tooltip.textbox && !Be.quill.hasFocus() && Be.tooltip.hide(), Be.pickers != null && Be.pickers.forEach(function($t) {
|
|
41420
41460
|
$t.container.contains(ft.target) || $t.close();
|
|
41421
41461
|
});
|
|
41422
41462
|
};
|
|
41423
|
-
return Qe.emitter.listenDOM("click", document.body, Je),
|
|
41463
|
+
return Qe.emitter.listenDOM("click", document.body, Je), Be;
|
|
41424
41464
|
}
|
|
41425
|
-
return re(
|
|
41465
|
+
return re(Ve, [{
|
|
41426
41466
|
key: "addModule",
|
|
41427
41467
|
value: function(tt) {
|
|
41428
|
-
var
|
|
41429
|
-
return tt === "toolbar" && this.extendToolbar(
|
|
41468
|
+
var Be = de(Ve.prototype.__proto__ || Object.getPrototypeOf(Ve.prototype), "addModule", this).call(this, tt);
|
|
41469
|
+
return tt === "toolbar" && this.extendToolbar(Be), Be;
|
|
41430
41470
|
}
|
|
41431
41471
|
}, {
|
|
41432
41472
|
key: "buildButtons",
|
|
41433
|
-
value: function(tt,
|
|
41473
|
+
value: function(tt, Be) {
|
|
41434
41474
|
tt.forEach(function(Je) {
|
|
41435
41475
|
var nt = Je.getAttribute("class") || "";
|
|
41436
41476
|
nt.split(/\s+/).forEach(function(ft) {
|
|
41437
|
-
if (ft.startsWith("ql-") && (ft = ft.slice(3),
|
|
41477
|
+
if (ft.startsWith("ql-") && (ft = ft.slice(3), Be[ft] != null))
|
|
41438
41478
|
if (ft === "direction")
|
|
41439
|
-
Je.innerHTML =
|
|
41440
|
-
else if (typeof
|
|
41441
|
-
Je.innerHTML =
|
|
41479
|
+
Je.innerHTML = Be[ft][""] + Be[ft].rtl;
|
|
41480
|
+
else if (typeof Be[ft] == "string")
|
|
41481
|
+
Je.innerHTML = Be[ft];
|
|
41442
41482
|
else {
|
|
41443
41483
|
var $t = Je.value || "";
|
|
41444
|
-
$t != null &&
|
|
41484
|
+
$t != null && Be[ft][$t] && (Je.innerHTML = Be[ft][$t]);
|
|
41445
41485
|
}
|
|
41446
41486
|
});
|
|
41447
41487
|
});
|
|
41448
41488
|
}
|
|
41449
41489
|
}, {
|
|
41450
41490
|
key: "buildPickers",
|
|
41451
|
-
value: function(tt,
|
|
41491
|
+
value: function(tt, Be) {
|
|
41452
41492
|
var Je = this;
|
|
41453
41493
|
this.pickers = tt.map(function(ft) {
|
|
41454
41494
|
if (ft.classList.contains("ql-align"))
|
|
41455
|
-
return ft.querySelector("option") == null && Fe(ft, Pe), new we.default(ft,
|
|
41495
|
+
return ft.querySelector("option") == null && Fe(ft, Pe), new we.default(ft, Be.align);
|
|
41456
41496
|
if (ft.classList.contains("ql-background") || ft.classList.contains("ql-color")) {
|
|
41457
41497
|
var $t = ft.classList.contains("ql-background") ? "background" : "color";
|
|
41458
|
-
return ft.querySelector("option") == null && Fe(ft, He, $t === "background" ? "#ffffff" : "#000000"), new Ae.default(ft,
|
|
41498
|
+
return ft.querySelector("option") == null && Fe(ft, He, $t === "background" ? "#ffffff" : "#000000"), new Ae.default(ft, Be[$t]);
|
|
41459
41499
|
} else
|
|
41460
41500
|
return ft.querySelector("option") == null && (ft.classList.contains("ql-font") ? Fe(ft, Ge) : ft.classList.contains("ql-header") ? Fe(ft, Ze) : ft.classList.contains("ql-size") && Fe(ft, Ye)), new Me.default(ft);
|
|
41461
41501
|
});
|
|
@@ -41466,7 +41506,7 @@ function requireQuill() {
|
|
|
41466
41506
|
};
|
|
41467
41507
|
this.quill.on(he.default.events.EDITOR_CHANGE, nt);
|
|
41468
41508
|
}
|
|
41469
|
-
}]),
|
|
41509
|
+
}]), Ve;
|
|
41470
41510
|
})(_e.default);
|
|
41471
41511
|
bt.DEFAULTS = (0, ue.default)(!0, {}, _e.default.DEFAULTS, {
|
|
41472
41512
|
modules: {
|
|
@@ -41476,13 +41516,13 @@ function requireQuill() {
|
|
|
41476
41516
|
this.quill.theme.tooltip.edit("formula");
|
|
41477
41517
|
},
|
|
41478
41518
|
image: function() {
|
|
41479
|
-
var
|
|
41519
|
+
var Ve = this, Qe = this.container.querySelector("input.ql-image[type=file]");
|
|
41480
41520
|
Qe == null && (Qe = document.createElement("input"), Qe.setAttribute("type", "file"), Qe.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Qe.classList.add("ql-image"), Qe.addEventListener("change", function() {
|
|
41481
41521
|
if (Qe.files != null && Qe.files[0] != null) {
|
|
41482
41522
|
var tt = new FileReader();
|
|
41483
|
-
tt.onload = function(
|
|
41484
|
-
var Je =
|
|
41485
|
-
|
|
41523
|
+
tt.onload = function(Be) {
|
|
41524
|
+
var Je = Ve.quill.getSelection(!0);
|
|
41525
|
+
Ve.quill.updateContents(new pe.default().retain(Je.index).delete(Je.length).insert({ image: Be.target.result }), he.default.sources.USER), Ve.quill.setSelection(Je.index + 1, he.default.sources.SILENT), Qe.value = "";
|
|
41486
41526
|
}, tt.readAsDataURL(Qe.files[0]);
|
|
41487
41527
|
}
|
|
41488
41528
|
}), this.container.appendChild(Qe)), Qe.click();
|
|
@@ -41495,18 +41535,18 @@ function requireQuill() {
|
|
|
41495
41535
|
}
|
|
41496
41536
|
});
|
|
41497
41537
|
var Xe = (function(je) {
|
|
41498
|
-
qe(
|
|
41499
|
-
function
|
|
41500
|
-
Le(this,
|
|
41501
|
-
var
|
|
41502
|
-
return
|
|
41538
|
+
qe(Ve, je);
|
|
41539
|
+
function Ve(Qe, tt) {
|
|
41540
|
+
Le(this, Ve);
|
|
41541
|
+
var Be = Oe(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Qe, tt));
|
|
41542
|
+
return Be.textbox = Be.root.querySelector('input[type="text"]'), Be.listen(), Be;
|
|
41503
41543
|
}
|
|
41504
|
-
return re(
|
|
41544
|
+
return re(Ve, [{
|
|
41505
41545
|
key: "listen",
|
|
41506
41546
|
value: function() {
|
|
41507
41547
|
var tt = this;
|
|
41508
|
-
this.textbox.addEventListener("keydown", function(
|
|
41509
|
-
ve.default.match(
|
|
41548
|
+
this.textbox.addEventListener("keydown", function(Be) {
|
|
41549
|
+
ve.default.match(Be, "enter") ? (tt.save(), Be.preventDefault()) : ve.default.match(Be, "escape") && (tt.cancel(), Be.preventDefault());
|
|
41510
41550
|
});
|
|
41511
41551
|
}
|
|
41512
41552
|
}, {
|
|
@@ -41517,8 +41557,8 @@ function requireQuill() {
|
|
|
41517
41557
|
}, {
|
|
41518
41558
|
key: "edit",
|
|
41519
41559
|
value: function() {
|
|
41520
|
-
var tt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link",
|
|
41521
|
-
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"),
|
|
41560
|
+
var tt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
41561
|
+
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Be != null ? this.textbox.value = Be : tt !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + tt) || ""), this.root.setAttribute("data-mode", tt);
|
|
41522
41562
|
}
|
|
41523
41563
|
}, {
|
|
41524
41564
|
key: "restoreFocus",
|
|
@@ -41532,8 +41572,8 @@ function requireQuill() {
|
|
|
41532
41572
|
var tt = this.textbox.value;
|
|
41533
41573
|
switch (this.root.getAttribute("data-mode")) {
|
|
41534
41574
|
case "link": {
|
|
41535
|
-
var
|
|
41536
|
-
this.linkRange ? (this.quill.formatText(this.linkRange, "link", tt, he.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", tt, he.default.sources.USER)), this.quill.root.scrollTop =
|
|
41575
|
+
var Be = this.quill.root.scrollTop;
|
|
41576
|
+
this.linkRange ? (this.quill.formatText(this.linkRange, "link", tt, he.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", tt, he.default.sources.USER)), this.quill.root.scrollTop = Be;
|
|
41537
41577
|
break;
|
|
41538
41578
|
}
|
|
41539
41579
|
case "video":
|
|
@@ -41551,17 +41591,17 @@ function requireQuill() {
|
|
|
41551
41591
|
}
|
|
41552
41592
|
this.textbox.value = "", this.hide();
|
|
41553
41593
|
}
|
|
41554
|
-
}]),
|
|
41594
|
+
}]), Ve;
|
|
41555
41595
|
})(ze.default);
|
|
41556
41596
|
function Ke(je) {
|
|
41557
|
-
var
|
|
41558
|
-
return
|
|
41597
|
+
var Ve = je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
41598
|
+
return Ve ? (Ve[1] || "https") + "://www.youtube.com/embed/" + Ve[2] + "?showinfo=0" : (Ve = je.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ve[1] || "https") + "://player.vimeo.com/video/" + Ve[2] + "/" : je;
|
|
41559
41599
|
}
|
|
41560
|
-
function Fe(je,
|
|
41600
|
+
function Fe(je, Ve) {
|
|
41561
41601
|
var Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
41562
|
-
|
|
41563
|
-
var
|
|
41564
|
-
tt === Qe ?
|
|
41602
|
+
Ve.forEach(function(tt) {
|
|
41603
|
+
var Be = document.createElement("option");
|
|
41604
|
+
tt === Qe ? Be.setAttribute("selected", "selected") : Be.setAttribute("value", tt), je.appendChild(Be);
|
|
41565
41605
|
});
|
|
41566
41606
|
}
|
|
41567
41607
|
oe.BaseTooltip = Xe, oe.default = bt;
|
|
@@ -41997,38 +42037,38 @@ function requireQuill() {
|
|
|
41997
42037
|
Oe[Ue + 1] = 0, qe[Ue + 1] = 0;
|
|
41998
42038
|
for (var He = Me - Ie, Ge = He % 2 != 0, Ze = 0, Ye = 0, bt = 0, Xe = 0, Ke = 0; Ke < ze; Ke++) {
|
|
41999
42039
|
for (var Fe = -Ke + Ze; Fe <= Ke - Ye; Fe += 2) {
|
|
42000
|
-
var je = Ue + Fe,
|
|
42001
|
-
Fe == -Ke || Fe != Ke && Oe[je - 1] < Oe[je + 1] ?
|
|
42002
|
-
for (var Qe =
|
|
42003
|
-
|
|
42004
|
-
if (Oe[je] =
|
|
42040
|
+
var je = Ue + Fe, Ve;
|
|
42041
|
+
Fe == -Ke || Fe != Ke && Oe[je - 1] < Oe[je + 1] ? Ve = Oe[je + 1] : Ve = Oe[je - 1] + 1;
|
|
42042
|
+
for (var Qe = Ve - Fe; Ve < Me && Qe < Ie && we.charAt(Ve) == Se.charAt(Qe); )
|
|
42043
|
+
Ve++, Qe++;
|
|
42044
|
+
if (Oe[je] = Ve, Ve > Me)
|
|
42005
42045
|
Ye += 2;
|
|
42006
42046
|
else if (Qe > Ie)
|
|
42007
42047
|
Ze += 2;
|
|
42008
42048
|
else if (Ge) {
|
|
42009
42049
|
var tt = Ue + He - Fe;
|
|
42010
42050
|
if (tt >= 0 && tt < Le && qe[tt] != -1) {
|
|
42011
|
-
var
|
|
42012
|
-
if (
|
|
42013
|
-
return pe(we, Se,
|
|
42051
|
+
var Be = Me - qe[tt];
|
|
42052
|
+
if (Ve >= Be)
|
|
42053
|
+
return pe(we, Se, Ve, Qe);
|
|
42014
42054
|
}
|
|
42015
42055
|
}
|
|
42016
42056
|
}
|
|
42017
42057
|
for (var Je = -Ke + bt; Je <= Ke - Xe; Je += 2) {
|
|
42018
|
-
var tt = Ue + Je,
|
|
42019
|
-
Je == -Ke || Je != Ke && qe[tt - 1] < qe[tt + 1] ?
|
|
42020
|
-
for (var nt =
|
|
42021
|
-
|
|
42022
|
-
if (qe[tt] =
|
|
42058
|
+
var tt = Ue + Je, Be;
|
|
42059
|
+
Je == -Ke || Je != Ke && qe[tt - 1] < qe[tt + 1] ? Be = qe[tt + 1] : Be = qe[tt - 1] + 1;
|
|
42060
|
+
for (var nt = Be - Je; Be < Me && nt < Ie && we.charAt(Me - Be - 1) == Se.charAt(Ie - nt - 1); )
|
|
42061
|
+
Be++, nt++;
|
|
42062
|
+
if (qe[tt] = Be, Be > Me)
|
|
42023
42063
|
Xe += 2;
|
|
42024
42064
|
else if (nt > Ie)
|
|
42025
42065
|
bt += 2;
|
|
42026
42066
|
else if (!Ge) {
|
|
42027
42067
|
var je = Ue + He - Je;
|
|
42028
42068
|
if (je >= 0 && je < Le && Oe[je] != -1) {
|
|
42029
|
-
var
|
|
42030
|
-
if (
|
|
42031
|
-
return pe(we, Se,
|
|
42069
|
+
var Ve = Oe[je], Qe = Ue + Ve - je;
|
|
42070
|
+
if (Be = Me - Be, Ve >= Be)
|
|
42071
|
+
return pe(we, Se, Ve, Qe);
|
|
42032
42072
|
}
|
|
42033
42073
|
}
|
|
42034
42074
|
}
|
|
@@ -42058,7 +42098,7 @@ function requireQuill() {
|
|
|
42058
42098
|
if (Me.length < 4 || Ie.length * 2 < Me.length)
|
|
42059
42099
|
return null;
|
|
42060
42100
|
function ze(Ye, bt, Xe) {
|
|
42061
|
-
for (var Ke = Ye.substring(Xe, Xe + Math.floor(Ye.length / 4)), Fe = -1, je = "",
|
|
42101
|
+
for (var Ke = Ye.substring(Xe, Xe + Math.floor(Ye.length / 4)), Fe = -1, je = "", Ve, Qe, tt, Be; (Fe = bt.indexOf(Ke, Fe + 1)) != -1; ) {
|
|
42062
42102
|
var Je = be(
|
|
42063
42103
|
Ye.substring(Xe),
|
|
42064
42104
|
bt.substring(Fe)
|
|
@@ -42066,13 +42106,13 @@ function requireQuill() {
|
|
|
42066
42106
|
Ye.substring(0, Xe),
|
|
42067
42107
|
bt.substring(0, Fe)
|
|
42068
42108
|
);
|
|
42069
|
-
je.length < nt + Je && (je = bt.substring(Fe - nt, Fe) + bt.substring(Fe, Fe + Je),
|
|
42109
|
+
je.length < nt + Je && (je = bt.substring(Fe - nt, Fe) + bt.substring(Fe, Fe + Je), Ve = Ye.substring(0, Xe - nt), Qe = Ye.substring(Xe + Je), tt = bt.substring(0, Fe - nt), Be = bt.substring(Fe + Je));
|
|
42070
42110
|
}
|
|
42071
42111
|
return je.length * 2 >= Ye.length ? [
|
|
42072
|
-
|
|
42112
|
+
Ve,
|
|
42073
42113
|
Qe,
|
|
42074
42114
|
tt,
|
|
42075
|
-
|
|
42115
|
+
Be,
|
|
42076
42116
|
je
|
|
42077
42117
|
] : null;
|
|
42078
42118
|
}
|
|
@@ -42458,9 +42498,9 @@ function requireQuill() {
|
|
|
42458
42498
|
matchers: [],
|
|
42459
42499
|
matchVisual: !0
|
|
42460
42500
|
};
|
|
42461
|
-
function
|
|
42501
|
+
function Ve(vt, _t, At) {
|
|
42462
42502
|
return (typeof _t > "u" ? "undefined" : re(_t)) === "object" ? Object.keys(_t).reduce(function(Et, xt) {
|
|
42463
|
-
return
|
|
42503
|
+
return Ve(Et, xt, _t[xt]);
|
|
42464
42504
|
}, vt) : vt.reduce(function(Et, xt) {
|
|
42465
42505
|
return xt.attributes && xt.attributes[_t] ? Et.push(xt) : Et.insert(xt.insert, (0, fe.default)({}, Pe({}, _t, At), xt.attributes));
|
|
42466
42506
|
}, new be.default());
|
|
@@ -42478,7 +42518,7 @@ function requireQuill() {
|
|
|
42478
42518
|
}
|
|
42479
42519
|
return At.slice(-1 * _t.length) === _t;
|
|
42480
42520
|
}
|
|
42481
|
-
function
|
|
42521
|
+
function Be(vt) {
|
|
42482
42522
|
if (vt.childNodes.length === 0) return !1;
|
|
42483
42523
|
var _t = Qe(vt);
|
|
42484
42524
|
return ["block", "list-item"].indexOf(_t.display) > -1;
|
|
@@ -42496,14 +42536,14 @@ function requireQuill() {
|
|
|
42496
42536
|
}, new be.default()) : new be.default();
|
|
42497
42537
|
}
|
|
42498
42538
|
function nt(vt, _t, At) {
|
|
42499
|
-
return
|
|
42539
|
+
return Ve(At, vt, !0);
|
|
42500
42540
|
}
|
|
42501
42541
|
function ft(vt, _t) {
|
|
42502
42542
|
var At = ge.default.Attributor.Attribute.keys(vt), Et = ge.default.Attributor.Class.keys(vt), xt = ge.default.Attributor.Style.keys(vt), Nt = {};
|
|
42503
42543
|
return At.concat(Et).concat(xt).forEach(function(Ft) {
|
|
42504
42544
|
var Ut = ge.default.query(Ft, ge.default.Scope.ATTRIBUTE);
|
|
42505
42545
|
Ut != null && (Nt[Ut.attrName] = Ut.value(vt), Nt[Ut.attrName]) || (Ut = Ke[Ft], Ut != null && (Ut.attrName === Ft || Ut.keyName === Ft) && (Nt[Ut.attrName] = Ut.value(vt) || void 0), Ut = Fe[Ft], Ut != null && (Ut.attrName === Ft || Ut.keyName === Ft) && (Ut = Fe[Ft], Nt[Ut.attrName] = Ut.value(vt) || void 0));
|
|
42506
|
-
}), Object.keys(Nt).length > 0 && (_t =
|
|
42546
|
+
}), Object.keys(Nt).length > 0 && (_t = Ve(_t, Nt)), _t;
|
|
42507
42547
|
}
|
|
42508
42548
|
function $t(vt, _t) {
|
|
42509
42549
|
var At = ge.default.query(vt);
|
|
@@ -42511,7 +42551,7 @@ function requireQuill() {
|
|
|
42511
42551
|
if (At.prototype instanceof ge.default.Embed) {
|
|
42512
42552
|
var Et = {}, xt = At.value(vt);
|
|
42513
42553
|
xt != null && (Et[At.blotName] = xt, _t = new be.default().insert(Et, At.formats(vt)));
|
|
42514
|
-
} else typeof At.formats == "function" && (_t =
|
|
42554
|
+
} else typeof At.formats == "function" && (_t = Ve(_t, At.blotName, At.formats(vt)));
|
|
42515
42555
|
return _t;
|
|
42516
42556
|
}
|
|
42517
42557
|
function St(vt, _t) {
|
|
@@ -42533,11 +42573,11 @@ function requireQuill() {
|
|
|
42533
42573
|
}
|
|
42534
42574
|
function Ht(vt, _t) {
|
|
42535
42575
|
return tt(_t, `
|
|
42536
|
-
`) || (
|
|
42576
|
+
`) || (Be(vt) || _t.length() > 0 && vt.nextSibling && Be(vt.nextSibling)) && _t.insert(`
|
|
42537
42577
|
`), _t;
|
|
42538
42578
|
}
|
|
42539
42579
|
function jt(vt, _t) {
|
|
42540
|
-
if (
|
|
42580
|
+
if (Be(vt) && vt.nextElementSibling != null && !tt(_t, `
|
|
42541
42581
|
|
|
42542
42582
|
`)) {
|
|
42543
42583
|
var At = vt.offsetHeight + parseFloat(Qe(vt).marginTop) + parseFloat(Qe(vt).marginBottom);
|
|
@@ -42548,7 +42588,7 @@ function requireQuill() {
|
|
|
42548
42588
|
}
|
|
42549
42589
|
function ns(vt, _t) {
|
|
42550
42590
|
var At = {}, Et = vt.style || {};
|
|
42551
|
-
return Et.fontStyle && Qe(vt).fontStyle === "italic" && (At.italic = !0), Et.fontWeight && (Qe(vt).fontWeight.startsWith("bold") || parseInt(Qe(vt).fontWeight) >= 700) && (At.bold = !0), Object.keys(At).length > 0 && (_t =
|
|
42591
|
+
return Et.fontStyle && Qe(vt).fontStyle === "italic" && (At.italic = !0), Et.fontWeight && (Qe(vt).fontWeight.startsWith("bold") || parseInt(Qe(vt).fontWeight) >= 700) && (At.bold = !0), Object.keys(At).length > 0 && (_t = Ve(_t, At)), parseFloat(Et.textIndent || 0) > 0 && (_t = new be.default().insert(" ").concat(_t)), _t;
|
|
42552
42592
|
}
|
|
42553
42593
|
function es(vt, _t) {
|
|
42554
42594
|
var At = vt.data;
|
|
@@ -42560,7 +42600,7 @@ function requireQuill() {
|
|
|
42560
42600
|
var Et = function(Nt, Ft) {
|
|
42561
42601
|
return Ft = Ft.replace(/[^\u00a0]/g, ""), Ft.length < 1 && Nt ? " " : Ft;
|
|
42562
42602
|
};
|
|
42563
|
-
At = At.replace(/\r\n/g, " ").replace(/\n/g, " "), At = At.replace(/\s\s+/g, Et.bind(Et, !0)), (vt.previousSibling == null &&
|
|
42603
|
+
At = At.replace(/\r\n/g, " ").replace(/\n/g, " "), At = At.replace(/\s\s+/g, Et.bind(Et, !0)), (vt.previousSibling == null && Be(vt.parentNode) || vt.previousSibling != null && Be(vt.previousSibling)) && (At = At.replace(/^\s+/, Et.bind(Et, !1))), (vt.nextSibling == null && Be(vt.parentNode) || vt.nextSibling != null && Be(vt.nextSibling)) && (At = At.replace(/\s+$/, Et.bind(Et, !1)));
|
|
42564
42604
|
}
|
|
42565
42605
|
return _t.insert(At);
|
|
42566
42606
|
}
|
|
@@ -42757,7 +42797,7 @@ function requireQuill() {
|
|
|
42757
42797
|
} else
|
|
42758
42798
|
Ge.classList.contains("ql-active") ? Ke = !1 : Ke = Ge.value || !Ge.hasAttribute("value"), Xe.preventDefault();
|
|
42759
42799
|
Ze.quill.focus();
|
|
42760
|
-
var je = Ze.quill.selection.getRange(),
|
|
42800
|
+
var je = Ze.quill.selection.getRange(), Ve = re(je, 1), Qe = Ve[0];
|
|
42761
42801
|
if (Ze.handlers[Ye] != null)
|
|
42762
42802
|
Ze.handlers[Ye].call(Ze, Ke);
|
|
42763
42803
|
else if (pe.default.query(Ye).prototype instanceof pe.default.Embed) {
|
|
@@ -42789,8 +42829,8 @@ function requireQuill() {
|
|
|
42789
42829
|
} else if (Ge == null)
|
|
42790
42830
|
Ke.classList.remove("ql-active");
|
|
42791
42831
|
else if (Ke.hasAttribute("value")) {
|
|
42792
|
-
var
|
|
42793
|
-
Ke.classList.toggle("ql-active",
|
|
42832
|
+
var Ve = Ze[Xe] === Ke.getAttribute("value") || Ze[Xe] != null && Ze[Xe].toString() === Ke.getAttribute("value") || Ze[Xe] == null && !Ke.getAttribute("value");
|
|
42833
|
+
Ke.classList.toggle("ql-active", Ve);
|
|
42794
42834
|
} else
|
|
42795
42835
|
Ke.classList.toggle("ql-active", Ze[Xe] != null);
|
|
42796
42836
|
});
|
|
@@ -43207,7 +43247,7 @@ function requireQuill() {
|
|
|
43207
43247
|
Object.defineProperty(oe, "__esModule", {
|
|
43208
43248
|
value: !0
|
|
43209
43249
|
});
|
|
43210
|
-
var re = ne(29), de = xt(re), ce = ne(37), ue = ne(39), fe = ne(65), pe = ne(66), be = xt(pe), he = ne(67), ge = xt(he), ve = ne(68), me = xt(ve), _e = ne(38), ye = ne(26), Ae = ne(40), Ce = ne(41), we = ne(57), Se = xt(we), Me = ne(69), Ie = xt(Me), ze = ne(27), Ue = xt(ze), Le = ne(70), Oe = xt(Le), qe = ne(71), Pe = xt(qe), He = ne(72), Ge = xt(He), Ze = ne(73), Ye = xt(Ze), bt = ne(74), Xe = xt(bt), Ke = ne(13), Fe = xt(Ke), je = ne(75),
|
|
43250
|
+
var re = ne(29), de = xt(re), ce = ne(37), ue = ne(39), fe = ne(65), pe = ne(66), be = xt(pe), he = ne(67), ge = xt(he), ve = ne(68), me = xt(ve), _e = ne(38), ye = ne(26), Ae = ne(40), Ce = ne(41), we = ne(57), Se = xt(we), Me = ne(69), Ie = xt(Me), ze = ne(27), Ue = xt(ze), Le = ne(70), Oe = xt(Le), qe = ne(71), Pe = xt(qe), He = ne(72), Ge = xt(He), Ze = ne(73), Ye = xt(Ze), bt = ne(74), Xe = xt(bt), Ke = ne(13), Fe = xt(Ke), je = ne(75), Ve = xt(je), Qe = ne(76), tt = xt(Qe), Be = ne(58), Je = xt(Be), nt = ne(42), ft = xt(nt), $t = ne(28), St = xt($t), Pt = ne(60), It = xt(Pt), Ht = ne(61), jt = xt(Ht), ns = ne(62), es = xt(ns), vt = ne(109), _t = xt(vt), At = ne(63), Et = xt(At);
|
|
43211
43251
|
function xt(Nt) {
|
|
43212
43252
|
return Nt && Nt.__esModule ? Nt : { default: Nt };
|
|
43213
43253
|
}
|
|
@@ -43247,7 +43287,7 @@ function requireQuill() {
|
|
|
43247
43287
|
"formats/image": Ye.default,
|
|
43248
43288
|
"formats/video": Xe.default,
|
|
43249
43289
|
"formats/list/item": ve.ListItem,
|
|
43250
|
-
"modules/formula":
|
|
43290
|
+
"modules/formula": Ve.default,
|
|
43251
43291
|
"modules/syntax": tt.default,
|
|
43252
43292
|
"modules/toolbar": Je.default,
|
|
43253
43293
|
"themes/bubble": _t.default,
|
|
@@ -45550,4 +45590,4 @@ export {
|
|
|
45550
45590
|
createEcapEventManager as y,
|
|
45551
45591
|
ExitShell as z
|
|
45552
45592
|
};
|
|
45553
|
-
//# sourceMappingURL=index-
|
|
45593
|
+
//# sourceMappingURL=index-C2OnQp-I.js.map
|