@dangl/angular-material-shared 2.3.3-beta0006 → 2.4.0-beta0015

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.
Files changed (107) hide show
  1. package/esm2020/lib/angular-material-shared.module.mjs +4 -4
  2. package/esm2020/lib/components/footer/footer.component.mjs +3 -3
  3. package/esm2020/lib/components/header/header.component.mjs +4 -4
  4. package/esm2020/lib/components/tiny-mce/tiny-mce.component.mjs +3 -3
  5. package/fesm2015/dangl-angular-material-shared.mjs +14 -14
  6. package/fesm2015/dangl-angular-material-shared.mjs.map +1 -1
  7. package/fesm2020/dangl-angular-material-shared.mjs +14 -14
  8. package/fesm2020/dangl-angular-material-shared.mjs.map +1 -1
  9. package/lib/components/footer/footer.component.d.ts +1 -1
  10. package/lib/components/header/header.component.d.ts +1 -1
  11. package/lib/components/tiny-mce/tiny-mce.component.d.ts +1 -1
  12. package/package.json +9 -9
  13. package/styles/material-style.scss +3 -0
  14. package/styles/material-theme.scss +11 -1
  15. package/styles/material-variables.scss +11 -3
  16. package/tinymce-assets/plugins/advlist/plugin.js +1 -1
  17. package/tinymce-assets/plugins/advlist/plugin.min.js +1 -1
  18. package/tinymce-assets/plugins/anchor/plugin.js +1 -1
  19. package/tinymce-assets/plugins/anchor/plugin.min.js +1 -1
  20. package/tinymce-assets/plugins/autolink/plugin.js +2 -2
  21. package/tinymce-assets/plugins/autolink/plugin.min.js +2 -2
  22. package/tinymce-assets/plugins/autoresize/plugin.js +1 -1
  23. package/tinymce-assets/plugins/autoresize/plugin.min.js +1 -1
  24. package/tinymce-assets/plugins/autosave/plugin.js +1 -1
  25. package/tinymce-assets/plugins/autosave/plugin.min.js +1 -1
  26. package/tinymce-assets/plugins/bbcode/plugin.js +1 -1
  27. package/tinymce-assets/plugins/bbcode/plugin.min.js +1 -1
  28. package/tinymce-assets/plugins/charmap/plugin.js +1 -1
  29. package/tinymce-assets/plugins/charmap/plugin.min.js +1 -1
  30. package/tinymce-assets/plugins/code/plugin.js +1 -1
  31. package/tinymce-assets/plugins/code/plugin.min.js +1 -1
  32. package/tinymce-assets/plugins/codesample/plugin.js +268 -145
  33. package/tinymce-assets/plugins/codesample/plugin.min.js +2 -2
  34. package/tinymce-assets/plugins/colorpicker/plugin.js +1 -1
  35. package/tinymce-assets/plugins/colorpicker/plugin.min.js +1 -1
  36. package/tinymce-assets/plugins/contextmenu/plugin.js +1 -1
  37. package/tinymce-assets/plugins/contextmenu/plugin.min.js +1 -1
  38. package/tinymce-assets/plugins/directionality/plugin.js +1 -1
  39. package/tinymce-assets/plugins/directionality/plugin.min.js +1 -1
  40. package/tinymce-assets/plugins/emoticons/plugin.js +1 -1
  41. package/tinymce-assets/plugins/emoticons/plugin.min.js +1 -1
  42. package/tinymce-assets/plugins/fullpage/plugin.js +1 -1
  43. package/tinymce-assets/plugins/fullpage/plugin.min.js +1 -1
  44. package/tinymce-assets/plugins/fullscreen/plugin.js +2 -1
  45. package/tinymce-assets/plugins/fullscreen/plugin.min.js +2 -2
  46. package/tinymce-assets/plugins/help/plugin.js +1 -1
  47. package/tinymce-assets/plugins/help/plugin.min.js +1 -1
  48. package/tinymce-assets/plugins/hr/plugin.js +1 -1
  49. package/tinymce-assets/plugins/hr/plugin.min.js +1 -1
  50. package/tinymce-assets/plugins/image/plugin.js +1 -1
  51. package/tinymce-assets/plugins/image/plugin.min.js +1 -1
  52. package/tinymce-assets/plugins/imagetools/plugin.js +1 -1
  53. package/tinymce-assets/plugins/imagetools/plugin.min.js +1 -1
  54. package/tinymce-assets/plugins/importcss/plugin.js +1 -1
  55. package/tinymce-assets/plugins/importcss/plugin.min.js +1 -1
  56. package/tinymce-assets/plugins/insertdatetime/plugin.js +1 -1
  57. package/tinymce-assets/plugins/insertdatetime/plugin.min.js +1 -1
  58. package/tinymce-assets/plugins/legacyoutput/plugin.js +1 -1
  59. package/tinymce-assets/plugins/legacyoutput/plugin.min.js +1 -1
  60. package/tinymce-assets/plugins/link/plugin.js +1 -1
  61. package/tinymce-assets/plugins/link/plugin.min.js +1 -1
  62. package/tinymce-assets/plugins/lists/plugin.js +1 -1
  63. package/tinymce-assets/plugins/lists/plugin.min.js +1 -1
  64. package/tinymce-assets/plugins/media/plugin.js +1 -1
  65. package/tinymce-assets/plugins/media/plugin.min.js +1 -1
  66. package/tinymce-assets/plugins/nonbreaking/plugin.js +1 -1
  67. package/tinymce-assets/plugins/nonbreaking/plugin.min.js +1 -1
  68. package/tinymce-assets/plugins/noneditable/plugin.js +1 -1
  69. package/tinymce-assets/plugins/noneditable/plugin.min.js +1 -1
  70. package/tinymce-assets/plugins/pagebreak/plugin.js +1 -1
  71. package/tinymce-assets/plugins/pagebreak/plugin.min.js +1 -1
  72. package/tinymce-assets/plugins/paste/plugin.js +2 -2
  73. package/tinymce-assets/plugins/paste/plugin.min.js +2 -2
  74. package/tinymce-assets/plugins/preview/plugin.js +1 -1
  75. package/tinymce-assets/plugins/preview/plugin.min.js +1 -1
  76. package/tinymce-assets/plugins/print/plugin.js +1 -1
  77. package/tinymce-assets/plugins/print/plugin.min.js +1 -1
  78. package/tinymce-assets/plugins/quickbars/plugin.js +1 -1
  79. package/tinymce-assets/plugins/quickbars/plugin.min.js +1 -1
  80. package/tinymce-assets/plugins/save/plugin.js +1 -1
  81. package/tinymce-assets/plugins/save/plugin.min.js +1 -1
  82. package/tinymce-assets/plugins/searchreplace/plugin.js +1 -1
  83. package/tinymce-assets/plugins/searchreplace/plugin.min.js +1 -1
  84. package/tinymce-assets/plugins/spellchecker/plugin.js +1 -1
  85. package/tinymce-assets/plugins/spellchecker/plugin.min.js +1 -1
  86. package/tinymce-assets/plugins/tabfocus/plugin.js +1 -1
  87. package/tinymce-assets/plugins/tabfocus/plugin.min.js +1 -1
  88. package/tinymce-assets/plugins/table/plugin.js +1 -1
  89. package/tinymce-assets/plugins/table/plugin.min.js +1 -1
  90. package/tinymce-assets/plugins/template/plugin.js +1 -1
  91. package/tinymce-assets/plugins/template/plugin.min.js +1 -1
  92. package/tinymce-assets/plugins/textcolor/plugin.js +1 -1
  93. package/tinymce-assets/plugins/textcolor/plugin.min.js +1 -1
  94. package/tinymce-assets/plugins/textpattern/plugin.js +1 -1
  95. package/tinymce-assets/plugins/textpattern/plugin.min.js +1 -1
  96. package/tinymce-assets/plugins/toc/plugin.js +1 -1
  97. package/tinymce-assets/plugins/toc/plugin.min.js +1 -1
  98. package/tinymce-assets/plugins/visualblocks/plugin.js +1 -1
  99. package/tinymce-assets/plugins/visualblocks/plugin.min.js +1 -1
  100. package/tinymce-assets/plugins/visualchars/plugin.js +1 -1
  101. package/tinymce-assets/plugins/visualchars/plugin.min.js +1 -1
  102. package/tinymce-assets/plugins/wordcount/plugin.js +1 -1
  103. package/tinymce-assets/plugins/wordcount/plugin.min.js +1 -1
  104. package/tinymce-assets/themes/mobile/theme.js +1 -1
  105. package/tinymce-assets/themes/mobile/theme.min.js +1 -1
  106. package/tinymce-assets/themes/silver/theme.js +1632 -72
  107. package/tinymce-assets/themes/silver/theme.min.js +2 -2
@@ -4,7 +4,7 @@
4
4
  * For LGPL see License.txt in the project root for license information.
5
5
  * For commercial licenses see https://www.tiny.cloud/
6
6
  *
7
- * Version: 5.10.3 (2022-02-09)
7
+ * Version: 5.10.7 (2022-12-06)
8
8
  */
9
9
  (function () {
10
10
  'use strict';
@@ -435,7 +435,7 @@
435
435
  };
436
436
 
437
437
  var keys = Object.keys;
438
- var hasOwnProperty = Object.hasOwnProperty;
438
+ var hasOwnProperty$1 = Object.hasOwnProperty;
439
439
  var each = function (obj, f) {
440
440
  var props = keys(obj);
441
441
  for (var k = 0, len = props.length; k < len; k++) {
@@ -502,7 +502,7 @@
502
502
  return has$2(obj, key) ? Optional.from(obj[key]) : Optional.none();
503
503
  };
504
504
  var has$2 = function (obj, key) {
505
- return hasOwnProperty.call(obj, key);
505
+ return hasOwnProperty$1.call(obj, key);
506
506
  };
507
507
  var hasNonNullableKey = function (obj, key) {
508
508
  return has$2(obj, key) && obj[key] !== undefined && obj[key] !== null;
@@ -2889,11 +2889,11 @@
2889
2889
  return get$7(container);
2890
2890
  };
2891
2891
 
2892
- var clone$1 = function (original, isDeep) {
2892
+ var clone$2 = function (original, isDeep) {
2893
2893
  return SugarElement.fromDom(original.dom.cloneNode(isDeep));
2894
2894
  };
2895
2895
  var shallow = function (original) {
2896
- return clone$1(original, false);
2896
+ return clone$2(original, false);
2897
2897
  };
2898
2898
 
2899
2899
  var getHtml = function (element) {
@@ -3562,7 +3562,7 @@
3562
3562
  });
3563
3563
  return Result.value(build$2(completeSpec));
3564
3564
  };
3565
- var text = function (textContent) {
3565
+ var text$1 = function (textContent) {
3566
3566
  var element = SugarElement.fromText(textContent);
3567
3567
  return external$2({ element: element });
3568
3568
  };
@@ -4179,7 +4179,7 @@
4179
4179
  f(component, bConfig, bState);
4180
4180
  });
4181
4181
  };
4182
- var create$8 = function (schema, name, active, apis, extra, state) {
4182
+ var create$9 = function (schema, name, active, apis, extra, state) {
4183
4183
  var configSchema = objOfOnly(schema);
4184
4184
  var schemaSchema = optionObjOf(name, [optionObjOfOnly('config', schema)]);
4185
4185
  return doCreate(configSchema, schemaSchema, name, active, apis, extra, state);
@@ -4274,9 +4274,9 @@
4274
4274
  defaulted('state', NoState),
4275
4275
  defaulted('extra', {})
4276
4276
  ]);
4277
- var create$7 = function (data) {
4277
+ var create$8 = function (data) {
4278
4278
  var value = asRawOrDie$1('Creating behaviour: ' + data.name, simpleSchema, data);
4279
- return create$8(value.fields, value.name, value.active, value.apis, value.extra, value.state);
4279
+ return create$9(value.fields, value.name, value.active, value.apis, value.extra, value.state);
4280
4280
  };
4281
4281
  var modeSchema = objOfOnly([
4282
4282
  required$1('branchKey'),
@@ -4293,7 +4293,7 @@
4293
4293
  };
4294
4294
  var revoke = constant$1(undefined);
4295
4295
 
4296
- var Receiving = create$7({
4296
+ var Receiving = create$8({
4297
4297
  fields: ReceivingSchema,
4298
4298
  name: 'receiving',
4299
4299
  active: ActiveReceiving
@@ -5198,7 +5198,7 @@
5198
5198
  var zeroWidth = '\uFEFF';
5199
5199
  var nbsp = '\xA0';
5200
5200
 
5201
- var create$6 = function (start, soffset, finish, foffset) {
5201
+ var create$7 = function (start, soffset, finish, foffset) {
5202
5202
  return {
5203
5203
  start: start,
5204
5204
  soffset: soffset,
@@ -5206,7 +5206,7 @@
5206
5206
  foffset: foffset
5207
5207
  };
5208
5208
  };
5209
- var SimRange = { create: create$6 };
5209
+ var SimRange = { create: create$7 };
5210
5210
 
5211
5211
  var adt$6 = Adt.generate([
5212
5212
  { before: ['element'] },
@@ -5816,7 +5816,7 @@
5816
5816
  init: init$g
5817
5817
  });
5818
5818
 
5819
- var Positioning = create$7({
5819
+ var Positioning = create$8({
5820
5820
  fields: PositionSchema,
5821
5821
  name: 'positioning',
5822
5822
  active: ActivePosition,
@@ -6050,7 +6050,7 @@
6050
6050
  init: init$f
6051
6051
  });
6052
6052
 
6053
- var Sandboxing = create$7({
6053
+ var Sandboxing = create$8({
6054
6054
  fields: SandboxSchema,
6055
6055
  name: 'sandboxing',
6056
6056
  active: ActiveSandbox,
@@ -6327,7 +6327,7 @@
6327
6327
  defaulted('resetOnDom', false)
6328
6328
  ];
6329
6329
 
6330
- var Representing = create$7({
6330
+ var Representing = create$8({
6331
6331
  fields: RepresentSchema,
6332
6332
  name: 'representing',
6333
6333
  active: ActiveRepresenting,
@@ -6797,7 +6797,7 @@
6797
6797
 
6798
6798
  var ComposeSchema = [required$1('find')];
6799
6799
 
6800
- var Composing = create$7({
6800
+ var Composing = create$8({
6801
6801
  fields: ComposeSchema,
6802
6802
  name: 'composing',
6803
6803
  apis: ComposeApis
@@ -6893,7 +6893,7 @@
6893
6893
  onHandler('onEnabled')
6894
6894
  ];
6895
6895
 
6896
- var Disabling = create$7({
6896
+ var Disabling = create$8({
6897
6897
  fields: DisableSchema,
6898
6898
  name: 'disabling',
6899
6899
  active: ActiveDisable,
@@ -7030,7 +7030,7 @@
7030
7030
  onHandler('onDehighlight')
7031
7031
  ];
7032
7032
 
7033
- var Highlighting = create$7({
7033
+ var Highlighting = create$8({
7034
7034
  fields: HighlightSchema,
7035
7035
  name: 'highlighting',
7036
7036
  apis: HighlightApis
@@ -7220,7 +7220,7 @@
7220
7220
  return me;
7221
7221
  };
7222
7222
 
7223
- var create$5 = function (cyclicField) {
7223
+ var create$6 = function (cyclicField) {
7224
7224
  var schema = [
7225
7225
  option('onEscape'),
7226
7226
  option('onEnter'),
@@ -7310,9 +7310,9 @@
7310
7310
  });
7311
7311
  };
7312
7312
 
7313
- var AcyclicType = create$5(customField('cyclic', never));
7313
+ var AcyclicType = create$6(customField('cyclic', never));
7314
7314
 
7315
- var CyclicType = create$5(customField('cyclic', always));
7315
+ var CyclicType = create$6(customField('cyclic', always));
7316
7316
 
7317
7317
  var doDefaultExecute = function (component, _simulatedEvent, focused) {
7318
7318
  dispatch(component, focused, execute$5());
@@ -7964,7 +7964,7 @@
7964
7964
  contents: contents
7965
7965
  });
7966
7966
 
7967
- var Replacing = create$7({
7967
+ var Replacing = create$8({
7968
7968
  fields: [],
7969
7969
  name: 'replacing',
7970
7970
  apis: ReplaceApis
@@ -7972,7 +7972,7 @@
7972
7972
 
7973
7973
  var events$d = function (name, eventHandlers) {
7974
7974
  var events = derive$2(eventHandlers);
7975
- return create$7({
7975
+ return create$8({
7976
7976
  fields: [required$1('enabled')],
7977
7977
  name: name,
7978
7978
  active: { events: constant$1(events) }
@@ -8039,7 +8039,7 @@
8039
8039
  defaulted('ignore', false)
8040
8040
  ];
8041
8041
 
8042
- var Focusing = create$7({
8042
+ var Focusing = create$8({
8043
8043
  fields: FocusSchema,
8044
8044
  name: 'focusing',
8045
8045
  active: ActiveFocus,
@@ -8168,7 +8168,7 @@
8168
8168
  }))
8169
8169
  ];
8170
8170
 
8171
- var Toggling = create$7({
8171
+ var Toggling = create$8({
8172
8172
  fields: ToggleSchema,
8173
8173
  name: 'toggling',
8174
8174
  active: ActiveToggle,
@@ -9629,10 +9629,10 @@
9629
9629
  });
9630
9630
  }
9631
9631
  };
9632
- var updateText = function (comp, text$1) {
9632
+ var updateText = function (comp, text) {
9633
9633
  if (comp.getSystem().isConnected()) {
9634
9634
  var banner = memBannerText.get(comp);
9635
- Replacing.set(banner, [text(text$1)]);
9635
+ Replacing.set(banner, [text$1(text)]);
9636
9636
  }
9637
9637
  };
9638
9638
  var apis = {
@@ -9933,7 +9933,7 @@
9933
9933
  };
9934
9934
 
9935
9935
  var autocompleteSelector = '[data-mce-autocompleter]';
9936
- var create$4 = function (editor, range) {
9936
+ var create$5 = function (editor, range) {
9937
9937
  return detect(SugarElement.fromDom(editor.selection.getNode())).getOrThunk(function () {
9938
9938
  var wrapper = SugarElement.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>', editor.getDoc());
9939
9939
  append$2(wrapper, SugarElement.fromDom(range.extractContents()));
@@ -10922,7 +10922,7 @@
10922
10922
  init: init$b
10923
10923
  });
10924
10924
 
10925
- var Tooltipping = create$7({
10925
+ var Tooltipping = create$8({
10926
10926
  fields: TooltippingSchema,
10927
10927
  name: 'tooltipping',
10928
10928
  active: ActiveTooltipping,
@@ -11297,13 +11297,13 @@
11297
11297
  classes: classes
11298
11298
  }, icons);
11299
11299
  };
11300
- var renderText = function (text$1) {
11300
+ var renderText = function (text) {
11301
11301
  return {
11302
11302
  dom: {
11303
11303
  tag: 'div',
11304
11304
  classes: [textClass]
11305
11305
  },
11306
- components: [text(global$e.translate(text$1))]
11306
+ components: [text$1(global$e.translate(text))]
11307
11307
  };
11308
11308
  };
11309
11309
  var renderHtml = function (html, classes) {
@@ -11315,7 +11315,7 @@
11315
11315
  }
11316
11316
  };
11317
11317
  };
11318
- var renderStyledText = function (style, text$1) {
11318
+ var renderStyledText = function (style, text) {
11319
11319
  return {
11320
11320
  dom: {
11321
11321
  tag: 'div',
@@ -11326,7 +11326,7 @@
11326
11326
  tag: style.tag,
11327
11327
  styles: style.styles
11328
11328
  },
11329
- components: [text(global$e.translate(text$1))]
11329
+ components: [text$1(global$e.translate(text))]
11330
11330
  }]
11331
11331
  };
11332
11332
  };
@@ -12451,7 +12451,7 @@
12451
12451
  });
12452
12452
  };
12453
12453
  var makeLabelText = function (row, col) {
12454
- return text(col + 'x' + row);
12454
+ return text$1(col + 'x' + row);
12455
12455
  };
12456
12456
  var renderInsertTableMenuItem = function (spec) {
12457
12457
  var numRows = 10;
@@ -12861,7 +12861,7 @@
12861
12861
  };
12862
12862
  var commenceIfNecessary = function (context) {
12863
12863
  if (!isActive()) {
12864
- var wrapper = create$4(editor, context.range);
12864
+ var wrapper = create$5(editor, context.range);
12865
12865
  activeAutocompleter.set({
12866
12866
  triggerChar: context.triggerChar,
12867
12867
  element: wrapper,
@@ -13688,7 +13688,7 @@
13688
13688
 
13689
13689
  var TabstopSchema = [defaulted('tabAttr', 'data-alloy-tabstop')];
13690
13690
 
13691
- var Tabstopping = create$7({
13691
+ var Tabstopping = create$8({
13692
13692
  fields: TabstopSchema,
13693
13693
  name: 'tabstopping',
13694
13694
  active: ActiveTabstopping
@@ -14371,7 +14371,7 @@
14371
14371
  ])
14372
14372
  ];
14373
14373
 
14374
- var Invalidating = create$7({
14374
+ var Invalidating = create$8({
14375
14375
  fields: InvalidateSchema,
14376
14376
  name: 'invalidating',
14377
14377
  active: ActiveInvalidate,
@@ -14425,7 +14425,7 @@
14425
14425
  init: init$a
14426
14426
  });
14427
14427
 
14428
- var Coupling = create$7({
14428
+ var Coupling = create$8({
14429
14429
  fields: CouplingSchema,
14430
14430
  name: 'coupling',
14431
14431
  apis: CouplingApis,
@@ -14833,7 +14833,7 @@
14833
14833
  exhibit: exhibit$1
14834
14834
  });
14835
14835
 
14836
- var Unselecting = create$7({
14836
+ var Unselecting = create$8({
14837
14837
  fields: [],
14838
14838
  name: 'unselecting',
14839
14839
  active: ActiveUnselecting
@@ -16943,11 +16943,11 @@
16943
16943
  return renderFormFieldWith(pLabel, pField, ['tox-form__group--stretched'], []);
16944
16944
  };
16945
16945
 
16946
- var create$3 = function (width, height) {
16946
+ var create$4 = function (width, height) {
16947
16947
  return resize$3(document.createElement('canvas'), width, height);
16948
16948
  };
16949
- var clone = function (canvas) {
16950
- var tCanvas = create$3(canvas.width, canvas.height);
16949
+ var clone$1 = function (canvas) {
16950
+ var tCanvas = create$4(canvas.width, canvas.height);
16951
16951
  var ctx = get2dContext(tCanvas);
16952
16952
  ctx.drawImage(canvas, 0, 0);
16953
16953
  return tCanvas;
@@ -17046,7 +17046,7 @@
17046
17046
  var blobToCanvas = function (blob) {
17047
17047
  return blobToImage(blob).then(function (image) {
17048
17048
  revokeImageUrl(image);
17049
- var canvas = create$3(getWidth$1(image), getHeight$1(image));
17049
+ var canvas = create$4(getWidth$1(image), getHeight$1(image));
17050
17050
  var context = get2dContext(canvas);
17051
17051
  context.drawImage(image, 0, 0);
17052
17052
  return canvas;
@@ -17065,7 +17065,7 @@
17065
17065
  URL.revokeObjectURL(image.src);
17066
17066
  };
17067
17067
 
17068
- var create$2 = function (getCanvas, blob, uri) {
17068
+ var create$3 = function (getCanvas, blob, uri) {
17069
17069
  var initialType = blob.type;
17070
17070
  var getType = constant$1(initialType);
17071
17071
  var toBlob = function () {
@@ -17091,7 +17091,7 @@
17091
17091
  });
17092
17092
  };
17093
17093
  var toCanvas = function () {
17094
- return getCanvas.then(clone);
17094
+ return getCanvas.then(clone$1);
17095
17095
  };
17096
17096
  return {
17097
17097
  getType: getType,
@@ -17106,12 +17106,12 @@
17106
17106
  };
17107
17107
  var fromBlob = function (blob) {
17108
17108
  return blobToDataUri(blob).then(function (uri) {
17109
- return create$2(blobToCanvas(blob), blob, uri);
17109
+ return create$3(blobToCanvas(blob), blob, uri);
17110
17110
  });
17111
17111
  };
17112
17112
  var fromCanvas = function (canvas, type) {
17113
17113
  return canvasToBlob(canvas, type).then(function (blob) {
17114
- return create$2(Promise$1.resolve(canvas), blob, canvas.toDataURL());
17114
+ return create$3(Promise$1.resolve(canvas), blob, canvas.toDataURL());
17115
17115
  });
17116
17116
  };
17117
17117
 
@@ -17575,7 +17575,7 @@
17575
17575
  var sH = getHeight$1(image);
17576
17576
  var dW = Math.floor(sW * wRatio);
17577
17577
  var dH = Math.floor(sH * hRatio);
17578
- var canvas = create$3(dW, dH);
17578
+ var canvas = create$4(dW, dH);
17579
17579
  var context = get2dContext(canvas);
17580
17580
  context.drawImage(image, 0, 0, sW, sH, 0, 0, dW, dH);
17581
17581
  resolve(canvas);
@@ -17604,7 +17604,7 @@
17604
17604
  var cos = Math.cos(rad);
17605
17605
  var newWidth = ceilWithPrecision(Math.abs(width * cos) + Math.abs(height * sin));
17606
17606
  var newHeight = ceilWithPrecision(Math.abs(width * sin) + Math.abs(height * cos));
17607
- var canvas = create$3(newWidth, newHeight);
17607
+ var canvas = create$4(newWidth, newHeight);
17608
17608
  var context = get2dContext(canvas);
17609
17609
  context.translate(newWidth / 2, newHeight / 2);
17610
17610
  context.rotate(rad);
@@ -17617,7 +17617,7 @@
17617
17617
  });
17618
17618
  };
17619
17619
  var applyFlip = function (image, type, axis) {
17620
- var canvas = create$3(image.width, image.height);
17620
+ var canvas = create$4(image.width, image.height);
17621
17621
  var context = get2dContext(canvas);
17622
17622
  if (axis === 'v') {
17623
17623
  context.scale(1, -1);
@@ -17634,7 +17634,7 @@
17634
17634
  });
17635
17635
  };
17636
17636
  var applyCrop = function (image, type, x, y, w, h) {
17637
- var canvas = create$3(w, h);
17637
+ var canvas = create$4(w, h);
17638
17638
  var context = get2dContext(canvas);
17639
17639
  context.drawImage(image, -x, -y);
17640
17640
  return fromCanvas(canvas, type);
@@ -17795,7 +17795,7 @@
17795
17795
  optMemDisplayText.bind(function (mem) {
17796
17796
  return mem.getOpt(comp);
17797
17797
  }).each(function (displayText) {
17798
- Replacing.set(displayText, [text(sharedBackstage.providers.translate(se.event.text))]);
17798
+ Replacing.set(displayText, [text$1(sharedBackstage.providers.translate(se.event.text))]);
17799
17799
  });
17800
17800
  }),
17801
17801
  run$1(updateMenuIcon, function (comp, se) {
@@ -18505,7 +18505,7 @@
18505
18505
  var redo = constant$1(generate$6('redo'));
18506
18506
  var zoom = constant$1(generate$6('zoom'));
18507
18507
  var back = constant$1(generate$6('back'));
18508
- var apply = constant$1(generate$6('apply'));
18508
+ var apply$1 = constant$1(generate$6('apply'));
18509
18509
  var swap = constant$1(generate$6('swap'));
18510
18510
  var transform$1 = constant$1(generate$6('transform'));
18511
18511
  var tempTransform = constant$1(generate$6('temp-transform'));
@@ -18515,7 +18515,7 @@
18515
18515
  redo: redo,
18516
18516
  zoom: zoom,
18517
18517
  back: back,
18518
- apply: apply,
18518
+ apply: apply$1,
18519
18519
  swap: swap,
18520
18520
  transform: transform$1,
18521
18521
  tempTransform: tempTransform,
@@ -19040,7 +19040,7 @@
19040
19040
  }
19041
19041
 
19042
19042
  var count = 0;
19043
- var create$1 = function (currentRect, viewPortRect, clampRect, containerElm, action) {
19043
+ var create$2 = function (currentRect, viewPortRect, clampRect, containerElm, action) {
19044
19044
  var dragHelpers;
19045
19045
  var events = [];
19046
19046
  var prefix = 'tox-';
@@ -19332,7 +19332,7 @@
19332
19332
  });
19333
19333
  return instance;
19334
19334
  };
19335
- var CropRect = { create: create$1 };
19335
+ var CropRect = { create: create$2 };
19336
19336
 
19337
19337
  var loadImage = function (image) {
19338
19338
  return new global$c(function (resolve) {
@@ -20428,7 +20428,7 @@
20428
20428
  onStrictHandler('onStream')
20429
20429
  ];
20430
20430
 
20431
- var Streaming = create$7({
20431
+ var Streaming = create$8({
20432
20432
  fields: StreamingSchema,
20433
20433
  name: 'streaming',
20434
20434
  active: ActiveStreaming,
@@ -21903,7 +21903,7 @@
21903
21903
  };
21904
21904
  var isContentEditableTrue = hasContentEditableState('true');
21905
21905
  var isContentEditableFalse = hasContentEditableState('false');
21906
- var create = function (type, title, url, level, attach) {
21906
+ var create$1 = function (type, title, url, level, attach) {
21907
21907
  return {
21908
21908
  type: type,
21909
21909
  title: title,
@@ -21955,12 +21955,12 @@
21955
21955
  var attach = function () {
21956
21956
  elm.id = headerId;
21957
21957
  };
21958
- return create('header', getElementText(elm), '#' + headerId, getLevel(elm), attach);
21958
+ return create$1('header', getElementText(elm), '#' + headerId, getLevel(elm), attach);
21959
21959
  };
21960
21960
  var anchorTarget = function (elm) {
21961
21961
  var anchorId = elm.id || elm.name;
21962
21962
  var anchorText = getElementText(elm);
21963
- return create('anchor', anchorText ? anchorText : '#' + anchorId, '#' + anchorId, 0, noop);
21963
+ return create$1('anchor', anchorText ? anchorText : '#' + anchorId, '#' + anchorId, 0, noop);
21964
21964
  };
21965
21965
  var getHeaderTargets = function (elms) {
21966
21966
  return map$2(filter$2(elms, isValidHeader), headerTarget);
@@ -22713,7 +22713,7 @@
22713
22713
  init: init$6
22714
22714
  });
22715
22715
 
22716
- var Docking = create$7({
22716
+ var Docking = create$8({
22717
22717
  fields: DockingSchema,
22718
22718
  name: 'docking',
22719
22719
  active: ActiveDocking,
@@ -23312,7 +23312,7 @@
23312
23312
  init: init$5
23313
23313
  });
23314
23314
 
23315
- var Sliding = create$7({
23315
+ var Sliding = create$8({
23316
23316
  fields: SlidingSchema,
23317
23317
  name: 'sliding',
23318
23318
  active: ActiveSliding,
@@ -23708,7 +23708,7 @@
23708
23708
  init: init$4
23709
23709
  });
23710
23710
 
23711
- var Blocking = create$7({
23711
+ var Blocking = create$8({
23712
23712
  fields: BlockingSchema,
23713
23713
  name: 'blocking',
23714
23714
  apis: BlockingApis,
@@ -25781,7 +25781,7 @@
25781
25781
  init: init$3
25782
25782
  });
25783
25783
 
25784
- var Reflecting = create$7({
25784
+ var Reflecting = create$8({
25785
25785
  fields: ReflectingSchema,
25786
25786
  name: 'reflecting',
25787
25787
  active: ActiveReflecting,
@@ -26843,18 +26843,15 @@
26843
26843
  setupEvents(editor, targetElm, ui, toolbarPersist);
26844
26844
  editor.nodeChanged();
26845
26845
  };
26846
- var delayedRender = function () {
26847
- return global$f.setEditorTimeout(editor, render, 0);
26848
- };
26849
26846
  editor.on('show', render);
26850
26847
  editor.on('hide', ui.hide);
26851
26848
  if (!toolbarPersist) {
26852
- editor.on('focus', delayedRender);
26849
+ editor.on('focus', render);
26853
26850
  editor.on('blur', ui.hide);
26854
26851
  }
26855
26852
  editor.on('init', function () {
26856
26853
  if (editor.hasFocus() || toolbarPersist) {
26857
- delayedRender();
26854
+ render();
26858
26855
  }
26859
26856
  });
26860
26857
  setupReadonlyModeSwitch(editor, uiComponents);
@@ -29645,7 +29642,7 @@
29645
29642
  var renderWordCount = function (editor, providersBackstage) {
29646
29643
  var _a;
29647
29644
  var replaceCountText = function (comp, count, mode) {
29648
- return Replacing.set(comp, [text(providersBackstage.translate([
29645
+ return Replacing.set(comp, [text$1(providersBackstage.translate([
29649
29646
  '{0} ' + mode,
29650
29647
  count[mode]
29651
29648
  ]))]);
@@ -31314,6 +31311,1569 @@
31314
31311
  return ModalDialog.parts.body(bodySpec);
31315
31312
  };
31316
31313
 
31314
+ function _typeof(obj) {
31315
+ '@babel/helpers - typeof';
31316
+ return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function (obj) {
31317
+ return typeof obj;
31318
+ } : function (obj) {
31319
+ return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj;
31320
+ }, _typeof(obj);
31321
+ }
31322
+ function _setPrototypeOf(o, p) {
31323
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
31324
+ o.__proto__ = p;
31325
+ return o;
31326
+ };
31327
+ return _setPrototypeOf(o, p);
31328
+ }
31329
+ function _isNativeReflectConstruct() {
31330
+ if (typeof Reflect === 'undefined' || !Reflect.construct)
31331
+ return false;
31332
+ if (Reflect.construct.sham)
31333
+ return false;
31334
+ if (typeof Proxy === 'function')
31335
+ return true;
31336
+ try {
31337
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {
31338
+ }));
31339
+ return true;
31340
+ } catch (e) {
31341
+ return false;
31342
+ }
31343
+ }
31344
+ function _construct(Parent, args, Class) {
31345
+ if (_isNativeReflectConstruct()) {
31346
+ _construct = Reflect.construct;
31347
+ } else {
31348
+ _construct = function _construct(Parent, args, Class) {
31349
+ var a = [null];
31350
+ a.push.apply(a, args);
31351
+ var Constructor = Function.bind.apply(Parent, a);
31352
+ var instance = new Constructor();
31353
+ if (Class)
31354
+ _setPrototypeOf(instance, Class.prototype);
31355
+ return instance;
31356
+ };
31357
+ }
31358
+ return _construct.apply(null, arguments);
31359
+ }
31360
+ function _toConsumableArray(arr) {
31361
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
31362
+ }
31363
+ function _arrayWithoutHoles(arr) {
31364
+ if (Array.isArray(arr))
31365
+ return _arrayLikeToArray(arr);
31366
+ }
31367
+ function _iterableToArray(iter) {
31368
+ if (typeof Symbol !== 'undefined' && iter[Symbol.iterator] != null || iter['@@iterator'] != null)
31369
+ return Array.from(iter);
31370
+ }
31371
+ function _unsupportedIterableToArray(o, minLen) {
31372
+ if (!o)
31373
+ return;
31374
+ if (typeof o === 'string')
31375
+ return _arrayLikeToArray(o, minLen);
31376
+ var n = Object.prototype.toString.call(o).slice(8, -1);
31377
+ if (n === 'Object' && o.constructor)
31378
+ n = o.constructor.name;
31379
+ if (n === 'Map' || n === 'Set')
31380
+ return Array.from(o);
31381
+ if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
31382
+ return _arrayLikeToArray(o, minLen);
31383
+ }
31384
+ function _arrayLikeToArray(arr, len) {
31385
+ if (len == null || len > arr.length)
31386
+ len = arr.length;
31387
+ for (var i = 0, arr2 = new Array(len); i < len; i++)
31388
+ arr2[i] = arr[i];
31389
+ return arr2;
31390
+ }
31391
+ function _nonIterableSpread() {
31392
+ throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
31393
+ }
31394
+ var hasOwnProperty = Object.hasOwnProperty, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
31395
+ var freeze = Object.freeze, seal = Object.seal, create = Object.create;
31396
+ var _ref = typeof Reflect !== 'undefined' && Reflect, apply = _ref.apply, construct = _ref.construct;
31397
+ if (!apply) {
31398
+ apply = function apply(fun, thisValue, args) {
31399
+ return fun.apply(thisValue, args);
31400
+ };
31401
+ }
31402
+ if (!freeze) {
31403
+ freeze = function freeze(x) {
31404
+ return x;
31405
+ };
31406
+ }
31407
+ if (!seal) {
31408
+ seal = function seal(x) {
31409
+ return x;
31410
+ };
31411
+ }
31412
+ if (!construct) {
31413
+ construct = function construct(Func, args) {
31414
+ return _construct(Func, _toConsumableArray(args));
31415
+ };
31416
+ }
31417
+ var arrayForEach = unapply(Array.prototype.forEach);
31418
+ var arrayPop = unapply(Array.prototype.pop);
31419
+ var arrayPush = unapply(Array.prototype.push);
31420
+ var stringToLowerCase = unapply(String.prototype.toLowerCase);
31421
+ var stringMatch = unapply(String.prototype.match);
31422
+ var stringReplace = unapply(String.prototype.replace);
31423
+ var stringIndexOf = unapply(String.prototype.indexOf);
31424
+ var stringTrim = unapply(String.prototype.trim);
31425
+ var regExpTest = unapply(RegExp.prototype.test);
31426
+ var typeErrorCreate = unconstruct(TypeError);
31427
+ function unapply(func) {
31428
+ return function (thisArg) {
31429
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
31430
+ args[_key - 1] = arguments[_key];
31431
+ }
31432
+ return apply(func, thisArg, args);
31433
+ };
31434
+ }
31435
+ function unconstruct(func) {
31436
+ return function () {
31437
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
31438
+ args[_key2] = arguments[_key2];
31439
+ }
31440
+ return construct(func, args);
31441
+ };
31442
+ }
31443
+ function addToSet(set, array) {
31444
+ if (setPrototypeOf) {
31445
+ setPrototypeOf(set, null);
31446
+ }
31447
+ var l = array.length;
31448
+ while (l--) {
31449
+ var element = array[l];
31450
+ if (typeof element === 'string') {
31451
+ var lcElement = stringToLowerCase(element);
31452
+ if (lcElement !== element) {
31453
+ if (!isFrozen(array)) {
31454
+ array[l] = lcElement;
31455
+ }
31456
+ element = lcElement;
31457
+ }
31458
+ }
31459
+ set[element] = true;
31460
+ }
31461
+ return set;
31462
+ }
31463
+ function clone(object) {
31464
+ var newObject = create(null);
31465
+ var property;
31466
+ for (property in object) {
31467
+ if (apply(hasOwnProperty, object, [property])) {
31468
+ newObject[property] = object[property];
31469
+ }
31470
+ }
31471
+ return newObject;
31472
+ }
31473
+ function lookupGetter(object, prop) {
31474
+ while (object !== null) {
31475
+ var desc = getOwnPropertyDescriptor(object, prop);
31476
+ if (desc) {
31477
+ if (desc.get) {
31478
+ return unapply(desc.get);
31479
+ }
31480
+ if (typeof desc.value === 'function') {
31481
+ return unapply(desc.value);
31482
+ }
31483
+ }
31484
+ object = getPrototypeOf(object);
31485
+ }
31486
+ function fallbackValue(element) {
31487
+ console.warn('fallback value for', element);
31488
+ return null;
31489
+ }
31490
+ return fallbackValue;
31491
+ }
31492
+ var html$1 = freeze([
31493
+ 'a',
31494
+ 'abbr',
31495
+ 'acronym',
31496
+ 'address',
31497
+ 'area',
31498
+ 'article',
31499
+ 'aside',
31500
+ 'audio',
31501
+ 'b',
31502
+ 'bdi',
31503
+ 'bdo',
31504
+ 'big',
31505
+ 'blink',
31506
+ 'blockquote',
31507
+ 'body',
31508
+ 'br',
31509
+ 'button',
31510
+ 'canvas',
31511
+ 'caption',
31512
+ 'center',
31513
+ 'cite',
31514
+ 'code',
31515
+ 'col',
31516
+ 'colgroup',
31517
+ 'content',
31518
+ 'data',
31519
+ 'datalist',
31520
+ 'dd',
31521
+ 'decorator',
31522
+ 'del',
31523
+ 'details',
31524
+ 'dfn',
31525
+ 'dialog',
31526
+ 'dir',
31527
+ 'div',
31528
+ 'dl',
31529
+ 'dt',
31530
+ 'element',
31531
+ 'em',
31532
+ 'fieldset',
31533
+ 'figcaption',
31534
+ 'figure',
31535
+ 'font',
31536
+ 'footer',
31537
+ 'form',
31538
+ 'h1',
31539
+ 'h2',
31540
+ 'h3',
31541
+ 'h4',
31542
+ 'h5',
31543
+ 'h6',
31544
+ 'head',
31545
+ 'header',
31546
+ 'hgroup',
31547
+ 'hr',
31548
+ 'html',
31549
+ 'i',
31550
+ 'img',
31551
+ 'input',
31552
+ 'ins',
31553
+ 'kbd',
31554
+ 'label',
31555
+ 'legend',
31556
+ 'li',
31557
+ 'main',
31558
+ 'map',
31559
+ 'mark',
31560
+ 'marquee',
31561
+ 'menu',
31562
+ 'menuitem',
31563
+ 'meter',
31564
+ 'nav',
31565
+ 'nobr',
31566
+ 'ol',
31567
+ 'optgroup',
31568
+ 'option',
31569
+ 'output',
31570
+ 'p',
31571
+ 'picture',
31572
+ 'pre',
31573
+ 'progress',
31574
+ 'q',
31575
+ 'rp',
31576
+ 'rt',
31577
+ 'ruby',
31578
+ 's',
31579
+ 'samp',
31580
+ 'section',
31581
+ 'select',
31582
+ 'shadow',
31583
+ 'small',
31584
+ 'source',
31585
+ 'spacer',
31586
+ 'span',
31587
+ 'strike',
31588
+ 'strong',
31589
+ 'style',
31590
+ 'sub',
31591
+ 'summary',
31592
+ 'sup',
31593
+ 'table',
31594
+ 'tbody',
31595
+ 'td',
31596
+ 'template',
31597
+ 'textarea',
31598
+ 'tfoot',
31599
+ 'th',
31600
+ 'thead',
31601
+ 'time',
31602
+ 'tr',
31603
+ 'track',
31604
+ 'tt',
31605
+ 'u',
31606
+ 'ul',
31607
+ 'var',
31608
+ 'video',
31609
+ 'wbr'
31610
+ ]);
31611
+ var svg$1 = freeze([
31612
+ 'svg',
31613
+ 'a',
31614
+ 'altglyph',
31615
+ 'altglyphdef',
31616
+ 'altglyphitem',
31617
+ 'animatecolor',
31618
+ 'animatemotion',
31619
+ 'animatetransform',
31620
+ 'circle',
31621
+ 'clippath',
31622
+ 'defs',
31623
+ 'desc',
31624
+ 'ellipse',
31625
+ 'filter',
31626
+ 'font',
31627
+ 'g',
31628
+ 'glyph',
31629
+ 'glyphref',
31630
+ 'hkern',
31631
+ 'image',
31632
+ 'line',
31633
+ 'lineargradient',
31634
+ 'marker',
31635
+ 'mask',
31636
+ 'metadata',
31637
+ 'mpath',
31638
+ 'path',
31639
+ 'pattern',
31640
+ 'polygon',
31641
+ 'polyline',
31642
+ 'radialgradient',
31643
+ 'rect',
31644
+ 'stop',
31645
+ 'style',
31646
+ 'switch',
31647
+ 'symbol',
31648
+ 'text',
31649
+ 'textpath',
31650
+ 'title',
31651
+ 'tref',
31652
+ 'tspan',
31653
+ 'view',
31654
+ 'vkern'
31655
+ ]);
31656
+ var svgFilters = freeze([
31657
+ 'feBlend',
31658
+ 'feColorMatrix',
31659
+ 'feComponentTransfer',
31660
+ 'feComposite',
31661
+ 'feConvolveMatrix',
31662
+ 'feDiffuseLighting',
31663
+ 'feDisplacementMap',
31664
+ 'feDistantLight',
31665
+ 'feFlood',
31666
+ 'feFuncA',
31667
+ 'feFuncB',
31668
+ 'feFuncG',
31669
+ 'feFuncR',
31670
+ 'feGaussianBlur',
31671
+ 'feImage',
31672
+ 'feMerge',
31673
+ 'feMergeNode',
31674
+ 'feMorphology',
31675
+ 'feOffset',
31676
+ 'fePointLight',
31677
+ 'feSpecularLighting',
31678
+ 'feSpotLight',
31679
+ 'feTile',
31680
+ 'feTurbulence'
31681
+ ]);
31682
+ var svgDisallowed = freeze([
31683
+ 'animate',
31684
+ 'color-profile',
31685
+ 'cursor',
31686
+ 'discard',
31687
+ 'fedropshadow',
31688
+ 'font-face',
31689
+ 'font-face-format',
31690
+ 'font-face-name',
31691
+ 'font-face-src',
31692
+ 'font-face-uri',
31693
+ 'foreignobject',
31694
+ 'hatch',
31695
+ 'hatchpath',
31696
+ 'mesh',
31697
+ 'meshgradient',
31698
+ 'meshpatch',
31699
+ 'meshrow',
31700
+ 'missing-glyph',
31701
+ 'script',
31702
+ 'set',
31703
+ 'solidcolor',
31704
+ 'unknown',
31705
+ 'use'
31706
+ ]);
31707
+ var mathMl$1 = freeze([
31708
+ 'math',
31709
+ 'menclose',
31710
+ 'merror',
31711
+ 'mfenced',
31712
+ 'mfrac',
31713
+ 'mglyph',
31714
+ 'mi',
31715
+ 'mlabeledtr',
31716
+ 'mmultiscripts',
31717
+ 'mn',
31718
+ 'mo',
31719
+ 'mover',
31720
+ 'mpadded',
31721
+ 'mphantom',
31722
+ 'mroot',
31723
+ 'mrow',
31724
+ 'ms',
31725
+ 'mspace',
31726
+ 'msqrt',
31727
+ 'mstyle',
31728
+ 'msub',
31729
+ 'msup',
31730
+ 'msubsup',
31731
+ 'mtable',
31732
+ 'mtd',
31733
+ 'mtext',
31734
+ 'mtr',
31735
+ 'munder',
31736
+ 'munderover'
31737
+ ]);
31738
+ var mathMlDisallowed = freeze([
31739
+ 'maction',
31740
+ 'maligngroup',
31741
+ 'malignmark',
31742
+ 'mlongdiv',
31743
+ 'mscarries',
31744
+ 'mscarry',
31745
+ 'msgroup',
31746
+ 'mstack',
31747
+ 'msline',
31748
+ 'msrow',
31749
+ 'semantics',
31750
+ 'annotation',
31751
+ 'annotation-xml',
31752
+ 'mprescripts',
31753
+ 'none'
31754
+ ]);
31755
+ var text = freeze(['#text']);
31756
+ var html = freeze([
31757
+ 'accept',
31758
+ 'action',
31759
+ 'align',
31760
+ 'alt',
31761
+ 'autocapitalize',
31762
+ 'autocomplete',
31763
+ 'autopictureinpicture',
31764
+ 'autoplay',
31765
+ 'background',
31766
+ 'bgcolor',
31767
+ 'border',
31768
+ 'capture',
31769
+ 'cellpadding',
31770
+ 'cellspacing',
31771
+ 'checked',
31772
+ 'cite',
31773
+ 'class',
31774
+ 'clear',
31775
+ 'color',
31776
+ 'cols',
31777
+ 'colspan',
31778
+ 'controls',
31779
+ 'controlslist',
31780
+ 'coords',
31781
+ 'crossorigin',
31782
+ 'datetime',
31783
+ 'decoding',
31784
+ 'default',
31785
+ 'dir',
31786
+ 'disabled',
31787
+ 'disablepictureinpicture',
31788
+ 'disableremoteplayback',
31789
+ 'download',
31790
+ 'draggable',
31791
+ 'enctype',
31792
+ 'enterkeyhint',
31793
+ 'face',
31794
+ 'for',
31795
+ 'headers',
31796
+ 'height',
31797
+ 'hidden',
31798
+ 'high',
31799
+ 'href',
31800
+ 'hreflang',
31801
+ 'id',
31802
+ 'inputmode',
31803
+ 'integrity',
31804
+ 'ismap',
31805
+ 'kind',
31806
+ 'label',
31807
+ 'lang',
31808
+ 'list',
31809
+ 'loading',
31810
+ 'loop',
31811
+ 'low',
31812
+ 'max',
31813
+ 'maxlength',
31814
+ 'media',
31815
+ 'method',
31816
+ 'min',
31817
+ 'minlength',
31818
+ 'multiple',
31819
+ 'muted',
31820
+ 'name',
31821
+ 'nonce',
31822
+ 'noshade',
31823
+ 'novalidate',
31824
+ 'nowrap',
31825
+ 'open',
31826
+ 'optimum',
31827
+ 'pattern',
31828
+ 'placeholder',
31829
+ 'playsinline',
31830
+ 'poster',
31831
+ 'preload',
31832
+ 'pubdate',
31833
+ 'radiogroup',
31834
+ 'readonly',
31835
+ 'rel',
31836
+ 'required',
31837
+ 'rev',
31838
+ 'reversed',
31839
+ 'role',
31840
+ 'rows',
31841
+ 'rowspan',
31842
+ 'spellcheck',
31843
+ 'scope',
31844
+ 'selected',
31845
+ 'shape',
31846
+ 'size',
31847
+ 'sizes',
31848
+ 'span',
31849
+ 'srclang',
31850
+ 'start',
31851
+ 'src',
31852
+ 'srcset',
31853
+ 'step',
31854
+ 'style',
31855
+ 'summary',
31856
+ 'tabindex',
31857
+ 'title',
31858
+ 'translate',
31859
+ 'type',
31860
+ 'usemap',
31861
+ 'valign',
31862
+ 'value',
31863
+ 'width',
31864
+ 'xmlns',
31865
+ 'slot'
31866
+ ]);
31867
+ var svg = freeze([
31868
+ 'accent-height',
31869
+ 'accumulate',
31870
+ 'additive',
31871
+ 'alignment-baseline',
31872
+ 'ascent',
31873
+ 'attributename',
31874
+ 'attributetype',
31875
+ 'azimuth',
31876
+ 'basefrequency',
31877
+ 'baseline-shift',
31878
+ 'begin',
31879
+ 'bias',
31880
+ 'by',
31881
+ 'class',
31882
+ 'clip',
31883
+ 'clippathunits',
31884
+ 'clip-path',
31885
+ 'clip-rule',
31886
+ 'color',
31887
+ 'color-interpolation',
31888
+ 'color-interpolation-filters',
31889
+ 'color-profile',
31890
+ 'color-rendering',
31891
+ 'cx',
31892
+ 'cy',
31893
+ 'd',
31894
+ 'dx',
31895
+ 'dy',
31896
+ 'diffuseconstant',
31897
+ 'direction',
31898
+ 'display',
31899
+ 'divisor',
31900
+ 'dur',
31901
+ 'edgemode',
31902
+ 'elevation',
31903
+ 'end',
31904
+ 'fill',
31905
+ 'fill-opacity',
31906
+ 'fill-rule',
31907
+ 'filter',
31908
+ 'filterunits',
31909
+ 'flood-color',
31910
+ 'flood-opacity',
31911
+ 'font-family',
31912
+ 'font-size',
31913
+ 'font-size-adjust',
31914
+ 'font-stretch',
31915
+ 'font-style',
31916
+ 'font-variant',
31917
+ 'font-weight',
31918
+ 'fx',
31919
+ 'fy',
31920
+ 'g1',
31921
+ 'g2',
31922
+ 'glyph-name',
31923
+ 'glyphref',
31924
+ 'gradientunits',
31925
+ 'gradienttransform',
31926
+ 'height',
31927
+ 'href',
31928
+ 'id',
31929
+ 'image-rendering',
31930
+ 'in',
31931
+ 'in2',
31932
+ 'k',
31933
+ 'k1',
31934
+ 'k2',
31935
+ 'k3',
31936
+ 'k4',
31937
+ 'kerning',
31938
+ 'keypoints',
31939
+ 'keysplines',
31940
+ 'keytimes',
31941
+ 'lang',
31942
+ 'lengthadjust',
31943
+ 'letter-spacing',
31944
+ 'kernelmatrix',
31945
+ 'kernelunitlength',
31946
+ 'lighting-color',
31947
+ 'local',
31948
+ 'marker-end',
31949
+ 'marker-mid',
31950
+ 'marker-start',
31951
+ 'markerheight',
31952
+ 'markerunits',
31953
+ 'markerwidth',
31954
+ 'maskcontentunits',
31955
+ 'maskunits',
31956
+ 'max',
31957
+ 'mask',
31958
+ 'media',
31959
+ 'method',
31960
+ 'mode',
31961
+ 'min',
31962
+ 'name',
31963
+ 'numoctaves',
31964
+ 'offset',
31965
+ 'operator',
31966
+ 'opacity',
31967
+ 'order',
31968
+ 'orient',
31969
+ 'orientation',
31970
+ 'origin',
31971
+ 'overflow',
31972
+ 'paint-order',
31973
+ 'path',
31974
+ 'pathlength',
31975
+ 'patterncontentunits',
31976
+ 'patterntransform',
31977
+ 'patternunits',
31978
+ 'points',
31979
+ 'preservealpha',
31980
+ 'preserveaspectratio',
31981
+ 'primitiveunits',
31982
+ 'r',
31983
+ 'rx',
31984
+ 'ry',
31985
+ 'radius',
31986
+ 'refx',
31987
+ 'refy',
31988
+ 'repeatcount',
31989
+ 'repeatdur',
31990
+ 'restart',
31991
+ 'result',
31992
+ 'rotate',
31993
+ 'scale',
31994
+ 'seed',
31995
+ 'shape-rendering',
31996
+ 'specularconstant',
31997
+ 'specularexponent',
31998
+ 'spreadmethod',
31999
+ 'startoffset',
32000
+ 'stddeviation',
32001
+ 'stitchtiles',
32002
+ 'stop-color',
32003
+ 'stop-opacity',
32004
+ 'stroke-dasharray',
32005
+ 'stroke-dashoffset',
32006
+ 'stroke-linecap',
32007
+ 'stroke-linejoin',
32008
+ 'stroke-miterlimit',
32009
+ 'stroke-opacity',
32010
+ 'stroke',
32011
+ 'stroke-width',
32012
+ 'style',
32013
+ 'surfacescale',
32014
+ 'systemlanguage',
32015
+ 'tabindex',
32016
+ 'targetx',
32017
+ 'targety',
32018
+ 'transform',
32019
+ 'transform-origin',
32020
+ 'text-anchor',
32021
+ 'text-decoration',
32022
+ 'text-rendering',
32023
+ 'textlength',
32024
+ 'type',
32025
+ 'u1',
32026
+ 'u2',
32027
+ 'unicode',
32028
+ 'values',
32029
+ 'viewbox',
32030
+ 'visibility',
32031
+ 'version',
32032
+ 'vert-adv-y',
32033
+ 'vert-origin-x',
32034
+ 'vert-origin-y',
32035
+ 'width',
32036
+ 'word-spacing',
32037
+ 'wrap',
32038
+ 'writing-mode',
32039
+ 'xchannelselector',
32040
+ 'ychannelselector',
32041
+ 'x',
32042
+ 'x1',
32043
+ 'x2',
32044
+ 'xmlns',
32045
+ 'y',
32046
+ 'y1',
32047
+ 'y2',
32048
+ 'z',
32049
+ 'zoomandpan'
32050
+ ]);
32051
+ var mathMl = freeze([
32052
+ 'accent',
32053
+ 'accentunder',
32054
+ 'align',
32055
+ 'bevelled',
32056
+ 'close',
32057
+ 'columnsalign',
32058
+ 'columnlines',
32059
+ 'columnspan',
32060
+ 'denomalign',
32061
+ 'depth',
32062
+ 'dir',
32063
+ 'display',
32064
+ 'displaystyle',
32065
+ 'encoding',
32066
+ 'fence',
32067
+ 'frame',
32068
+ 'height',
32069
+ 'href',
32070
+ 'id',
32071
+ 'largeop',
32072
+ 'length',
32073
+ 'linethickness',
32074
+ 'lspace',
32075
+ 'lquote',
32076
+ 'mathbackground',
32077
+ 'mathcolor',
32078
+ 'mathsize',
32079
+ 'mathvariant',
32080
+ 'maxsize',
32081
+ 'minsize',
32082
+ 'movablelimits',
32083
+ 'notation',
32084
+ 'numalign',
32085
+ 'open',
32086
+ 'rowalign',
32087
+ 'rowlines',
32088
+ 'rowspacing',
32089
+ 'rowspan',
32090
+ 'rspace',
32091
+ 'rquote',
32092
+ 'scriptlevel',
32093
+ 'scriptminsize',
32094
+ 'scriptsizemultiplier',
32095
+ 'selection',
32096
+ 'separator',
32097
+ 'separators',
32098
+ 'stretchy',
32099
+ 'subscriptshift',
32100
+ 'supscriptshift',
32101
+ 'symmetric',
32102
+ 'voffset',
32103
+ 'width',
32104
+ 'xmlns'
32105
+ ]);
32106
+ var xml = freeze([
32107
+ 'xlink:href',
32108
+ 'xml:id',
32109
+ 'xlink:title',
32110
+ 'xml:space',
32111
+ 'xmlns:xlink'
32112
+ ]);
32113
+ var MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
32114
+ var ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
32115
+ var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/);
32116
+ var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
32117
+ var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);
32118
+ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
32119
+ var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);
32120
+ var DOCTYPE_NAME = seal(/^html$/i);
32121
+ var getGlobal = function getGlobal() {
32122
+ return typeof window === 'undefined' ? null : window;
32123
+ };
32124
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {
32125
+ if (_typeof(trustedTypes) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
32126
+ return null;
32127
+ }
32128
+ var suffix = null;
32129
+ var ATTR_NAME = 'data-tt-policy-suffix';
32130
+ if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {
32131
+ suffix = document.currentScript.getAttribute(ATTR_NAME);
32132
+ }
32133
+ var policyName = 'dompurify' + (suffix ? '#' + suffix : '');
32134
+ try {
32135
+ return trustedTypes.createPolicy(policyName, {
32136
+ createHTML: function createHTML(html) {
32137
+ return html;
32138
+ }
32139
+ });
32140
+ } catch (_) {
32141
+ console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
32142
+ return null;
32143
+ }
32144
+ };
32145
+ function createDOMPurify() {
32146
+ var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
32147
+ var DOMPurify = function DOMPurify(root) {
32148
+ return createDOMPurify(root);
32149
+ };
32150
+ DOMPurify.version = '2.3.8';
32151
+ DOMPurify.removed = [];
32152
+ if (!window || !window.document || window.document.nodeType !== 9) {
32153
+ DOMPurify.isSupported = false;
32154
+ return DOMPurify;
32155
+ }
32156
+ var originalDocument = window.document;
32157
+ var document = window.document;
32158
+ var DocumentFragment = window.DocumentFragment, HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter, _window$NamedNodeMap = window.NamedNodeMap, NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap, HTMLFormElement = window.HTMLFormElement, DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;
32159
+ var ElementPrototype = Element.prototype;
32160
+ var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
32161
+ var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
32162
+ var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
32163
+ var getParentNode = lookupGetter(ElementPrototype, 'parentNode');
32164
+ if (typeof HTMLTemplateElement === 'function') {
32165
+ var template = document.createElement('template');
32166
+ if (template.content && template.content.ownerDocument) {
32167
+ document = template.content.ownerDocument;
32168
+ }
32169
+ }
32170
+ var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
32171
+ var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';
32172
+ var _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
32173
+ var importNode = originalDocument.importNode;
32174
+ var documentMode = {};
32175
+ try {
32176
+ documentMode = clone(document).documentMode ? document.documentMode : {};
32177
+ } catch (_) {
32178
+ }
32179
+ var hooks = {};
32180
+ DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;
32181
+ var MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE;
32182
+ var IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
32183
+ var ALLOWED_TAGS = null;
32184
+ var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray(html$1), _toConsumableArray(svg$1), _toConsumableArray(svgFilters), _toConsumableArray(mathMl$1), _toConsumableArray(text)));
32185
+ var ALLOWED_ATTR = null;
32186
+ var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray(html), _toConsumableArray(svg), _toConsumableArray(mathMl), _toConsumableArray(xml)));
32187
+ var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {
32188
+ tagNameCheck: {
32189
+ writable: true,
32190
+ configurable: false,
32191
+ enumerable: true,
32192
+ value: null
32193
+ },
32194
+ attributeNameCheck: {
32195
+ writable: true,
32196
+ configurable: false,
32197
+ enumerable: true,
32198
+ value: null
32199
+ },
32200
+ allowCustomizedBuiltInElements: {
32201
+ writable: true,
32202
+ configurable: false,
32203
+ enumerable: true,
32204
+ value: false
32205
+ }
32206
+ }));
32207
+ var FORBID_TAGS = null;
32208
+ var FORBID_ATTR = null;
32209
+ var ALLOW_ARIA_ATTR = true;
32210
+ var ALLOW_DATA_ATTR = true;
32211
+ var ALLOW_UNKNOWN_PROTOCOLS = false;
32212
+ var SAFE_FOR_TEMPLATES = false;
32213
+ var WHOLE_DOCUMENT = false;
32214
+ var SET_CONFIG = false;
32215
+ var FORCE_BODY = false;
32216
+ var RETURN_DOM = false;
32217
+ var RETURN_DOM_FRAGMENT = false;
32218
+ var RETURN_TRUSTED_TYPE = false;
32219
+ var SANITIZE_DOM = true;
32220
+ var KEEP_CONTENT = true;
32221
+ var IN_PLACE = false;
32222
+ var USE_PROFILES = {};
32223
+ var FORBID_CONTENTS = null;
32224
+ var DEFAULT_FORBID_CONTENTS = addToSet({}, [
32225
+ 'annotation-xml',
32226
+ 'audio',
32227
+ 'colgroup',
32228
+ 'desc',
32229
+ 'foreignobject',
32230
+ 'head',
32231
+ 'iframe',
32232
+ 'math',
32233
+ 'mi',
32234
+ 'mn',
32235
+ 'mo',
32236
+ 'ms',
32237
+ 'mtext',
32238
+ 'noembed',
32239
+ 'noframes',
32240
+ 'noscript',
32241
+ 'plaintext',
32242
+ 'script',
32243
+ 'style',
32244
+ 'svg',
32245
+ 'template',
32246
+ 'thead',
32247
+ 'title',
32248
+ 'video',
32249
+ 'xmp'
32250
+ ]);
32251
+ var DATA_URI_TAGS = null;
32252
+ var DEFAULT_DATA_URI_TAGS = addToSet({}, [
32253
+ 'audio',
32254
+ 'video',
32255
+ 'img',
32256
+ 'source',
32257
+ 'image',
32258
+ 'track'
32259
+ ]);
32260
+ var URI_SAFE_ATTRIBUTES = null;
32261
+ var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [
32262
+ 'alt',
32263
+ 'class',
32264
+ 'for',
32265
+ 'id',
32266
+ 'label',
32267
+ 'name',
32268
+ 'pattern',
32269
+ 'placeholder',
32270
+ 'role',
32271
+ 'summary',
32272
+ 'title',
32273
+ 'value',
32274
+ 'style',
32275
+ 'xmlns'
32276
+ ]);
32277
+ var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
32278
+ var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
32279
+ var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
32280
+ var NAMESPACE = HTML_NAMESPACE;
32281
+ var IS_EMPTY_INPUT = false;
32282
+ var PARSER_MEDIA_TYPE;
32283
+ var SUPPORTED_PARSER_MEDIA_TYPES = [
32284
+ 'application/xhtml+xml',
32285
+ 'text/html'
32286
+ ];
32287
+ var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
32288
+ var transformCaseFunc;
32289
+ var CONFIG = null;
32290
+ var formElement = document.createElement('form');
32291
+ var isRegexOrFunction = function isRegexOrFunction(testValue) {
32292
+ return testValue instanceof RegExp || testValue instanceof Function;
32293
+ };
32294
+ var _parseConfig = function _parseConfig(cfg) {
32295
+ if (CONFIG && CONFIG === cfg) {
32296
+ return;
32297
+ }
32298
+ if (!cfg || _typeof(cfg) !== 'object') {
32299
+ cfg = {};
32300
+ }
32301
+ cfg = clone(cfg);
32302
+ ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;
32303
+ ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;
32304
+ URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;
32305
+ DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;
32306
+ FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;
32307
+ FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};
32308
+ FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};
32309
+ USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;
32310
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
32311
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
32312
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
32313
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
32314
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
32315
+ RETURN_DOM = cfg.RETURN_DOM || false;
32316
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
32317
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
32318
+ FORCE_BODY = cfg.FORCE_BODY || false;
32319
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
32320
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
32321
+ IN_PLACE = cfg.IN_PLACE || false;
32322
+ IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$1;
32323
+ NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
32324
+ if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
32325
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
32326
+ }
32327
+ if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
32328
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
32329
+ }
32330
+ if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
32331
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
32332
+ }
32333
+ PARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;
32334
+ transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {
32335
+ return x;
32336
+ } : stringToLowerCase;
32337
+ if (SAFE_FOR_TEMPLATES) {
32338
+ ALLOW_DATA_ATTR = false;
32339
+ }
32340
+ if (RETURN_DOM_FRAGMENT) {
32341
+ RETURN_DOM = true;
32342
+ }
32343
+ if (USE_PROFILES) {
32344
+ ALLOWED_TAGS = addToSet({}, _toConsumableArray(text));
32345
+ ALLOWED_ATTR = [];
32346
+ if (USE_PROFILES.html === true) {
32347
+ addToSet(ALLOWED_TAGS, html$1);
32348
+ addToSet(ALLOWED_ATTR, html);
32349
+ }
32350
+ if (USE_PROFILES.svg === true) {
32351
+ addToSet(ALLOWED_TAGS, svg$1);
32352
+ addToSet(ALLOWED_ATTR, svg);
32353
+ addToSet(ALLOWED_ATTR, xml);
32354
+ }
32355
+ if (USE_PROFILES.svgFilters === true) {
32356
+ addToSet(ALLOWED_TAGS, svgFilters);
32357
+ addToSet(ALLOWED_ATTR, svg);
32358
+ addToSet(ALLOWED_ATTR, xml);
32359
+ }
32360
+ if (USE_PROFILES.mathMl === true) {
32361
+ addToSet(ALLOWED_TAGS, mathMl$1);
32362
+ addToSet(ALLOWED_ATTR, mathMl);
32363
+ addToSet(ALLOWED_ATTR, xml);
32364
+ }
32365
+ }
32366
+ if (cfg.ADD_TAGS) {
32367
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
32368
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
32369
+ }
32370
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);
32371
+ }
32372
+ if (cfg.ADD_ATTR) {
32373
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
32374
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
32375
+ }
32376
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);
32377
+ }
32378
+ if (cfg.ADD_URI_SAFE_ATTR) {
32379
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);
32380
+ }
32381
+ if (cfg.FORBID_CONTENTS) {
32382
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
32383
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
32384
+ }
32385
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);
32386
+ }
32387
+ if (KEEP_CONTENT) {
32388
+ ALLOWED_TAGS['#text'] = true;
32389
+ }
32390
+ if (WHOLE_DOCUMENT) {
32391
+ addToSet(ALLOWED_TAGS, [
32392
+ 'html',
32393
+ 'head',
32394
+ 'body'
32395
+ ]);
32396
+ }
32397
+ if (ALLOWED_TAGS.table) {
32398
+ addToSet(ALLOWED_TAGS, ['tbody']);
32399
+ delete FORBID_TAGS.tbody;
32400
+ }
32401
+ if (freeze) {
32402
+ freeze(cfg);
32403
+ }
32404
+ CONFIG = cfg;
32405
+ };
32406
+ var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [
32407
+ 'mi',
32408
+ 'mo',
32409
+ 'mn',
32410
+ 'ms',
32411
+ 'mtext'
32412
+ ]);
32413
+ var HTML_INTEGRATION_POINTS = addToSet({}, [
32414
+ 'foreignobject',
32415
+ 'desc',
32416
+ 'title',
32417
+ 'annotation-xml'
32418
+ ]);
32419
+ var COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [
32420
+ 'title',
32421
+ 'style',
32422
+ 'font',
32423
+ 'a',
32424
+ 'script'
32425
+ ]);
32426
+ var ALL_SVG_TAGS = addToSet({}, svg$1);
32427
+ addToSet(ALL_SVG_TAGS, svgFilters);
32428
+ addToSet(ALL_SVG_TAGS, svgDisallowed);
32429
+ var ALL_MATHML_TAGS = addToSet({}, mathMl$1);
32430
+ addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
32431
+ var _checkValidNamespace = function _checkValidNamespace(element) {
32432
+ var parent = getParentNode(element);
32433
+ if (!parent || !parent.tagName) {
32434
+ parent = {
32435
+ namespaceURI: HTML_NAMESPACE,
32436
+ tagName: 'template'
32437
+ };
32438
+ }
32439
+ var tagName = stringToLowerCase(element.tagName);
32440
+ var parentTagName = stringToLowerCase(parent.tagName);
32441
+ if (element.namespaceURI === SVG_NAMESPACE) {
32442
+ if (parent.namespaceURI === HTML_NAMESPACE) {
32443
+ return tagName === 'svg';
32444
+ }
32445
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
32446
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
32447
+ }
32448
+ return Boolean(ALL_SVG_TAGS[tagName]);
32449
+ }
32450
+ if (element.namespaceURI === MATHML_NAMESPACE) {
32451
+ if (parent.namespaceURI === HTML_NAMESPACE) {
32452
+ return tagName === 'math';
32453
+ }
32454
+ if (parent.namespaceURI === SVG_NAMESPACE) {
32455
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
32456
+ }
32457
+ return Boolean(ALL_MATHML_TAGS[tagName]);
32458
+ }
32459
+ if (element.namespaceURI === HTML_NAMESPACE) {
32460
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
32461
+ return false;
32462
+ }
32463
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
32464
+ return false;
32465
+ }
32466
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
32467
+ }
32468
+ return false;
32469
+ };
32470
+ var _forceRemove = function _forceRemove(node) {
32471
+ arrayPush(DOMPurify.removed, { element: node });
32472
+ try {
32473
+ node.parentNode.removeChild(node);
32474
+ } catch (_) {
32475
+ try {
32476
+ node.outerHTML = emptyHTML;
32477
+ } catch (_) {
32478
+ node.remove();
32479
+ }
32480
+ }
32481
+ };
32482
+ var _removeAttribute = function _removeAttribute(name, node) {
32483
+ try {
32484
+ arrayPush(DOMPurify.removed, {
32485
+ attribute: node.getAttributeNode(name),
32486
+ from: node
32487
+ });
32488
+ } catch (_) {
32489
+ arrayPush(DOMPurify.removed, {
32490
+ attribute: null,
32491
+ from: node
32492
+ });
32493
+ }
32494
+ node.removeAttribute(name);
32495
+ if (name === 'is' && !ALLOWED_ATTR[name]) {
32496
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
32497
+ try {
32498
+ _forceRemove(node);
32499
+ } catch (_) {
32500
+ }
32501
+ } else {
32502
+ try {
32503
+ node.setAttribute(name, '');
32504
+ } catch (_) {
32505
+ }
32506
+ }
32507
+ }
32508
+ };
32509
+ var _initDocument = function _initDocument(dirty) {
32510
+ var doc;
32511
+ var leadingWhitespace;
32512
+ if (FORCE_BODY) {
32513
+ dirty = '<remove></remove>' + dirty;
32514
+ } else {
32515
+ var matches = stringMatch(dirty, /^[\r\n\t ]+/);
32516
+ leadingWhitespace = matches && matches[0];
32517
+ }
32518
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {
32519
+ dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
32520
+ }
32521
+ var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
32522
+ if (NAMESPACE === HTML_NAMESPACE) {
32523
+ try {
32524
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
32525
+ } catch (_) {
32526
+ }
32527
+ }
32528
+ if (!doc || !doc.documentElement) {
32529
+ doc = implementation.createDocument(NAMESPACE, 'template', null);
32530
+ try {
32531
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;
32532
+ } catch (_) {
32533
+ }
32534
+ }
32535
+ var body = doc.body || doc.documentElement;
32536
+ if (dirty && leadingWhitespace) {
32537
+ body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
32538
+ }
32539
+ if (NAMESPACE === HTML_NAMESPACE) {
32540
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
32541
+ }
32542
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
32543
+ };
32544
+ var _createIterator = function _createIterator(root) {
32545
+ return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);
32546
+ };
32547
+ var _isClobbered = function _isClobbered(elm) {
32548
+ return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function');
32549
+ };
32550
+ var _isNode = function _isNode(object) {
32551
+ return _typeof(Node) === 'object' ? object instanceof Node : object && _typeof(object) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';
32552
+ };
32553
+ var _executeHook = function _executeHook(entryPoint, currentNode, data) {
32554
+ if (!hooks[entryPoint]) {
32555
+ return;
32556
+ }
32557
+ arrayForEach(hooks[entryPoint], function (hook) {
32558
+ hook.call(DOMPurify, currentNode, data, CONFIG);
32559
+ });
32560
+ };
32561
+ var _sanitizeElements = function _sanitizeElements(currentNode) {
32562
+ var content;
32563
+ _executeHook('beforeSanitizeElements', currentNode, null);
32564
+ if (_isClobbered(currentNode)) {
32565
+ _forceRemove(currentNode);
32566
+ return true;
32567
+ }
32568
+ if (regExpTest(/[\u0080-\uFFFF]/, currentNode.nodeName)) {
32569
+ _forceRemove(currentNode);
32570
+ return true;
32571
+ }
32572
+ var tagName = transformCaseFunc(currentNode.nodeName);
32573
+ _executeHook('uponSanitizeElement', currentNode, {
32574
+ tagName: tagName,
32575
+ allowedTags: ALLOWED_TAGS
32576
+ });
32577
+ if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
32578
+ _forceRemove(currentNode);
32579
+ return true;
32580
+ }
32581
+ if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {
32582
+ _forceRemove(currentNode);
32583
+ return true;
32584
+ }
32585
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
32586
+ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
32587
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
32588
+ return false;
32589
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName))
32590
+ return false;
32591
+ }
32592
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
32593
+ var parentNode = getParentNode(currentNode) || currentNode.parentNode;
32594
+ var childNodes = getChildNodes(currentNode) || currentNode.childNodes;
32595
+ if (childNodes && parentNode) {
32596
+ var childCount = childNodes.length;
32597
+ for (var i = childCount - 1; i >= 0; --i) {
32598
+ parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));
32599
+ }
32600
+ }
32601
+ }
32602
+ _forceRemove(currentNode);
32603
+ return true;
32604
+ }
32605
+ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
32606
+ _forceRemove(currentNode);
32607
+ return true;
32608
+ }
32609
+ if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) {
32610
+ _forceRemove(currentNode);
32611
+ return true;
32612
+ }
32613
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
32614
+ content = currentNode.textContent;
32615
+ content = stringReplace(content, MUSTACHE_EXPR$1, ' ');
32616
+ content = stringReplace(content, ERB_EXPR$1, ' ');
32617
+ if (currentNode.textContent !== content) {
32618
+ arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
32619
+ currentNode.textContent = content;
32620
+ }
32621
+ }
32622
+ _executeHook('afterSanitizeElements', currentNode, null);
32623
+ return false;
32624
+ };
32625
+ var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
32626
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
32627
+ return false;
32628
+ }
32629
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName));
32630
+ else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName));
32631
+ else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
32632
+ if (_basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value)));
32633
+ else {
32634
+ return false;
32635
+ }
32636
+ } else if (URI_SAFE_ATTRIBUTES[lcName]);
32637
+ else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, '')));
32638
+ else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]);
32639
+ else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, '')));
32640
+ else if (!value);
32641
+ else {
32642
+ return false;
32643
+ }
32644
+ return true;
32645
+ };
32646
+ var _basicCustomElementTest = function _basicCustomElementTest(tagName) {
32647
+ return tagName.indexOf('-') > 0;
32648
+ };
32649
+ var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
32650
+ var attr;
32651
+ var value;
32652
+ var lcName;
32653
+ var l;
32654
+ _executeHook('beforeSanitizeAttributes', currentNode, null);
32655
+ var attributes = currentNode.attributes;
32656
+ if (!attributes) {
32657
+ return;
32658
+ }
32659
+ var hookEvent = {
32660
+ attrName: '',
32661
+ attrValue: '',
32662
+ keepAttr: true,
32663
+ allowedAttributes: ALLOWED_ATTR
32664
+ };
32665
+ l = attributes.length;
32666
+ while (l--) {
32667
+ attr = attributes[l];
32668
+ var _attr = attr, name = _attr.name, namespaceURI = _attr.namespaceURI;
32669
+ value = name === 'value' ? attr.value : stringTrim(attr.value);
32670
+ lcName = transformCaseFunc(name);
32671
+ hookEvent.attrName = lcName;
32672
+ hookEvent.attrValue = value;
32673
+ hookEvent.keepAttr = true;
32674
+ hookEvent.forceKeepAttr = undefined;
32675
+ _executeHook('uponSanitizeAttribute', currentNode, hookEvent);
32676
+ value = hookEvent.attrValue;
32677
+ if (hookEvent.forceKeepAttr) {
32678
+ continue;
32679
+ }
32680
+ _removeAttribute(name, currentNode);
32681
+ if (!hookEvent.keepAttr) {
32682
+ continue;
32683
+ }
32684
+ if (regExpTest(/\/>/i, value)) {
32685
+ _removeAttribute(name, currentNode);
32686
+ continue;
32687
+ }
32688
+ if (SAFE_FOR_TEMPLATES) {
32689
+ value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
32690
+ value = stringReplace(value, ERB_EXPR$1, ' ');
32691
+ }
32692
+ var lcTag = transformCaseFunc(currentNode.nodeName);
32693
+ if (!_isValidAttribute(lcTag, lcName, value)) {
32694
+ continue;
32695
+ }
32696
+ try {
32697
+ if (namespaceURI) {
32698
+ currentNode.setAttributeNS(namespaceURI, name, value);
32699
+ } else {
32700
+ currentNode.setAttribute(name, value);
32701
+ }
32702
+ arrayPop(DOMPurify.removed);
32703
+ } catch (_) {
32704
+ }
32705
+ }
32706
+ _executeHook('afterSanitizeAttributes', currentNode, null);
32707
+ };
32708
+ var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
32709
+ var shadowNode;
32710
+ var shadowIterator = _createIterator(fragment);
32711
+ _executeHook('beforeSanitizeShadowDOM', fragment, null);
32712
+ while (shadowNode = shadowIterator.nextNode()) {
32713
+ _executeHook('uponSanitizeShadowNode', shadowNode, null);
32714
+ if (_sanitizeElements(shadowNode)) {
32715
+ continue;
32716
+ }
32717
+ if (shadowNode.content instanceof DocumentFragment) {
32718
+ _sanitizeShadowDOM(shadowNode.content);
32719
+ }
32720
+ _sanitizeAttributes(shadowNode);
32721
+ }
32722
+ _executeHook('afterSanitizeShadowDOM', fragment, null);
32723
+ };
32724
+ DOMPurify.sanitize = function (dirty, cfg) {
32725
+ var body;
32726
+ var importedNode;
32727
+ var currentNode;
32728
+ var oldNode;
32729
+ var returnNode;
32730
+ IS_EMPTY_INPUT = !dirty;
32731
+ if (IS_EMPTY_INPUT) {
32732
+ dirty = '<!-->';
32733
+ }
32734
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
32735
+ if (typeof dirty.toString !== 'function') {
32736
+ throw typeErrorCreate('toString is not a function');
32737
+ } else {
32738
+ dirty = dirty.toString();
32739
+ if (typeof dirty !== 'string') {
32740
+ throw typeErrorCreate('dirty is not a string, aborting');
32741
+ }
32742
+ }
32743
+ }
32744
+ if (!DOMPurify.isSupported) {
32745
+ if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {
32746
+ if (typeof dirty === 'string') {
32747
+ return window.toStaticHTML(dirty);
32748
+ }
32749
+ if (_isNode(dirty)) {
32750
+ return window.toStaticHTML(dirty.outerHTML);
32751
+ }
32752
+ }
32753
+ return dirty;
32754
+ }
32755
+ if (!SET_CONFIG) {
32756
+ _parseConfig(cfg);
32757
+ }
32758
+ DOMPurify.removed = [];
32759
+ if (typeof dirty === 'string') {
32760
+ IN_PLACE = false;
32761
+ }
32762
+ if (IN_PLACE) {
32763
+ if (dirty.nodeName) {
32764
+ var tagName = transformCaseFunc(dirty.nodeName);
32765
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
32766
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
32767
+ }
32768
+ }
32769
+ } else if (dirty instanceof Node) {
32770
+ body = _initDocument('<!---->');
32771
+ importedNode = body.ownerDocument.importNode(dirty, true);
32772
+ if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {
32773
+ body = importedNode;
32774
+ } else if (importedNode.nodeName === 'HTML') {
32775
+ body = importedNode;
32776
+ } else {
32777
+ body.appendChild(importedNode);
32778
+ }
32779
+ } else {
32780
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf('<') === -1) {
32781
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
32782
+ }
32783
+ body = _initDocument(dirty);
32784
+ if (!body) {
32785
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
32786
+ }
32787
+ }
32788
+ if (body && FORCE_BODY) {
32789
+ _forceRemove(body.firstChild);
32790
+ }
32791
+ var nodeIterator = _createIterator(IN_PLACE ? dirty : body);
32792
+ while (currentNode = nodeIterator.nextNode()) {
32793
+ if (currentNode.nodeType === 3 && currentNode === oldNode) {
32794
+ continue;
32795
+ }
32796
+ if (_sanitizeElements(currentNode)) {
32797
+ continue;
32798
+ }
32799
+ if (currentNode.content instanceof DocumentFragment) {
32800
+ _sanitizeShadowDOM(currentNode.content);
32801
+ }
32802
+ _sanitizeAttributes(currentNode);
32803
+ oldNode = currentNode;
32804
+ }
32805
+ oldNode = null;
32806
+ if (IN_PLACE) {
32807
+ return dirty;
32808
+ }
32809
+ if (RETURN_DOM) {
32810
+ if (RETURN_DOM_FRAGMENT) {
32811
+ returnNode = createDocumentFragment.call(body.ownerDocument);
32812
+ while (body.firstChild) {
32813
+ returnNode.appendChild(body.firstChild);
32814
+ }
32815
+ } else {
32816
+ returnNode = body;
32817
+ }
32818
+ if (ALLOWED_ATTR.shadowroot) {
32819
+ returnNode = importNode.call(originalDocument, returnNode, true);
32820
+ }
32821
+ return returnNode;
32822
+ }
32823
+ var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
32824
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
32825
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
32826
+ }
32827
+ if (SAFE_FOR_TEMPLATES) {
32828
+ serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$1, ' ');
32829
+ serializedHTML = stringReplace(serializedHTML, ERB_EXPR$1, ' ');
32830
+ }
32831
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
32832
+ };
32833
+ DOMPurify.setConfig = function (cfg) {
32834
+ _parseConfig(cfg);
32835
+ SET_CONFIG = true;
32836
+ };
32837
+ DOMPurify.clearConfig = function () {
32838
+ CONFIG = null;
32839
+ SET_CONFIG = false;
32840
+ };
32841
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
32842
+ if (!CONFIG) {
32843
+ _parseConfig({});
32844
+ }
32845
+ var lcTag = transformCaseFunc(tag);
32846
+ var lcName = transformCaseFunc(attr);
32847
+ return _isValidAttribute(lcTag, lcName, value);
32848
+ };
32849
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
32850
+ if (typeof hookFunction !== 'function') {
32851
+ return;
32852
+ }
32853
+ hooks[entryPoint] = hooks[entryPoint] || [];
32854
+ arrayPush(hooks[entryPoint], hookFunction);
32855
+ };
32856
+ DOMPurify.removeHook = function (entryPoint) {
32857
+ if (hooks[entryPoint]) {
32858
+ return arrayPop(hooks[entryPoint]);
32859
+ }
32860
+ };
32861
+ DOMPurify.removeHooks = function (entryPoint) {
32862
+ if (hooks[entryPoint]) {
32863
+ hooks[entryPoint] = [];
32864
+ }
32865
+ };
32866
+ DOMPurify.removeAllHooks = function () {
32867
+ hooks = {};
32868
+ };
32869
+ return DOMPurify;
32870
+ }
32871
+ var purify = createDOMPurify();
32872
+
32873
+ var sanitizeHtmlString = function (html) {
32874
+ return purify().sanitize(html);
32875
+ };
32876
+
31317
32877
  var isTouch = global$9.deviceType.isTouch();
31318
32878
  var hiddenHeader = function (title, close) {
31319
32879
  return {
@@ -31367,7 +32927,7 @@
31367
32927
  tag: 'div',
31368
32928
  classes: ['tox-dialog__body-content']
31369
32929
  },
31370
- components: [{ dom: fromHtml('<p>' + providersBackstage.translate(message) + '</p>') }]
32930
+ components: [{ dom: fromHtml('<p>' + sanitizeHtmlString(providersBackstage.translate(message)) + '</p>') }]
31371
32931
  }]
31372
32932
  });
31373
32933
  };
@@ -31489,7 +33049,7 @@
31489
33049
  };
31490
33050
  var renderTitle = function (spec, id, providersBackstage) {
31491
33051
  var renderComponents = function (data) {
31492
- return [text(providersBackstage.translate(data.title))];
33052
+ return [text$1(providersBackstage.translate(data.title))];
31493
33053
  };
31494
33054
  return {
31495
33055
  dom: {