@uxland/primary-shell 7.37.1 → 7.38.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.
@@ -70,7 +70,7 @@ function require_Reflect() {
70
70
  }
71
71
  }, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Yt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Ft(), we = zt(_e);
72
72
  function Se(it, nt, vt, St) {
73
- if (Be(vt)) {
73
+ if (Ve(vt)) {
74
74
  if (!qt(it))
75
75
  throw new TypeError();
76
76
  if (!Nt(nt))
@@ -79,9 +79,9 @@ function require_Reflect() {
79
79
  } else {
80
80
  if (!qt(it))
81
81
  throw new TypeError();
82
- if (!Ve(nt))
82
+ if (!Be(nt))
83
83
  throw new TypeError();
84
- if (!Ve(St) && !Be(St) && !Xe(St))
84
+ if (!Be(St) && !Ve(St) && !Xe(St))
85
85
  throw new TypeError();
86
86
  return Xe(St) && (St = void 0), vt = kt(vt), ze(it, nt, vt, St);
87
87
  }
@@ -89,9 +89,9 @@ function require_Reflect() {
89
89
  J("decorate", Se);
90
90
  function ye(it, nt) {
91
91
  function vt(St, It) {
92
- if (!Ve(St))
92
+ if (!Be(St))
93
93
  throw new TypeError();
94
- if (!Be(It) && !Vt(It))
94
+ if (!Ve(It) && !Bt(It))
95
95
  throw new TypeError();
96
96
  Qe(it, nt, St, It);
97
97
  }
@@ -99,66 +99,66 @@ function require_Reflect() {
99
99
  }
100
100
  J("metadata", ye);
101
101
  function Ce(it, nt, vt, St) {
102
- if (!Ve(vt))
102
+ if (!Be(vt))
103
103
  throw new TypeError();
104
- return Be(St) || (St = kt(St)), Qe(it, nt, vt, St);
104
+ return Ve(St) || (St = kt(St)), Qe(it, nt, vt, St);
105
105
  }
106
106
  J("defineMetadata", Ce);
107
107
  function Pe(it, nt, vt) {
108
- if (!Ve(nt))
108
+ if (!Be(nt))
109
109
  throw new TypeError();
110
- return Be(vt) || (vt = kt(vt)), We(it, nt, vt);
110
+ return Ve(vt) || (vt = kt(vt)), We(it, nt, vt);
111
111
  }
112
112
  J("hasMetadata", Pe);
113
113
  function De(it, nt, vt) {
114
- if (!Ve(nt))
114
+ if (!Be(nt))
115
115
  throw new TypeError();
116
- return Be(vt) || (vt = kt(vt)), Ge(it, nt, vt);
116
+ return Ve(vt) || (vt = kt(vt)), Ge(it, nt, vt);
117
117
  }
118
118
  J("hasOwnMetadata", De);
119
119
  function Fe(it, nt, vt) {
120
- if (!Ve(nt))
120
+ if (!Be(nt))
121
121
  throw new TypeError();
122
- return Be(vt) || (vt = kt(vt)), Ye(it, nt, vt);
122
+ return Ve(vt) || (vt = kt(vt)), Ye(it, nt, vt);
123
123
  }
124
124
  J("getMetadata", Fe);
125
125
  function He(it, nt, vt) {
126
- if (!Ve(nt))
126
+ if (!Be(nt))
127
127
  throw new TypeError();
128
- return Be(vt) || (vt = kt(vt)), ft(it, nt, vt);
128
+ return Ve(vt) || (vt = kt(vt)), ft(it, nt, vt);
129
129
  }
130
130
  J("getOwnMetadata", He);
131
131
  function qe(it, nt) {
132
- if (!Ve(it))
132
+ if (!Be(it))
133
133
  throw new TypeError();
134
- return Be(nt) || (nt = kt(nt)), Ze(it, nt);
134
+ return Ve(nt) || (nt = kt(nt)), Ze(it, nt);
135
135
  }
136
136
  J("getMetadataKeys", qe);
137
137
  function Ae(it, nt) {
138
- if (!Ve(it))
138
+ if (!Be(it))
139
139
  throw new TypeError();
140
- return Be(nt) || (nt = kt(nt)), Me(it, nt);
140
+ return Ve(nt) || (nt = kt(nt)), Me(it, nt);
141
141
  }
142
142
  J("getOwnMetadataKeys", Ae);
143
143
  function Le(it, nt, vt) {
144
- if (!Ve(nt))
144
+ if (!Be(nt))
145
145
  throw new TypeError();
146
- if (Be(vt) || (vt = kt(vt)), !Ve(nt))
146
+ if (Ve(vt) || (vt = kt(vt)), !Be(nt))
147
147
  throw new TypeError();
148
- Be(vt) || (vt = kt(vt));
148
+ Ve(vt) || (vt = kt(vt));
149
149
  var St = ds(
150
150
  nt,
151
151
  vt,
152
152
  /*Create*/
153
153
  !1
154
154
  );
155
- return Be(St) ? !1 : St.OrdinaryDeleteMetadata(it, nt, vt);
155
+ return Ve(St) ? !1 : St.OrdinaryDeleteMetadata(it, nt, vt);
156
156
  }
157
157
  J("deleteMetadata", Le);
158
158
  function Ie(it, nt) {
159
159
  for (var vt = it.length - 1; vt >= 0; --vt) {
160
160
  var St = it[vt], It = St(nt);
161
- if (!Be(It) && !Xe(It)) {
161
+ if (!Ve(It) && !Xe(It)) {
162
162
  if (!Nt(It))
163
163
  throw new TypeError();
164
164
  nt = It;
@@ -169,8 +169,8 @@ function require_Reflect() {
169
169
  function ze(it, nt, vt, St) {
170
170
  for (var It = it.length - 1; It >= 0; --It) {
171
171
  var os = it[It], ls = os(nt, vt, St);
172
- if (!Be(ls) && !Xe(ls)) {
173
- if (!Ve(ls))
172
+ if (!Ve(ls) && !Xe(ls)) {
173
+ if (!Be(ls))
174
174
  throw new TypeError();
175
175
  St = ls;
176
176
  }
@@ -191,7 +191,7 @@ function require_Reflect() {
191
191
  /*Create*/
192
192
  !1
193
193
  );
194
- return Be(St) ? !1 : ot(St.OrdinaryHasOwnMetadata(it, nt, vt));
194
+ return Ve(St) ? !1 : ot(St.OrdinaryHasOwnMetadata(it, nt, vt));
195
195
  }
196
196
  function Ye(it, nt, vt) {
197
197
  var St = Ge(it, nt, vt);
@@ -208,7 +208,7 @@ function require_Reflect() {
208
208
  /*Create*/
209
209
  !1
210
210
  );
211
- if (!Be(St))
211
+ if (!Ve(St))
212
212
  return St.OrdinaryGetOwnMetadata(it, nt, vt);
213
213
  }
214
214
  function Qe(it, nt, vt, St) {
@@ -229,8 +229,8 @@ function require_Reflect() {
229
229
  return vt;
230
230
  if (vt.length <= 0)
231
231
  return It;
232
- for (var os = new me(), ls = [], Bt = 0, At = vt; Bt < At.length; Bt++) {
233
- var Tt = At[Bt], Dt = os.has(Tt);
232
+ for (var os = new me(), ls = [], Vt = 0, At = vt; Vt < At.length; Vt++) {
233
+ var Tt = At[Vt], Dt = os.has(Tt);
234
234
  Dt || (os.add(Tt), ls.push(Tt));
235
235
  }
236
236
  for (var Ot = 0, Ht = It; Ot < Ht.length; Ot++) {
@@ -268,7 +268,7 @@ function require_Reflect() {
268
268
  return 6;
269
269
  }
270
270
  }
271
- function Be(it) {
271
+ function Ve(it) {
272
272
  return it === void 0;
273
273
  }
274
274
  function Xe(it) {
@@ -277,7 +277,7 @@ function require_Reflect() {
277
277
  function Je(it) {
278
278
  return typeof it == "symbol";
279
279
  }
280
- function Ve(it) {
280
+ function Be(it) {
281
281
  return typeof it == "object" ? it !== null : typeof it == "function";
282
282
  }
283
283
  function Ke(it, nt) {
@@ -298,7 +298,7 @@ function require_Reflect() {
298
298
  var vt = "string", St = Kt(it, ne);
299
299
  if (St !== void 0) {
300
300
  var It = St.call(it, vt);
301
- if (Ve(It))
301
+ if (Be(It))
302
302
  throw new TypeError();
303
303
  return It;
304
304
  }
@@ -310,13 +310,13 @@ function require_Reflect() {
310
310
  var os = it.toString;
311
311
  if (Lt(os)) {
312
312
  var St = os.call(it);
313
- if (!Ve(St))
313
+ if (!Be(St))
314
314
  return St;
315
315
  }
316
316
  var vt = it.valueOf;
317
317
  if (Lt(vt)) {
318
318
  var St = vt.call(it);
319
- if (!Ve(St))
319
+ if (!Be(St))
320
320
  return St;
321
321
  }
322
322
  }
@@ -341,7 +341,7 @@ function require_Reflect() {
341
341
  function Nt(it) {
342
342
  return typeof it == "function";
343
343
  }
344
- function Vt(it) {
344
+ function Bt(it) {
345
345
  switch (je(it)) {
346
346
  case 3:
347
347
  return !0;
@@ -367,7 +367,7 @@ function require_Reflect() {
367
367
  if (!Lt(nt))
368
368
  throw new TypeError();
369
369
  var vt = nt.call(it);
370
- if (!Ve(vt))
370
+ if (!Be(vt))
371
371
  throw new TypeError();
372
372
  return vt;
373
373
  }
@@ -394,7 +394,7 @@ function require_Reflect() {
394
394
  }
395
395
  function Mt() {
396
396
  var it;
397
- !Be(ve) && typeof te.Reflect < "u" && !(ve in te.Reflect) && typeof te.Reflect.defineMetadata == "function" && (it = cs(te.Reflect));
397
+ !Ve(ve) && typeof te.Reflect < "u" && !(ve in te.Reflect) && typeof te.Reflect.defineMetadata == "function" && (it = cs(te.Reflect));
398
398
  var nt, vt, St, It = new ge(), os = {
399
399
  registerProvider: ls,
400
400
  getProvider: At,
@@ -407,12 +407,12 @@ function require_Reflect() {
407
407
  switch (!0) {
408
408
  case it === Ot:
409
409
  break;
410
- case Be(nt):
410
+ case Ve(nt):
411
411
  nt = Ot;
412
412
  break;
413
413
  case nt === Ot:
414
414
  break;
415
- case Be(vt):
415
+ case Ve(vt):
416
416
  vt = Ot;
417
417
  break;
418
418
  case vt === Ot:
@@ -422,14 +422,14 @@ function require_Reflect() {
422
422
  break;
423
423
  }
424
424
  }
425
- function Bt(Ot, Ht) {
426
- if (!Be(nt)) {
425
+ function Vt(Ot, Ht) {
426
+ if (!Ve(nt)) {
427
427
  if (nt.isProviderFor(Ot, Ht))
428
428
  return nt;
429
- if (!Be(vt)) {
429
+ if (!Ve(vt)) {
430
430
  if (vt.isProviderFor(Ot, Ht))
431
431
  return nt;
432
- if (!Be(St))
432
+ if (!Ve(St))
433
433
  for (var Xt = gt(St); ; ) {
434
434
  var ns = xt(Xt);
435
435
  if (!ns)
@@ -440,34 +440,34 @@ function require_Reflect() {
440
440
  }
441
441
  }
442
442
  }
443
- if (!Be(it) && it.isProviderFor(Ot, Ht))
443
+ if (!Ve(it) && it.isProviderFor(Ot, Ht))
444
444
  return it;
445
445
  }
446
446
  function At(Ot, Ht) {
447
447
  var Xt = It.get(Ot), ns;
448
- return Be(Xt) || (ns = Xt.get(Ht)), Be(ns) && (ns = Bt(Ot, Ht), Be(ns) || (Be(Xt) && (Xt = new be(), It.set(Ot, Xt)), Xt.set(Ht, ns))), ns;
448
+ return Ve(Xt) || (ns = Xt.get(Ht)), Ve(ns) && (ns = Vt(Ot, Ht), Ve(ns) || (Ve(Xt) && (Xt = new be(), It.set(Ot, Xt)), Xt.set(Ht, ns))), ns;
449
449
  }
450
450
  function Tt(Ot) {
451
- if (Be(Ot))
451
+ if (Ve(Ot))
452
452
  throw new TypeError();
453
- return nt === Ot || vt === Ot || !Be(St) && St.has(Ot);
453
+ return nt === Ot || vt === Ot || !Ve(St) && St.has(Ot);
454
454
  }
455
455
  function Dt(Ot, Ht, Xt) {
456
456
  if (!Tt(Xt))
457
457
  throw new Error("Metadata provider not registered.");
458
458
  var ns = At(Ot, Ht);
459
459
  if (ns !== Xt) {
460
- if (!Be(ns))
460
+ if (!Ve(ns))
461
461
  return !1;
462
462
  var ps = It.get(Ot);
463
- Be(ps) && (ps = new be(), It.set(Ot, ps)), ps.set(Ht, Xt);
463
+ Ve(ps) && (ps = new be(), It.set(Ot, ps)), ps.set(Ht, Xt);
464
464
  }
465
465
  return !0;
466
466
  }
467
467
  }
468
468
  function Ft() {
469
469
  var it;
470
- return !Be(ve) && Ve(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Mt()), !Be(ve) && Ve(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
470
+ return !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Ve(it) && (it = Mt()), !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
471
471
  enumerable: !1,
472
472
  configurable: !1,
473
473
  writable: !1,
@@ -478,24 +478,24 @@ function require_Reflect() {
478
478
  var nt = new ge(), vt = {
479
479
  isProviderFor: function(Tt, Dt) {
480
480
  var Ot = nt.get(Tt);
481
- return Be(Ot) ? !1 : Ot.has(Dt);
481
+ return Ve(Ot) ? !1 : Ot.has(Dt);
482
482
  },
483
483
  OrdinaryDefineOwnMetadata: ls,
484
484
  OrdinaryHasOwnMetadata: It,
485
485
  OrdinaryGetOwnMetadata: os,
486
- OrdinaryOwnMetadataKeys: Bt,
486
+ OrdinaryOwnMetadataKeys: Vt,
487
487
  OrdinaryDeleteMetadata: At
488
488
  };
489
489
  return _e.registerProvider(vt), vt;
490
490
  function St(Tt, Dt, Ot) {
491
491
  var Ht = nt.get(Tt), Xt = !1;
492
- if (Be(Ht)) {
492
+ if (Ve(Ht)) {
493
493
  if (!Ot)
494
494
  return;
495
495
  Ht = new be(), nt.set(Tt, Ht), Xt = !0;
496
496
  }
497
497
  var ns = Ht.get(Dt);
498
- if (Be(ns)) {
498
+ if (Ve(ns)) {
499
499
  if (!Ot)
500
500
  return;
501
501
  if (ns = new be(), Ht.set(Dt, ns), !it.setProvider(Tt, Dt, vt))
@@ -510,7 +510,7 @@ function require_Reflect() {
510
510
  /*Create*/
511
511
  !1
512
512
  );
513
- return Be(Ht) ? !1 : ot(Ht.has(Tt));
513
+ return Ve(Ht) ? !1 : ot(Ht.has(Tt));
514
514
  }
515
515
  function os(Tt, Dt, Ot) {
516
516
  var Ht = St(
@@ -519,7 +519,7 @@ function require_Reflect() {
519
519
  /*Create*/
520
520
  !1
521
521
  );
522
- if (!Be(Ht))
522
+ if (!Ve(Ht))
523
523
  return Ht.get(Tt);
524
524
  }
525
525
  function ls(Tt, Dt, Ot, Ht) {
@@ -531,14 +531,14 @@ function require_Reflect() {
531
531
  );
532
532
  Xt.set(Tt, Dt);
533
533
  }
534
- function Bt(Tt, Dt) {
534
+ function Vt(Tt, Dt) {
535
535
  var Ot = [], Ht = St(
536
536
  Tt,
537
537
  Dt,
538
538
  /*Create*/
539
539
  !1
540
540
  );
541
- if (Be(Ht))
541
+ if (Ve(Ht))
542
542
  return Ot;
543
543
  for (var Xt = Ht.keys(), ns = gt(Xt), ps = 0; ; ) {
544
544
  var Es = xt(ns);
@@ -564,20 +564,20 @@ function require_Reflect() {
564
564
  /*Create*/
565
565
  !1
566
566
  );
567
- if (Be(Ht) || !Ht.delete(Tt))
567
+ if (Ve(Ht) || !Ht.delete(Tt))
568
568
  return !1;
569
569
  if (Ht.size === 0) {
570
570
  var Xt = nt.get(Dt);
571
- Be(Xt) || (Xt.delete(Ot), Xt.size === 0 && nt.delete(Xt));
571
+ Ve(Xt) || (Xt.delete(Ot), Xt.size === 0 && nt.delete(Xt));
572
572
  }
573
573
  return !0;
574
574
  }
575
575
  }
576
576
  function cs(it) {
577
- var nt = it.defineMetadata, vt = it.hasOwnMetadata, St = it.getOwnMetadata, It = it.getOwnMetadataKeys, os = it.deleteMetadata, ls = new ge(), Bt = {
577
+ var nt = it.defineMetadata, vt = it.hasOwnMetadata, St = it.getOwnMetadata, It = it.getOwnMetadataKeys, os = it.deleteMetadata, ls = new ge(), Vt = {
578
578
  isProviderFor: function(At, Tt) {
579
579
  var Dt = ls.get(At);
580
- return !Be(Dt) && Dt.has(Tt) ? !0 : It(At, Tt).length ? (Be(Dt) && (Dt = new me(), ls.set(At, Dt)), Dt.add(Tt), !0) : !1;
580
+ return !Ve(Dt) && Dt.has(Tt) ? !0 : It(At, Tt).length ? (Ve(Dt) && (Dt = new me(), ls.set(At, Dt)), Dt.add(Tt), !0) : !1;
581
581
  },
582
582
  OrdinaryDefineOwnMetadata: nt,
583
583
  OrdinaryHasOwnMetadata: vt,
@@ -585,11 +585,11 @@ function require_Reflect() {
585
585
  OrdinaryOwnMetadataKeys: It,
586
586
  OrdinaryDeleteMetadata: os
587
587
  };
588
- return Bt;
588
+ return Vt;
589
589
  }
590
590
  function ds(it, nt, vt) {
591
591
  var St = _e.getProvider(it, nt);
592
- if (!Be(St))
592
+ if (!Ve(St))
593
593
  return St;
594
594
  if (vt) {
595
595
  if (_e.setProvider(it, nt, we))
@@ -601,59 +601,59 @@ function require_Reflect() {
601
601
  var it = {}, nt = [], vt = (
602
602
  /** @class */
603
603
  (function() {
604
- function Bt(At, Tt, Dt) {
604
+ function Vt(At, Tt, Dt) {
605
605
  this._index = 0, this._keys = At, this._values = Tt, this._selector = Dt;
606
606
  }
607
- return Bt.prototype["@@iterator"] = function() {
607
+ return Vt.prototype["@@iterator"] = function() {
608
608
  return this;
609
- }, Bt.prototype[de] = function() {
609
+ }, Vt.prototype[de] = function() {
610
610
  return this;
611
- }, Bt.prototype.next = function() {
611
+ }, Vt.prototype.next = function() {
612
612
  var At = this._index;
613
613
  if (At >= 0 && At < this._keys.length) {
614
614
  var Tt = this._selector(this._keys[At], this._values[At]);
615
615
  return At + 1 >= this._keys.length ? (this._index = -1, this._keys = nt, this._values = nt) : this._index++, { value: Tt, done: !1 };
616
616
  }
617
617
  return { value: void 0, done: !0 };
618
- }, Bt.prototype.throw = function(At) {
618
+ }, Vt.prototype.throw = function(At) {
619
619
  throw this._index >= 0 && (this._index = -1, this._keys = nt, this._values = nt), At;
620
- }, Bt.prototype.return = function(At) {
620
+ }, Vt.prototype.return = function(At) {
621
621
  return this._index >= 0 && (this._index = -1, this._keys = nt, this._values = nt), { value: At, done: !0 };
622
- }, Bt;
622
+ }, Vt;
623
623
  })()
624
624
  ), St = (
625
625
  /** @class */
626
626
  (function() {
627
- function Bt() {
627
+ function Vt() {
628
628
  this._keys = [], this._values = [], this._cacheKey = it, this._cacheIndex = -2;
629
629
  }
630
- return Object.defineProperty(Bt.prototype, "size", {
630
+ return Object.defineProperty(Vt.prototype, "size", {
631
631
  get: function() {
632
632
  return this._keys.length;
633
633
  },
634
634
  enumerable: !0,
635
635
  configurable: !0
636
- }), Bt.prototype.has = function(At) {
636
+ }), Vt.prototype.has = function(At) {
637
637
  return this._find(
638
638
  At,
639
639
  /*insert*/
640
640
  !1
641
641
  ) >= 0;
642
- }, Bt.prototype.get = function(At) {
642
+ }, Vt.prototype.get = function(At) {
643
643
  var Tt = this._find(
644
644
  At,
645
645
  /*insert*/
646
646
  !1
647
647
  );
648
648
  return Tt >= 0 ? this._values[Tt] : void 0;
649
- }, Bt.prototype.set = function(At, Tt) {
649
+ }, Vt.prototype.set = function(At, Tt) {
650
650
  var Dt = this._find(
651
651
  At,
652
652
  /*insert*/
653
653
  !0
654
654
  );
655
655
  return this._values[Dt] = Tt, this;
656
- }, Bt.prototype.delete = function(At) {
656
+ }, Vt.prototype.delete = function(At) {
657
657
  var Tt = this._find(
658
658
  At,
659
659
  /*insert*/
@@ -665,19 +665,19 @@ function require_Reflect() {
665
665
  return this._keys.length--, this._values.length--, rs(At, this._cacheKey) && (this._cacheKey = it, this._cacheIndex = -2), !0;
666
666
  }
667
667
  return !1;
668
- }, Bt.prototype.clear = function() {
668
+ }, Vt.prototype.clear = function() {
669
669
  this._keys.length = 0, this._values.length = 0, this._cacheKey = it, this._cacheIndex = -2;
670
- }, Bt.prototype.keys = function() {
670
+ }, Vt.prototype.keys = function() {
671
671
  return new vt(this._keys, this._values, It);
672
- }, Bt.prototype.values = function() {
672
+ }, Vt.prototype.values = function() {
673
673
  return new vt(this._keys, this._values, os);
674
- }, Bt.prototype.entries = function() {
674
+ }, Vt.prototype.entries = function() {
675
675
  return new vt(this._keys, this._values, ls);
676
- }, Bt.prototype["@@iterator"] = function() {
676
+ }, Vt.prototype["@@iterator"] = function() {
677
677
  return this.entries();
678
- }, Bt.prototype[de] = function() {
678
+ }, Vt.prototype[de] = function() {
679
679
  return this.entries();
680
- }, Bt.prototype._find = function(At, Tt) {
680
+ }, Vt.prototype._find = function(At, Tt) {
681
681
  if (!rs(this._cacheKey, At)) {
682
682
  this._cacheIndex = -1;
683
683
  for (var Dt = 0; Dt < this._keys.length; Dt++)
@@ -687,18 +687,18 @@ function require_Reflect() {
687
687
  }
688
688
  }
689
689
  return this._cacheIndex < 0 && Tt && (this._cacheIndex = this._keys.length, this._keys.push(At), this._values.push(void 0)), this._cacheIndex;
690
- }, Bt;
690
+ }, Vt;
691
691
  })()
692
692
  );
693
693
  return St;
694
- function It(Bt, At) {
695
- return Bt;
694
+ function It(Vt, At) {
695
+ return Vt;
696
696
  }
697
- function os(Bt, At) {
697
+ function os(Vt, At) {
698
698
  return At;
699
699
  }
700
- function ls(Bt, At) {
701
- return [Bt, At];
700
+ function ls(Vt, At) {
701
+ return [Vt, At];
702
702
  }
703
703
  }
704
704
  function ks() {
@@ -781,7 +781,7 @@ function require_Reflect() {
781
781
  function St() {
782
782
  var At;
783
783
  do
784
- At = "@@WeakMap@@" + Bt();
784
+ At = "@@WeakMap@@" + Vt();
785
785
  while (pe.has(nt, At));
786
786
  return nt[At] = !0, At;
787
787
  }
@@ -805,7 +805,7 @@ function require_Reflect() {
805
805
  }
806
806
  return os(new Array(At), At);
807
807
  }
808
- function Bt() {
808
+ function Vt() {
809
809
  var At = ls(it);
810
810
  At[6] = At[6] & 79 | 64, At[8] = At[8] & 191 | 128;
811
811
  for (var Tt = "", Dt = 0; Dt < it; ++Dt) {
@@ -3514,6 +3514,26 @@ class EcapEventManagerImpl {
3514
3514
  }
3515
3515
  }
3516
3516
  const createEcapEventManager = (X) => new EcapEventManagerImpl(X);
3517
+ class ExitGuardManagerImpl {
3518
+ constructor() {
3519
+ this.guards = /* @__PURE__ */ new Map();
3520
+ }
3521
+ register(W, J) {
3522
+ this.guards.set(W, J);
3523
+ }
3524
+ unregister(W) {
3525
+ this.guards.delete(W);
3526
+ }
3527
+ async canExit() {
3528
+ for (const W of this.guards.values())
3529
+ try {
3530
+ if (!await W()) return !1;
3531
+ } catch (J) {
3532
+ console.error("Exit guard failed:", J);
3533
+ }
3534
+ return !0;
3535
+ }
3536
+ }
3517
3537
  class PrimariaGlobalStateManagerImpl {
3518
3538
  constructor(W) {
3519
3539
  this.broker = W, this.state = {};
@@ -4796,11 +4816,11 @@ const resolveConfig = (X) => {
4796
4816
  duplex: "half"
4797
4817
  }), je;
4798
4818
  if (utils$1.isFormData(_e) && (je = Me.headers.get("content-type")) && Fe.setContentType(je), Me.body) {
4799
- const [Be, Xe] = progressEventDecorator(
4819
+ const [Ve, Xe] = progressEventDecorator(
4800
4820
  We,
4801
4821
  progressEventReducer(asyncDecorator(Pe))
4802
4822
  );
4803
- _e = trackStream(Me.body, DEFAULT_CHUNK_SIZE, Be, Xe);
4823
+ _e = trackStream(Me.body, DEFAULT_CHUNK_SIZE, Ve, Xe);
4804
4824
  }
4805
4825
  }
4806
4826
  utils$1.isString(He) || (He = He ? "include" : "omit");
@@ -4821,12 +4841,12 @@ const resolveConfig = (X) => {
4821
4841
  ["status", "statusText", "headers"].forEach((Je) => {
4822
4842
  Me[Je] = ft[Je];
4823
4843
  });
4824
- const je = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Be, Xe] = Ce && progressEventDecorator(
4844
+ const je = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Ve, Xe] = Ce && progressEventDecorator(
4825
4845
  je,
4826
4846
  progressEventReducer(asyncDecorator(Ce), !0)
4827
4847
  ) || [];
4828
4848
  ft = new te(
4829
- trackStream(ft.body, DEFAULT_CHUNK_SIZE, Be, () => {
4849
+ trackStream(ft.body, DEFAULT_CHUNK_SIZE, Ve, () => {
4830
4850
  Xe && Xe(), ze && ze();
4831
4851
  }),
4832
4852
  Me
@@ -5911,11 +5931,11 @@ function peg$parse(X, W) {
5911
5931
  return vs.pop(), Oe.replace(/\s*$/, "");
5912
5932
  }, Ge = ",", Ye = us(",", !1), ft = "number", Qe = us("number", !1), Ze = function(Oe, Ue, tt) {
5913
5933
  return __assign$4({ type: Ue === "number" ? TYPE.number : Ue === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
5914
- }, Me = "'", je = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ve = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ke = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5934
+ }, Me = "'", je = us("'", !1), Ve = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Be = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ke = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5915
5935
  return __assign$4({ type: 1, pattern: Oe }, _s());
5916
5936
  }, _t = function() {
5917
5937
  return vs.push("dateOrTimeArgStyle"), !0;
5918
- }, kt = "date", qt = us("date", !1), Lt = "time", Nt = us("time", !1), Vt = "plural", rs = us("plural", !1), Kt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), Ct = function(Oe, Ue, tt, bt) {
5938
+ }, kt = "date", qt = us("date", !1), Lt = "time", Nt = us("time", !1), Bt = "plural", rs = us("plural", !1), Kt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), Ct = function(Oe, Ue, tt, bt) {
5919
5939
  return __assign$4({ type: TYPE.plural, pluralType: Ue === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function(wt, Pt) {
5920
5940
  var es = Pt.id, jt = Pt.value, fs = Pt.location;
5921
5941
  return es in wt && li('Duplicate option "' + es + '" in plural element: "' + ai() + '"', qs()), wt[es] = {
@@ -5945,7 +5965,7 @@ function peg$parse(X, W) {
5945
5965
  id: Oe,
5946
5966
  value: Ue
5947
5967
  }, _s());
5948
- }, hs = bs("whitespace"), it = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, nt = $s([[" ", "\r"], " ", "…", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), vt = bs("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 = bs("optional whitespace"), ls = bs("number"), Bt = "-", At = us("-", !1), Tt = function(Oe, Ue) {
5968
+ }, hs = bs("whitespace"), it = /^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, nt = $s([[" ", "\r"], " ", "…", " ", " ", [" ", " "], "\u2028", "\u2029", " ", " ", " "], !1, !1), vt = bs("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 = bs("optional whitespace"), ls = bs("number"), Vt = "-", At = us("-", !1), Tt = function(Oe, Ue) {
5949
5969
  return Ue ? Oe ? -Ue : Ue : 0;
5950
5970
  }, Dt = bs("double apostrophes"), Ot = "''", Ht = us("''", !1), Xt = function() {
5951
5971
  return "'";
@@ -5974,7 +5994,7 @@ function peg$parse(X, W) {
5974
5994
  return Os(Gt, Ne);
5975
5995
  }
5976
5996
  function li(Oe, Ue) {
5977
- throw Ue = Ue !== void 0 ? Ue : Os(Gt, Ne), Bi(Oe, Ue);
5997
+ throw Ue = Ue !== void 0 ? Ue : Os(Gt, Ne), Vi(Oe, Ue);
5978
5998
  }
5979
5999
  function us(Oe, Ue) {
5980
6000
  return { type: "literal", text: Oe, ignoreCase: Ue };
@@ -6022,10 +6042,10 @@ function peg$parse(X, W) {
6022
6042
  function Et(Oe) {
6023
6043
  Ne < ms || (Ne > ms && (ms = Ne, Ls = []), Ls.push(Oe));
6024
6044
  }
6025
- function Bi(Oe, Ue) {
6045
+ function Vi(Oe, Ue) {
6026
6046
  return new SyntaxError(Oe, [], "", Ue);
6027
6047
  }
6028
- function Vi(Oe, Ue, tt) {
6048
+ function Bi(Oe, Ue, tt) {
6029
6049
  return new SyntaxError(SyntaxError.buildMessage(Oe, Ue), Oe, Ue, tt);
6030
6050
  }
6031
6051
  function ci() {
@@ -6109,18 +6129,18 @@ function peg$parse(X, W) {
6109
6129
  function bi() {
6110
6130
  var Oe, Ue, tt, bt;
6111
6131
  if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (Ue = Me, Ne++) : (Ue = J, yt === 0 && Et(je)), Ue !== J) {
6112
- if (tt = [], bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Et(Xe))), bt !== J)
6132
+ if (tt = [], bt = xs(), bt === J && (Ve.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Et(Xe))), bt !== J)
6113
6133
  for (; bt !== J; )
6114
- tt.push(bt), bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Et(Xe)));
6134
+ tt.push(bt), bt = xs(), bt === J && (Ve.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Et(Xe)));
6115
6135
  else
6116
6136
  tt = J;
6117
6137
  tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Me, Ne++) : (bt = J, yt === 0 && Et(je)), bt !== J ? (Ue = [Ue, tt, bt], Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6118
6138
  } else
6119
6139
  Ne = Oe, Oe = J;
6120
6140
  if (Oe === J)
6121
- if (Oe = [], Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(Ve))), Ue !== J)
6141
+ if (Oe = [], Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(Be))), Ue !== J)
6122
6142
  for (; Ue !== J; )
6123
- Oe.push(Ue), Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(Ve)));
6143
+ Oe.push(Ue), Ue = xs(), Ue === J && (Je.test(X.charAt(Ne)) ? (Ue = X.charAt(Ne), Ne++) : (Ue = J, yt === 0 && Et(Be)));
6124
6144
  else
6125
6145
  Oe = J;
6126
6146
  return Oe;
@@ -6163,7 +6183,7 @@ function peg$parse(X, W) {
6163
6183
  if (wt = Ut(), wt !== J)
6164
6184
  if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Et(Ye)), Pt !== J)
6165
6185
  if (es = Ut(), es !== J)
6166
- if (X.substr(Ne, 6) === Vt ? (jt = Vt, Ne += 6) : (jt = J, yt === 0 && Et(rs)), jt === J && (X.substr(Ne, 13) === Kt ? (jt = Kt, Ne += 13) : (jt = J, yt === 0 && Et(gt))), jt !== J)
6186
+ if (X.substr(Ne, 6) === Bt ? (jt = Bt, Ne += 6) : (jt = J, yt === 0 && Et(rs)), jt === J && (X.substr(Ne, 13) === Kt ? (jt = Kt, Ne += 13) : (jt = J, yt === 0 && Et(gt))), jt !== J)
6167
6187
  if (fs = Ut(), fs !== J)
6168
6188
  if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Et(Ye)), Wt !== J)
6169
6189
  if (as = Ut(), as !== J)
@@ -6269,7 +6289,7 @@ function peg$parse(X, W) {
6269
6289
  }
6270
6290
  function yi() {
6271
6291
  var Oe, Ue, tt;
6272
- return yt++, Oe = Ne, X.charCodeAt(Ne) === 45 ? (Ue = Bt, Ne++) : (Ue = J, yt === 0 && Et(At)), Ue === J && (Ue = null), Ue !== J ? (tt = xi(), tt !== J ? (Gt = Oe, Ue = Tt(Ue, tt), Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), yt--, Oe === J && (Ue = J, yt === 0 && Et(ls)), Oe;
6292
+ return yt++, Oe = Ne, X.charCodeAt(Ne) === 45 ? (Ue = Vt, Ne++) : (Ue = J, yt === 0 && Et(At)), Ue === J && (Ue = null), Ue !== J ? (tt = xi(), tt !== J ? (Gt = Oe, Ue = Tt(Ue, tt), Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), yt--, Oe === J && (Ue = J, yt === 0 && Et(ls)), Oe;
6273
6293
  }
6274
6294
  function xs() {
6275
6295
  var Oe, Ue;
@@ -6279,8 +6299,8 @@ function peg$parse(X, W) {
6279
6299
  var Oe, Ue, tt, bt, wt, Pt;
6280
6300
  if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (Ue = Me, Ne++) : (Ue = J, yt === 0 && Et(je)), Ue !== J)
6281
6301
  if (tt = or(), tt !== J) {
6282
- for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Et(Xe))); Pt !== J; )
6283
- wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Et(Xe)));
6302
+ for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (Ve.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Et(Xe))); Pt !== J; )
6303
+ wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Et(Ht)), Pt === J && (Ve.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Et(Xe)));
6284
6304
  wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Me, Ne++) : (wt = J, yt === 0 && Et(je)), wt === J && (wt = null), wt !== J ? (Gt = Oe, Ue = ns(tt, bt), Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6285
6305
  } else
6286
6306
  Ne = Oe, Oe = J;
@@ -6336,7 +6356,7 @@ function peg$parse(X, W) {
6336
6356
  }
6337
6357
  if (Ts = re(), Ts !== J && Ne === X.length)
6338
6358
  return Ts;
6339
- throw Ts !== J && Ne < X.length && Et(Hi()), Vi(Ls, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
6359
+ throw Ts !== J && Ne < X.length && Et(Hi()), Bi(Ls, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
6340
6360
  }
6341
6361
  var pegParse = peg$parse, __spreadArrays$2 = function() {
6342
6362
  for (var X = 0, W = 0, J = arguments.length; W < J; W++) X += arguments[W].length;
@@ -9295,7 +9315,10 @@ const Ns = class Ns extends h$p {
9295
9315
  this.pdfList = [...W], W.length === 1 ? this.activePdfs = [W[0]] : W.length >= 2 && (this.activePdfs = W.slice(-2));
9296
9316
  }
9297
9317
  _getPdfSrc(W) {
9298
- return W.data.url ? W.data.url : W.data.b64 ? createUrlFromBase64(W.data.b64) : "";
9318
+ const J = W.data.url || (W.data.b64 ? createUrlFromBase64(W.data.b64) : "") || "";
9319
+ if (!J) return "";
9320
+ const te = J.includes("#") ? "&" : "#";
9321
+ return `${J}${te}navpanes=0`;
9299
9322
  }
9300
9323
  _subscribeEvents() {
9301
9324
  [
@@ -9328,9 +9351,7 @@ const Ns = class Ns extends h$p {
9328
9351
  render() {
9329
9352
  return ke$1`
9330
9353
  <div class="pdf-container">
9331
- ${this.activePdfs.length > 0 ? this.activePdfs.map(
9332
- (W) => ke$1`<iframe height="100%" src=${this._getPdfSrc(W)} frameborder="0"></iframe>`
9333
- ) : ke$1`
9354
+ ${this.activePdfs.length > 0 ? this.activePdfs.map((W) => ke$1`<iframe height="100%" src=${this._getPdfSrc(W)} frameborder="0"></iframe>`) : ke$1`
9334
9355
  <div class="no-pdf">
9335
9356
  <p>${translate$1("pdfVisor.noPdfSelected")}</p>
9336
9357
  </div>
@@ -9459,15 +9480,15 @@ const createPdfViewerManager = (X, W) => new PdfViewerManager(X, W), styles$o =
9459
9480
  )}
9460
9481
  </div>
9461
9482
  </div>
9462
- `, Bs = class Bs extends h$p {
9483
+ `, Vs = class Vs extends h$p {
9463
9484
  render() {
9464
9485
  return ke$1`${template$p(this)}`;
9465
9486
  }
9466
9487
  };
9467
- Bs.styles = i$T`
9488
+ Vs.styles = i$T`
9468
9489
  ${r$L(styles$o)}
9469
9490
  `;
9470
- let PluginBusyList = Bs;
9491
+ let PluginBusyList = Vs;
9471
9492
  class PluginBusyManagerImpl {
9472
9493
  constructor() {
9473
9494
  this.tasks = [], customElements.get("plugin-busy-list") || t$w("plugin-busy-list")(PluginBusyList);
@@ -9689,7 +9710,7 @@ class ImportDataManagerImpl {
9689
9710
  async import(W) {
9690
9711
  this.currentImporterId = W, this.selectedItems = {}, this.pluginTexts = {};
9691
9712
  try {
9692
- const { ImportDataManagerModal: J } = await import("./component-BHhqZswN.js"), { confirmed: te } = await this.interactionService.confirm(
9713
+ const { ImportDataManagerModal: J } = await import("./component-BnGIF_Io.js"), { confirmed: te } = await this.interactionService.confirm(
9693
9714
  void 0,
9694
9715
  { component: J },
9695
9716
  {
@@ -9747,7 +9768,7 @@ class PrimariaContextManagerImpl {
9747
9768
  }
9748
9769
  }
9749
9770
  let contextManager$1;
9750
- const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (X) => {
9771
+ const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), exitGuardManager = new ExitGuardManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (X) => {
9751
9772
  const W = createRegionManagerProxy(X, regionManager, broker$1);
9752
9773
  return {
9753
9774
  pluginInfo: X,
@@ -9761,6 +9782,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
9761
9782
  userManager,
9762
9783
  ecapEventManager,
9763
9784
  pluginBusyManager,
9785
+ exitGuardManager,
9764
9786
  quickActionBusyManager,
9765
9787
  interactionService,
9766
9788
  notificationService,
@@ -16288,11 +16310,7 @@ let ExitShellHandler = class {
16288
16310
  async handle(X) {
16289
16311
  const W = X && X.ecapEvent !== void 0 ? X : void 0;
16290
16312
  try {
16291
- const J = this.api.pluginBusyManager.getTasks();
16292
- if (J.length > 0) {
16293
- const { confirmed: te } = await this.askForClose(J);
16294
- if (!te) return;
16295
- }
16313
+ if (!await this.api.exitGuardManager.canExit()) return;
16296
16314
  await Promise.race([
16297
16315
  disposePlugins(),
16298
16316
  // S'intenta executar un dispose normal
@@ -16303,14 +16321,6 @@ let ExitShellHandler = class {
16303
16321
  this.api.notificationService.error(translate$1("errors.exit")), this.emitClose(W);
16304
16322
  }
16305
16323
  }
16306
- askForClose(X) {
16307
- return this.api.interactionService.confirm({ busyTasks: X }, { component: PluginBusyList }, {
16308
- title: translate$1("actions.askExit"),
16309
- state: "error",
16310
- confirmButtonText: "Sí",
16311
- cancelButtonText: "No"
16312
- });
16313
- }
16314
16324
  timeout(X) {
16315
16325
  return new Promise((W) => setTimeout(W, X));
16316
16326
  }
@@ -17932,18 +17942,18 @@ function flip(X) {
17932
17942
  }
17933
17943
  if (Fe)
17934
17944
  for (var Ze = me ? 3 : 1, Me = function(Je) {
17935
- var Ve = ye.find(function(Ke) {
17945
+ var Be = ye.find(function(Ke) {
17936
17946
  var rt = De.get(Ke);
17937
17947
  if (rt)
17938
17948
  return rt.slice(0, Je).every(function(ot) {
17939
17949
  return ot;
17940
17950
  });
17941
17951
  });
17942
- if (Ve)
17943
- return He = Ve, "break";
17952
+ if (Be)
17953
+ return He = Be, "break";
17944
17954
  }, je = Ze; je > 0; je--) {
17945
- var Be = Me(je);
17946
- if (Be === "break") break;
17955
+ var Ve = Me(je);
17956
+ if (Ve === "break") break;
17947
17957
  }
17948
17958
  W.placement !== He && (W.modifiersData[te]._skip = !0, W.placement = He, W.reset = !0);
17949
17959
  }
@@ -18060,10 +18070,10 @@ function preventOverflow(X) {
18060
18070
  };
18061
18071
  if (Pe) {
18062
18072
  if (oe) {
18063
- var Ie, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ye = Pe[ye], ft = Ye + ve[ze], Qe = Ye - ve[We], Ze = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], je = we === start ? -Fe[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18073
+ var Ie, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ye = Pe[ye], ft = Ye + ve[ze], Qe = Ye - ve[We], Ze = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], je = we === start ? -Fe[Ge] : -De[Ge], Ve = W.elements.arrow, Xe = be && Ve ? getLayoutRect(Ve) : {
18064
18074
  width: 0,
18065
18075
  height: 0
18066
- }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Je[ze], Ke = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Ve - qe.mainAxis : Me - rt - Ve - qe.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ke + qe.mainAxis : je + rt + Ke + qe.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), qt = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, Lt = (Ie = Ae?.[ye]) != null ? Ie : 0, Nt = Ye + ot - Lt - qt, Vt = Ye + _t - Lt, rs = within(be ? min(ft, Nt) : ft, Ye, be ? max(Qe, Vt) : Qe);
18076
+ }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = Je[ze], Ke = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Be - qe.mainAxis : Me - rt - Be - qe.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ke + qe.mainAxis : je + rt + Ke + qe.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), qt = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, Lt = (Ie = Ae?.[ye]) != null ? Ie : 0, Nt = Ye + ot - Lt - qt, Bt = Ye + _t - Lt, rs = within(be ? min(ft, Nt) : ft, Ye, be ? max(Qe, Bt) : Qe);
18067
18077
  Pe[ye] = rs, Le[ye] = rs - Ye;
18068
18078
  }
18069
18079
  if (de) {
@@ -42592,7 +42602,7 @@ var __defProp$e = Object.defineProperty, __decorateClass$e = (X, W, J, te) => {
42592
42602
  (ne = X[oe]) && (re = ne(W, J, re) || re);
42593
42603
  return re && __defProp$e(W, J, re), re;
42594
42604
  };
42595
- const Vs = class Vs extends PrimariaRegionHost(h$p) {
42605
+ const Bs = class Bs extends PrimariaRegionHost(h$p) {
42596
42606
  constructor() {
42597
42607
  super(...arguments), this.sidebarExpanded = !1, this.viewSelected = shellViews.shell, this.quickActionBusy = !1, this.subscriptions = [];
42598
42608
  }
@@ -42686,10 +42696,10 @@ const Vs = class Vs extends PrimariaRegionHost(h$p) {
42686
42696
  }, 300);
42687
42697
  }
42688
42698
  };
42689
- Vs.styles = i$T`
42699
+ Bs.styles = i$T`
42690
42700
  ${r$L(styles$b)}
42691
42701
  `;
42692
- let PrimariaShell = Vs;
42702
+ let PrimariaShell = Bs;
42693
42703
  __decorateClass$e([
42694
42704
  s$L({ targetId: "menu-region-container", name: shellApi.regionManager.regions.shell.navigationMenu })
42695
42705
  ], PrimariaShell.prototype, "navigationMenuRegion");
@@ -43941,15 +43951,15 @@ function requireQuill() {
43941
43951
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
43942
43952
  }, ne = /* @__PURE__ */ (function() {
43943
43953
  function Qe(Ze, Me) {
43944
- var je = [], Be = !0, Xe = !1, Je = void 0;
43954
+ var je = [], Ve = !0, Xe = !1, Je = void 0;
43945
43955
  try {
43946
- for (var Ve = Ze[Symbol.iterator](), Ke; !(Be = (Ke = Ve.next()).done) && (je.push(Ke.value), !(Me && je.length === Me)); Be = !0)
43956
+ for (var Be = Ze[Symbol.iterator](), Ke; !(Ve = (Ke = Be.next()).done) && (je.push(Ke.value), !(Me && je.length === Me)); Ve = !0)
43947
43957
  ;
43948
43958
  } catch (rt) {
43949
43959
  Xe = !0, Je = rt;
43950
43960
  } finally {
43951
43961
  try {
43952
- !Be && Ve.return && Ve.return();
43962
+ !Ve && Be.return && Be.return();
43953
43963
  } finally {
43954
43964
  if (Xe) throw Je;
43955
43965
  }
@@ -43966,8 +43976,8 @@ function requireQuill() {
43966
43976
  })(), de = /* @__PURE__ */ (function() {
43967
43977
  function Qe(Ze, Me) {
43968
43978
  for (var je = 0; je < Me.length; je++) {
43969
- var Be = Me[je];
43970
- Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
43979
+ var Ve = Me[je];
43980
+ Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Ze, Ve.key, Ve);
43971
43981
  }
43972
43982
  }
43973
43983
  return function(Ze, Me, je) {
@@ -44005,11 +44015,11 @@ function requireQuill() {
44005
44015
  }, {
44006
44016
  key: "register",
44007
44017
  value: function(Me, je) {
44008
- var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
44018
+ var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
44009
44019
  if (typeof Me != "string") {
44010
44020
  var Je = Me.attrName || Me.blotName;
44011
- typeof Je == "string" ? this.register("formats/" + Je, Me, je) : Object.keys(Me).forEach(function(Ve) {
44012
- Be.register(Ve, Me[Ve], je);
44021
+ typeof Je == "string" ? this.register("formats/" + Je, Me, je) : Object.keys(Me).forEach(function(Be) {
44022
+ Ve.register(Be, Me[Be], je);
44013
44023
  });
44014
44024
  } else
44015
44025
  this.imports[Me] != null && !Xe && Ie.warn("Overwriting " + Me + " with", je), this.imports[Me] = je, (Me.startsWith("blots/") || Me.startsWith("formats/")) && je.blotName !== "abstract" ? _e.default.register(je) : Me.startsWith("modules") && typeof je.register == "function" && je.register();
@@ -44020,19 +44030,19 @@ function requireQuill() {
44020
44030
  if (Le(this, Qe), this.options = We(Ze, je), this.container = this.options.container, this.container == null)
44021
44031
  return Ie.error("Invalid Quill container", Ze);
44022
44032
  this.options.debug && Qe.debug(this.options.debug);
44023
- var Be = this.container.innerHTML.trim();
44033
+ var Ve = this.container.innerHTML.trim();
44024
44034
  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 be.default(), this.scroll = _e.default.create(this.root, {
44025
44035
  emitter: this.emitter,
44026
44036
  whitelist: this.options.formats
44027
44037
  }), this.editor = new pe.default(this.scroll), this.selection = new Se.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(be.default.events.EDITOR_CHANGE, function(Je) {
44028
44038
  Je === be.default.events.TEXT_CHANGE && Me.root.classList.toggle("ql-blank", Me.editor.isBlank());
44029
- }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ve) {
44039
+ }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Be) {
44030
44040
  var Ke = Me.selection.lastRange, rt = Ke && Ke.length === 0 ? Ke.index : void 0;
44031
44041
  Ge.call(Me, function() {
44032
- return Me.editor.update(null, Ve, rt);
44042
+ return Me.editor.update(null, Be, rt);
44033
44043
  }, Je);
44034
44044
  });
44035
- var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Be + "<p><br></p></div>");
44045
+ var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Ve + "<p><br></p></div>");
44036
44046
  this.setContents(Xe), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
44037
44047
  }
44038
44048
  return de(Qe, [{
@@ -44040,8 +44050,8 @@ function requireQuill() {
44040
44050
  value: function(Me) {
44041
44051
  var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
44042
44052
  if (typeof Me == "string") {
44043
- var Be = Me;
44044
- Me = document.createElement("div"), Me.classList.add(Be);
44053
+ var Ve = Me;
44054
+ Me = document.createElement("div"), Me.classList.add(Ve);
44045
44055
  }
44046
44056
  return this.container.insertBefore(Me, je), Me;
44047
44057
  }
@@ -44052,11 +44062,11 @@ function requireQuill() {
44052
44062
  }
44053
44063
  }, {
44054
44064
  key: "deleteText",
44055
- value: function(Me, je, Be) {
44056
- var Xe = this, Je = Ye(Me, je, Be), Ve = ne(Je, 4);
44057
- return Me = Ve[0], je = Ve[1], Be = Ve[3], Ge.call(this, function() {
44065
+ value: function(Me, je, Ve) {
44066
+ var Xe = this, Je = Ye(Me, je, Ve), Be = ne(Je, 4);
44067
+ return Me = Be[0], je = Be[1], Ve = Be[3], Ge.call(this, function() {
44058
44068
  return Xe.editor.deleteText(Me, je);
44059
- }, Be, Me, -1 * je);
44069
+ }, Ve, Me, -1 * je);
44060
44070
  }
44061
44071
  }, {
44062
44072
  key: "disable",
@@ -44078,56 +44088,56 @@ function requireQuill() {
44078
44088
  }, {
44079
44089
  key: "format",
44080
44090
  value: function(Me, je) {
44081
- var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
44091
+ var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
44082
44092
  return Ge.call(this, function() {
44083
- var Je = Be.getSelection(!0), Ve = new ue.default();
44093
+ var Je = Ve.getSelection(!0), Be = new ue.default();
44084
44094
  if (Je == null)
44085
- return Ve;
44095
+ return Be;
44086
44096
  if (_e.default.query(Me, _e.default.Scope.BLOCK))
44087
- Ve = Be.editor.formatLine(Je.index, Je.length, Ae({}, Me, je));
44097
+ Be = Ve.editor.formatLine(Je.index, Je.length, Ae({}, Me, je));
44088
44098
  else {
44089
44099
  if (Je.length === 0)
44090
- return Be.selection.format(Me, je), Ve;
44091
- Ve = Be.editor.formatText(Je.index, Je.length, Ae({}, Me, je));
44100
+ return Ve.selection.format(Me, je), Be;
44101
+ Be = Ve.editor.formatText(Je.index, Je.length, Ae({}, Me, je));
44092
44102
  }
44093
- return Be.setSelection(Je, be.default.sources.SILENT), Ve;
44103
+ return Ve.setSelection(Je, be.default.sources.SILENT), Be;
44094
44104
  }, Xe);
44095
44105
  }
44096
44106
  }, {
44097
44107
  key: "formatLine",
44098
- value: function(Me, je, Be, Xe, Je) {
44099
- var Ve = this, Ke = void 0, rt = Ye(Me, je, Be, Xe, Je), ot = ne(rt, 4);
44108
+ value: function(Me, je, Ve, Xe, Je) {
44109
+ var Be = this, Ke = void 0, rt = Ye(Me, je, Ve, Xe, Je), ot = ne(rt, 4);
44100
44110
  return Me = ot[0], je = ot[1], Ke = ot[2], Je = ot[3], Ge.call(this, function() {
44101
- return Ve.editor.formatLine(Me, je, Ke);
44111
+ return Be.editor.formatLine(Me, je, Ke);
44102
44112
  }, Je, Me, 0);
44103
44113
  }
44104
44114
  }, {
44105
44115
  key: "formatText",
44106
- value: function(Me, je, Be, Xe, Je) {
44107
- var Ve = this, Ke = void 0, rt = Ye(Me, je, Be, Xe, Je), ot = ne(rt, 4);
44116
+ value: function(Me, je, Ve, Xe, Je) {
44117
+ var Be = this, Ke = void 0, rt = Ye(Me, je, Ve, Xe, Je), ot = ne(rt, 4);
44108
44118
  return Me = ot[0], je = ot[1], Ke = ot[2], Je = ot[3], Ge.call(this, function() {
44109
- return Ve.editor.formatText(Me, je, Ke);
44119
+ return Be.editor.formatText(Me, je, Ke);
44110
44120
  }, Je, Me, 0);
44111
44121
  }
44112
44122
  }, {
44113
44123
  key: "getBounds",
44114
44124
  value: function(Me) {
44115
- var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
44116
- typeof Me == "number" ? Be = this.selection.getBounds(Me, je) : Be = this.selection.getBounds(Me.index, Me.length);
44125
+ var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = void 0;
44126
+ typeof Me == "number" ? Ve = this.selection.getBounds(Me, je) : Ve = this.selection.getBounds(Me.index, Me.length);
44117
44127
  var Xe = this.container.getBoundingClientRect();
44118
44128
  return {
44119
- bottom: Be.bottom - Xe.top,
44120
- height: Be.height,
44121
- left: Be.left - Xe.left,
44122
- right: Be.right - Xe.left,
44123
- top: Be.top - Xe.top,
44124
- width: Be.width
44129
+ bottom: Ve.bottom - Xe.top,
44130
+ height: Ve.height,
44131
+ left: Ve.left - Xe.left,
44132
+ right: Ve.right - Xe.left,
44133
+ top: Ve.top - Xe.top,
44134
+ width: Ve.width
44125
44135
  };
44126
44136
  }
44127
44137
  }, {
44128
44138
  key: "getContents",
44129
44139
  value: function() {
44130
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Be = Ye(Me, je), Xe = ne(Be, 2);
44140
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ye(Me, je), Xe = ne(Ve, 2);
44131
44141
  return Me = Xe[0], je = Xe[1], this.editor.getContents(Me, je);
44132
44142
  }
44133
44143
  }, {
@@ -44176,7 +44186,7 @@ function requireQuill() {
44176
44186
  }, {
44177
44187
  key: "getText",
44178
44188
  value: function() {
44179
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Be = Ye(Me, je), Xe = ne(Be, 2);
44189
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ye(Me, je), Xe = ne(Ve, 2);
44180
44190
  return Me = Xe[0], je = Xe[1], this.editor.getText(Me, je);
44181
44191
  }
44182
44192
  }, {
@@ -44186,18 +44196,18 @@ function requireQuill() {
44186
44196
  }
44187
44197
  }, {
44188
44198
  key: "insertEmbed",
44189
- value: function(Me, je, Be) {
44199
+ value: function(Me, je, Ve) {
44190
44200
  var Xe = this, Je = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Qe.sources.API;
44191
44201
  return Ge.call(this, function() {
44192
- return Xe.editor.insertEmbed(Me, je, Be);
44202
+ return Xe.editor.insertEmbed(Me, je, Ve);
44193
44203
  }, Je, Me);
44194
44204
  }
44195
44205
  }, {
44196
44206
  key: "insertText",
44197
- value: function(Me, je, Be, Xe, Je) {
44198
- var Ve = this, Ke = void 0, rt = Ye(Me, 0, Be, Xe, Je), ot = ne(rt, 4);
44207
+ value: function(Me, je, Ve, Xe, Je) {
44208
+ var Be = this, Ke = void 0, rt = Ye(Me, 0, Ve, Xe, Je), ot = ne(rt, 4);
44199
44209
  return Me = ot[0], Ke = ot[2], Je = ot[3], Ge.call(this, function() {
44200
- return Ve.editor.insertText(Me, je, Ke);
44210
+ return Be.editor.insertText(Me, je, Ke);
44201
44211
  }, Je, Me, je.length);
44202
44212
  }
44203
44213
  }, {
@@ -44222,16 +44232,16 @@ function requireQuill() {
44222
44232
  }
44223
44233
  }, {
44224
44234
  key: "pasteHTML",
44225
- value: function(Me, je, Be) {
44226
- this.clipboard.dangerouslyPasteHTML(Me, je, Be);
44235
+ value: function(Me, je, Ve) {
44236
+ this.clipboard.dangerouslyPasteHTML(Me, je, Ve);
44227
44237
  }
44228
44238
  }, {
44229
44239
  key: "removeFormat",
44230
- value: function(Me, je, Be) {
44231
- var Xe = this, Je = Ye(Me, je, Be), Ve = ne(Je, 4);
44232
- return Me = Ve[0], je = Ve[1], Be = Ve[3], Ge.call(this, function() {
44240
+ value: function(Me, je, Ve) {
44241
+ var Xe = this, Je = Ye(Me, je, Ve), Be = ne(Je, 4);
44242
+ return Me = Be[0], je = Be[1], Ve = Be[3], Ge.call(this, function() {
44233
44243
  return Xe.editor.removeFormat(Me, je);
44234
- }, Be, Me);
44244
+ }, Ve, Me);
44235
44245
  }
44236
44246
  }, {
44237
44247
  key: "scrollIntoView",
@@ -44241,31 +44251,31 @@ function requireQuill() {
44241
44251
  }, {
44242
44252
  key: "setContents",
44243
44253
  value: function(Me) {
44244
- var je = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44254
+ var je = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44245
44255
  return Ge.call(this, function() {
44246
44256
  Me = new ue.default(Me);
44247
- var Xe = je.getLength(), Je = je.editor.deleteText(0, Xe), Ve = je.editor.applyDelta(Me), Ke = Ve.ops[Ve.ops.length - 1];
44257
+ var Xe = je.getLength(), Je = je.editor.deleteText(0, Xe), Be = je.editor.applyDelta(Me), Ke = Be.ops[Be.ops.length - 1];
44248
44258
  Ke != null && typeof Ke.insert == "string" && Ke.insert[Ke.insert.length - 1] === `
44249
- ` && (je.editor.deleteText(je.getLength() - 1, 1), Ve.delete(1));
44250
- var rt = Je.compose(Ve);
44259
+ ` && (je.editor.deleteText(je.getLength() - 1, 1), Be.delete(1));
44260
+ var rt = Je.compose(Be);
44251
44261
  return rt;
44252
- }, Be);
44262
+ }, Ve);
44253
44263
  }
44254
44264
  }, {
44255
44265
  key: "setSelection",
44256
- value: function(Me, je, Be) {
44266
+ value: function(Me, je, Ve) {
44257
44267
  if (Me == null)
44258
44268
  this.selection.setRange(null, je || Qe.sources.API);
44259
44269
  else {
44260
- var Xe = Ye(Me, je, Be), Je = ne(Xe, 4);
44261
- Me = Je[0], je = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Me, je), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44270
+ var Xe = Ye(Me, je, Ve), Je = ne(Xe, 4);
44271
+ Me = Je[0], je = Je[1], Ve = Je[3], this.selection.setRange(new we.Range(Me, je), Ve), Ve !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44262
44272
  }
44263
44273
  }
44264
44274
  }, {
44265
44275
  key: "setText",
44266
44276
  value: function(Me) {
44267
- var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Me);
44268
- return this.setContents(Be, je);
44277
+ var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Ve = new ue.default().insert(Me);
44278
+ return this.setContents(Ve, je);
44269
44279
  }
44270
44280
  }, {
44271
44281
  key: "update",
@@ -44276,10 +44286,10 @@ function requireQuill() {
44276
44286
  }, {
44277
44287
  key: "updateContents",
44278
44288
  value: function(Me) {
44279
- var je = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44289
+ var je = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44280
44290
  return Ge.call(this, function() {
44281
- return Me = new ue.default(Me), je.editor.applyDelta(Me, Be);
44282
- }, Be, !0);
44291
+ return Me = new ue.default(Me), je.editor.applyDelta(Me, Ve);
44292
+ }, Ve, !0);
44283
44293
  }
44284
44294
  }]), Qe;
44285
44295
  })();
@@ -44316,13 +44326,13 @@ function requireQuill() {
44316
44326
  Xe.modules[Je] === !0 && (Xe.modules[Je] = {});
44317
44327
  });
44318
44328
  });
44319
- var je = Object.keys(Me.modules).concat(Object.keys(Ze.modules)), Be = je.reduce(function(Xe, Je) {
44320
- var Ve = ze.import("modules/" + Je);
44321
- return Ve == null ? Ie.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Ve.DEFAULTS || {}, Xe;
44329
+ var je = Object.keys(Me.modules).concat(Object.keys(Ze.modules)), Ve = je.reduce(function(Xe, Je) {
44330
+ var Be = ze.import("modules/" + Je);
44331
+ return Be == null ? Ie.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Be.DEFAULTS || {}, Xe;
44322
44332
  }, {});
44323
44333
  return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
44324
44334
  container: Ze.modules.toolbar
44325
- }), Ze = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules: Be }, Me, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Xe) {
44335
+ }), Ze = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules: Ve }, Me, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Xe) {
44326
44336
  typeof Ze[Xe] == "string" && (Ze[Xe] = document.querySelector(Ze[Xe]));
44327
44337
  }), Ze.modules = Object.keys(Ze.modules).reduce(function(Xe, Je) {
44328
44338
  return Ze.modules[Je] && (Xe[Je] = Ze.modules[Je]), Xe;
@@ -44331,35 +44341,35 @@ function requireQuill() {
44331
44341
  function Ge(Qe, Ze, Me, je) {
44332
44342
  if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
44333
44343
  return new ue.default();
44334
- var Be = Me == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
44335
- if (Be != null && (Me === !0 && (Me = Be.index), je == null ? Be = ft(Be, Je, Ze) : je !== 0 && (Be = ft(Be, Me, je, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44336
- var Ve, Ke = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44337
- if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ke)), Ze !== be.default.sources.SILENT) {
44344
+ var Ve = Me == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
44345
+ if (Ve != null && (Me === !0 && (Me = Ve.index), je == null ? Ve = ft(Ve, Je, Ze) : je !== 0 && (Ve = ft(Ve, Me, je, Ze)), this.setSelection(Ve, be.default.sources.SILENT)), Je.length() > 0) {
44346
+ var Be, Ke = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44347
+ if ((Be = this.emitter).emit.apply(Be, [be.default.events.EDITOR_CHANGE].concat(Ke)), Ze !== be.default.sources.SILENT) {
44338
44348
  var rt;
44339
44349
  (rt = this.emitter).emit.apply(rt, Ke);
44340
44350
  }
44341
44351
  }
44342
44352
  return Je;
44343
44353
  }
44344
- function Ye(Qe, Ze, Me, je, Be) {
44354
+ function Ye(Qe, Ze, Me, je, Ve) {
44345
44355
  var Xe = {};
44346
- return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = je, je = Me, Me = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = je, je = Me, Me = Ze, Ze = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Xe = Me, Be = je) : typeof Me == "string" && (je != null ? Xe[Me] = je : Be = Me), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44356
+ return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Ve = je, je = Me, Me = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Ve = je, je = Me, Me = Ze, Ze = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Xe = Me, Ve = je) : typeof Me == "string" && (je != null ? Xe[Me] = je : Ve = Me), Ve = Ve || be.default.sources.API, [Qe, Ze, Xe, Ve];
44347
44357
  }
44348
44358
  function ft(Qe, Ze, Me, je) {
44349
44359
  if (Qe == null) return null;
44350
- var Be = void 0, Xe = void 0;
44360
+ var Ve = void 0, Xe = void 0;
44351
44361
  if (Ze instanceof ue.default) {
44352
44362
  var Je = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44353
44363
  return Ze.transformPosition(ot, je !== be.default.sources.USER);
44354
- }), Ve = ne(Je, 2);
44355
- Be = Ve[0], Xe = Ve[1];
44364
+ }), Be = ne(Je, 2);
44365
+ Ve = Be[0], Xe = Be[1];
44356
44366
  } else {
44357
44367
  var Ke = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44358
44368
  return ot < Ze || ot === Ze && je === be.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ze, ot + Me);
44359
44369
  }), rt = ne(Ke, 2);
44360
- Be = rt[0], Xe = rt[1];
44370
+ Ve = rt[0], Xe = rt[1];
44361
44371
  }
44362
- return new we.Range(Be, Xe - Be);
44372
+ return new we.Range(Ve, Xe - Ve);
44363
44373
  }
44364
44374
  te.expandConfig = We, te.overload = Ye, te.default = ze;
44365
44375
  }),
@@ -44886,15 +44896,15 @@ function requireQuill() {
44886
44896
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
44887
44897
  }, ne = /* @__PURE__ */ (function() {
44888
44898
  function Qe(Ze, Me) {
44889
- var je = [], Be = !0, Xe = !1, Je = void 0;
44899
+ var je = [], Ve = !0, Xe = !1, Je = void 0;
44890
44900
  try {
44891
- for (var Ve = Ze[Symbol.iterator](), Ke; !(Be = (Ke = Ve.next()).done) && (je.push(Ke.value), !(Me && je.length === Me)); Be = !0)
44901
+ for (var Be = Ze[Symbol.iterator](), Ke; !(Ve = (Ke = Be.next()).done) && (je.push(Ke.value), !(Me && je.length === Me)); Ve = !0)
44892
44902
  ;
44893
44903
  } catch (rt) {
44894
44904
  Xe = !0, Je = rt;
44895
44905
  } finally {
44896
44906
  try {
44897
- !Be && Ve.return && Ve.return();
44907
+ !Ve && Be.return && Be.return();
44898
44908
  } finally {
44899
44909
  if (Xe) throw Je;
44900
44910
  }
@@ -44911,8 +44921,8 @@ function requireQuill() {
44911
44921
  })(), de = /* @__PURE__ */ (function() {
44912
44922
  function Qe(Ze, Me) {
44913
44923
  for (var je = 0; je < Me.length; je++) {
44914
- var Be = Me[je];
44915
- Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
44924
+ var Ve = Me[je];
44925
+ Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Ze, Ve.key, Ve);
44916
44926
  }
44917
44927
  }
44918
44928
  return function(Ze, Me, je) {
@@ -44936,35 +44946,35 @@ function requireQuill() {
44936
44946
  return de(Qe, [{
44937
44947
  key: "applyDelta",
44938
44948
  value: function(Me) {
44939
- var je = this, Be = !1;
44949
+ var je = this, Ve = !1;
44940
44950
  this.scroll.update();
44941
44951
  var Xe = this.scroll.length();
44942
- return this.scroll.batchStart(), Me = ft(Me), Me.reduce(function(Je, Ve) {
44943
- var Ke = Ve.retain || Ve.delete || Ve.insert.length || 1, rt = Ve.attributes || {};
44944
- if (Ve.insert != null) {
44945
- if (typeof Ve.insert == "string") {
44946
- var ot = Ve.insert;
44952
+ return this.scroll.batchStart(), Me = ft(Me), Me.reduce(function(Je, Be) {
44953
+ var Ke = Be.retain || Be.delete || Be.insert.length || 1, rt = Be.attributes || {};
44954
+ if (Be.insert != null) {
44955
+ if (typeof Be.insert == "string") {
44956
+ var ot = Be.insert;
44947
44957
  ot.endsWith(`
44948
- `) && Be && (Be = !1, ot = ot.slice(0, -1)), Je >= Xe && !ot.endsWith(`
44949
- `) && (Be = !0), je.scroll.insertAt(Je, ot);
44958
+ `) && Ve && (Ve = !1, ot = ot.slice(0, -1)), Je >= Xe && !ot.endsWith(`
44959
+ `) && (Ve = !0), je.scroll.insertAt(Je, ot);
44950
44960
  var _t = je.scroll.line(Je), kt = ne(_t, 2), qt = kt[0], Lt = kt[1], Nt = (0, Ae.default)({}, (0, we.bubbleFormats)(qt));
44951
44961
  if (qt instanceof Se.default) {
44952
- var Vt = qt.descendant(be.default.Leaf, Lt), rs = ne(Vt, 1), Kt = rs[0];
44962
+ var Bt = qt.descendant(be.default.Leaf, Lt), rs = ne(Bt, 1), Kt = rs[0];
44953
44963
  Nt = (0, Ae.default)(Nt, (0, we.bubbleFormats)(Kt));
44954
44964
  }
44955
44965
  rt = pe.default.attributes.diff(Nt, rt) || {};
44956
- } else if (oe(Ve.insert) === "object") {
44957
- var gt = Object.keys(Ve.insert)[0];
44966
+ } else if (oe(Be.insert) === "object") {
44967
+ var gt = Object.keys(Be.insert)[0];
44958
44968
  if (gt == null) return Je;
44959
- je.scroll.insertAt(Je, gt, Ve.insert[gt]);
44969
+ je.scroll.insertAt(Je, gt, Be.insert[gt]);
44960
44970
  }
44961
44971
  Xe += Ke;
44962
44972
  }
44963
44973
  return Object.keys(rt).forEach(function(mt) {
44964
44974
  je.scroll.formatAt(Je, Ke, mt, rt[mt]);
44965
44975
  }), Je + Ke;
44966
- }, 0), Me.reduce(function(Je, Ve) {
44967
- return typeof Ve.delete == "number" ? (je.scroll.deleteAt(Je, Ve.delete), Je) : Je + (Ve.retain || Ve.insert.length || 1);
44976
+ }, 0), Me.reduce(function(Je, Be) {
44977
+ return typeof Be.delete == "number" ? (je.scroll.deleteAt(Je, Be.delete), Je) : Je + (Be.retain || Be.insert.length || 1);
44968
44978
  }, 0), this.scroll.batchEnd(), this.update(Me);
44969
44979
  }
44970
44980
  }, {
@@ -44975,16 +44985,16 @@ function requireQuill() {
44975
44985
  }, {
44976
44986
  key: "formatLine",
44977
44987
  value: function(Me, je) {
44978
- var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
44988
+ var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
44979
44989
  return this.scroll.update(), Object.keys(Xe).forEach(function(Je) {
44980
- if (!(Be.scroll.whitelist != null && !Be.scroll.whitelist[Je])) {
44981
- var Ve = Be.scroll.lines(Me, Math.max(je, 1)), Ke = je;
44982
- Ve.forEach(function(rt) {
44990
+ if (!(Ve.scroll.whitelist != null && !Ve.scroll.whitelist[Je])) {
44991
+ var Be = Ve.scroll.lines(Me, Math.max(je, 1)), Ke = je;
44992
+ Be.forEach(function(rt) {
44983
44993
  var ot = rt.length();
44984
44994
  if (!(rt instanceof ge.default))
44985
44995
  rt.format(Je, Xe[Je]);
44986
44996
  else {
44987
- var _t = Me - rt.offset(Be.scroll), kt = rt.newlineIndex(_t + Ke) - _t + 1;
44997
+ var _t = Me - rt.offset(Ve.scroll), kt = rt.newlineIndex(_t + Ke) - _t + 1;
44988
44998
  rt.formatAt(_t, kt, Je, Xe[Je]);
44989
44999
  }
44990
45000
  Ke -= ot;
@@ -44995,9 +45005,9 @@ function requireQuill() {
44995
45005
  }, {
44996
45006
  key: "formatText",
44997
45007
  value: function(Me, je) {
44998
- var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45008
+ var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
44999
45009
  return Object.keys(Xe).forEach(function(Je) {
45000
- Be.scroll.formatAt(Me, je, Je, Xe[Je]);
45010
+ Ve.scroll.formatAt(Me, je, Je, Xe[Je]);
45001
45011
  }), this.update(new ue.default().retain(Me).retain(je, (0, De.default)(Xe)));
45002
45012
  }
45003
45013
  }, {
@@ -45015,15 +45025,15 @@ function requireQuill() {
45015
45025
  }, {
45016
45026
  key: "getFormat",
45017
45027
  value: function(Me) {
45018
- var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
45019
- je === 0 ? this.scroll.path(Me).forEach(function(Ve) {
45020
- var Ke = ne(Ve, 1), rt = Ke[0];
45021
- rt instanceof Se.default ? Be.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
45022
- }) : (Be = this.scroll.lines(Me, je), Xe = this.scroll.descendants(be.default.Leaf, Me, je));
45023
- var Je = [Be, Xe].map(function(Ve) {
45024
- if (Ve.length === 0) return {};
45025
- for (var Ke = (0, we.bubbleFormats)(Ve.shift()); Object.keys(Ke).length > 0; ) {
45026
- var rt = Ve.shift();
45028
+ var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = [], Xe = [];
45029
+ je === 0 ? this.scroll.path(Me).forEach(function(Be) {
45030
+ var Ke = ne(Be, 1), rt = Ke[0];
45031
+ rt instanceof Se.default ? Ve.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
45032
+ }) : (Ve = this.scroll.lines(Me, je), Xe = this.scroll.descendants(be.default.Leaf, Me, je));
45033
+ var Je = [Ve, Xe].map(function(Be) {
45034
+ if (Be.length === 0) return {};
45035
+ for (var Ke = (0, we.bubbleFormats)(Be.shift()); Object.keys(Ke).length > 0; ) {
45036
+ var rt = Be.shift();
45027
45037
  if (rt == null) return Ke;
45028
45038
  Ke = Ye((0, we.bubbleFormats)(rt), Ke);
45029
45039
  }
@@ -45034,25 +45044,25 @@ function requireQuill() {
45034
45044
  }, {
45035
45045
  key: "getText",
45036
45046
  value: function(Me, je) {
45037
- return this.getContents(Me, je).filter(function(Be) {
45038
- return typeof Be.insert == "string";
45039
- }).map(function(Be) {
45040
- return Be.insert;
45047
+ return this.getContents(Me, je).filter(function(Ve) {
45048
+ return typeof Ve.insert == "string";
45049
+ }).map(function(Ve) {
45050
+ return Ve.insert;
45041
45051
  }).join("");
45042
45052
  }
45043
45053
  }, {
45044
45054
  key: "insertEmbed",
45045
- value: function(Me, je, Be) {
45046
- return this.scroll.insertAt(Me, je, Be), this.update(new ue.default().retain(Me).insert(Ie({}, je, Be)));
45055
+ value: function(Me, je, Ve) {
45056
+ return this.scroll.insertAt(Me, je, Ve), this.update(new ue.default().retain(Me).insert(Ie({}, je, Ve)));
45047
45057
  }
45048
45058
  }, {
45049
45059
  key: "insertText",
45050
45060
  value: function(Me, je) {
45051
- var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45061
+ var Ve = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45052
45062
  return je = je.replace(/\r\n/g, `
45053
45063
  `).replace(/\r/g, `
45054
45064
  `), this.scroll.insertAt(Me, je), Object.keys(Xe).forEach(function(Je) {
45055
- Be.scroll.formatAt(Me, je.length, Je, Xe[Je]);
45065
+ Ve.scroll.formatAt(Me, je.length, Je, Xe[Je]);
45056
45066
  }), this.update(new ue.default().retain(Me).insert(je, (0, De.default)(Xe)));
45057
45067
  }
45058
45068
  }, {
@@ -45066,23 +45076,23 @@ function requireQuill() {
45066
45076
  }, {
45067
45077
  key: "removeFormat",
45068
45078
  value: function(Me, je) {
45069
- var Be = this.getText(Me, je), Xe = this.scroll.line(Me + je), Je = ne(Xe, 2), Ve = Je[0], Ke = Je[1], rt = 0, ot = new ue.default();
45070
- Ve != null && (Ve instanceof ge.default ? rt = Ve.newlineIndex(Ke) - Ke + 1 : rt = Ve.length() - Ke, ot = Ve.delta().slice(Ke, Ke + rt - 1).insert(`
45079
+ var Ve = this.getText(Me, je), Xe = this.scroll.line(Me + je), Je = ne(Xe, 2), Be = Je[0], Ke = Je[1], rt = 0, ot = new ue.default();
45080
+ Be != null && (Be instanceof ge.default ? rt = Be.newlineIndex(Ke) - Ke + 1 : rt = Be.length() - Ke, ot = Be.delta().slice(Ke, Ke + rt - 1).insert(`
45071
45081
  `));
45072
- var _t = this.getContents(Me, je + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), qt = new ue.default().retain(Me).concat(kt);
45082
+ var _t = this.getContents(Me, je + rt), kt = _t.diff(new ue.default().insert(Ve).concat(ot)), qt = new ue.default().retain(Me).concat(kt);
45073
45083
  return this.applyDelta(qt);
45074
45084
  }
45075
45085
  }, {
45076
45086
  key: "update",
45077
45087
  value: function(Me) {
45078
- var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45088
+ var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Ve = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45079
45089
  if (je.length === 1 && je[0].type === "characterData" && je[0].target.data.match(We) && be.default.find(je[0].target)) {
45080
- var Je = be.default.find(je[0].target), Ve = (0, we.bubbleFormats)(Je), Ke = Je.offset(this.scroll), rt = je[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ke).concat(ot.diff(_t, Be));
45090
+ var Je = be.default.find(je[0].target), Be = (0, we.bubbleFormats)(Je), Ke = Je.offset(this.scroll), rt = je[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ke).concat(ot.diff(_t, Ve));
45081
45091
  Me = kt.reduce(function(qt, Lt) {
45082
- return Lt.insert ? qt.insert(Lt.insert, Ve) : qt.push(Lt);
45092
+ return Lt.insert ? qt.insert(Lt.insert, Be) : qt.push(Lt);
45083
45093
  }, new ue.default()), this.delta = Xe.compose(Me);
45084
45094
  } else
45085
- this.delta = this.getDelta(), (!Me || !(0, He.default)(Xe.compose(Me), this.delta)) && (Me = Xe.diff(this.delta, Be));
45095
+ this.delta = this.getDelta(), (!Me || !(0, He.default)(Xe.compose(Me), this.delta)) && (Me = Xe.diff(this.delta, Ve));
45086
45096
  return Me;
45087
45097
  }
45088
45098
  }]), Qe;
@@ -45099,10 +45109,10 @@ function requireQuill() {
45099
45109
  return delete je.image, Ze.insert({ image: Me.attributes.image }, je);
45100
45110
  }
45101
45111
  if (Me.attributes != null && (Me.attributes.list === !0 || Me.attributes.bullet === !0) && (Me = (0, De.default)(Me), Me.attributes.list ? Me.attributes.list = "ordered" : (Me.attributes.list = "bullet", delete Me.attributes.bullet)), typeof Me.insert == "string") {
45102
- var Be = Me.insert.replace(/\r\n/g, `
45112
+ var Ve = Me.insert.replace(/\r\n/g, `
45103
45113
  `).replace(/\r/g, `
45104
45114
  `);
45105
- return Ze.insert(Be, Me.attributes);
45115
+ return Ze.insert(Ve, Me.attributes);
45106
45116
  }
45107
45117
  return Ze.push(Me);
45108
45118
  }, new ue.default());
@@ -45256,17 +45266,17 @@ function requireQuill() {
45256
45266
  var Me = document.createRange();
45257
45267
  if (Le > 0) {
45258
45268
  Me.setStart(ze, ft);
45259
- var je = this.scroll.leaf(Ae + Le), Be = oe(je, 2);
45260
- if (Ye = Be[0], ft = Be[1], Ye == null) return null;
45269
+ var je = this.scroll.leaf(Ae + Le), Ve = oe(je, 2);
45270
+ if (Ye = Ve[0], ft = Ve[1], Ye == null) return null;
45261
45271
  var Xe = Ye.position(ft, !0), Je = oe(Xe, 2);
45262
45272
  return ze = Je[0], ft = Je[1], Me.setEnd(ze, ft), Me.getBoundingClientRect();
45263
45273
  } else {
45264
- var Ve = "left", Ke = void 0;
45265
- return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Ve = "right"), Ke = Me.getBoundingClientRect()) : (Ke = Ye.domNode.getBoundingClientRect(), ft > 0 && (Ve = "right")), {
45274
+ var Be = "left", Ke = void 0;
45275
+ return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Be = "right"), Ke = Me.getBoundingClientRect()) : (Ke = Ye.domNode.getBoundingClientRect(), ft > 0 && (Be = "right")), {
45266
45276
  bottom: Ke.top + Ke.height,
45267
45277
  height: Ke.height,
45268
- left: Ke[Ve],
45269
- right: Ke[Ve],
45278
+ left: Ke[Be],
45279
+ right: Ke[Be],
45270
45280
  top: Ke.top,
45271
45281
  width: 0
45272
45282
  };
@@ -45331,7 +45341,7 @@ function requireQuill() {
45331
45341
  var Le = this, Ie = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], ze = [], We = this.scroll.length();
45332
45342
  return Ie.forEach(function(Ge, Ye) {
45333
45343
  Ge = Math.min(We - 1, Ge);
45334
- var ft = void 0, Qe = Le.scroll.leaf(Ge), Ze = oe(Qe, 2), Me = Ze[0], je = Ze[1], Be = Me.position(je, Ye !== 0), Xe = oe(Be, 2);
45344
+ var ft = void 0, Qe = Le.scroll.leaf(Ge), Ze = oe(Qe, 2), Me = Ze[0], je = Ze[1], Ve = Me.position(je, Ye !== 0), Xe = oe(Ve, 2);
45335
45345
  ft = Xe[0], je = Xe[1], ze.push(ft, je);
45336
45346
  }), ze.length < 2 && (ze = ze.concat(ze)), ze;
45337
45347
  }
@@ -45872,8 +45882,8 @@ function requireQuill() {
45872
45882
  ye.push(Fe), Ce.push(qe);
45873
45883
  }
45874
45884
  oe(Fe, ne) && Fe.forEach(function(Ze, Me) {
45875
- var je = De(Me, He - 1), Be = De(Ze, He - 1);
45876
- qe.set(je, Be);
45885
+ var je = De(Me, He - 1), Ve = De(Ze, He - 1);
45886
+ qe.set(je, Ve);
45877
45887
  }), oe(Fe, de) && Fe.forEach(function(Ze) {
45878
45888
  var Me = De(Ze, He - 1);
45879
45889
  qe.add(Me);
@@ -46040,8 +46050,8 @@ function requireQuill() {
46040
46050
  return;
46041
46051
  }
46042
46052
  } else if (Me instanceof _e.default) {
46043
- var Be = Me.newlineIndex(0);
46044
- Be > -1 && Me.split(Be + 1);
46053
+ var Ve = Me.newlineIndex(0);
46054
+ Ve > -1 && Me.split(Ve + 1);
46045
46055
  }
46046
46056
  var Xe = Me.children.head instanceof ge.default ? null : Me.children.head;
46047
46057
  Ye.moveChildren(Me, Xe), Ye.remove();
@@ -46101,8 +46111,8 @@ function requireQuill() {
46101
46111
  value: function() {
46102
46112
  var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ye, ft, Qe) {
46103
46113
  var Ze = [], Me = Qe;
46104
- return Ye.children.forEachAt(ft, Qe, function(je, Be, Xe) {
46105
- Fe(je) ? Ze.push(je) : je instanceof ue.default.Container && (Ze = Ze.concat(Ge(je, Be, Me))), Me -= Xe;
46114
+ return Ye.children.forEachAt(ft, Qe, function(je, Ve, Xe) {
46115
+ Fe(je) ? Ze.push(je) : je instanceof ue.default.Container && (Ze = Ze.concat(Ge(je, Ve, Me))), Me -= Xe;
46106
46116
  }), Ze;
46107
46117
  };
46108
46118
  return We(this, Ie, ze);
@@ -46136,18 +46146,18 @@ function requireQuill() {
46136
46146
  Object.defineProperty(te, "__esModule", {
46137
46147
  value: !0
46138
46148
  }), te.SHORTKEY = te.default = void 0;
46139
- var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Ve) {
46140
- return typeof Ve;
46141
- } : function(Ve) {
46142
- return Ve && typeof Symbol == "function" && Ve.constructor === Symbol && Ve !== Symbol.prototype ? "symbol" : typeof Ve;
46149
+ var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Be) {
46150
+ return typeof Be;
46151
+ } : function(Be) {
46152
+ return Be && typeof Symbol == "function" && Be.constructor === Symbol && Be !== Symbol.prototype ? "symbol" : typeof Be;
46143
46153
  }, ne = /* @__PURE__ */ (function() {
46144
- function Ve(Ke, rt) {
46154
+ function Be(Ke, rt) {
46145
46155
  var ot = [], _t = !0, kt = !1, qt = void 0;
46146
46156
  try {
46147
46157
  for (var Lt = Ke[Symbol.iterator](), Nt; !(_t = (Nt = Lt.next()).done) && (ot.push(Nt.value), !(rt && ot.length === rt)); _t = !0)
46148
46158
  ;
46149
- } catch (Vt) {
46150
- kt = !0, qt = Vt;
46159
+ } catch (Bt) {
46160
+ kt = !0, qt = Bt;
46151
46161
  } finally {
46152
46162
  try {
46153
46163
  !_t && Lt.return && Lt.return();
@@ -46161,42 +46171,42 @@ function requireQuill() {
46161
46171
  if (Array.isArray(Ke))
46162
46172
  return Ke;
46163
46173
  if (Symbol.iterator in Object(Ke))
46164
- return Ve(Ke, rt);
46174
+ return Be(Ke, rt);
46165
46175
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
46166
46176
  };
46167
46177
  })(), de = /* @__PURE__ */ (function() {
46168
- function Ve(Ke, rt) {
46178
+ function Be(Ke, rt) {
46169
46179
  for (var ot = 0; ot < rt.length; ot++) {
46170
46180
  var _t = rt[ot];
46171
46181
  _t.enumerable = _t.enumerable || !1, _t.configurable = !0, "value" in _t && (_t.writable = !0), Object.defineProperty(Ke, _t.key, _t);
46172
46182
  }
46173
46183
  }
46174
46184
  return function(Ke, rt, ot) {
46175
- return rt && Ve(Ke.prototype, rt), ot && Ve(Ke, ot), Ke;
46185
+ return rt && Be(Ke.prototype, rt), ot && Be(Ke, ot), Ke;
46176
46186
  };
46177
46187
  })(), ce = re(21), ue = qe(ce), he = re(11), pe = qe(he), fe = re(3), be = qe(fe), me = re(2), ge = qe(me), ve = re(20), _e = qe(ve), we = re(0), Se = qe(we), ye = re(5), Ce = qe(ye), Pe = re(10), De = qe(Pe), Fe = re(9), He = qe(Fe);
46178
- function qe(Ve) {
46179
- return Ve && Ve.__esModule ? Ve : { default: Ve };
46188
+ function qe(Be) {
46189
+ return Be && Be.__esModule ? Be : { default: Be };
46180
46190
  }
46181
- function Ae(Ve, Ke, rt) {
46182
- return Ke in Ve ? Object.defineProperty(Ve, Ke, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Ve[Ke] = rt, Ve;
46191
+ function Ae(Be, Ke, rt) {
46192
+ return Ke in Be ? Object.defineProperty(Be, Ke, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Be[Ke] = rt, Be;
46183
46193
  }
46184
- function Le(Ve, Ke) {
46185
- if (!(Ve instanceof Ke))
46194
+ function Le(Be, Ke) {
46195
+ if (!(Be instanceof Ke))
46186
46196
  throw new TypeError("Cannot call a class as a function");
46187
46197
  }
46188
- function Ie(Ve, Ke) {
46189
- if (!Ve)
46198
+ function Ie(Be, Ke) {
46199
+ if (!Be)
46190
46200
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
46191
- return Ke && (typeof Ke == "object" || typeof Ke == "function") ? Ke : Ve;
46201
+ return Ke && (typeof Ke == "object" || typeof Ke == "function") ? Ke : Be;
46192
46202
  }
46193
- function ze(Ve, Ke) {
46203
+ function ze(Be, Ke) {
46194
46204
  if (typeof Ke != "function" && Ke !== null)
46195
46205
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ke);
46196
- Ve.prototype = Object.create(Ke && Ke.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Ke && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Ke) : Ve.__proto__ = Ke);
46206
+ Be.prototype = Object.create(Ke && Ke.prototype, { constructor: { value: Be, enumerable: !1, writable: !0, configurable: !0 } }), Ke && (Object.setPrototypeOf ? Object.setPrototypeOf(Be, Ke) : Be.__proto__ = Ke);
46197
46207
  }
46198
- var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(Ve) {
46199
- ze(Ke, Ve), de(Ke, null, [{
46208
+ var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ye = (function(Be) {
46209
+ ze(Ke, Be), de(Ke, null, [{
46200
46210
  key: "match",
46201
46211
  value: function(ot, _t) {
46202
46212
  return _t = Je(_t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(kt) {
@@ -46232,7 +46242,7 @@ function requireQuill() {
46232
46242
  if (qt.length !== 0) {
46233
46243
  var Lt = ot.quill.getSelection();
46234
46244
  if (!(Lt == null || !ot.quill.hasFocus())) {
46235
- var Nt = ot.quill.getLine(Lt.index), Vt = ne(Nt, 2), rs = Vt[0], Kt = Vt[1], gt = ot.quill.getLeaf(Lt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = Lt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(Lt.index + Lt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "", Yt = {
46245
+ var Nt = ot.quill.getLine(Lt.index), Bt = ne(Nt, 2), rs = Bt[0], Kt = Bt[1], gt = ot.quill.getLeaf(Lt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = Lt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(Lt.index + Lt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "", Yt = {
46236
46246
  collapsed: Lt.length === 0,
46237
46247
  empty: Lt.length === 0 && rs.length() <= 1,
46238
46248
  format: ot.quill.getFormat(Lt),
@@ -46307,8 +46317,8 @@ function requireQuill() {
46307
46317
  rt.format.indent != null ? this.quill.format("indent", "-1", Ce.default.sources.USER) : rt.format.list != null && this.quill.format("list", !1, Ce.default.sources.USER);
46308
46318
  }
46309
46319
  },
46310
- "indent code-block": Be(!0),
46311
- "outdent code-block": Be(!1),
46320
+ "indent code-block": Ve(!0),
46321
+ "outdent code-block": Ve(!1),
46312
46322
  "remove tab": {
46313
46323
  key: Ye.keys.TAB,
46314
46324
  shiftKey: !0,
@@ -46381,8 +46391,8 @@ function requireQuill() {
46381
46391
  Nt = "ordered";
46382
46392
  }
46383
46393
  this.quill.insertText(Ke.index, " ", Ce.default.sources.USER), this.quill.history.cutoff();
46384
- var Vt = new ge.default().retain(Ke.index - Lt).delete(ot + 1).retain(qt.length() - 2 - Lt).retain(1, { list: Nt });
46385
- this.quill.updateContents(Vt, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ke.index - ot, Ce.default.sources.SILENT);
46394
+ var Bt = new ge.default().retain(Ke.index - Lt).delete(ot + 1).retain(qt.length() - 2 - Lt).retain(1, { list: Nt });
46395
+ this.quill.updateContents(Bt, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ke.index - ot, Ce.default.sources.SILENT);
46386
46396
  }
46387
46397
  },
46388
46398
  "code exit": {
@@ -46402,103 +46412,103 @@ function requireQuill() {
46402
46412
  "embed right shift": ft(Ye.keys.RIGHT, !0)
46403
46413
  }
46404
46414
  };
46405
- function ft(Ve, Ke) {
46406
- var rt, ot = Ve === Ye.keys.LEFT ? "prefix" : "suffix";
46415
+ function ft(Be, Ke) {
46416
+ var rt, ot = Be === Ye.keys.LEFT ? "prefix" : "suffix";
46407
46417
  return rt = {
46408
- key: Ve,
46418
+ key: Be,
46409
46419
  shiftKey: Ke,
46410
46420
  altKey: null
46411
46421
  }, Ae(rt, ot, /^$/), Ae(rt, "handler", function(kt) {
46412
46422
  var qt = kt.index;
46413
- Ve === Ye.keys.RIGHT && (qt += kt.length + 1);
46414
- var Lt = this.quill.getLeaf(qt), Nt = ne(Lt, 1), Vt = Nt[0];
46415
- return Vt instanceof Se.default.Embed ? (Ve === Ye.keys.LEFT ? Ke ? this.quill.setSelection(kt.index - 1, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index - 1, Ce.default.sources.USER) : Ke ? this.quill.setSelection(kt.index, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Ce.default.sources.USER), !1) : !0;
46423
+ Be === Ye.keys.RIGHT && (qt += kt.length + 1);
46424
+ var Lt = this.quill.getLeaf(qt), Nt = ne(Lt, 1), Bt = Nt[0];
46425
+ return Bt instanceof Se.default.Embed ? (Be === Ye.keys.LEFT ? Ke ? this.quill.setSelection(kt.index - 1, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index - 1, Ce.default.sources.USER) : Ke ? this.quill.setSelection(kt.index, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Ce.default.sources.USER), !1) : !0;
46416
46426
  }), rt;
46417
46427
  }
46418
- function Qe(Ve, Ke) {
46419
- if (!(Ve.index === 0 || this.quill.getLength() <= 1)) {
46420
- var rt = this.quill.getLine(Ve.index), ot = ne(rt, 1), _t = ot[0], kt = {};
46428
+ function Qe(Be, Ke) {
46429
+ if (!(Be.index === 0 || this.quill.getLength() <= 1)) {
46430
+ var rt = this.quill.getLine(Be.index), ot = ne(rt, 1), _t = ot[0], kt = {};
46421
46431
  if (Ke.offset === 0) {
46422
- var qt = this.quill.getLine(Ve.index - 1), Lt = ne(qt, 1), Nt = Lt[0];
46432
+ var qt = this.quill.getLine(Be.index - 1), Lt = ne(qt, 1), Nt = Lt[0];
46423
46433
  if (Nt != null && Nt.length() > 1) {
46424
- var Vt = _t.formats(), rs = this.quill.getFormat(Ve.index - 1, 1);
46425
- kt = _e.default.attributes.diff(Vt, rs) || {};
46434
+ var Bt = _t.formats(), rs = this.quill.getFormat(Be.index - 1, 1);
46435
+ kt = _e.default.attributes.diff(Bt, rs) || {};
46426
46436
  }
46427
46437
  }
46428
46438
  var Kt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ke.prefix) ? 2 : 1;
46429
- this.quill.deleteText(Ve.index - Kt, Kt, Ce.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ve.index - Kt, Kt, kt, Ce.default.sources.USER), this.quill.focus();
46439
+ this.quill.deleteText(Be.index - Kt, Kt, Ce.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Be.index - Kt, Kt, kt, Ce.default.sources.USER), this.quill.focus();
46430
46440
  }
46431
46441
  }
46432
- function Ze(Ve, Ke) {
46442
+ function Ze(Be, Ke) {
46433
46443
  var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ke.suffix) ? 2 : 1;
46434
- if (!(Ve.index >= this.quill.getLength() - rt)) {
46435
- var ot = {}, _t = 0, kt = this.quill.getLine(Ve.index), qt = ne(kt, 1), Lt = qt[0];
46444
+ if (!(Be.index >= this.quill.getLength() - rt)) {
46445
+ var ot = {}, _t = 0, kt = this.quill.getLine(Be.index), qt = ne(kt, 1), Lt = qt[0];
46436
46446
  if (Ke.offset >= Lt.length() - 1) {
46437
- var Nt = this.quill.getLine(Ve.index + 1), Vt = ne(Nt, 1), rs = Vt[0];
46447
+ var Nt = this.quill.getLine(Be.index + 1), Bt = ne(Nt, 1), rs = Bt[0];
46438
46448
  if (rs) {
46439
- var Kt = Lt.formats(), gt = this.quill.getFormat(Ve.index, 1);
46449
+ var Kt = Lt.formats(), gt = this.quill.getFormat(Be.index, 1);
46440
46450
  ot = _e.default.attributes.diff(Kt, gt) || {}, _t = rs.length();
46441
46451
  }
46442
46452
  }
46443
- this.quill.deleteText(Ve.index, rt, Ce.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Ve.index + _t - 1, rt, ot, Ce.default.sources.USER);
46453
+ this.quill.deleteText(Be.index, rt, Ce.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Be.index + _t - 1, rt, ot, Ce.default.sources.USER);
46444
46454
  }
46445
46455
  }
46446
- function Me(Ve) {
46447
- var Ke = this.quill.getLines(Ve), rt = {};
46456
+ function Me(Be) {
46457
+ var Ke = this.quill.getLines(Be), rt = {};
46448
46458
  if (Ke.length > 1) {
46449
46459
  var ot = Ke[0].formats(), _t = Ke[Ke.length - 1].formats();
46450
46460
  rt = _e.default.attributes.diff(_t, ot) || {};
46451
46461
  }
46452
- this.quill.deleteText(Ve, Ce.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Ve.index, 1, rt, Ce.default.sources.USER), this.quill.setSelection(Ve.index, Ce.default.sources.SILENT), this.quill.focus();
46462
+ this.quill.deleteText(Be, Ce.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Be.index, 1, rt, Ce.default.sources.USER), this.quill.setSelection(Be.index, Ce.default.sources.SILENT), this.quill.focus();
46453
46463
  }
46454
- function je(Ve, Ke) {
46464
+ function je(Be, Ke) {
46455
46465
  var rt = this;
46456
- Ve.length > 0 && this.quill.scroll.deleteAt(Ve.index, Ve.length);
46466
+ Be.length > 0 && this.quill.scroll.deleteAt(Be.index, Be.length);
46457
46467
  var ot = Object.keys(Ke.format).reduce(function(_t, kt) {
46458
46468
  return Se.default.query(kt, Se.default.Scope.BLOCK) && !Array.isArray(Ke.format[kt]) && (_t[kt] = Ke.format[kt]), _t;
46459
46469
  }, {});
46460
- this.quill.insertText(Ve.index, `
46461
- `, ot, Ce.default.sources.USER), this.quill.setSelection(Ve.index + 1, Ce.default.sources.SILENT), this.quill.focus(), Object.keys(Ke.format).forEach(function(_t) {
46470
+ this.quill.insertText(Be.index, `
46471
+ `, ot, Ce.default.sources.USER), this.quill.setSelection(Be.index + 1, Ce.default.sources.SILENT), this.quill.focus(), Object.keys(Ke.format).forEach(function(_t) {
46462
46472
  ot[_t] == null && (Array.isArray(Ke.format[_t]) || _t !== "link" && rt.quill.format(_t, Ke.format[_t], Ce.default.sources.USER));
46463
46473
  });
46464
46474
  }
46465
- function Be(Ve) {
46475
+ function Ve(Be) {
46466
46476
  return {
46467
46477
  key: Ye.keys.TAB,
46468
- shiftKey: !Ve,
46478
+ shiftKey: !Be,
46469
46479
  format: { "code-block": !0 },
46470
46480
  handler: function(rt) {
46471
- var ot = Se.default.query("code-block"), _t = rt.index, kt = rt.length, qt = this.quill.scroll.descendant(ot, _t), Lt = ne(qt, 2), Nt = Lt[0], Vt = Lt[1];
46481
+ var ot = Se.default.query("code-block"), _t = rt.index, kt = rt.length, qt = this.quill.scroll.descendant(ot, _t), Lt = ne(qt, 2), Nt = Lt[0], Bt = Lt[1];
46472
46482
  if (Nt != null) {
46473
- var rs = this.quill.getIndex(Nt), Kt = Nt.newlineIndex(Vt, !0) + 1, gt = Nt.newlineIndex(rs + Vt + kt), mt = Nt.domNode.textContent.slice(Kt, gt).split(`
46483
+ var rs = this.quill.getIndex(Nt), Kt = Nt.newlineIndex(Bt, !0) + 1, gt = Nt.newlineIndex(rs + Bt + kt), mt = Nt.domNode.textContent.slice(Kt, gt).split(`
46474
46484
  `);
46475
- Vt = 0, mt.forEach(function(xt, Ct) {
46476
- Ve ? (Nt.insertAt(Kt + Vt, ot.TAB), Vt += ot.TAB.length, Ct === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Kt + Vt, ot.TAB.length), Vt -= ot.TAB.length, Ct === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Vt += xt.length + 1;
46485
+ Bt = 0, mt.forEach(function(xt, Ct) {
46486
+ Be ? (Nt.insertAt(Kt + Bt, ot.TAB), Bt += ot.TAB.length, Ct === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Kt + Bt, ot.TAB.length), Bt -= ot.TAB.length, Ct === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Bt += xt.length + 1;
46477
46487
  }), this.quill.update(Ce.default.sources.USER), this.quill.setSelection(_t, kt, Ce.default.sources.SILENT);
46478
46488
  }
46479
46489
  }
46480
46490
  };
46481
46491
  }
46482
- function Xe(Ve) {
46492
+ function Xe(Be) {
46483
46493
  return {
46484
- key: Ve[0].toUpperCase(),
46494
+ key: Be[0].toUpperCase(),
46485
46495
  shortKey: !0,
46486
46496
  handler: function(rt, ot) {
46487
- this.quill.format(Ve, !ot.format[Ve], Ce.default.sources.USER);
46497
+ this.quill.format(Be, !ot.format[Be], Ce.default.sources.USER);
46488
46498
  }
46489
46499
  };
46490
46500
  }
46491
- function Je(Ve) {
46492
- if (typeof Ve == "string" || typeof Ve == "number")
46493
- return Je({ key: Ve });
46494
- if ((typeof Ve > "u" ? "undefined" : oe(Ve)) === "object" && (Ve = (0, ue.default)(Ve, !1)), typeof Ve.key == "string")
46495
- if (Ye.keys[Ve.key.toUpperCase()] != null)
46496
- Ve.key = Ye.keys[Ve.key.toUpperCase()];
46497
- else if (Ve.key.length === 1)
46498
- Ve.key = Ve.key.toUpperCase().charCodeAt(0);
46501
+ function Je(Be) {
46502
+ if (typeof Be == "string" || typeof Be == "number")
46503
+ return Je({ key: Be });
46504
+ if ((typeof Be > "u" ? "undefined" : oe(Be)) === "object" && (Be = (0, ue.default)(Be, !1)), typeof Be.key == "string")
46505
+ if (Ye.keys[Be.key.toUpperCase()] != null)
46506
+ Be.key = Ye.keys[Be.key.toUpperCase()];
46507
+ else if (Be.key.length === 1)
46508
+ Be.key = Be.key.toUpperCase().charCodeAt(0);
46499
46509
  else
46500
46510
  return null;
46501
- return Ve.shortKey && (Ve[Ge] = Ve.shortKey, delete Ve.shortKey), Ve;
46511
+ return Be.shortKey && (Be[Ge] = Be.shortKey, delete Be.shortKey), Be;
46502
46512
  }
46503
46513
  te.default = Ye, te.SHORTKEY = Ge;
46504
46514
  }),
@@ -47359,8 +47369,8 @@ function requireQuill() {
47359
47369
  throw new TypeError("unexpected type: " + Le.type);
47360
47370
  return Ae.setStart(Ge, 0), Ae.setEnd(Ye, Ye.length), { range: Ae, mode: "all" };
47361
47371
  }
47362
- var Ze = We(), Me = void 0, je = void 0, Be = Ye.length - Ce(Ye);
47363
- return ft ? (Le.extend(Ge, 0), Me = We() + ye(Ge), Le.extend(Ye, Be), je = Be - (We() - Ze), Le.extend(Ye, je)) : (Le.extend(Ye, Be), je = Be - We(), Le.extend(Ge, 0), Me = We() - Ze + ye(Ge), Le.extend(Ge, Me)), Ae.setStart(Ge, Me), Ae.setEnd(Ye, je), {
47372
+ var Ze = We(), Me = void 0, je = void 0, Ve = Ye.length - Ce(Ye);
47373
+ return ft ? (Le.extend(Ge, 0), Me = We() + ye(Ge), Le.extend(Ye, Ve), je = Ve - (We() - Ze), Le.extend(Ye, je)) : (Le.extend(Ye, Ve), je = Ve - We(), Le.extend(Ge, 0), Me = We() - Ze + ye(Ge), Le.extend(Ge, Me)), Ae.setStart(Ge, Me), Ae.setEnd(Ye, je), {
47364
47374
  mode: ft ? "right" : "left",
47365
47375
  range: Ae
47366
47376
  };
@@ -47825,92 +47835,92 @@ function requireQuill() {
47825
47835
  value: !0
47826
47836
  }), te.default = te.BaseTooltip = void 0;
47827
47837
  var oe = /* @__PURE__ */ (function() {
47828
- function je(Be, Xe) {
47838
+ function je(Ve, Xe) {
47829
47839
  for (var Je = 0; Je < Xe.length; Je++) {
47830
- var Ve = Xe[Je];
47831
- Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Be, Ve.key, Ve);
47840
+ var Be = Xe[Je];
47841
+ Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ve, Be.key, Be);
47832
47842
  }
47833
47843
  }
47834
- return function(Be, Xe, Je) {
47835
- return Xe && je(Be.prototype, Xe), Je && je(Be, Je), Be;
47844
+ return function(Ve, Xe, Je) {
47845
+ return Xe && je(Ve.prototype, Xe), Je && je(Ve, Je), Ve;
47836
47846
  };
47837
- })(), ne = function je(Be, Xe, Je) {
47838
- Be === null && (Be = Function.prototype);
47839
- var Ve = Object.getOwnPropertyDescriptor(Be, Xe);
47840
- if (Ve === void 0) {
47841
- var Ke = Object.getPrototypeOf(Be);
47847
+ })(), ne = function je(Ve, Xe, Je) {
47848
+ Ve === null && (Ve = Function.prototype);
47849
+ var Be = Object.getOwnPropertyDescriptor(Ve, Xe);
47850
+ if (Be === void 0) {
47851
+ var Ke = Object.getPrototypeOf(Ve);
47842
47852
  return Ke === null ? void 0 : je(Ke, Xe, Je);
47843
47853
  } else {
47844
- if ("value" in Ve)
47845
- return Ve.value;
47846
- var rt = Ve.get;
47854
+ if ("value" in Be)
47855
+ return Be.value;
47856
+ var rt = Be.get;
47847
47857
  return rt === void 0 ? void 0 : rt.call(Je);
47848
47858
  }
47849
47859
  }, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), we = He(_e), Se = re(61), ye = He(Se), Ce = re(28), Pe = He(Ce), De = re(62), Fe = He(De);
47850
47860
  function He(je) {
47851
47861
  return je && je.__esModule ? je : { default: je };
47852
47862
  }
47853
- function qe(je, Be) {
47854
- if (!(je instanceof Be))
47863
+ function qe(je, Ve) {
47864
+ if (!(je instanceof Ve))
47855
47865
  throw new TypeError("Cannot call a class as a function");
47856
47866
  }
47857
- function Ae(je, Be) {
47867
+ function Ae(je, Ve) {
47858
47868
  if (!je)
47859
47869
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47860
- return Be && (typeof Be == "object" || typeof Be == "function") ? Be : je;
47870
+ return Ve && (typeof Ve == "object" || typeof Ve == "function") ? Ve : je;
47861
47871
  }
47862
- function Le(je, Be) {
47863
- if (typeof Be != "function" && Be !== null)
47864
- throw new TypeError("Super expression must either be null or a function, not " + typeof Be);
47865
- je.prototype = Object.create(Be && Be.prototype, { constructor: { value: je, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(je, Be) : je.__proto__ = Be);
47872
+ function Le(je, Ve) {
47873
+ if (typeof Ve != "function" && Ve !== null)
47874
+ throw new TypeError("Super expression must either be null or a function, not " + typeof Ve);
47875
+ je.prototype = Object.create(Ve && Ve.prototype, { constructor: { value: je, enumerable: !1, writable: !0, configurable: !0 } }), Ve && (Object.setPrototypeOf ? Object.setPrototypeOf(je, Ve) : je.__proto__ = Ve);
47866
47876
  }
47867
47877
  var Ie = [!1, "center", "right", "justify"], ze = ["#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"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ye = ["petita", !1, "gran", "enorme"], ft = (function(je) {
47868
- Le(Be, je);
47869
- function Be(Xe, Je) {
47870
- qe(this, Be);
47871
- var Ve = Ae(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je)), Ke = function rt(ot) {
47878
+ Le(Ve, je);
47879
+ function Ve(Xe, Je) {
47880
+ qe(this, Ve);
47881
+ var Be = Ae(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Xe, Je)), Ke = function rt(ot) {
47872
47882
  if (!document.body.contains(Xe.root))
47873
47883
  return document.body.removeEventListener("click", rt);
47874
- Ve.tooltip != null && !Ve.tooltip.root.contains(ot.target) && document.activeElement !== Ve.tooltip.textbox && !Ve.quill.hasFocus() && Ve.tooltip.hide(), Ve.pickers != null && Ve.pickers.forEach(function(_t) {
47884
+ Be.tooltip != null && !Be.tooltip.root.contains(ot.target) && document.activeElement !== Be.tooltip.textbox && !Be.quill.hasFocus() && Be.tooltip.hide(), Be.pickers != null && Be.pickers.forEach(function(_t) {
47875
47885
  _t.container.contains(ot.target) || _t.close();
47876
47886
  });
47877
47887
  };
47878
- return Xe.emitter.listenDOM("click", document.body, Ke), Ve;
47888
+ return Xe.emitter.listenDOM("click", document.body, Ke), Be;
47879
47889
  }
47880
- return oe(Be, [{
47890
+ return oe(Ve, [{
47881
47891
  key: "addModule",
47882
47892
  value: function(Je) {
47883
- var Ve = ne(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, Je);
47884
- return Je === "toolbar" && this.extendToolbar(Ve), Ve;
47893
+ var Be = ne(Ve.prototype.__proto__ || Object.getPrototypeOf(Ve.prototype), "addModule", this).call(this, Je);
47894
+ return Je === "toolbar" && this.extendToolbar(Be), Be;
47885
47895
  }
47886
47896
  }, {
47887
47897
  key: "buildButtons",
47888
- value: function(Je, Ve) {
47898
+ value: function(Je, Be) {
47889
47899
  Je.forEach(function(Ke) {
47890
47900
  var rt = Ke.getAttribute("class") || "";
47891
47901
  rt.split(/\s+/).forEach(function(ot) {
47892
- if (ot.startsWith("ql-") && (ot = ot.slice(3), Ve[ot] != null))
47902
+ if (ot.startsWith("ql-") && (ot = ot.slice(3), Be[ot] != null))
47893
47903
  if (ot === "direction")
47894
- Ke.innerHTML = Ve[ot][""] + Ve[ot].rtl;
47895
- else if (typeof Ve[ot] == "string")
47896
- Ke.innerHTML = Ve[ot];
47904
+ Ke.innerHTML = Be[ot][""] + Be[ot].rtl;
47905
+ else if (typeof Be[ot] == "string")
47906
+ Ke.innerHTML = Be[ot];
47897
47907
  else {
47898
47908
  var _t = Ke.value || "";
47899
- _t != null && Ve[ot][_t] && (Ke.innerHTML = Ve[ot][_t]);
47909
+ _t != null && Be[ot][_t] && (Ke.innerHTML = Be[ot][_t]);
47900
47910
  }
47901
47911
  });
47902
47912
  });
47903
47913
  }
47904
47914
  }, {
47905
47915
  key: "buildPickers",
47906
- value: function(Je, Ve) {
47916
+ value: function(Je, Be) {
47907
47917
  var Ke = this;
47908
47918
  this.pickers = Je.map(function(ot) {
47909
47919
  if (ot.classList.contains("ql-align"))
47910
- return ot.querySelector("option") == null && Me(ot, Ie), new ye.default(ot, Ve.align);
47920
+ return ot.querySelector("option") == null && Me(ot, Ie), new ye.default(ot, Be.align);
47911
47921
  if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
47912
47922
  var _t = ot.classList.contains("ql-background") ? "background" : "color";
47913
- return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ve[_t]);
47923
+ return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Be[_t]);
47914
47924
  } else
47915
47925
  return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot, Ye)), new Pe.default(ot);
47916
47926
  });
@@ -47921,7 +47931,7 @@ function requireQuill() {
47921
47931
  };
47922
47932
  this.quill.on(fe.default.events.EDITOR_CHANGE, rt);
47923
47933
  }
47924
- }]), Be;
47934
+ }]), Ve;
47925
47935
  })(ve.default);
47926
47936
  ft.DEFAULTS = (0, ce.default)(!0, {}, ve.default.DEFAULTS, {
47927
47937
  modules: {
@@ -47931,13 +47941,13 @@ function requireQuill() {
47931
47941
  this.quill.theme.tooltip.edit("formula");
47932
47942
  },
47933
47943
  image: function() {
47934
- var Be = this, Xe = this.container.querySelector("input.ql-image[type=file]");
47944
+ var Ve = this, Xe = this.container.querySelector("input.ql-image[type=file]");
47935
47945
  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() {
47936
47946
  if (Xe.files != null && Xe.files[0] != null) {
47937
47947
  var Je = new FileReader();
47938
- Je.onload = function(Ve) {
47939
- var Ke = Be.quill.getSelection(!0);
47940
- Be.quill.updateContents(new he.default().retain(Ke.index).delete(Ke.length).insert({ image: Ve.target.result }), fe.default.sources.USER), Be.quill.setSelection(Ke.index + 1, fe.default.sources.SILENT), Xe.value = "";
47948
+ Je.onload = function(Be) {
47949
+ var Ke = Ve.quill.getSelection(!0);
47950
+ Ve.quill.updateContents(new he.default().retain(Ke.index).delete(Ke.length).insert({ image: Be.target.result }), fe.default.sources.USER), Ve.quill.setSelection(Ke.index + 1, fe.default.sources.SILENT), Xe.value = "";
47941
47951
  }, Je.readAsDataURL(Xe.files[0]);
47942
47952
  }
47943
47953
  }), this.container.appendChild(Xe)), Xe.click();
@@ -47950,18 +47960,18 @@ function requireQuill() {
47950
47960
  }
47951
47961
  });
47952
47962
  var Qe = (function(je) {
47953
- Le(Be, je);
47954
- function Be(Xe, Je) {
47955
- qe(this, Be);
47956
- var Ve = Ae(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je));
47957
- return Ve.textbox = Ve.root.querySelector('input[type="text"]'), Ve.listen(), Ve;
47963
+ Le(Ve, je);
47964
+ function Ve(Xe, Je) {
47965
+ qe(this, Ve);
47966
+ var Be = Ae(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Xe, Je));
47967
+ return Be.textbox = Be.root.querySelector('input[type="text"]'), Be.listen(), Be;
47958
47968
  }
47959
- return oe(Be, [{
47969
+ return oe(Ve, [{
47960
47970
  key: "listen",
47961
47971
  value: function() {
47962
47972
  var Je = this;
47963
- this.textbox.addEventListener("keydown", function(Ve) {
47964
- me.default.match(Ve, "enter") ? (Je.save(), Ve.preventDefault()) : me.default.match(Ve, "escape") && (Je.cancel(), Ve.preventDefault());
47973
+ this.textbox.addEventListener("keydown", function(Be) {
47974
+ me.default.match(Be, "enter") ? (Je.save(), Be.preventDefault()) : me.default.match(Be, "escape") && (Je.cancel(), Be.preventDefault());
47965
47975
  });
47966
47976
  }
47967
47977
  }, {
@@ -47972,8 +47982,8 @@ function requireQuill() {
47972
47982
  }, {
47973
47983
  key: "edit",
47974
47984
  value: function() {
47975
- var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
47976
- this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Ve != null ? this.textbox.value = Ve : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
47985
+ var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
47986
+ this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Be != null ? this.textbox.value = Be : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
47977
47987
  }
47978
47988
  }, {
47979
47989
  key: "restoreFocus",
@@ -47987,8 +47997,8 @@ function requireQuill() {
47987
47997
  var Je = this.textbox.value;
47988
47998
  switch (this.root.getAttribute("data-mode")) {
47989
47999
  case "link": {
47990
- var Ve = this.quill.root.scrollTop;
47991
- this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Ve;
48000
+ var Be = this.quill.root.scrollTop;
48001
+ this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Be;
47992
48002
  break;
47993
48003
  }
47994
48004
  case "video":
@@ -48006,17 +48016,17 @@ function requireQuill() {
48006
48016
  }
48007
48017
  this.textbox.value = "", this.hide();
48008
48018
  }
48009
- }]), Be;
48019
+ }]), Ve;
48010
48020
  })(Fe.default);
48011
48021
  function Ze(je) {
48012
- var Be = je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48013
- return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = je.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : je;
48022
+ var Ve = je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || je.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48023
+ return Ve ? (Ve[1] || "https") + "://www.youtube.com/embed/" + Ve[2] + "?showinfo=0" : (Ve = je.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ve[1] || "https") + "://player.vimeo.com/video/" + Ve[2] + "/" : je;
48014
48024
  }
48015
- function Me(je, Be) {
48025
+ function Me(je, Ve) {
48016
48026
  var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
48017
- Be.forEach(function(Je) {
48018
- var Ve = document.createElement("option");
48019
- Je === Xe ? Ve.setAttribute("selected", "selected") : Ve.setAttribute("value", Je), je.appendChild(Ve);
48027
+ Ve.forEach(function(Je) {
48028
+ var Be = document.createElement("option");
48029
+ Je === Xe ? Be.setAttribute("selected", "selected") : Be.setAttribute("value", Je), je.appendChild(Be);
48020
48030
  });
48021
48031
  }
48022
48032
  te.BaseTooltip = Qe, te.default = ft;
@@ -48452,38 +48462,38 @@ function requireQuill() {
48452
48462
  Ae[He + 1] = 0, Le[He + 1] = 0;
48453
48463
  for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ye = 0, ft = 0, Qe = 0, Ze = 0; Ze < Fe; Ze++) {
48454
48464
  for (var Me = -Ze + Ge; Me <= Ze - Ye; Me += 2) {
48455
- var je = He + Me, Be;
48456
- Me == -Ze || Me != Ze && Ae[je - 1] < Ae[je + 1] ? Be = Ae[je + 1] : Be = Ae[je - 1] + 1;
48457
- for (var Xe = Be - Me; Be < Pe && Xe < De && ye.charAt(Be) == Ce.charAt(Xe); )
48458
- Be++, Xe++;
48459
- if (Ae[je] = Be, Be > Pe)
48465
+ var je = He + Me, Ve;
48466
+ Me == -Ze || Me != Ze && Ae[je - 1] < Ae[je + 1] ? Ve = Ae[je + 1] : Ve = Ae[je - 1] + 1;
48467
+ for (var Xe = Ve - Me; Ve < Pe && Xe < De && ye.charAt(Ve) == Ce.charAt(Xe); )
48468
+ Ve++, Xe++;
48469
+ if (Ae[je] = Ve, Ve > Pe)
48460
48470
  Ye += 2;
48461
48471
  else if (Xe > De)
48462
48472
  Ge += 2;
48463
48473
  else if (We) {
48464
48474
  var Je = He + ze - Me;
48465
48475
  if (Je >= 0 && Je < qe && Le[Je] != -1) {
48466
- var Ve = Pe - Le[Je];
48467
- if (Be >= Ve)
48468
- return he(ye, Ce, Be, Xe);
48476
+ var Be = Pe - Le[Je];
48477
+ if (Ve >= Be)
48478
+ return he(ye, Ce, Ve, Xe);
48469
48479
  }
48470
48480
  }
48471
48481
  }
48472
48482
  for (var Ke = -Ze + ft; Ke <= Ze - Qe; Ke += 2) {
48473
- var Je = He + Ke, Ve;
48474
- Ke == -Ze || Ke != Ze && Le[Je - 1] < Le[Je + 1] ? Ve = Le[Je + 1] : Ve = Le[Je - 1] + 1;
48475
- for (var rt = Ve - Ke; Ve < Pe && rt < De && ye.charAt(Pe - Ve - 1) == Ce.charAt(De - rt - 1); )
48476
- Ve++, rt++;
48477
- if (Le[Je] = Ve, Ve > Pe)
48483
+ var Je = He + Ke, Be;
48484
+ Ke == -Ze || Ke != Ze && Le[Je - 1] < Le[Je + 1] ? Be = Le[Je + 1] : Be = Le[Je - 1] + 1;
48485
+ for (var rt = Be - Ke; Be < Pe && rt < De && ye.charAt(Pe - Be - 1) == Ce.charAt(De - rt - 1); )
48486
+ Be++, rt++;
48487
+ if (Le[Je] = Be, Be > Pe)
48478
48488
  Qe += 2;
48479
48489
  else if (rt > De)
48480
48490
  ft += 2;
48481
48491
  else if (!We) {
48482
48492
  var je = He + ze - Ke;
48483
48493
  if (je >= 0 && je < qe && Ae[je] != -1) {
48484
- var Be = Ae[je], Xe = He + Be - je;
48485
- if (Ve = Pe - Ve, Be >= Ve)
48486
- return he(ye, Ce, Be, Xe);
48494
+ var Ve = Ae[je], Xe = He + Ve - je;
48495
+ if (Be = Pe - Be, Ve >= Be)
48496
+ return he(ye, Ce, Ve, Xe);
48487
48497
  }
48488
48498
  }
48489
48499
  }
@@ -48513,7 +48523,7 @@ function requireQuill() {
48513
48523
  if (Pe.length < 4 || De.length * 2 < Pe.length)
48514
48524
  return null;
48515
48525
  function Fe(Ye, ft, Qe) {
48516
- for (var Ze = Ye.substring(Qe, Qe + Math.floor(Ye.length / 4)), Me = -1, je = "", Be, Xe, Je, Ve; (Me = ft.indexOf(Ze, Me + 1)) != -1; ) {
48526
+ for (var Ze = Ye.substring(Qe, Qe + Math.floor(Ye.length / 4)), Me = -1, je = "", Ve, Xe, Je, Be; (Me = ft.indexOf(Ze, Me + 1)) != -1; ) {
48517
48527
  var Ke = pe(
48518
48528
  Ye.substring(Qe),
48519
48529
  ft.substring(Me)
@@ -48521,13 +48531,13 @@ function requireQuill() {
48521
48531
  Ye.substring(0, Qe),
48522
48532
  ft.substring(0, Me)
48523
48533
  );
48524
- je.length < rt + Ke && (je = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ke), Be = Ye.substring(0, Qe - rt), Xe = Ye.substring(Qe + Ke), Je = ft.substring(0, Me - rt), Ve = ft.substring(Me + Ke));
48534
+ je.length < rt + Ke && (je = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ke), Ve = Ye.substring(0, Qe - rt), Xe = Ye.substring(Qe + Ke), Je = ft.substring(0, Me - rt), Be = ft.substring(Me + Ke));
48525
48535
  }
48526
48536
  return je.length * 2 >= Ye.length ? [
48527
- Be,
48537
+ Ve,
48528
48538
  Xe,
48529
48539
  Je,
48530
- Ve,
48540
+ Be,
48531
48541
  je
48532
48542
  ] : null;
48533
48543
  }
@@ -48831,7 +48841,7 @@ function requireQuill() {
48831
48841
  throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
48832
48842
  gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
48833
48843
  }
48834
- var Ye = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Kt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Vt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", Lt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", qt]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
48844
+ var Ye = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Kt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Bt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", Lt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", qt]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
48835
48845
  return gt[mt.keyName] = mt, gt;
48836
48846
  }, {}), Me = [ye.AlignStyle, Ce.BackgroundStyle, Fe.ColorStyle, He.DirectionStyle, qe.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
48837
48847
  return gt[mt.keyName] = mt, gt;
@@ -48842,7 +48852,7 @@ function requireQuill() {
48842
48852
  var $t = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, Ct));
48843
48853
  return $t.quill.root.addEventListener("paste", $t.onPaste.bind($t)), $t.container = $t.quill.addContainer("ql-clipboard"), $t.container.setAttribute("contenteditable", !0), $t.container.setAttribute("tabindex", -1), $t.matchers = [], Qe.concat($t.options.matchers).forEach(function(Mt) {
48844
48854
  var Ft = ne(Mt, 2), zt = Ft[0], cs = Ft[1];
48845
- !Ct.matchVisual && cs === Vt || $t.addMatcher(zt, cs);
48855
+ !Ct.matchVisual && cs === Bt || $t.addMatcher(zt, cs);
48846
48856
  }), $t;
48847
48857
  }
48848
48858
  return de(mt, [{
@@ -48913,9 +48923,9 @@ function requireQuill() {
48913
48923
  matchers: [],
48914
48924
  matchVisual: !0
48915
48925
  };
48916
- function Be(gt, mt, xt) {
48926
+ function Ve(gt, mt, xt) {
48917
48927
  return (typeof mt > "u" ? "undefined" : oe(mt)) === "object" ? Object.keys(mt).reduce(function(Ct, $t) {
48918
- return Be(Ct, $t, mt[$t]);
48928
+ return Ve(Ct, $t, mt[$t]);
48919
48929
  }, gt) : gt.reduce(function(Ct, $t) {
48920
48930
  return $t.attributes && $t.attributes[mt] ? Ct.push($t) : Ct.insert($t.insert, (0, ue.default)({}, Ie({}, mt, xt), $t.attributes));
48921
48931
  }, new pe.default());
@@ -48933,7 +48943,7 @@ function requireQuill() {
48933
48943
  }
48934
48944
  return xt.slice(-1 * mt.length) === mt;
48935
48945
  }
48936
- function Ve(gt) {
48946
+ function Be(gt) {
48937
48947
  if (gt.childNodes.length === 0) return !1;
48938
48948
  var mt = Xe(gt);
48939
48949
  return ["block", "list-item"].indexOf(mt.display) > -1;
@@ -48951,14 +48961,14 @@ function requireQuill() {
48951
48961
  }, new pe.default()) : new pe.default();
48952
48962
  }
48953
48963
  function rt(gt, mt, xt) {
48954
- return Be(xt, gt, !0);
48964
+ return Ve(xt, gt, !0);
48955
48965
  }
48956
48966
  function ot(gt, mt) {
48957
48967
  var xt = be.default.Attributor.Attribute.keys(gt), Ct = be.default.Attributor.Class.keys(gt), $t = be.default.Attributor.Style.keys(gt), Mt = {};
48958
48968
  return xt.concat(Ct).concat($t).forEach(function(Ft) {
48959
48969
  var zt = be.default.query(Ft, be.default.Scope.ATTRIBUTE);
48960
48970
  zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt = Ze[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (Mt[zt.attrName] = zt.value(gt) || void 0), zt = Me[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (zt = Me[Ft], Mt[zt.attrName] = zt.value(gt) || void 0));
48961
- }), Object.keys(Mt).length > 0 && (mt = Be(mt, Mt)), mt;
48971
+ }), Object.keys(Mt).length > 0 && (mt = Ve(mt, Mt)), mt;
48962
48972
  }
48963
48973
  function _t(gt, mt) {
48964
48974
  var xt = be.default.query(gt);
@@ -48966,7 +48976,7 @@ function requireQuill() {
48966
48976
  if (xt.prototype instanceof be.default.Embed) {
48967
48977
  var Ct = {}, $t = xt.value(gt);
48968
48978
  $t != null && (Ct[xt.blotName] = $t, mt = new pe.default().insert(Ct, xt.formats(gt)));
48969
- } else typeof xt.formats == "function" && (mt = Be(mt, xt.blotName, xt.formats(gt)));
48979
+ } else typeof xt.formats == "function" && (mt = Ve(mt, xt.blotName, xt.formats(gt)));
48970
48980
  return mt;
48971
48981
  }
48972
48982
  function kt(gt, mt) {
@@ -48988,11 +48998,11 @@ function requireQuill() {
48988
48998
  }
48989
48999
  function Nt(gt, mt) {
48990
49000
  return Je(mt, `
48991
- `) || (Ve(gt) || mt.length() > 0 && gt.nextSibling && Ve(gt.nextSibling)) && mt.insert(`
49001
+ `) || (Be(gt) || mt.length() > 0 && gt.nextSibling && Be(gt.nextSibling)) && mt.insert(`
48992
49002
  `), mt;
48993
49003
  }
48994
- function Vt(gt, mt) {
48995
- if (Ve(gt) && gt.nextElementSibling != null && !Je(mt, `
49004
+ function Bt(gt, mt) {
49005
+ if (Be(gt) && gt.nextElementSibling != null && !Je(mt, `
48996
49006
 
48997
49007
  `)) {
48998
49008
  var xt = gt.offsetHeight + parseFloat(Xe(gt).marginTop) + parseFloat(Xe(gt).marginBottom);
@@ -49003,7 +49013,7 @@ function requireQuill() {
49003
49013
  }
49004
49014
  function rs(gt, mt) {
49005
49015
  var xt = {}, Ct = gt.style || {};
49006
- return Ct.fontStyle && Xe(gt).fontStyle === "italic" && (xt.italic = !0), Ct.fontWeight && (Xe(gt).fontWeight.startsWith("bold") || parseInt(Xe(gt).fontWeight) >= 700) && (xt.bold = !0), Object.keys(xt).length > 0 && (mt = Be(mt, xt)), parseFloat(Ct.textIndent || 0) > 0 && (mt = new pe.default().insert(" ").concat(mt)), mt;
49016
+ return Ct.fontStyle && Xe(gt).fontStyle === "italic" && (xt.italic = !0), Ct.fontWeight && (Xe(gt).fontWeight.startsWith("bold") || parseInt(Xe(gt).fontWeight) >= 700) && (xt.bold = !0), Object.keys(xt).length > 0 && (mt = Ve(mt, xt)), parseFloat(Ct.textIndent || 0) > 0 && (mt = new pe.default().insert(" ").concat(mt)), mt;
49007
49017
  }
49008
49018
  function Kt(gt, mt) {
49009
49019
  var xt = gt.data;
@@ -49015,11 +49025,11 @@ function requireQuill() {
49015
49025
  var Ct = function(Mt, Ft) {
49016
49026
  return Ft = Ft.replace(/[^\u00a0]/g, ""), Ft.length < 1 && Mt ? " " : Ft;
49017
49027
  };
49018
- xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, Ct.bind(Ct, !0)), (gt.previousSibling == null && Ve(gt.parentNode) || gt.previousSibling != null && Ve(gt.previousSibling)) && (xt = xt.replace(/^\s+/, Ct.bind(Ct, !1))), (gt.nextSibling == null && Ve(gt.parentNode) || gt.nextSibling != null && Ve(gt.nextSibling)) && (xt = xt.replace(/\s+$/, Ct.bind(Ct, !1)));
49028
+ xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, Ct.bind(Ct, !0)), (gt.previousSibling == null && Be(gt.parentNode) || gt.previousSibling != null && Be(gt.previousSibling)) && (xt = xt.replace(/^\s+/, Ct.bind(Ct, !1))), (gt.nextSibling == null && Be(gt.parentNode) || gt.nextSibling != null && Be(gt.nextSibling)) && (xt = xt.replace(/\s+$/, Ct.bind(Ct, !1)));
49019
49029
  }
49020
49030
  return mt.insert(xt);
49021
49031
  }
49022
- te.default = je, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Vt, te.matchText = Kt;
49032
+ te.default = je, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Bt, te.matchText = Kt;
49023
49033
  }),
49024
49034
  /* 57 */
49025
49035
  /***/
@@ -49212,7 +49222,7 @@ function requireQuill() {
49212
49222
  } else
49213
49223
  We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
49214
49224
  Ge.quill.focus();
49215
- var je = Ge.quill.selection.getRange(), Be = oe(je, 1), Xe = Be[0];
49225
+ var je = Ge.quill.selection.getRange(), Ve = oe(je, 1), Xe = Ve[0];
49216
49226
  if (Ge.handlers[Ye] != null)
49217
49227
  Ge.handlers[Ye].call(Ge, Ze);
49218
49228
  else if (he.default.query(Ye).prototype instanceof he.default.Embed) {
@@ -49244,8 +49254,8 @@ function requireQuill() {
49244
49254
  } else if (We == null)
49245
49255
  Ze.classList.remove("ql-active");
49246
49256
  else if (Ze.hasAttribute("value")) {
49247
- var Be = Ge[Qe] === Ze.getAttribute("value") || Ge[Qe] != null && Ge[Qe].toString() === Ze.getAttribute("value") || Ge[Qe] == null && !Ze.getAttribute("value");
49248
- Ze.classList.toggle("ql-active", Be);
49257
+ var Ve = Ge[Qe] === Ze.getAttribute("value") || Ge[Qe] != null && Ge[Qe].toString() === Ze.getAttribute("value") || Ge[Qe] == null && !Ze.getAttribute("value");
49258
+ Ze.classList.toggle("ql-active", Ve);
49249
49259
  } else
49250
49260
  Ze.classList.toggle("ql-active", Ge[Qe] != null);
49251
49261
  });
@@ -49662,7 +49672,7 @@ function requireQuill() {
49662
49672
  Object.defineProperty(te, "__esModule", {
49663
49673
  value: !0
49664
49674
  });
49665
- var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Pe = re(69), De = $t(Pe), Fe = re(27), He = $t(Fe), qe = re(70), Ae = $t(qe), Le = re(71), Ie = $t(Le), ze = re(72), We = $t(ze), Ge = re(73), Ye = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Me = $t(Ze), je = re(75), Be = $t(je), Xe = re(76), Je = $t(Xe), Ve = re(58), Ke = $t(Ve), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), qt = re(60), Lt = $t(qt), Nt = re(61), Vt = $t(Nt), rs = re(62), Kt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), Ct = $t(xt);
49675
+ var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Pe = re(69), De = $t(Pe), Fe = re(27), He = $t(Fe), qe = re(70), Ae = $t(qe), Le = re(71), Ie = $t(Le), ze = re(72), We = $t(ze), Ge = re(73), Ye = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Me = $t(Ze), je = re(75), Ve = $t(je), Xe = re(76), Je = $t(Xe), Be = re(58), Ke = $t(Be), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), qt = re(60), Lt = $t(qt), Nt = re(61), Bt = $t(Nt), rs = re(62), Kt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), Ct = $t(xt);
49666
49676
  function $t(Mt) {
49667
49677
  return Mt && Mt.__esModule ? Mt : { default: Mt };
49668
49678
  }
@@ -49702,14 +49712,14 @@ function requireQuill() {
49702
49712
  "formats/image": Ye.default,
49703
49713
  "formats/video": Qe.default,
49704
49714
  "formats/list/item": me.ListItem,
49705
- "modules/formula": Be.default,
49715
+ "modules/formula": Ve.default,
49706
49716
  "modules/syntax": Je.default,
49707
49717
  "modules/toolbar": Ke.default,
49708
49718
  "themes/bubble": mt.default,
49709
49719
  "themes/snow": Ct.default,
49710
49720
  "ui/icons": ot.default,
49711
49721
  "ui/picker": kt.default,
49712
- "ui/icon-picker": Vt.default,
49722
+ "ui/icon-picker": Bt.default,
49713
49723
  "ui/color-picker": Lt.default,
49714
49724
  "ui/tooltip": Kt.default
49715
49725
  }, !0), te.default = ne.default;
@@ -51934,4 +51944,4 @@ export {
51934
51944
  l as y,
51935
51945
  PrimariaInteractionService as z
51936
51946
  };
51937
- //# sourceMappingURL=index-B-kHRe1g.js.map
51947
+ //# sourceMappingURL=index-CqHIFgjZ.js.map