@svgedit/svgcanvas 7.2.4 → 7.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/svgcanvas.js CHANGED
@@ -10618,9 +10618,18 @@ const mouseUpEvent = evt => {
10618
10618
  const elem = selectedElements[0];
10619
10619
  if (elem) {
10620
10620
  elem.removeAttribute('style');
10621
- walkTree(elem, el => {
10622
- el.removeAttribute('style');
10623
- });
10621
+
10622
+ // we don't remove the style elements for contents of foreignObjects
10623
+ // because that is a valid way to style them
10624
+ if (elem.localName === 'foreignObject') {
10625
+ walkTree(elem, el => {
10626
+ el.style.removeProperty('pointer-events');
10627
+ });
10628
+ } else {
10629
+ walkTree(elem, el => {
10630
+ el.removeAttribute('style');
10631
+ });
10632
+ }
10624
10633
  }
10625
10634
  }
10626
10635
  return;
@@ -14646,6 +14655,18 @@ const svgWhiteList_ = {
14646
14655
  title: [],
14647
14656
  tspan: ['clip-path', 'clip-rule', 'dx', 'dy', 'dominant-baseline', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'font-family', 'font-size', 'font-style', 'font-weight', 'mask', 'opacity', 'requiredFeatures', 'rotate', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'systemLanguage', 'text-anchor', 'textLength', 'x', 'xml:space', 'y'],
14648
14657
  use: ['clip-path', 'clip-rule', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'height', 'mask', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'width', 'x', 'xlink:href', 'y', 'overflow'],
14658
+ // Filter Primitives
14659
+ feComponentTransfer: ['in', 'result'],
14660
+ feFuncR: ['type', 'tableValues', 'slope', 'intercept', 'amplitude', 'exponent', 'offset'],
14661
+ feFuncG: ['type', 'tableValues', 'slope', 'intercept', 'amplitude', 'exponent', 'offset'],
14662
+ feFuncB: ['type', 'tableValues', 'slope', 'intercept', 'amplitude', 'exponent', 'offset'],
14663
+ feFuncA: ['type', 'tableValues', 'slope', 'intercept', 'amplitude', 'exponent', 'offset'],
14664
+ feConvolveMatrix: ['in', 'order', 'kernelMatrix', 'divisor', 'bias', 'targetX', 'targetY', 'edgeMode', 'kernelUnitLength', 'preserveAlpha'],
14665
+ feDiffuseLighting: ['in', 'surfaceScale', 'diffuseConstant', 'kernelUnitLength', 'lighting-color'],
14666
+ feSpecularLighting: ['in', 'surfaceScale', 'specularConstant', 'specularExponent', 'kernelUnitLength', 'lighting-color'],
14667
+ feDisplacementMap: ['in', 'in2', 'scale', 'xChannelSelector', 'yChannelSelector'],
14668
+ feTurbulence: ['baseFrequency', 'numOctaves', 'result', 'seed', 'stitchTiles', 'type'],
14669
+ feTile: ['in'],
14649
14670
  // MathML Elements
14650
14671
  annotation: ['encoding'],
14651
14672
  'annotation-xml': ['encoding'],
@@ -14677,9 +14698,24 @@ const svgWhiteList_ = {
14677
14698
  munder: [],
14678
14699
  munderover: [],
14679
14700
  none: [],
14680
- semantics: []
14701
+ semantics: [],
14702
+ // HTML Elements for use in a foreignObject
14703
+ div: [],
14704
+ p: [],
14705
+ li: [],
14706
+ pre: [],
14707
+ ol: [],
14708
+ ul: [],
14709
+ span: [],
14710
+ hr: [],
14711
+ br: [],
14712
+ h1: [],
14713
+ h2: [],
14714
+ h3: [],
14715
+ h4: [],
14716
+ h5: [],
14717
+ h6: []
14681
14718
  };
14682
- /* eslint-enable max-len */
14683
14719
 
14684
14720
  // add generic attributes to all elements of the whitelist
14685
14721
  Object.keys(svgWhiteList_).forEach(element => {
@@ -15647,7 +15683,7 @@ try {
15647
15683
  /** @license
15648
15684
  *
15649
15685
  * jsPDF - PDF Document creation from JavaScript
15650
- * Version 3.0.0 Built on 2025-02-19T09:26:58.791Z
15686
+ * Version 3.0.1 Built on 2025-03-17T14:19:36.873Z
15651
15687
  * CommitID 00000000
15652
15688
  *
15653
15689
  * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
@@ -17411,8 +17447,7 @@ function E$1(e) {
17411
17447
  E = Math.sin(c);
17412
17448
  p = new Vt(M, E, -E, M, 0, 0);
17413
17449
  } else c && c instanceof Vt && (p = c);
17414
- S !== x.ADVANCED || p || (p = Yt), void 0 !== (h = i.charSpace || _r) && (v += O(U(h)) + " Tc\n", this.setCharSpace(this.getCharSpace() || 0)), void 0 !== (d = i.horizontalScale) && (v += O(100 * d) + " Tz\n");
17415
- i.lang;
17450
+ S !== x.ADVANCED || p || (p = Yt), void 0 !== (h = i.charSpace || _r) && (v += O(U(h)) + " Tc\n", this.setCharSpace(this.getCharSpace() || 0)), void 0 !== (d = i.horizontalScale) && (v += O(100 * d) + " Tz\n"), i.lang;
17416
17451
  var D = -1,
17417
17452
  R = void 0 !== i.renderingMode ? i.renderingMode : i.stroke,
17418
17453
  T = g.internal.getCurrentPageInfo().pageContext;
@@ -18064,7 +18099,7 @@ I$1.prototype.lsbFirstWord = function (t) {
18064
18099
  return 0 === i;
18065
18100
  }, E$1.API = {
18066
18101
  events: []
18067
- }, E$1.version = "3.0.0";
18102
+ }, E$1.version = "3.0.1";
18068
18103
  var q$1 = E$1.API,
18069
18104
  D$1 = 1,
18070
18105
  R$1 = function (t) {
@@ -19655,17 +19690,10 @@ function _t(t) {
19655
19690
  return 0 === t.length && (e = false), t.length % 4 != 0 && (e = false), false === /^[A-Za-z0-9+/]+$/.test(t.substr(0, t.length - 2)) && (e = false), false === /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2)) && (e = false), e;
19656
19691
  },
19657
19692
  L = e.__addimage__.extractImageFromDataUrl = function (t) {
19658
- var e = (t = t || "").split("base64,"),
19659
- r = null;
19660
- if (2 === e.length) {
19661
- var n = /^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);
19662
- Array.isArray(n) && (r = {
19663
- mimeType: n[1],
19664
- charset: n[2],
19665
- data: e[1]
19666
- });
19667
- }
19668
- return r;
19693
+ if (null == t) return null;
19694
+ if (!(t = t.trim()).startsWith("data:")) return null;
19695
+ var e = t.indexOf(",");
19696
+ return e < 0 ? null : t.substring(0, e).trim().endsWith("base64") ? t.substring(e + 1) : null;
19669
19697
  },
19670
19698
  A = e.__addimage__.supportsArrayBuffer = function () {
19671
19699
  return "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array;
@@ -19712,19 +19740,19 @@ function _t(t) {
19712
19740
  return s;
19713
19741
  },
19714
19742
  k = e.__addimage__.convertBase64ToBinaryString = function (t, e) {
19715
- var r;
19716
19743
  e = "boolean" != typeof e || e;
19717
- var n,
19718
- i = "";
19744
+ var r,
19745
+ n = "";
19719
19746
  if ("string" == typeof t) {
19720
- n = null !== (r = L(t)) ? r.data : t;
19747
+ var i;
19748
+ r = null !== (i = L(t)) && void 0 !== i ? i : t;
19721
19749
  try {
19722
- i = u$2(n);
19750
+ n = u$2(r);
19723
19751
  } catch (t) {
19724
- if (e) throw N(n) ? new Error("atob-Error in jsPDF.convertBase64ToBinaryString " + t.message) : new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ");
19752
+ if (e) throw N(r) ? new Error("atob-Error in jsPDF.convertBase64ToBinaryString " + t.message) : new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ");
19725
19753
  }
19726
19754
  }
19727
- return i;
19755
+ return n;
19728
19756
  };
19729
19757
  e.getImageProperties = function (t) {
19730
19758
  var n,
@@ -20733,10 +20761,12 @@ var Ut$1,
20733
20761
  set: function (t) {
20734
20762
  var e;
20735
20763
  if (this.ctx.font = t, null !== (e = /^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))) {
20736
- var r = e[1],
20737
- n = (e[2], e[3]),
20738
- i = e[4],
20739
- a = (e[5], e[6]),
20764
+ var r = e[1];
20765
+ e[2];
20766
+ var n = e[3],
20767
+ i = e[4];
20768
+ e[5];
20769
+ var a = e[6],
20740
20770
  o = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];
20741
20771
  i = "px" === o ? Math.floor(parseFloat(i) * this.pdf.internal.scaleFactor) : "em" === o ? Math.floor(parseFloat(i) * this.pdf.getFontSize()) : Math.floor(parseFloat(i) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(i);
20742
20772
  var s = function (t) {
@@ -22418,8 +22448,7 @@ function Zt(t) {
22418
22448
  i = t[e++],
22419
22449
  a = i >> 7,
22420
22450
  o = 1 << (7 & i) + 1;
22421
- t[e++];
22422
- t[e++];
22451
+ t[e++], t[e++];
22423
22452
  var s = null,
22424
22453
  c = null;
22425
22454
  a && (s = e, c = o, e += 3 * o);
@@ -25101,42 +25130,34 @@ function ee(t) {
25101
25130
  for (var i = 0; i < n; i++) if (t[e + i] != r.charCodeAt(i)) return true;
25102
25131
  return false;
25103
25132
  }(t, e, "RIFF", 4)) {
25104
- var s, c;
25105
- l(t, e += 4);
25106
- for (e += 8; e < t.length;) {
25107
- var f = u(t, e),
25108
- d = l(t, e += 4);
25133
+ for (l(t, e += 4), e += 8; e < t.length;) {
25134
+ var s = u(t, e),
25135
+ c = l(t, e += 4);
25109
25136
  e += 4;
25110
- var p = d + (1 & d);
25111
- switch (f) {
25137
+ var f = c + (1 & c);
25138
+ switch (s) {
25112
25139
  case "VP8 ":
25113
25140
  case "VP8L":
25114
- void 0 === r.frames[n] && (r.frames[n] = {});
25115
- (v = r.frames[n]).src_off = i ? o : e - 8, v.src_size = a + d + 8, n++, i && (i = false, a = 0, o = 0);
25141
+ void 0 === r.frames[n] && (r.frames[n] = {}), (g = r.frames[n]).src_off = i ? o : e - 8, g.src_size = a + c + 8, n++, i && (i = false, a = 0, o = 0);
25116
25142
  break;
25117
25143
  case "VP8X":
25118
- (v = r.header = {}).feature_flags = t[e];
25119
- var g = e + 4;
25120
- v.canvas_width = 1 + h(t, g);
25121
- g += 3;
25122
- v.canvas_height = 1 + h(t, g);
25123
- g += 3;
25144
+ (g = r.header = {}).feature_flags = t[e];
25145
+ var d = e + 4;
25146
+ g.canvas_width = 1 + h(t, d), d += 3, g.canvas_height = 1 + h(t, d), d += 3;
25124
25147
  break;
25125
25148
  case "ALPH":
25126
- i = true, a = p + 8, o = e - 8;
25149
+ i = true, a = f + 8, o = e - 8;
25127
25150
  break;
25128
25151
  case "ANIM":
25129
- (v = r.header).bgcolor = l(t, e);
25130
- g = e + 4;
25131
- v.loop_count = (s = t)[(c = g) + 0] << 0 | s[c + 1] << 8;
25132
- g += 2;
25152
+ (g = r.header).bgcolor = l(t, e), d = e + 4, g.loop_count = (m = t)[(v = d) + 0] << 0 | m[v + 1] << 8, d += 2;
25133
25153
  break;
25134
25154
  case "ANMF":
25135
- var m, v;
25136
- (v = r.frames[n] = {}).offset_x = 2 * h(t, e), e += 3, v.offset_y = 2 * h(t, e), e += 3, v.width = 1 + h(t, e), e += 3, v.height = 1 + h(t, e), e += 3, v.duration = h(t, e), e += 3, m = t[e++], v.dispose = 1 & m, v.blend = m >> 1 & 1;
25155
+ var p, g;
25156
+ (g = r.frames[n] = {}).offset_x = 2 * h(t, e), e += 3, g.offset_y = 2 * h(t, e), e += 3, g.width = 1 + h(t, e), e += 3, g.height = 1 + h(t, e), e += 3, g.duration = h(t, e), e += 3, p = t[e++], g.dispose = 1 & p, g.blend = p >> 1 & 1;
25137
25157
  }
25138
- "ANMF" != f && (e += p);
25158
+ "ANMF" != s && (e += f);
25139
25159
  }
25160
+ var m, v;
25140
25161
  return r;
25141
25162
  }
25142
25163
  }(m, 0);
@@ -26552,9 +26573,11 @@ function (t) {
26552
26573
  isInputVisual: true
26553
26574
  });
26554
26575
  t.API.events.push(["postProcessText", function (t) {
26555
- var e = t.text,
26556
- n = (t.x, t.y, t.options || {}),
26557
- i = (t.mutex, n.lang, []);
26576
+ var e = t.text;
26577
+ t.x, t.y;
26578
+ var n = t.options || {};
26579
+ t.mutex, n.lang;
26580
+ var i = [];
26558
26581
  if (n.isInputVisual = "boolean" != typeof n.isInputVisual || n.isInputVisual, r.setOptions(n), "[object Array]" === Object.prototype.toString.call(e)) {
26559
26582
  var a = 0;
26560
26583
  for (i = [], a = 0; a < e.length; a += 1) "[object Array]" === Object.prototype.toString.call(e[a]) ? i.push([r.doBidiReorder(e[a][0]), e[a][1], e[a][2]]) : i.push([r.doBidiReorder(e[a])]);
@@ -27571,6 +27594,7 @@ function requirePath_parse() {
27571
27594
  for (i = need_params; i > 0; i--) {
27572
27595
  if (is_arc && (i === 3 || i === 4)) scanFlag(state);else scanParam(state);
27573
27596
  if (state.err.length) {
27597
+ finalizeSegment(state);
27574
27598
  return;
27575
27599
  }
27576
27600
  state.data.push(state.param);
@@ -27612,9 +27636,7 @@ function requirePath_parse() {
27612
27636
  while (state.index < max && !state.err.length) {
27613
27637
  scanSegment(state);
27614
27638
  }
27615
- if (state.err.length) {
27616
- state.result = [];
27617
- } else if (state.result.length) {
27639
+ if (state.result.length) {
27618
27640
  if ('mM'.indexOf(state.result[0][0]) < 0) {
27619
27641
  state.err = 'SvgPath: string should start with `M` or `m`';
27620
27642
  state.result = [];
@@ -28262,24 +28284,38 @@ function requireSvgpath$1() {
28262
28284
  // Convert processed SVG Path back to string
28263
28285
  //
28264
28286
  SvgPath.prototype.toString = function () {
28265
- var elements = [],
28266
- skipCmd,
28267
- cmd;
28287
+ var result = '',
28288
+ prevCmd = '',
28289
+ cmdSkipped = false;
28268
28290
  this.__evaluateStack();
28269
- for (var i = 0; i < this.segments.length; i++) {
28270
- // remove repeating commands names
28271
- cmd = this.segments[i][0];
28272
- skipCmd = i > 0 && cmd !== 'm' && cmd !== 'M' && cmd === this.segments[i - 1][0];
28273
- elements = elements.concat(skipCmd ? this.segments[i].slice(1) : this.segments[i]);
28274
- }
28275
- return elements.join(' ')
28276
- // Optimizations: remove spaces around commands & before `-`
28277
- //
28278
- // We could also remove leading zeros for `0.5`-like values,
28279
- // but their count is too small to spend time for.
28280
- .replace(/ ?([achlmqrstvz]) ?/gi, '$1').replace(/ \-/g, '-')
28281
- // workaround for FontForge SVG importing bug
28282
- .replace(/zm/g, 'z m');
28291
+ for (var i = 0, len = this.segments.length; i < len; i++) {
28292
+ var segment = this.segments[i];
28293
+ var cmd = segment[0];
28294
+
28295
+ // Command not repeating => store
28296
+ if (cmd !== prevCmd || cmd === 'm' || cmd === 'M') {
28297
+ // workaround for FontForge SVG importing bug, keep space between "z m".
28298
+ if (cmd === 'm' && prevCmd === 'z') result += ' ';
28299
+ result += cmd;
28300
+ cmdSkipped = false;
28301
+ } else {
28302
+ cmdSkipped = true;
28303
+ }
28304
+
28305
+ // Store segment params
28306
+ for (var pos = 1; pos < segment.length; pos++) {
28307
+ var val = segment[pos];
28308
+ // Space can be skipped
28309
+ // 1. After command (always)
28310
+ // 2. For negative value (with '-' at start)
28311
+ if (pos === 1) {
28312
+ if (cmdSkipped && val >= 0) result += ' ';
28313
+ } else if (val >= 0) result += ' ';
28314
+ result += val;
28315
+ }
28316
+ prevCmd = cmd;
28317
+ }
28318
+ return result;
28283
28319
  };
28284
28320
 
28285
28321
  // Translate path to (x [, y])
@@ -29268,7 +29304,7 @@ var p$1 = function () {
29268
29304
  });
29269
29305
  }, t;
29270
29306
  }(),
29271
- b = function () {
29307
+ y$1 = function () {
29272
29308
  function e(t) {
29273
29309
  this.renderedElements = {}, this.idMap = t, this.idPrefix = String(e.instanceCounter++);
29274
29310
  }
@@ -29296,7 +29332,7 @@ var p$1 = function () {
29296
29332
  }).join("|")), this.idPrefix + "|" + t + "|" + r;
29297
29333
  }, e.instanceCounter = 0, e;
29298
29334
  }();
29299
- function y$1(t, e) {
29335
+ function b(t, e) {
29300
29336
  return Math.atan2(e[1] - t[1], e[0] - t[0]);
29301
29337
  }
29302
29338
  var v$1 = 2 / 3;
@@ -29413,8 +29449,8 @@ var E = function () {
29413
29449
  I = function (t, e, r, i) {
29414
29450
  void 0 === i && (i = false), this.id = t, this.anchor = e, this.angle = r, this.isStartMarker = i;
29415
29451
  },
29416
- H = /url\(["']?#([^"']+)["']?\)/,
29417
- R = {
29452
+ R = /url\(["']?#([^"']+)["']?\)/,
29453
+ H = {
29418
29454
  bottom: "bottom",
29419
29455
  "text-bottom": "bottom",
29420
29456
  top: "top",
@@ -29434,7 +29470,7 @@ function W(t, e) {
29434
29470
  return (r = t && t.toString().match(/^([\-0-9.]+)em$/)) ? parseFloat(r[1]) * e : (r = t && t.toString().match(/^([\-0-9.]+)(px|)$/)) ? parseFloat(r[1]) : 0;
29435
29471
  }
29436
29472
  function V(t) {
29437
- return R[t] || "alphabetic";
29473
+ return H[t] || "alphabetic";
29438
29474
  }
29439
29475
  function j(t) {
29440
29476
  for (var e, r = [], i = /[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g; e = i.exec(t);) r.push(parseFloat(e[0]));
@@ -29503,14 +29539,14 @@ function $(t, e, r, i, n, a, s, o) {
29503
29539
  m = a / p,
29504
29540
  g = t.getAttribute("preserveAspectRatio");
29505
29541
  if (g) {
29506
- var b = g.split(" ");
29507
- "defer" === b[0] && (b = b.slice(1)), l = b[0], u = b[1] || "meet";
29542
+ var y = g.split(" ");
29543
+ "defer" === y[0] && (y = y.slice(1)), l = y[0], u = y[1] || "meet";
29508
29544
  } else l = "xMidYMid", u = "meet";
29509
29545
  if ("none" !== l && ("meet" === u ? d = m = Math.min(d, m) : "slice" === u && (d = m = Math.max(d, m))), o) return s.pdf.Matrix(d, 0, 0, m, 0, 0);
29510
- var y = r - h * d,
29546
+ var b = r - h * d,
29511
29547
  v = i - f * m;
29512
- l.indexOf("xMid") >= 0 ? y += (n - c * d) / 2 : l.indexOf("xMax") >= 0 && (y += n - c * d), l.indexOf("YMid") >= 0 ? v += (a - p * m) / 2 : l.indexOf("YMax") >= 0 && (v += a - p * m);
29513
- var x = s.pdf.Matrix(1, 0, 0, 1, y, v),
29548
+ l.indexOf("xMid") >= 0 ? b += (n - c * d) / 2 : l.indexOf("xMax") >= 0 && (b += n - c * d), l.indexOf("YMid") >= 0 ? v += (a - p * m) / 2 : l.indexOf("YMax") >= 0 && (v += a - p * m);
29549
+ var x = s.pdf.Matrix(1, 0, 0, 1, b, v),
29514
29550
  S = s.pdf.Matrix(d, 0, 0, m, 0, 0);
29515
29551
  return s.pdf.matrixMult(S, x);
29516
29552
  }
@@ -29740,7 +29776,7 @@ var K = function () {
29740
29776
  }, t;
29741
29777
  }();
29742
29778
  function at(t, e) {
29743
- var r = H.exec(t);
29779
+ var r = R.exec(t);
29744
29780
  if (r) {
29745
29781
  var i = r[1],
29746
29782
  n = e.refsHandler.get(i);
@@ -29783,10 +29819,10 @@ function st(t, r, i) {
29783
29819
  g.ok && (t.attributeState.stroke = new d(g));
29784
29820
  }
29785
29821
  m && t.attributeState.stroke instanceof d && (t.attributeState.contextStroke = t.attributeState.stroke.color), l && t.attributeState.fill instanceof d && (t.attributeState.contextFill = t.attributeState.fill.color);
29786
- var b = N$1(n, t.styleSheets, "stroke-linecap");
29787
- b && (t.attributeState.strokeLinecap = b);
29788
- var y = N$1(n, t.styleSheets, "stroke-linejoin");
29789
- y && (t.attributeState.strokeLinejoin = y);
29822
+ var y = N$1(n, t.styleSheets, "stroke-linecap");
29823
+ y && (t.attributeState.strokeLinecap = y);
29824
+ var b = N$1(n, t.styleSheets, "stroke-linejoin");
29825
+ b && (t.attributeState.strokeLinejoin = b);
29790
29826
  var v = N$1(n, t.styleSheets, "stroke-dasharray");
29791
29827
  if (v) {
29792
29828
  var x = parseInt(N$1(n, t.styleSheets, "stroke-dashoffset") || "0");
@@ -29847,7 +29883,7 @@ function ot(t, e, r) {
29847
29883
  t.attributeState.fontWeight === e.attributeState.fontWeight && t.attributeState.fontStyle === e.attributeState.fontStyle || (o = X(t.attributeState.fontStyle, t.attributeState.fontWeight)), void 0 === s && void 0 === o || (void 0 === s && (s = U.hasOwnProperty(t.attributeState.fontFamily) ? U[t.attributeState.fontFamily] : t.attributeState.fontFamily), t.pdf.setFont(s, o)), t.attributeState.fontSize !== e.attributeState.fontSize && t.pdf.setFontSize(t.attributeState.fontSize * t.pdf.internal.scaleFactor);
29848
29884
  }
29849
29885
  function lt(t, e, r) {
29850
- var i = H.exec(t);
29886
+ var i = R.exec(t);
29851
29887
  if (i) {
29852
29888
  var n = i[1];
29853
29889
  return r.refsHandler.get(n) || void 0;
@@ -29980,7 +30016,7 @@ var ht = function (t) {
29980
30016
  d = i && t > 0 && !(1 === t && s[t - 1] instanceof T$1),
29981
30017
  m = s[t - 1] || null;
29982
30018
  if (m instanceof T$1 || m instanceof F || m instanceof A) {
29983
- if (e instanceof A) c && a.addMarker(new I(r, [m.x, m.y], y$1(f ? [f.x, f.y] : [m.x, m.y], [e.x1, e.y1]), true)), p && a.addMarker(new I(n, [e.x, e.y], y$1([e.x2, e.y2], [e.x, e.y]))), d && (l = w([m.x, m.y], [e.x1, e.y1]), l = m instanceof T$1 ? l : S(k(o, l)), a.addMarker(new I(i, [m.x, m.y], Math.atan2(l[1], l[0])))), o = w([e.x2, e.y2], [e.x, e.y]);else if (e instanceof T$1 || e instanceof F) {
30019
+ if (e instanceof A) c && a.addMarker(new I(r, [m.x, m.y], b(f ? [f.x, f.y] : [m.x, m.y], [e.x1, e.y1]), true)), p && a.addMarker(new I(n, [e.x, e.y], b([e.x2, e.y2], [e.x, e.y]))), d && (l = w([m.x, m.y], [e.x1, e.y1]), l = m instanceof T$1 ? l : S(k(o, l)), a.addMarker(new I(i, [m.x, m.y], Math.atan2(l[1], l[0])))), o = w([e.x2, e.y2], [e.x, e.y]);else if (e instanceof T$1 || e instanceof F) {
29984
30020
  if (l = w([m.x, m.y], [e.x, e.y]), c) {
29985
30021
  var g = f ? w([f.x, f.y], [e.x, e.y]) : l;
29986
30022
  a.addMarker(new I(r, [m.x, m.y], Math.atan2(g[1], g[0]), true));
@@ -30003,8 +30039,8 @@ var ht = function (t) {
30003
30039
  }
30004
30040
  } else {
30005
30041
  u = e instanceof T$1 && e;
30006
- var b = s[t + 1];
30007
- (b instanceof T$1 || b instanceof F || b instanceof A) && (h = w([u.x, u.y], [b.x, b.y]));
30042
+ var y = s[t + 1];
30043
+ (y instanceof T$1 || y instanceof F || y instanceof A) && (h = w([u.x, u.y], [y.x, y.y]));
30008
30044
  }
30009
30045
  }, p = 0; p < s.length; p++) c(p);
30010
30046
  }
@@ -30018,7 +30054,7 @@ var ht = function (t) {
30018
30054
  }, e;
30019
30055
  }(ft);
30020
30056
  function pt(t) {
30021
- var e = H.exec(t);
30057
+ var e = R.exec(t);
30022
30058
  return e && e[1] || void 0;
30023
30059
  }
30024
30060
  var dt = function (t) {
@@ -30097,17 +30133,17 @@ var dt = function (t) {
30097
30133
  gt = function (t, e) {
30098
30134
  this.width = t, this.height = e;
30099
30135
  },
30100
- bt = function (t) {
30136
+ yt = function (t) {
30101
30137
  function e() {
30102
30138
  return null !== t && t.apply(this, arguments) || this;
30103
30139
  }
30104
30140
  return u$1(e, t), e.prototype.renderCore = function (t) {
30105
30141
  return f$1(this, void 0, void 0, function () {
30106
- var r, i, n, a, s, o, l, u, h, f, p, d, b;
30142
+ var r, i, n, a, s, o, l, u, h, f, p, d, y;
30107
30143
  return c$2(this, function (c) {
30108
30144
  switch (c.label) {
30109
30145
  case 0:
30110
- return r = parseFloat, (i = this.element.getAttribute("href") || this.element.getAttribute("xlink:href")) ? (n = i.substring(1), a = t.refsHandler.get(n), s = B(a.element, "symbol,svg") && a.element.hasAttribute("viewBox"), o = r(N$1(this.element, t.styleSheets, "x") || "0"), l = r(N$1(this.element, t.styleSheets, "y") || "0"), u = void 0, h = void 0, s ? (u = r(N$1(this.element, t.styleSheets, "width") || N$1(a.element, t.styleSheets, "width") || "0"), h = r(N$1(this.element, t.styleSheets, "height") || N$1(a.element, t.styleSheets, "height") || "0"), o += r(N$1(a.element, t.styleSheets, "x") || "0"), l += r(N$1(a.element, t.styleSheets, "y") || "0"), p = j(a.element.getAttribute("viewBox")), f = $(a.element, p, o, l, u, h, t)) : f = t.pdf.Matrix(1, 0, 0, 1, o, l), d = m$2.getContextColors(t, true), b = new g(t.pdf, {
30146
+ return r = parseFloat, (i = this.element.getAttribute("href") || this.element.getAttribute("xlink:href")) ? (n = i.substring(1), a = t.refsHandler.get(n), s = B(a.element, "symbol,svg") && a.element.hasAttribute("viewBox"), o = r(N$1(this.element, t.styleSheets, "x") || "0"), l = r(N$1(this.element, t.styleSheets, "y") || "0"), u = void 0, h = void 0, s ? (u = r(N$1(this.element, t.styleSheets, "width") || N$1(a.element, t.styleSheets, "width") || "0"), h = r(N$1(this.element, t.styleSheets, "height") || N$1(a.element, t.styleSheets, "height") || "0"), o += r(N$1(a.element, t.styleSheets, "x") || "0"), l += r(N$1(a.element, t.styleSheets, "y") || "0"), p = j(a.element.getAttribute("viewBox")), f = $(a.element, p, o, l, u, h, t)) : f = t.pdf.Matrix(1, 0, 0, 1, o, l), d = m$2.getContextColors(t, true), y = new g(t.pdf, {
30111
30147
  refsHandler: t.refsHandler,
30112
30148
  styleSheets: t.styleSheets,
30113
30149
  withinUse: true,
@@ -30116,7 +30152,7 @@ var dt = function (t) {
30116
30152
  textMeasure: t.textMeasure,
30117
30153
  attributeState: Object.assign(m$2.default(), d)
30118
30154
  }), [4, t.refsHandler.getRendered(n, d, function (t) {
30119
- return e.renderReferencedNode(t, n, b);
30155
+ return e.renderReferencedNode(t, n, y);
30120
30156
  })]) : [2];
30121
30157
  case 1:
30122
30158
  return c.sent(), t.pdf.saveGraphicsState(), t.pdf.setCurrentTransformationMatrix(t.transform), s && "visible" !== N$1(a.element, t.styleSheets, "overflow") && (t.pdf.rect(o, l, u, h), t.pdf.clip().discardPath()), t.pdf.doFormObject(t.refsHandler.generateKey(n, d), f), t.pdf.restoreGraphicsState(), [2];
@@ -30149,7 +30185,7 @@ var dt = function (t) {
30149
30185
  return t.pdf.unitMatrix;
30150
30186
  }, e;
30151
30187
  }(ft),
30152
- yt = function (t) {
30188
+ bt = function (t) {
30153
30189
  function e(e, r) {
30154
30190
  return t.call(this, false, e, r) || this;
30155
30191
  }
@@ -30266,27 +30302,27 @@ var Tt = function () {
30266
30302
  o.push(n);
30267
30303
  var g = t.resolveRelativePositionAttribute(n, "dx");
30268
30304
  null !== g && (d += W(g, a.attributeState.fontSize));
30269
- var b = t.resolveRelativePositionAttribute(n, "dy");
30270
- null !== b && (m += W(b, a.attributeState.fontSize));
30305
+ var y = t.resolveRelativePositionAttribute(n, "dy");
30306
+ null !== y && (m += W(y, a.attributeState.fontSize));
30271
30307
  }
30272
30308
  l[i] = d, u[i] = m, h = d + s.width + s.length * r, f = m, c = Math.min(c, d), p = Math.max(p, h);
30273
30309
  }
30274
- var y = 0;
30310
+ var b = 0;
30275
30311
  switch (this.textAnchor) {
30276
30312
  case "start":
30277
- y = 0;
30313
+ b = 0;
30278
30314
  break;
30279
30315
  case "middle":
30280
- y = (p - c) / 2;
30316
+ b = (p - c) / 2;
30281
30317
  break;
30282
30318
  case "end":
30283
- y = p - c;
30319
+ b = p - c;
30284
30320
  }
30285
30321
  for (i = 0; i < this.textNodes.length; i++) if (n = this.textNodes[i], a = this.contexts[i], "#text" === n.nodeName || "hidden" !== a.attributeState.visibility) {
30286
30322
  e.pdf.saveGraphicsState(), ot(a, e, n);
30287
30323
  var v = a.attributeState.alignmentBaseline,
30288
30324
  x = St(a.attributeState);
30289
- e.pdf.text(this.texts[i], l[i] - y, u[i], {
30325
+ e.pdf.text(this.texts[i], l[i] - b, u[i], {
30290
30326
  baseline: V(v),
30291
30327
  angle: e.transform,
30292
30328
  renderingMode: "fill" === x ? void 0 : x,
@@ -30322,15 +30358,15 @@ var Tt = function () {
30322
30358
  var m = f,
30323
30359
  g = m.getAttribute("x");
30324
30360
  if (null !== g) {
30325
- var b = W(g, s);
30326
- n = new Tt(this, N$1(m, r.styleSheets, "text-anchor") || r.attributeState.textAnchor, b, 0), i.push({
30361
+ var y = W(g, s);
30362
+ n = new Tt(this, N$1(m, r.styleSheets, "text-anchor") || r.attributeState.textAnchor, y, 0), i.push({
30327
30363
  type: "y",
30328
30364
  chunk: n
30329
30365
  });
30330
30366
  }
30331
- var y = m.getAttribute("y");
30332
- if (null !== y) {
30333
- var v = W(y, s);
30367
+ var b = m.getAttribute("y");
30368
+ if (null !== b) {
30369
+ var v = W(b, s);
30334
30370
  n = new Tt(this, N$1(m, r.styleSheets, "text-anchor") || r.attributeState.textAnchor, 0, v), i.push({
30335
30371
  type: "x",
30336
30372
  chunk: n
@@ -30344,31 +30380,31 @@ var Tt = function () {
30344
30380
  return u;
30345
30381
  }, e.prototype.renderCore = function (t) {
30346
30382
  return f$1(this, void 0, void 0, function () {
30347
- var e, r, i, n, a, s, o, l, u, h, f, p, d, m, g, b, y, v, x, S, w, k, M;
30383
+ var e, r, i, n, a, s, o, l, u, h, f, p, d, m, g, y, b, v, x, S, w, k, M;
30348
30384
  return c$2(this, function (c) {
30349
30385
  if (t.pdf.saveGraphicsState(), e = 0, r = 0, i = 1, n = t.pdf.getFontSize(), a = W(this.element.getAttribute("x"), n), s = W(this.element.getAttribute("y"), n), o = W(this.element.getAttribute("dx"), n), l = W(this.element.getAttribute("dy"), n), u = parseFloat(this.element.getAttribute("textLength") || "0"), h = t.attributeState.visibility, 0 === this.element.childElementCount) f = this.element.textContent || "", p = function (t, e) {
30350
30386
  return t = kt(t = wt(t)), "default" === e.xmlSpace && (t = Mt(t = t.trim())), t;
30351
- }(f, t.attributeState), d = Ct(this.element, p, t), e = t.textMeasure.getTextOffset(d, t.attributeState), u > 0 && (m = t.textMeasure.measureTextWidth(d, t.attributeState), "default" === t.attributeState.xmlSpace && f.match(/^\s/) && (i = 0), r = (u - m) / (d.length - i) || 0), "visible" === h && (g = t.attributeState.alignmentBaseline, b = St(t.attributeState), t.pdf.text(d, a + o - e, s + l, {
30387
+ }(f, t.attributeState), d = Ct(this.element, p, t), e = t.textMeasure.getTextOffset(d, t.attributeState), u > 0 && (m = t.textMeasure.measureTextWidth(d, t.attributeState), "default" === t.attributeState.xmlSpace && f.match(/^\s/) && (i = 0), r = (u - m) / (d.length - i) || 0), "visible" === h && (g = t.attributeState.alignmentBaseline, y = St(t.attributeState), t.pdf.text(d, a + o - e, s + l, {
30352
30388
  baseline: V(g),
30353
30389
  angle: t.transform,
30354
- renderingMode: "fill" === b ? void 0 : b,
30390
+ renderingMode: "fill" === y ? void 0 : y,
30355
30391
  charSpace: 0 === r ? void 0 : r
30356
30392
  }), this.boundingBox = [a + o - e, s + l + .1 * n, t.textMeasure.measureTextWidth(d, t.attributeState), n]);else {
30357
- for (y = [], v = new Tt(this, t.attributeState.textAnchor, a + o, s + l), y.push({
30393
+ for (b = [], v = new Tt(this, t.attributeState.textAnchor, a + o, s + l), b.push({
30358
30394
  type: "",
30359
30395
  chunk: v
30360
- }), x = this.processTSpans(this, this.element, t, y, v, {
30396
+ }), x = this.processTSpans(this, this.element, t, b, v, {
30361
30397
  prevText: " ",
30362
30398
  prevContext: t
30363
- }), i = x ? 0 : 1, S = true, w = y.length - 1; w >= 0; w--) S && (S = y[w].chunk.rightTrimText());
30364
- u > 0 && (k = 0, M = 0, y.forEach(function (e) {
30399
+ }), i = x ? 0 : 1, S = true, w = b.length - 1; w >= 0; w--) S && (S = b[w].chunk.rightTrimText());
30400
+ u > 0 && (k = 0, M = 0, b.forEach(function (e) {
30365
30401
  var r = e.chunk;
30366
30402
  r.measureText(t), r.textMeasures.forEach(function (t) {
30367
30403
  var e = t.width,
30368
30404
  r = t.length;
30369
30405
  k += e, M += r;
30370
30406
  });
30371
- }), r = (u - k) / (M - i)), y.reduce(function (e, i) {
30407
+ }), r = (u - k) / (M - i)), b.reduce(function (e, i) {
30372
30408
  var n = i.type,
30373
30409
  a = i.chunk;
30374
30410
  return "x" === n ? a.setX(e[0]) : "y" === n && a.setY(e[1]), a.put(t, r);
@@ -30451,14 +30487,14 @@ var Tt = function () {
30451
30487
  }
30452
30488
  return u$1(e, t), e.prototype.renderCore = function (t) {
30453
30489
  return f$1(this, void 0, void 0, function () {
30454
- var r, i, n, a, s, o, l, u, h, f, p, d, m, y, v, x, S, w;
30490
+ var r, i, n, a, s, o, l, u, h, f, p, d, m, b, v, x, S, w;
30455
30491
  return c$2(this, function (c) {
30456
30492
  switch (c.label) {
30457
30493
  case 0:
30458
30494
  return this.imageLoadingPromise ? (t.pdf.setCurrentTransformationMatrix(t.transform), r = parseFloat(N$1(this.element, t.styleSheets, "width") || "0"), i = parseFloat(N$1(this.element, t.styleSheets, "height") || "0"), n = parseFloat(N$1(this.element, t.styleSheets, "x") || "0"), a = parseFloat(N$1(this.element, t.styleSheets, "y") || "0"), !isFinite(r) || r <= 0 || !isFinite(i) || i <= 0 ? [2] : [4, this.imageLoadingPromise]) : [2];
30459
30495
  case 1:
30460
30496
  return s = c.sent(), o = s.data, 0 !== (l = s.format).indexOf("svg") ? [3, 3] : (u = new DOMParser(), h = u.parseFromString(o, "image/svg+xml").firstElementChild, (!(f = this.element.getAttribute("preserveAspectRatio")) || f.indexOf("defer") < 0 || !h.getAttribute("preserveAspectRatio")) && h.setAttribute("preserveAspectRatio", f || ""), h.setAttribute("x", String(n)), h.setAttribute("y", String(a)), h.setAttribute("width", String(r)), h.setAttribute("height", String(i)), [4, Gt(h, p = {}).render(new g(t.pdf, {
30461
- refsHandler: new b(p),
30497
+ refsHandler: new y$1(p),
30462
30498
  styleSheets: t.styleSheets,
30463
30499
  viewport: new gt(r, i),
30464
30500
  svg2pdfParameters: t.svg2pdfParameters,
@@ -30471,7 +30507,7 @@ var Tt = function () {
30471
30507
  case 4:
30472
30508
  return c.trys.push([4, 6,, 7]), [4, e.getImageDimensions(d)];
30473
30509
  case 5:
30474
- return m = c.sent(), y = m[0], v = m[1], x = [0, 0, y, v], S = $(this.element, x, n, a, r, i, t), t.pdf.setCurrentTransformationMatrix(S), t.pdf.addImage(d, "", 0, 0, y, v), [3, 7];
30510
+ return m = c.sent(), b = m[0], v = m[1], x = [0, 0, b, v], S = $(this.element, x, n, a, r, i, t), t.pdf.setCurrentTransformationMatrix(S), t.pdf.addImage(d, "", 0, 0, b, v), [3, 7];
30475
30511
  case 6:
30476
30512
  return w = c.sent(), "object" == typeof console && console.warn && console.warn("Could not load image ".concat(this.imageUrl, ". \n").concat(w)), [3, 7];
30477
30513
  case 7:
@@ -30652,13 +30688,13 @@ var Tt = function () {
30652
30688
  return this.getR(t);
30653
30689
  }, e;
30654
30690
  }(vt),
30655
- Ht = function (t) {
30691
+ Rt = function (t) {
30656
30692
  function e(e, r) {
30657
30693
  return t.call(this, false, e, r) || this;
30658
30694
  }
30659
30695
  return u$1(e, t), e;
30660
30696
  }(Nt),
30661
- Rt = function (t) {
30697
+ Ht = function (t) {
30662
30698
  function e() {
30663
30699
  return null !== t && t.apply(this, arguments) || this;
30664
30700
  }
@@ -30766,7 +30802,7 @@ var Tt = function () {
30766
30802
  }, e.prototype.isOutermostSvg = function (t) {
30767
30803
  return t.svg2pdfParameters.element === this.element;
30768
30804
  }, e;
30769
- }(Rt),
30805
+ }(Ht),
30770
30806
  Wt = function (t) {
30771
30807
  function e() {
30772
30808
  return null !== t && t.apply(this, arguments) || this;
@@ -30776,7 +30812,7 @@ var Tt = function () {
30776
30812
  }, e.prototype.computeNodeTransformCore = function (t) {
30777
30813
  return t.pdf.unitMatrix;
30778
30814
  }, e;
30779
- }(Rt),
30815
+ }(Ht),
30780
30816
  Vt = function (t) {
30781
30817
  function e() {
30782
30818
  return null !== t && t.apply(this, arguments) || this;
@@ -30803,12 +30839,12 @@ var Tt = function () {
30803
30839
  }
30804
30840
  return u$1(e, t), e.prototype.apply = function (t) {
30805
30841
  return f$1(this, void 0, void 0, function () {
30806
- var e, r, i;
30807
- return c$2(this, function (n) {
30808
- switch (n.label) {
30842
+ var e, r, i, n, a;
30843
+ return c$2(this, function (s) {
30844
+ switch (s.label) {
30809
30845
  case 0:
30810
30846
  if (!this.isVisible(true, t)) return [2];
30811
- e = t.pdf.matrixMult(this.computeNodeTransform(t), t.transform), t.pdf.setCurrentTransformationMatrix(e), r = 0, i = this.children, n.label = 1;
30847
+ e = t.pdf.matrixMult(this.computeNodeTransform(t), t.transform), t.pdf.setCurrentTransformationMatrix(e), r = 0, i = this.children, s.label = 1;
30812
30848
  case 1:
30813
30849
  return r < i.length ? [4, i[r].render(new g(t.pdf, {
30814
30850
  refsHandler: t.refsHandler,
@@ -30819,11 +30855,11 @@ var Tt = function () {
30819
30855
  textMeasure: t.textMeasure
30820
30856
  }))] : [3, 4];
30821
30857
  case 2:
30822
- n.sent(), n.label = 3;
30858
+ s.sent(), s.label = 3;
30823
30859
  case 3:
30824
30860
  return r++, [3, 1];
30825
30861
  case 4:
30826
- return t.pdf.clip().discardPath(), t.pdf.setCurrentTransformationMatrix(e.inversed()), [2];
30862
+ return n = this.children.length > 0 && !!N$1(this.children[0].element, t.styleSheets, "clip-rule"), a = n ? this.getClipRuleAttr(this.children[0].element, t.styleSheets) : this.getClipRuleAttr(this.element, t.styleSheets), t.pdf.clip(a).discardPath(), t.pdf.setCurrentTransformationMatrix(e.inversed()), [2];
30827
30863
  }
30828
30864
  });
30829
30865
  });
@@ -30831,6 +30867,8 @@ var Tt = function () {
30831
30867
  return q(t, this);
30832
30868
  }, e.prototype.isVisible = function (t, e) {
30833
30869
  return L(this, t, e);
30870
+ }, e.prototype.getClipRuleAttr = function (t, e) {
30871
+ return "evenodd" === N$1(t, e, "clip-rule") ? "evenodd" : void 0;
30834
30872
  }, e;
30835
30873
  }(J);
30836
30874
  function Gt(e, r) {
@@ -30882,13 +30920,13 @@ function Gt(e, r) {
30882
30920
  i = new Ot(e, n);
30883
30921
  break;
30884
30922
  case "polyline":
30885
- i = new Ht(e, n);
30923
+ i = new Rt(e, n);
30886
30924
  break;
30887
30925
  case "radialgradient":
30888
30926
  i = new et(e, n);
30889
30927
  break;
30890
30928
  case "rect":
30891
- i = new yt(e, n);
30929
+ i = new bt(e, n);
30892
30930
  break;
30893
30931
  case "svg":
30894
30932
  i = new Dt(e, n);
@@ -30900,7 +30938,7 @@ function Gt(e, r) {
30900
30938
  i = new Ft(e, n);
30901
30939
  break;
30902
30940
  case "use":
30903
- i = new bt(e, n);
30941
+ i = new yt(e, n);
30904
30942
  break;
30905
30943
  default:
30906
30944
  i = new Lt(e, n);
@@ -31053,11 +31091,11 @@ var Ut = function () {
31053
31091
  }();
31054
31092
  function Yt(t, e) {
31055
31093
  return f$1(this, arguments, void 0, function (t, e, r) {
31056
- var i, n, a, s, o, l, u, f, p, d, m, y, v, x;
31094
+ var i, n, a, s, o, l, u, f, p, d, m, b, v, x;
31057
31095
  return void 0 === r && (r = {}), c$2(this, function (c) {
31058
31096
  switch (c.label) {
31059
31097
  case 0:
31060
- return i = null !== (y = r.x) && void 0 !== y ? y : 0, n = null !== (v = r.y) && void 0 !== v ? v : 0, a = null !== (x = r.loadExternalStyleSheets) && void 0 !== x && x, o = new b(s = {}), [4, (l = new Ut(t, a)).load()];
31098
+ return i = null !== (b = r.x) && void 0 !== b ? b : 0, n = null !== (v = r.y) && void 0 !== v ? v : 0, a = null !== (x = r.loadExternalStyleSheets) && void 0 !== x && x, o = new y$1(s = {}), [4, (l = new Ut(t, a)).load()];
31061
31099
  case 1:
31062
31100
  return c.sent(), u = new gt(e.internal.pageSize.getWidth(), e.internal.pageSize.getHeight()), f = h$1(h$1({}, r), {
31063
31101
  element: t
@@ -31191,7 +31229,7 @@ const svgToString = (elem, indent) => {
31191
31229
  out.push(' ');
31192
31230
  }
31193
31231
  out.push('<');
31194
- out.push(elem.nodeName);
31232
+ out.push(elem.localName);
31195
31233
  if (elem.id === 'svgcontent') {
31196
31234
  // Process root element separately
31197
31235
  const res = svgCanvas$2.getResolution();
@@ -31364,7 +31402,7 @@ const svgToString = (elem, indent) => {
31364
31402
  }
31365
31403
  }
31366
31404
  out.push('</');
31367
- out.push(elem.nodeName);
31405
+ out.push(elem.localName);
31368
31406
  out.push('>');
31369
31407
  } else {
31370
31408
  out.push('/>');
@@ -43636,10 +43674,10 @@ function requireSharedStore () {
43636
43674
  var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
43637
43675
 
43638
43676
  (store.versions || (store.versions = [])).push({
43639
- version: '3.41.0',
43677
+ version: '3.42.0',
43640
43678
  mode: IS_PURE ? 'pure' : 'global',
43641
43679
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
43642
- license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
43680
+ license: 'https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE',
43643
43681
  source: 'https://github.com/zloirock/core-js'
43644
43682
  });
43645
43683
  return sharedStore.exports;
@@ -46864,7 +46902,7 @@ function requireEs_string_match () {
46864
46902
  var call = requireFunctionCall();
46865
46903
  var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
46866
46904
  var anObject = requireAnObject();
46867
- var isNullOrUndefined = requireIsNullOrUndefined();
46905
+ var isObject = requireIsObject();
46868
46906
  var toLength = requireToLength();
46869
46907
  var toString = requireToString();
46870
46908
  var requireObjectCoercible = requireRequireObjectCoercible();
@@ -46879,7 +46917,7 @@ function requireEs_string_match () {
46879
46917
  // https://tc39.es/ecma262/#sec-string.prototype.match
46880
46918
  function match(regexp) {
46881
46919
  var O = requireObjectCoercible(this);
46882
- var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH);
46920
+ var matcher = isObject(regexp) ? getMethod(regexp, MATCH) : undefined;
46883
46921
  return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
46884
46922
  },
46885
46923
  // `RegExp.prototype[@@match]` method
@@ -46981,7 +47019,7 @@ function requireEs_string_replace () {
46981
47019
  var fails = requireFails();
46982
47020
  var anObject = requireAnObject();
46983
47021
  var isCallable = requireIsCallable();
46984
- var isNullOrUndefined = requireIsNullOrUndefined();
47022
+ var isObject = requireIsObject();
46985
47023
  var toIntegerOrInfinity = requireToIntegerOrInfinity();
46986
47024
  var toLength = requireToLength();
46987
47025
  var toString = requireToString();
@@ -47039,7 +47077,7 @@ function requireEs_string_replace () {
47039
47077
  // https://tc39.es/ecma262/#sec-string.prototype.replace
47040
47078
  function replace(searchValue, replaceValue) {
47041
47079
  var O = requireObjectCoercible(this);
47042
- var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
47080
+ var replacer = isObject(searchValue) ? getMethod(searchValue, REPLACE) : undefined;
47043
47081
  return replacer
47044
47082
  ? call(replacer, searchValue, O, replaceValue)
47045
47083
  : call(nativeReplace, toString(O), searchValue, replaceValue);
@@ -47871,7 +47909,7 @@ function requireEs_string_split () {
47871
47909
  var uncurryThis = requireFunctionUncurryThis();
47872
47910
  var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
47873
47911
  var anObject = requireAnObject();
47874
- var isNullOrUndefined = requireIsNullOrUndefined();
47912
+ var isObject = requireIsObject();
47875
47913
  var requireObjectCoercible = requireRequireObjectCoercible();
47876
47914
  var speciesConstructor = requireSpeciesConstructor();
47877
47915
  var advanceStringIndex = requireAdvanceStringIndex();
@@ -47919,7 +47957,7 @@ function requireEs_string_split () {
47919
47957
  // https://tc39.es/ecma262/#sec-string.prototype.split
47920
47958
  function split(separator, limit) {
47921
47959
  var O = requireObjectCoercible(this);
47922
- var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
47960
+ var splitter = isObject(separator) ? getMethod(separator, SPLIT) : undefined;
47923
47961
  return splitter
47924
47962
  ? call(splitter, separator, O, limit)
47925
47963
  : call(internalSplit, toString(O), separator, limit);
@@ -49347,13 +49385,13 @@ function processImageDataRGBA(imageData, topX, topY, width, height, radius) {
49347
49385
  stackIn = stackStart;
49348
49386
  stackOut = stackEnd;
49349
49387
  for (var x = 0; x < width; x++) {
49350
- var paInitial = aSum * mulSum >> shgSum;
49388
+ var paInitial = aSum * mulSum >>> shgSum;
49351
49389
  pixels[yi + 3] = paInitial;
49352
49390
  if (paInitial !== 0) {
49353
49391
  var _a2 = 255 / paInitial;
49354
- pixels[yi] = (rSum * mulSum >> shgSum) * _a2;
49355
- pixels[yi + 1] = (gSum * mulSum >> shgSum) * _a2;
49356
- pixels[yi + 2] = (bSum * mulSum >> shgSum) * _a2;
49392
+ pixels[yi] = (rSum * mulSum >>> shgSum) * _a2;
49393
+ pixels[yi + 1] = (gSum * mulSum >>> shgSum) * _a2;
49394
+ pixels[yi + 2] = (bSum * mulSum >>> shgSum) * _a2;
49357
49395
  } else {
49358
49396
  pixels[yi] = pixels[yi + 1] = pixels[yi + 2] = 0;
49359
49397
  }
@@ -49442,12 +49480,12 @@ function processImageDataRGBA(imageData, topX, topY, width, height, radius) {
49442
49480
  stackOut = stackEnd;
49443
49481
  for (var _y = 0; _y < height; _y++) {
49444
49482
  var _p2 = yi << 2;
49445
- pixels[_p2 + 3] = _pa = _aSum * mulSum >> shgSum;
49483
+ pixels[_p2 + 3] = _pa = _aSum * mulSum >>> shgSum;
49446
49484
  if (_pa > 0) {
49447
49485
  _pa = 255 / _pa;
49448
- pixels[_p2] = (_rSum * mulSum >> shgSum) * _pa;
49449
- pixels[_p2 + 1] = (_gSum * mulSum >> shgSum) * _pa;
49450
- pixels[_p2 + 2] = (_bSum * mulSum >> shgSum) * _pa;
49486
+ pixels[_p2] = (_rSum * mulSum >>> shgSum) * _pa;
49487
+ pixels[_p2 + 1] = (_gSum * mulSum >>> shgSum) * _pa;
49488
+ pixels[_p2 + 2] = (_bSum * mulSum >>> shgSum) * _pa;
49451
49489
  } else {
49452
49490
  pixels[_p2] = pixels[_p2 + 1] = pixels[_p2 + 2] = 0;
49453
49491
  }
@@ -50863,9 +50901,9 @@ class Element {
50863
50901
  this.document = document;
50864
50902
  this.node = node;
50865
50903
  this.captureTextNodes = captureTextNodes;
50866
- this.attributes = {};
50867
- this.styles = {};
50868
- this.stylesSpecificity = {};
50904
+ this.attributes = Object.create(null);
50905
+ this.styles = Object.create(null);
50906
+ this.stylesSpecificity = Object.create(null);
50869
50907
  this.animationFrozen = false;
50870
50908
  this.animationFrozenValue = '';
50871
50909
  this.parent = null;
@@ -53263,7 +53301,7 @@ class FontElement extends Element {
53263
53301
  constructor(document, node, captureTextNodes) {
53264
53302
  super(document, node, captureTextNodes);
53265
53303
  this.type = 'font';
53266
- this.glyphs = {};
53304
+ this.glyphs = Object.create(null);
53267
53305
  this.horizAdvX = this.getAttribute('horiz-adv-x').getNumber();
53268
53306
  var {
53269
53307
  definitions
@@ -53292,7 +53330,7 @@ class FontElement extends Element {
53292
53330
  this.isRTL = true;
53293
53331
  this.isArabic = true;
53294
53332
  if (typeof this.glyphs[glyph.unicode] === 'undefined') {
53295
- this.glyphs[glyph.unicode] = {};
53333
+ this.glyphs[glyph.unicode] = Object.create(null);
53296
53334
  }
53297
53335
  this.glyphs[glyph.unicode][glyph.arabicForm] = glyph;
53298
53336
  } else {
@@ -54777,9 +54815,9 @@ class Document {
54777
54815
  anonymousCrossOrigin
54778
54816
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
54779
54817
  this.canvg = canvg;
54780
- this.definitions = {};
54781
- this.styles = {};
54782
- this.stylesSpecificity = {};
54818
+ this.definitions = Object.create(null);
54819
+ this.styles = Object.create(null);
54820
+ this.stylesSpecificity = Object.create(null);
54783
54821
  this.images = [];
54784
54822
  this.fonts = [];
54785
54823
  this.emSizeStack = [];