@uxland/primary-shell 7.13.2 → 7.14.0
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-C26_oeb6.js → component-B25VrLkq.js} +2 -2
- package/dist/{component-C26_oeb6.js.map → component-B25VrLkq.js.map} +1 -1
- package/dist/{index-BzY8_3e-.js → index-DdsMjYI8.js} +536 -526
- package/dist/index-DdsMjYI8.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/user-manager/user-manager.d.ts +2 -0
- package/package.json +1 -1
- package/src/api/user-manager/user-manager.ts +28 -2
- package/dist/index-BzY8_3e-.js.map +0 -1
|
@@ -70,7 +70,7 @@ function require_Reflect() {
|
|
|
70
70
|
}
|
|
71
71
|
}, be = Object.getPrototypeOf(Function), ge = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kt(), ve = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Cs(), me = typeof WeakMap == "function" ? WeakMap : ss(), _e = oe ? Symbol.for("@reflect-metadata:registry") : void 0, ye = Ft(), Ce = Ht(ye);
|
|
72
72
|
function Se(rt, ft, _t, St) {
|
|
73
|
-
if (
|
|
73
|
+
if (Be(_t)) {
|
|
74
74
|
if (!Pt(rt))
|
|
75
75
|
throw new TypeError();
|
|
76
76
|
if (!Nt(ft))
|
|
@@ -81,7 +81,7 @@ function require_Reflect() {
|
|
|
81
81
|
throw new TypeError();
|
|
82
82
|
if (!Ue(ft))
|
|
83
83
|
throw new TypeError();
|
|
84
|
-
if (!Ue(St) && !
|
|
84
|
+
if (!Ue(St) && !Be(St) && !Xe(St))
|
|
85
85
|
throw new TypeError();
|
|
86
86
|
return Xe(St) && (St = void 0), _t = Ct(_t), Ne(rt, ft, _t, St);
|
|
87
87
|
}
|
|
@@ -91,7 +91,7 @@ function require_Reflect() {
|
|
|
91
91
|
function _t(St, It) {
|
|
92
92
|
if (!Ue(St))
|
|
93
93
|
throw new TypeError();
|
|
94
|
-
if (!
|
|
94
|
+
if (!Be(It) && !Ut(It))
|
|
95
95
|
throw new TypeError();
|
|
96
96
|
Je(rt, ft, St, It);
|
|
97
97
|
}
|
|
@@ -101,64 +101,64 @@ function require_Reflect() {
|
|
|
101
101
|
function Ae(rt, ft, _t, St) {
|
|
102
102
|
if (!Ue(_t))
|
|
103
103
|
throw new TypeError();
|
|
104
|
-
return
|
|
104
|
+
return Be(St) || (St = Ct(St)), Je(rt, ft, _t, St);
|
|
105
105
|
}
|
|
106
106
|
X("defineMetadata", Ae);
|
|
107
107
|
function Le(rt, ft, _t) {
|
|
108
108
|
if (!Ue(ft))
|
|
109
109
|
throw new TypeError();
|
|
110
|
-
return
|
|
110
|
+
return Be(_t) || (_t = Ct(_t)), Ge(rt, ft, _t);
|
|
111
111
|
}
|
|
112
112
|
X("hasMetadata", Le);
|
|
113
113
|
function ze(rt, ft, _t) {
|
|
114
114
|
if (!Ue(ft))
|
|
115
115
|
throw new TypeError();
|
|
116
|
-
return
|
|
116
|
+
return Be(_t) || (_t = Ct(_t)), Ze(rt, ft, _t);
|
|
117
117
|
}
|
|
118
118
|
X("hasOwnMetadata", ze);
|
|
119
119
|
function Fe(rt, ft, _t) {
|
|
120
120
|
if (!Ue(ft))
|
|
121
121
|
throw new TypeError();
|
|
122
|
-
return
|
|
122
|
+
return Be(_t) || (_t = Ct(_t)), Ke(rt, ft, _t);
|
|
123
123
|
}
|
|
124
124
|
X("getMetadata", Fe);
|
|
125
|
-
function
|
|
125
|
+
function je(rt, ft, _t) {
|
|
126
126
|
if (!Ue(ft))
|
|
127
127
|
throw new TypeError();
|
|
128
|
-
return
|
|
128
|
+
return Be(_t) || (_t = Ct(_t)), bt(rt, ft, _t);
|
|
129
129
|
}
|
|
130
|
-
X("getOwnMetadata",
|
|
130
|
+
X("getOwnMetadata", je);
|
|
131
131
|
function Pe(rt, ft) {
|
|
132
132
|
if (!Ue(rt))
|
|
133
133
|
throw new TypeError();
|
|
134
|
-
return
|
|
134
|
+
return Be(ft) || (ft = Ct(ft)), Ye(rt, ft);
|
|
135
135
|
}
|
|
136
136
|
X("getMetadataKeys", Pe);
|
|
137
137
|
function Oe(rt, ft) {
|
|
138
138
|
if (!Ue(rt))
|
|
139
139
|
throw new TypeError();
|
|
140
|
-
return
|
|
140
|
+
return Be(ft) || (ft = Ct(ft)), Me(rt, ft);
|
|
141
141
|
}
|
|
142
142
|
X("getOwnMetadataKeys", Oe);
|
|
143
143
|
function qe(rt, ft, _t) {
|
|
144
144
|
if (!Ue(ft))
|
|
145
145
|
throw new TypeError();
|
|
146
|
-
if (
|
|
146
|
+
if (Be(_t) || (_t = Ct(_t)), !Ue(ft))
|
|
147
147
|
throw new TypeError();
|
|
148
|
-
|
|
148
|
+
Be(_t) || (_t = Ct(_t));
|
|
149
149
|
var St = cs(
|
|
150
150
|
ft,
|
|
151
151
|
_t,
|
|
152
152
|
/*Create*/
|
|
153
153
|
!1
|
|
154
154
|
);
|
|
155
|
-
return
|
|
155
|
+
return Be(St) ? !1 : St.OrdinaryDeleteMetadata(rt, ft, _t);
|
|
156
156
|
}
|
|
157
157
|
X("deleteMetadata", qe);
|
|
158
158
|
function Ie(rt, ft) {
|
|
159
159
|
for (var _t = rt.length - 1; _t >= 0; --_t) {
|
|
160
160
|
var St = rt[_t], It = St(ft);
|
|
161
|
-
if (!
|
|
161
|
+
if (!Be(It) && !Xe(It)) {
|
|
162
162
|
if (!Nt(It))
|
|
163
163
|
throw new TypeError();
|
|
164
164
|
ft = It;
|
|
@@ -169,7 +169,7 @@ function require_Reflect() {
|
|
|
169
169
|
function Ne(rt, ft, _t, St) {
|
|
170
170
|
for (var It = rt.length - 1; It >= 0; --It) {
|
|
171
171
|
var os = rt[It], ds = os(ft, _t, St);
|
|
172
|
-
if (!
|
|
172
|
+
if (!Be(ds) && !Xe(ds)) {
|
|
173
173
|
if (!Ue(ds))
|
|
174
174
|
throw new TypeError();
|
|
175
175
|
St = ds;
|
|
@@ -191,7 +191,7 @@ function require_Reflect() {
|
|
|
191
191
|
/*Create*/
|
|
192
192
|
!1
|
|
193
193
|
);
|
|
194
|
-
return
|
|
194
|
+
return Be(St) ? !1 : ot(St.OrdinaryHasOwnMetadata(rt, ft, _t));
|
|
195
195
|
}
|
|
196
196
|
function Ke(rt, ft, _t) {
|
|
197
197
|
var St = Ze(rt, ft, _t);
|
|
@@ -208,7 +208,7 @@ function require_Reflect() {
|
|
|
208
208
|
/*Create*/
|
|
209
209
|
!1
|
|
210
210
|
);
|
|
211
|
-
if (!
|
|
211
|
+
if (!Be(St))
|
|
212
212
|
return St.OrdinaryGetOwnMetadata(rt, ft, _t);
|
|
213
213
|
}
|
|
214
214
|
function Je(rt, ft, _t, St) {
|
|
@@ -229,12 +229,12 @@ function require_Reflect() {
|
|
|
229
229
|
return _t;
|
|
230
230
|
if (_t.length <= 0)
|
|
231
231
|
return It;
|
|
232
|
-
for (var os = new ve(), ds = [],
|
|
233
|
-
var Ot = Tt[
|
|
232
|
+
for (var os = new ve(), ds = [], Bt = 0, Tt = _t; Bt < Tt.length; Bt++) {
|
|
233
|
+
var Ot = Tt[Bt], zt = os.has(Ot);
|
|
234
234
|
zt || (os.add(Ot), ds.push(Ot));
|
|
235
235
|
}
|
|
236
|
-
for (var Dt = 0,
|
|
237
|
-
var Ot =
|
|
236
|
+
for (var Dt = 0, jt = It; Dt < jt.length; Dt++) {
|
|
237
|
+
var Ot = jt[Dt], zt = os.has(Ot);
|
|
238
238
|
zt || (os.add(Ot), ds.push(Ot));
|
|
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 Be(rt) {
|
|
272
272
|
return rt === void 0;
|
|
273
273
|
}
|
|
274
274
|
function Xe(rt) {
|
|
@@ -394,7 +394,7 @@ function require_Reflect() {
|
|
|
394
394
|
}
|
|
395
395
|
function Mt() {
|
|
396
396
|
var rt;
|
|
397
|
-
!
|
|
397
|
+
!Be(_e) && typeof re.Reflect < "u" && !(_e in re.Reflect) && typeof re.Reflect.defineMetadata == "function" && (rt = us(re.Reflect));
|
|
398
398
|
var ft, _t, St, It = new me(), os = {
|
|
399
399
|
registerProvider: ds,
|
|
400
400
|
getProvider: Tt,
|
|
@@ -407,12 +407,12 @@ function require_Reflect() {
|
|
|
407
407
|
switch (!0) {
|
|
408
408
|
case rt === Dt:
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
410
|
+
case Be(ft):
|
|
411
411
|
ft = Dt;
|
|
412
412
|
break;
|
|
413
413
|
case ft === Dt:
|
|
414
414
|
break;
|
|
415
|
-
case
|
|
415
|
+
case Be(_t):
|
|
416
416
|
_t = Dt;
|
|
417
417
|
break;
|
|
418
418
|
case _t === Dt:
|
|
@@ -422,52 +422,52 @@ function require_Reflect() {
|
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
if (!
|
|
427
|
-
if (ft.isProviderFor(Dt,
|
|
425
|
+
function Bt(Dt, jt) {
|
|
426
|
+
if (!Be(ft)) {
|
|
427
|
+
if (ft.isProviderFor(Dt, jt))
|
|
428
428
|
return ft;
|
|
429
|
-
if (!
|
|
430
|
-
if (_t.isProviderFor(Dt,
|
|
429
|
+
if (!Be(_t)) {
|
|
430
|
+
if (_t.isProviderFor(Dt, jt))
|
|
431
431
|
return ft;
|
|
432
|
-
if (!
|
|
432
|
+
if (!Be(St))
|
|
433
433
|
for (var es = mt(St); ; ) {
|
|
434
434
|
var as = kt(es);
|
|
435
435
|
if (!as)
|
|
436
436
|
return;
|
|
437
437
|
var fs = vt(as);
|
|
438
|
-
if (fs.isProviderFor(Dt,
|
|
438
|
+
if (fs.isProviderFor(Dt, jt))
|
|
439
439
|
return At(es), fs;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
if (!
|
|
443
|
+
if (!Be(rt) && rt.isProviderFor(Dt, jt))
|
|
444
444
|
return rt;
|
|
445
445
|
}
|
|
446
|
-
function Tt(Dt,
|
|
446
|
+
function Tt(Dt, jt) {
|
|
447
447
|
var es = It.get(Dt), as;
|
|
448
|
-
return
|
|
448
|
+
return Be(es) || (as = es.get(jt)), Be(as) && (as = Bt(Dt, jt), Be(as) || (Be(es) && (es = new ge(), It.set(Dt, es)), es.set(jt, as))), as;
|
|
449
449
|
}
|
|
450
450
|
function Ot(Dt) {
|
|
451
|
-
if (
|
|
451
|
+
if (Be(Dt))
|
|
452
452
|
throw new TypeError();
|
|
453
|
-
return ft === Dt || _t === Dt || !
|
|
453
|
+
return ft === Dt || _t === Dt || !Be(St) && St.has(Dt);
|
|
454
454
|
}
|
|
455
|
-
function zt(Dt,
|
|
455
|
+
function zt(Dt, jt, es) {
|
|
456
456
|
if (!Ot(es))
|
|
457
457
|
throw new Error("Metadata provider not registered.");
|
|
458
|
-
var as = Tt(Dt,
|
|
458
|
+
var as = Tt(Dt, jt);
|
|
459
459
|
if (as !== es) {
|
|
460
|
-
if (!
|
|
460
|
+
if (!Be(as))
|
|
461
461
|
return !1;
|
|
462
462
|
var fs = It.get(Dt);
|
|
463
|
-
|
|
463
|
+
Be(fs) && (fs = new ge(), It.set(Dt, fs)), fs.set(jt, es);
|
|
464
464
|
}
|
|
465
465
|
return !0;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
function Ft() {
|
|
469
469
|
var rt;
|
|
470
|
-
return !
|
|
470
|
+
return !Be(_e) && Ue(re.Reflect) && Object.isExtensible(re.Reflect) && (rt = re.Reflect[_e]), Be(rt) && (rt = Mt()), !Be(_e) && Ue(re.Reflect) && Object.isExtensible(re.Reflect) && Object.defineProperty(re.Reflect, _e, {
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
configurable: !1,
|
|
473
473
|
writable: !1,
|
|
@@ -478,69 +478,69 @@ function require_Reflect() {
|
|
|
478
478
|
var ft = new me(), _t = {
|
|
479
479
|
isProviderFor: function(Ot, zt) {
|
|
480
480
|
var Dt = ft.get(Ot);
|
|
481
|
-
return
|
|
481
|
+
return Be(Dt) ? !1 : Dt.has(zt);
|
|
482
482
|
},
|
|
483
483
|
OrdinaryDefineOwnMetadata: ds,
|
|
484
484
|
OrdinaryHasOwnMetadata: It,
|
|
485
485
|
OrdinaryGetOwnMetadata: os,
|
|
486
|
-
OrdinaryOwnMetadataKeys:
|
|
486
|
+
OrdinaryOwnMetadataKeys: Bt,
|
|
487
487
|
OrdinaryDeleteMetadata: Tt
|
|
488
488
|
};
|
|
489
489
|
return ye.registerProvider(_t), _t;
|
|
490
490
|
function St(Ot, zt, Dt) {
|
|
491
|
-
var
|
|
492
|
-
if (
|
|
491
|
+
var jt = ft.get(Ot), es = !1;
|
|
492
|
+
if (Be(jt)) {
|
|
493
493
|
if (!Dt)
|
|
494
494
|
return;
|
|
495
|
-
|
|
495
|
+
jt = new ge(), ft.set(Ot, jt), es = !0;
|
|
496
496
|
}
|
|
497
|
-
var as =
|
|
498
|
-
if (
|
|
497
|
+
var as = jt.get(zt);
|
|
498
|
+
if (Be(as)) {
|
|
499
499
|
if (!Dt)
|
|
500
500
|
return;
|
|
501
|
-
if (as = new ge(),
|
|
502
|
-
throw
|
|
501
|
+
if (as = new ge(), jt.set(zt, as), !rt.setProvider(Ot, zt, _t))
|
|
502
|
+
throw jt.delete(zt), es && ft.delete(Ot), new Error("Wrong provider for target.");
|
|
503
503
|
}
|
|
504
504
|
return as;
|
|
505
505
|
}
|
|
506
506
|
function It(Ot, zt, Dt) {
|
|
507
|
-
var
|
|
507
|
+
var jt = St(
|
|
508
508
|
zt,
|
|
509
509
|
Dt,
|
|
510
510
|
/*Create*/
|
|
511
511
|
!1
|
|
512
512
|
);
|
|
513
|
-
return
|
|
513
|
+
return Be(jt) ? !1 : ot(jt.has(Ot));
|
|
514
514
|
}
|
|
515
515
|
function os(Ot, zt, Dt) {
|
|
516
|
-
var
|
|
516
|
+
var jt = St(
|
|
517
517
|
zt,
|
|
518
518
|
Dt,
|
|
519
519
|
/*Create*/
|
|
520
520
|
!1
|
|
521
521
|
);
|
|
522
|
-
if (!
|
|
523
|
-
return
|
|
522
|
+
if (!Be(jt))
|
|
523
|
+
return jt.get(Ot);
|
|
524
524
|
}
|
|
525
|
-
function ds(Ot, zt, Dt,
|
|
525
|
+
function ds(Ot, zt, Dt, jt) {
|
|
526
526
|
var es = St(
|
|
527
527
|
Dt,
|
|
528
|
-
|
|
528
|
+
jt,
|
|
529
529
|
/*Create*/
|
|
530
530
|
!0
|
|
531
531
|
);
|
|
532
532
|
es.set(Ot, zt);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
var Dt = [],
|
|
534
|
+
function Bt(Ot, zt) {
|
|
535
|
+
var Dt = [], jt = St(
|
|
536
536
|
Ot,
|
|
537
537
|
zt,
|
|
538
538
|
/*Create*/
|
|
539
539
|
!1
|
|
540
540
|
);
|
|
541
|
-
if (
|
|
541
|
+
if (Be(jt))
|
|
542
542
|
return Dt;
|
|
543
|
-
for (var es =
|
|
543
|
+
for (var es = jt.keys(), as = mt(es), fs = 0; ; ) {
|
|
544
544
|
var Es = kt(as);
|
|
545
545
|
if (!Es)
|
|
546
546
|
return Dt.length = fs, Dt;
|
|
@@ -558,26 +558,26 @@ function require_Reflect() {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function Tt(Ot, zt, Dt) {
|
|
561
|
-
var
|
|
561
|
+
var jt = St(
|
|
562
562
|
zt,
|
|
563
563
|
Dt,
|
|
564
564
|
/*Create*/
|
|
565
565
|
!1
|
|
566
566
|
);
|
|
567
|
-
if (
|
|
567
|
+
if (Be(jt) || !jt.delete(Ot))
|
|
568
568
|
return !1;
|
|
569
|
-
if (
|
|
569
|
+
if (jt.size === 0) {
|
|
570
570
|
var es = ft.get(zt);
|
|
571
|
-
|
|
571
|
+
Be(es) || (es.delete(Dt), es.size === 0 && ft.delete(es));
|
|
572
572
|
}
|
|
573
573
|
return !0;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
function us(rt) {
|
|
577
|
-
var ft = rt.defineMetadata, _t = rt.hasOwnMetadata, St = rt.getOwnMetadata, It = rt.getOwnMetadataKeys, os = rt.deleteMetadata, ds = new me(),
|
|
577
|
+
var ft = rt.defineMetadata, _t = rt.hasOwnMetadata, St = rt.getOwnMetadata, It = rt.getOwnMetadataKeys, os = rt.deleteMetadata, ds = new me(), Bt = {
|
|
578
578
|
isProviderFor: function(Tt, Ot) {
|
|
579
579
|
var zt = ds.get(Tt);
|
|
580
|
-
return !
|
|
580
|
+
return !Be(zt) && zt.has(Ot) ? !0 : It(Tt, Ot).length ? (Be(zt) && (zt = new ve(), ds.set(Tt, zt)), zt.add(Ot), !0) : !1;
|
|
581
581
|
},
|
|
582
582
|
OrdinaryDefineOwnMetadata: ft,
|
|
583
583
|
OrdinaryHasOwnMetadata: _t,
|
|
@@ -585,11 +585,11 @@ function require_Reflect() {
|
|
|
585
585
|
OrdinaryOwnMetadataKeys: It,
|
|
586
586
|
OrdinaryDeleteMetadata: os
|
|
587
587
|
};
|
|
588
|
-
return
|
|
588
|
+
return Bt;
|
|
589
589
|
}
|
|
590
590
|
function cs(rt, ft, _t) {
|
|
591
591
|
var St = ye.getProvider(rt, ft);
|
|
592
|
-
if (!
|
|
592
|
+
if (!Be(St))
|
|
593
593
|
return St;
|
|
594
594
|
if (_t) {
|
|
595
595
|
if (ye.setProvider(rt, ft, Ce))
|
|
@@ -601,59 +601,59 @@ function require_Reflect() {
|
|
|
601
601
|
var rt = {}, ft = [], _t = (
|
|
602
602
|
/** @class */
|
|
603
603
|
(function() {
|
|
604
|
-
function
|
|
604
|
+
function Bt(Tt, Ot, zt) {
|
|
605
605
|
this._index = 0, this._keys = Tt, this._values = Ot, this._selector = zt;
|
|
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 Tt = this._index;
|
|
613
613
|
if (Tt >= 0 && Tt < this._keys.length) {
|
|
614
614
|
var Ot = this._selector(this._keys[Tt], this._values[Tt]);
|
|
615
615
|
return Tt + 1 >= this._keys.length ? (this._index = -1, this._keys = ft, this._values = ft) : this._index++, { value: Ot, done: !1 };
|
|
616
616
|
}
|
|
617
617
|
return { value: void 0, done: !0 };
|
|
618
|
-
},
|
|
618
|
+
}, Bt.prototype.throw = function(Tt) {
|
|
619
619
|
throw this._index >= 0 && (this._index = -1, this._keys = ft, this._values = ft), Tt;
|
|
620
|
-
},
|
|
620
|
+
}, Bt.prototype.return = function(Tt) {
|
|
621
621
|
return this._index >= 0 && (this._index = -1, this._keys = ft, this._values = ft), { value: Tt, done: !0 };
|
|
622
|
-
},
|
|
622
|
+
}, Bt;
|
|
623
623
|
})()
|
|
624
624
|
), St = (
|
|
625
625
|
/** @class */
|
|
626
626
|
(function() {
|
|
627
|
-
function
|
|
627
|
+
function Bt() {
|
|
628
628
|
this._keys = [], this._values = [], this._cacheKey = rt, 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(Tt) {
|
|
637
637
|
return this._find(
|
|
638
638
|
Tt,
|
|
639
639
|
/*insert*/
|
|
640
640
|
!1
|
|
641
641
|
) >= 0;
|
|
642
|
-
},
|
|
642
|
+
}, Bt.prototype.get = function(Tt) {
|
|
643
643
|
var Ot = this._find(
|
|
644
644
|
Tt,
|
|
645
645
|
/*insert*/
|
|
646
646
|
!1
|
|
647
647
|
);
|
|
648
648
|
return Ot >= 0 ? this._values[Ot] : void 0;
|
|
649
|
-
},
|
|
649
|
+
}, Bt.prototype.set = function(Tt, Ot) {
|
|
650
650
|
var zt = this._find(
|
|
651
651
|
Tt,
|
|
652
652
|
/*insert*/
|
|
653
653
|
!0
|
|
654
654
|
);
|
|
655
655
|
return this._values[zt] = Ot, this;
|
|
656
|
-
},
|
|
656
|
+
}, Bt.prototype.delete = function(Tt) {
|
|
657
657
|
var Ot = this._find(
|
|
658
658
|
Tt,
|
|
659
659
|
/*insert*/
|
|
@@ -665,19 +665,19 @@ function require_Reflect() {
|
|
|
665
665
|
return this._keys.length--, this._values.length--, ns(Tt, this._cacheKey) && (this._cacheKey = rt, 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 = rt, this._cacheIndex = -2;
|
|
670
|
-
},
|
|
670
|
+
}, Bt.prototype.keys = function() {
|
|
671
671
|
return new _t(this._keys, this._values, It);
|
|
672
|
-
},
|
|
672
|
+
}, Bt.prototype.values = function() {
|
|
673
673
|
return new _t(this._keys, this._values, os);
|
|
674
|
-
},
|
|
674
|
+
}, Bt.prototype.entries = function() {
|
|
675
675
|
return new _t(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(Tt, Ot) {
|
|
681
681
|
if (!ns(this._cacheKey, Tt)) {
|
|
682
682
|
this._cacheIndex = -1;
|
|
683
683
|
for (var zt = 0; zt < this._keys.length; zt++)
|
|
@@ -687,18 +687,18 @@ function require_Reflect() {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
return this._cacheIndex < 0 && Ot && (this._cacheIndex = this._keys.length, this._keys.push(Tt), this._values.push(void 0)), this._cacheIndex;
|
|
690
|
-
},
|
|
690
|
+
}, Bt;
|
|
691
691
|
})()
|
|
692
692
|
);
|
|
693
693
|
return St;
|
|
694
|
-
function It(
|
|
695
|
-
return
|
|
694
|
+
function It(Bt, Tt) {
|
|
695
|
+
return Bt;
|
|
696
696
|
}
|
|
697
|
-
function os(
|
|
697
|
+
function os(Bt, Tt) {
|
|
698
698
|
return Tt;
|
|
699
699
|
}
|
|
700
|
-
function ds(
|
|
701
|
-
return [
|
|
700
|
+
function ds(Bt, Tt) {
|
|
701
|
+
return [Bt, Tt];
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
function Cs() {
|
|
@@ -781,7 +781,7 @@ function require_Reflect() {
|
|
|
781
781
|
function St() {
|
|
782
782
|
var Tt;
|
|
783
783
|
do
|
|
784
|
-
Tt = "@@WeakMap@@" +
|
|
784
|
+
Tt = "@@WeakMap@@" + Bt();
|
|
785
785
|
while (fe.has(ft, Tt));
|
|
786
786
|
return ft[Tt] = !0, Tt;
|
|
787
787
|
}
|
|
@@ -805,7 +805,7 @@ function require_Reflect() {
|
|
|
805
805
|
}
|
|
806
806
|
return os(new Array(Tt), Tt);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Bt() {
|
|
809
809
|
var Tt = ds(rt);
|
|
810
810
|
Tt[6] = Tt[6] & 79 | 64, Tt[8] = Tt[8] & 191 | 128;
|
|
811
811
|
for (var Ot = "", zt = 0; zt < rt; ++zt) {
|
|
@@ -4724,7 +4724,7 @@ const resolveConfig = (te) => {
|
|
|
4724
4724
|
onUploadProgress: Le,
|
|
4725
4725
|
responseType: ze,
|
|
4726
4726
|
headers: Fe,
|
|
4727
|
-
withCredentials:
|
|
4727
|
+
withCredentials: je = "same-origin",
|
|
4728
4728
|
fetchOptions: Pe
|
|
4729
4729
|
} = resolveConfig(ve), Oe = J || fetch;
|
|
4730
4730
|
ze = ze ? (ze + "").toLowerCase() : "text";
|
|
@@ -4741,14 +4741,14 @@ const resolveConfig = (te) => {
|
|
|
4741
4741
|
duplex: "half"
|
|
4742
4742
|
}), We;
|
|
4743
4743
|
if (utils$1.isFormData(ye) && (We = Me.headers.get("content-type")) && Fe.setContentType(We), Me.body) {
|
|
4744
|
-
const [
|
|
4744
|
+
const [Be, Xe] = progressEventDecorator(
|
|
4745
4745
|
Ge,
|
|
4746
4746
|
progressEventReducer(asyncDecorator(Le))
|
|
4747
4747
|
);
|
|
4748
|
-
ye = trackStream(Me.body, DEFAULT_CHUNK_SIZE,
|
|
4748
|
+
ye = trackStream(Me.body, DEFAULT_CHUNK_SIZE, Be, Xe);
|
|
4749
4749
|
}
|
|
4750
4750
|
}
|
|
4751
|
-
utils$1.isString(
|
|
4751
|
+
utils$1.isString(je) || (je = je ? "include" : "omit");
|
|
4752
4752
|
const Ze = oe && "credentials" in X.prototype, Ke = {
|
|
4753
4753
|
...Pe,
|
|
4754
4754
|
signal: qe,
|
|
@@ -4756,7 +4756,7 @@ const resolveConfig = (te) => {
|
|
|
4756
4756
|
headers: Fe.normalize().toJSON(),
|
|
4757
4757
|
body: ye,
|
|
4758
4758
|
duplex: "half",
|
|
4759
|
-
credentials: Ze ?
|
|
4759
|
+
credentials: Ze ? je : void 0
|
|
4760
4760
|
};
|
|
4761
4761
|
Ie = oe && new X(me, Ke);
|
|
4762
4762
|
let bt = await (oe ? Oe(Ie, Pe) : Oe(me, Ke));
|
|
@@ -4766,12 +4766,12 @@ const resolveConfig = (te) => {
|
|
|
4766
4766
|
["status", "statusText", "headers"].forEach((tt) => {
|
|
4767
4767
|
Me[tt] = bt[tt];
|
|
4768
4768
|
});
|
|
4769
|
-
const We = utils$1.toFiniteNumber(bt.headers.get("content-length")), [
|
|
4769
|
+
const We = utils$1.toFiniteNumber(bt.headers.get("content-length")), [Be, Xe] = Ae && progressEventDecorator(
|
|
4770
4770
|
We,
|
|
4771
4771
|
progressEventReducer(asyncDecorator(Ae), !0)
|
|
4772
4772
|
) || [];
|
|
4773
4773
|
bt = new re(
|
|
4774
|
-
trackStream(bt.body, DEFAULT_CHUNK_SIZE,
|
|
4774
|
+
trackStream(bt.body, DEFAULT_CHUNK_SIZE, Be, () => {
|
|
4775
4775
|
Xe && Xe(), Ne && Ne();
|
|
4776
4776
|
}),
|
|
4777
4777
|
Me
|
|
@@ -5496,10 +5496,10 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5496
5496
|
}
|
|
5497
5497
|
}, [ue, J]);
|
|
5498
5498
|
const ze = (Ie) => {
|
|
5499
|
-
|
|
5499
|
+
je(ge, Ie);
|
|
5500
5500
|
}, Fe = (Ie) => {
|
|
5501
|
-
|
|
5502
|
-
},
|
|
5501
|
+
je(Ie, !0);
|
|
5502
|
+
}, je = (Ie, Ne) => {
|
|
5503
5503
|
setTimeout(() => {
|
|
5504
5504
|
oe({
|
|
5505
5505
|
result: Ne ? Ie : void 0,
|
|
@@ -5841,7 +5841,7 @@ function peg$parse(te, J) {
|
|
|
5841
5841
|
return __assign$4({ type: TYPE.argument, value: De }, ys());
|
|
5842
5842
|
}, _e = gs("numberSkeletonId"), ye = /^['\/{}]/, Ce = $s(["'", "/", "{", "}"], !1, !1), Se = Li(), we = gs("numberSkeletonTokenOption"), Ae = "/", Le = hs("/", !1), ze = function(De) {
|
|
5843
5843
|
return De;
|
|
5844
|
-
}, Fe = gs("numberSkeletonToken"),
|
|
5844
|
+
}, Fe = gs("numberSkeletonToken"), je = function(De, Ve) {
|
|
5845
5845
|
return { stem: De, options: Ve };
|
|
5846
5846
|
}, Pe = function(De) {
|
|
5847
5847
|
return __assign$4({ type: 0, tokens: De }, ys());
|
|
@@ -5853,7 +5853,7 @@ function peg$parse(te, J) {
|
|
|
5853
5853
|
return _s.pop(), De.replace(/\s*$/, "");
|
|
5854
5854
|
}, Ze = ",", Ke = hs(",", !1), bt = "number", Je = hs("number", !1), Ye = function(De, Ve, it) {
|
|
5855
5855
|
return __assign$4({ type: Ve === "number" ? TYPE.number : Ve === "date" ? TYPE.date : TYPE.time, style: it && it[2], value: De }, ys());
|
|
5856
|
-
}, Me = "'", We = hs("'", !1),
|
|
5856
|
+
}, Me = "'", We = hs("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), tt = /^[^a-zA-Z'{}]/, Ue = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Qe = /^[a-zA-Z]/, nt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(De) {
|
|
5857
5857
|
return __assign$4({ type: 1, pattern: De }, ys());
|
|
5858
5858
|
}, yt = function() {
|
|
5859
5859
|
return _s.push("dateOrTimeArgStyle"), !0;
|
|
@@ -5887,9 +5887,9 @@ function peg$parse(te, J) {
|
|
|
5887
5887
|
id: De,
|
|
5888
5888
|
value: Ve
|
|
5889
5889
|
}, ys());
|
|
5890
|
-
}, ps = gs("whitespace"), rt = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ft = $s([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), _t = gs("syntax pattern"), St = /^[!-\/:-@[-\^`{-~\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]/, It = $s([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), os = gs("optional whitespace"), ds = gs("number"),
|
|
5890
|
+
}, ps = gs("whitespace"), rt = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ft = $s([[" ", "\r"], " ", "
", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), _t = gs("syntax pattern"), St = /^[!-\/:-@[-\^`{-~\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]/, It = $s([["!", "/"], [":", "@"], ["[", "^"], "`", ["{", "~"], ["¡", "§"], "©", "«", "¬", "®", "°", "±", "¶", "»", "¿", "×", "÷", ["‐", "‧"], ["‰", "‾"], ["⁁", "⁓"], ["⁕", "⁞"], ["←", ""], ["─", "❵"], ["➔", "⯿"], ["⸀", ""], ["、", "〃"], ["〈", "〠"], "〰", "﴾", "﴿", "﹅", "﹆"], !1, !1), os = gs("optional whitespace"), ds = gs("number"), Bt = "-", Tt = hs("-", !1), Ot = function(De, Ve) {
|
|
5891
5891
|
return Ve ? De ? -Ve : Ve : 0;
|
|
5892
|
-
}, zt = gs("double apostrophes"), Dt = "''",
|
|
5892
|
+
}, zt = gs("double apostrophes"), Dt = "''", jt = hs("''", !1), es = function() {
|
|
5893
5893
|
return "'";
|
|
5894
5894
|
}, as = function(De, Ve) {
|
|
5895
5895
|
return De + Ve.replace("''", "'");
|
|
@@ -5982,7 +5982,7 @@ function peg$parse(te, J) {
|
|
|
5982
5982
|
}
|
|
5983
5983
|
function li() {
|
|
5984
5984
|
var De;
|
|
5985
|
-
return De = Ni(), De === X && (De =
|
|
5985
|
+
return De = Ni(), De === X && (De = Bi(), De === X && (De = Ki(), De === X && (De = Qi(), De === X && (De = Ji(), De === X && (De = ji()))))), De;
|
|
5986
5986
|
}
|
|
5987
5987
|
function Ls() {
|
|
5988
5988
|
var De, Ve, it;
|
|
@@ -5997,11 +5997,11 @@ function peg$parse(te, J) {
|
|
|
5997
5997
|
var De, Ve;
|
|
5998
5998
|
return De = He, Ve = Ls(), Ve !== X && (Zt = De, Ve = de(Ve)), De = Ve, De;
|
|
5999
5999
|
}
|
|
6000
|
-
function
|
|
6000
|
+
function ji() {
|
|
6001
6001
|
var De, Ve;
|
|
6002
6002
|
return De = He, te.charCodeAt(He) === 35 ? (Ve = ce, He++) : (Ve = X, wt === 0 && Et(ue)), Ve !== X && (Zt = De, Ve = he()), De = Ve, De;
|
|
6003
6003
|
}
|
|
6004
|
-
function
|
|
6004
|
+
function Bi() {
|
|
6005
6005
|
var De, Ve, it, gt, xt, Lt;
|
|
6006
6006
|
return wt++, De = He, te.charCodeAt(He) === 123 ? (Ve = fe, He++) : (Ve = X, wt === 0 && Et(be)), Ve !== X ? (it = Wt(), it !== X ? (gt = Ss(), gt !== X ? (xt = Wt(), xt !== X ? (te.charCodeAt(He) === 125 ? (Lt = ge, He++) : (Lt = X, wt === 0 && Et(ve)), Lt !== X ? (Zt = De, Ve = me(gt), De = Ve) : (He = De, De = X)) : (He = De, De = X)) : (He = De, De = X)) : (He = De, De = X)) : (He = De, De = X), wt--, De === X && (Ve = X, wt === 0 && Et(pe)), De;
|
|
6007
6007
|
}
|
|
@@ -6024,7 +6024,7 @@ function peg$parse(te, J) {
|
|
|
6024
6024
|
if (it = di(), it !== X) {
|
|
6025
6025
|
for (gt = [], xt = ci(); xt !== X; )
|
|
6026
6026
|
gt.push(xt), xt = ci();
|
|
6027
|
-
gt !== X ? (Zt = De, Ve =
|
|
6027
|
+
gt !== X ? (Zt = De, Ve = je(it, gt), De = Ve) : (He = De, De = X);
|
|
6028
6028
|
} else
|
|
6029
6029
|
He = De, De = X;
|
|
6030
6030
|
else
|
|
@@ -6051,9 +6051,9 @@ function peg$parse(te, J) {
|
|
|
6051
6051
|
function hi() {
|
|
6052
6052
|
var De, Ve, it, gt;
|
|
6053
6053
|
if (De = He, te.charCodeAt(He) === 39 ? (Ve = Me, He++) : (Ve = X, wt === 0 && Et(We)), Ve !== X) {
|
|
6054
|
-
if (it = [], gt = ks(), gt === X && (
|
|
6054
|
+
if (it = [], gt = ks(), gt === X && (Be.test(te.charAt(He)) ? (gt = te.charAt(He), He++) : (gt = X, wt === 0 && Et(Xe))), gt !== X)
|
|
6055
6055
|
for (; gt !== X; )
|
|
6056
|
-
it.push(gt), gt = ks(), gt === X && (
|
|
6056
|
+
it.push(gt), gt = ks(), gt === X && (Be.test(te.charAt(He)) ? (gt = te.charAt(He), He++) : (gt = X, wt === 0 && Et(Xe)));
|
|
6057
6057
|
else
|
|
6058
6058
|
it = X;
|
|
6059
6059
|
it !== X ? (te.charCodeAt(He) === 39 ? (gt = Me, He++) : (gt = X, wt === 0 && Et(We)), gt !== X ? (Ve = [Ve, it, gt], De = Ve) : (He = De, De = X)) : (He = De, De = X);
|
|
@@ -6211,18 +6211,18 @@ function peg$parse(te, J) {
|
|
|
6211
6211
|
}
|
|
6212
6212
|
function mi() {
|
|
6213
6213
|
var De, Ve, it;
|
|
6214
|
-
return wt++, De = He, te.charCodeAt(He) === 45 ? (Ve =
|
|
6214
|
+
return wt++, De = He, te.charCodeAt(He) === 45 ? (Ve = Bt, He++) : (Ve = X, wt === 0 && Et(Tt)), Ve === X && (Ve = null), Ve !== X ? (it = yi(), it !== X ? (Zt = De, Ve = Ot(Ve, it), De = Ve) : (He = De, De = X)) : (He = De, De = X), wt--, De === X && (Ve = X, wt === 0 && Et(ds)), De;
|
|
6215
6215
|
}
|
|
6216
6216
|
function ks() {
|
|
6217
6217
|
var De, Ve;
|
|
6218
|
-
return wt++, De = He, te.substr(He, 2) === Dt ? (Ve = Dt, He += 2) : (Ve = X, wt === 0 && Et(
|
|
6218
|
+
return wt++, De = He, te.substr(He, 2) === Dt ? (Ve = Dt, He += 2) : (Ve = X, wt === 0 && Et(jt)), Ve !== X && (Zt = De, Ve = es()), De = Ve, wt--, De === X && (Ve = X, wt === 0 && Et(zt)), De;
|
|
6219
6219
|
}
|
|
6220
6220
|
function vi() {
|
|
6221
6221
|
var De, Ve, it, gt, xt, Lt;
|
|
6222
6222
|
if (De = He, te.charCodeAt(He) === 39 ? (Ve = Me, He++) : (Ve = X, wt === 0 && Et(We)), Ve !== X)
|
|
6223
6223
|
if (it = sr(), it !== X) {
|
|
6224
|
-
for (gt = He, xt = [], te.substr(He, 2) === Dt ? (Lt = Dt, He += 2) : (Lt = X, wt === 0 && Et(
|
|
6225
|
-
xt.push(Lt), te.substr(He, 2) === Dt ? (Lt = Dt, He += 2) : (Lt = X, wt === 0 && Et(
|
|
6224
|
+
for (gt = He, xt = [], te.substr(He, 2) === Dt ? (Lt = Dt, He += 2) : (Lt = X, wt === 0 && Et(jt)), Lt === X && (Be.test(te.charAt(He)) ? (Lt = te.charAt(He), He++) : (Lt = X, wt === 0 && Et(Xe))); Lt !== X; )
|
|
6225
|
+
xt.push(Lt), te.substr(He, 2) === Dt ? (Lt = Dt, He += 2) : (Lt = X, wt === 0 && Et(jt)), Lt === X && (Be.test(te.charAt(He)) ? (Lt = te.charAt(He), He++) : (Lt = X, wt === 0 && Et(Xe)));
|
|
6226
6226
|
xt !== X ? gt = te.substring(gt, He) : gt = xt, gt !== X ? (te.charCodeAt(He) === 39 ? (xt = Me, He++) : (xt = X, wt === 0 && Et(We)), xt === X && (xt = null), xt !== X ? (Zt = De, Ve = as(it, gt), De = Ve) : (He = De, De = X)) : (He = De, De = X);
|
|
6227
6227
|
} else
|
|
6228
6228
|
He = De, De = X;
|
|
@@ -9443,7 +9443,7 @@ var __defProp$n = Object.defineProperty, __decorateClass$u = (te, J, X, re) => {
|
|
|
9443
9443
|
(de = te[oe]) && (ne = de(J, X, ne) || ne);
|
|
9444
9444
|
return ne && __defProp$n(J, X, ne), ne;
|
|
9445
9445
|
};
|
|
9446
|
-
const
|
|
9446
|
+
const js = class js extends h$o {
|
|
9447
9447
|
constructor() {
|
|
9448
9448
|
super(...arguments), this.activePdfs = [];
|
|
9449
9449
|
}
|
|
@@ -9465,10 +9465,10 @@ const Bs = class Bs extends h$o {
|
|
|
9465
9465
|
X && window.open(X);
|
|
9466
9466
|
}
|
|
9467
9467
|
};
|
|
9468
|
-
|
|
9468
|
+
js.styles = i$D`
|
|
9469
9469
|
${r$H(styles$l)}
|
|
9470
9470
|
`;
|
|
9471
|
-
let PdfSelector =
|
|
9471
|
+
let PdfSelector = js;
|
|
9472
9472
|
__decorateClass$u([
|
|
9473
9473
|
n$z({ type: Array })
|
|
9474
9474
|
], PdfSelector.prototype, "pdfList");
|
|
@@ -9515,15 +9515,15 @@ const createPdfViewerManager = (te, J) => new PdfViewerManager(te, J), styles$k
|
|
|
9515
9515
|
)}
|
|
9516
9516
|
</div>
|
|
9517
9517
|
</div>
|
|
9518
|
-
`,
|
|
9518
|
+
`, Bs = class Bs extends h$o {
|
|
9519
9519
|
render() {
|
|
9520
9520
|
return ke$1`${template$m(this)}`;
|
|
9521
9521
|
}
|
|
9522
9522
|
};
|
|
9523
|
-
|
|
9523
|
+
Bs.styles = i$D`
|
|
9524
9524
|
${r$H(styles$k)}
|
|
9525
9525
|
`;
|
|
9526
|
-
let PluginBusyList =
|
|
9526
|
+
let PluginBusyList = Bs;
|
|
9527
9527
|
class PluginBusyManagerImpl {
|
|
9528
9528
|
constructor() {
|
|
9529
9529
|
this.tasks = [], customElements.get("plugin-busy-list") || t$k("plugin-busy-list")(PluginBusyList);
|
|
@@ -9719,7 +9719,17 @@ class UserManagerImpl {
|
|
|
9719
9719
|
console.error("Error decoding JWT token:", re);
|
|
9720
9720
|
return;
|
|
9721
9721
|
}
|
|
9722
|
-
}, this.isUserRoleAdministrative = () => this.getRole() === "ADM"
|
|
9722
|
+
}, this.isUserRoleAdministrative = () => this.getRole() === "ADM", this.getFullName = () => {
|
|
9723
|
+
const X = this.tokenManager.getToken();
|
|
9724
|
+
if (X)
|
|
9725
|
+
try {
|
|
9726
|
+
const re = jwtDecode(X), ne = re.access_info?.trace_user_given_name, oe = re.access_info?.trace_user_family_name;
|
|
9727
|
+
return !ne && !oe ? void 0 : [oe, ne].filter(Boolean).join(" ");
|
|
9728
|
+
} catch (re) {
|
|
9729
|
+
console.error("Error decoding JWT token:", re);
|
|
9730
|
+
return;
|
|
9731
|
+
}
|
|
9732
|
+
};
|
|
9723
9733
|
}
|
|
9724
9734
|
}
|
|
9725
9735
|
let userManager$1;
|
|
@@ -9731,7 +9741,7 @@ class ImportDataManagerImpl {
|
|
|
9731
9741
|
async import(J) {
|
|
9732
9742
|
this.currentImporterId = J, this.selectedItems = {}, this.pluginTexts = {};
|
|
9733
9743
|
try {
|
|
9734
|
-
const { ImportDataManagerModal: X } = await import("./component-
|
|
9744
|
+
const { ImportDataManagerModal: X } = await import("./component-B25VrLkq.js"), { confirmed: re } = await this.interactionService.confirm(
|
|
9735
9745
|
void 0,
|
|
9736
9746
|
{ component: X },
|
|
9737
9747
|
{
|
|
@@ -10827,8 +10837,8 @@ function buildCreateSlice({
|
|
|
10827
10837
|
const ze = getOrInsertComputed(be, Se, () => /* @__PURE__ */ new WeakMap());
|
|
10828
10838
|
return getOrInsertComputed(ze, Le, () => {
|
|
10829
10839
|
const Fe = {};
|
|
10830
|
-
for (const [
|
|
10831
|
-
Fe[
|
|
10840
|
+
for (const [je, Pe] of Object.entries(re.selectors ?? {}))
|
|
10841
|
+
Fe[je] = wrapSelector(Pe, Le, me, Se);
|
|
10832
10842
|
return Fe;
|
|
10833
10843
|
});
|
|
10834
10844
|
}
|
|
@@ -17466,11 +17476,11 @@ function mapToStyles(te) {
|
|
|
17466
17476
|
var Le = getOffsetParent(X), ze = "clientHeight", Fe = "clientWidth";
|
|
17467
17477
|
if (Le === getWindow(X) && (Le = getDocumentElement(X), getComputedStyle(Le).position !== "static" && ce === "absolute" && (ze = "scrollHeight", Fe = "scrollWidth")), Le = Le, ne === top || (ne === left || ne === right) && oe === end) {
|
|
17468
17478
|
we = bottom;
|
|
17469
|
-
var
|
|
17479
|
+
var je = fe && Le === Ae && Ae.visualViewport ? Ae.visualViewport.height : (
|
|
17470
17480
|
// $FlowFixMe[prop-missing]
|
|
17471
17481
|
Le[ze]
|
|
17472
17482
|
);
|
|
17473
|
-
me -=
|
|
17483
|
+
me -= je - re.height, me *= ue ? 1 : -1;
|
|
17474
17484
|
}
|
|
17475
17485
|
if (ne === left || (ne === top || ne === bottom) && oe === end) {
|
|
17476
17486
|
Se = right;
|
|
@@ -17698,11 +17708,11 @@ function detectOverflow(te, J) {
|
|
|
17698
17708
|
reference: Le,
|
|
17699
17709
|
element: Se,
|
|
17700
17710
|
placement: ne
|
|
17701
|
-
}), Fe = rectToClientRect(Object.assign({}, Se, ze)),
|
|
17702
|
-
top: Ae.top -
|
|
17703
|
-
bottom:
|
|
17704
|
-
left: Ae.left -
|
|
17705
|
-
right:
|
|
17711
|
+
}), Fe = rectToClientRect(Object.assign({}, Se, ze)), je = be === popper ? Fe : Le, Pe = {
|
|
17712
|
+
top: Ae.top - je.top + ye.top,
|
|
17713
|
+
bottom: je.bottom - Ae.bottom + ye.bottom,
|
|
17714
|
+
left: Ae.left - je.left + ye.left,
|
|
17715
|
+
right: je.right - Ae.right + ye.right
|
|
17706
17716
|
}, Oe = te.modifiersData.offset;
|
|
17707
17717
|
if (be === popper && Oe) {
|
|
17708
17718
|
var qe = Oe[ne];
|
|
@@ -17751,7 +17761,7 @@ function flip(te) {
|
|
|
17751
17761
|
flipVariations: ve,
|
|
17752
17762
|
allowedAutoPlacements: me
|
|
17753
17763
|
}) : tt);
|
|
17754
|
-
}, []), Ae = J.rects.reference, Le = J.rects.popper, ze = /* @__PURE__ */ new Map(), Fe = !0,
|
|
17764
|
+
}, []), Ae = J.rects.reference, Le = J.rects.popper, ze = /* @__PURE__ */ new Map(), Fe = !0, je = we[0], Pe = 0; Pe < we.length; Pe++) {
|
|
17755
17765
|
var Oe = we[Pe], qe = getBasePlacement(Oe), Ie = getVariation(Oe) === start, Ne = [top, bottom].indexOf(qe) >= 0, Ge = Ne ? "width" : "height", Ze = detectOverflow(J, {
|
|
17756
17766
|
placement: Oe,
|
|
17757
17767
|
boundary: pe,
|
|
@@ -17764,7 +17774,7 @@ function flip(te) {
|
|
|
17764
17774
|
if (oe && Je.push(Ze[qe] <= 0), ce && Je.push(Ze[Ke] <= 0, Ze[bt] <= 0), Je.every(function(Xe) {
|
|
17765
17775
|
return Xe;
|
|
17766
17776
|
})) {
|
|
17767
|
-
|
|
17777
|
+
je = Oe, Fe = !1;
|
|
17768
17778
|
break;
|
|
17769
17779
|
}
|
|
17770
17780
|
ze.set(Oe, Je);
|
|
@@ -17779,12 +17789,12 @@ function flip(te) {
|
|
|
17779
17789
|
});
|
|
17780
17790
|
});
|
|
17781
17791
|
if (Ue)
|
|
17782
|
-
return
|
|
17792
|
+
return je = Ue, "break";
|
|
17783
17793
|
}, We = Ye; We > 0; We--) {
|
|
17784
|
-
var
|
|
17785
|
-
if (
|
|
17794
|
+
var Be = Me(We);
|
|
17795
|
+
if (Be === "break") break;
|
|
17786
17796
|
}
|
|
17787
|
-
J.placement !==
|
|
17797
|
+
J.placement !== je && (J.modifiersData[re]._skip = !0, J.placement = je, J.reset = !0);
|
|
17788
17798
|
}
|
|
17789
17799
|
}
|
|
17790
17800
|
const flip$1 = {
|
|
@@ -17885,21 +17895,21 @@ function preventOverflow(te) {
|
|
|
17885
17895
|
rootBoundary: he,
|
|
17886
17896
|
padding: fe,
|
|
17887
17897
|
altBoundary: pe
|
|
17888
|
-
}), ye = getBasePlacement(J.placement), Ce = getVariation(J.placement), Se = !Ce, we = getMainAxisFromPlacement(ye), Ae = getAltAxis(we), Le = J.modifiersData.popperOffsets, ze = J.rects.reference, Fe = J.rects.popper,
|
|
17898
|
+
}), ye = getBasePlacement(J.placement), Ce = getVariation(J.placement), Se = !Ce, we = getMainAxisFromPlacement(ye), Ae = getAltAxis(we), Le = J.modifiersData.popperOffsets, ze = J.rects.reference, Fe = J.rects.popper, je = typeof me == "function" ? me(Object.assign({}, J.rects, {
|
|
17889
17899
|
placement: J.placement
|
|
17890
|
-
})) : me, Pe = typeof
|
|
17891
|
-
mainAxis:
|
|
17892
|
-
altAxis:
|
|
17900
|
+
})) : me, Pe = typeof je == "number" ? {
|
|
17901
|
+
mainAxis: je,
|
|
17902
|
+
altAxis: je
|
|
17893
17903
|
} : Object.assign({
|
|
17894
17904
|
mainAxis: 0,
|
|
17895
17905
|
altAxis: 0
|
|
17896
|
-
},
|
|
17906
|
+
}, je), Oe = J.modifiersData.offset ? J.modifiersData.offset[J.placement] : null, qe = {
|
|
17897
17907
|
x: 0,
|
|
17898
17908
|
y: 0
|
|
17899
17909
|
};
|
|
17900
17910
|
if (Le) {
|
|
17901
17911
|
if (oe) {
|
|
17902
|
-
var Ie, Ne = we === "y" ? top : left, Ge = we === "y" ? bottom : right, Ze = we === "y" ? "height" : "width", Ke = Le[we], bt = Ke + _e[Ne], Je = Ke - _e[Ge], Ye = ge ? -Fe[Ze] / 2 : 0, Me = Ce === start ? ze[Ze] : Fe[Ze], We = Ce === start ? -Fe[Ze] : -ze[Ze],
|
|
17912
|
+
var Ie, Ne = we === "y" ? top : left, Ge = we === "y" ? bottom : right, Ze = we === "y" ? "height" : "width", Ke = Le[we], bt = Ke + _e[Ne], Je = Ke - _e[Ge], Ye = ge ? -Fe[Ze] / 2 : 0, Me = Ce === start ? ze[Ze] : Fe[Ze], We = Ce === start ? -Fe[Ze] : -ze[Ze], Be = J.elements.arrow, Xe = ge && Be ? getLayoutRect(Be) : {
|
|
17903
17913
|
width: 0,
|
|
17904
17914
|
height: 0
|
|
17905
17915
|
}, tt = J.modifiersData["arrow#persistent"] ? J.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ue = tt[Ne], Qe = tt[Ge], nt = within(0, ze[Ze], Xe[Ze]), ot = Se ? ze[Ze] / 2 - Ye - nt - Ue - Pe.mainAxis : Me - nt - Ue - Pe.mainAxis, yt = Se ? -ze[Ze] / 2 + Ye + nt + Qe + Pe.mainAxis : We + nt + Qe + Pe.mainAxis, Ct = J.elements.arrow && getOffsetParent(J.elements.arrow), Pt = Ct ? we === "y" ? Ct.clientTop || 0 : Ct.clientLeft || 0 : 0, qt = (Ie = Oe?.[we]) != null ? Ie : 0, Nt = Ke + ot - qt - Pt, Ut = Ke + yt - qt, ns = within(ge ? min(bt, Nt) : bt, Ke, ge ? max(Je, Ut) : Je);
|
|
@@ -18059,11 +18069,11 @@ function popperGenerator(te) {
|
|
|
18059
18069
|
pe.reset = !1, we = -1;
|
|
18060
18070
|
continue;
|
|
18061
18071
|
}
|
|
18062
|
-
var Ae = pe.orderedModifiers[we], Le = Ae.fn, ze = Ae.options, Fe = ze === void 0 ? {} : ze,
|
|
18072
|
+
var Ae = pe.orderedModifiers[we], Le = Ae.fn, ze = Ae.options, Fe = ze === void 0 ? {} : ze, je = Ae.name;
|
|
18063
18073
|
typeof Le == "function" && (pe = Le({
|
|
18064
18074
|
state: pe,
|
|
18065
18075
|
options: Fe,
|
|
18066
|
-
name:
|
|
18076
|
+
name: je,
|
|
18067
18077
|
instance: ge
|
|
18068
18078
|
}) || pe);
|
|
18069
18079
|
}
|
|
@@ -21398,7 +21408,7 @@ l$o([
|
|
|
21398
21408
|
n$z(n$w)
|
|
21399
21409
|
], o$u.prototype, "jcef", 2);
|
|
21400
21410
|
const O$1 = er`dss-calendar${tr(f$o())}`, e$v = er`dss-icon${tr(f$o())}`, Z = (te) => {
|
|
21401
|
-
var J, X, re, ne, oe, de, ce, ue, he, pe, fe, be, ge, ve, me, _e, ye, Ce, Se, we, Ae, Le, ze, Fe,
|
|
21411
|
+
var J, X, re, ne, oe, de, ce, ue, he, pe, fe, be, ge, ve, me, _e, ye, Ce, Se, we, Ae, Le, ze, Fe, je, Pe, Oe, qe, Ie;
|
|
21402
21412
|
const Ne = {
|
|
21403
21413
|
"dss-datepicker-range--sm": te.inputSize !== "lg"
|
|
21404
21414
|
}, Ge = {
|
|
@@ -21435,7 +21445,7 @@ const O$1 = er`dss-calendar${tr(f$o())}`, e$v = er`dss-icon${tr(f$o())}`, Z = (t
|
|
|
21435
21445
|
}, Ye = {
|
|
21436
21446
|
"dss-calendar": !0,
|
|
21437
21447
|
"dss-calendar--visible": te._showCalendar && !((ze = te._inputRangeStart) != null && ze.readOnly) && !((Fe = te._inputRangeEnd) != null && Fe.readOnly),
|
|
21438
|
-
"dss-calendar--disabled": ((
|
|
21448
|
+
"dss-calendar--disabled": ((je = te._inputRangeStart) == null ? void 0 : je.disabled) && ((Pe = te._inputRangeEnd) == null ? void 0 : Pe.disabled),
|
|
21439
21449
|
"dss-calendar--sm": te.inputSize !== "lg"
|
|
21440
21450
|
};
|
|
21441
21451
|
return ke`
|
|
@@ -38199,7 +38209,7 @@ function requireQuill() {
|
|
|
38199
38209
|
value: function(Ne, Ge, Ze) {
|
|
38200
38210
|
if (typeof Ge == "string" && Ge.endsWith(`
|
|
38201
38211
|
`)) {
|
|
38202
|
-
var Ke = be.default.create(
|
|
38212
|
+
var Ke = be.default.create(je.blotName);
|
|
38203
38213
|
this.parent.insertBefore(Ke, Ne === 0 ? this : this.next), Ke.insertAt(0, Ge.slice(0, -1));
|
|
38204
38214
|
} else
|
|
38205
38215
|
de(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, Ne, Ge, Ze);
|
|
@@ -38207,7 +38217,7 @@ function requireQuill() {
|
|
|
38207
38217
|
}]), qe;
|
|
38208
38218
|
})(be.default.Embed);
|
|
38209
38219
|
Fe.scope = be.default.Scope.BLOCK_BLOT;
|
|
38210
|
-
var
|
|
38220
|
+
var je = (function(Oe) {
|
|
38211
38221
|
Le(qe, Oe);
|
|
38212
38222
|
function qe(Ie) {
|
|
38213
38223
|
we(this, qe);
|
|
@@ -38291,12 +38301,12 @@ function requireQuill() {
|
|
|
38291
38301
|
}
|
|
38292
38302
|
}]), qe;
|
|
38293
38303
|
})(be.default.Block);
|
|
38294
|
-
|
|
38304
|
+
je.blotName = "block", je.tagName = "P", je.defaultChild = "break", je.allowedChildren = [_e.default, be.default.Embed, Ce.default];
|
|
38295
38305
|
function Pe(Oe) {
|
|
38296
38306
|
var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
38297
38307
|
return Oe == null || (typeof Oe.formats == "function" && (qe = (0, ue.default)(qe, Oe.formats())), Oe.parent == null || Oe.parent.blotName == "scroll" || Oe.parent.statics.scope !== Oe.statics.scope) ? qe : Pe(Oe.parent, qe);
|
|
38298
38308
|
}
|
|
38299
|
-
re.bubbleFormats = Pe, re.BlockEmbed = Fe, re.default =
|
|
38309
|
+
re.bubbleFormats = Pe, re.BlockEmbed = Fe, re.default = je;
|
|
38300
38310
|
}),
|
|
38301
38311
|
/* 5 */
|
|
38302
38312
|
/***/
|
|
@@ -38310,15 +38320,15 @@ function requireQuill() {
|
|
|
38310
38320
|
return Je && typeof Symbol == "function" && Je.constructor === Symbol && Je !== Symbol.prototype ? "symbol" : typeof Je;
|
|
38311
38321
|
}, de = /* @__PURE__ */ (function() {
|
|
38312
38322
|
function Je(Ye, Me) {
|
|
38313
|
-
var We = [],
|
|
38323
|
+
var We = [], Be = !0, Xe = !1, tt = void 0;
|
|
38314
38324
|
try {
|
|
38315
|
-
for (var Ue = Ye[Symbol.iterator](), Qe; !(
|
|
38325
|
+
for (var Ue = Ye[Symbol.iterator](), Qe; !(Be = (Qe = Ue.next()).done) && (We.push(Qe.value), !(Me && We.length === Me)); Be = !0)
|
|
38316
38326
|
;
|
|
38317
38327
|
} catch (nt) {
|
|
38318
38328
|
Xe = !0, tt = nt;
|
|
38319
38329
|
} finally {
|
|
38320
38330
|
try {
|
|
38321
|
-
!
|
|
38331
|
+
!Be && Ue.return && Ue.return();
|
|
38322
38332
|
} finally {
|
|
38323
38333
|
if (Xe) throw tt;
|
|
38324
38334
|
}
|
|
@@ -38335,8 +38345,8 @@ function requireQuill() {
|
|
|
38335
38345
|
})(), ce = /* @__PURE__ */ (function() {
|
|
38336
38346
|
function Je(Ye, Me) {
|
|
38337
38347
|
for (var We = 0; We < Me.length; We++) {
|
|
38338
|
-
var
|
|
38339
|
-
|
|
38348
|
+
var Be = Me[We];
|
|
38349
|
+
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ye, Be.key, Be);
|
|
38340
38350
|
}
|
|
38341
38351
|
}
|
|
38342
38352
|
return function(Ye, Me, We) {
|
|
@@ -38344,7 +38354,7 @@ function requireQuill() {
|
|
|
38344
38354
|
};
|
|
38345
38355
|
})();
|
|
38346
38356
|
ne(51);
|
|
38347
|
-
var ue = ne(2), he = Pe(ue), pe = ne(14), fe = Pe(pe), be = ne(8), ge = Pe(be), ve = ne(9), me = Pe(ve), _e = ne(0), ye = Pe(_e), Ce = ne(15), Se = Pe(Ce), we = ne(3), Ae = Pe(we), Le = ne(10), ze = Pe(Le), Fe = ne(35),
|
|
38357
|
+
var ue = ne(2), he = Pe(ue), pe = ne(14), fe = Pe(pe), be = ne(8), ge = Pe(be), ve = ne(9), me = Pe(ve), _e = ne(0), ye = Pe(_e), Ce = ne(15), Se = Pe(Ce), we = ne(3), Ae = Pe(we), Le = ne(10), ze = Pe(Le), Fe = ne(35), je = Pe(Fe);
|
|
38348
38358
|
function Pe(Je) {
|
|
38349
38359
|
return Je && Je.__esModule ? Je : { default: Je };
|
|
38350
38360
|
}
|
|
@@ -38374,11 +38384,11 @@ function requireQuill() {
|
|
|
38374
38384
|
}, {
|
|
38375
38385
|
key: "register",
|
|
38376
38386
|
value: function(Me, We) {
|
|
38377
|
-
var
|
|
38387
|
+
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
38378
38388
|
if (typeof Me != "string") {
|
|
38379
38389
|
var tt = Me.attrName || Me.blotName;
|
|
38380
38390
|
typeof tt == "string" ? this.register("formats/" + tt, Me, We) : Object.keys(Me).forEach(function(Ue) {
|
|
38381
|
-
|
|
38391
|
+
Be.register(Ue, Me[Ue], We);
|
|
38382
38392
|
});
|
|
38383
38393
|
} else
|
|
38384
38394
|
this.imports[Me] != null && !Xe && Ie.warn("Overwriting " + Me + " with", We), this.imports[Me] = We, (Me.startsWith("blots/") || Me.startsWith("formats/")) && We.blotName !== "abstract" ? ye.default.register(We) : Me.startsWith("modules") && typeof We.register == "function" && We.register();
|
|
@@ -38389,7 +38399,7 @@ function requireQuill() {
|
|
|
38389
38399
|
if (qe(this, Je), this.options = Ge(Ye, We), this.container = this.options.container, this.container == null)
|
|
38390
38400
|
return Ie.error("Invalid Quill container", Ye);
|
|
38391
38401
|
this.options.debug && Je.debug(this.options.debug);
|
|
38392
|
-
var
|
|
38402
|
+
var Be = this.container.innerHTML.trim();
|
|
38393
38403
|
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, {
|
|
38394
38404
|
emitter: this.emitter,
|
|
38395
38405
|
whitelist: this.options.formats
|
|
@@ -38401,7 +38411,7 @@ function requireQuill() {
|
|
|
38401
38411
|
return Me.editor.update(null, Ue, nt);
|
|
38402
38412
|
}, tt);
|
|
38403
38413
|
});
|
|
38404
|
-
var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` +
|
|
38414
|
+
var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Be + "<p><br></p></div>");
|
|
38405
38415
|
this.setContents(Xe), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
38406
38416
|
}
|
|
38407
38417
|
return ce(Je, [{
|
|
@@ -38409,8 +38419,8 @@ function requireQuill() {
|
|
|
38409
38419
|
value: function(Me) {
|
|
38410
38420
|
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
38411
38421
|
if (typeof Me == "string") {
|
|
38412
|
-
var
|
|
38413
|
-
Me = document.createElement("div"), Me.classList.add(
|
|
38422
|
+
var Be = Me;
|
|
38423
|
+
Me = document.createElement("div"), Me.classList.add(Be);
|
|
38414
38424
|
}
|
|
38415
38425
|
return this.container.insertBefore(Me, We), Me;
|
|
38416
38426
|
}
|
|
@@ -38421,11 +38431,11 @@ function requireQuill() {
|
|
|
38421
38431
|
}
|
|
38422
38432
|
}, {
|
|
38423
38433
|
key: "deleteText",
|
|
38424
|
-
value: function(Me, We,
|
|
38425
|
-
var Xe = this, tt = Ke(Me, We,
|
|
38426
|
-
return Me = Ue[0], We = Ue[1],
|
|
38434
|
+
value: function(Me, We, Be) {
|
|
38435
|
+
var Xe = this, tt = Ke(Me, We, Be), Ue = de(tt, 4);
|
|
38436
|
+
return Me = Ue[0], We = Ue[1], Be = Ue[3], Ze.call(this, function() {
|
|
38427
38437
|
return Xe.editor.deleteText(Me, We);
|
|
38428
|
-
},
|
|
38438
|
+
}, Be, Me, -1 * We);
|
|
38429
38439
|
}
|
|
38430
38440
|
}, {
|
|
38431
38441
|
key: "disable",
|
|
@@ -38447,33 +38457,33 @@ function requireQuill() {
|
|
|
38447
38457
|
}, {
|
|
38448
38458
|
key: "format",
|
|
38449
38459
|
value: function(Me, We) {
|
|
38450
|
-
var
|
|
38460
|
+
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ge.default.sources.API;
|
|
38451
38461
|
return Ze.call(this, function() {
|
|
38452
|
-
var tt =
|
|
38462
|
+
var tt = Be.getSelection(!0), Ue = new he.default();
|
|
38453
38463
|
if (tt == null)
|
|
38454
38464
|
return Ue;
|
|
38455
38465
|
if (ye.default.query(Me, ye.default.Scope.BLOCK))
|
|
38456
|
-
Ue =
|
|
38466
|
+
Ue = Be.editor.formatLine(tt.index, tt.length, Oe({}, Me, We));
|
|
38457
38467
|
else {
|
|
38458
38468
|
if (tt.length === 0)
|
|
38459
|
-
return
|
|
38460
|
-
Ue =
|
|
38469
|
+
return Be.selection.format(Me, We), Ue;
|
|
38470
|
+
Ue = Be.editor.formatText(tt.index, tt.length, Oe({}, Me, We));
|
|
38461
38471
|
}
|
|
38462
|
-
return
|
|
38472
|
+
return Be.setSelection(tt, ge.default.sources.SILENT), Ue;
|
|
38463
38473
|
}, Xe);
|
|
38464
38474
|
}
|
|
38465
38475
|
}, {
|
|
38466
38476
|
key: "formatLine",
|
|
38467
|
-
value: function(Me, We,
|
|
38468
|
-
var Ue = this, Qe = void 0, nt = Ke(Me, We,
|
|
38477
|
+
value: function(Me, We, Be, Xe, tt) {
|
|
38478
|
+
var Ue = this, Qe = void 0, nt = Ke(Me, We, Be, Xe, tt), ot = de(nt, 4);
|
|
38469
38479
|
return Me = ot[0], We = ot[1], Qe = ot[2], tt = ot[3], Ze.call(this, function() {
|
|
38470
38480
|
return Ue.editor.formatLine(Me, We, Qe);
|
|
38471
38481
|
}, tt, Me, 0);
|
|
38472
38482
|
}
|
|
38473
38483
|
}, {
|
|
38474
38484
|
key: "formatText",
|
|
38475
|
-
value: function(Me, We,
|
|
38476
|
-
var Ue = this, Qe = void 0, nt = Ke(Me, We,
|
|
38485
|
+
value: function(Me, We, Be, Xe, tt) {
|
|
38486
|
+
var Ue = this, Qe = void 0, nt = Ke(Me, We, Be, Xe, tt), ot = de(nt, 4);
|
|
38477
38487
|
return Me = ot[0], We = ot[1], Qe = ot[2], tt = ot[3], Ze.call(this, function() {
|
|
38478
38488
|
return Ue.editor.formatText(Me, We, Qe);
|
|
38479
38489
|
}, tt, Me, 0);
|
|
@@ -38481,22 +38491,22 @@ function requireQuill() {
|
|
|
38481
38491
|
}, {
|
|
38482
38492
|
key: "getBounds",
|
|
38483
38493
|
value: function(Me) {
|
|
38484
|
-
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
38485
|
-
typeof Me == "number" ?
|
|
38494
|
+
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
|
|
38495
|
+
typeof Me == "number" ? Be = this.selection.getBounds(Me, We) : Be = this.selection.getBounds(Me.index, Me.length);
|
|
38486
38496
|
var Xe = this.container.getBoundingClientRect();
|
|
38487
38497
|
return {
|
|
38488
|
-
bottom:
|
|
38489
|
-
height:
|
|
38490
|
-
left:
|
|
38491
|
-
right:
|
|
38492
|
-
top:
|
|
38493
|
-
width:
|
|
38498
|
+
bottom: Be.bottom - Xe.top,
|
|
38499
|
+
height: Be.height,
|
|
38500
|
+
left: Be.left - Xe.left,
|
|
38501
|
+
right: Be.right - Xe.left,
|
|
38502
|
+
top: Be.top - Xe.top,
|
|
38503
|
+
width: Be.width
|
|
38494
38504
|
};
|
|
38495
38505
|
}
|
|
38496
38506
|
}, {
|
|
38497
38507
|
key: "getContents",
|
|
38498
38508
|
value: function() {
|
|
38499
|
-
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me,
|
|
38509
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Be = Ke(Me, We), Xe = de(Be, 2);
|
|
38500
38510
|
return Me = Xe[0], We = Xe[1], this.editor.getContents(Me, We);
|
|
38501
38511
|
}
|
|
38502
38512
|
}, {
|
|
@@ -38545,7 +38555,7 @@ function requireQuill() {
|
|
|
38545
38555
|
}, {
|
|
38546
38556
|
key: "getText",
|
|
38547
38557
|
value: function() {
|
|
38548
|
-
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me,
|
|
38558
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Be = Ke(Me, We), Xe = de(Be, 2);
|
|
38549
38559
|
return Me = Xe[0], We = Xe[1], this.editor.getText(Me, We);
|
|
38550
38560
|
}
|
|
38551
38561
|
}, {
|
|
@@ -38555,16 +38565,16 @@ function requireQuill() {
|
|
|
38555
38565
|
}
|
|
38556
38566
|
}, {
|
|
38557
38567
|
key: "insertEmbed",
|
|
38558
|
-
value: function(Me, We,
|
|
38568
|
+
value: function(Me, We, Be) {
|
|
38559
38569
|
var Xe = this, tt = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Je.sources.API;
|
|
38560
38570
|
return Ze.call(this, function() {
|
|
38561
|
-
return Xe.editor.insertEmbed(Me, We,
|
|
38571
|
+
return Xe.editor.insertEmbed(Me, We, Be);
|
|
38562
38572
|
}, tt, Me);
|
|
38563
38573
|
}
|
|
38564
38574
|
}, {
|
|
38565
38575
|
key: "insertText",
|
|
38566
|
-
value: function(Me, We,
|
|
38567
|
-
var Ue = this, Qe = void 0, nt = Ke(Me, 0,
|
|
38576
|
+
value: function(Me, We, Be, Xe, tt) {
|
|
38577
|
+
var Ue = this, Qe = void 0, nt = Ke(Me, 0, Be, Xe, tt), ot = de(nt, 4);
|
|
38568
38578
|
return Me = ot[0], Qe = ot[2], tt = ot[3], Ze.call(this, function() {
|
|
38569
38579
|
return Ue.editor.insertText(Me, We, Qe);
|
|
38570
38580
|
}, tt, Me, We.length);
|
|
@@ -38591,16 +38601,16 @@ function requireQuill() {
|
|
|
38591
38601
|
}
|
|
38592
38602
|
}, {
|
|
38593
38603
|
key: "pasteHTML",
|
|
38594
|
-
value: function(Me, We,
|
|
38595
|
-
this.clipboard.dangerouslyPasteHTML(Me, We,
|
|
38604
|
+
value: function(Me, We, Be) {
|
|
38605
|
+
this.clipboard.dangerouslyPasteHTML(Me, We, Be);
|
|
38596
38606
|
}
|
|
38597
38607
|
}, {
|
|
38598
38608
|
key: "removeFormat",
|
|
38599
|
-
value: function(Me, We,
|
|
38600
|
-
var Xe = this, tt = Ke(Me, We,
|
|
38601
|
-
return Me = Ue[0], We = Ue[1],
|
|
38609
|
+
value: function(Me, We, Be) {
|
|
38610
|
+
var Xe = this, tt = Ke(Me, We, Be), Ue = de(tt, 4);
|
|
38611
|
+
return Me = Ue[0], We = Ue[1], Be = Ue[3], Ze.call(this, function() {
|
|
38602
38612
|
return Xe.editor.removeFormat(Me, We);
|
|
38603
|
-
},
|
|
38613
|
+
}, Be, Me);
|
|
38604
38614
|
}
|
|
38605
38615
|
}, {
|
|
38606
38616
|
key: "scrollIntoView",
|
|
@@ -38610,7 +38620,7 @@ function requireQuill() {
|
|
|
38610
38620
|
}, {
|
|
38611
38621
|
key: "setContents",
|
|
38612
38622
|
value: function(Me) {
|
|
38613
|
-
var We = this,
|
|
38623
|
+
var We = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API;
|
|
38614
38624
|
return Ze.call(this, function() {
|
|
38615
38625
|
Me = new he.default(Me);
|
|
38616
38626
|
var Xe = We.getLength(), tt = We.editor.deleteText(0, Xe), Ue = We.editor.applyDelta(Me), Qe = Ue.ops[Ue.ops.length - 1];
|
|
@@ -38618,23 +38628,23 @@ function requireQuill() {
|
|
|
38618
38628
|
` && (We.editor.deleteText(We.getLength() - 1, 1), Ue.delete(1));
|
|
38619
38629
|
var nt = tt.compose(Ue);
|
|
38620
38630
|
return nt;
|
|
38621
|
-
},
|
|
38631
|
+
}, Be);
|
|
38622
38632
|
}
|
|
38623
38633
|
}, {
|
|
38624
38634
|
key: "setSelection",
|
|
38625
|
-
value: function(Me, We,
|
|
38635
|
+
value: function(Me, We, Be) {
|
|
38626
38636
|
if (Me == null)
|
|
38627
38637
|
this.selection.setRange(null, We || Je.sources.API);
|
|
38628
38638
|
else {
|
|
38629
|
-
var Xe = Ke(Me, We,
|
|
38630
|
-
Me = tt[0], We = tt[1],
|
|
38639
|
+
var Xe = Ke(Me, We, Be), tt = de(Xe, 4);
|
|
38640
|
+
Me = tt[0], We = tt[1], Be = tt[3], this.selection.setRange(new Ce.Range(Me, We), Be), Be !== ge.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
38631
38641
|
}
|
|
38632
38642
|
}
|
|
38633
38643
|
}, {
|
|
38634
38644
|
key: "setText",
|
|
38635
38645
|
value: function(Me) {
|
|
38636
|
-
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API,
|
|
38637
|
-
return this.setContents(
|
|
38646
|
+
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API, Be = new he.default().insert(Me);
|
|
38647
|
+
return this.setContents(Be, We);
|
|
38638
38648
|
}
|
|
38639
38649
|
}, {
|
|
38640
38650
|
key: "update",
|
|
@@ -38645,10 +38655,10 @@ function requireQuill() {
|
|
|
38645
38655
|
}, {
|
|
38646
38656
|
key: "updateContents",
|
|
38647
38657
|
value: function(Me) {
|
|
38648
|
-
var We = this,
|
|
38658
|
+
var We = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ge.default.sources.API;
|
|
38649
38659
|
return Ze.call(this, function() {
|
|
38650
|
-
return Me = new he.default(Me), We.editor.applyDelta(Me,
|
|
38651
|
-
},
|
|
38660
|
+
return Me = new he.default(Me), We.editor.applyDelta(Me, Be);
|
|
38661
|
+
}, Be, !0);
|
|
38652
38662
|
}
|
|
38653
38663
|
}]), Je;
|
|
38654
38664
|
})();
|
|
@@ -38665,7 +38675,7 @@ function requireQuill() {
|
|
|
38665
38675
|
delta: he.default,
|
|
38666
38676
|
parchment: ye.default,
|
|
38667
38677
|
"core/module": me.default,
|
|
38668
|
-
"core/theme":
|
|
38678
|
+
"core/theme": je.default
|
|
38669
38679
|
};
|
|
38670
38680
|
function Ge(Je, Ye) {
|
|
38671
38681
|
if (Ye = (0, Ae.default)(!0, {
|
|
@@ -38676,7 +38686,7 @@ function requireQuill() {
|
|
|
38676
38686
|
history: !0
|
|
38677
38687
|
}
|
|
38678
38688
|
}, Ye), !Ye.theme || Ye.theme === Ne.DEFAULTS.theme)
|
|
38679
|
-
Ye.theme =
|
|
38689
|
+
Ye.theme = je.default;
|
|
38680
38690
|
else if (Ye.theme = Ne.import("themes/" + Ye.theme), Ye.theme == null)
|
|
38681
38691
|
throw new Error("Invalid theme " + Ye.theme + ". Did you register it?");
|
|
38682
38692
|
var Me = (0, Ae.default)(!0, {}, Ye.theme.DEFAULTS);
|
|
@@ -38685,13 +38695,13 @@ function requireQuill() {
|
|
|
38685
38695
|
Xe.modules[tt] === !0 && (Xe.modules[tt] = {});
|
|
38686
38696
|
});
|
|
38687
38697
|
});
|
|
38688
|
-
var We = Object.keys(Me.modules).concat(Object.keys(Ye.modules)),
|
|
38698
|
+
var We = Object.keys(Me.modules).concat(Object.keys(Ye.modules)), Be = We.reduce(function(Xe, tt) {
|
|
38689
38699
|
var Ue = Ne.import("modules/" + tt);
|
|
38690
38700
|
return Ue == null ? Ie.error("Cannot load " + tt + " module. Are you sure you registered it?") : Xe[tt] = Ue.DEFAULTS || {}, Xe;
|
|
38691
38701
|
}, {});
|
|
38692
38702
|
return Ye.modules != null && Ye.modules.toolbar && Ye.modules.toolbar.constructor !== Object && (Ye.modules.toolbar = {
|
|
38693
38703
|
container: Ye.modules.toolbar
|
|
38694
|
-
}), Ye = (0, Ae.default)(!0, {}, Ne.DEFAULTS, { modules:
|
|
38704
|
+
}), Ye = (0, Ae.default)(!0, {}, Ne.DEFAULTS, { modules: Be }, Me, Ye), ["bounds", "container", "scrollingContainer"].forEach(function(Xe) {
|
|
38695
38705
|
typeof Ye[Xe] == "string" && (Ye[Xe] = document.querySelector(Ye[Xe]));
|
|
38696
38706
|
}), Ye.modules = Object.keys(Ye.modules).reduce(function(Xe, tt) {
|
|
38697
38707
|
return Ye.modules[tt] && (Xe[tt] = Ye.modules[tt]), Xe;
|
|
@@ -38700,8 +38710,8 @@ function requireQuill() {
|
|
|
38700
38710
|
function Ze(Je, Ye, Me, We) {
|
|
38701
38711
|
if (this.options.strict && !this.isEnabled() && Ye === ge.default.sources.USER)
|
|
38702
38712
|
return new he.default();
|
|
38703
|
-
var
|
|
38704
|
-
if (
|
|
38713
|
+
var Be = Me == null ? null : this.getSelection(), Xe = this.editor.delta, tt = Je();
|
|
38714
|
+
if (Be != null && (Me === !0 && (Me = Be.index), We == null ? Be = bt(Be, tt, Ye) : We !== 0 && (Be = bt(Be, Me, We, Ye)), this.setSelection(Be, ge.default.sources.SILENT)), tt.length() > 0) {
|
|
38705
38715
|
var Ue, Qe = [ge.default.events.TEXT_CHANGE, tt, Xe, Ye];
|
|
38706
38716
|
if ((Ue = this.emitter).emit.apply(Ue, [ge.default.events.EDITOR_CHANGE].concat(Qe)), Ye !== ge.default.sources.SILENT) {
|
|
38707
38717
|
var nt;
|
|
@@ -38710,25 +38720,25 @@ function requireQuill() {
|
|
|
38710
38720
|
}
|
|
38711
38721
|
return tt;
|
|
38712
38722
|
}
|
|
38713
|
-
function Ke(Je, Ye, Me, We,
|
|
38723
|
+
function Ke(Je, Ye, Me, We, Be) {
|
|
38714
38724
|
var Xe = {};
|
|
38715
|
-
return typeof Je.index == "number" && typeof Je.length == "number" ? typeof Ye != "number" ? (
|
|
38725
|
+
return typeof Je.index == "number" && typeof Je.length == "number" ? typeof Ye != "number" ? (Be = We, We = Me, Me = Ye, Ye = Je.length, Je = Je.index) : (Ye = Je.length, Je = Je.index) : typeof Ye != "number" && (Be = We, We = Me, Me = Ye, Ye = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Xe = Me, Be = We) : typeof Me == "string" && (We != null ? Xe[Me] = We : Be = Me), Be = Be || ge.default.sources.API, [Je, Ye, Xe, Be];
|
|
38716
38726
|
}
|
|
38717
38727
|
function bt(Je, Ye, Me, We) {
|
|
38718
38728
|
if (Je == null) return null;
|
|
38719
|
-
var
|
|
38729
|
+
var Be = void 0, Xe = void 0;
|
|
38720
38730
|
if (Ye instanceof he.default) {
|
|
38721
38731
|
var tt = [Je.index, Je.index + Je.length].map(function(ot) {
|
|
38722
38732
|
return Ye.transformPosition(ot, We !== ge.default.sources.USER);
|
|
38723
38733
|
}), Ue = de(tt, 2);
|
|
38724
|
-
|
|
38734
|
+
Be = Ue[0], Xe = Ue[1];
|
|
38725
38735
|
} else {
|
|
38726
38736
|
var Qe = [Je.index, Je.index + Je.length].map(function(ot) {
|
|
38727
38737
|
return ot < Ye || ot === Ye && We === ge.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ye, ot + Me);
|
|
38728
38738
|
}), nt = de(Qe, 2);
|
|
38729
|
-
|
|
38739
|
+
Be = nt[0], Xe = nt[1];
|
|
38730
38740
|
}
|
|
38731
|
-
return new Ce.Range(
|
|
38741
|
+
return new Ce.Range(Be, Xe - Be);
|
|
38732
38742
|
}
|
|
38733
38743
|
re.expandConfig = Ge, re.overload = Ke, re.default = Ne;
|
|
38734
38744
|
}),
|
|
@@ -38864,8 +38874,8 @@ function requireQuill() {
|
|
|
38864
38874
|
var oe = /* @__PURE__ */ (function() {
|
|
38865
38875
|
function Ae(Le, ze) {
|
|
38866
38876
|
for (var Fe = 0; Fe < ze.length; Fe++) {
|
|
38867
|
-
var
|
|
38868
|
-
|
|
38877
|
+
var je = ze[Fe];
|
|
38878
|
+
je.enumerable = je.enumerable || !1, je.configurable = !0, "value" in je && (je.writable = !0), Object.defineProperty(Le, je.key, je);
|
|
38869
38879
|
}
|
|
38870
38880
|
}
|
|
38871
38881
|
return function(Le, ze, Fe) {
|
|
@@ -38873,14 +38883,14 @@ function requireQuill() {
|
|
|
38873
38883
|
};
|
|
38874
38884
|
})(), de = function Ae(Le, ze, Fe) {
|
|
38875
38885
|
Le === null && (Le = Function.prototype);
|
|
38876
|
-
var
|
|
38877
|
-
if (
|
|
38886
|
+
var je = Object.getOwnPropertyDescriptor(Le, ze);
|
|
38887
|
+
if (je === void 0) {
|
|
38878
38888
|
var Pe = Object.getPrototypeOf(Le);
|
|
38879
38889
|
return Pe === null ? void 0 : Ae(Pe, ze, Fe);
|
|
38880
38890
|
} else {
|
|
38881
|
-
if ("value" in
|
|
38882
|
-
return
|
|
38883
|
-
var Oe =
|
|
38891
|
+
if ("value" in je)
|
|
38892
|
+
return je.value;
|
|
38893
|
+
var Oe = je.get;
|
|
38884
38894
|
return Oe === void 0 ? void 0 : Oe.call(Fe);
|
|
38885
38895
|
}
|
|
38886
38896
|
}, ce = ne(55), ue = be(ce), he = ne(10), pe = be(he), fe = ne(34);
|
|
@@ -38906,8 +38916,8 @@ function requireQuill() {
|
|
|
38906
38916
|
document.addEventListener(Ae, function() {
|
|
38907
38917
|
for (var Le = arguments.length, ze = Array(Le), Fe = 0; Fe < Le; Fe++)
|
|
38908
38918
|
ze[Fe] = arguments[Fe];
|
|
38909
|
-
Ce.forEach(function(
|
|
38910
|
-
|
|
38919
|
+
Ce.forEach(function(je) {
|
|
38920
|
+
je.handleDOM.apply(je, ze);
|
|
38911
38921
|
});
|
|
38912
38922
|
});
|
|
38913
38923
|
});
|
|
@@ -38926,7 +38936,7 @@ function requireQuill() {
|
|
|
38926
38936
|
}, {
|
|
38927
38937
|
key: "handleDOM",
|
|
38928
38938
|
value: function(Fe) {
|
|
38929
|
-
for (var
|
|
38939
|
+
for (var je = arguments.length, Pe = Array(je > 1 ? je - 1 : 0), Oe = 1; Oe < je; Oe++)
|
|
38930
38940
|
Pe[Oe - 1] = arguments[Oe];
|
|
38931
38941
|
var qe = Fe.composedPath ? Fe.composedPath()[0] : Fe.target, Ie = function(Ge, Ze) {
|
|
38932
38942
|
if (!Se || Ze.getRootNode() === document)
|
|
@@ -38946,8 +38956,8 @@ function requireQuill() {
|
|
|
38946
38956
|
}
|
|
38947
38957
|
}, {
|
|
38948
38958
|
key: "listenDOM",
|
|
38949
|
-
value: function(Fe,
|
|
38950
|
-
this.listeners[Fe] || (this.listeners[Fe] = []), this.listeners[Fe].push({ node:
|
|
38959
|
+
value: function(Fe, je, Pe) {
|
|
38960
|
+
this.listeners[Fe] || (this.listeners[Fe] = []), this.listeners[Fe].push({ node: je, handler: Pe });
|
|
38951
38961
|
}
|
|
38952
38962
|
}]), Le;
|
|
38953
38963
|
})(ue.default);
|
|
@@ -39079,10 +39089,10 @@ function requireQuill() {
|
|
|
39079
39089
|
value: !0
|
|
39080
39090
|
}), re.default = re.Code = void 0;
|
|
39081
39091
|
var oe = /* @__PURE__ */ (function() {
|
|
39082
|
-
function Fe(
|
|
39092
|
+
function Fe(je, Pe) {
|
|
39083
39093
|
var Oe = [], qe = !0, Ie = !1, Ne = void 0;
|
|
39084
39094
|
try {
|
|
39085
|
-
for (var Ge =
|
|
39095
|
+
for (var Ge = je[Symbol.iterator](), Ze; !(qe = (Ze = Ge.next()).done) && (Oe.push(Ze.value), !(Pe && Oe.length === Pe)); qe = !0)
|
|
39086
39096
|
;
|
|
39087
39097
|
} catch (Ke) {
|
|
39088
39098
|
Ie = !0, Ne = Ke;
|
|
@@ -39095,28 +39105,28 @@ function requireQuill() {
|
|
|
39095
39105
|
}
|
|
39096
39106
|
return Oe;
|
|
39097
39107
|
}
|
|
39098
|
-
return function(
|
|
39099
|
-
if (Array.isArray(
|
|
39100
|
-
return
|
|
39101
|
-
if (Symbol.iterator in Object(
|
|
39102
|
-
return Fe(
|
|
39108
|
+
return function(je, Pe) {
|
|
39109
|
+
if (Array.isArray(je))
|
|
39110
|
+
return je;
|
|
39111
|
+
if (Symbol.iterator in Object(je))
|
|
39112
|
+
return Fe(je, Pe);
|
|
39103
39113
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
39104
39114
|
};
|
|
39105
39115
|
})(), de = /* @__PURE__ */ (function() {
|
|
39106
|
-
function Fe(
|
|
39116
|
+
function Fe(je, Pe) {
|
|
39107
39117
|
for (var Oe = 0; Oe < Pe.length; Oe++) {
|
|
39108
39118
|
var qe = Pe[Oe];
|
|
39109
|
-
qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(
|
|
39119
|
+
qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(je, qe.key, qe);
|
|
39110
39120
|
}
|
|
39111
39121
|
}
|
|
39112
|
-
return function(
|
|
39113
|
-
return Pe && Fe(
|
|
39122
|
+
return function(je, Pe, Oe) {
|
|
39123
|
+
return Pe && Fe(je.prototype, Pe), Oe && Fe(je, Oe), je;
|
|
39114
39124
|
};
|
|
39115
|
-
})(), ce = function Fe(
|
|
39116
|
-
|
|
39117
|
-
var qe = Object.getOwnPropertyDescriptor(
|
|
39125
|
+
})(), ce = function Fe(je, Pe, Oe) {
|
|
39126
|
+
je === null && (je = Function.prototype);
|
|
39127
|
+
var qe = Object.getOwnPropertyDescriptor(je, Pe);
|
|
39118
39128
|
if (qe === void 0) {
|
|
39119
|
-
var Ie = Object.getPrototypeOf(
|
|
39129
|
+
var Ie = Object.getPrototypeOf(je);
|
|
39120
39130
|
return Ie === null ? void 0 : Fe(Ie, Pe, Oe);
|
|
39121
39131
|
} else {
|
|
39122
39132
|
if ("value" in qe)
|
|
@@ -39128,34 +39138,34 @@ function requireQuill() {
|
|
|
39128
39138
|
function Ce(Fe) {
|
|
39129
39139
|
return Fe && Fe.__esModule ? Fe : { default: Fe };
|
|
39130
39140
|
}
|
|
39131
|
-
function Se(Fe,
|
|
39132
|
-
if (!(Fe instanceof
|
|
39141
|
+
function Se(Fe, je) {
|
|
39142
|
+
if (!(Fe instanceof je))
|
|
39133
39143
|
throw new TypeError("Cannot call a class as a function");
|
|
39134
39144
|
}
|
|
39135
|
-
function we(Fe,
|
|
39145
|
+
function we(Fe, je) {
|
|
39136
39146
|
if (!Fe)
|
|
39137
39147
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
39138
|
-
return
|
|
39148
|
+
return je && (typeof je == "object" || typeof je == "function") ? je : Fe;
|
|
39139
39149
|
}
|
|
39140
|
-
function Ae(Fe,
|
|
39141
|
-
if (typeof
|
|
39142
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
39143
|
-
Fe.prototype = Object.create(
|
|
39150
|
+
function Ae(Fe, je) {
|
|
39151
|
+
if (typeof je != "function" && je !== null)
|
|
39152
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof je);
|
|
39153
|
+
Fe.prototype = Object.create(je && je.prototype, { constructor: { value: Fe, enumerable: !1, writable: !0, configurable: !0 } }), je && (Object.setPrototypeOf ? Object.setPrototypeOf(Fe, je) : Fe.__proto__ = je);
|
|
39144
39154
|
}
|
|
39145
39155
|
var Le = (function(Fe) {
|
|
39146
|
-
Ae(
|
|
39147
|
-
function
|
|
39148
|
-
return Se(this,
|
|
39156
|
+
Ae(je, Fe);
|
|
39157
|
+
function je() {
|
|
39158
|
+
return Se(this, je), we(this, (je.__proto__ || Object.getPrototypeOf(je)).apply(this, arguments));
|
|
39149
39159
|
}
|
|
39150
|
-
return
|
|
39160
|
+
return je;
|
|
39151
39161
|
})(me.default);
|
|
39152
39162
|
Le.blotName = "code", Le.tagName = "CODE";
|
|
39153
39163
|
var ze = (function(Fe) {
|
|
39154
|
-
Ae(
|
|
39155
|
-
function
|
|
39156
|
-
return Se(this,
|
|
39164
|
+
Ae(je, Fe);
|
|
39165
|
+
function je() {
|
|
39166
|
+
return Se(this, je), we(this, (je.__proto__ || Object.getPrototypeOf(je)).apply(this, arguments));
|
|
39157
39167
|
}
|
|
39158
|
-
return de(
|
|
39168
|
+
return de(je, [{
|
|
39159
39169
|
key: "delta",
|
|
39160
39170
|
value: function() {
|
|
39161
39171
|
var Oe = this, qe = this.domNode.textContent;
|
|
@@ -39171,7 +39181,7 @@ function requireQuill() {
|
|
|
39171
39181
|
value: function(Oe, qe) {
|
|
39172
39182
|
if (!(Oe === this.statics.blotName && qe)) {
|
|
39173
39183
|
var Ie = this.descendant(ye.default, this.length() - 1), Ne = oe(Ie, 1), Ge = Ne[0];
|
|
39174
|
-
Ge?.deleteAt(Ge.length() - 1, 1), ce(
|
|
39184
|
+
Ge?.deleteAt(Ge.length() - 1, 1), ce(je.prototype.__proto__ || Object.getPrototypeOf(je.prototype), "format", this).call(this, Oe, qe);
|
|
39175
39185
|
}
|
|
39176
39186
|
}
|
|
39177
39187
|
}, {
|
|
@@ -39181,7 +39191,7 @@ function requireQuill() {
|
|
|
39181
39191
|
var Ge = this.newlineIndex(Oe);
|
|
39182
39192
|
if (!(Ge < 0 || Ge >= Oe + qe)) {
|
|
39183
39193
|
var Ze = this.newlineIndex(Oe, !0) + 1, Ke = Ge - Ze + 1, bt = this.isolate(Ze, Ke), Je = bt.next;
|
|
39184
|
-
bt.format(Ie, Ne), Je instanceof
|
|
39194
|
+
bt.format(Ie, Ne), Je instanceof je && Je.formatAt(0, Oe - Ze + qe - Ke, Ie, Ne);
|
|
39185
39195
|
}
|
|
39186
39196
|
}
|
|
39187
39197
|
}
|
|
@@ -39216,14 +39226,14 @@ function requireQuill() {
|
|
|
39216
39226
|
value: function(Oe) {
|
|
39217
39227
|
this.domNode.textContent.endsWith(`
|
|
39218
39228
|
`) || this.appendChild(fe.default.create("text", `
|
|
39219
|
-
`)), ce(
|
|
39229
|
+
`)), ce(je.prototype.__proto__ || Object.getPrototypeOf(je.prototype), "optimize", this).call(this, Oe);
|
|
39220
39230
|
var qe = this.next;
|
|
39221
39231
|
qe != null && qe.prev === this && qe.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === qe.statics.formats(qe.domNode) && (qe.optimize(Oe), qe.moveChildren(this), qe.remove());
|
|
39222
39232
|
}
|
|
39223
39233
|
}, {
|
|
39224
39234
|
key: "replace",
|
|
39225
39235
|
value: function(Oe) {
|
|
39226
|
-
ce(
|
|
39236
|
+
ce(je.prototype.__proto__ || Object.getPrototypeOf(je.prototype), "replace", this).call(this, Oe), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(qe) {
|
|
39227
39237
|
var Ie = fe.default.find(qe);
|
|
39228
39238
|
Ie == null ? qe.parentNode.removeChild(qe) : Ie instanceof fe.default.Embed ? Ie.remove() : Ie.unwrap();
|
|
39229
39239
|
});
|
|
@@ -39231,7 +39241,7 @@ function requireQuill() {
|
|
|
39231
39241
|
}], [{
|
|
39232
39242
|
key: "create",
|
|
39233
39243
|
value: function(Oe) {
|
|
39234
|
-
var qe = ce(
|
|
39244
|
+
var qe = ce(je.__proto__ || Object.getPrototypeOf(je), "create", this).call(this, Oe);
|
|
39235
39245
|
return qe.setAttribute("spellcheck", !1), qe;
|
|
39236
39246
|
}
|
|
39237
39247
|
}, {
|
|
@@ -39239,7 +39249,7 @@ function requireQuill() {
|
|
|
39239
39249
|
value: function() {
|
|
39240
39250
|
return !0;
|
|
39241
39251
|
}
|
|
39242
|
-
}]),
|
|
39252
|
+
}]), je;
|
|
39243
39253
|
})(ge.default);
|
|
39244
39254
|
ze.blotName = "code-block", ze.tagName = "PRE", ze.TAB = " ", re.Code = Le, re.default = ze;
|
|
39245
39255
|
}),
|
|
@@ -39255,15 +39265,15 @@ function requireQuill() {
|
|
|
39255
39265
|
return Je && typeof Symbol == "function" && Je.constructor === Symbol && Je !== Symbol.prototype ? "symbol" : typeof Je;
|
|
39256
39266
|
}, de = /* @__PURE__ */ (function() {
|
|
39257
39267
|
function Je(Ye, Me) {
|
|
39258
|
-
var We = [],
|
|
39268
|
+
var We = [], Be = !0, Xe = !1, tt = void 0;
|
|
39259
39269
|
try {
|
|
39260
|
-
for (var Ue = Ye[Symbol.iterator](), Qe; !(
|
|
39270
|
+
for (var Ue = Ye[Symbol.iterator](), Qe; !(Be = (Qe = Ue.next()).done) && (We.push(Qe.value), !(Me && We.length === Me)); Be = !0)
|
|
39261
39271
|
;
|
|
39262
39272
|
} catch (nt) {
|
|
39263
39273
|
Xe = !0, tt = nt;
|
|
39264
39274
|
} finally {
|
|
39265
39275
|
try {
|
|
39266
|
-
!
|
|
39276
|
+
!Be && Ue.return && Ue.return();
|
|
39267
39277
|
} finally {
|
|
39268
39278
|
if (Xe) throw tt;
|
|
39269
39279
|
}
|
|
@@ -39280,14 +39290,14 @@ function requireQuill() {
|
|
|
39280
39290
|
})(), ce = /* @__PURE__ */ (function() {
|
|
39281
39291
|
function Je(Ye, Me) {
|
|
39282
39292
|
for (var We = 0; We < Me.length; We++) {
|
|
39283
|
-
var
|
|
39284
|
-
|
|
39293
|
+
var Be = Me[We];
|
|
39294
|
+
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ye, Be.key, Be);
|
|
39285
39295
|
}
|
|
39286
39296
|
}
|
|
39287
39297
|
return function(Ye, Me, We) {
|
|
39288
39298
|
return Me && Je(Ye.prototype, Me), We && Je(Ye, We), Ye;
|
|
39289
39299
|
};
|
|
39290
|
-
})(), ue = ne(2), he = qe(ue), pe = ne(20), fe = qe(pe), be = ne(0), ge = qe(be), ve = ne(13), me = qe(ve), _e = ne(24), ye = qe(_e), Ce = ne(4), Se = qe(Ce), we = ne(16), Ae = qe(we), Le = ne(21), ze = qe(Le), Fe = ne(11),
|
|
39300
|
+
})(), ue = ne(2), he = qe(ue), pe = ne(20), fe = qe(pe), be = ne(0), ge = qe(be), ve = ne(13), me = qe(ve), _e = ne(24), ye = qe(_e), Ce = ne(4), Se = qe(Ce), we = ne(16), Ae = qe(we), Le = ne(21), ze = qe(Le), Fe = ne(11), je = qe(Fe), Pe = ne(3), Oe = qe(Pe);
|
|
39291
39301
|
function qe(Je) {
|
|
39292
39302
|
return Je && Je.__esModule ? Je : { default: Je };
|
|
39293
39303
|
}
|
|
@@ -39305,7 +39315,7 @@ function requireQuill() {
|
|
|
39305
39315
|
return ce(Je, [{
|
|
39306
39316
|
key: "applyDelta",
|
|
39307
39317
|
value: function(Me) {
|
|
39308
|
-
var We = this,
|
|
39318
|
+
var We = this, Be = !1;
|
|
39309
39319
|
this.scroll.update();
|
|
39310
39320
|
var Xe = this.scroll.length();
|
|
39311
39321
|
return this.scroll.batchStart(), Me = bt(Me), Me.reduce(function(tt, Ue) {
|
|
@@ -39314,8 +39324,8 @@ function requireQuill() {
|
|
|
39314
39324
|
if (typeof Ue.insert == "string") {
|
|
39315
39325
|
var ot = Ue.insert;
|
|
39316
39326
|
ot.endsWith(`
|
|
39317
|
-
`) &&
|
|
39318
|
-
`) && (
|
|
39327
|
+
`) && Be && (Be = !1, ot = ot.slice(0, -1)), tt >= Xe && !ot.endsWith(`
|
|
39328
|
+
`) && (Be = !0), We.scroll.insertAt(tt, ot);
|
|
39319
39329
|
var yt = We.scroll.line(tt), Ct = de(yt, 2), Pt = Ct[0], qt = Ct[1], Nt = (0, Oe.default)({}, (0, Ce.bubbleFormats)(Pt));
|
|
39320
39330
|
if (Pt instanceof Se.default) {
|
|
39321
39331
|
var Ut = Pt.descendant(ge.default.Leaf, qt), ns = de(Ut, 1), Xt = ns[0];
|
|
@@ -39344,16 +39354,16 @@ function requireQuill() {
|
|
|
39344
39354
|
}, {
|
|
39345
39355
|
key: "formatLine",
|
|
39346
39356
|
value: function(Me, We) {
|
|
39347
|
-
var
|
|
39357
|
+
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
39348
39358
|
return this.scroll.update(), Object.keys(Xe).forEach(function(tt) {
|
|
39349
|
-
if (!(
|
|
39350
|
-
var Ue =
|
|
39359
|
+
if (!(Be.scroll.whitelist != null && !Be.scroll.whitelist[tt])) {
|
|
39360
|
+
var Ue = Be.scroll.lines(Me, Math.max(We, 1)), Qe = We;
|
|
39351
39361
|
Ue.forEach(function(nt) {
|
|
39352
39362
|
var ot = nt.length();
|
|
39353
39363
|
if (!(nt instanceof me.default))
|
|
39354
39364
|
nt.format(tt, Xe[tt]);
|
|
39355
39365
|
else {
|
|
39356
|
-
var yt = Me - nt.offset(
|
|
39366
|
+
var yt = Me - nt.offset(Be.scroll), Ct = nt.newlineIndex(yt + Qe) - yt + 1;
|
|
39357
39367
|
nt.formatAt(yt, Ct, tt, Xe[tt]);
|
|
39358
39368
|
}
|
|
39359
39369
|
Qe -= ot;
|
|
@@ -39364,9 +39374,9 @@ function requireQuill() {
|
|
|
39364
39374
|
}, {
|
|
39365
39375
|
key: "formatText",
|
|
39366
39376
|
value: function(Me, We) {
|
|
39367
|
-
var
|
|
39377
|
+
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
39368
39378
|
return Object.keys(Xe).forEach(function(tt) {
|
|
39369
|
-
|
|
39379
|
+
Be.scroll.formatAt(Me, We, tt, Xe[tt]);
|
|
39370
39380
|
}), this.update(new he.default().retain(Me).retain(We, (0, ze.default)(Xe)));
|
|
39371
39381
|
}
|
|
39372
39382
|
}, {
|
|
@@ -39384,12 +39394,12 @@ function requireQuill() {
|
|
|
39384
39394
|
}, {
|
|
39385
39395
|
key: "getFormat",
|
|
39386
39396
|
value: function(Me) {
|
|
39387
|
-
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
39397
|
+
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
|
|
39388
39398
|
We === 0 ? this.scroll.path(Me).forEach(function(Ue) {
|
|
39389
39399
|
var Qe = de(Ue, 1), nt = Qe[0];
|
|
39390
|
-
nt instanceof Se.default ?
|
|
39391
|
-
}) : (
|
|
39392
|
-
var tt = [
|
|
39400
|
+
nt instanceof Se.default ? Be.push(nt) : nt instanceof ge.default.Leaf && Xe.push(nt);
|
|
39401
|
+
}) : (Be = this.scroll.lines(Me, We), Xe = this.scroll.descendants(ge.default.Leaf, Me, We));
|
|
39402
|
+
var tt = [Be, Xe].map(function(Ue) {
|
|
39393
39403
|
if (Ue.length === 0) return {};
|
|
39394
39404
|
for (var Qe = (0, Ce.bubbleFormats)(Ue.shift()); Object.keys(Qe).length > 0; ) {
|
|
39395
39405
|
var nt = Ue.shift();
|
|
@@ -39403,25 +39413,25 @@ function requireQuill() {
|
|
|
39403
39413
|
}, {
|
|
39404
39414
|
key: "getText",
|
|
39405
39415
|
value: function(Me, We) {
|
|
39406
|
-
return this.getContents(Me, We).filter(function(
|
|
39407
|
-
return typeof
|
|
39408
|
-
}).map(function(
|
|
39409
|
-
return
|
|
39416
|
+
return this.getContents(Me, We).filter(function(Be) {
|
|
39417
|
+
return typeof Be.insert == "string";
|
|
39418
|
+
}).map(function(Be) {
|
|
39419
|
+
return Be.insert;
|
|
39410
39420
|
}).join("");
|
|
39411
39421
|
}
|
|
39412
39422
|
}, {
|
|
39413
39423
|
key: "insertEmbed",
|
|
39414
|
-
value: function(Me, We,
|
|
39415
|
-
return this.scroll.insertAt(Me, We,
|
|
39424
|
+
value: function(Me, We, Be) {
|
|
39425
|
+
return this.scroll.insertAt(Me, We, Be), this.update(new he.default().retain(Me).insert(Ie({}, We, Be)));
|
|
39416
39426
|
}
|
|
39417
39427
|
}, {
|
|
39418
39428
|
key: "insertText",
|
|
39419
39429
|
value: function(Me, We) {
|
|
39420
|
-
var
|
|
39430
|
+
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
39421
39431
|
return We = We.replace(/\r\n/g, `
|
|
39422
39432
|
`).replace(/\r/g, `
|
|
39423
39433
|
`), this.scroll.insertAt(Me, We), Object.keys(Xe).forEach(function(tt) {
|
|
39424
|
-
|
|
39434
|
+
Be.scroll.formatAt(Me, We.length, tt, Xe[tt]);
|
|
39425
39435
|
}), this.update(new he.default().retain(Me).insert(We, (0, ze.default)(Xe)));
|
|
39426
39436
|
}
|
|
39427
39437
|
}, {
|
|
@@ -39435,23 +39445,23 @@ function requireQuill() {
|
|
|
39435
39445
|
}, {
|
|
39436
39446
|
key: "removeFormat",
|
|
39437
39447
|
value: function(Me, We) {
|
|
39438
|
-
var
|
|
39448
|
+
var Be = this.getText(Me, We), Xe = this.scroll.line(Me + We), tt = de(Xe, 2), Ue = tt[0], Qe = tt[1], nt = 0, ot = new he.default();
|
|
39439
39449
|
Ue != null && (Ue instanceof me.default ? nt = Ue.newlineIndex(Qe) - Qe + 1 : nt = Ue.length() - Qe, ot = Ue.delta().slice(Qe, Qe + nt - 1).insert(`
|
|
39440
39450
|
`));
|
|
39441
|
-
var yt = this.getContents(Me, We + nt), Ct = yt.diff(new he.default().insert(
|
|
39451
|
+
var yt = this.getContents(Me, We + nt), Ct = yt.diff(new he.default().insert(Be).concat(ot)), Pt = new he.default().retain(Me).concat(Ct);
|
|
39442
39452
|
return this.applyDelta(Pt);
|
|
39443
39453
|
}
|
|
39444
39454
|
}, {
|
|
39445
39455
|
key: "update",
|
|
39446
39456
|
value: function(Me) {
|
|
39447
|
-
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [],
|
|
39457
|
+
var We = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
|
|
39448
39458
|
if (We.length === 1 && We[0].type === "characterData" && We[0].target.data.match(Ge) && ge.default.find(We[0].target)) {
|
|
39449
|
-
var tt = ge.default.find(We[0].target), Ue = (0, Ce.bubbleFormats)(tt), Qe = tt.offset(this.scroll), nt = We[0].oldValue.replace(ye.default.CONTENTS, ""), ot = new he.default().insert(nt), yt = new he.default().insert(tt.value()), Ct = new he.default().retain(Qe).concat(ot.diff(yt,
|
|
39459
|
+
var tt = ge.default.find(We[0].target), Ue = (0, Ce.bubbleFormats)(tt), Qe = tt.offset(this.scroll), nt = We[0].oldValue.replace(ye.default.CONTENTS, ""), ot = new he.default().insert(nt), yt = new he.default().insert(tt.value()), Ct = new he.default().retain(Qe).concat(ot.diff(yt, Be));
|
|
39450
39460
|
Me = Ct.reduce(function(Pt, qt) {
|
|
39451
39461
|
return qt.insert ? Pt.insert(qt.insert, Ue) : Pt.push(qt);
|
|
39452
39462
|
}, new he.default()), this.delta = Xe.compose(Me);
|
|
39453
39463
|
} else
|
|
39454
|
-
this.delta = this.getDelta(), (!Me || !(0,
|
|
39464
|
+
this.delta = this.getDelta(), (!Me || !(0, je.default)(Xe.compose(Me), this.delta)) && (Me = Xe.diff(this.delta, Be));
|
|
39455
39465
|
return Me;
|
|
39456
39466
|
}
|
|
39457
39467
|
}]), Je;
|
|
@@ -39468,10 +39478,10 @@ function requireQuill() {
|
|
|
39468
39478
|
return delete We.image, Ye.insert({ image: Me.attributes.image }, We);
|
|
39469
39479
|
}
|
|
39470
39480
|
if (Me.attributes != null && (Me.attributes.list === !0 || Me.attributes.bullet === !0) && (Me = (0, ze.default)(Me), Me.attributes.list ? Me.attributes.list = "ordered" : (Me.attributes.list = "bullet", delete Me.attributes.bullet)), typeof Me.insert == "string") {
|
|
39471
|
-
var
|
|
39481
|
+
var Be = Me.insert.replace(/\r\n/g, `
|
|
39472
39482
|
`).replace(/\r/g, `
|
|
39473
39483
|
`);
|
|
39474
|
-
return Ye.insert(
|
|
39484
|
+
return Ye.insert(Be, Me.attributes);
|
|
39475
39485
|
}
|
|
39476
39486
|
return Ye.push(Me);
|
|
39477
39487
|
}, new he.default());
|
|
@@ -39485,7 +39495,7 @@ function requireQuill() {
|
|
|
39485
39495
|
value: !0
|
|
39486
39496
|
}), re.default = re.Range = void 0;
|
|
39487
39497
|
var oe = /* @__PURE__ */ (function() {
|
|
39488
|
-
function
|
|
39498
|
+
function je(Pe, Oe) {
|
|
39489
39499
|
var qe = [], Ie = !0, Ne = !1, Ge = void 0;
|
|
39490
39500
|
try {
|
|
39491
39501
|
for (var Ze = Pe[Symbol.iterator](), Ke; !(Ie = (Ke = Ze.next()).done) && (qe.push(Ke.value), !(Oe && qe.length === Oe)); Ie = !0)
|
|
@@ -39505,42 +39515,42 @@ function requireQuill() {
|
|
|
39505
39515
|
if (Array.isArray(Pe))
|
|
39506
39516
|
return Pe;
|
|
39507
39517
|
if (Symbol.iterator in Object(Pe))
|
|
39508
|
-
return
|
|
39518
|
+
return je(Pe, Oe);
|
|
39509
39519
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
39510
39520
|
};
|
|
39511
39521
|
})(), de = /* @__PURE__ */ (function() {
|
|
39512
|
-
function
|
|
39522
|
+
function je(Pe, Oe) {
|
|
39513
39523
|
for (var qe = 0; qe < Oe.length; qe++) {
|
|
39514
39524
|
var Ie = Oe[qe];
|
|
39515
39525
|
Ie.enumerable = Ie.enumerable || !1, Ie.configurable = !0, "value" in Ie && (Ie.writable = !0), Object.defineProperty(Pe, Ie.key, Ie);
|
|
39516
39526
|
}
|
|
39517
39527
|
}
|
|
39518
39528
|
return function(Pe, Oe, qe) {
|
|
39519
|
-
return Oe &&
|
|
39529
|
+
return Oe && je(Pe.prototype, Oe), qe && je(Pe, qe), Pe;
|
|
39520
39530
|
};
|
|
39521
39531
|
})(), ce = ne(0), ue = Ce(ce), he = ne(21), pe = Ce(he), fe = ne(11), be = Ce(fe), ge = ne(8), ve = Ce(ge), me = ne(10), _e = Ce(me), ye = ne(34);
|
|
39522
|
-
function Ce(
|
|
39523
|
-
return
|
|
39532
|
+
function Ce(je) {
|
|
39533
|
+
return je && je.__esModule ? je : { default: je };
|
|
39524
39534
|
}
|
|
39525
|
-
function Se(
|
|
39526
|
-
if (Array.isArray(
|
|
39527
|
-
for (var Pe = 0, Oe = Array(
|
|
39528
|
-
Oe[Pe] =
|
|
39535
|
+
function Se(je) {
|
|
39536
|
+
if (Array.isArray(je)) {
|
|
39537
|
+
for (var Pe = 0, Oe = Array(je.length); Pe < je.length; Pe++)
|
|
39538
|
+
Oe[Pe] = je[Pe];
|
|
39529
39539
|
return Oe;
|
|
39530
39540
|
} else
|
|
39531
|
-
return Array.from(
|
|
39541
|
+
return Array.from(je);
|
|
39532
39542
|
}
|
|
39533
|
-
function we(
|
|
39534
|
-
if (!(
|
|
39543
|
+
function we(je, Pe) {
|
|
39544
|
+
if (!(je instanceof Pe))
|
|
39535
39545
|
throw new TypeError("Cannot call a class as a function");
|
|
39536
39546
|
}
|
|
39537
|
-
var Ae = (0, _e.default)("quill:selection"), Le = function
|
|
39547
|
+
var Ae = (0, _e.default)("quill:selection"), Le = function je(Pe) {
|
|
39538
39548
|
var Oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
39539
|
-
we(this,
|
|
39549
|
+
we(this, je), this.index = Pe, this.length = Oe;
|
|
39540
39550
|
}, ze = (function() {
|
|
39541
|
-
function
|
|
39551
|
+
function je(Pe, Oe) {
|
|
39542
39552
|
var qe = this;
|
|
39543
|
-
we(this,
|
|
39553
|
+
we(this, je), this.emitter = Oe, this.scroll = Pe, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = ue.default.create("cursor", this), this.lastRange = this.savedRange = new Le(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM(ye.SHADOW_SELECTIONCHANGE, document, function() {
|
|
39544
39554
|
qe.mouseDown || setTimeout(qe.update.bind(qe, ve.default.sources.USER), 1);
|
|
39545
39555
|
}), this.emitter.on(ve.default.events.EDITOR_CHANGE, function(Ie, Ne) {
|
|
39546
39556
|
Ie === ve.default.events.TEXT_CHANGE && Ne.length() > 0 && qe.update(ve.default.sources.SILENT);
|
|
@@ -39561,7 +39571,7 @@ function requireQuill() {
|
|
|
39561
39571
|
}
|
|
39562
39572
|
}), this.update(ve.default.sources.SILENT);
|
|
39563
39573
|
}
|
|
39564
|
-
return de(
|
|
39574
|
+
return de(je, [{
|
|
39565
39575
|
key: "handleComposition",
|
|
39566
39576
|
value: function() {
|
|
39567
39577
|
var Oe = this;
|
|
@@ -39625,8 +39635,8 @@ function requireQuill() {
|
|
|
39625
39635
|
var Me = document.createRange();
|
|
39626
39636
|
if (qe > 0) {
|
|
39627
39637
|
Me.setStart(Ne, bt);
|
|
39628
|
-
var We = this.scroll.leaf(Oe + qe),
|
|
39629
|
-
if (Ke =
|
|
39638
|
+
var We = this.scroll.leaf(Oe + qe), Be = oe(We, 2);
|
|
39639
|
+
if (Ke = Be[0], bt = Be[1], Ke == null) return null;
|
|
39630
39640
|
var Xe = Ke.position(bt, !0), tt = oe(Xe, 2);
|
|
39631
39641
|
return Ne = tt[0], bt = tt[1], Me.setEnd(Ne, bt), Me.getBoundingClientRect();
|
|
39632
39642
|
} else {
|
|
@@ -39700,7 +39710,7 @@ function requireQuill() {
|
|
|
39700
39710
|
var qe = this, Ie = Oe.collapsed ? [Oe.index] : [Oe.index, Oe.index + Oe.length], Ne = [], Ge = this.scroll.length();
|
|
39701
39711
|
return Ie.forEach(function(Ze, Ke) {
|
|
39702
39712
|
Ze = Math.min(Ge - 1, Ze);
|
|
39703
|
-
var bt = void 0, Je = qe.scroll.leaf(Ze), Ye = oe(Je, 2), Me = Ye[0], We = Ye[1],
|
|
39713
|
+
var bt = void 0, Je = qe.scroll.leaf(Ze), Ye = oe(Je, 2), Me = Ye[0], We = Ye[1], Be = Me.position(We, Ke !== 0), Xe = oe(Be, 2);
|
|
39704
39714
|
bt = Xe[0], We = Xe[1], Ne.push(bt, We);
|
|
39705
39715
|
}), Ne.length < 2 && (Ne = Ne.concat(Ne)), Ne;
|
|
39706
39716
|
}
|
|
@@ -39767,15 +39777,15 @@ function requireQuill() {
|
|
|
39767
39777
|
}
|
|
39768
39778
|
}
|
|
39769
39779
|
}
|
|
39770
|
-
}]),
|
|
39780
|
+
}]), je;
|
|
39771
39781
|
})();
|
|
39772
|
-
function Fe(
|
|
39782
|
+
function Fe(je, Pe) {
|
|
39773
39783
|
try {
|
|
39774
39784
|
Pe.parentNode;
|
|
39775
39785
|
} catch {
|
|
39776
39786
|
return !1;
|
|
39777
39787
|
}
|
|
39778
|
-
return Pe instanceof Text && (Pe = Pe.parentNode),
|
|
39788
|
+
return Pe instanceof Text && (Pe = Pe.parentNode), je.contains(Pe);
|
|
39779
39789
|
}
|
|
39780
39790
|
re.Range = Le, re.default = ze;
|
|
39781
39791
|
}),
|
|
@@ -40203,10 +40213,10 @@ function requireQuill() {
|
|
|
40203
40213
|
typeof _e == "object" && (ye = _e.depth, Ce = _e.prototype, Se = _e.includeNonEnumerable, _e = _e.circular);
|
|
40204
40214
|
var we = [], Ae = [], Le = typeof Buffer < "u";
|
|
40205
40215
|
typeof _e > "u" && (_e = !0), typeof ye > "u" && (ye = 1 / 0);
|
|
40206
|
-
function ze(Fe,
|
|
40216
|
+
function ze(Fe, je) {
|
|
40207
40217
|
if (Fe === null)
|
|
40208
40218
|
return null;
|
|
40209
|
-
if (
|
|
40219
|
+
if (je === 0)
|
|
40210
40220
|
return Fe;
|
|
40211
40221
|
var Pe, Oe;
|
|
40212
40222
|
if (typeof Fe != "object")
|
|
@@ -40218,9 +40228,9 @@ function requireQuill() {
|
|
|
40218
40228
|
else if (oe(Fe, ue))
|
|
40219
40229
|
Pe = new ue(function(Ye, Me) {
|
|
40220
40230
|
Fe.then(function(We) {
|
|
40221
|
-
Ye(ze(We,
|
|
40231
|
+
Ye(ze(We, je - 1));
|
|
40222
40232
|
}, function(We) {
|
|
40223
|
-
Me(ze(We,
|
|
40233
|
+
Me(ze(We, je - 1));
|
|
40224
40234
|
});
|
|
40225
40235
|
});
|
|
40226
40236
|
else if (he.__isArray(Fe))
|
|
@@ -40241,27 +40251,27 @@ function requireQuill() {
|
|
|
40241
40251
|
we.push(Fe), Ae.push(Pe);
|
|
40242
40252
|
}
|
|
40243
40253
|
oe(Fe, de) && Fe.forEach(function(Ye, Me) {
|
|
40244
|
-
var We = ze(Me,
|
|
40245
|
-
Pe.set(We,
|
|
40254
|
+
var We = ze(Me, je - 1), Be = ze(Ye, je - 1);
|
|
40255
|
+
Pe.set(We, Be);
|
|
40246
40256
|
}), oe(Fe, ce) && Fe.forEach(function(Ye) {
|
|
40247
|
-
var Me = ze(Ye,
|
|
40257
|
+
var Me = ze(Ye, je - 1);
|
|
40248
40258
|
Pe.add(Me);
|
|
40249
40259
|
});
|
|
40250
40260
|
for (var Ie in Fe) {
|
|
40251
40261
|
var Ne;
|
|
40252
|
-
Oe && (Ne = Object.getOwnPropertyDescriptor(Oe, Ie)), !(Ne && Ne.set == null) && (Pe[Ie] = ze(Fe[Ie],
|
|
40262
|
+
Oe && (Ne = Object.getOwnPropertyDescriptor(Oe, Ie)), !(Ne && Ne.set == null) && (Pe[Ie] = ze(Fe[Ie], je - 1));
|
|
40253
40263
|
}
|
|
40254
40264
|
if (Object.getOwnPropertySymbols)
|
|
40255
40265
|
for (var Ge = Object.getOwnPropertySymbols(Fe), Ie = 0; Ie < Ge.length; Ie++) {
|
|
40256
40266
|
var Ze = Ge[Ie], Ke = Object.getOwnPropertyDescriptor(Fe, Ze);
|
|
40257
|
-
Ke && !Ke.enumerable && !Se || (Pe[Ze] = ze(Fe[Ze],
|
|
40267
|
+
Ke && !Ke.enumerable && !Se || (Pe[Ze] = ze(Fe[Ze], je - 1), Ke.enumerable || Object.defineProperty(Pe, Ze, {
|
|
40258
40268
|
enumerable: !1
|
|
40259
40269
|
}));
|
|
40260
40270
|
}
|
|
40261
40271
|
if (Se)
|
|
40262
40272
|
for (var bt = Object.getOwnPropertyNames(Fe), Ie = 0; Ie < bt.length; Ie++) {
|
|
40263
40273
|
var Je = bt[Ie], Ke = Object.getOwnPropertyDescriptor(Fe, Je);
|
|
40264
|
-
Ke && Ke.enumerable || (Pe[Je] = ze(Fe[Je],
|
|
40274
|
+
Ke && Ke.enumerable || (Pe[Je] = ze(Fe[Je], je - 1), Object.defineProperty(Pe, Je, {
|
|
40265
40275
|
enumerable: !1
|
|
40266
40276
|
}));
|
|
40267
40277
|
}
|
|
@@ -40373,7 +40383,7 @@ function requireQuill() {
|
|
|
40373
40383
|
function Fe(Pe) {
|
|
40374
40384
|
return Pe instanceof ge.default || Pe instanceof be.BlockEmbed;
|
|
40375
40385
|
}
|
|
40376
|
-
var
|
|
40386
|
+
var je = (function(Pe) {
|
|
40377
40387
|
ze(Oe, Pe);
|
|
40378
40388
|
function Oe(qe, Ie) {
|
|
40379
40389
|
Ae(this, Oe);
|
|
@@ -40409,8 +40419,8 @@ function requireQuill() {
|
|
|
40409
40419
|
return;
|
|
40410
40420
|
}
|
|
40411
40421
|
} else if (Me instanceof ye.default) {
|
|
40412
|
-
var
|
|
40413
|
-
|
|
40422
|
+
var Be = Me.newlineIndex(0);
|
|
40423
|
+
Be > -1 && Me.split(Be + 1);
|
|
40414
40424
|
}
|
|
40415
40425
|
var Xe = Me.children.head instanceof me.default ? null : Me.children.head;
|
|
40416
40426
|
Ke.moveChildren(Me, Xe), Ke.remove();
|
|
@@ -40470,8 +40480,8 @@ function requireQuill() {
|
|
|
40470
40480
|
value: function() {
|
|
40471
40481
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, Ge = function Ze(Ke, bt, Je) {
|
|
40472
40482
|
var Ye = [], Me = Je;
|
|
40473
|
-
return Ke.children.forEachAt(bt, Je, function(We,
|
|
40474
|
-
Fe(We) ? Ye.push(We) : We instanceof he.default.Container && (Ye = Ye.concat(Ze(We,
|
|
40483
|
+
return Ke.children.forEachAt(bt, Je, function(We, Be, Xe) {
|
|
40484
|
+
Fe(We) ? Ye.push(We) : We instanceof he.default.Container && (Ye = Ye.concat(Ze(We, Be, Me))), Me -= Xe;
|
|
40475
40485
|
}), Ye;
|
|
40476
40486
|
};
|
|
40477
40487
|
return Ge(this, Ie, Ne);
|
|
@@ -40497,7 +40507,7 @@ function requireQuill() {
|
|
|
40497
40507
|
}
|
|
40498
40508
|
}]), Oe;
|
|
40499
40509
|
})(he.default.Scroll);
|
|
40500
|
-
|
|
40510
|
+
je.blotName = "scroll", je.className = "ql-editor", je.tagName = "DIV", je.defaultChild = "block", je.allowedChildren = [ge.default, be.BlockEmbed, Se.default], re.default = je;
|
|
40501
40511
|
}),
|
|
40502
40512
|
/* 23 */
|
|
40503
40513
|
/***/
|
|
@@ -40543,7 +40553,7 @@ function requireQuill() {
|
|
|
40543
40553
|
return function(Qe, nt, ot) {
|
|
40544
40554
|
return nt && Ue(Qe.prototype, nt), ot && Ue(Qe, ot), Qe;
|
|
40545
40555
|
};
|
|
40546
|
-
})(), ue = ne(21), he = Pe(ue), pe = ne(11), fe = Pe(pe), be = ne(3), ge = Pe(be), ve = ne(2), me = Pe(ve), _e = ne(20), ye = Pe(_e), Ce = ne(0), Se = Pe(Ce), we = ne(5), Ae = Pe(we), Le = ne(10), ze = Pe(Le), Fe = ne(9),
|
|
40556
|
+
})(), ue = ne(21), he = Pe(ue), pe = ne(11), fe = Pe(pe), be = ne(3), ge = Pe(be), ve = ne(2), me = Pe(ve), _e = ne(20), ye = Pe(_e), Ce = ne(0), Se = Pe(Ce), we = ne(5), Ae = Pe(we), Le = ne(10), ze = Pe(Le), Fe = ne(9), je = Pe(Fe);
|
|
40547
40557
|
function Pe(Ue) {
|
|
40548
40558
|
return Ue && Ue.__esModule ? Ue : { default: Ue };
|
|
40549
40559
|
}
|
|
@@ -40628,7 +40638,7 @@ function requireQuill() {
|
|
|
40628
40638
|
});
|
|
40629
40639
|
}
|
|
40630
40640
|
}]), Qe;
|
|
40631
|
-
})(
|
|
40641
|
+
})(je.default);
|
|
40632
40642
|
Ke.keys = {
|
|
40633
40643
|
BACKSPACE: 8,
|
|
40634
40644
|
TAB: 9,
|
|
@@ -40676,8 +40686,8 @@ function requireQuill() {
|
|
|
40676
40686
|
nt.format.indent != null ? this.quill.format("indent", "-1", Ae.default.sources.USER) : nt.format.list != null && this.quill.format("list", !1, Ae.default.sources.USER);
|
|
40677
40687
|
}
|
|
40678
40688
|
},
|
|
40679
|
-
"indent code-block":
|
|
40680
|
-
"outdent code-block":
|
|
40689
|
+
"indent code-block": Be(!0),
|
|
40690
|
+
"outdent code-block": Be(!1),
|
|
40681
40691
|
"remove tab": {
|
|
40682
40692
|
key: Ke.keys.TAB,
|
|
40683
40693
|
shiftKey: !0,
|
|
@@ -40831,7 +40841,7 @@ function requireQuill() {
|
|
|
40831
40841
|
ot[yt] == null && (Array.isArray(Qe.format[yt]) || yt !== "link" && nt.quill.format(yt, Qe.format[yt], Ae.default.sources.USER));
|
|
40832
40842
|
});
|
|
40833
40843
|
}
|
|
40834
|
-
function
|
|
40844
|
+
function Be(Ue) {
|
|
40835
40845
|
return {
|
|
40836
40846
|
key: Ke.keys.TAB,
|
|
40837
40847
|
shiftKey: !Ue,
|
|
@@ -40881,7 +40891,7 @@ function requireQuill() {
|
|
|
40881
40891
|
function ye(Ce, Se) {
|
|
40882
40892
|
var we = [], Ae = !0, Le = !1, ze = void 0;
|
|
40883
40893
|
try {
|
|
40884
|
-
for (var Fe = Ce[Symbol.iterator](),
|
|
40894
|
+
for (var Fe = Ce[Symbol.iterator](), je; !(Ae = (je = Fe.next()).done) && (we.push(je.value), !(Se && we.length === Se)); Ae = !0)
|
|
40885
40895
|
;
|
|
40886
40896
|
} catch (Pe) {
|
|
40887
40897
|
Le = !0, ze = Pe;
|
|
@@ -40992,8 +41002,8 @@ function requireQuill() {
|
|
|
40992
41002
|
if (!(this.selection.composing || this.parent == null)) {
|
|
40993
41003
|
var we = this.textNode, Ae = this.selection.getNativeRange(), Le = void 0, ze = void 0, Fe = void 0;
|
|
40994
41004
|
if (Ae != null && Ae.start.node === we && Ae.end.node === we) {
|
|
40995
|
-
var
|
|
40996
|
-
Le =
|
|
41005
|
+
var je = [we, Ae.start.offset, Ae.end.offset];
|
|
41006
|
+
Le = je[0], ze = je[1], Fe = je[2];
|
|
40997
41007
|
}
|
|
40998
41008
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
40999
41009
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
@@ -41364,7 +41374,7 @@ function requireQuill() {
|
|
|
41364
41374
|
Object.defineProperty(re, "__esModule", {
|
|
41365
41375
|
value: !0
|
|
41366
41376
|
});
|
|
41367
|
-
var oe = ne(0), de = Ge(oe), ce = ne(5), ue = Ge(ce), he = ne(4), pe = Ge(he), fe = ne(16), be = Ge(fe), ge = ne(25), ve = Ge(ge), me = ne(24), _e = Ge(me), ye = ne(36), Ce = Ge(ye), Se = ne(6), we = Ge(Se), Ae = ne(22), Le = Ge(Ae), ze = ne(7), Fe = Ge(ze),
|
|
41377
|
+
var oe = ne(0), de = Ge(oe), ce = ne(5), ue = Ge(ce), he = ne(4), pe = Ge(he), fe = ne(16), be = Ge(fe), ge = ne(25), ve = Ge(ge), me = ne(24), _e = Ge(me), ye = ne(36), Ce = Ge(ye), Se = ne(6), we = Ge(Se), Ae = ne(22), Le = Ge(Ae), ze = ne(7), Fe = Ge(ze), je = ne(56), Pe = Ge(je), Oe = ne(43), qe = Ge(Oe), Ie = ne(23), Ne = Ge(Ie);
|
|
41368
41378
|
function Ge(Ze) {
|
|
41369
41379
|
return Ze && Ze.__esModule ? Ze : { default: Ze };
|
|
41370
41380
|
}
|
|
@@ -41603,7 +41613,7 @@ function requireQuill() {
|
|
|
41603
41613
|
(function(X, re, ne) {
|
|
41604
41614
|
Object.defineProperty(re, "__esModule", {
|
|
41605
41615
|
value: !0
|
|
41606
|
-
}), re.getRange = ze, re.internalGetShadowSelection =
|
|
41616
|
+
}), re.getRange = ze, re.internalGetShadowSelection = je;
|
|
41607
41617
|
var oe = re.SHADOW_SELECTIONCHANGE = "-shadow-selectionchange", de = "attachShadow" in Element.prototype && "getRootNode" in Element.prototype, ce = !!(de && document.createElement("div").attachShadow({ mode: "open" }).getSelection), ue = window.ShadyDOM && window.ShadyDOM.inUse, he = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, pe = !de || ue || !ce && !he, fe = [Node.ELEMENT_NODE, Node.TEXT_NODE, Node.DOCUMENT_FRAGMENT_NODE];
|
|
41608
41618
|
function be(Pe) {
|
|
41609
41619
|
return fe.includes(Pe.nodeType);
|
|
@@ -41695,13 +41705,13 @@ function requireQuill() {
|
|
|
41695
41705
|
var qe = Le.get(Pe);
|
|
41696
41706
|
if (qe)
|
|
41697
41707
|
return qe;
|
|
41698
|
-
var Ie =
|
|
41708
|
+
var Ie = je(Pe);
|
|
41699
41709
|
return Le.set(Pe, Ie.range), window.setTimeout(function() {
|
|
41700
41710
|
Le.delete(Pe);
|
|
41701
41711
|
}, 0), Ie.range;
|
|
41702
41712
|
}
|
|
41703
41713
|
var Fe = document.createTextNode("");
|
|
41704
|
-
function
|
|
41714
|
+
function je(Pe) {
|
|
41705
41715
|
var Oe = document.createRange(), qe = window.getSelection();
|
|
41706
41716
|
if (!qe.containsNode(Pe.host, !0))
|
|
41707
41717
|
return { range: null, mode: "none" };
|
|
@@ -41728,8 +41738,8 @@ function requireQuill() {
|
|
|
41728
41738
|
throw new TypeError("unexpected type: " + qe.type);
|
|
41729
41739
|
return Oe.setStart(Ze, 0), Oe.setEnd(Ke, Ke.length), { range: Oe, mode: "all" };
|
|
41730
41740
|
}
|
|
41731
|
-
var Ye = Ge(), Me = void 0, We = void 0,
|
|
41732
|
-
return bt ? (qe.extend(Ze, 0), Me = Ge() + we(Ze), qe.extend(Ke,
|
|
41741
|
+
var Ye = Ge(), Me = void 0, We = void 0, Be = Ke.length - Ae(Ke);
|
|
41742
|
+
return bt ? (qe.extend(Ze, 0), Me = Ge() + we(Ze), qe.extend(Ke, Be), We = Be - (Ge() - Ye), qe.extend(Ke, We)) : (qe.extend(Ke, Be), We = Be - Ge(), qe.extend(Ze, 0), Me = Ge() - Ye + we(Ze), qe.extend(Ze, Me)), Oe.setStart(Ze, Me), Oe.setEnd(Ke, We), {
|
|
41733
41743
|
mode: bt ? "right" : "left",
|
|
41734
41744
|
range: Oe
|
|
41735
41745
|
};
|
|
@@ -42105,8 +42115,8 @@ function requireQuill() {
|
|
|
42105
42115
|
function we(Ae, Le) {
|
|
42106
42116
|
ge(this, we);
|
|
42107
42117
|
var ze = ve(this, (we.__proto__ || Object.getPrototypeOf(we)).call(this, Ae, Le));
|
|
42108
|
-
return ze.lastRecorded = 0, ze.ignoreChange = !1, ze.clear(), ze.quill.on(he.default.events.EDITOR_CHANGE, function(Fe,
|
|
42109
|
-
Fe !== he.default.events.TEXT_CHANGE || ze.ignoreChange || (!ze.options.userOnly || Oe === he.default.sources.USER ? ze.record(
|
|
42118
|
+
return ze.lastRecorded = 0, ze.ignoreChange = !1, ze.clear(), ze.quill.on(he.default.events.EDITOR_CHANGE, function(Fe, je, Pe, Oe) {
|
|
42119
|
+
Fe !== he.default.events.TEXT_CHANGE || ze.ignoreChange || (!ze.options.userOnly || Oe === he.default.sources.USER ? ze.record(je, Pe) : ze.transform(je));
|
|
42110
42120
|
}), ze.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, ze.undo.bind(ze)), ze.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, ze.redo.bind(ze)), /Win/i.test(navigator.platform) && ze.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, ze.redo.bind(ze)), ze;
|
|
42111
42121
|
}
|
|
42112
42122
|
return oe(we, [{
|
|
@@ -42115,8 +42125,8 @@ function requireQuill() {
|
|
|
42115
42125
|
if (this.stack[Le].length !== 0) {
|
|
42116
42126
|
var Fe = this.stack[Le].pop();
|
|
42117
42127
|
this.stack[ze].push(Fe), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Fe[Le], he.default.sources.USER), this.ignoreChange = !1;
|
|
42118
|
-
var
|
|
42119
|
-
this.quill.setSelection(
|
|
42128
|
+
var je = Ce(Fe[Le]);
|
|
42129
|
+
this.quill.setSelection(je);
|
|
42120
42130
|
}
|
|
42121
42131
|
}
|
|
42122
42132
|
}, {
|
|
@@ -42134,12 +42144,12 @@ function requireQuill() {
|
|
|
42134
42144
|
value: function(Le, ze) {
|
|
42135
42145
|
if (Le.ops.length !== 0) {
|
|
42136
42146
|
this.stack.redo = [];
|
|
42137
|
-
var Fe = this.quill.getContents().diff(ze),
|
|
42138
|
-
if (this.lastRecorded + this.options.delay >
|
|
42147
|
+
var Fe = this.quill.getContents().diff(ze), je = Date.now();
|
|
42148
|
+
if (this.lastRecorded + this.options.delay > je && this.stack.undo.length > 0) {
|
|
42139
42149
|
var Pe = this.stack.undo.pop();
|
|
42140
42150
|
Fe = Fe.compose(Pe.undo), Le = Pe.redo.compose(Le);
|
|
42141
42151
|
} else
|
|
42142
|
-
this.lastRecorded =
|
|
42152
|
+
this.lastRecorded = je;
|
|
42143
42153
|
this.stack.undo.push({
|
|
42144
42154
|
redo: Le,
|
|
42145
42155
|
undo: Fe
|
|
@@ -42194,20 +42204,20 @@ function requireQuill() {
|
|
|
42194
42204
|
value: !0
|
|
42195
42205
|
}), re.default = re.BaseTooltip = void 0;
|
|
42196
42206
|
var oe = /* @__PURE__ */ (function() {
|
|
42197
|
-
function We(
|
|
42207
|
+
function We(Be, Xe) {
|
|
42198
42208
|
for (var tt = 0; tt < Xe.length; tt++) {
|
|
42199
42209
|
var Ue = Xe[tt];
|
|
42200
|
-
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(
|
|
42210
|
+
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Be, Ue.key, Ue);
|
|
42201
42211
|
}
|
|
42202
42212
|
}
|
|
42203
|
-
return function(
|
|
42204
|
-
return Xe && We(
|
|
42213
|
+
return function(Be, Xe, tt) {
|
|
42214
|
+
return Xe && We(Be.prototype, Xe), tt && We(Be, tt), Be;
|
|
42205
42215
|
};
|
|
42206
|
-
})(), de = function We(
|
|
42207
|
-
|
|
42208
|
-
var Ue = Object.getOwnPropertyDescriptor(
|
|
42216
|
+
})(), de = function We(Be, Xe, tt) {
|
|
42217
|
+
Be === null && (Be = Function.prototype);
|
|
42218
|
+
var Ue = Object.getOwnPropertyDescriptor(Be, Xe);
|
|
42209
42219
|
if (Ue === void 0) {
|
|
42210
|
-
var Qe = Object.getPrototypeOf(
|
|
42220
|
+
var Qe = Object.getPrototypeOf(Be);
|
|
42211
42221
|
return Qe === null ? void 0 : We(Qe, Xe, tt);
|
|
42212
42222
|
} else {
|
|
42213
42223
|
if ("value" in Ue)
|
|
@@ -42215,29 +42225,29 @@ function requireQuill() {
|
|
|
42215
42225
|
var nt = Ue.get;
|
|
42216
42226
|
return nt === void 0 ? void 0 : nt.call(tt);
|
|
42217
42227
|
}
|
|
42218
|
-
}, ce = ne(3), ue =
|
|
42219
|
-
function
|
|
42228
|
+
}, ce = ne(3), ue = je(ce), he = ne(2), pe = je(he), fe = ne(8), be = je(fe), ge = ne(23), ve = je(ge), me = ne(35), _e = je(me), ye = ne(60), Ce = je(ye), Se = ne(61), we = je(Se), Ae = ne(28), Le = je(Ae), ze = ne(62), Fe = je(ze);
|
|
42229
|
+
function je(We) {
|
|
42220
42230
|
return We && We.__esModule ? We : { default: We };
|
|
42221
42231
|
}
|
|
42222
|
-
function Pe(We,
|
|
42223
|
-
if (!(We instanceof
|
|
42232
|
+
function Pe(We, Be) {
|
|
42233
|
+
if (!(We instanceof Be))
|
|
42224
42234
|
throw new TypeError("Cannot call a class as a function");
|
|
42225
42235
|
}
|
|
42226
|
-
function Oe(We,
|
|
42236
|
+
function Oe(We, Be) {
|
|
42227
42237
|
if (!We)
|
|
42228
42238
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
42229
|
-
return
|
|
42239
|
+
return Be && (typeof Be == "object" || typeof Be == "function") ? Be : We;
|
|
42230
42240
|
}
|
|
42231
|
-
function qe(We,
|
|
42232
|
-
if (typeof
|
|
42233
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
42234
|
-
We.prototype = Object.create(
|
|
42241
|
+
function qe(We, Be) {
|
|
42242
|
+
if (typeof Be != "function" && Be !== null)
|
|
42243
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Be);
|
|
42244
|
+
We.prototype = Object.create(Be && Be.prototype, { constructor: { value: We, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(We, Be) : We.__proto__ = Be);
|
|
42235
42245
|
}
|
|
42236
42246
|
var Ie = [!1, "center", "right", "justify"], Ne = ["#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], Ke = ["petita", !1, "gran", "enorme"], bt = (function(We) {
|
|
42237
|
-
qe(
|
|
42238
|
-
function
|
|
42239
|
-
Pe(this,
|
|
42240
|
-
var Ue = Oe(this, (
|
|
42247
|
+
qe(Be, We);
|
|
42248
|
+
function Be(Xe, tt) {
|
|
42249
|
+
Pe(this, Be);
|
|
42250
|
+
var Ue = Oe(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, tt)), Qe = function nt(ot) {
|
|
42241
42251
|
if (!document.body.contains(Xe.root))
|
|
42242
42252
|
return document.body.removeEventListener("click", nt);
|
|
42243
42253
|
Ue.tooltip != null && !Ue.tooltip.root.contains(ot.target) && document.activeElement !== Ue.tooltip.textbox && !Ue.quill.hasFocus() && Ue.tooltip.hide(), Ue.pickers != null && Ue.pickers.forEach(function(yt) {
|
|
@@ -42246,10 +42256,10 @@ function requireQuill() {
|
|
|
42246
42256
|
};
|
|
42247
42257
|
return Xe.emitter.listenDOM("click", document.body, Qe), Ue;
|
|
42248
42258
|
}
|
|
42249
|
-
return oe(
|
|
42259
|
+
return oe(Be, [{
|
|
42250
42260
|
key: "addModule",
|
|
42251
42261
|
value: function(tt) {
|
|
42252
|
-
var Ue = de(
|
|
42262
|
+
var Ue = de(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, tt);
|
|
42253
42263
|
return tt === "toolbar" && this.extendToolbar(Ue), Ue;
|
|
42254
42264
|
}
|
|
42255
42265
|
}, {
|
|
@@ -42290,7 +42300,7 @@ function requireQuill() {
|
|
|
42290
42300
|
};
|
|
42291
42301
|
this.quill.on(be.default.events.EDITOR_CHANGE, nt);
|
|
42292
42302
|
}
|
|
42293
|
-
}]),
|
|
42303
|
+
}]), Be;
|
|
42294
42304
|
})(_e.default);
|
|
42295
42305
|
bt.DEFAULTS = (0, ue.default)(!0, {}, _e.default.DEFAULTS, {
|
|
42296
42306
|
modules: {
|
|
@@ -42300,13 +42310,13 @@ function requireQuill() {
|
|
|
42300
42310
|
this.quill.theme.tooltip.edit("formula");
|
|
42301
42311
|
},
|
|
42302
42312
|
image: function() {
|
|
42303
|
-
var
|
|
42313
|
+
var Be = this, Xe = this.container.querySelector("input.ql-image[type=file]");
|
|
42304
42314
|
Xe == null && (Xe = document.createElement("input"), Xe.setAttribute("type", "file"), Xe.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Xe.classList.add("ql-image"), Xe.addEventListener("change", function() {
|
|
42305
42315
|
if (Xe.files != null && Xe.files[0] != null) {
|
|
42306
42316
|
var tt = new FileReader();
|
|
42307
42317
|
tt.onload = function(Ue) {
|
|
42308
|
-
var Qe =
|
|
42309
|
-
|
|
42318
|
+
var Qe = Be.quill.getSelection(!0);
|
|
42319
|
+
Be.quill.updateContents(new pe.default().retain(Qe.index).delete(Qe.length).insert({ image: Ue.target.result }), be.default.sources.USER), Be.quill.setSelection(Qe.index + 1, be.default.sources.SILENT), Xe.value = "";
|
|
42310
42320
|
}, tt.readAsDataURL(Xe.files[0]);
|
|
42311
42321
|
}
|
|
42312
42322
|
}), this.container.appendChild(Xe)), Xe.click();
|
|
@@ -42319,13 +42329,13 @@ function requireQuill() {
|
|
|
42319
42329
|
}
|
|
42320
42330
|
});
|
|
42321
42331
|
var Je = (function(We) {
|
|
42322
|
-
qe(
|
|
42323
|
-
function
|
|
42324
|
-
Pe(this,
|
|
42325
|
-
var Ue = Oe(this, (
|
|
42332
|
+
qe(Be, We);
|
|
42333
|
+
function Be(Xe, tt) {
|
|
42334
|
+
Pe(this, Be);
|
|
42335
|
+
var Ue = Oe(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, tt));
|
|
42326
42336
|
return Ue.textbox = Ue.root.querySelector('input[type="text"]'), Ue.listen(), Ue;
|
|
42327
42337
|
}
|
|
42328
|
-
return oe(
|
|
42338
|
+
return oe(Be, [{
|
|
42329
42339
|
key: "listen",
|
|
42330
42340
|
value: function() {
|
|
42331
42341
|
var tt = this;
|
|
@@ -42375,15 +42385,15 @@ function requireQuill() {
|
|
|
42375
42385
|
}
|
|
42376
42386
|
this.textbox.value = "", this.hide();
|
|
42377
42387
|
}
|
|
42378
|
-
}]),
|
|
42388
|
+
}]), Be;
|
|
42379
42389
|
})(Fe.default);
|
|
42380
42390
|
function Ye(We) {
|
|
42381
|
-
var
|
|
42382
|
-
return
|
|
42391
|
+
var Be = We.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || We.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
42392
|
+
return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = We.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : We;
|
|
42383
42393
|
}
|
|
42384
|
-
function Me(We,
|
|
42394
|
+
function Me(We, Be) {
|
|
42385
42395
|
var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
42386
|
-
|
|
42396
|
+
Be.forEach(function(tt) {
|
|
42387
42397
|
var Ue = document.createElement("option");
|
|
42388
42398
|
tt === Xe ? Ue.setAttribute("selected", "selected") : Ue.setAttribute("value", tt), We.appendChild(Ue);
|
|
42389
42399
|
});
|
|
@@ -42518,8 +42528,8 @@ function requireQuill() {
|
|
|
42518
42528
|
var Le = ce.find(Ae.target, !0);
|
|
42519
42529
|
Le != null && (Le.domNode === Ae.target && (Ae.type === "childList" ? (ye(ce.find(Ae.previousSibling, !1)), [].forEach.call(Ae.addedNodes, function(ze) {
|
|
42520
42530
|
var Fe = ce.find(ze, !1);
|
|
42521
|
-
ye(Fe, !1), Fe instanceof de.default && Fe.children.forEach(function(
|
|
42522
|
-
ye(
|
|
42531
|
+
ye(Fe, !1), Fe instanceof de.default && Fe.children.forEach(function(je) {
|
|
42532
|
+
ye(je, !1);
|
|
42523
42533
|
});
|
|
42524
42534
|
})) : Ae.type === "attributes" && ye(Le.prev)), ye(Le));
|
|
42525
42535
|
}), this.children.forEach(Ce), Se = [].slice.call(this.observer.takeRecords()), _e = Se.slice(); _e.length > 0; )
|
|
@@ -42788,10 +42798,10 @@ function requireQuill() {
|
|
|
42788
42798
|
(Le < 0 || we.length < Le) && (Le = null);
|
|
42789
42799
|
var ze = fe(we, Ae), Fe = we.substring(0, ze);
|
|
42790
42800
|
we = we.substring(ze), Ae = Ae.substring(ze), ze = be(we, Ae);
|
|
42791
|
-
var
|
|
42801
|
+
var je = we.substring(we.length - ze);
|
|
42792
42802
|
we = we.substring(0, we.length - ze), Ae = Ae.substring(0, Ae.length - ze);
|
|
42793
42803
|
var Pe = ue(we, Ae);
|
|
42794
|
-
return Fe && Pe.unshift([de, Fe]),
|
|
42804
|
+
return Fe && Pe.unshift([de, Fe]), je && Pe.push([de, je]), ve(Pe), Le != null && (Pe = ye(Pe, Le)), Pe = Ce(Pe), Pe;
|
|
42795
42805
|
}
|
|
42796
42806
|
function ue(we, Ae) {
|
|
42797
42807
|
var Le;
|
|
@@ -42799,12 +42809,12 @@ function requireQuill() {
|
|
|
42799
42809
|
return [[oe, Ae]];
|
|
42800
42810
|
if (!Ae)
|
|
42801
42811
|
return [[ne, we]];
|
|
42802
|
-
var ze = we.length > Ae.length ? we : Ae, Fe = we.length > Ae.length ? Ae : we,
|
|
42803
|
-
if (
|
|
42812
|
+
var ze = we.length > Ae.length ? we : Ae, Fe = we.length > Ae.length ? Ae : we, je = ze.indexOf(Fe);
|
|
42813
|
+
if (je != -1)
|
|
42804
42814
|
return Le = [
|
|
42805
|
-
[oe, ze.substring(0,
|
|
42815
|
+
[oe, ze.substring(0, je)],
|
|
42806
42816
|
[de, Fe],
|
|
42807
|
-
[oe, ze.substring(
|
|
42817
|
+
[oe, ze.substring(je + Fe.length)]
|
|
42808
42818
|
], we.length > Ae.length && (Le[0][0] = Le[2][0] = ne), Le;
|
|
42809
42819
|
if (Fe.length == 1)
|
|
42810
42820
|
return [[ne, we], [oe, Ae]];
|
|
@@ -42816,30 +42826,30 @@ function requireQuill() {
|
|
|
42816
42826
|
return he(we, Ae);
|
|
42817
42827
|
}
|
|
42818
42828
|
function he(we, Ae) {
|
|
42819
|
-
for (var Le = we.length, ze = Ae.length, Fe = Math.ceil((Le + ze) / 2),
|
|
42829
|
+
for (var Le = we.length, ze = Ae.length, Fe = Math.ceil((Le + ze) / 2), je = Fe, Pe = 2 * Fe, Oe = new Array(Pe), qe = new Array(Pe), Ie = 0; Ie < Pe; Ie++)
|
|
42820
42830
|
Oe[Ie] = -1, qe[Ie] = -1;
|
|
42821
|
-
Oe[
|
|
42831
|
+
Oe[je + 1] = 0, qe[je + 1] = 0;
|
|
42822
42832
|
for (var Ne = Le - ze, Ge = Ne % 2 != 0, Ze = 0, Ke = 0, bt = 0, Je = 0, Ye = 0; Ye < Fe; Ye++) {
|
|
42823
42833
|
for (var Me = -Ye + Ze; Me <= Ye - Ke; Me += 2) {
|
|
42824
|
-
var We =
|
|
42825
|
-
Me == -Ye || Me != Ye && Oe[We - 1] < Oe[We + 1] ?
|
|
42826
|
-
for (var Xe =
|
|
42827
|
-
|
|
42828
|
-
if (Oe[We] =
|
|
42834
|
+
var We = je + Me, Be;
|
|
42835
|
+
Me == -Ye || Me != Ye && Oe[We - 1] < Oe[We + 1] ? Be = Oe[We + 1] : Be = Oe[We - 1] + 1;
|
|
42836
|
+
for (var Xe = Be - Me; Be < Le && Xe < ze && we.charAt(Be) == Ae.charAt(Xe); )
|
|
42837
|
+
Be++, Xe++;
|
|
42838
|
+
if (Oe[We] = Be, Be > Le)
|
|
42829
42839
|
Ke += 2;
|
|
42830
42840
|
else if (Xe > ze)
|
|
42831
42841
|
Ze += 2;
|
|
42832
42842
|
else if (Ge) {
|
|
42833
|
-
var tt =
|
|
42843
|
+
var tt = je + Ne - Me;
|
|
42834
42844
|
if (tt >= 0 && tt < Pe && qe[tt] != -1) {
|
|
42835
42845
|
var Ue = Le - qe[tt];
|
|
42836
|
-
if (
|
|
42837
|
-
return pe(we, Ae,
|
|
42846
|
+
if (Be >= Ue)
|
|
42847
|
+
return pe(we, Ae, Be, Xe);
|
|
42838
42848
|
}
|
|
42839
42849
|
}
|
|
42840
42850
|
}
|
|
42841
42851
|
for (var Qe = -Ye + bt; Qe <= Ye - Je; Qe += 2) {
|
|
42842
|
-
var tt =
|
|
42852
|
+
var tt = je + Qe, Ue;
|
|
42843
42853
|
Qe == -Ye || Qe != Ye && qe[tt - 1] < qe[tt + 1] ? Ue = qe[tt + 1] : Ue = qe[tt - 1] + 1;
|
|
42844
42854
|
for (var nt = Ue - Qe; Ue < Le && nt < ze && we.charAt(Le - Ue - 1) == Ae.charAt(ze - nt - 1); )
|
|
42845
42855
|
Ue++, nt++;
|
|
@@ -42848,11 +42858,11 @@ function requireQuill() {
|
|
|
42848
42858
|
else if (nt > ze)
|
|
42849
42859
|
bt += 2;
|
|
42850
42860
|
else if (!Ge) {
|
|
42851
|
-
var We =
|
|
42861
|
+
var We = je + Ne - Qe;
|
|
42852
42862
|
if (We >= 0 && We < Pe && Oe[We] != -1) {
|
|
42853
|
-
var
|
|
42854
|
-
if (Ue = Le - Ue,
|
|
42855
|
-
return pe(we, Ae,
|
|
42863
|
+
var Be = Oe[We], Xe = je + Be - We;
|
|
42864
|
+
if (Ue = Le - Ue, Be >= Ue)
|
|
42865
|
+
return pe(we, Ae, Be, Xe);
|
|
42856
42866
|
}
|
|
42857
42867
|
}
|
|
42858
42868
|
}
|
|
@@ -42860,21 +42870,21 @@ function requireQuill() {
|
|
|
42860
42870
|
return [[ne, we], [oe, Ae]];
|
|
42861
42871
|
}
|
|
42862
42872
|
function pe(we, Ae, Le, ze) {
|
|
42863
|
-
var Fe = we.substring(0, Le),
|
|
42873
|
+
var Fe = we.substring(0, Le), je = Ae.substring(0, ze), Pe = we.substring(Le), Oe = Ae.substring(ze), qe = ce(Fe, je), Ie = ce(Pe, Oe);
|
|
42864
42874
|
return qe.concat(Ie);
|
|
42865
42875
|
}
|
|
42866
42876
|
function fe(we, Ae) {
|
|
42867
42877
|
if (!we || !Ae || we.charAt(0) != Ae.charAt(0))
|
|
42868
42878
|
return 0;
|
|
42869
|
-
for (var Le = 0, ze = Math.min(we.length, Ae.length), Fe = ze,
|
|
42870
|
-
we.substring(
|
|
42879
|
+
for (var Le = 0, ze = Math.min(we.length, Ae.length), Fe = ze, je = 0; Le < Fe; )
|
|
42880
|
+
we.substring(je, Fe) == Ae.substring(je, Fe) ? (Le = Fe, je = Le) : ze = Fe, Fe = Math.floor((ze - Le) / 2 + Le);
|
|
42871
42881
|
return Fe;
|
|
42872
42882
|
}
|
|
42873
42883
|
function be(we, Ae) {
|
|
42874
42884
|
if (!we || !Ae || we.charAt(we.length - 1) != Ae.charAt(Ae.length - 1))
|
|
42875
42885
|
return 0;
|
|
42876
|
-
for (var Le = 0, ze = Math.min(we.length, Ae.length), Fe = ze,
|
|
42877
|
-
we.substring(we.length - Fe, we.length -
|
|
42886
|
+
for (var Le = 0, ze = Math.min(we.length, Ae.length), Fe = ze, je = 0; Le < Fe; )
|
|
42887
|
+
we.substring(we.length - Fe, we.length - je) == Ae.substring(Ae.length - Fe, Ae.length - je) ? (Le = Fe, je = Le) : ze = Fe, Fe = Math.floor((ze - Le) / 2 + Le);
|
|
42878
42888
|
return Fe;
|
|
42879
42889
|
}
|
|
42880
42890
|
function ge(we, Ae) {
|
|
@@ -42882,7 +42892,7 @@ function requireQuill() {
|
|
|
42882
42892
|
if (Le.length < 4 || ze.length * 2 < Le.length)
|
|
42883
42893
|
return null;
|
|
42884
42894
|
function Fe(Ke, bt, Je) {
|
|
42885
|
-
for (var Ye = Ke.substring(Je, Je + Math.floor(Ke.length / 4)), Me = -1, We = "",
|
|
42895
|
+
for (var Ye = Ke.substring(Je, Je + Math.floor(Ke.length / 4)), Me = -1, We = "", Be, Xe, tt, Ue; (Me = bt.indexOf(Ye, Me + 1)) != -1; ) {
|
|
42886
42896
|
var Qe = fe(
|
|
42887
42897
|
Ke.substring(Je),
|
|
42888
42898
|
bt.substring(Me)
|
|
@@ -42890,17 +42900,17 @@ function requireQuill() {
|
|
|
42890
42900
|
Ke.substring(0, Je),
|
|
42891
42901
|
bt.substring(0, Me)
|
|
42892
42902
|
);
|
|
42893
|
-
We.length < nt + Qe && (We = bt.substring(Me - nt, Me) + bt.substring(Me, Me + Qe),
|
|
42903
|
+
We.length < nt + Qe && (We = bt.substring(Me - nt, Me) + bt.substring(Me, Me + Qe), Be = Ke.substring(0, Je - nt), Xe = Ke.substring(Je + Qe), tt = bt.substring(0, Me - nt), Ue = bt.substring(Me + Qe));
|
|
42894
42904
|
}
|
|
42895
42905
|
return We.length * 2 >= Ke.length ? [
|
|
42896
|
-
|
|
42906
|
+
Be,
|
|
42897
42907
|
Xe,
|
|
42898
42908
|
tt,
|
|
42899
42909
|
Ue,
|
|
42900
42910
|
We
|
|
42901
42911
|
] : null;
|
|
42902
42912
|
}
|
|
42903
|
-
var
|
|
42913
|
+
var je = Fe(
|
|
42904
42914
|
Le,
|
|
42905
42915
|
ze,
|
|
42906
42916
|
Math.ceil(Le.length / 4)
|
|
@@ -42909,9 +42919,9 @@ function requireQuill() {
|
|
|
42909
42919
|
ze,
|
|
42910
42920
|
Math.ceil(Le.length / 2)
|
|
42911
42921
|
), Oe;
|
|
42912
|
-
if (!
|
|
42922
|
+
if (!je && !Pe)
|
|
42913
42923
|
return null;
|
|
42914
|
-
Pe ?
|
|
42924
|
+
Pe ? je ? Oe = je[4].length > Pe[4].length ? je : Pe : Oe = Pe : Oe = je;
|
|
42915
42925
|
var qe, Ie, Ne, Ge;
|
|
42916
42926
|
we.length > Ae.length ? (qe = Oe[0], Ie = Oe[1], Ne = Oe[2], Ge = Oe[3]) : (Ne = Oe[0], Ge = Oe[1], qe = Oe[2], Ie = Oe[3]);
|
|
42917
42927
|
var Ze = Oe[4];
|
|
@@ -42919,22 +42929,22 @@ function requireQuill() {
|
|
|
42919
42929
|
}
|
|
42920
42930
|
function ve(we) {
|
|
42921
42931
|
we.push([de, ""]);
|
|
42922
|
-
for (var Ae = 0, Le = 0, ze = 0, Fe = "",
|
|
42932
|
+
for (var Ae = 0, Le = 0, ze = 0, Fe = "", je = "", Pe; Ae < we.length; )
|
|
42923
42933
|
switch (we[Ae][0]) {
|
|
42924
42934
|
case oe:
|
|
42925
|
-
ze++,
|
|
42935
|
+
ze++, je += we[Ae][1], Ae++;
|
|
42926
42936
|
break;
|
|
42927
42937
|
case ne:
|
|
42928
42938
|
Le++, Fe += we[Ae][1], Ae++;
|
|
42929
42939
|
break;
|
|
42930
42940
|
case de:
|
|
42931
|
-
Le + ze > 1 ? (Le !== 0 && ze !== 0 && (Pe = fe(
|
|
42941
|
+
Le + ze > 1 ? (Le !== 0 && ze !== 0 && (Pe = fe(je, Fe), Pe !== 0 && (Ae - Le - ze > 0 && we[Ae - Le - ze - 1][0] == de ? we[Ae - Le - ze - 1][1] += je.substring(0, Pe) : (we.splice(0, 0, [
|
|
42932
42942
|
de,
|
|
42933
|
-
|
|
42934
|
-
]), Ae++),
|
|
42943
|
+
je.substring(0, Pe)
|
|
42944
|
+
]), Ae++), je = je.substring(Pe), Fe = Fe.substring(Pe)), Pe = be(je, Fe), Pe !== 0 && (we[Ae][1] = je.substring(je.length - Pe) + we[Ae][1], je = je.substring(0, je.length - Pe), Fe = Fe.substring(0, Fe.length - Pe))), Le === 0 ? we.splice(
|
|
42935
42945
|
Ae - ze,
|
|
42936
42946
|
Le + ze,
|
|
42937
|
-
[oe,
|
|
42947
|
+
[oe, je]
|
|
42938
42948
|
) : ze === 0 ? we.splice(
|
|
42939
42949
|
Ae - Le,
|
|
42940
42950
|
Le + ze,
|
|
@@ -42943,8 +42953,8 @@ function requireQuill() {
|
|
|
42943
42953
|
Ae - Le - ze,
|
|
42944
42954
|
Le + ze,
|
|
42945
42955
|
[ne, Fe],
|
|
42946
|
-
[oe,
|
|
42947
|
-
), Ae = Ae - Le - ze + (Le ? 1 : 0) + (ze ? 1 : 0) + 1) : Ae !== 0 && we[Ae - 1][0] == de ? (we[Ae - 1][1] += we[Ae][1], we.splice(Ae, 1)) : Ae++, ze = 0, Le = 0, Fe = "",
|
|
42956
|
+
[oe, je]
|
|
42957
|
+
), Ae = Ae - Le - ze + (Le ? 1 : 0) + (ze ? 1 : 0) + 1) : Ae !== 0 && we[Ae - 1][0] == de ? (we[Ae - 1][1] += we[Ae][1], we.splice(Ae, 1)) : Ae++, ze = 0, Le = 0, Fe = "", je = "";
|
|
42948
42958
|
break;
|
|
42949
42959
|
}
|
|
42950
42960
|
we[we.length - 1][1] === "" && we.pop();
|
|
@@ -42961,30 +42971,30 @@ function requireQuill() {
|
|
|
42961
42971
|
for (var Le = 0, ze = 0; ze < we.length; ze++) {
|
|
42962
42972
|
var Fe = we[ze];
|
|
42963
42973
|
if (Fe[0] === ne || Fe[0] === de) {
|
|
42964
|
-
var
|
|
42965
|
-
if (Ae ===
|
|
42974
|
+
var je = Le + Fe[1].length;
|
|
42975
|
+
if (Ae === je)
|
|
42966
42976
|
return [ze + 1, we];
|
|
42967
|
-
if (Ae <
|
|
42977
|
+
if (Ae < je) {
|
|
42968
42978
|
we = we.slice();
|
|
42969
42979
|
var Pe = Ae - Le, Oe = [Fe[0], Fe[1].slice(0, Pe)], qe = [Fe[0], Fe[1].slice(Pe)];
|
|
42970
42980
|
return we.splice(ze, 1, Oe, qe), [ze + 1, we];
|
|
42971
42981
|
} else
|
|
42972
|
-
Le =
|
|
42982
|
+
Le = je;
|
|
42973
42983
|
}
|
|
42974
42984
|
}
|
|
42975
42985
|
throw new Error("cursor_pos is out of bounds!");
|
|
42976
42986
|
}
|
|
42977
42987
|
function ye(we, Ae) {
|
|
42978
|
-
var Le = _e(we, Ae), ze = Le[1], Fe = Le[0],
|
|
42979
|
-
if (
|
|
42988
|
+
var Le = _e(we, Ae), ze = Le[1], Fe = Le[0], je = ze[Fe], Pe = ze[Fe + 1];
|
|
42989
|
+
if (je == null)
|
|
42980
42990
|
return we;
|
|
42981
|
-
if (
|
|
42991
|
+
if (je[0] !== de)
|
|
42982
42992
|
return we;
|
|
42983
|
-
if (Pe != null &&
|
|
42984
|
-
return ze.splice(Fe, 2, Pe,
|
|
42985
|
-
if (Pe != null && Pe[1].indexOf(
|
|
42986
|
-
ze.splice(Fe, 2, [Pe[0],
|
|
42987
|
-
var Oe = Pe[1].slice(
|
|
42993
|
+
if (Pe != null && je[1] + Pe[1] === Pe[1] + je[1])
|
|
42994
|
+
return ze.splice(Fe, 2, Pe, je), Se(ze, Fe, 2);
|
|
42995
|
+
if (Pe != null && Pe[1].indexOf(je[1]) === 0) {
|
|
42996
|
+
ze.splice(Fe, 2, [Pe[0], je[1]], [0, je[1]]);
|
|
42997
|
+
var Oe = Pe[1].slice(je[1].length);
|
|
42988
42998
|
return Oe.length > 0 && ze.splice(Fe + 2, 0, [Pe[0], Oe]), Se(ze, Fe, 3);
|
|
42989
42999
|
} else
|
|
42990
43000
|
return we;
|
|
@@ -42998,15 +43008,15 @@ function requireQuill() {
|
|
|
42998
43008
|
we[Fe - 2][0] === de && ze(we[Fe - 2][1]) && we[Fe - 1][0] === ne && Le(we[Fe - 1][1]) && we[Fe][0] === oe && Le(we[Fe][1]) && (Ae = !0, we[Fe - 1][1] = we[Fe - 2][1].slice(-1) + we[Fe - 1][1], we[Fe][1] = we[Fe - 2][1].slice(-1) + we[Fe][1], we[Fe - 2][1] = we[Fe - 2][1].slice(0, -1));
|
|
42999
43009
|
if (!Ae)
|
|
43000
43010
|
return we;
|
|
43001
|
-
for (var
|
|
43002
|
-
we[Fe][1].length > 0 &&
|
|
43003
|
-
return
|
|
43011
|
+
for (var je = [], Fe = 0; Fe < we.length; Fe += 1)
|
|
43012
|
+
we[Fe][1].length > 0 && je.push(we[Fe]);
|
|
43013
|
+
return je;
|
|
43004
43014
|
}
|
|
43005
43015
|
function Se(we, Ae, Le) {
|
|
43006
43016
|
for (var ze = Ae + Le - 1; ze >= 0 && ze >= Ae - 1; ze--)
|
|
43007
43017
|
if (ze + 1 < we.length) {
|
|
43008
|
-
var Fe = we[ze],
|
|
43009
|
-
Fe[0] ===
|
|
43018
|
+
var Fe = we[ze], je = we[ze + 1];
|
|
43019
|
+
Fe[0] === je[1] && we.splice(ze, 2, [Fe[0], Fe[1] + je[1]]);
|
|
43010
43020
|
}
|
|
43011
43021
|
return we;
|
|
43012
43022
|
}
|
|
@@ -43179,7 +43189,7 @@ function requireQuill() {
|
|
|
43179
43189
|
return function(vt, kt, At) {
|
|
43180
43190
|
return kt && mt(vt.prototype, kt), At && mt(vt, At), vt;
|
|
43181
43191
|
};
|
|
43182
|
-
})(), ue = ne(3), he = qe(ue), pe = ne(2), fe = qe(pe), be = ne(0), ge = qe(be), ve = ne(5), me = qe(ve), _e = ne(10), ye = qe(_e), Ce = ne(9), Se = qe(Ce), we = ne(37), Ae = ne(38), Le = ne(13), ze = qe(Le), Fe = ne(26),
|
|
43192
|
+
})(), ue = ne(3), he = qe(ue), pe = ne(2), fe = qe(pe), be = ne(0), ge = qe(be), ve = ne(5), me = qe(ve), _e = ne(10), ye = qe(_e), Ce = ne(9), Se = qe(Ce), we = ne(37), Ae = ne(38), Le = ne(13), ze = qe(Le), Fe = ne(26), je = ne(39), Pe = ne(40), Oe = ne(41);
|
|
43183
43193
|
function qe(mt) {
|
|
43184
43194
|
return mt && mt.__esModule ? mt : { default: mt };
|
|
43185
43195
|
}
|
|
@@ -43200,9 +43210,9 @@ function requireQuill() {
|
|
|
43200
43210
|
throw new TypeError("Super expression must either be null or a function, not " + typeof vt);
|
|
43201
43211
|
mt.prototype = Object.create(vt && vt.prototype, { constructor: { value: mt, enumerable: !1, writable: !0, configurable: !0 } }), vt && (Object.setPrototypeOf ? Object.setPrototypeOf(mt, vt) : mt.__proto__ = vt);
|
|
43202
43212
|
}
|
|
43203
|
-
var Ke = (0, ye.default)("quill:clipboard"), bt = "__ql-matcher", Je = [[Node.TEXT_NODE, Xt], [Node.TEXT_NODE, Nt], ["br", Ct], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, yt], [Node.ELEMENT_NODE, Ut], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, ns], ["li", qt], ["b", nt.bind(nt, "bold")], ["i", nt.bind(nt, "italic")], ["style", Pt]], Ye = [we.AlignAttribute,
|
|
43213
|
+
var Ke = (0, ye.default)("quill:clipboard"), bt = "__ql-matcher", Je = [[Node.TEXT_NODE, Xt], [Node.TEXT_NODE, Nt], ["br", Ct], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, yt], [Node.ELEMENT_NODE, Ut], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, ns], ["li", qt], ["b", nt.bind(nt, "bold")], ["i", nt.bind(nt, "italic")], ["style", Pt]], Ye = [we.AlignAttribute, je.DirectionAttribute].reduce(function(mt, vt) {
|
|
43204
43214
|
return mt[vt.keyName] = vt, mt;
|
|
43205
|
-
}, {}), Me = [we.AlignStyle, Ae.BackgroundStyle, Fe.ColorStyle,
|
|
43215
|
+
}, {}), Me = [we.AlignStyle, Ae.BackgroundStyle, Fe.ColorStyle, je.DirectionStyle, Pe.FontStyle, Oe.SizeStyle].reduce(function(mt, vt) {
|
|
43206
43216
|
return mt[vt.keyName] = vt, mt;
|
|
43207
43217
|
}, {}), We = (function(mt) {
|
|
43208
43218
|
Ze(vt, mt);
|
|
@@ -43282,9 +43292,9 @@ function requireQuill() {
|
|
|
43282
43292
|
matchers: [],
|
|
43283
43293
|
matchVisual: !0
|
|
43284
43294
|
};
|
|
43285
|
-
function
|
|
43295
|
+
function Be(mt, vt, kt) {
|
|
43286
43296
|
return (typeof vt > "u" ? "undefined" : oe(vt)) === "object" ? Object.keys(vt).reduce(function(At, $t) {
|
|
43287
|
-
return
|
|
43297
|
+
return Be(At, $t, vt[$t]);
|
|
43288
43298
|
}, mt) : mt.reduce(function(At, $t) {
|
|
43289
43299
|
return $t.attributes && $t.attributes[vt] ? At.push($t) : At.insert($t.insert, (0, he.default)({}, Ie({}, vt, kt), $t.attributes));
|
|
43290
43300
|
}, new fe.default());
|
|
@@ -43320,14 +43330,14 @@ function requireQuill() {
|
|
|
43320
43330
|
}, new fe.default()) : new fe.default();
|
|
43321
43331
|
}
|
|
43322
43332
|
function nt(mt, vt, kt) {
|
|
43323
|
-
return
|
|
43333
|
+
return Be(kt, mt, !0);
|
|
43324
43334
|
}
|
|
43325
43335
|
function ot(mt, vt) {
|
|
43326
43336
|
var kt = ge.default.Attributor.Attribute.keys(mt), At = ge.default.Attributor.Class.keys(mt), $t = ge.default.Attributor.Style.keys(mt), Mt = {};
|
|
43327
43337
|
return kt.concat(At).concat($t).forEach(function(Ft) {
|
|
43328
43338
|
var Ht = ge.default.query(Ft, ge.default.Scope.ATTRIBUTE);
|
|
43329
43339
|
Ht != null && (Mt[Ht.attrName] = Ht.value(mt), Mt[Ht.attrName]) || (Ht = Ye[Ft], Ht != null && (Ht.attrName === Ft || Ht.keyName === Ft) && (Mt[Ht.attrName] = Ht.value(mt) || void 0), Ht = Me[Ft], Ht != null && (Ht.attrName === Ft || Ht.keyName === Ft) && (Ht = Me[Ft], Mt[Ht.attrName] = Ht.value(mt) || void 0));
|
|
43330
|
-
}), Object.keys(Mt).length > 0 && (vt =
|
|
43340
|
+
}), Object.keys(Mt).length > 0 && (vt = Be(vt, Mt)), vt;
|
|
43331
43341
|
}
|
|
43332
43342
|
function yt(mt, vt) {
|
|
43333
43343
|
var kt = ge.default.query(mt);
|
|
@@ -43335,7 +43345,7 @@ function requireQuill() {
|
|
|
43335
43345
|
if (kt.prototype instanceof ge.default.Embed) {
|
|
43336
43346
|
var At = {}, $t = kt.value(mt);
|
|
43337
43347
|
$t != null && (At[kt.blotName] = $t, vt = new fe.default().insert(At, kt.formats(mt)));
|
|
43338
|
-
} else typeof kt.formats == "function" && (vt =
|
|
43348
|
+
} else typeof kt.formats == "function" && (vt = Be(vt, kt.blotName, kt.formats(mt)));
|
|
43339
43349
|
return vt;
|
|
43340
43350
|
}
|
|
43341
43351
|
function Ct(mt, vt) {
|
|
@@ -43372,7 +43382,7 @@ function requireQuill() {
|
|
|
43372
43382
|
}
|
|
43373
43383
|
function ns(mt, vt) {
|
|
43374
43384
|
var kt = {}, At = mt.style || {};
|
|
43375
|
-
return At.fontStyle && Xe(mt).fontStyle === "italic" && (kt.italic = !0), At.fontWeight && (Xe(mt).fontWeight.startsWith("bold") || parseInt(Xe(mt).fontWeight) >= 700) && (kt.bold = !0), Object.keys(kt).length > 0 && (vt =
|
|
43385
|
+
return At.fontStyle && Xe(mt).fontStyle === "italic" && (kt.italic = !0), At.fontWeight && (Xe(mt).fontWeight.startsWith("bold") || parseInt(Xe(mt).fontWeight) >= 700) && (kt.bold = !0), Object.keys(kt).length > 0 && (vt = Be(vt, kt)), parseFloat(At.textIndent || 0) > 0 && (vt = new fe.default().insert(" ").concat(vt)), vt;
|
|
43376
43386
|
}
|
|
43377
43387
|
function Xt(mt, vt) {
|
|
43378
43388
|
var kt = mt.data;
|
|
@@ -43581,7 +43591,7 @@ function requireQuill() {
|
|
|
43581
43591
|
} else
|
|
43582
43592
|
Ge.classList.contains("ql-active") ? Ye = !1 : Ye = Ge.value || !Ge.hasAttribute("value"), Je.preventDefault();
|
|
43583
43593
|
Ze.quill.focus();
|
|
43584
|
-
var We = Ze.quill.selection.getRange(),
|
|
43594
|
+
var We = Ze.quill.selection.getRange(), Be = oe(We, 1), Xe = Be[0];
|
|
43585
43595
|
if (Ze.handlers[Ke] != null)
|
|
43586
43596
|
Ze.handlers[Ke].call(Ze, Ye);
|
|
43587
43597
|
else if (pe.default.query(Ke).prototype instanceof pe.default.Embed) {
|
|
@@ -43613,8 +43623,8 @@ function requireQuill() {
|
|
|
43613
43623
|
} else if (Ge == null)
|
|
43614
43624
|
Ye.classList.remove("ql-active");
|
|
43615
43625
|
else if (Ye.hasAttribute("value")) {
|
|
43616
|
-
var
|
|
43617
|
-
Ye.classList.toggle("ql-active",
|
|
43626
|
+
var Be = Ze[Je] === Ye.getAttribute("value") || Ze[Je] != null && Ze[Je].toString() === Ye.getAttribute("value") || Ze[Je] == null && !Ye.getAttribute("value");
|
|
43627
|
+
Ye.classList.toggle("ql-active", Be);
|
|
43618
43628
|
} else
|
|
43619
43629
|
Ye.classList.toggle("ql-active", Ze[Je] != null);
|
|
43620
43630
|
});
|
|
@@ -43622,7 +43632,7 @@ function requireQuill() {
|
|
|
43622
43632
|
}]), Ie;
|
|
43623
43633
|
})(_e.default);
|
|
43624
43634
|
Fe.DEFAULTS = {};
|
|
43625
|
-
function
|
|
43635
|
+
function je(qe, Ie, Ne) {
|
|
43626
43636
|
var Ge = document.createElement("button");
|
|
43627
43637
|
Ge.setAttribute("type", "button"), Ge.classList.add("ql-" + Ie), Ne != null && (Ge.value = Ne), qe.appendChild(Ge);
|
|
43628
43638
|
}
|
|
@@ -43631,10 +43641,10 @@ function requireQuill() {
|
|
|
43631
43641
|
var Ge = document.createElement("span");
|
|
43632
43642
|
Ge.classList.add("ql-formats"), Ne.forEach(function(Ze) {
|
|
43633
43643
|
if (typeof Ze == "string")
|
|
43634
|
-
|
|
43644
|
+
je(Ge, Ze);
|
|
43635
43645
|
else {
|
|
43636
43646
|
var Ke = Object.keys(Ze)[0], bt = Ze[Ke];
|
|
43637
|
-
Array.isArray(bt) ? Oe(Ge, Ke, bt) :
|
|
43647
|
+
Array.isArray(bt) ? Oe(Ge, Ke, bt) : je(Ge, Ke, bt);
|
|
43638
43648
|
}
|
|
43639
43649
|
}), qe.appendChild(Ge);
|
|
43640
43650
|
});
|
|
@@ -43956,7 +43966,7 @@ function requireQuill() {
|
|
|
43956
43966
|
return ce(Oe, [{
|
|
43957
43967
|
key: "extendToolbar",
|
|
43958
43968
|
value: function(Ie) {
|
|
43959
|
-
Ie.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Ie.container.querySelectorAll("button")), Ce.default), this.buildPickers([].slice.call(Ie.container.querySelectorAll("select")), Ce.default), this.tooltip = new
|
|
43969
|
+
Ie.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Ie.container.querySelectorAll("button")), Ce.default), this.buildPickers([].slice.call(Ie.container.querySelectorAll("select")), Ce.default), this.tooltip = new je(this.quill, this.options.bounds), Ie.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(Ne, Ge) {
|
|
43960
43970
|
Ie.handlers.link.call(Ie, !Ge.format.link);
|
|
43961
43971
|
});
|
|
43962
43972
|
}
|
|
@@ -43981,7 +43991,7 @@ function requireQuill() {
|
|
|
43981
43991
|
}
|
|
43982
43992
|
}
|
|
43983
43993
|
});
|
|
43984
|
-
var
|
|
43994
|
+
var je = (function(Pe) {
|
|
43985
43995
|
Le(Oe, Pe);
|
|
43986
43996
|
function Oe(qe, Ie) {
|
|
43987
43997
|
we(this, Oe);
|
|
@@ -44023,7 +44033,7 @@ function requireQuill() {
|
|
|
44023
44033
|
}
|
|
44024
44034
|
}]), Oe;
|
|
44025
44035
|
})(be.BaseTooltip);
|
|
44026
|
-
|
|
44036
|
+
je.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), re.default = Fe;
|
|
44027
44037
|
}),
|
|
44028
44038
|
/* 64 */
|
|
44029
44039
|
/***/
|
|
@@ -44031,7 +44041,7 @@ function requireQuill() {
|
|
|
44031
44041
|
Object.defineProperty(re, "__esModule", {
|
|
44032
44042
|
value: !0
|
|
44033
44043
|
});
|
|
44034
|
-
var oe = ne(29), de = $t(oe), ce = ne(37), ue = ne(39), he = ne(65), pe = ne(66), fe = $t(pe), be = ne(67), ge = $t(be), ve = ne(68), me = $t(ve), _e = ne(38), ye = ne(26), Ce = ne(40), Se = ne(41), we = ne(57), Ae = $t(we), Le = ne(69), ze = $t(Le), Fe = ne(27),
|
|
44044
|
+
var oe = ne(29), de = $t(oe), ce = ne(37), ue = ne(39), he = ne(65), pe = ne(66), fe = $t(pe), be = ne(67), ge = $t(be), ve = ne(68), me = $t(ve), _e = ne(38), ye = ne(26), Ce = ne(40), Se = ne(41), we = ne(57), Ae = $t(we), Le = ne(69), ze = $t(Le), Fe = ne(27), je = $t(Fe), Pe = ne(70), Oe = $t(Pe), qe = ne(71), Ie = $t(qe), Ne = ne(72), Ge = $t(Ne), Ze = ne(73), Ke = $t(Ze), bt = ne(74), Je = $t(bt), Ye = ne(13), Me = $t(Ye), We = ne(75), Be = $t(We), Xe = ne(76), tt = $t(Xe), Ue = ne(58), Qe = $t(Ue), nt = ne(42), ot = $t(nt), yt = ne(28), Ct = $t(yt), Pt = ne(60), qt = $t(Pt), Nt = ne(61), Ut = $t(Nt), ns = ne(62), Xt = $t(ns), mt = ne(109), vt = $t(mt), kt = ne(63), At = $t(kt);
|
|
44035
44045
|
function $t(Mt) {
|
|
44036
44046
|
return Mt && Mt.__esModule ? Mt : { default: Mt };
|
|
44037
44047
|
}
|
|
@@ -44064,14 +44074,14 @@ function requireQuill() {
|
|
|
44064
44074
|
"formats/bold": Ae.default,
|
|
44065
44075
|
"formats/code": Ye.Code,
|
|
44066
44076
|
"formats/italic": ze.default,
|
|
44067
|
-
"formats/link":
|
|
44077
|
+
"formats/link": je.default,
|
|
44068
44078
|
"formats/script": Oe.default,
|
|
44069
44079
|
"formats/strike": Ie.default,
|
|
44070
44080
|
"formats/underline": Ge.default,
|
|
44071
44081
|
"formats/image": Ke.default,
|
|
44072
44082
|
"formats/video": Je.default,
|
|
44073
44083
|
"formats/list/item": ve.ListItem,
|
|
44074
|
-
"modules/formula":
|
|
44084
|
+
"modules/formula": Be.default,
|
|
44075
44085
|
"modules/syntax": tt.default,
|
|
44076
44086
|
"modules/toolbar": Qe.default,
|
|
44077
44087
|
"themes/bubble": vt.default,
|
|
@@ -44261,8 +44271,8 @@ function requireQuill() {
|
|
|
44261
44271
|
Ae === null && (Ae = Function.prototype);
|
|
44262
44272
|
var Fe = Object.getOwnPropertyDescriptor(Ae, Le);
|
|
44263
44273
|
if (Fe === void 0) {
|
|
44264
|
-
var
|
|
44265
|
-
return
|
|
44274
|
+
var je = Object.getPrototypeOf(Ae);
|
|
44275
|
+
return je === null ? void 0 : we(je, Le, ze);
|
|
44266
44276
|
} else {
|
|
44267
44277
|
if ("value" in Fe)
|
|
44268
44278
|
return Fe.value;
|
|
@@ -44322,8 +44332,8 @@ function requireQuill() {
|
|
|
44322
44332
|
ye(Ae, we), oe(Ae, null, [{
|
|
44323
44333
|
key: "create",
|
|
44324
44334
|
value: function(ze) {
|
|
44325
|
-
var Fe = ze === "ordered" ? "OL" : "UL",
|
|
44326
|
-
return (ze === "checked" || ze === "unchecked") &&
|
|
44335
|
+
var Fe = ze === "ordered" ? "OL" : "UL", je = de(Ae.__proto__ || Object.getPrototypeOf(Ae), "create", this).call(this, Fe);
|
|
44336
|
+
return (ze === "checked" || ze === "unchecked") && je.setAttribute("data-checked", ze === "checked"), je;
|
|
44327
44337
|
}
|
|
44328
44338
|
}, {
|
|
44329
44339
|
key: "formats",
|
|
@@ -44359,7 +44369,7 @@ function requireQuill() {
|
|
|
44359
44369
|
if (ze instanceof Ce)
|
|
44360
44370
|
de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertBefore", this).call(this, ze, Fe);
|
|
44361
44371
|
else {
|
|
44362
|
-
var
|
|
44372
|
+
var je = Fe == null ? this.length() : Fe.offset(this), Pe = this.split(je);
|
|
44363
44373
|
Pe.parent.insertBefore(ze, Pe);
|
|
44364
44374
|
}
|
|
44365
44375
|
}
|
|
@@ -44744,8 +44754,8 @@ function requireQuill() {
|
|
|
44744
44754
|
} else {
|
|
44745
44755
|
if ("value" in ze)
|
|
44746
44756
|
return ze.value;
|
|
44747
|
-
var
|
|
44748
|
-
return
|
|
44757
|
+
var je = ze.get;
|
|
44758
|
+
return je === void 0 ? void 0 : je.call(Le);
|
|
44749
44759
|
}
|
|
44750
44760
|
}, ce = ne(36), ue = ge(ce), he = ne(5), pe = ge(he), fe = ne(9), be = ge(fe);
|
|
44751
44761
|
function ge(Se) {
|
|
@@ -44813,25 +44823,25 @@ function requireQuill() {
|
|
|
44813
44823
|
}), re.default = re.CodeToken = re.CodeBlock = void 0;
|
|
44814
44824
|
var oe = /* @__PURE__ */ (function() {
|
|
44815
44825
|
function Le(ze, Fe) {
|
|
44816
|
-
for (var
|
|
44817
|
-
var Pe = Fe[
|
|
44826
|
+
for (var je = 0; je < Fe.length; je++) {
|
|
44827
|
+
var Pe = Fe[je];
|
|
44818
44828
|
Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(ze, Pe.key, Pe);
|
|
44819
44829
|
}
|
|
44820
44830
|
}
|
|
44821
|
-
return function(ze, Fe,
|
|
44822
|
-
return Fe && Le(ze.prototype, Fe),
|
|
44831
|
+
return function(ze, Fe, je) {
|
|
44832
|
+
return Fe && Le(ze.prototype, Fe), je && Le(ze, je), ze;
|
|
44823
44833
|
};
|
|
44824
|
-
})(), de = function Le(ze, Fe,
|
|
44834
|
+
})(), de = function Le(ze, Fe, je) {
|
|
44825
44835
|
ze === null && (ze = Function.prototype);
|
|
44826
44836
|
var Pe = Object.getOwnPropertyDescriptor(ze, Fe);
|
|
44827
44837
|
if (Pe === void 0) {
|
|
44828
44838
|
var Oe = Object.getPrototypeOf(ze);
|
|
44829
|
-
return Oe === null ? void 0 : Le(Oe, Fe,
|
|
44839
|
+
return Oe === null ? void 0 : Le(Oe, Fe, je);
|
|
44830
44840
|
} else {
|
|
44831
44841
|
if ("value" in Pe)
|
|
44832
44842
|
return Pe.value;
|
|
44833
44843
|
var qe = Pe.get;
|
|
44834
|
-
return qe === void 0 ? void 0 : qe.call(
|
|
44844
|
+
return qe === void 0 ? void 0 : qe.call(je);
|
|
44835
44845
|
}
|
|
44836
44846
|
}, ce = ne(0), ue = me(ce), he = ne(5), pe = me(he), fe = ne(9), be = me(fe), ge = ne(13), ve = me(ge);
|
|
44837
44847
|
function me(Le) {
|
|
@@ -44858,14 +44868,14 @@ function requireQuill() {
|
|
|
44858
44868
|
}
|
|
44859
44869
|
return oe(ze, [{
|
|
44860
44870
|
key: "replaceWith",
|
|
44861
|
-
value: function(
|
|
44862
|
-
this.domNode.textContent = this.domNode.textContent, this.attach(), de(ze.prototype.__proto__ || Object.getPrototypeOf(ze.prototype), "replaceWith", this).call(this,
|
|
44871
|
+
value: function(je) {
|
|
44872
|
+
this.domNode.textContent = this.domNode.textContent, this.attach(), de(ze.prototype.__proto__ || Object.getPrototypeOf(ze.prototype), "replaceWith", this).call(this, je);
|
|
44863
44873
|
}
|
|
44864
44874
|
}, {
|
|
44865
44875
|
key: "highlight",
|
|
44866
|
-
value: function(
|
|
44876
|
+
value: function(je) {
|
|
44867
44877
|
var Pe = this.domNode.textContent;
|
|
44868
|
-
this.cachedText !== Pe && ((Pe.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML =
|
|
44878
|
+
this.cachedText !== Pe && ((Pe.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML = je(Pe), this.domNode.normalize(), this.attach()), this.cachedText = Pe);
|
|
44869
44879
|
}
|
|
44870
44880
|
}]), ze;
|
|
44871
44881
|
})(ve.default);
|
|
@@ -44879,9 +44889,9 @@ function requireQuill() {
|
|
|
44879
44889
|
pe.default.register(we, !0), pe.default.register(Se, !0);
|
|
44880
44890
|
}
|
|
44881
44891
|
}]);
|
|
44882
|
-
function ze(Fe,
|
|
44892
|
+
function ze(Fe, je) {
|
|
44883
44893
|
_e(this, ze);
|
|
44884
|
-
var Pe = ye(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Fe,
|
|
44894
|
+
var Pe = ye(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Fe, je));
|
|
44885
44895
|
if (typeof Pe.options.highlight != "function")
|
|
44886
44896
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
44887
44897
|
var Oe = null;
|
|
@@ -44894,12 +44904,12 @@ function requireQuill() {
|
|
|
44894
44904
|
return oe(ze, [{
|
|
44895
44905
|
key: "highlight",
|
|
44896
44906
|
value: function() {
|
|
44897
|
-
var
|
|
44907
|
+
var je = this;
|
|
44898
44908
|
if (!this.quill.selection.composing) {
|
|
44899
44909
|
this.quill.update(pe.default.sources.USER);
|
|
44900
44910
|
var Pe = this.quill.getSelection();
|
|
44901
44911
|
this.quill.scroll.descendants(Se).forEach(function(Oe) {
|
|
44902
|
-
Oe.highlight(
|
|
44912
|
+
Oe.highlight(je.options.highlight);
|
|
44903
44913
|
}), this.quill.update(pe.default.sources.SILENT), Pe != null && this.quill.setSelection(Pe, pe.default.sources.SILENT);
|
|
44904
44914
|
}
|
|
44905
44915
|
}
|
|
@@ -45081,12 +45091,12 @@ function requireQuill() {
|
|
|
45081
45091
|
Object.defineProperty(re, "__esModule", {
|
|
45082
45092
|
value: !0
|
|
45083
45093
|
}), re.default = re.BubbleTooltip = void 0;
|
|
45084
|
-
var oe = function ze(Fe,
|
|
45094
|
+
var oe = function ze(Fe, je, Pe) {
|
|
45085
45095
|
Fe === null && (Fe = Function.prototype);
|
|
45086
|
-
var Oe = Object.getOwnPropertyDescriptor(Fe,
|
|
45096
|
+
var Oe = Object.getOwnPropertyDescriptor(Fe, je);
|
|
45087
45097
|
if (Oe === void 0) {
|
|
45088
45098
|
var qe = Object.getPrototypeOf(Fe);
|
|
45089
|
-
return qe === null ? void 0 : ze(qe,
|
|
45099
|
+
return qe === null ? void 0 : ze(qe, je, Pe);
|
|
45090
45100
|
} else {
|
|
45091
45101
|
if ("value" in Oe)
|
|
45092
45102
|
return Oe.value;
|
|
@@ -45094,14 +45104,14 @@ function requireQuill() {
|
|
|
45094
45104
|
return Ie === void 0 ? void 0 : Ie.call(Pe);
|
|
45095
45105
|
}
|
|
45096
45106
|
}, de = /* @__PURE__ */ (function() {
|
|
45097
|
-
function ze(Fe,
|
|
45098
|
-
for (var Pe = 0; Pe <
|
|
45099
|
-
var Oe =
|
|
45107
|
+
function ze(Fe, je) {
|
|
45108
|
+
for (var Pe = 0; Pe < je.length; Pe++) {
|
|
45109
|
+
var Oe = je[Pe];
|
|
45100
45110
|
Oe.enumerable = Oe.enumerable || !1, Oe.configurable = !0, "value" in Oe && (Oe.writable = !0), Object.defineProperty(Fe, Oe.key, Oe);
|
|
45101
45111
|
}
|
|
45102
45112
|
}
|
|
45103
|
-
return function(Fe,
|
|
45104
|
-
return
|
|
45113
|
+
return function(Fe, je, Pe) {
|
|
45114
|
+
return je && ze(Fe.prototype, je), Pe && ze(Fe, Pe), Fe;
|
|
45105
45115
|
};
|
|
45106
45116
|
})(), ce = ne(3), ue = _e(ce), he = ne(8), pe = _e(he), fe = ne(44), be = _e(fe), ge = ne(15), ve = ne(42), me = _e(ve);
|
|
45107
45117
|
function _e(ze) {
|
|
@@ -45123,9 +45133,9 @@ function requireQuill() {
|
|
|
45123
45133
|
}
|
|
45124
45134
|
var we = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Ae = (function(ze) {
|
|
45125
45135
|
Se(Fe, ze);
|
|
45126
|
-
function Fe(
|
|
45136
|
+
function Fe(je, Pe) {
|
|
45127
45137
|
ye(this, Fe), Pe.modules.toolbar != null && Pe.modules.toolbar.container == null && (Pe.modules.toolbar.container = we);
|
|
45128
|
-
var Oe = Ce(this, (Fe.__proto__ || Object.getPrototypeOf(Fe)).call(this,
|
|
45138
|
+
var Oe = Ce(this, (Fe.__proto__ || Object.getPrototypeOf(Fe)).call(this, je, Pe));
|
|
45129
45139
|
return Oe.quill.container.classList.add("ql-bubble"), Oe;
|
|
45130
45140
|
}
|
|
45131
45141
|
return de(Fe, [{
|
|
@@ -45148,9 +45158,9 @@ function requireQuill() {
|
|
|
45148
45158
|
});
|
|
45149
45159
|
var Le = (function(ze) {
|
|
45150
45160
|
Se(Fe, ze);
|
|
45151
|
-
function Fe(
|
|
45161
|
+
function Fe(je, Pe) {
|
|
45152
45162
|
ye(this, Fe);
|
|
45153
|
-
var Oe = Ce(this, (Fe.__proto__ || Object.getPrototypeOf(Fe)).call(this,
|
|
45163
|
+
var Oe = Ce(this, (Fe.__proto__ || Object.getPrototypeOf(Fe)).call(this, je, Pe));
|
|
45154
45164
|
return Oe.quill.on(pe.default.events.EDITOR_CHANGE, function(qe, Ie, Ne, Ge) {
|
|
45155
45165
|
if (qe === pe.default.events.SELECTION_CHANGE)
|
|
45156
45166
|
if (Ie != null && Ie.length > 0 && Ge === pe.default.sources.USER) {
|
|
@@ -46026,4 +46036,4 @@ export {
|
|
|
46026
46036
|
h as v,
|
|
46027
46037
|
PrimariaInteractionService as w
|
|
46028
46038
|
};
|
|
46029
|
-
//# sourceMappingURL=index-
|
|
46039
|
+
//# sourceMappingURL=index-DdsMjYI8.js.map
|