@uxland/primary-shell 7.47.4 → 7.47.5

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